:root{--navy:#101b2c;--yellow:#ffe600;--ink:#1c2940;--muted:#677187;--line:#e5e9f0;--bg:#f6f7fa}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:15px/1.5 system-ui,-apple-system,'Segoe UI',Arial,sans-serif}a{color:#064e81;text-decoration:none}h1,h2,h3,p{margin-top:0}.shell{display:flex;min-height:100vh}.sidebar{width:250px;flex:none;background:var(--navy);color:#fff;padding:27px 17px;display:flex;flex-direction:column;gap:23px}.brand{color:#fff;display:grid;padding:6px 12px;line-height:1}.brand strong{font-size:29px;letter-spacing:-.04em}.brand span{font-size:11px;letter-spacing:.3em}.nav-heading{font-weight:800;font-size:10px;letter-spacing:.18em;color:#a4b5ca;margin:16px 12px 0}.sidebar nav{display:grid;gap:3px}.sidebar nav a{color:#d4dfea;display:block;padding:10px 13px;border-radius:8px;font-size:14px}.sidebar nav a:hover,.sidebar nav a.current{background:#ffffff1b;color:var(--yellow)}.sideroot{margin-top:auto;display:grid;gap:13px;padding:12px}.sideroot>a{color:#dde6f3}.sideroot form button{background:none;border:0;color:#fff;text-decoration:underline;padding:0;cursor:pointer}.main{min-width:0;flex:1}.bar{height:67px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:flex-end;padding:0 35px}.mobilebrand,.mobilemenu,.mobile-bottom{display:none}.account{font-size:13px;color:#596879}.page{padding:34px min(4vw,45px) 70px;max-width:1500px;margin:auto}.pageheading{display:flex;justify-content:space-between}.pageheading h1{font-size:30px;letter-spacing:-.04em}.eyebrow{color:#a39600;font-size:10px;letter-spacing:.19em;font-weight:800}.notice{padding:14px;border:1px solid #d0e6c5;background:#f2fff0;border-radius:10px;margin-bottom:20px}.card{background:#fff;border:1px solid var(--line);box-shadow:0 2px 13px #1d355508;border-radius:15px;padding:25px;margin-bottom:20px;min-width:0}.card h2{font-size:19px;margin-bottom:17px;letter-spacing:-.025em}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:23px}.metric{padding:24px;background:#fff;border:1px solid var(--line);border-radius:14px}.metric span{display:block;color:var(--muted);font-size:12px}.metric strong{font-size:32px;letter-spacing:-.05em}.cols{display:grid;grid-template-columns:1fr 1fr;gap:20px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.unit{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fff}.unit b{font-size:22px}.unit small{color:var(--muted);display:block}.unit .occupied{color:#13754b}.unit .vacant{color:#986900}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px;min-width:520px}th{text-align:left;background:#f7f8fa;color:#606f81;text-transform:uppercase;font-size:10px;letter-spacing:.09em}th,td{padding:12px;border-bottom:1px solid var(--line);vertical-align:top}td .btn{margin:2px}.empty{color:#8893a5;text-align:center;padding:30px}.btn{border:0;display:inline-flex;align-items:center;justify-content:center;padding:10px 15px;border-radius:8px;font-weight:750;font-size:13px;background:#dfe5ef;color:var(--ink);cursor:pointer;text-decoration:none;gap:4px}.btn.yellow{background:var(--yellow);color:#17202b}.btn.dark{background:#182c47;color:#fff}.btn.small{padding:7px 10px;font-size:12px}.btn:hover{filter:brightness(.96)}.formgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-bottom:15px}.field{display:flex;flex-direction:column;font-size:12px;font-weight:750;color:#4d5b6a;gap:6px;min-width:0}.field input,.field select,.field textarea{width:100%;font:inherit;color:var(--ink);padding:12px 11px;border-radius:9px;border:1px solid #ccd4df;background:#fff;font-weight:400}.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid #dcd104}.formgrid+.btn,.field+.btn{margin-top:8px}.status{border-radius:999px;font-weight:800;font-size:10px;padding:5px 8px;white-space:nowrap;background:#e6eef5}.status-active,.status-paid{background:#def7e9;color:#136c45}.status-pending,.status-open{background:#fff2bd;color:#7c5e00}.status-cancelled,.status-closed{background:#f4e4e4;color:#8d3434}.note{font-size:13px;color:var(--muted)}.muted{color:var(--muted)}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.link{font-weight:750;text-decoration:underline}pre,code{white-space:pre-wrap;word-break:break-all}.codeblock{padding:14px;background:#f1f5f8;border-radius:10px;border:1px solid #dde5ef;word-break:break-all;white-space:pre-wrap}.qr{max-width:210px;max-height:210px}.alert{padding:12px;background:#fff2cd;border:1px solid #f6df9d;border-radius:9px}.mobile-bottom{display:none}@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}.cols{grid-template-columns:1fr}}@media(max-width:730px){.sidebar{display:none}.bar{height:60px;justify-content:space-between;padding:0 17px}.mobilebrand{display:block;color:#17243a;font-weight:900}.mobilebrand span{font-weight:400;font-size:11px}.mobilemenu{display:block;font-size:12px}.account{display:none}.page{padding:22px 13px 100px}.pageheading h1{font-size:25px}.card{padding:18px}.formgrid,.grid{grid-template-columns:1fr}.cards{gap:9px}.metric{padding:15px}.metric strong{font-size:26px}.mobile-bottom{display:flex;position:fixed;bottom:0;left:0;right:0;overflow:auto;gap:4px;background:#101b2c;padding:9px;z-index:10}.mobile-bottom a{color:#fff;font-size:11px;padding:8px 12px;white-space:nowrap}.status{display:inline-flex}}
/* Athena energy dashboard 3.2: no external chart scripts */
.energy-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:14px 0 22px}
.energy-filters label{display:grid;gap:5px;color:#546276;font-size:12px;font-weight:750;min-width:150px}
.energy-filters input,.energy-filters select{border:1px solid #cbd5e1;border-radius:9px;padding:10px 12px;min-height:40px;background:#fff;font:inherit;color:#182a42;width:100%}
.energy-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 4px}
.energy-kpi{background:#f7f9fc;border:1px solid #e4e9f2;border-radius:12px;padding:16px;min-width:0}
.energy-kpi span,.energy-kpi small{display:block;color:#64758b;font-size:12px}
.energy-kpi strong{display:block;color:#16263d;font-size:25px;letter-spacing:-.04em;margin:5px 0;overflow-wrap:anywhere}
.energy-state{display:inline-block;border-radius:999px;padding:5px 9px;font-weight:750;font-size:11px;white-space:nowrap;background:#edf0f5;color:#40546d}
.energy-state-matched{background:#dcf7e9;color:#11623a}.energy-state-mismatch{background:#ffe7e4;color:#a53128}
.energy-state-review,.energy-state-partial{background:#fff0cc;color:#735900}.energy-state-empty{background:#e8f0fa;color:#365575}
.energy-scroll{overflow-x:auto;padding:8px 2px 2px}
.energy-bars{display:flex;align-items:end;gap:7px;min-width:520px;height:220px;padding:12px 7px 0;border-bottom:1px solid #d8e1ec}
.energy-bar-group{min-width:22px;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:end;height:100%;gap:3px}
.energy-value{height:17px;font-size:10px;color:#586980;white-space:nowrap}
.energy-track{height:156px;display:flex;align-items:end;width:100%;justify-content:center}
.energy-bar{width:min(100%,26px);background:linear-gradient(0deg,#152b4a,#367aa4);border-radius:5px 5px 0 0}
.energy-bar.empty,.energy-bar.missing{background:#d7dfe8}.energy-bar.partial{background:#cfae66}
.energy-bar.mismatch{background:#cf635b}.energy-bar.matched{background:#2b9471}
.energy-day{font-size:11px;font-weight:650;color:#596b82;height:23px}
@media(max-width:1050px){.energy-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:730px){.energy-filters{display:grid;grid-template-columns:1fr 1fr}.energy-filters button{grid-column:1/-1}.energy-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.energy-kpi{padding:11px}.energy-kpi strong{font-size:21px}}
@media(max-width:390px){.energy-filters{grid-template-columns:1fr}}

/* Athena 3.2.1 — navegação e experiência mobile */
:root{--navy:#101d33;--ink:#142641;--muted:#586b84;--line:#e2e8f0;--bg:#f5f7fb;--focus:#e2bd00}
html{scroll-behavior:smooth}
body{font-size:16px;line-height:1.55}
button,input,select,textarea{font-family:inherit}
button,a{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
[hidden]{display:none!important}
.skip-link{position:fixed;left:12px;top:-90px;z-index:200;background:#fff;color:#102035;padding:12px 18px;border-radius:8px}
.skip-link:focus{top:12px}
.sidebar{width:264px;padding:25px 16px;position:sticky;top:0;height:100dvh;overflow-y:auto;scrollbar-width:thin;gap:21px}
.sidebar nav{gap:4px}
.sidebar nav a{display:flex;align-items:center;gap:12px;font-size:15px;padding:11px 12px;min-height:45px;font-weight:550}
.sidebar nav a .nav-icon:last-child{display:none}
.sidebar nav a .nav-icon:first-child{display:block;width:19px;height:19px;flex:none;opacity:.8}
.sidebar nav a.current{background:#263b57;color:#fff;box-shadow:inset 3px 0 0 var(--yellow)}
.sidebar nav a.current .nav-icon{color:var(--yellow);opacity:1}
.sidebar .nav-heading{font-size:11px}
.sideroot form button{font-size:14px;min-height:42px;text-decoration:none}
.nav-icon{width:21px;height:21px;display:inline-block;flex:none}
.page{max-width:1500px;padding-bottom:95px}
.pageheading h1{font-size:clamp(28px,2.3vw,34px);font-weight:800}
.card{padding:25px 27px;border-radius:18px;box-shadow:0 5px 20px #213b6008}
.card h2{font-size:21px;letter-spacing:-.03em;line-height:1.35}
.note{font-size:14px;line-height:1.65}
.field{font-size:14px;gap:8px}
.field input,.field select,.field textarea{font-size:16px;min-height:48px;padding:12px 13px}
.btn{font-size:15px;min-height:44px;padding:11px 17px;border-radius:10px}
.btn.small{font-size:13px;min-height:38px}
.tablewrap table{font-size:14px;min-width:560px}
.tablewrap th{font-size:11px;letter-spacing:.055em}
.tablewrap td,.tablewrap th{padding:13px 12px}
.energy-kpi span,.energy-kpi small{font-size:13px;line-height:1.45}
.energy-kpi strong{font-size:27px}
.energy-state{font-size:12px}
.energy-filters label{font-size:14px}
.energy-filters input,.energy-filters select{min-height:48px;font-size:16px}
.energy-scroll{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
.energy-bars{min-width:100%;width:max-content;height:211px;justify-content:center;gap:12px}
.energy-bar-group{min-width:44px;width:48px;flex:0 0 48px}
.energy-value{font-size:12px;height:21px}
.energy-day{font-size:12px}
.energy-unit-cards{display:none}
.anchor-target{scroll-margin-top:95px}
.mobile-drawer,.mobile-backdrop,.mobile-bottom{display:none}

@media(max-width:730px){
 html{scroll-padding-top:86px}
 body{font-size:16px;line-height:1.58}
 .sidebar{display:none}
 .shell{display:block;min-height:100dvh}
 .main{width:100%;min-width:0}
 .bar{height:70px;padding:0 18px;position:sticky;top:0;z-index:20;background:#fff;box-shadow:0 1px 12px #1d2e480d;justify-content:space-between}
 .mobilebrand{display:inline-flex;align-items:baseline;gap:4px;font-size:21px;font-weight:900;color:#11233c;letter-spacing:-.04em}
 .mobilebrand span{font-size:11px;font-weight:650;letter-spacing:.14em}
 .mobilemenu{display:inline-flex;align-items:center;gap:8px;justify-content:center;min-height:44px;padding:8px 13px;border:1px solid #dbe3ef;border-radius:12px;background:#f8faff;color:#132943;font-size:15px;font-weight:700;cursor:pointer}
 .mobilemenu .nav-icon{width:22px;height:22px}
 .account{display:none}
 .page{width:100%;padding:20px 14px calc(125px + env(safe-area-inset-bottom,0px));max-width:none;overflow-wrap:anywhere}
 .pageheading{margin-bottom:18px}
 .pageheading h1{font-size:29px;line-height:1.17;letter-spacing:-.035em;margin-bottom:0}
 .eyebrow{font-size:11px;letter-spacing:.12em;margin-bottom:8px}
 .card{border-radius:17px;padding:19px 16px;margin-bottom:14px;box-shadow:0 3px 14px #182f5108}
 .card h2{font-size:20px;line-height:1.3;margin-bottom:16px}
 .alert{font-size:15px;line-height:1.62;padding:14px 15px;border-radius:12px}
 .note{font-size:14px;line-height:1.6}
 .formgrid,.grid,.cols{grid-template-columns:minmax(0,1fr)}
 .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .metric{padding:16px;border-radius:13px;min-width:0}
 .metric strong{font-size:26px;overflow-wrap:anywhere}
 .metric span{font-size:13px}
 .field{font-size:14px;line-height:1.3;gap:9px}
 .field input,.field select,.field textarea{font-size:16px;min-height:50px;border-radius:11px}
 form .btn:not(.small){min-height:49px;padding:13px 16px;font-size:15px}
 .formgrid+button,.formgrid+.btn{width:100%}
 .energy-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
 .energy-filters label{font-size:14px;min-width:0;gap:8px}
 .energy-filters input,.energy-filters select{font-size:16px;min-width:0;min-height:50px}
 .energy-filters button{grid-column:1/-1;width:100%}
 .energy-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .energy-kpi{padding:15px 12px;border-radius:13px}
 .energy-kpi span,.energy-kpi small{font-size:13px}
 .energy-kpi strong{font-size:22px;line-height:1.25;margin:9px 0 6px}
 .energy-scroll{margin:2px 0 13px}
 .energy-bars{height:207px;padding-bottom:0;gap:9px}
 .energy-bar-group{min-width:41px;width:42px;flex-basis:42px}
 .energy-value{font-size:12px}
 .energy-unit-cards{display:grid;gap:10px}
 .energy-unit-card{display:grid;gap:10px;background:#fff;border:1px solid #dfe6ef;border-radius:14px;padding:15px;box-shadow:0 2px 7px #17345108}
 .energy-unit-card.selected{border:2px solid #193754;padding:14px;background:#f8fbff}
 .energy-unit-head{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
 .energy-unit-head strong{font-size:17px;color:#152842}
 .energy-unit-value{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
 .energy-unit-value strong{font-size:23px;color:#142842;letter-spacing:-.025em}
 .energy-unit-value small{font-size:13px;color:#51657d}
 .energy-unit-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:9px;border-top:1px solid #e5e9ef}
 .energy-unit-meta>span{display:flex;flex-direction:column;font-size:14px;font-weight:750}
 .energy-unit-meta small{display:block;font-size:12px;color:#61718a;font-weight:500}
 .energy-unit-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
 .energy-unit-actions a{display:inline-flex;align-items:center;justify-content:center;border-radius:10px;font-weight:750;font-size:14px;min-height:44px;padding:9px 13px}
 .energy-unit-actions a:first-child{background:#102d4c;color:#fff;flex:1}
 .energy-unit-actions a:last-child{color:#1c4f78;border:1px solid #d4e0ec}
 .energy-compare-desktop{display:none}
 /* Tabelas compactas transformadas em cartões legíveis, sem rolagem horizontal. */
 .tablewrap{overflow:visible;width:100%;max-width:100%}
 .tablewrap table{display:block;min-width:0;width:100%;font-size:14px}
 .tablewrap table thead{display:none}
 .tablewrap table tbody{display:grid;gap:10px}
 .tablewrap table tbody tr:not(.table-empty-row){display:grid;border:1px solid #e0e7f0;border-radius:13px;background:#fff;padding:4px 14px;box-shadow:0 2px 8px #243b5008}
 .tablewrap table tbody td{display:grid;grid-template-columns:minmax(105px,42%) minmax(0,1fr);align-items:start;gap:12px;border-bottom:1px solid #edf0f4;padding:11px 0;font-size:14px;overflow-wrap:anywhere}
 .tablewrap table tbody td:last-child{border-bottom:0}
 .tablewrap table tbody td::before{content:attr(data-label);color:#65758b;font-size:12px;font-weight:750;line-height:1.35;word-break:normal}
 .tablewrap table tbody td .btn{max-width:100%;white-space:normal}
 .tablewrap table tbody td form{min-width:0;max-width:100%}
 .tablewrap table tbody td form .field{margin-bottom:8px}
 .tablewrap table tbody tr.table-empty-row{display:block;text-align:center}
 .tablewrap table tbody tr.table-empty-row td{display:block}
 .tablewrap table tbody tr.table-empty-row td::before{display:none}
 .mobile-bottom{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;width:100%;z-index:40;gap:0;background:rgba(255,255,255,.98);border-top:1px solid #e2e8f2;box-shadow:0 -5px 22px #14294c15;padding:6px 6px calc(7px + env(safe-area-inset-bottom,0px));overflow:visible}
 .mobile-bottom .bottom-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:62px;color:#66768b;font-size:12px;font-weight:650;white-space:normal;text-align:center;padding:6px 1px;background:transparent;border:0;border-radius:12px;cursor:pointer;line-height:1.2}
 .bottom-tab .nav-icon{width:23px;height:23px}
 .mobile-bottom .bottom-tab.active{background:#edf3fb;color:#102c50;font-weight:800}
 .mobile-bottom .bottom-tab.active .nav-icon{stroke-width:2.3}
 .mobile-bottom .bottom-tab span{width:100%;overflow:hidden;text-overflow:ellipsis}
 .mobile-backdrop{display:block;position:fixed;inset:0;background:#102035ad;backdrop-filter:blur(2px);z-index:60}
 .mobile-drawer{position:fixed;inset:0 auto 0 0;display:flex;width:min(87vw,360px);max-width:360px;height:100dvh;flex-direction:column;padding:0;background:#fff;box-shadow:14px 0 40px #091b3333;z-index:70;overflow-y:auto;overscroll-behavior:contain}
 .nav-is-open{overflow:hidden}
 .drawer-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:23px 21px 19px;background:#102035;color:#fff}
 .drawer-head>div{display:grid;line-height:1}
 .drawer-head strong{font-size:28px;letter-spacing:-.04em}
 .drawer-head span{font-size:11px;letter-spacing:.26em;margin-top:3px}
 .drawer-close{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;border:1px solid #ffffff45;background:#ffffff16;color:#fff;cursor:pointer}
 .drawer-profile{display:flex;align-items:center;gap:12px;padding:20px 20px 13px}
 .profile-avatar{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:#e9eff7;color:#19314d;font-size:20px;font-weight:800}
 .drawer-profile div{display:grid;gap:1px;min-width:0}
 .drawer-profile strong{font-size:15px;overflow-wrap:anywhere}
 .drawer-profile small{font-size:13px;color:#627086}
 .drawer-caption{font-size:11px;color:#7a8797;letter-spacing:.13em;font-weight:800;padding:14px 22px 5px;margin:0}
 .drawer-links{display:grid;gap:3px;padding:6px 12px 13px}
 .drawer-links a{display:flex;gap:12px;align-items:center;min-height:49px;padding:11px 12px;border-radius:12px;color:#243c58;font-size:15px;font-weight:600}
 .drawer-links a .nav-icon:first-child{width:21px;height:21px;color:#60758c}
 .drawer-links a .nav-icon:last-child{width:16px;height:16px;margin-left:auto;color:#9ba9b9}
 .drawer-links a.current{background:#edf3fc;color:#113c65;font-weight:800}
 .drawer-links a.current .nav-icon:first-child{color:#153f64}
 .drawer-footer{margin-top:auto;display:grid;gap:5px;padding:14px 18px calc(25px + env(safe-area-inset-bottom,0px));border-top:1px solid #e8edf3}
 .drawer-footer>a,.drawer-footer form{display:flex;align-items:center;gap:10px;padding:9px 8px;color:#334b64;font-size:15px}
 .drawer-footer form button{min-height:40px;border:0;padding:0;background:none;color:#334b64;font-size:15px;font-weight:650;text-decoration:none;cursor:pointer}
}
@media(max-width:390px){
 .page{padding-inline:11px}
 .card{padding:17px 13px}
 .energy-filters{grid-template-columns:1fr}
 .mobile-bottom .bottom-tab{font-size:11.5px}
 .tablewrap table tbody td{grid-template-columns:minmax(84px,38%) minmax(0,1fr);gap:10px}
}
@media(min-width:731px){.mobile-drawer,.mobile-bottom,.mobile-backdrop{display:none!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

@media(max-width:350px){.mobile-bottom .bottom-tab{font-size:11px}}
/* Sair da conta é uma ação secundária, não a ação principal do painel. */
.sideroot form button.btn.yellow{background:transparent;color:#eef4ff;border:1px solid #ffffff38;padding:9px 13px;min-height:42px;font-size:14px;border-radius:10px}
@media(max-width:730px){.drawer-footer form button.btn.yellow{background:transparent;border:0;color:#334b64;padding:4px 0;box-shadow:none;min-height:40px;font-size:15px}}
