:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#16243b;background:#f4f7fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}input,select,textarea{outline:none}input:focus,select:focus,textarea:focus{border-color:#3a80e7!important;box-shadow:0 0 0 3px #3a80e720}button:focus-visible{outline:3px solid #87b6ff}a{color:inherit;text-decoration:none}.login-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-brand{background:linear-gradient(150deg,#0b2445,#123a60 65%,#087d87);color:#fff;padding:9vw 7vw;display:flex;flex-direction:column;justify-content:center}.logo{font-size:23px;letter-spacing:.04em;font-weight:800}.logo span{color:#2fd9c7}.login-brand h1{font-size:clamp(34px,4vw,58px);line-height:1.12;max-width:530px}.login-brand p{line-height:1.7;opacity:.78;max-width:520px}.login-panel{display:flex;align-items:center;justify-content:center;padding:40px}.login-card{width:min(100%,390px)}.eyebrow{color:#17a2a3;font-weight:750;text-transform:uppercase;letter-spacing:.15em;font-size:11px}.login-card h2{font-size:33px;margin:12px 0 8px}.muted{color:#76849a}.login-card label,.form-grid label{display:flex;flex-direction:column;gap:7px;font-weight:650;color:#354562;font-size:13px;margin:18px 0}.login-card input,.form-grid input,.form-grid select,.form-grid textarea,.toolbar select,.toolbar input{border:1px solid #dce4ee;border-radius:11px;background:white;padding:12px 13px;color:#172b44;min-height:42px}.primary{border:none;border-radius:11px;background:#1462bc;color:#fff;font-weight:700;padding:12px 18px}.primary:hover{background:#104b92}.ghost{background:white;border:1px solid #e0e7f1;border-radius:10px;padding:10px 15px;color:#425672;font-weight:650}.danger{color:#b02431}.error{color:#bb283b;font-size:13px;margin:12px 0}.success{color:#13826a;font-size:13px}.app-shell{display:flex;min-height:100vh}.sidebar{width:245px;min-width:245px;background:#0d2441;color:white;padding:29px 17px;display:flex;flex-direction:column;gap:32px}.sidebar .logo{padding:0 10px}.sidebar small{display:block;opacity:.53;font-size:11px;margin:6px 10px 0;letter-spacing:.1em;text-transform:uppercase}.nav{display:flex;flex-direction:column;gap:5px}.nav button{background:transparent;color:#aebdd0;border:0;text-align:left;padding:13px 15px;border-radius:10px;font-weight:620}.nav button.active,.nav button:hover{background:#1d3d61;color:#fff}.sidebar-bottom{margin-top:auto;border-top:1px solid #274365;padding-top:18px;color:#a8b9d0;font-size:13px;line-height:1.7}.sidebar-bottom button{margin-top:8px;background:transparent;color:white;border:1px solid #42617f;border-radius:8px;padding:9px;width:100%}.workspace{flex:1;min-width:0;padding:32px clamp(20px,3vw,52px)}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.topbar h1{margin:5px 0;font-size:28px}.topbar p{color:#8491a4;margin:0;font-size:14px}.pill{background:#e8f4f6;color:#0d818b;border-radius:99px;padding:8px 13px;font-size:12px;font-weight:700}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:22px 0}.metric{background:#fff;border:1px solid #e7edf5;border-radius:16px;padding:22px;box-shadow:0 4px 16px #17345307}.metric label{display:block;color:#78869a;font-size:12px;font-weight:700}.metric strong{font-size:24px;display:block;margin:14px 0 7px;white-space:nowrap}.metric small{color:#90a0b0}.metric.green strong{color:#087b66}.metric.red strong{color:#bd3241}.panel{border:1px solid #e4ebf3;background:#fff;border-radius:16px;margin:18px 0;padding:22px;box-shadow:0 3px 12px #24334d06}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}.panel h2{font-size:17px;margin:0}.toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.toolbar select,.toolbar input{min-height:40px;padding:8px 10px;max-width:210px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;padding:13px;color:#7f8ba0;background:#f7f9fc;font-size:11px;white-space:nowrap;text-transform:uppercase;letter-spacing:.04em}td{padding:15px 13px;border-bottom:1px solid #ecf0f5;white-space:nowrap}tr:last-child td{border:none}td strong{font-weight:700}.status{display:inline-block;padding:5px 9px;border-radius:99px;font-size:11px;font-weight:720}.status.paid{background:#e5f7f0;color:#11816a}.status.unpaid{background:#fff2d8;color:#996913}.status.late{background:#ffe6e6;color:#b53847}.tag{background:#edf2f9;color:#49627c;border-radius:6px;padding:5px 8px}.amount-income{color:#168367;font-weight:750}.amount-expense{color:#bb3c4b;font-weight:750}.empty{text-align:center;padding:42px;color:#8b98a9}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.form-grid .wide{grid-column:1/-1}.form-grid textarea{min-height:80px;resize:vertical}.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}.modal-backdrop{position:fixed;inset:0;background:#0b1b3480;display:flex;justify-content:center;align-items:center;padding:15px;z-index:5}.modal{max-height:95vh;overflow-y:auto;background:#fff;width:min(100%,650px);padding:28px;border-radius:18px;box-shadow:0 24px 55px #111c3d33}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.modal h2{margin:0;font-size:22px}.icon-btn{border:0;background:#eef2f7;border-radius:9px;padding:8px 11px}.project-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.project-card{padding:15px;border-radius:12px;border:1px solid #dfe8f2;background:white;text-align:left}.project-card.active{border-color:#168d9e;background:#e9f8f8}.project-card strong{display:block;margin:0 0 8px}.project-card span{color:#75849a;font-size:12px}.note{font-size:13px;color:#7b8ba1;line-height:1.55}.screen-reader{position:absolute;left:-10000px}.loading{text-align:center;padding:80px}.mobile-only{display:none}@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}.project-strip{grid-template-columns:repeat(3,1fr)}}@media(max-width:760px){.login-screen{grid-template-columns:1fr}.login-brand{padding:45px 27px}.login-brand h1{font-size:28px}.login-panel{padding:40px 22px}.app-shell{display:block}.sidebar{width:auto;min-width:0;display:block;padding:15px}.sidebar .logo{font-size:17px}.sidebar small,.sidebar-bottom{display:none}.nav{flex-direction:row;overflow-x:auto;margin-top:12px}.nav button{flex-shrink:0;padding:9px 10px;font-size:12px}.workspace{padding:20px 14px}.topbar{align-items:flex-start}.topbar h1{font-size:22px}.cards{gap:8px}.metric{padding:15px}.metric strong{font-size:19px}.panel{padding:14px}.panel-heading{display:block}.panel-heading .toolbar{margin-top:12px}.project-strip{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.mobile-only{display:initial}}
/* Central 2.0 — estrutura da planilha original */
.top-filters{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-bottom:23px;padding:12px 16px;background:#fff;border:1px solid #e4ebf3;border-radius:12px}
.top-filters label{font-size:12px;font-weight:700;color:#52647b;display:flex;align-items:center;gap:12px}
.top-filters input{border:1px solid #d9e4ee;background:#f8fafc;border-radius:8px;padding:10px;font:inherit;color:#193655}
.summary-lead{margin-top:24px}
.summary-lead h2{margin:7px 0 5px;font-size:21px;line-height:1.25}
.summary-lead p{margin:5px 0 17px;font-size:13px}
.account-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:14px 0 20px}
.account-card{background:linear-gradient(137deg,#122847,#0b4c66);border-radius:16px;padding:21px 22px;color:#fff;box-shadow:0 9px 17px #0c2c4220}
.account-card:nth-child(2){background:linear-gradient(137deg,#123b51,#116b71)}
.account-card:nth-child(3){background:linear-gradient(137deg,#142a46,#324b73)}
.account-title{font-size:13px;display:flex;align-items:center;gap:8px;opacity:.9;font-weight:700}
.account-dot{width:9px;height:9px;border-radius:99px;background:#4dd7bf}.dot-1{background:#aacbef}.dot-2{background:#d4eafa}
.account-card strong{display:block;font-size:clamp(21px,2.5vw,31px);font-weight:800;margin:22px 0 8px}
.account-card small{opacity:.68;font-size:11px}
.account-card.warning{background:#af662a}
.notice{border-left:3px solid #12a796;background:#e9f8f6;color:#17635c;padding:12px 15px;margin:12px 0;border-radius:8px;font-size:13px;font-weight:650}
.cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.wide-panel{padding:24px 20px}
.panel-heading>div>p{margin:6px 0 0;font-size:13px}
.table-spreadsheet{border:1px solid #e4eaf0;border-radius:12px}
.editable-grid{border-collapse:separate;border-spacing:0;min-width:1000px}
.editable-grid thead th{background:#edf3f8;border-bottom:1px solid #dce5ef;text-transform:none;letter-spacing:0;font-size:12px;white-space:nowrap;color:#234258}
.editable-grid thead tr:first-child th{background:#173451;color:#f0f7fc;border-right:1px solid #365873}
.editable-grid thead tr.subhead th{background:#e8f0f7;color:#36506b}
.editable-grid tbody tr:nth-child(even){background:#f8fafc}
.editable-grid td{padding:7px 8px;border-bottom:1px solid #ebf0f4;white-space:nowrap}
.editable-grid input,.editable-grid select{border:1px solid #dce5ed;border-radius:8px;background:#fff;font-size:12px;font-weight:550;color:#21394e;padding:8px;min-height:36px;max-width:100%}
.editable-grid input:focus,.editable-grid select:focus{border-color:#178faa!important;box-shadow:0 0 0 3px #15a6b221}
.editable-grid input.text-large{min-width:165px;width:175px;font-weight:700}
.editable-grid input.text-doc{width:136px}
.editable-grid input.num-field{width:120px;min-width:115px;font-variant-numeric:tabular-nums}
.editable-grid input.day-field{width:60px;min-width:60px;text-align:center}
.editable-grid .cell-select{min-width:105px}
.editable-grid .text-service{min-width:110px;width:120px}
.editable-grid tfoot th{background:#dcebe9;color:#154a47;font-size:12px}
.small-primary{border:0;border-radius:8px;padding:9px 13px;background:#087e82;color:#fff;font-size:12px;font-weight:760;white-space:nowrap}
.small-primary:hover{background:#05686b}
.operation-block{padding:17px 4px;border-top:1px solid #e5ecf3;margin-top:20px}
.operation-heading{display:flex;align-items:center;gap:12px}
.operation-heading h3{font-size:17px;margin:0}
.operation-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:17px 0}
.operation-fields label{display:flex;flex-direction:column;gap:6px;color:#40536f;font-weight:600;font-size:12px}
.operation-fields input{padding:11px;border-radius:9px;border:1px solid #dae4ee;max-width:100%;font-size:14px}
@media(max-width:1150px){.account-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.operation-fields{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.account-grid{grid-template-columns:1fr;gap:9px}.account-card{padding:16px}.account-card strong{margin:9px 0}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.top-filters{display:block}.top-filters>span{display:block;margin-top:10px}.operation-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.wide-panel{padding:14px 10px}.editable-grid td{padding:5px}.sidebar .nav{margin-top:14px}}

/* Cadastro integrado de clientes e serviços */
.service-fieldset{border:1px solid #dfe8f2;border-radius:12px;margin:14px 0;padding:13px 15px 16px;min-width:0}
.service-fieldset legend{font-size:13px;font-weight:750;color:#354562;padding:0 7px}
.service-fieldset .note{margin:3px 0 12px}
.service-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 15px}
.form-grid .service-option{display:flex;flex-direction:row;align-items:center;margin:0;gap:9px;padding:9px 10px;border:1px solid #e4ebf3;border-radius:9px;background:#f8fafc;cursor:pointer;font-size:13px}
.form-grid .service-option input{min-height:auto;width:17px;height:17px;accent-color:#087e82;flex:none}
@media(max-width:560px){.service-choices{grid-template-columns:1fr}}

/* Fechamentos e equalização */
.closing-highlight { padding:16px; background:#f1f6fb; border:1px solid #dfebf7; border-radius:12px; color:#344c67; margin:10px 0 20px; }
.confirmation{display:flex!important; flex-direction:row!important; align-items:center; gap:9px!important; font-weight:500!important;}
.confirmation input{min-height:auto!important; width:18px; height:18px;}
@media (max-width: 850px) {.closing-highlight{font-size:13px}.panel .panel-heading{flex-wrap:wrap}}

.profile-open{display:block;border:1px solid #cbddec;border-radius:7px;background:#eaf4ff;color:#195b91;padding:5px 8px;margin-bottom:6px;font-size:11px;font-weight:750;cursor:pointer}.profile-open:hover{background:#d8edff}.security-hint{padding:12px;border-radius:9px;border:1px solid #dce9f1;background:#f4f9ff;color:#3a526a;font-size:13px;line-height:1.5}#client-profile-form .wide textarea{width:100%;border:1px solid #dce4ee;border-radius:10px;padding:10px}#client-profile-form label{min-width:0}
