:root{--ink:#182b49;--muted:#70819b;--blue:#3167e8;--light:#edf3ff;--line:#e0e8f3;--background:#f3f7fc;--shadow:0 8px 30px rgba(29,52,96,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--background);color:var(--ink);font:14px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}button,a{-webkit-tap-highlight-color:transparent}:where(a,button,input,select,[tabindex]):focus-visible{outline:3px solid rgba(49,103,232,.45);outline-offset:2px}[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden}
.portal-container{width:min(1420px,calc(100% - 72px));margin-inline:auto}
.portal-topbar{position:sticky;top:0;z-index:10;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}
.portal-top-inner{min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.portal-brand{display:inline-flex;align-items:center;gap:11px;font-weight:850;font-size:17px;white-space:nowrap;letter-spacing:-.5px}.portal-brand small{font-size:10px;letter-spacing:.12em;color:var(--blue);margin-left:5px}.portal-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#eaf1ff;color:var(--blue);font-size:24px}
.portal-top-right{display:flex;align-items:center;gap:17px}.portal-readonly{display:inline-flex;align-items:center;gap:9px;background:#e9f8ef;color:#287950;border-radius:30px;padding:9px 12px;font-size:11px;font-weight:750;white-space:nowrap}.portal-live-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#24a96f;box-shadow:0 0 0 4px #24a96f1c}
.portal-user{display:inline-flex;align-items:center;gap:9px;min-width:0;max-width:230px}.portal-user-avatar{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;background:linear-gradient(135deg,#6596f5,#3167e8);color:#fff;border-radius:50%;font-size:12px;font-weight:750}.portal-user-name{font-size:12px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.portal-signout{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;min-height:40px;border-radius:10px;border:1px solid var(--line);font-weight:750;font-size:12px;background:#fff}.portal-signout:hover{background:#f0f5fe}
.portal-heading{display:flex;align-items:end;justify-content:space-between;gap:24px;padding:39px 0 25px}.portal-eyebrow{color:var(--blue);font-weight:850;font-size:10px;letter-spacing:.11em;display:inline-flex;align-items:center;gap:10px}.portal-heading h1{font-size:clamp(28px,3vw,39px);letter-spacing:-1.3px;line-height:1.2;margin:12px 0 9px}.portal-heading p{max-width:690px;margin:0;color:var(--muted);line-height:1.65}.portal-update{display:flex;gap:7px;align-items:center;color:#8797ae;font-size:11px;font-weight:650;white-space:nowrap}.portal-update svg{width:16px;height:16px}
.portal-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:17px}.portal-stat{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:134px;padding:21px;border:1px solid var(--line);border-radius:17px;background:white;box-shadow:var(--shadow)}.portal-stat>span{color:#73849c;font-weight:700;font-size:12px}.portal-stat strong{font-size:31px;letter-spacing:-1px;line-height:1;margin:11px 0 5px}.portal-stat small{color:#8b9ab0;font-size:11px}.portal-stat i{display:grid;place-items:center;position:absolute;right:17px;top:16px;font-size:19px;font-style:normal;width:34px;height:34px;background:var(--light);border-radius:10px;color:var(--blue)}.portal-stat:last-child i{color:#b34747;background:#fff0f0}
.portal-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;border:1px solid var(--line);background:white;border-radius:16px;padding:16px;margin-bottom:19px;box-shadow:var(--shadow)}.portal-search-box{position:relative;flex:2 1 310px;min-width:0}.portal-search-box svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:#8fa0b8;width:19px;height:19px}.portal-search-box input{width:100%;min-height:49px;background:#f7f9fc;border:1px solid #e0e7f1;border-radius:11px;padding:0 14px 0 45px;color:var(--ink);outline:none;font-size:13px}.portal-search-box input:focus,.portal-select-field select:focus,.portal-login-form input:focus{background:white;border-color:#8aacec;box-shadow:0 0 0 3px #3167e82c}.portal-search-box input::placeholder{color:#99a7b9}
.portal-filter-grid{flex:2 1 440px;display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:10px;min-width:0}.portal-select-field{position:relative;display:flex;flex-direction:column;gap:5px;min-width:0}.portal-select-field>span{font-size:10px;color:#8494ab;font-weight:800}.portal-select-field select{appearance:none;width:100%;height:43px;border:1px solid #dfe7f2;border-radius:10px;padding:0 25px 0 11px;outline:none;background:#fff;color:#49607c;text-overflow:ellipsis;font-size:12px}.portal-select-field:after{content:"";position:absolute;right:12px;bottom:18px;border:solid #8496ac;border-width:0 1.5px 1.5px 0;padding:3px;transform:rotate(45deg);pointer-events:none}
.portal-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:0 18px;border-radius:10px;border:1px solid transparent;font-size:12px;font-weight:800;text-align:center;white-space:nowrap}.portal-btn.primary{background:var(--blue);color:#fff}.portal-btn.primary:hover{background:#1d50c5}.portal-btn.secondary{background:white;color:#2457bc;border-color:#ccdaf3}.portal-btn.secondary:hover{background:#eff4ff}.portal-btn.full{width:100%}.portal-filter-submit{min-height:49px}.portal-clear{min-height:46px;display:inline-grid;place-items:center;padding:0 10px;color:var(--blue);font-size:12px;font-weight:800}
.portal-results{background:white;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);overflow:hidden}.portal-results-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px}.portal-results-heading h2{margin:7px 0 5px;font-size:19px;line-height:1.3;letter-spacing:-.4px}.portal-results-heading p{margin:0;color:var(--muted);font-size:12px}.portal-view-hint{font-size:11px;color:#2857b1;font-weight:800;background:#eef4ff;border-radius:30px;padding:8px 12px;white-space:nowrap}
.portal-desktop-table{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.portal-desktop-table table{width:100%;min-width:1020px;border-collapse:collapse;text-align:left}.portal-desktop-table th{background:#f7faff;padding:15px 13px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#74869e;white-space:nowrap}.portal-desktop-table td{padding:17px 13px;border-bottom:1px solid #eaf0f6;vertical-align:middle;font-size:12px;color:#5c6e88}.portal-desktop-table td:first-child,.portal-desktop-table th:first-child{padding-left:22px}.portal-desktop-table td:last-child,.portal-desktop-table th:last-child{padding-right:22px;text-align:right}.portal-desktop-table tbody tr:last-child td{border:0}.portal-desktop-table tr[data-record]{cursor:pointer}.portal-desktop-table tr[data-record]:hover td,.portal-desktop-table tr[data-record]:focus-visible td{background:#f4f8ff}.portal-desktop-table td strong{display:block;color:#233b5c;font-size:12px;font-weight:800;max-width:250px;overflow-wrap:anywhere;line-height:1.5}.portal-desktop-table td small{display:block;color:#9aa7b9;font-size:10px;margin-top:4px}.portal-desktop-table .portal-destination{color:#1c4eaa}.portal-person{display:block;min-width:118px}.portal-priority{display:inline-flex;align-items:center;justify-content:center;border-radius:30px;background:#f0f3f7;color:#7b8ba0;padding:5px 9px;font-weight:750;font-size:10px;white-space:nowrap}.portal-priority.urgent{background:#fff0ef;color:#b64341}.portal-pdf-link{display:inline-flex;align-items:center;justify-content:center;padding:8px 11px;border-radius:8px;background:#eef4ff;color:#285cc1;font-size:11px;font-weight:800;white-space:nowrap}.portal-pdf-link:hover{background:#e0eaff}.portal-no-pdf{font-size:11px;color:#9babc0;white-space:nowrap}
.portal-mobile-list{display:none}.portal-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;padding:17px 22px;border-top:1px solid var(--line);color:#7e8da3;font-size:12px}.portal-pagination-buttons{display:flex;gap:10px;align-items:center}.portal-pagination-buttons a{display:inline-grid;place-items:center;padding:8px 13px;min-height:41px;border-radius:9px;border:1px solid #d8e3f1;font-weight:750;color:#285ab6}.portal-pagination-buttons a:hover{background:#edf3ff}.portal-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:25px 0 31px;color:#95a3b5;font-size:11px}.portal-empty{padding:65px 18px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.portal-empty>span{font-size:40px;color:var(--blue)}.portal-empty strong{font-size:16px;margin:10px 0 0}.portal-empty p{color:var(--muted);max-width:440px;font-size:13px;margin:6px 0 17px}
.portal-modal{border:1px solid #e0e8f3;border-radius:19px;background:white;padding:0;width:min(655px,calc(100vw - 34px));max-height:90dvh;overflow:auto;box-shadow:0 28px 100px #14284f55}.portal-modal::backdrop{background:#0d2240aa;backdrop-filter:blur(3px)}.portal-modal-head{position:sticky;top:0;background:white;z-index:1;padding:24px;display:flex;align-items:start;justify-content:space-between;gap:17px;border-bottom:1px solid var(--line)}.portal-modal-head h2{margin:8px 0 3px;font-size:21px;overflow-wrap:anywhere}.portal-modal-head [data-show=protocolo]{color:var(--muted);font-size:12px}.portal-modal-close{display:grid;place-items:center;min-width:42px;height:42px;background:#f5f8fc;border:1px solid #e0e8f3;border-radius:11px;color:#5b6d86}.portal-modal-body{padding:20px 24px}.portal-modal-summary{padding:16px 18px;border:1px solid #dce7fb;background:#f1f6ff;border-radius:12px;display:grid;gap:6px}.portal-modal-summary span{font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#7592b8}.portal-modal-summary span:not(:first-child){margin-top:6px}.portal-modal-summary strong{font-size:14px;color:#194d9b;overflow-wrap:anywhere}.portal-modal-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:17px 0}.portal-modal-details>div{border:1px solid #e5ebf4;border-radius:11px;padding:12px;min-width:0}.portal-modal-details dt{font-size:10px;font-weight:800;color:#8092a9;margin-bottom:6px}.portal-modal-details dd{font-size:12px;margin:0;color:#3a526f;overflow-wrap:anywhere}.portal-modal-details .portal-modal-subject{grid-column:1/-1}.portal-modal-actions{display:flex;gap:10px;padding:17px 24px calc(17px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:white;position:sticky;bottom:0}.portal-modal-actions .portal-btn{flex:1;min-width:0}.portal-no-file{padding:13px;background:#fff8ec;border-radius:10px;font-size:12px;color:#906824}
.portal-preview-main{padding:35px 0}.portal-preview-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:19px}.portal-preview-head h1{font-size:27px;margin:8px 0;overflow-wrap:anywhere}.portal-preview-head p{font-size:13px;color:var(--muted);margin:0}.portal-preview-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px}.portal-preview-note{background:#ebf3ff;border:1px solid #dbe8fc;border-radius:10px;color:#44638c;font-size:12px;padding:12px 14px;margin-bottom:13px}.portal-pdf-frame{display:block;border:1px solid #d6e2f1;border-radius:12px;width:100%;height:75vh;min-height:580px;background:#fff}
.portal-auth-body{background:#eff4fd}.portal-auth-layout{min-height:100dvh;display:grid;grid-template-columns:1.05fr .95fr}.portal-auth-illustration{background:linear-gradient(145deg,#102854,#1b448d 72%,#396fe2);color:white;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(30px,4.3vw,65px);gap:50px;position:relative;overflow:hidden}.portal-auth-illustration::after{content:"";position:absolute;right:-190px;top:13%;height:490px;width:490px;border-radius:50%;border:1px solid #ffffff22;pointer-events:none}.portal-auth-illustration .portal-brand{color:white}.portal-auth-illustration .portal-brand small{color:#b4d0ff}.portal-auth-illustration .portal-mark{background:#ffffff22;color:white}.portal-auth-message{position:relative;max-width:590px}.portal-auth-message .portal-eyebrow{color:#aac8ff}.portal-auth-message h1{font-size:clamp(32px,3.5vw,52px);letter-spacing:-1.5px;line-height:1.16;margin:18px 0}.portal-auth-message p{font-size:15px;color:#cfddf5;line-height:1.75}.portal-auth-benefits{display:grid;gap:17px;margin-top:35px}.portal-auth-benefits span{display:flex;align-items:center;gap:13px;font-size:13px;font-weight:750;color:#dfebff}.portal-auth-benefits svg{color:#b5ceff;width:23px;height:23px}.portal-auth-footnote{font-size:12px;color:#acbfe4;position:relative}.portal-auth-right{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;padding:30px}.portal-auth-card{width:min(440px,100%);background:#fff;border:1px solid var(--line);box-shadow:0 20px 70px #253f6b1c;border-radius:23px;padding:clamp(24px,3.7vw,43px)}.portal-login-icon{display:grid;place-items:center;width:53px;height:53px;background:#eaf1ff;border-radius:14px;font-size:24px;margin-bottom:21px}.portal-auth-card h2{font-size:28px;letter-spacing:-.7px;margin:10px 0}.portal-auth-card>p{font-size:13px;color:var(--muted);line-height:1.7;margin:0 0 25px}.portal-login-form{display:flex;flex-direction:column;gap:8px}.portal-login-form label{font-size:12px;font-weight:800;color:#435875;margin:6px 0 0}.portal-login-form input{min-height:51px;border:1px solid #dce5f2;border-radius:11px;padding:0 15px;background:#fbfcff;color:var(--ink);font-size:14px;outline:0;margin-bottom:11px}.portal-login-form button{min-height:51px;margin-top:6px}.portal-login-info{border-top:1px solid var(--line);color:#8193a8;font-size:12px;margin-top:27px;padding-top:20px;line-height:1.6}.portal-alert{background:#fff0ef;border:1px solid #f6d5d0;border-radius:10px;padding:12px;color:#b44743;margin:0 0 16px;font-size:12px}.portal-footer-note{color:#91a1b9;font-size:11px;text-align:center}
@media(max-width:1190px){.portal-container{width:calc(100% - 46px)}.portal-filter-grid{flex:2 1 100%}.portal-heading{padding-top:31px}}
@media(max-width:920px){.portal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-top-inner{min-height:66px}.portal-heading{flex-direction:column;align-items:start}.portal-desktop-table{display:none}.portal-mobile-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:0 17px 18px}.portal-record-card{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:white;box-shadow:0 3px 13px #2346700b}.portal-record-open{display:flex;flex-direction:column;align-items:stretch;width:100%;background:white;border:0;color:inherit;text-align:left;padding:17px}.portal-record-open:hover{background:#fafcff}.portal-record-top{display:flex;align-items:start;justify-content:space-between;gap:10px}.portal-record-top strong{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.portal-record-top .portal-priority{flex:0 0 auto}.portal-record-protocol{font-size:11px;color:#8193aa;margin-top:4px;margin-bottom:14px}.portal-record-destination-label{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:#9ba9b9;margin-top:10px}.portal-record-destination{font-size:13px;color:#1b4eaa;font-weight:850;overflow-wrap:anywhere;margin-top:3px}.portal-record-responsible{font-size:12px;color:#4d6280;overflow-wrap:anywhere;margin-top:3px}.portal-record-subject{font-size:12px;color:#72849e;margin-top:14px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2}.portal-record-more{margin-top:14px;color:var(--blue);font-size:12px;font-weight:800}.portal-record-footer{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:13px 17px;border-top:1px solid var(--line);font-size:11px;color:#8698aa}.portal-mobile-pdf{font-size:11px;color:#2356b7;font-weight:800;white-space:nowrap}.portal-auth-layout{display:flex;flex-direction:column}.portal-auth-illustration{min-height:300px;gap:20px;padding:35px 6%}.portal-auth-message h1{font-size:32px;margin:12px 0}.portal-auth-message p{font-size:13px}.portal-auth-benefits,.portal-auth-footnote{display:none}.portal-auth-right{padding:30px 20px}}
@media(max-width:620px){.portal-container{width:calc(100% - 28px)}.portal-top-inner{min-height:61px}.portal-brand{font-size:15px;gap:7px}.portal-mark{width:32px;height:32px;font-size:22px}.portal-brand small{font-size:9px;margin-left:3px}.portal-top-right{gap:8px}.portal-readonly,.portal-user-name{display:none}.portal-user-avatar{width:31px;height:31px;flex-basis:31px}.portal-signout{font-size:11px;min-height:39px;padding:8px 10px}.portal-heading{padding:26px 0 21px;gap:12px}.portal-heading h1{font-size:27px;letter-spacing:-.8px}.portal-heading p{font-size:13px}.portal-update{font-size:10px}.portal-stats{gap:9px;margin-bottom:12px}.portal-stat{padding:14px 12px;min-height:111px;border-radius:12px}.portal-stat>span{font-size:11px;max-width:85%}.portal-stat strong{font-size:25px;margin:10px 0 2px}.portal-stat small{font-size:10px;line-height:1.4}.portal-stat i{right:9px;top:9px;font-size:14px;width:25px;height:25px}.portal-filters{padding:12px;gap:10px;border-radius:14px}.portal-search-box,.portal-filter-grid{flex:1 1 100%}.portal-filter-grid{grid-template-columns:1fr 1fr}.portal-filter-grid .portal-select-field:nth-child(2){grid-column:1/-1;grid-row:2}.portal-search-box input{min-height:50px}.portal-select-field select{height:44px}.portal-filter-submit{flex:1}.portal-results{border-radius:15px}.portal-results-heading{padding:17px 15px}.portal-results-heading h2{font-size:17px}.portal-results-heading p{font-size:11px}.portal-view-hint{display:none}.portal-mobile-list{grid-template-columns:1fr;gap:11px;padding:0 12px 15px}.portal-record-open{padding:16px}.portal-record-footer{padding:12px 16px}.portal-pagination{padding:16px;flex-direction:column;align-items:start}.portal-pagination-buttons{width:100%;justify-content:space-between}.portal-pagination-buttons a{min-height:44px}.portal-foot{flex-direction:column;font-size:10px;gap:7px;padding:20px 0 27px}.portal-modal{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.portal-modal-head{padding:19px 18px}.portal-modal-head h2{font-size:19px}.portal-modal-body{padding:18px}.portal-modal-details{gap:8px}.portal-modal-details>div{padding:11px}.portal-modal-actions{gap:8px;padding:14px 18px calc(14px + env(safe-area-inset-bottom))}.portal-modal-actions .portal-btn{font-size:11px;padding:0 9px;white-space:normal}.portal-preview-main{padding:20px 0}.portal-preview-head{align-items:start;flex-direction:column}.portal-preview-head h1{font-size:22px}.portal-preview-actions{justify-content:stretch;width:100%}.portal-preview-actions .portal-btn{flex:1}.portal-pdf-frame{height:70dvh;min-height:420px}.portal-auth-illustration{min-height:255px;padding:23px}.portal-auth-message h1{font-size:26px}.portal-auth-message p{font-size:12px}.portal-auth-right{padding:20px 14px 30px}.portal-auth-card{padding:25px 20px;border-radius:19px}.portal-auth-card h2{font-size:23px}}
@media print{.portal-topbar,.portal-preview-actions,.portal-preview-note,.portal-foot{display:none!important}body{background:white}.portal-container{width:100%}.portal-preview-main{padding:0}.portal-pdf-frame{height:95vh;border:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* 2026-10 | Consulta: mesmo padrão de pesquisa, períodos e clareza do SIGO. */

/* Apenas a Consulta usa largura fluida; telas de login e PDF continuam próprias. */
body:has(.portal-filters) .portal-container {
    width:calc(100% - clamp(24px,4vw,80px));
    max-width:none;
}
body:has(.portal-filters) .portal-results,
body:has(.portal-filters) .portal-filters,
body:has(.portal-filters) .portal-stats,
body:has(.portal-filters) .portal-periods {
    min-width:0;
    max-width:100%;
}
.portal-periods {
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
    gap:13px;
    padding:9px 13px;
    margin:0 0 13px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    box-shadow:var(--shadow);
}
.portal-period-buttons {display:flex;flex-wrap:wrap;gap:5px;min-width:0}
.portal-period-button {
    display:inline-flex;
    justify-content:center;
    align-items:center;
    min-height:41px;
    padding:9px 14px;
    border-radius:10px;
    border:1px solid transparent;
    color:#60748f;
    font-size:12px;
    font-weight:780;
    white-space:normal;
    text-align:center;
    line-height:1.4;
}
.portal-period-button:hover {background:#f0f5ff;color:#2156bf}
.portal-period-button.active {
    background:#eaf2ff;
    border-color:#d3e2fc;
    color:#245bc2;
}
.portal-period-info {
    display:inline-flex;
    align-items:center;
    color:#788da7;
    font-size:11px;
    font-weight:650;
    line-height:1.5;
}
.portal-search-status {
    display:inline-flex;
    align-items:center;
    min-height:18px;
    color:#7386a1;
    font-size:11px;
    line-height:1.35;
}
.portal-search-status:empty {display:none}
.portal-results[aria-busy="true"] {opacity:.7;transition:opacity .16s ease}
.portal-filters .portal-filter-grid {
    grid-template-columns:minmax(145px,1fr) minmax(210px,1.65fr) minmax(150px,1fr);
}
.portal-filters .portal-select-field {min-width:0}
.portal-filters .portal-select-field > span {
    font-size:11px;
    font-weight:800;
    color:#7185a1;
}
/* Preserva os nomes das opções mesmo na busca do select personalizada. */
.portal-filters .portal-select-field .sigo-search-select {width:100%;min-width:0}
.portal-filters .portal-select-field .sigo-search-input {
    width:100%;
    min-height:45px;
    border-radius:10px;
    color:#344e73;
    background:#fff;
    font-weight:580;
    font-size:12px;
}
.portal-filters .portal-select-field:after {display:none}
.portal-results-heading,.portal-record-open {min-width:0}
.portal-results-heading h2,.portal-record-destination,.portal-person {
    overflow-wrap:anywhere;
}
.portal-desktop-table{overscroll-behavior-x:contain;scrollbar-width:thin}
.portal-desktop-table table{min-width:1060px}
@media(max-width:1150px) {
    .portal-filters .portal-filter-grid {
        grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr);
    }
}
@media(max-width:700px) {
    body:has(.portal-filters) .portal-container {width:calc(100% - 24px)}
    .portal-periods {padding:9px;gap:8px}
    .portal-period-buttons {
        display:grid;
        width:100%;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:5px;
    }
    .portal-period-button {padding:10px 5px;font-size:11px;min-height:44px}
    .portal-period-info {font-size:10px;padding:0 4px}
    .portal-filters .portal-filter-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .portal-filters .portal-filter-grid .portal-select-field:nth-child(2) {
        grid-column:1 / -1;
        grid-row:2;
    }
    .portal-search-status {flex-basis:100%}
    .portal-filters .portal-select-field .sigo-search-input{font-size:16px}
}
@media(max-width:375px) {
    .portal-period-button{font-size:10px;padding-inline:2px}
}
@media(prefers-reduced-motion:reduce) {
    .portal-results[aria-busy="true"]{transition:none}
}


/* Consulta 2026-10 — ícones consistentes e cartões compactos em duas colunas. */
.portal-stat i{
    display:grid;
    place-items:center;
}
.portal-stat i svg{
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.75;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.portal-stat:last-child i svg{stroke-width:1.9}
.portal-doc-icon{
    display:grid;
    place-items:center;
    flex:0 0 28px;
    width:28px;
    height:28px;
    border-radius:8px;
    background:#edf3ff;
    color:#3167e8;
}
.portal-doc-icon svg,
.portal-record-more svg,
.portal-mobile-pdf svg{
    width:16px;
    height:16px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    flex:0 0 16px;
}
.portal-record-ident{
    display:flex;
    min-width:0;
    align-items:center;
    gap:7px;
}
.portal-record-ident strong{
    min-width:0;
    overflow-wrap:anywhere;
}
.portal-record-more{
    display:inline-flex;
    align-items:center;
    gap:6px;
}
.portal-mobile-pdf{
    display:inline-flex;
    align-items:center;
    gap:4px;
    white-space:nowrap;
}
.portal-mobile-pdf svg{
    width:14px;
    height:14px;
    flex:0 0 14px;
}

/* O portal mantém uma tabela no computador; tablets e celulares usam
   sempre duas colunas e cartões mais baixos, sem cortar os dados do modal. */
@media (max-width:920px){
    body:has(.portal-filters) .portal-mobile-list{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:11px;
        padding:0 13px 15px;
        align-items:stretch;
    }
    body:has(.portal-filters) .portal-record-card{
        min-width:0;
        display:flex;
        flex-direction:column;
        border-radius:12px;
        box-shadow:0 3px 12px rgba(23,44,77,.045);
    }
    body:has(.portal-filters) .portal-record-open{
        flex:1 1 auto;
        min-width:0;
        width:100%;
        padding:12px;
        gap:0;
        display:flex;
        flex-direction:column;
        align-items:stretch;
    }
    body:has(.portal-filters) .portal-record-top{
        display:flex;
        align-items:flex-start;
        justify-content:space-between;
        gap:7px;
        min-width:0;
        flex-wrap:wrap;
    }
    body:has(.portal-filters) .portal-record-top strong{
        font-size:12px;
        line-height:1.35;
        font-weight:850;
        max-width:100%;
    }
    body:has(.portal-filters) .portal-record-top .portal-priority{
        flex:0 1 auto;
        max-width:100%;
        white-space:normal;
        padding:4px 7px;
        line-height:1.25;
        text-align:center;
        font-size:9px;
    }
    body:has(.portal-filters) .portal-record-protocol{
        margin:5px 0 8px;
        font-size:10px;
        line-height:1.3;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
    body:has(.portal-filters) .portal-record-destination-label{
        margin-top:7px;
        font-size:9px;
        line-height:1.3;
        letter-spacing:.035em;
    }
    body:has(.portal-filters) .portal-record-destination{
        display:-webkit-box;
        -webkit-line-clamp:2;
        line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
        font-size:11.5px;
        line-height:1.4;
        margin-top:4px;
        overflow-wrap:anywhere;
    }
    body:has(.portal-filters) .portal-record-responsible{
        display:-webkit-box;
        -webkit-line-clamp:2;
        line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
        font-size:11px;
        line-height:1.45;
        margin-top:3px;
        overflow-wrap:anywhere;
    }
    body:has(.portal-filters) .portal-record-subject{
        display:-webkit-box;
        -webkit-box-orient:vertical;
        -webkit-line-clamp:2;
        line-clamp:2;
        overflow:hidden;
        font-size:10px;
        line-height:1.4;
        margin-top:9px;
        color:#7f90a6;
    }
    body:has(.portal-filters) .portal-record-more{
        display:inline-flex;
        align-items:center;
        gap:5px;
        margin-top:auto;
        padding-top:12px;
        font-size:10px;
    }
    body:has(.portal-filters) .portal-record-more svg{
        width:13px;height:13px;flex:0 0 13px;
    }
    body:has(.portal-filters) .portal-record-footer{
        display:flex;
        align-items:center;
        justify-content:space-between;
        flex-wrap:wrap;
        min-width:0;
        gap:6px;
        padding:10px 12px;
        border-top:1px solid #ebeff6;
        font-size:10px;
        line-height:1.35;
    }
    body:has(.portal-filters) .portal-record-footer time{
        white-space:nowrap;
        color:#8a9aaf;
    }
}
@media(max-width:620px){
    body:has(.portal-filters) .portal-mobile-list{
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
        padding:0 9px 12px;
    }
    body:has(.portal-filters) .portal-record-card{border-radius:11px}
    body:has(.portal-filters) .portal-record-open{padding:10px}
    body:has(.portal-filters) .portal-record-top{gap:5px}
    body:has(.portal-filters) .portal-record-top strong{font-size:11.5px}
    body:has(.portal-filters) .portal-record-top .portal-priority{
        padding:3px 6px;
        font-size:8.5px;
    }
    body:has(.portal-filters) .portal-doc-icon{
        width:25px;height:25px;flex-basis:25px;border-radius:7px;
    }
    body:has(.portal-filters) .portal-doc-icon svg{width:15px;height:15px}
    body:has(.portal-filters) .portal-record-destination{font-size:11px}
    body:has(.portal-filters) .portal-record-responsible{font-size:10.5px}
    body:has(.portal-filters) .portal-record-footer{padding:9px 10px;font-size:9px}
    body:has(.portal-filters) .portal-mobile-pdf{font-size:10px}
    body:has(.portal-filters) .portal-mobile-pdf svg{width:13px;height:13px;flex-basis:13px}
    body:has(.portal-filters) .portal-heading{padding-top:18px;padding-bottom:15px}
    body:has(.portal-filters) .portal-heading h1{font-size:24px}
    body:has(.portal-filters) .portal-results-heading{padding:14px 13px}
}
@media(max-width:355px){
    body:has(.portal-filters) .portal-record-ident{gap:4px}
    body:has(.portal-filters) .portal-mobile-list{gap:6px;padding-inline:7px}
    body:has(.portal-filters) .portal-record-open{padding:9px}
    body:has(.portal-filters) .portal-record-top strong{font-size:10.5px}
    body:has(.portal-filters) .portal-record-footer{padding:8px}
}


/* 22/10 | Cartões-resumo compactos. Informações completas somente no modal. */
@media(max-width:920px){
    body:has(.portal-filters) .portal-mobile-list {
        grid-template-columns:repeat(2,minmax(0,1fr));
        align-items:stretch;
        gap:9px;
    }
    body:has(.portal-filters) .portal-record-card {
        display:flex;
        flex-direction:column;
        min-width:0;
        border-radius:11px;
        overflow:hidden;
    }
    body:has(.portal-filters) .portal-record-open {
        min-width:0;
        padding:11px 12px 9px;
        gap:0;
        flex:1 1 auto;
    }
    body:has(.portal-filters) .portal-record-top {
        display:flex;
        align-items:flex-start;
        justify-content:space-between;
        gap:5px;
        flex-wrap:wrap;
    }
    body:has(.portal-filters) .portal-record-ident {
        flex:1 1 auto;
        display:flex;
        align-items:flex-start;
        min-width:0;
        gap:6px;
    }
    body:has(.portal-filters) .portal-record-ident strong {
        display:-webkit-box;
        -webkit-box-orient:vertical;
        -webkit-line-clamp:2;
        line-clamp:2;
        overflow:hidden;
        overflow-wrap:anywhere;
        min-width:0;
        font-size:11.5px;
        line-height:1.35;
        font-weight:850;
    }
    body:has(.portal-filters) .portal-record-top .portal-priority.urgent {
        flex:0 0 auto;
        padding:3px 6px;
        font-size:9px;
        line-height:1.35;
    }
    body:has(.portal-filters) .portal-doc-icon {
        width:25px;height:25px;flex:0 0 25px;
        border-radius:7px;
    }
    body:has(.portal-filters) .portal-doc-icon svg {
        width:14px;height:14px;
    }
    body:has(.portal-filters) .portal-record-protocol {
        margin:5px 0 7px;
        color:#8394aa;
        font-size:10px;
        line-height:1.35;
    }
    body:has(.portal-filters) .portal-record-destination-label {
        margin:0;
        font-size:9px;
        line-height:1.3;
        letter-spacing:.045em;
    }
    body:has(.portal-filters) .portal-record-destination {
        display:-webkit-box;
        -webkit-box-orient:vertical;
        -webkit-line-clamp:2;
        line-clamp:2;
        overflow:hidden;
        margin:3px 0 0;
        font-size:11px;
        line-height:1.38;
        overflow-wrap:anywhere;
    }
    body:has(.portal-filters) .portal-record-more {
        display:inline-flex;
        align-items:center;
        justify-content:space-between;
        width:100%;
        gap:4px;
        margin-top:auto;
        padding-top:8px;
        font-size:10px;
        font-weight:800;
    }
    body:has(.portal-filters) .portal-record-more svg {
        width:13px;
        height:13px;
        flex:0 0 13px;
    }
    body:has(.portal-filters) .portal-record-footer {
        padding:8px 11px;
        gap:5px;
        font-size:9px;
        min-height:31px;
    }
    body:has(.portal-filters) .portal-mobile-pdf {
        min-height:25px;
        padding:0 2px;
        font-size:10px;
    }
}
@media(max-width:620px){
    body:has(.portal-filters) .portal-mobile-list {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
        padding:0 9px 12px;
    }
    body:has(.portal-filters) .portal-record-open {
        padding:9px 9px 8px;
    }
    body:has(.portal-filters) .portal-record-ident strong {
        font-size:10.5px;
    }
    body:has(.portal-filters) .portal-doc-icon{
        width:23px;height:23px;flex-basis:23px;
    }
    body:has(.portal-filters) .portal-record-protocol{
        font-size:9.5px;
        margin:4px 0 6px;
    }
    body:has(.portal-filters) .portal-record-destination{
        font-size:10.5px;
    }
    body:has(.portal-filters) .portal-record-more{
        padding-top:7px;
        font-size:9.5px;
    }
    body:has(.portal-filters) .portal-record-footer{
        padding:7px 9px;
        font-size:9px;
    }
}
@media(max-width:355px){
    body:has(.portal-filters) .portal-mobile-list{gap:6px;padding-inline:7px}
    body:has(.portal-filters) .portal-record-open{padding:8px}
    body:has(.portal-filters) .portal-record-ident{gap:4px}
    body:has(.portal-filters) .portal-record-ident strong{font-size:10px}
    body:has(.portal-filters) .portal-record-top .portal-priority.urgent{font-size:8px}
    body:has(.portal-filters) .portal-record-footer{padding:7px 8px}
}

/* Etapa 3: quatro filtros responsivos na consulta da Casa Civil. */
@media(min-width:1160px){.portal-filters .portal-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:701px) and (max-width:1159px){.portal-filters .portal-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.portal-filters .portal-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-filters .portal-filter-grid .portal-select-field:nth-child(2){grid-column:auto;grid-row:auto}}

/* Acompanhamento de digitalização: quinto indicador e filtro responsivo. */
@media(min-width:921px){.portal-stats{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:1160px){.portal-filters .portal-filter-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(min-width:701px) and (max-width:1159px){.portal-filters .portal-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.portal-filters .portal-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-filters .portal-filter-grid .portal-select-field:nth-child(2){grid-column:auto;grid-row:auto}}
