.mobile-menu{display:none}.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:23px}.tool-card{display:grid;grid-template-columns:35px 1fr 16px;align-items:center;text-align:left;gap:3px 12px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:19px;color:var(--ink);position:relative;min-height:95px}.tool-symbol{grid-row:1/3;font-size:25px;color:#719daf}.tool-card strong{font-size:12px}.tool-card small{grid-column:2;color:var(--muted);font-size:9px}.tool-arrow{grid-column:3;grid-row:1/3;color:#8babb9}.tool-card.selected{border-color:#659eb1;background:#eff7fa;box-shadow:inset 0 0 0 1px #659eb13b}.tool-card:hover{border-color:#659eb1}.module-input,.settings-panel,.fiscal-panel,.module-result{padding:25px;margin-bottom:24px}.module-picker{padding:23px 18px;background:#f7fbfc;border:1px dashed #b9ced8;border-radius:8px;display:flex;gap:16px;align-items:center;flex-wrap:wrap}.module-picker>svg{color:var(--teal);width:30px;height:30px}.module-picker>div{flex:1;min-width:170px}.module-picker strong{font-size:12px;display:block}.module-picker>div span{font-size:10px;color:var(--muted);display:block;margin-top:7px}.module-picker label{position:relative;cursor:pointer}.module-picker input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.module-picker.dragging{background:#e1f1f6;border-color:var(--teal)}.file-list{margin:15px 0;max-height:320px;overflow:auto}.file-list>p{padding:10px 5px;color:#98aab4;font-size:11px}.file-item{display:flex;align-items:center;gap:12px;padding:11px 10px;border-bottom:1px solid var(--line)}.file-index{font-size:9px;background:#eaf2f5;color:#608391;min-width:25px;height:25px;display:grid;place-items:center;border-radius:4px}.file-details{flex:1;min-width:0}.file-details strong{display:block;font-size:11px;word-break:break-word;font-weight:600}.file-details small{color:#93a4ad;font-size:9px}.file-actions{display:flex;gap:5px}.module-options{display:flex;gap:18px;flex-wrap:wrap;align-items:flex-end;margin:23px 0}.module-options>div{display:flex;flex-direction:column;gap:7px}.module-options label,.settings-grid label,.salary-control{font-size:11px;color:#638491;font-weight:600}.module-options input[type=number],.salary-control input{width:130px;border:1px solid #dbe5ea;border-radius:6px;padding:9px;color:var(--ink);background:white;font-size:11px}.option-check{display:flex;align-items:center;gap:8px;color:#7d919c;font-size:11px;line-height:1.5}.option-check input{accent-color:var(--teal)}.module-submit{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:22px;padding-top:17px;border-top:1px solid var(--line)}.module-submit>span{font-size:10px;color:#8ba0ab;line-height:1.6}.module-submit>div{display:flex;gap:10px}.module-caption,.module-help{font-size:11px;line-height:1.8;color:#879ca8;margin:23px 0}.result-metrics{display:flex;gap:24px;flex-wrap:wrap;margin:10px 0 20px}.result-metric{padding:13px 18px;border:1px solid var(--line);background:#f7fafc;border-radius:7px;min-width:130px}.result-metric span{display:block;font-size:9px;color:#8a9fac}.result-metric strong{display:block;margin-top:6px;font-size:18px;font-weight:600}.artifact-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;max-height:500px;overflow:auto}.artifact-link{display:flex;gap:15px;justify-content:space-between;align-items:center;padding:16px;border:1px solid var(--line);border-radius:7px;color:var(--teal);background:#f8fcfd}.artifact-link:hover{border-color:#84b0c2}.artifact-link strong{font-size:11px;display:block;word-break:break-word}.artifact-link small{display:block;font-size:9px;color:#93a6b1;margin-top:6px}.artifact-link>span{font-size:22px}.fiscal-search{max-width:330px;margin:0 0 18px}.fiscal-search input{width:100%}.fiscal-panel .table-scroll{border:1px solid var(--line);border-radius:7px}.fiscal-panel th{white-space:nowrap}.fiscal-panel td:first-child{max-width:250px;word-break:break-word}.fiscal-panel td:nth-child(3),.fiscal-panel td:nth-child(4){min-width:220px}.fiscal-panel td:last-child{min-width:300px}.fiscal-panel td strong{display:block;font-size:11px}.fiscal-panel td small{display:block;font-size:9px;color:#76909d;margin-top:5px}.fiscal-export{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:22px;flex-wrap:wrap}.fiscal-export p{width:100%;margin:0;font-size:10px;color:#93a4ad}.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:23px}.settings-grid label{display:flex;flex-direction:column;gap:9px}.settings-grid select{max-width:none}.capability-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.capability-item{padding:17px;border:1px solid var(--line);border-radius:7px;background:#f8fbfc}.capability-item strong{display:block;font-size:12px}.capability-item span{display:block;font-size:10px;margin-top:8px;color:#5c917f}.capability-item.unavailable span{color:#b58a4a}.salary-control{display:flex;gap:18px;align-items:center;margin:10px 0 20px}.contracts-table table{min-width:970px}.contracts-table th{font-size:9px}.contracts-table td{padding:10px 12px}.contracts-table td:first-child{min-width:170px}.contracts-table input{width:100%;border:1px solid #d6e5ec;border-radius:5px;padding:9px;color:var(--ink);background:white;font-size:10px}.history-panel td:first-child{min-width:210px}.history-panel td:last-child{min-width:320px}.history-panel td strong{font-size:11px;display:block}.history-panel td small{font-size:10px;display:block;color:#819aa7;margin-top:6px}.history-download{display:inline-block;font-size:10px;color:var(--teal);text-decoration:underline;text-underline-offset:3px;margin:5px 12px 0 0}.history-message{font-size:10px;line-height:1.7;margin:0 0 6px}.history-panel table{min-width:1080px}.fiscal-reason{font-size:10px}.history-panel .badge.issue{background:#f4dddd;color:#9a5555}.history-panel .badge.busy{background:#fff2d9;color:#9c7d39}
html[data-effective-theme=dark]{--paper:#102735;--ink:#e0eef3;--muted:#99adb9;--line:#294654;--teal:#65b4ce;--deep:#11384a}html[data-effective-theme=dark] .sidebar,html[data-effective-theme=dark] .topbar,html[data-effective-theme=dark] .panel,html[data-effective-theme=dark] .metric,html[data-effective-theme=dark] .tool-card{background:#173545}html[data-effective-theme=dark] .brand{background:white;border-radius:7px;padding:10px;margin-bottom:22px}html[data-effective-theme=dark] .brand img{max-width:100%}html[data-effective-theme=dark] .workflow,html[data-effective-theme=dark] .sidebar-note,html[data-effective-theme=dark] .module-picker,html[data-effective-theme=dark] .upload-card,html[data-effective-theme=dark] .artifact-link,html[data-effective-theme=dark] .result-metric,html[data-effective-theme=dark] .capability-item,html[data-effective-theme=dark] th,html[data-effective-theme=dark] .legend{background:#1d3e50}html[data-effective-theme=dark] .button.primary,html[data-effective-theme=dark] nav .nav-active{background:#08718d;color:white}html[data-effective-theme=dark] input,html[data-effective-theme=dark] select,html[data-effective-theme=dark] .search-box,html[data-effective-theme=dark] .button.secondary,html[data-effective-theme=dark] .page-button{background:#153342;color:#c8e3ef;border-color:#385b6c}html[data-effective-theme=dark] .tool-card.selected{background:#214f61}html[data-effective-theme=dark] .row-name,html[data-effective-theme=dark] .row-reason,html[data-effective-theme=dark] .row-paid,html[data-effective-theme=dark] .row-contract,html[data-effective-theme=dark] .fiscal-panel td,html[data-effective-theme=dark] .contract-heading{color:#204555}html[data-effective-theme=dark] .row-ready td{color:#bed6e1}html[data-effective-theme=dark] .row-ready .row-name,html[data-effective-theme=dark] .row-ready .row-reason,html[data-effective-theme=dark] .row-ready .row-paid,html[data-effective-theme=dark] .row-ready .row-contract{color:#bed6e1}html[data-effective-theme=dark] .notice{background:#514332;color:#f0d9b7;border-color:#786047}html[data-effective-theme=dark] .notice.success{background:#254b3e;color:#c1e7d8}html[data-effective-theme=dark] .notice.info{background:#214658;color:#cae5f3}html[data-effective-theme=dark] dialog{background:#173545;color:#d6e7f0}html[data-effective-theme=dark] .empty-icon{background:#244c60}
@media(max-width:1200px){.tool-card{padding:16px;gap:7px}.tool-symbol{font-size:20px}.tool-card strong{font-size:11px}.settings-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:960px){.sidebar{flex-wrap:wrap}.mobile-menu{display:inline-flex;margin-left:auto}.sidebar nav{display:none;width:100%;margin:0;flex-wrap:wrap}.sidebar.menu-open nav{display:flex}.sidebar nav a,.sidebar nav a:not(.nav-active){display:flex!important;font-size:11px;flex:1;min-width:180px}.sidebar nav a svg{display:block}.sidebar .brand{margin:0}.tool-grid{gap:10px}}
@media(max-width:650px){.tool-grid{grid-template-columns:repeat(2,1fr)}.tool-card{grid-template-columns:25px 1fr;padding:14px;gap:6px 9px}.tool-card strong{font-size:10px}.tool-arrow{display:none}.module-input,.settings-panel,.fiscal-panel,.module-result{padding:18px 15px}.module-picker{padding:17px 13px;gap:12px}.module-picker label{flex:1}.module-picker>div{min-width:220px}.module-picker>svg{display:none}.module-submit{flex-direction:column;align-items:stretch;gap:12px}.module-submit>div{justify-content:space-between}.module-submit .button{width:100%}.module-options{gap:14px}.module-options select{max-width:190px}.artifact-grid,.settings-grid,.capability-grid{grid-template-columns:1fr}.salary-control{flex-direction:column;align-items:flex-start;gap:10px}.fiscal-export{align-items:flex-start}.fiscal-export button{width:100%}.settings-panel .section-heading{align-items:flex-start}.settings-panel .section-heading .button{font-size:9px}.history-panel .table-toolbar h2{margin-bottom:8px}}
/* Menu permanente à esquerda em todas as telas, conforme o desktop. */
@media(max-width:960px){:root{--sidebar:210px}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);height:100dvh;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;padding:25px 12px 20px;border-right:1px solid var(--line);border-bottom:0;gap:0;overflow-y:auto}.sidebar .brand{padding:0 8px 24px;margin:0}.sidebar .brand img{width:178px}.sidebar .workspace-label{display:block;font-size:9px;padding:19px 12px 14px}.sidebar .sidebar-note,.sidebar .sidebar-footer{display:block}.sidebar nav,.sidebar.menu-open nav{display:flex;flex-direction:column;flex-wrap:nowrap;margin:0;gap:6px;width:auto}.sidebar nav a,.sidebar nav a:not(.nav-active){flex:none;min-width:0;padding:13px 10px;font-size:11px;gap:9px}.sidebar nav a svg{display:block;width:18px;height:18px}.mobile-menu{display:none}.app-shell{margin-left:var(--sidebar)}.sidebar-note{margin:auto 4px 20px}.sidebar-footer{margin-inline:8px}.topbar{height:65px}.metrics{grid-template-columns:1fr 1fr}.upload-grid{grid-template-columns:1fr}.tool-grid{grid-template-columns:repeat(2,1fr)}.form-footer{display:block}.ocr-control{margin-bottom:17px}.form-actions{justify-content:space-between}.capability-grid{grid-template-columns:1fr}.module-picker>div{min-width:180px}.sidebar-note p{font-size:10px}html[data-effective-theme=dark] .sidebar .brand{padding:9px;margin-bottom:19px}}
@media(max-width:650px){:root{--sidebar:76px}.sidebar{padding:18px 10px}.sidebar .brand{height:48px;width:48px;padding:0;margin:0 auto 22px;background:url('brand/gac-symbol.png') center/contain no-repeat}.sidebar .brand img{display:none}.sidebar .workspace-label,.sidebar .sidebar-note,.sidebar .sidebar-footer{display:none}.sidebar nav a,.sidebar nav a:not(.nav-active){justify-content:center;gap:0;font-size:0;min-height:45px;padding:12px 8px}.sidebar nav a svg{width:22px;height:22px}.topbar{padding:0 14px}.topbar>div:first-child{font-size:10px}.topbar .environment{display:none}main{padding:24px 13px 18px}.tool-grid,.upload-grid,.settings-grid,.artifact-grid{grid-template-columns:1fr}.metrics{grid-template-columns:1fr 1fr}.metric{padding:13px 10px}.metric strong{font-size:20px}.page-heading h1{font-size:24px}.form-actions{flex-direction:column}.form-actions .button{width:100%}.workflow{grid-template-columns:1fr;gap:14px}.step small{display:block}.step strong{font-size:10px}.module-picker>div{min-width:130px}.module-submit>div{flex-direction:column}.module-options>div{max-width:100%}}
.sidebar{overflow-x:hidden}.sidebar .brand img{max-width:100%}@media(max-height:750px){.sidebar .sidebar-note{display:none}.sidebar .sidebar-footer{margin-top:auto;padding-top:16px}}
@media(max-width:650px){html[data-effective-theme=dark] .sidebar .brand{background:url('brand/gac-symbol.png') center/contain no-repeat;padding:0}}
.conversion-families{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:0 0 23px}.conversion-family{padding:21px 17px;background:white;border:1px solid var(--line);border-radius:9px;text-align:left;color:var(--ink);min-height:135px;display:flex;flex-direction:column;gap:9px}.conversion-family:hover{border-color:#75a8bb}.conversion-family.selected{background:#eff7fa;border-color:#659eb1;box-shadow:inset 0 0 0 1px #659eb12b}.family-symbol{color:#699daf;font-size:22px}.conversion-family strong{font-size:13px}.conversion-family small{color:#91a5af;font-size:10px;line-height:1.6}.conversion-directions{display:inline-flex;padding:4px;background:#edf3f6;border-radius:7px;gap:3px;margin-bottom:20px}.direction-button{border:0;background:transparent;padding:10px 18px;border-radius:5px;color:#7694a3;font-size:11px;font-weight:600}.direction-button.selected{background:white;color:var(--teal);box-shadow:0 1px 5px #2348580d}.conversion-advanced{margin-top:23px;border-top:1px solid var(--line);font-size:11px;color:#688895}.conversion-advanced summary{display:flex;align-items:center;gap:15px;cursor:pointer;padding-top:17px;list-style:none;font-weight:600}.conversion-advanced summary::marker,.conversion-advanced summary::-webkit-details-marker{display:none}.conversion-advanced summary #conversion-defaults{font-weight:400;font-size:10px;color:#96a8b2}.advanced-plus{margin-left:auto;font-size:17px}.conversion-advanced[open] .advanced-plus{transform:rotate(45deg)}html[data-effective-theme=dark] .conversion-family{background:#173545}html[data-effective-theme=dark] .conversion-family.selected{background:#214f61}html[data-effective-theme=dark] .conversion-directions{background:#244858}html[data-effective-theme=dark] .direction-button.selected{background:#326073;color:#d8ecf4}@media(max-width:960px){.conversion-family{padding:18px 13px}.conversion-family strong{font-size:11px}.conversion-family small{font-size:9px}.conversion-families{gap:10px}}@media(max-width:650px){.conversion-families{gap:7px}.conversion-family{padding:13px 9px;min-height:105px}.conversion-family small{display:none}.conversion-family strong{font-size:10px;line-height:1.6}.conversion-family .family-symbol{font-size:19px}.direction-button{padding:9px 11px;font-size:10px}.conversion-advanced summary #conversion-defaults{font-size:8px}}

/* Immediate navigation feedback. Prepared views replace each other in one frame. */
html{scrollbar-gutter:stable}
.table-scroll,.file-list,.artifact-grid,.receipt-preview,dialog{scrollbar-gutter:stable}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}
.navigation-progress{position:fixed;top:0;left:var(--sidebar);right:0;height:3px;z-index:60;background:var(--teal);opacity:0;pointer-events:none;transform-origin:left;transform:scaleX(.15)}
body[data-navigation=loading] .navigation-progress{opacity:1;animation:navigation-progress 1.2s ease-in-out infinite}
#module-nav a.nav-pending{background:#e4f1f6;color:#075e77;box-shadow:inset 3px 0 #168aa6}
html[data-effective-theme=dark] #module-nav a.nav-pending{background:#244e60;color:#e1f2f7}
@keyframes navigation-progress{0%{transform:scaleX(.15)}60%{transform:scaleX(.75)}100%{transform:scaleX(.95)}}
@media(prefers-reduced-motion:reduce){body[data-navigation=loading] .navigation-progress{animation:none;transform:scaleX(.8)}}
