
:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#202e41;background:#f3f5f8;font-synthesis:none;--green:#147d68;--border:#e1e7ee}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}aside{position:fixed;inset:0 auto 0 0;width:226px;background:#102d32;color:#d5e3e3;padding:34px 20px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;color:white;text-decoration:none;align-items:center;font-size:25px;font-weight:750;letter-spacing:2px;padding:0 10px}.brand-mark{font-size:38px;color:#9ad6b8}.brand-sub{display:block;font-size:9px;letter-spacing:2px;margin-top:4px;color:#9eb6b8}.nav-label{font-size:10px;letter-spacing:1.8px;margin:49px 14px 16px;color:#88a3a6}nav a{display:flex;align-items:center;gap:13px;color:#b6cbcd;text-decoration:none;padding:13px 15px;border-radius:7px;margin:5px 0;font-size:14px}nav a.active{background:#25504f;color:#fff;box-shadow:inset 3px 0 #8fd6b1}nav a:hover{background:#204449}.nav-icon{font-size:19px;width:23px}.sidebar-foot{margin-top:auto;padding:20px 10px 0;font-size:11px;color:#b0c7c7}.sidebar-foot small{display:block;color:#729597;margin-top:12px}.online{display:inline-block;width:6px;height:6px;background:#91d4b2;border-radius:50%;margin-right:7px}main{margin-left:226px;padding:34px 40px 18px;max-width:2100px}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:29px}.eyebrow{font-size:10px;letter-spacing:1.3px;color:#69818a;font-weight:700}h1{font-size:30px;margin:12px 0 8px;letter-spacing:-.9px}p{color:#74818e;font-size:13px;margin:0;line-height:1.6}.header-right{display:flex;flex-direction:column;gap:13px;align-items:flex-end;font-size:12px;color:#667780}button{border:1px solid var(--border);background:white;border-radius:6px;padding:10px 14px;color:#354a59;font-weight:600;font-size:12px}button:hover{background:#eef4f2}button.primary{background:var(--green);color:white;border-color:var(--green)}button.danger{color:#b43939}.icon-button{background:transparent;padding:7px 10px}input,select,textarea{border:1px solid #d9e1e7;border-radius:6px;background:#fff;color:#314454;padding:10px;min-width:0;width:100%;font-size:13px}input:focus,select:focus,textarea:focus{outline:2px solid #79bfa8;outline-offset:1px}.toolbar{display:flex;gap:10px;align-items:flex-end;margin-bottom:23px;flex-wrap:wrap}.toolbar label{font-size:10px;color:#758490;min-width:120px;flex:1}.toolbar label:first-child{max-width:164px}.toolbar label input,.toolbar label select{margin-top:6px}.toolbar .actions{display:flex;gap:8px;margin-left:auto;padding-top:10px}.hero-strip{background:#e7efea;border:1px solid #d7e5dd;padding:15px 19px;border-radius:8px;display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;color:#385e51;font-size:12px}.hero-strip strong{display:block;font-size:14px;margin-bottom:4px}.pill{border-radius:30px;background:#fff;padding:6px 10px;font-size:10px;color:#48745c}.cards{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-bottom:22px}.card,.panel{background:white;border:1px solid var(--border);border-radius:9px}.card{padding:19px 19px 16px;position:relative}.card .label{font-size:11px;color:#70808c;display:block;min-height:26px}.card .value{font-size:33px;font-weight:700;letter-spacing:-1px}.card .hint{display:block;font-size:10px;color:#91a0aa;margin-top:9px}.card.emphasis{background:#147d68;color:white;border-color:#147d68}.card.emphasis .label,.card.emphasis .hint{color:#c5e3d9}.card .dot{position:absolute;right:16px;top:17px;font-size:14px;color:#8ca59d}.green{color:#16836b}.red{color:#c04747}.blue{color:#3d80b9}.dashboard-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:18px;margin-bottom:22px}.panel{padding:22px;min-width:0}.panel h2{font-size:15px;margin:0 0 7px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:21px}.panel-head p{font-size:11px}.chart{height:167px;display:flex;align-items:stretch;justify-content:space-around;gap:14px;border-bottom:1px solid #e6ecef;margin-top:24px}.chart-col{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}.bar{background:#bedbce;width:65%;min-height:3px;max-width:46px;border-radius:4px 4px 0 0}.chart-col:last-child .bar{background:#147d68}.chart-number{font-size:11px;color:#456e60;margin-bottom:6px}.chart-day{text-align:center;font-size:10px;color:#85929b;margin-top:12px;position:absolute;top:100%;width:100%}.chart-container{padding-bottom:29px}.progress-row{display:flex;justify-content:space-between;margin:20px 0 9px;font-size:12px}.track{height:7px;background:#edf1f4;border-radius:5px;overflow:hidden}.track span{height:100%;display:block;background:#147d68}.table-panel{padding:0;overflow:hidden}.table-panel .panel-head{padding:20px 22px;margin:0}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px;white-space:nowrap}th{background:#f8fafb;color:#82909b;font-size:10px;letter-spacing:.5px;text-transform:uppercase;font-weight:600;padding:13px 16px;border-block:1px solid #edf0f3}td{padding:16px;border-bottom:1px solid #edf0f3;vertical-align:middle}td.description{white-space:normal;min-width:200px;max-width:340px;font-weight:600;color:#344d59}td small{display:block;font-weight:400;color:#8b98a0;font-size:10px;margin-top:6px}.badge{display:inline-block;font-size:10px;border-radius:5px;padding:6px 8px;background:#edf0f3;color:#697785}.badge.good{background:#e6f4ec;color:#22815e}.badge.warn{background:#fff3d9;color:#a97a15}.badge.bad{background:#fbe9e9;color:#bd4747}.badge.info{background:#e9f1fc;color:#437db8}.status-select{font-size:11px;padding:7px;max-width:175px}.row-actions{display:flex;gap:5px}.row-actions button{font-size:11px;padding:6px 9px}.empty{text-align:center;padding:46px 20px;color:#7c8b97;white-space:normal}.empty strong{display:block;color:#415965;font-size:16px;margin-bottom:9px}footer{margin-top:30px;display:flex;justify-content:space-between;font-size:10px;color:#93a0aa}.settings-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.option-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #edf1f3;font-size:13px}.option-form{display:flex;gap:8px;margin-top:20px}.backup{margin-top:20px}.backup .actions{display:flex;gap:10px;margin-top:20px}.notice{font-size:12px;background:#fff5df;padding:13px;border-radius:6px;color:#886e35;margin-bottom:20px}dialog{border:0;border-radius:12px;box-shadow:0 25px 100px #102d3250;width:min(760px,94vw);max-height:90vh;padding:26px}dialog::backdrop{background:#10232d80}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.dialog-head h2{font-size:21px;margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid label{font-size:12px;color:#637684}.form-grid input,.form-grid select,.form-grid textarea{margin-top:7px}.form-grid .wide{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}.error{color:#b43a3a;font-size:13px;margin:15px 0}.copy-row{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #eee;font-size:13px}.copy-row input{width:auto}.copy-row small{display:block;color:#84939a;margin-top:5px}#toast{position:fixed;bottom:25px;right:25px;background:#173e37;color:white;border-radius:8px;padding:14px 22px;font-size:13px;box-shadow:0 4px 20px #0002;display:none;z-index:20}.deadline{font-size:10px;display:block;margin-top:6px}.section-space{margin-top:20px}button:disabled{opacity:.5;cursor:default}@media(min-width:1700px){body{font-size:18px}main{padding:45px 50px}h1{font-size:38px}.card .value{font-size:44px}td{font-size:15px;padding:20px}.card .label{font-size:14px}}@media(max-width:1100px){aside{width:190px;padding:28px 12px}main{margin-left:190px;padding:26px 22px}.cards{grid-template-columns:repeat(3,1fr)}.dashboard-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.eyebrow{font-size:9px}}@media(max-width:700px){aside{position:static;width:auto;padding:14px}.brand{font-size:18px}.brand-mark{font-size:25px}.nav-label,.sidebar-foot{display:none}nav{display:flex;overflow:auto;margin-top:12px}nav a{white-space:nowrap;font-size:12px;padding:9px;gap:5px}.nav-icon{font-size:14px;width:auto}main{margin-left:0;padding:22px 14px}header{align-items:flex-start}.eyebrow{font-size:8px}h1{font-size:25px}.header-right{font-size:10px;max-width:110px}.cards{grid-template-columns:repeat(2,1fr);gap:10px}.card{padding:15px}.card .value{font-size:29px}.toolbar label{min-width:120px}.toolbar .actions{flex-wrap:wrap;margin-left:0}.hero-strip{gap:10px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}footer span{display:none}.backup .actions{flex-wrap:wrap}}
.amber{color:#a97a15}.status-select{border-left:3px solid #b4bfc7}
.status-select.good{border-left-color:#22815e;color:#22815e;background:#f0f9f4}.status-select.warn{border-left-color:#c9992e;color:#9c7215;background:#fff9ec}.status-select.bad{border-left-color:#bd4747;color:#bd4747;background:#fff2f2}.status-select.info{border-left-color:#437db8;color:#437db8;background:#f0f6ff}

/* Identidade MCM: laranja e grafite. As cores semânticas dos status são preservadas. */
:root{--brand:#ff5b0b;--brand-dark:#a73700;--border:#e5e3e1;color:#393939;background:#f5f5f4}
aside{background:#303030;color:#e6e6e6;border-right:1px solid #414141}
.brand{display:flex;flex-direction:column;gap:10px;padding:15px 10px 12px;background:#fff;border-radius:8px;letter-spacing:0;border-bottom:3px solid var(--brand)}
.brand-logo{display:block;width:100%;height:auto;max-width:210px;object-fit:contain}
.brand-sub{font-size:8px;letter-spacing:1.2px;color:#595959;margin:0;text-align:center}
.nav-label{color:#aaa;margin-top:32px}
nav a{color:#d0d0d0}nav a.active{background:#49362d;color:#fff;box-shadow:inset 3px 0 var(--brand)}nav a.active .nav-icon{color:#ff8e57}nav a:hover{background:#42403f}
.sidebar-foot{color:#c3c3c3}.sidebar-foot small{color:#999}.online{background:#ff8e57}
.eyebrow{color:#8b5137}h1{color:#393939}p,.header-right{color:#707070}
button{color:#4d4d4d}button:hover{background:#fff0e7}button.primary{background:var(--brand);border-color:var(--brand);color:#2a211c}button.primary:hover{background:#e94d00;border-color:#e94d00;color:#211b17}
input,select,textarea{color:#444;border-color:#dcd9d6}input:focus,select:focus,textarea:focus{outline-color:var(--brand)}button:focus-visible,a:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.toolbar label,.form-grid label{color:#737373}.hero-strip{background:#fff0e6;border-color:#f5d7c3;color:#87411f}.pill{color:#9b430f}
.card .label{color:#717171}.card .hint{color:#818181}.card.emphasis{background:var(--brand);border-color:var(--brand);color:#2a211c}.card.emphasis .label,.card.emphasis .hint{color:#472615}
.bar{background:#f8c3a6}.chart-col:last-child .bar,.track span{background:var(--brand)}.chart-number{color:#92502c}.chart-day{color:#777}.track{background:#eeebe8}.chart-container .panel-head .badge{background:#fff0e6;color:#a54313}
th{background:#f8f7f6;color:#777}td.description{color:#454545}td small{color:#808080}footer{color:#808080}.empty{color:#777}.empty strong{color:#505050}
dialog{box-shadow:0 25px 100px #28282850}dialog::backdrop{background:#22222280}#toast{background:#393939;border-left:4px solid var(--brand)}
@media(max-width:700px){.brand{width:176px;padding:9px 10px;gap:5px}.brand-logo{max-width:150px}.brand-sub{font-size:7px;letter-spacing:.7px}aside{border-right:0;border-bottom:3px solid var(--brand)}}
.weekly-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.weekly-tabs button{font-size:12px}.weekly-tabs+section .table-wrap{max-height:65vh;overflow:auto}.weekly-tabs+section th{position:sticky;top:0;z-index:1}.weekly-tabs+section td input:not([type=checkbox]){min-width:125px}.weekly-tabs+section input[type=checkbox]{width:18px;height:18px;accent-color:#ff5b0b}.weekly-tabs+section .toolbar label{max-width:none}aside nav{overflow-y:auto}aside .sidebar-foot{padding-bottom:10px}.print-plan p{margin-bottom:15px}@media print{body{background:white}aside,header,#toolbar,footer,.weekly-tabs,#weekly-body>.table-panel,#weekly-body>.toolbar{display:none!important}main{margin:0;padding:0}#weekly-body>.panel{display:none}#w-plan-detail{display:block}.print-plan{border:0;padding:0}.print-plan .row-actions{display:none}.print-plan .table-wrap{max-height:none!important;overflow:visible!important}.print-plan table{white-space:normal;font-size:9px}.print-plan td,.print-plan th{padding:6px}.print-plan th{position:static}#toast{display:none!important}@page{size:A4 landscape;margin:12mm}}

/* Civil workbook review needs room for source and current-value comparisons. */
dialog:has(#civil-preview),dialog:has(#civil-distribution-form){width:min(1500px,96vw)}
#civil-preview .table-wrap{max-height:52vh;overflow:auto}#civil-preview td{min-width:100px}#civil-preview td:nth-child(2),#civil-preview td:nth-child(3){min-width:220px}#civil-preview th{position:sticky;top:0;background:#f7f6f5;z-index:1}
