@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
:root{font-family:Inter,Arial,sans-serif;color:#243442;background:#f4f7f9;font-size:13px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}input,select,textarea{background:white;border:1px solid #dce4eb;border-radius:9px;padding:10px;color:#223643;max-width:100%}input:focus,select:focus,textarea:focus{outline:2px solid #8bccc3}.shell{display:flex;min-height:100vh}.side{width:247px;background:#fff;border-right:1px solid #e4ebee;display:flex;flex-direction:column;flex-shrink:0;min-height:100vh;position:sticky;top:0;height:100vh}.brand{padding:19px 20px;border-bottom:1px solid #edf1f2;display:flex;align-items:center;gap:11px}.brand img{width:83px;height:56px;object-fit:contain}.brand strong{font-size:16px;letter-spacing:.02em;color:#205c66}.brand small{display:block;color:#82909a;margin-top:4px}.side nav{padding:18px 11px;overflow:auto;flex:1}.nav{width:100%;display:flex;gap:12px;align-items:center;border:0;background:transparent;padding:12px;text-align:left;border-radius:9px;color:#556a78;margin-bottom:3px;font-weight:600}.nav:hover,.nav.active{background:#eaf4f3;color:#166a70}.nav span{font-size:17px;width:22px;text-align:center}.foot{padding:17px;color:#71818b;border-top:1px solid #edf1f2;font-size:11px}.main{flex:1;min-width:0}.top{background:#fff;border-bottom:1px solid #e5ecef;display:flex;gap:20px;align-items:center;justify-content:space-between;padding:18px 25px;flex-wrap:wrap}.top h1{font-size:22px;margin:0 0 5px}.muted{color:#80919d}.top small{color:#81909d}.top .right{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.content{padding:24px;max-width:1550px;margin:auto}.btn{border:1px solid #dce4e8;background:white;color:#325463;padding:10px 14px;border-radius:9px;font-weight:600}.btn:hover{filter:brightness(.95)}.btn.primary{background:#236b73;color:#fff;border-color:#236b73}.btn.danger{color:#ae5555}.btn.tiny{font-size:11px;padding:6px 9px}.panel{background:#fff;border:1px solid #e4ecee;border-radius:13px;padding:19px;margin-bottom:18px;box-shadow:0 3px 12px #23364706}.panel h2,.panel h3{margin:0 0 13px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:14px;margin-bottom:20px}.metric{background:#fff;border:1px solid #e2e9ec;padding:20px;border-radius:13px;border-top:3px solid #7fbab8}.metric:nth-child(2){border-top-color:#dab78a}.metric:nth-child(3){border-top-color:#8fbd97}.metric:nth-child(4){border-top-color:#d8a2a2}.metric small{display:block;color:#70838f;font-weight:600}.metric strong{display:block;font-size:30px;margin-top:13px}.twocol{display:grid;grid-template-columns:1.2fr 1fr;gap:18px}.row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.line{border-bottom:1px solid #e9eff0;padding:12px 0;display:flex;gap:12px;align-items:center;justify-content:space-between}.badge{display:inline-block;border-radius:7px;padding:5px 8px;background:#f5e8d7;color:#946c34;font-size:11px;font-weight:700}.badge.Concluído{background:#ddede4;color:#367b5e}.badge.Em-andamento{background:#e3edf8;color:#507ea6}.badge.Atrasado{background:#f6dddd;color:#a95555}.badge.Dispensado{background:#eee;color:#777}.tablebox{width:100%;overflow:auto;border:1px solid #e4ebef;border-radius:12px;background:white}table{border-collapse:collapse;min-width:850px;width:100%;text-align:left}th{background:#edf3f5;color:#536f7a;font-size:11px;text-transform:uppercase;letter-spacing:.025em;padding:13px}td{padding:12px;border-top:1px solid #eaf0f3;vertical-align:middle}tbody tr:nth-child(even){background:#f8fafb}tbody tr:hover{background:#eaf6f4}.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:0 0 16px}.toolbar input{width:280px}.kanban{display:flex;align-items:stretch;gap:13px;overflow-x:auto;padding-bottom:12px}.lane{min-width:230px;width:25%;background:#f2f5f8;border-radius:12px;padding:12px}.lane.pendente{background:#f8f2e9}.lane.andamento{background:#eef3f8}.lane.concluido{background:#edf6ee}.lane.atrasado{background:#f8eeee}.lane h3{margin:4px 0 15px;font-size:13px}.task{background:white;border:1px solid #e7eef0;border-radius:10px;padding:13px;margin-bottom:10px;box-shadow:0 2px 5px #22334409}.task small{display:block;margin:8px 0;color:#778997}.task select{padding:7px;width:100%}.overlay{position:fixed;inset:0;background:#10243184;display:grid;place-items:center;padding:16px;z-index:5}.dialog{background:white;border-radius:15px;width:min(750px,100%);max-height:92vh;overflow:auto;padding:24px;box-shadow:0 20px 55px #1235}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-weight:600;color:#526673;font-size:12px}.field textarea{min-height:100px;resize:vertical}.span2{grid-column:span 2}.loginpage{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#e5f5f3,#f6f9fb);padding:20px}.loginbox{width:min(430px,100%);padding:32px;background:white;border:1px solid #dce9ea;border-radius:17px;box-shadow:0 15px 50px #22404820}.loginbox img{max-width:200px;height:95px;object-fit:contain;display:block;margin:0 auto}.loginbox h1{text-align:center;margin:8px 0;font-size:24px}.loginbox p{text-align:center;color:#81909b;line-height:1.6}.loginbox input{width:100%;margin-bottom:11px}.loginbox button{width:100%}.error{color:#aa4242;margin:10px 0;min-height:18px}.notice{background:#eaf6f4;border:1px solid #d1e9e5;color:#42666b;border-radius:10px;padding:13px;margin-bottom:16px;line-height:1.5}.tinytext{font-size:11px;color:#82939c}.checkgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.checkgrid label{background:#f5f8f9;padding:9px;border-radius:7px}.empty{padding:38px;text-align:center;color:#8998a1}.scroll{overflow:auto}.hide{display:none!important}@media(max-width:1000px){.metrics{grid-template-columns:repeat(2,1fr)}.twocol{grid-template-columns:1fr}.side{width:200px}}@media(max-width:700px){.shell{display:block}.side{position:static;width:100%;height:auto;min-height:0}.side nav{display:flex;overflow:auto;padding:8px}.nav{min-width:150px}.foot{display:none}.brand{padding:10px}.content{padding:14px}.top{padding:13px}.metrics{grid-template-columns:repeat(2,1fr)}.formgrid{grid-template-columns:1fr}.span2{grid-column:auto}.lane{min-width:240px}}

/* Ajustes V2.1 */
.brand{display:flex;flex-direction:column;gap:3px;align-items:center;text-align:center;padding:17px 11px 13px}.brand img{width:160px;height:91px;max-width:100%;object-fit:contain}.brand strong{font-size:16px;letter-spacing:.07em;white-space:nowrap;margin-top:4px}.brand small{margin-top:3px}.sidebar-toggle{background:transparent;border:0;border-bottom:1px solid #edf1f2;color:#52717a;padding:11px 15px;text-align:left;font-size:12px;cursor:pointer}.pagehead{display:flex;gap:11px;align-items:center}.periodall{display:flex;gap:5px;align-items:center;white-space:nowrap;color:#536b78;font-size:12px}.periodall input{accent-color:#236b73}.metric{font:inherit;text-align:left;cursor:pointer;transition:transform .15s,box-shadow .15s;width:100%}.metric:hover,.metric:focus-visible{transform:translateY(-2px);box-shadow:0 5px 14px #25495614;outline:2px solid #c6e4dc}.lane.dragover{outline:2px dashed #268c7e;outline-offset:-3px;background:#d9f0ea}.task[draggable=true]{cursor:grab}.task:active{cursor:grabbing}.task-status{font-size:11px;padding:6px;width:135px}.selectall{color:#236b73;font-size:12px;font-weight:700}.selectall input{accent-color:#236b73}.shell.collapsed .side{width:0;min-width:0;overflow:hidden;border:0}.shell.collapsed .main{width:100%}.tablebox th{white-space:nowrap}.tablebox td{max-width:230px;overflow-wrap:anywhere}@media(max-width:700px){.shell.collapsed .side{display:none}.brand img{height:72px}.sidebar-toggle{display:block}}

/* V2.2 — tabelas: leitura, barras de rolagem e cabeçalho fixo */
.tabletopscroll{height:13px;overflow-x:auto;overflow-y:hidden;margin:0 0 5px;border-radius:7px;scrollbar-color:#94b5bf #e5eef1;scrollbar-width:thin}
.tabletopspacer{height:1px}
.tablebox{max-height:min(69vh,740px);overflow:auto;scrollbar-color:#91b5c0 #e8f0f3;scrollbar-width:thin;overscroll-behavior:contain}
.tablebox thead th{position:sticky;top:0;z-index:2;background:#dfecef;box-shadow:inset 0 -1px #c9dde1;vertical-align:middle;white-space:normal;line-height:1.35;min-width:82px}
.tablebox th,.tablebox td{box-sizing:border-box}
.module-table table{width:max-content;min-width:100%;table-layout:fixed}
.module-table th,.module-table td{min-width:100px;max-width:185px;overflow-wrap:anywhere}
.module-table th:first-child,.module-table td:first-child{width:290px;min-width:290px;max-width:290px}
.module-table th:nth-child(2),.module-table td:nth-child(2){width:106px;min-width:106px;max-width:106px}
.module-table th:last-child,.module-table td:last-child{min-width:142px;max-width:160px}
.module-table.simples th:nth-child(3),.module-table.simples td:nth-child(3){width:65px;min-width:65px;max-width:65px;text-transform:uppercase}
.module-table.simples th:nth-child(9),.module-table.simples td:nth-child(9){width:82px;min-width:82px;max-width:82px}
.module-table.simples th:nth-child(8),.module-table.simples td:nth-child(8),.module-table.simples th:nth-child(10),.module-table.simples td:nth-child(10),.module-table.simples th:nth-child(11),.module-table.simples td:nth-child(11),.module-table.simples th:nth-child(12),.module-table.simples td:nth-child(12){width:125px;min-width:125px;max-width:125px;font-variant-numeric:tabular-nums}
.module-table.simples th:nth-child(13),.module-table.simples td:nth-child(13){width:104px;min-width:104px;max-width:104px}
.module-table.simples th:nth-child(4),.module-table.simples td:nth-child(4){width:130px;min-width:130px;max-width:130px}
.metric{border-top-width:4px}.metric:nth-child(1){border-top-color:#559d9b}.metric:nth-child(2){border-top-color:#d0a164}.metric:nth-child(3){border-top-color:#69a77a}.metric:nth-child(4){border-top-color:#c77f7f}
.lane.pendente{background:#f6ead9}.lane.andamento{background:#e4edf7}.lane.concluido{background:#e3f0e5}.lane.atrasado{background:#f5e4e4}
.badge{background:#f2dfc3;color:#805b27}.badge.Concluído{background:#cfe5d8;color:#276747}.badge.Em-andamento{background:#d2e4f6;color:#35658c}.badge.Atrasado{background:#f0cccc;color:#923d3d}
.nav:hover,.nav.active{background:#dcefee;color:#12626a}
/* Modo escuro chumbo mantendo as cores de referência */
html[data-theme="dark"]{color-scheme:dark;background:#202a31}
html[data-theme="dark"] body,html[data-theme="dark"] .shell{background:#202a31;color:#e3ebef}
html[data-theme="dark"] .side,html[data-theme="dark"] .top,html[data-theme="dark"] .panel,html[data-theme="dark"] .metric,html[data-theme="dark"] .tablebox,html[data-theme="dark"] .dialog,html[data-theme="dark"] .task,html[data-theme="dark"] .loginbox{background:#2b3942;color:#e3ebef;border-color:#43535b}
html[data-theme="dark"] .brand,html[data-theme="dark"] .foot{border-color:#43535b}
html[data-theme="dark"] .brand strong,html[data-theme="dark"] .top h1{color:#e6f4f1}
html[data-theme="dark"] .nav{color:#b7cbd2}
html[data-theme="dark"] .nav:hover,html[data-theme="dark"] .nav.active{background:#35585d;color:#e0fcf8}
html[data-theme="dark"] .btn,html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .checkgrid label{background:#354750;color:#e4edf0;border-color:#526773}
html[data-theme="dark"] .btn.primary{background:#236b73;color:white}
html[data-theme="dark"] .btn.danger{color:#f2a5a5}
html[data-theme="dark"] .tablebox th{background:#3a515c;color:#e4f0f2;box-shadow:inset 0 -1px #5c7580}
html[data-theme="dark"] .tablebox td{border-color:#40535e}
html[data-theme="dark"] tbody tr:nth-child(even){background:#30414a}
html[data-theme="dark"] tbody tr:hover{background:#39565a}
html[data-theme="dark"] .lane{background:#34444c}
html[data-theme="dark"] .lane.pendente{background:#4a4137}
html[data-theme="dark"] .lane.andamento{background:#354658}
html[data-theme="dark"] .lane.concluido{background:#35483f}
html[data-theme="dark"] .lane.atrasado{background:#4c3b3d}
html[data-theme="dark"] .muted,html[data-theme="dark"] .tinytext,html[data-theme="dark"] .top small,html[data-theme="dark"] .metric small,html[data-theme="dark"] .field label{color:#b7c6cf}
html[data-theme="dark"] .notice{background:#304c4d;color:#d5efea;border-color:#52716e}
html[data-theme="dark"] .loginpage{background:linear-gradient(135deg,#20373b,#222a32)}
html[data-theme="dark"] .loginbox p{color:#bfd0d4}
@media(max-width:700px){.module-table th:first-child,.module-table td:first-child{min-width:210px;max-width:210px;width:210px}}
