
/* Pacote 20 — refinamento pesado inspirado no padrão mental do PJe */
.container-wide { max-width: 1560px; }
.pje-main-mode { background: #eef2f7; }
.pje-screen-shell { display: grid; gap: 14px; }
.pje-process-band,
.pje-acervo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 22px;
    background: linear-gradient(180deg, #0b6a0b 0%, #0a790a 100%);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(11, 106, 11, 0.16);
}
.pje-acervo-header { background: linear-gradient(180deg, #0c4f9d 0%, #1159ab 100%); }
.pje-process-band h2,
.pje-acervo-header h2 { color: #fff; margin: 6px 0 4px; }
.pje-process-number-main { font-size: 2rem; font-weight: 800; line-height: 1.05; }
.pje-process-band-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .95rem; opacity: .98; }
.pje-process-band-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.14);
}
.pje-process-band-subtitle { margin-top: 8px; font-size: 1.02rem; opacity: .98; }
.pje-process-band .btn,
.pje-acervo-header .btn { border-color: rgba(255,255,255,.42); color: #fff; }
.pje-process-band .btn-primary,
.pje-acervo-header .btn-primary { background: #fff; color: #0b4d0b; }
.pje-info-strip {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
    padding: 12px 16px; border-radius: 14px; background: #d8edf8; color: #17314d;
    border: 1px solid #bfdeef;
}
.pje-info-strip span { white-space: nowrap; }
.pje-workbench-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.pje-acervo-column.card, .pje-viewer-column.card, .pje-detail-column .card, .pje-petition-main.card, .pje-petition-side.card, .pje-search-card.card, .pje-acervo-card.card {
    border-radius: 18px; box-shadow: 0 8px 24px rgba(13, 30, 66, .06);
}
.pje-pane-titlebar { display:flex; justify-content: space-between; align-items:flex-start; gap:12px; margin-bottom: 12px; }
.pje-pane-titlebar h2, .pje-pane-titlebar h3 { margin:0; }
.section-gap-sm { margin-top: 18px; }
.pje-doc-list-compact { max-height: 420px; overflow: auto; padding-right: 4px; }
.pje-doc-row-top { display:flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 8px; }
.pje-doc-row-time { font-size: .83rem; color: #6b7280; }
.pje-event-list-tight { max-height: 580px; }
.pje-viewer-toolbar {
    display: flex; justify-content: space-between; align-items:flex-start; gap:14px;
    padding-bottom: 12px; border-bottom: 1px solid #e5ecf5; margin-bottom: 14px;
}
.pje-viewer-title { font-size: 1.25rem; font-weight: 800; color: #16324f; }
.pje-doc-frame-tall { min-height: 980px; border-radius: 16px; }
.pje-empty-viewer {
    min-height: 500px; display: grid; place-items: center; text-align: center; gap: 10px;
    background: #f8fbff; border: 1px dashed #c8d6ea; border-radius: 16px; padding: 24px;
}
.compact-status-list li { margin-bottom: 8px; }
.pje-summary-text { color: #415066; margin-top: 10px; }
.pje-party-active { border-left: 4px solid #21a358; padding-left: 12px; }
.pje-party-passive { border-left: 4px solid #f28b4b; padding-left: 12px; margin-top: 16px; }
.pje-side-section + .pje-side-section { margin-top: 14px; }
.pje-search-grid { display: grid; grid-template-columns: 1.7fr .8fr .8fr auto; gap: 14px; align-items: end; }
.pje-search-wide { grid-column: span 1; }
.pje-acervo-list { display: grid; gap: 12px; }
.pje-acervo-row {
    display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .95fr) minmax(240px, .8fr);
    gap: 16px; align-items: center; border: 1px solid #dce5f2; border-radius: 16px; background: #fff; padding: 16px;
}
.pje-acervo-row:hover { box-shadow: 0 0 0 3px rgba(26, 88, 185, 0.08); }
.pje-acervo-row-number { font-size: 1.2rem; font-weight: 800; color: #143e8f; margin-bottom: 4px; }
.pje-acervo-row-title { font-size: 1.04rem; font-weight: 700; color: #1f2937; margin-bottom: 6px; }
.pje-acervo-row-parties { color: #576377; font-size: .95rem; }
.pje-acervo-row-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pje-meta-chip { display:inline-flex; padding: 8px 10px; border-radius: 999px; background:#eef3ff; color:#1a58b9; font-weight:700; }
.pje-acervo-row-side { display: grid; gap: 8px; justify-items: start; }
.btn-sm { padding: 9px 14px; font-size: .92rem; }
.pje-petition-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 16px; }
.pje-petition-form { display: grid; gap: 16px; }
.pje-form-grid-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pje-form-grid-row-tight { grid-template-columns: .9fr 1.1fr; }
.switch-inline { display: inline-flex; align-items: center; gap: 10px; }
.switch-label { font-weight: 700; color: #415066; }
.pje-upload-dropzone {
    display: grid; gap: 8px; place-items: center; text-align: center;
    min-height: 190px; border: 2px dashed #c5d1e5; border-radius: 18px; background: #fafcff; cursor: pointer; padding: 24px;
}
.pje-upload-dropzone input[type=file] { display: none; }
.pje-upload-title { font-size: 1.1rem; font-weight: 800; color: #1f3f67; }
.pje-upload-subtitle { max-width: 760px; color: #5f6f86; }
.pje-petition-actions { display:flex; gap: 12px; align-items:center; }
.pje-side-note {
    background: #f8fbff; border: 1px solid #d8e6f4; border-radius: 14px; padding: 14px; margin-top: 14px;
}
@media (max-width: 1380px) {
    .pje-workbench-grid, .pje-petition-layout { grid-template-columns: 1fr; }
    .pje-doc-frame-tall { min-height: 720px; }
}
@media (max-width: 980px) {
    .pje-process-band, .pje-acervo-header, .pje-viewer-toolbar, .pje-pane-titlebar { flex-direction: column; align-items: stretch; }
    .pje-search-grid, .pje-form-grid-row, .pje-form-grid-row-tight, .pje-acervo-row { grid-template-columns: 1fr; }
    .pje-process-band-actions, .pje-acervo-header .actions { width: 100%; }
}
