/* Pacote 27 - visual PJe expandido e validação por QR Code */
.container-wide {
    width: min(1880px, calc(100% - 18px));
    max-width: 1880px;
}
.pje-main-mode {
    background: #e9eef5;
}
.main-content.pje-main-mode {
    padding-top: 14px;
}
.pje-screen-shell-27 {
    gap: 10px;
}
.pje-process-band-27 {
    padding: 10px 16px;
    border-radius: 12px;
    align-items: center;
}
.pje-process-number-main.pje-process-number-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.45rem;
    line-height: 1.05;
}
.pje-process-number-link:hover {
    text-decoration: underline;
}
.pje-process-number-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 5px;
    font-size: .72rem;
    opacity: .96;
}
.pje-process-band-subtitle {
    margin-top: 3px;
    font-size: .92rem;
    font-weight: 600;
}
.pje-process-band-meta-compact {
    margin-top: 5px;
    gap: 6px;
    font-size: .82rem;
}
.pje-process-band-meta-compact span {
    padding: 4px 8px;
}
.pje-process-band-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}
.pje-process-band-actions .btn {
    padding: 9px 12px;
    min-width: auto !important;
}
.pje-info-strip-27 {
    border-radius: 10px;
    padding: 8px 12px;
    gap: 10px 18px;
    font-size: .93rem;
    overflow-x: auto;
}
.pje-info-strip-27 span {
    white-space: nowrap;
}
.pje-workbench-grid-27 {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.pje-acervo-column-27.card,
.pje-viewer-column-27.card {
    border-radius: 14px;
    padding: 14px;
}
.pje-acervo-column-27 {
    position: sticky;
    top: 10px;
    max-height: calc(100vh - 22px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pje-acervo-column-27 .pje-pane-head-acervo {
    margin-bottom: 10px;
}
.pje-acervo-column-27 .pje-pane-head-acervo h3 {
    font-size: 1.05rem;
}
.pje-doc-list-27 {
    max-height: 42vh;
    overflow: auto;
    padding-right: 5px;
}
.pje-doc-list-27 .pje-doc-row {
    padding: 10px 12px;
    border-radius: 12px;
    margin-bottom: 8px;
}
.pje-doc-list-27 .pje-doc-row-title {
    font-size: .95rem;
    line-height: 1.25;
}
.pje-events-27 {
    min-height: 0;
    margin-top: 8px;
    border-top: 1px solid #e6edf5;
    padding-top: 8px;
}
.pje-event-list-27 {
    max-height: calc(58vh - 120px);
    overflow: auto;
}
.pje-event-list-27 .pje-event-item {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 8px 0;
}
.pje-event-list-27 .pje-event-title {
    font-size: .92rem;
}
.pje-event-list-27 .pje-event-desc {
    font-size: .88rem;
}
.pje-viewer-column-27 {
    min-width: 0;
}
.pje-viewer-header-27 {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: start;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dfe8f4;
    margin-bottom: 10px;
}
.pje-viewer-header-27 .pje-viewer-title {
    font-size: 1.05rem;
}
.pje-viewer-actions-row {
    justify-content: flex-end;
}
.pje-viewer-actions-row .btn,
.pje-viewer-actions-row .pje-badge {
    white-space: nowrap;
}
.pje-doc-frame-27,
.pje-doc-frame-tall.pje-doc-frame-27 {
    width: 100%;
    min-height: 860px;
    height: calc(100vh - 250px);
    border: 0;
    border-radius: 8px;
    background: #2c2f35;
    box-shadow: inset 0 0 0 1px #d5dfec;
}
.pje-doc-details-27 {
    margin-top: 10px;
}
.pje-doc-details-27 summary {
    cursor: pointer;
    font-weight: 800;
    color: #14345c;
}
.pje-doc-details-27 a {
    word-break: break-all;
}
.pje-process-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 7vh 24px 24px;
}
.pje-process-modal:target {
    display: block;
}
.pje-process-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .58);
    text-decoration: none;
}
.pje-process-modal-card {
    position: relative;
    width: min(1260px, 94vw);
    max-height: 84vh;
    overflow: auto;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 6px;
    padding: 28px 34px;
    box-shadow: 0 32px 80px rgba(0,0,0,.35);
    border: 1px solid #d7e0ec;
}
.pje-process-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: #0f89bd;
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
}
.pje-process-modal-grid {
    display: grid;
    grid-template-columns: minmax(240px, .78fr) minmax(300px, 1fr) minmax(300px, 1fr);
    gap: 28px;
}
.pje-process-modal h3 {
    margin: 0 0 12px;
    font-size: 1rem;
    color: #333b49;
}
.pje-process-dl {
    margin: 0;
    display: grid;
    gap: 10px;
}
.pje-process-dl div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}
.pje-process-dl dt {
    font-weight: 800;
    color: #4a5568;
    text-align: right;
}
.pje-process-dl dd {
    margin: 0;
    color: #1f2937;
}
.pje-process-modal-party h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #e1e7ef;
    padding-bottom: 9px;
}
.pje-process-modal-party h3 span {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: inline-block;
}
.pje-process-modal-party-active h3 span {
    background: #20af63;
}
.pje-process-modal-party-passive h3 span {
    background: #f28b4b;
}
.pje-process-party-card,
.pje-process-counsel-card {
    display: grid;
    gap: 4px;
    padding: 8px 0;
    color: #3f4757;
}
.pje-process-party-card strong,
.pje-process-counsel-card strong {
    color: #1f2937;
    text-transform: uppercase;
}
.pje-process-counsel-card {
    margin-left: 20px;
    padding-left: 12px;
    border-left: 2px solid #dfe6f0;
    color: #6b7280;
    font-size: .92rem;
}
.pje-process-modal-summary-text {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e6edf5;
    color: #3a4658;
    line-height: 1.55;
}
@media (min-width: 1600px) {
    .pje-workbench-grid-27 {
        grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    }
    .pje-doc-frame-27,
    .pje-doc-frame-tall.pje-doc-frame-27 {
        height: calc(100vh - 238px);
        min-height: 900px;
    }
}
@media (max-width: 1180px) {
    .pje-workbench-grid-27,
    .pje-viewer-header-27,
    .pje-process-modal-grid {
        grid-template-columns: 1fr;
    }
    .pje-acervo-column-27 {
        position: static;
        max-height: none;
    }
    .pje-doc-list-27,
    .pje-event-list-27 {
        max-height: 360px;
    }
    .pje-doc-frame-27,
    .pje-doc-frame-tall.pje-doc-frame-27 {
        min-height: 720px;
        height: 75vh;
    }
}
@media (max-width: 720px) {
    .container-wide {
        width: min(100% - 10px, 100%);
    }
    .pje-process-band-27,
    .pje-viewer-actions-row {
        align-items: stretch;
        flex-direction: column;
    }
    .pje-process-number-main.pje-process-number-link {
        font-size: 1.12rem;
    }
    .pje-process-modal {
        padding: 16px 8px;
    }
    .pje-process-modal-card {
        width: 96vw;
        padding: 22px 16px;
    }
    .pje-process-dl div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
    .pje-process-dl dt {
        text-align: left;
    }
}
