:root{font-family:'Segoe UI',Arial,sans-serif;color:#223841;background:#edf2f5;--accent:#477f8e;--accent-dark:#315f6c;--accent-pale:#e4eff2;--line:#d7e0e4;--muted:#617780;color-scheme:light}
*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.5}body.accent-blue{--accent:#366ea6;--accent-dark:#254f7a;--accent-pale:#e5edf7}body.accent-amber{--accent:#9b6b12;--accent-dark:#72500f;--accent-pale:#fff3d5}a{color:var(--accent-dark);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,.button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}h1,h2,h3,p{margin-top:0}h1{font-size:25px;font-weight:600;line-height:1.25;margin-bottom:8px}h2{font-size:18px;font-weight:600;margin-bottom:16px}h3{font-size:15px;font-weight:600;margin-bottom:12px}p{margin-bottom:14px}.small{font-size:12px}.muted{color:var(--muted)}.text-right{text-align:right}.text-center{text-align:center}
.topbar{height:68px;display:flex;align-items:center;gap:20px;padding:0 25px;background:var(--accent);color:#fff;position:sticky;top:0;z-index:30;box-shadow:0 1px 8px #15374425}.brand{color:white;font-size:20px;font-weight:600;display:flex;align-items:center;gap:12px;white-space:nowrap}.brand:hover{text-decoration:none}.brand-icon{display:inline-flex;align-items:center;justify-content:center;width:37px;height:37px;border-radius:9px;background:#ffffff22;color:inherit;font-size:24px;font-weight:700}.top-user{margin-left:auto;font-size:13px}.profile-link{color:#fff;font-size:13px}.topbar form{margin:0}.topbar .secondary{color:white;border-color:#ffffff70;background:#ffffff10}.nav-toggle{display:none}
.app-layout{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:calc(100vh - 68px)}.sidebar{position:sticky;top:68px;height:calc(100vh - 68px);overflow-y:auto;background:white;border-right:1px solid var(--line);padding:15px 14px 25px}.nav-group{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:#81929a;margin:22px 12px 6px}.nav-group:first-child{margin-top:4px}.nav-link{display:block;padding:9px 12px;border-radius:5px;color:#3e5662;margin:2px 0;font-size:13px}.nav-link:hover{background:#f0f5f7;text-decoration:none}.nav-link.active{background:var(--accent-pale);color:var(--accent-dark);font-weight:600;border-left:3px solid var(--accent)}.main-content{min-width:0;padding:27px 30px;max-width:1760px;width:100%;margin:auto}.footer{font-size:11px;color:#87969d;margin-top:26px;text-align:center}
.card{background:white;border:1px solid var(--line);border-radius:7px;padding:22px;margin-bottom:20px;min-width:0;box-shadow:0 2px 3px #183d4b03}.toolbar,.page-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.toolbar h1,.page-heading h1{margin:0}.toolbar p,.page-heading p{margin:6px 0 0}.section-heading h2{margin:0}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.actions form{margin:0}.button,button.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--accent);border:1px solid var(--accent);border-radius:4px;padding:9px 15px;color:white;font-weight:500;text-decoration:none;line-height:1.3;min-height:38px}.button:hover{background:var(--accent-dark);border-color:var(--accent-dark);text-decoration:none}.button.secondary,button.secondary,.secondary{background:white;border:1px solid #bacbd3;color:#3e5966;padding:9px 14px;border-radius:4px;line-height:1.3}.button.secondary:hover{background:#edf4f7}.button.danger,.danger{background:#fff4f3;border:1px solid #d5aaa5;color:#943d34}.button.danger:hover{background:#fbe4e1}.button.small,.compact{padding:6px 10px;font-size:12px;min-height:30px}.inline-form{display:inline-block;margin:0}.stack{display:grid;gap:15px}
.grid{display:grid;gap:18px;min-width:0}.grid.cols2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.cols3{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:5px;margin-bottom:15px;min-width:0;color:#3d5661;font-weight:500;font-size:13px}.field input,.field select,.field textarea,input[type=search]{display:block;width:100%;border:1px solid #bccbd2;border-radius:4px;background:white;color:#203942;padding:9px 10px;min-height:39px;line-height:1.3;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-pale)}.field input[readonly]{background:#eff3f5}.field textarea{min-height:94px;resize:vertical}.field small{font-weight:400;color:var(--muted)}.field input[type=checkbox]{width:auto;min-height:auto}.check{display:flex;align-items:center;gap:8px;font-size:13px;margin:8px 0 18px}.check input{accent-color:var(--accent)}fieldset{border:1px solid var(--line);border-radius:5px;padding:17px;margin:0 0 20px;min-width:0}legend{padding:0 7px;font-weight:600;color:#3d5b69}.filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.filters .field{flex:1 1 155px}.filters button{margin-bottom:15px}
.table-wrap{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:4px}table{width:100%;border-collapse:collapse;font-size:12.5px;text-align:left}th{background:#eef4f6;color:#42606d;padding:12px 11px;border-bottom:1px solid var(--line);white-space:nowrap;font-weight:600}td{padding:12px 11px;border-bottom:1px solid #e5ecef;vertical-align:middle;overflow-wrap:anywhere;max-width:390px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f8fbfc}td .actions{gap:6px;flex-wrap:nowrap}td .button{white-space:nowrap}table input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px}.badge{display:inline-block;border-radius:4px;padding:3px 7px;background:#e8f0f3;color:#476574;font-size:11px;font-weight:500;white-space:nowrap}.badge.success{background:#e5f2e8;color:#2c6e3d}.badge.danger{background:#fbe8e5;color:#97443c}.badge.warning{background:#fff2d9;color:#866321}.notice{border:1px solid #c9dbe2;border-left:4px solid var(--accent);background:#edf6f9;padding:13px 16px;border-radius:4px;margin-bottom:20px;color:#345766;overflow-wrap:anywhere}.notice p:last-child{margin-bottom:0}.notice.error{background:#fff1ee;border-color:#e6b8ad;color:#963f34}.notice.success{background:#edf7ef;border-color:#bbd6c0;color:#326d40}.empty{text-align:center;padding:30px;color:var(--muted)}
.tabs{display:flex;gap:5px;margin:0 0 20px;border-bottom:1px solid var(--line);overflow-x:auto}.tabs a,.tabs button{padding:11px 16px;background:transparent;border:0;border-bottom:3px solid transparent;color:#607985;white-space:nowrap;border-radius:0;cursor:pointer;text-decoration:none}.tabs a.active,.tabs button.active,.tabs [aria-selected=true]{border-bottom-color:var(--accent);color:var(--accent-dark);font-weight:600}.tab-panel[hidden]{display:none}.customer-photo{display:flex;align-items:center;justify-content:center;min-height:170px;background:#f0f5f7;border:1px dashed #bed0d8;border-radius:5px;overflow:hidden;margin-bottom:12px}.customer-photo img{display:block;max-width:100%;max-height:200px;object-fit:contain}.camera-preview,video[data-camera-video]{display:block;max-width:100%;border-radius:6px;margin:12px 0;background:#193541}canvas{max-width:100%}[hidden]{display:none!important}datalist{display:none}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat{display:block;background:white;border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:6px;padding:17px 19px;color:#3d5864;text-decoration:none}.stat:hover{text-decoration:none;box-shadow:0 3px 10px #24536610}.stat span{font-size:12px}.stat strong{display:block;font-size:24px;font-weight:600;line-height:1.3;margin-top:9px;white-space:nowrap}.stat.attention{border-top-color:#bd8a33}.stat.attention strong{color:#9f7024}.chart{height:230px;display:flex;gap:13px;align-items:flex-end;margin-top:22px}.chart-column{display:flex;flex-direction:column;align-items:center;height:100%;flex:1;min-width:0;gap:7px;font-size:10px;color:#647d88}.chart-value{height:18px;white-space:nowrap;font-size:10px}.chart-track{height:180px;width:100%;display:flex;align-items:flex-end;background:#f3f7f9;border-radius:4px}.chart-bar{width:100%;min-height:2px;background:var(--accent);border-radius:4px 4px 0 0}.reminder-item{display:grid;grid-template-columns:130px 1fr;gap:4px 12px;border-bottom:1px solid var(--line);padding:12px 0;color:#3e5965}.reminder-item time{font-size:12px;color:var(--muted)}.reminder-item span{grid-column:2;font-size:12px}.reminder-item:last-child{border:0}.financial-summary{display:flex;align-items:center;gap:22px;flex-wrap:wrap;background:#edf4f6;border:1px solid var(--line);border-radius:5px;padding:16px;margin:15px 0 20px}.financial-summary strong{display:block;font-size:20px}.report-tabs{gap:7px;margin-bottom:20px}.report-tabs .button{font-size:12px;padding:7px 10px;min-height:32px}
.auth-container{max-width:620px;width:100%;margin:8vh auto;padding:20px}.login-card{padding:32px}.login-card.wide{max-width:620px}.login-brand{display:flex;align-items:center;gap:15px;margin-bottom:25px}.login-brand .brand-icon{background:var(--accent);color:white;width:50px;height:50px}.login-brand h1{font-size:24px;margin:0}.login-brand p{font-size:12px;margin:5px 0 0}.login-card .button{min-height:43px}.login-card .field{margin:0}.login-card>form+.small{display:inline-block;margin-top:22px}
#panel-geral>.grid.cols2{grid-template-columns:minmax(0,2fr) minmax(260px,1fr)}
@media(max-width:1000px){#panel-geral>.grid.cols2{grid-template-columns:1fr}}
@media(min-width:1600px){.main-content{padding-left:42px;padding-right:42px}}@media(max-width:1100px){.app-layout{grid-template-columns:210px minmax(0,1fr)}.main-content{padding:22px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.cols3{grid-template-columns:repeat(2,minmax(0,1fr))}.top-user{display:none}.profile-link{margin-left:auto}}
@media(max-width:760px){.topbar{height:62px;padding:0 14px;gap:12px}.brand{font-size:17px}.brand-icon{width:30px;height:30px;font-size:19px}.profile-link{display:none}.nav-toggle{display:block;margin-left:auto}.app-layout{display:block}.sidebar{display:none;position:fixed;top:62px;bottom:0;left:0;width:260px;z-index:25;height:calc(100vh - 62px);box-shadow:6px 0 12px #18394b20}.nav-open .sidebar{display:block}.main-content{padding:18px 14px}.grid.cols2,.grid.cols3{grid-template-columns:1fr}.stats{gap:10px}.stat{padding:13px}.stat strong{font-size:19px}.card{padding:17px}.toolbar,.page-heading{align-items:flex-start}.toolbar h1,.page-heading h1{font-size:23px}.actions{gap:7px}.button{padding:9px 12px}.chart{gap:8px}.chart-value{font-size:9px}.reminder-item{grid-template-columns:110px 1fr}.auth-container{margin:3vh auto}.login-card{padding:24px}td{max-width:250px}}
@media print{.topbar,.sidebar,.footer,.nav-toggle,.actions,.toolbar>a,.notice{display:none!important}.app-layout{display:block}.main-content{padding:0}.card{border:0;box-shadow:none;padding:0}.table-wrap{overflow:visible}body{background:white}}
/* Identidade visual 2.0 — estrutura e navegação existentes preservadas. */
body.accent-violet{--accent:#7c3aed;--accent-dark:#5b21b6;--accent-pale:#f2ebff}body.accent-indigo{--accent:#4f46e5;--accent-dark:#3730a3;--accent-pale:#eef2ff}body.accent-emerald{--accent:#047857;--accent-dark:#065f46;--accent-pale:#e7f8ef}body.accent-rose{--accent:#be185d;--accent-dark:#9d174d;--accent-pale:#fff0f5}body.accent-red{--accent:#b91c1c;--accent-dark:#991b1b;--accent-pale:#fff1f2}body.accent-orange{--accent:#c2410c;--accent-dark:#9a3412;--accent-pale:#fff2e9}body.accent-slate{--accent:#475569;--accent-dark:#1e293b;--accent-pale:#edf1f7}body.accent-cyan{--accent:#0e7490;--accent-dark:#155e75;--accent-pale:#e5f8fc}body.accent-brown{--accent:#92400e;--accent-dark:#78350f;--accent-pale:#fdf3e5}
.topbar{height:76px;background:linear-gradient(115deg,var(--accent-dark),var(--accent));box-shadow:0 4px 20px #0f172a20}.brand{min-width:190px}.company-brand{display:block;width:auto;max-width:230px;height:49px;object-fit:contain;background:#fff;border-radius:10px;padding:6px 10px}.app-layout{grid-template-columns:258px minmax(0,1fr);min-height:calc(100vh - 76px)}.sidebar{top:76px;height:calc(100vh - 76px);padding:20px 14px 30px;background:linear-gradient(170deg,#182a3d,#101c2c);border-right:0;scrollbar-color:#5c7188 #152336}.nav-group{color:#9eafc4;letter-spacing:.12em;font-size:10px;margin:24px 14px 10px}.nav-link{color:#e1eaf5;font-size:14px;font-weight:500;border-radius:9px;padding:11px 14px;margin:4px 0;transition:background .16s,color .16s}.nav-link:hover{background:#ffffff12;color:#fff}.nav-link.active{background:var(--accent);color:#fff;border-left:3px solid #ffffffc0;box-shadow:0 5px 16px #0002}.card{border-radius:14px;box-shadow:0 6px 22px #0f172a04}.stat{border-radius:12px}.button,button.button,.field input,.field select,.field textarea{border-radius:8px}.main-content{margin:0 auto}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:700;color:var(--accent-dark);margin:0 0 14px}
.auth-page{min-height:100vh;background:radial-gradient(ellipse at 10% 10%,var(--accent-pale),transparent 60%),radial-gradient(ellipse at 95% 95%,#dce5f0,transparent 60%),#f4f7fb}.auth-page .auth-container{width:100%;max-width:1120px;margin:auto;min-height:100vh;padding:48px 30px;display:flex;flex-direction:column;justify-content:center}.auth-shell{display:grid;grid-template-columns:1.05fr 1fr;border:1px solid #ffffffc0;border-radius:26px;overflow:hidden;background:white;box-shadow:0 25px 90px #152a4320}.auth-intro{position:relative;isolation:isolate;overflow:hidden;padding:52px 44px;color:#fff;background:linear-gradient(145deg,var(--accent-dark),var(--accent));display:flex;flex-direction:column;justify-content:center;min-height:570px}.auth-intro .eyebrow{color:#ffffffc7}.auth-intro h2{font-size:37px;line-height:1.16;letter-spacing:-.025em;font-weight:650;position:relative;z-index:1;margin:16px 0 24px}.auth-intro>p:not(.eyebrow){color:#ffffffe0;max-width:310px;font-size:15px;position:relative;z-index:1}.auth-intro .auth-signature{margin-top:70px!important;font-size:12px!important}.auth-decoration{position:absolute;inset:0;z-index:-1;pointer-events:none}.auth-decoration span{position:absolute;width:300px;height:300px;border:1px solid #ffffff26;border-radius:50%;right:-155px;bottom:-100px}.auth-decoration span:nth-child(2){width:420px;height:420px;right:-205px;bottom:-160px}.auth-decoration span:nth-child(3){width:540px;height:540px;right:-260px;bottom:-220px}.auth-shell .login-card{border:0;box-shadow:none;border-radius:0;padding:50px 45px;margin:0;max-width:none;width:100%;display:flex;flex-direction:column;justify-content:center}.login-brand{display:flex;align-items:center;gap:12px;font-size:20px;font-weight:650;margin-bottom:38px;color:var(--accent-dark)}.login-brand .company-brand{height:76px;max-width:290px;padding:0;background:transparent;object-position:left}.auth-shell h1{font-size:29px;letter-spacing:-.02em}.auth-shell form{margin:14px 0 20px}.auth-shell .field input{min-height:47px;background:#f8fafc;border-color:#d4dce6}.auth-shell .button{min-height:47px;font-weight:600}.auth-page .footer{margin-top:25px}.nav-link:focus-visible,.button:focus-visible,a:focus-visible{outline:3px solid #38bdf8;outline-offset:3px}
@media(max-width:760px){.app-layout{grid-template-columns:1fr}.sidebar{top:76px;height:calc(100vh - 76px);width:258px}.brand{min-width:0}.company-brand{max-width:170px;height:44px}.auth-intro{padding:36px 28px}.auth-intro h2{font-size:30px}.auth-shell .login-card{padding:38px 28px}}
@media(max-width:650px){.topbar{gap:10px;padding:0 14px}.top-user{display:none}.brand{font-size:15px}.company-brand{max-width:135px;height:43px}.auth-page .auth-container{padding:24px 16px}.auth-shell{grid-template-columns:1fr;border-radius:20px}.auth-intro{display:none}.auth-shell .login-card{padding:34px 25px;min-height:480px}.login-brand{margin-bottom:28px}.login-brand .company-brand{max-width:230px;height:64px}.main-content{padding:22px 16px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
input[type=hidden]{display:none!important}.auth-shell{width:100%;min-width:0}.auth-intro,.auth-shell form{min-width:0}
