:root{--navy:#102b46;--navy2:#173d5e;--ink:#183047;--muted:#718196;--line:#e6ebf0;--paper:#fff;--bg:#f4f7fa;--amber:#ed9a27;--amber-dark:#cf7b0b;--green:#14845e;--red:#bd4b4b;--blue:#3575b8;--shadow:0 5px 18px rgba(20,45,69,.055)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 "Segoe UI",Arial,sans-serif}button,input,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:flex}.sidebar{width:244px;flex:0 0 244px;background:var(--navy);color:#dce6f0;padding:25px 16px 16px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;padding:0 12px 32px;color:#fff}.brand-mark{height:36px;width:36px;border-radius:11px;background:var(--amber);display:grid;place-items:center;color:#fff;font-size:21px;font-weight:800;box-shadow:0 5px 16px #ed9a2740}.brand strong{display:block;font-size:15px;letter-spacing:.01em}.brand small{display:block;font-size:9px;letter-spacing:.17em;color:#9db0c4;margin-top:2px}.workspace-label,.eyebrow{font-size:10px;font-weight:750;letter-spacing:.14em;color:#8293a6}.workspace-label{padding:0 13px 11px}.nav-list{display:grid;gap:5px}.nav-item{border:0;background:transparent;color:#b8c7d7;width:100%;text-align:left;padding:11px 13px;border-radius:8px;display:flex;align-items:center;gap:12px;font-weight:600;transition:.15s}.nav-item:hover{background:#ffffff12;color:#fff}.nav-item.active{color:#fff;background:#ffffff17;box-shadow:inset 3px 0 var(--amber)}.nav-icon{width:19px;text-align:center;font-size:18px;color:#a9b9c9}.nav-item.active .nav-icon{color:#f4af51}.sidebar-bottom{margin-top:auto}.offline-status{display:flex;align-items:center;gap:10px;padding:12px 13px;border:1px solid #ffffff1b;border-radius:9px;margin:0 2px 16px}.offline-status i,.local-pill i{width:8px;height:8px;border-radius:50%;background:#41c78e;display:inline-block;box-shadow:0 0 0 3px #41c78e22}.offline-status strong,.offline-status small{display:block}.offline-status strong{font-size:11px;color:#edf3f8}.offline-status small{font-size:10px;color:#91a5b9;margin-top:2px}.nav-item.subtle{font-size:12px;padding:8px 13px;color:#9fb0c1}.nav-item.subtle .nav-icon{font-size:15px}.version{font-size:9px;color:#71869b;padding:17px 13px 0}.main-area{min-width:0;flex:1;padding:0 36px 42px;max-width:1800px;margin:0 auto;width:calc(100% - 244px)}.topbar{height:90px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:26px}.topbar h1{font-size:23px;margin:2px 0 0;letter-spacing:-.025em}.topbar .eyebrow{color:#8997a7}.top-actions{display:flex;align-items:center;gap:16px}.local-pill{color:#69798b;font-size:11px;display:flex;align-items:center;gap:8px}.local-pill i{width:7px;height:7px}.btn{border:1px solid transparent;border-radius:7px;padding:10px 15px;font-weight:650;transition:.16s;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn-primary{color:#fff;background:var(--navy2);box-shadow:0 3px 7px #173d5e20}.btn-primary:hover{background:#205377;transform:translateY(-1px)}.btn-outline{color:var(--navy2);border-color:#d9e1e8;background:#fff}.btn-outline:hover{border-color:#a9bbc9;background:#f9fbfc}.btn-light{background:#fff;color:var(--navy);margin-top:12px}.btn-light:hover{background:#fff7eb}.btn-large{padding:14px 22px;font-size:14px}.btn.small{padding:8px 11px;font-size:11px;margin-left:auto}.text-button{border:0;background:none;color:#a8680e;font-weight:650;padding:8px}.page{display:none;animation:fade .2s ease}.page.active{display:block}@keyframes fade{from{opacity:.55;transform:translateY(3px)}to{opacity:1;transform:none}}.welcome-banner{min-height:220px;border-radius:13px;padding:30px 36px;background:linear-gradient(110deg,#133957 0%,#1e5273 72%,#275d74 100%);color:#fff;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between}.welcome-banner>div:first-child{position:relative;z-index:2;max-width:640px}.eyebrow.light{color:#f5b857}.welcome-banner h2{font-size:25px;line-height:1.22;max-width:535px;letter-spacing:-.035em;margin:10px 0 8px}.welcome-banner p{margin:0;color:#d1deea;max-width:520px;font-size:12px}.banner-art{width:235px;height:190px;position:absolute;right:75px;top:20px;opacity:.8}.sun{position:absolute;right:42px;top:15px;width:90px;height:90px;border:1px solid #f3b95177;border-radius:50%;box-shadow:0 0 0 19px #f3b9510d,0 0 45px #f3b95121}.bolt{position:absolute;right:73px;top:28px;font-size:72px;line-height:1;color:#f7bd62;transform:rotate(7deg);text-shadow:0 6px 22px #ffae3466}.orbit{position:absolute;border:1px solid #7dabc344;border-radius:50%;transform:rotate(-25deg)}.orbit-one{right:-5px;top:2px;width:235px;height:154px}.orbit-two{right:10px;top:29px;width:184px;height:108px}.section-heading{display:flex;align-items:flex-end;justify-content:space-between;margin:27px 0 14px}.section-heading h2,.page-intro h2{margin:1px 0 0;font-size:19px;letter-spacing:-.025em}.muted{color:var(--muted);font-size:11px}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin-bottom:18px}.metric-card,.content-card,.form-card{background:var(--paper);border:1px solid #e9eef2;border-radius:10px;box-shadow:var(--shadow)}.metric-card{padding:17px 18px;min-height:121px}.metric-top{display:flex;align-items:center;justify-content:space-between;color:#8391a0;font-size:9px;letter-spacing:.11em;font-weight:700}.metric-card>strong{font-size:25px;display:block;margin:8px 0 0;letter-spacing:-.03em}.metric-card>small{color:#8a98a6;font-size:10px}.metric-icon{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;font-size:14px}.metric-icon.blue{background:#e8f1fa;color:#437db3}.metric-icon.green{background:#e6f5ee;color:#21805d}.metric-icon.amber{background:#fff3df;color:#cf861d}.content-card{padding:18px 20px}.card-heading{display:flex;align-items:center;justify-content:space-between}.card-heading h3{margin:2px 0 0;font-size:15px}.empty-state{min-height:200px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:var(--muted);padding:28px}.empty-state strong{font-size:14px;color:#3c5063;margin-top:8px}.empty-state p{font-size:11px;margin:5px 0 14px}.empty-icon{width:44px;height:44px;border-radius:50%;background:#f0f4f7;display:grid;place-items:center;color:#9cabb9;font-size:23px}.recent-list{margin-top:15px}.recent-row{display:grid;grid-template-columns:1.25fr 1fr .8fr .8fr auto;gap:12px;align-items:center;padding:12px 2px;border-top:1px solid #eef1f4;font-size:11px}.recent-row strong{font-size:12px}.saving-positive{color:var(--green);font-weight:700}.saving-negative{color:var(--red);font-weight:700}.page-intro{display:flex;align-items:flex-end;justify-content:space-between;margin:6px 0 20px}.page-intro p{color:#778699;margin:6px 0 0;font-size:12px}.badge{background:#eaf5ef;color:#25835b;border-radius:30px;padding:6px 11px;font-size:10px;font-weight:700}.form-card{padding:19px 21px;margin:0 0 14px}.form-section-title{display:flex;align-items:center;gap:12px;margin-bottom:18px}.form-section-title h3{font-size:14px;margin:0}.form-section-title p{color:#8794a2;font-size:10px;margin:3px 0 0}.step{width:28px;height:28px;border-radius:8px;background:#fff3df;color:#ca8016;display:grid;place-items:center;font-size:11px;font-weight:800}.field-grid{display:grid;gap:13px 14px}.field-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.field{display:flex;flex-direction:column;gap:5px;min-width:0}.field>span{font-size:10px;font-weight:650;color:#667789}.field input,.field select,.filter-row select,.search-box input{width:100%;border:1px solid #dce4ea;border-radius:6px;padding:9px 10px;background:#fff;color:#263e53;font-size:11px;outline:none;transition:.15s}.field input:focus,.field select:focus,.filter-row select:focus,.search-box input:focus{border-color:#5890b1;box-shadow:0 0 0 3px #5794b21b}.field input::placeholder{color:#aab5bf}.span2{grid-column:span 2}.rate-grid{margin-top:7px}.rate-match{background:#f5f8fa;border-radius:6px;padding:9px 11px;color:#697b8d;font-size:10px;margin:-5px 0 14px}.rate-match.success{background:#edf7f1;color:#227550}.rate-match.warning{background:#fff7eb;color:#94600f}.form-actions{display:flex;align-items:center;justify-content:space-between;padding:7px 2px 2px}.table-card{padding:0;overflow:hidden}.table-wrap{overflow:auto;max-height:calc(100vh - 300px)}table{width:100%;border-collapse:collapse;white-space:nowrap}th{position:sticky;top:0;background:#f6f8fa;color:#718195;text-align:left;font-size:9px;letter-spacing:.09em;text-transform:uppercase;padding:12px 14px;border-bottom:1px solid #e5eaf0;z-index:1}td{padding:11px 14px;font-size:11px;border-bottom:1px solid #edf0f3;color:#40556b}tbody tr:hover{background:#fafcfd}td:first-child{font-weight:650;color:#233d54}.filter-row{display:flex;gap:10px;margin:-3px 0 14px}.search-box{height:36px;display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #dce4ea;border-radius:6px;padding:0 10px;color:#8b9aa9;flex:1;max-width:370px}.search-box input{border:0!important;box-shadow:none!important;padding:0}.filter-row select{width:180px}.table-empty{padding:36px;text-align:center;color:#8493a1;font-size:12px}.report-sheet{background:#fff;border:1px solid #e4e9ee;border-radius:10px;box-shadow:var(--shadow);padding:28px;min-height:400px}.report-head{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid var(--navy);padding-bottom:17px;margin-bottom:20px}.report-head h2{font-size:19px;margin:3px 0}.report-head p{margin:4px 0;color:#758497;font-size:11px}.report-logo{align-self:flex-start;background:#fff4e4;color:#bf7718;border-radius:6px;padding:8px 12px;font-size:10px;font-weight:800;letter-spacing:.08em}.report-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0 20px}.report-kpi{border:1px solid #e7ecf0;border-radius:7px;padding:12px}.report-kpi small{display:block;font-size:9px;color:#7b8a9b;text-transform:uppercase;letter-spacing:.08em}.report-kpi strong{display:block;margin-top:5px;font-size:17px;color:#183b56}.report-section{margin-top:18px}.report-section h3{font-size:12px;margin:0 0 8px;color:#244962}.report-table{width:100%;border:1px solid #e6ebef;border-radius:6px;overflow:hidden}.report-table td,.report-table th{padding:8px 10px;font-size:10px}.report-table th{position:static}.report-note{font-size:9px;color:#8592a0;line-height:1.5;margin-top:18px;padding-top:12px;border-top:1px solid #e7ecf0}.toast{position:fixed;right:24px;bottom:24px;background:#163c57;color:#fff;padding:11px 16px;border-radius:8px;box-shadow:0 8px 26px #142c402b;font-size:11px;opacity:0;transform:translateY(8px);transition:.25s;pointer-events:none;z-index:20}.toast.show{opacity:1;transform:none}.toast.error{background:#9f3737}
@media(max-width:1280px){.main-area{padding-left:24px;padding-right:24px}.field-grid.four{grid-template-columns:repeat(3,minmax(0,1fr))}.sidebar{width:218px;flex-basis:218px}.main-area{width:calc(100% - 218px)}}
@media(max-width:900px){.sidebar{width:70px;flex-basis:70px;padding:18px 8px}.brand{padding:0 8px 25px}.brand>div:last-child,.workspace-label,.nav-item:not(.active) .nav-icon{display:none}.nav-item{justify-content:center;padding:12px 7px;font-size:0}.nav-icon{font-size:19px}.sidebar-bottom .offline-status,.sidebar-bottom .subtle{justify-content:center;font-size:0;padding:10px 4px}.sidebar-bottom .subtle .nav-icon{font-size:16px;display:block}.version{display:none}.main-area{width:calc(100% - 70px);padding:0 17px 30px}.field-grid.four{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-grid{gap:8px}.welcome-banner{padding:25px}.banner-art{right:10px;opacity:.4}}
@media print{body{background:#fff;font-size:10px}.sidebar,.topbar,.screen-only,.toast,.page:not(.active){display:none!important}.app-shell,.main-area{display:block;width:100%;max-width:none;margin:0;padding:0}.page.active{display:block!important}.report-sheet{border:0;box-shadow:none;border-radius:0;padding:0;min-height:unset}.report-kpi{padding:8px}.report-kpi strong{font-size:14px}.report-table td,.report-table th{padding:5px 7px;font-size:8px}.report-section{break-inside:avoid}.report-note{font-size:8px}}

/* Relatório comercial */
.report-sheet{background:transparent;border:0;box-shadow:none;border-radius:0;padding:0;min-height:0}.report-cover{min-height:205px;position:relative;overflow:hidden;border-radius:13px;padding:20px 27px 21px;color:#fff;background:linear-gradient(115deg,#112f4a 0%,#1b4d68 67%,#236273 100%);box-shadow:0 8px 22px #18384c1c;margin-bottom:13px}.cover-top,.cover-main{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:24px}.cover-brand{display:flex;align-items:center;gap:10px}.cover-mark{width:32px;height:32px;border-radius:9px;background:#efa539;display:grid;place-items:center;font-size:19px;font-weight:800}.cover-brand strong,.cover-brand small{display:block}.cover-brand strong{font-size:11px;letter-spacing:.11em}.cover-brand small{font-size:8px;color:#b5c9d8;letter-spacing:.13em;margin-top:2px}.cover-status{font-size:8px;font-weight:700;letter-spacing:.13em;color:#ffcb78;border:1px solid #ffffff35;border-radius:30px;padding:6px 10px}.cover-main{align-items:flex-end;margin-top:22px}.cover-kicker{color:#f4b24e;font-size:8px;font-weight:750;letter-spacing:.15em}.cover-main h2{font-size:24px;line-height:1.13;margin:5px 0 7px;letter-spacing:-.03em}.cover-main p{font-size:10px;color:#e1ebf2;margin:3px 0}.cover-period{color:#b3c7d6!important}.cover-impact{min-width:218px;padding:10px 15px;border-left:1px solid #ffffff4a}.cover-impact small,.cover-impact span{display:block;color:#c4d4df;font-size:8px;letter-spacing:.08em}.cover-impact strong{display:block;color:#ffd27f;font-size:24px;line-height:1.2;margin:3px 0}.cover-impact span{font-size:10px;letter-spacing:0}.cover-decoration{position:absolute;width:250px;height:250px;border-radius:50%;right:100px;top:-158px;border:1px solid #ffffff16;box-shadow:0 0 0 24px #ffffff08,0 0 0 55px #ffffff05}.report-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0 0 12px}.report-kpi{min-height:76px;border:1px solid #e7ecf0;border-radius:9px;background:#fff;padding:10px 12px;box-shadow:0 3px 12px #19354b08}.report-kpi small{font-size:8px;letter-spacing:.07em}.report-kpi strong{font-size:16px;line-height:1.25;color:#173c57}.report-kpi span{display:block;margin-top:2px;color:#8592a0;font-size:9px}.report-kpi.highlight{background:#fff8eb;border-color:#f3ddb6}.report-kpi.highlight strong{color:#bf7718}.executive-summary{display:flex;align-items:flex-start;gap:11px;padding:11px 13px;background:#edf7f1;border:1px solid #d9eee2;border-left:3px solid #279467;border-radius:8px;margin-bottom:13px}.summary-icon{flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#d9f0e4;color:#178256;display:grid;place-items:center;font-weight:800}.executive-summary p{font-size:10px;line-height:1.55;color:#335b4b;margin:1px 0}.executive-summary p span{display:block;color:#71877d;font-size:9px;margin-top:2px}.report-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 12px}.chart-card{background:#fff;border:1px solid #e5ebef;border-radius:10px;padding:13px 15px;box-shadow:0 3px 14px #18384c08;min-width:0}.chart-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:5px}.chart-kicker{font-size:8px;letter-spacing:.12em;color:#9a762e;font-weight:800}.chart-heading h3{font-size:13px;color:#183b55;margin:2px 0 0}.chart-heading p{font-size:9px;color:#8290a0;margin:3px 0 0}.chart-unit,.projection-badge{font-size:8px;color:#7d8b99;background:#f2f5f7;border-radius:20px;padding:5px 8px;white-space:nowrap}.chart-svg{display:block;width:100%;height:auto;max-height:235px}.svg-axis{stroke:#cbd4dc;stroke-width:1.2}.svg-grid{stroke:#e9eef2;stroke-width:1;stroke-dasharray:3 4}.svg-zero{stroke:#acbac6;stroke-width:1.2;stroke-dasharray:4 4}.svg-tick{fill:#8694a2;font-size:9px;font-family:"Segoe UI",Arial,sans-serif}.svg-value{fill:#193b55;font-size:10px;font-weight:700;font-family:"Segoe UI",Arial,sans-serif}.svg-label{fill:#596c7e;font-size:10px;font-weight:600;font-family:"Segoe UI",Arial,sans-serif}.stacked-chart{padding-top:18px}.stacked-row{display:grid;grid-template-columns:43px 1fr auto;gap:7px;align-items:center;margin:15px 0}.stacked-name{color:#51667a;font-size:9px;font-weight:700}.stacked-track{height:20px;border-radius:5px;background:#f0f3f5;overflow:hidden;display:flex}.stacked-segment{height:100%;min-width:0}.stacked-total{font-size:9px;color:#314e66;font-weight:700}.chart-legend{display:flex;flex-wrap:wrap;gap:8px 12px;margin:20px 0 0 49px}.chart-legend span{display:flex;align-items:center;gap:5px;font-size:8px;color:#758495}.chart-legend i{width:8px;height:8px;border-radius:2px;display:inline-block}.chart-caption{font-size:8px;color:#8a97a4;line-height:1.45;margin:9px 0 0}.projection-card{margin:0 0 12px}.projection-wrap{display:grid;grid-template-columns:1fr 160px;align-items:center;gap:14px}.projection-svg{max-height:175px}.projection-total{border-left:1px solid #e5ebef;padding-left:14px}.projection-total span,.projection-total strong{display:block}.projection-total span{font-size:8px;color:#8a97a4;text-transform:uppercase;letter-spacing:.08em}.projection-total strong{font-size:17px;margin-top:5px}.projection-wrap .chart-caption{grid-column:1/-1;margin:-5px 0 0}.report-detail-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:12px}.report-section{margin:0 0 12px;background:#fff;border:1px solid #e6ebef;border-radius:9px;padding:12px 14px}.report-section h3{font-size:11px;letter-spacing:.01em;color:#294b64;margin:0 0 9px}.detail-pills{display:grid;grid-template-columns:1fr 1fr;gap:6px}.detail-pills span{border-radius:6px;background:#f5f8fa;padding:7px 8px;color:#718093;font-size:8px}.detail-pills b{display:block;font-size:10px;color:#203f58;margin-top:2px}.report-small{font-size:8px;color:#718193;line-height:1.55;margin:8px 0 0}.assumption-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.assumption-grid span{display:flex;justify-content:space-between;gap:5px;padding:7px 8px;background:#f5f8fa;border-radius:6px;color:#718093;font-size:8px}.assumption-grid b{color:#28475e;font-size:9px}.cost-details{padding:12px 14px}.report-table{border:0;border-radius:5px;border-collapse:separate;border-spacing:0}.report-table th{background:#f4f7f9;color:#6f8091;font-size:8px;letter-spacing:.06em;padding:8px 9px}.report-table td{font-size:9px;padding:7px 9px;border-bottom:1px solid #edf0f3}.report-table td:first-child{color:#415970;font-weight:550}.report-table .total-row td{background:#f1f6f8;color:#163b55;border-top:1px solid #dce5eb;font-weight:800}.report-note{font-size:8px;color:#7e8c99;line-height:1.5;margin-top:0;padding:10px 12px;border:1px solid #e5ebef;background:#f7f9fa;border-radius:7px}.report-note b{color:#4b6276}.report-actions{display:flex;justify-content:flex-end;gap:9px;margin:14px 0 0}.report-page{break-inside:auto}.chart-card,.report-section,.report-kpis,.executive-summary,.report-cover{break-inside:avoid;page-break-inside:avoid}
@media(max-width:1100px){.report-chart-grid{grid-template-columns:1fr}.projection-wrap{grid-template-columns:1fr 130px}.report-detail-grid{grid-template-columns:1fr}}
@media print{@page{size:A4 landscape;margin:10mm}.report-sheet{padding:0!important}.report-cover{border-radius:0;box-shadow:none;min-height:150px;padding:15px 22px;margin-bottom:8px}.cover-main{margin-top:12px}.cover-main h2{font-size:20px}.cover-impact strong{font-size:19px}.report-kpis{gap:6px;margin-bottom:8px}.report-kpi{min-height:59px;padding:7px 9px;box-shadow:none}.report-kpi strong{font-size:13px}.executive-summary{padding:7px 10px;margin-bottom:8px}.report-chart-grid{gap:8px;margin-bottom:8px}.chart-card{padding:9px 11px;box-shadow:none}.chart-heading h3{font-size:11px}.chart-svg{max-height:185px}.stacked-chart{padding-top:8px}.stacked-row{margin:10px 0}.chart-legend{margin-top:12px}.projection-card{margin-bottom:8px}.projection-svg{max-height:125px}.projection-wrap{grid-template-columns:1fr 135px;gap:8px}.report-detail-grid{gap:8px}.report-section{padding:9px 10px;margin-bottom:8px}.report-table td,.report-table th{padding:5px 7px;font-size:8px}.report-note{padding:7px 9px}.report-actions{display:none!important}}
@media print{.report-page-one{page-break-after:always;break-after:page}.report-page-two{page-break-after:auto;break-after:auto}.report-chart-grid{display:flex!important;flex-wrap:nowrap!important;align-items:stretch}.report-chart-grid>.chart-card{width:50%;flex:1 1 50%;min-width:0}.report-chart-grid .chart-svg{max-height:160px}.report-chart-grid .stacked-chart{padding-top:5px}.report-chart-grid .chart-legend{gap:5px 8px;margin-top:10px}.report-chart-grid .chart-legend span{font-size:7px}.projection-card{break-inside:avoid;page-break-inside:avoid}}
.print-assumptions{display:none}
@media print{.report-detail-grid{display:none!important}.print-assumptions{display:grid;grid-template-columns:1fr 1fr;gap:5px 12px;margin-top:8px;padding:8px 10px;border:1px solid #e2e9ee;border-radius:6px;background:#f7f9fa;font-size:7.5px;color:#627487}.print-assumptions b{color:#28475e}}

/* Importação e conferência de faturas */
.invoice-import-card{display:flex;align-items:center;gap:14px;background:linear-gradient(110deg,#fff 0%,#fbfcfd 100%);border:1px solid #dfe7ec;border-left:3px solid #e8a139;border-radius:10px;padding:14px 16px;margin:-5px 0 15px;box-shadow:0 4px 14px #19354b07}.invoice-import-icon{width:43px;height:43px;border-radius:10px;background:#fff3df;color:#b77719;font-size:11px;font-weight:800;display:grid;place-items:center;flex:0 0 43px}.invoice-import-copy{min-width:0;flex:1}.invoice-import-copy h3{font-size:13px;color:#183c57;margin:1px 0 2px}.invoice-import-copy p{font-size:10px;color:#63778b;margin:0}.invoice-import-copy small{font-size:9px;color:#8996a4;display:block;margin-top:3px}.invoice-modal[hidden]{display:none!important}.invoice-modal{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:18px}.invoice-modal-backdrop{position:absolute;inset:0;background:#0c2034b8;backdrop-filter:blur(2px)}.invoice-review-dialog{position:relative;z-index:1;width:min(920px,calc(100vw - 36px));max-height:min(91vh,920px);overflow:auto;background:#f7f9fb;border:1px solid #dfe6eb;border-radius:13px;box-shadow:0 22px 65px #06172755;padding:20px 22px}.invoice-review-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid #e3e9ee;padding-bottom:12px}.invoice-review-header h2{font-size:19px;color:#173d58;margin:2px 0 2px}.invoice-review-header p{font-size:10px;color:#738397;margin:3px 0}.invoice-close{width:31px;height:31px;border:1px solid #dbe3e9;border-radius:7px;background:#fff;color:#64798c;font-size:21px;line-height:1}.invoice-review-notices{display:grid;gap:6px;margin:11px 0}.invoice-notice{padding:8px 10px;background:#edf5fa;border:1px solid #d9e8f1;border-radius:6px;color:#46657c;font-size:9px;line-height:1.45}.invoice-notice.warning{background:#fff6e8;border-color:#f1e0c3;color:#8b672c}.invoice-review-legend{display:flex;flex-wrap:wrap;gap:8px 17px;margin:9px 0;color:#718195;font-size:9px}.invoice-review-legend span{display:flex;align-items:center;gap:6px}.confidence-dot{width:8px;height:8px;border-radius:50%;display:inline-block}.confidence-dot.found{background:#23956a}.confidence-dot.missing{background:#d6a245}.invoice-review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 10px}.invoice-review-field{display:flex;flex-direction:column;gap:4px;padding:8px 9px;border:1px solid #e3e9ed;border-radius:7px;background:#fff;min-width:0}.invoice-review-field.recognized{border-color:#d2e9dc;background:#fcfffd}.invoice-review-field>span{font-size:9px;color:#52687b;font-weight:700}.invoice-review-field>span i{font-style:normal;color:#8996a2;font-weight:500}.invoice-review-field input,.invoice-review-field select{width:100%;height:32px;padding:6px 8px;border:1px solid #dbe3e9;border-radius:5px;background:#fff;color:#203c53;font-size:11px;outline:none}.invoice-review-field input:focus,.invoice-review-field select:focus{border-color:#5285a4;box-shadow:0 0 0 2px #5285a41c}.invoice-field-status{font-size:8px;line-height:1.3}.found-status{color:#26815b}.missing-status{color:#a67a32}.invoice-review-footer{position:sticky;bottom:-20px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:13px -22px -20px;padding:12px 22px;background:#fff;border-top:1px solid #e2e8ed;border-radius:0 0 13px 13px}.invoice-review-footer>span{font-size:9px;color:#7b8996}.invoice-review-footer>div{display:flex;gap:8px;flex:0 0 auto}
@media(max-width:900px){.invoice-review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-import-card{align-items:flex-start;flex-wrap:wrap}.invoice-import-copy{flex-basis:calc(100% - 60px)}.invoice-import-card>.btn{margin-left:57px}}
@media(max-width:600px){.invoice-review-grid{grid-template-columns:1fr}.invoice-review-footer{align-items:flex-start;flex-direction:column}.invoice-review-footer>div{width:100%;justify-content:flex-end}.invoice-import-card>.btn{margin-left:0;width:100%}}

.invoice-review-field.low-confidence{border-color:#f0d49e;background:#fffcf6}.low-status{color:#a06f20}

/* Relatório mensal multipágina inspirado na referência do usuário. */
.mg-report-pages{display:flex;flex-direction:column;align-items:center;gap:18px;color:#17345b}.mg-page{position:relative;width:210mm;height:297mm;min-height:297mm;overflow:hidden;box-sizing:border-box;background:#fff;box-shadow:0 6px 24px #102b4620;font-family:"Segoe UI",Arial,sans-serif;font-size:9px;color:#25354a;break-after:page;page-break-after:always}.mg-page:last-child{break-after:auto;page-break-after:auto}.mg-content-page{padding:0 12mm 15mm}.mg-header{height:21mm;margin:0 -12mm;padding:0 12mm;display:flex;align-items:center;justify-content:space-between;background:#102e55;color:#fff}.mg-brand{display:flex;align-items:center;gap:8px;color:#fff}.mg-brand>span:last-child b,.mg-brand>span:last-child small{display:block}.mg-brand>span:last-child b{font-size:11px;letter-spacing:.1em}.mg-brand>span:last-child small{font-size:7px;letter-spacing:.22em;text-align:center}.mg-bolt{width:27px;height:29px;color:#ffc21a;font-size:31px;line-height:25px;text-shadow:0 1px 0 #fff}.mg-title{text-align:right;display:grid;gap:3px}.mg-title small{font-size:7px;letter-spacing:.12em;color:#f2b813;font-weight:750}.mg-title b{font-size:12px;color:#fff}.mg-rule{height:1.5mm;background:#f2b813;margin:0 -12mm}.mg-client-strip{min-height:13mm;margin:3mm 0 4mm;padding:2.5mm 3mm;display:grid;grid-template-columns:1.2fr 1fr .8fr 1.2fr;gap:3mm;align-items:center;background:#f1f3f7;border-radius:2mm}.mg-client-strip span{min-width:0}.mg-client-strip small,.mg-client-strip b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mg-client-strip small{font-size:6px;letter-spacing:.08em;color:#738095;margin-bottom:1mm}.mg-client-strip b{font-size:7.2px;color:#25384f}.mg-section-title{min-height:11mm;display:flex;align-items:center;gap:3mm;margin:0 0 3mm}.mg-section-title>span{font-size:16px;font-weight:850;color:#f2b813}.mg-section-title h2{font-size:15px;line-height:1.1;color:#102e55;margin:0;white-space:nowrap}.mg-section-title p{font-size:7.5px;color:#7b8797;text-align:right;margin:0 0 0 auto}.mg-footer{position:absolute;bottom:5mm;left:12mm;right:12mm;padding-top:2mm;border-top:.25mm solid #dce2e8;display:flex;justify-content:space-between;color:#788596;font-size:7px}.mg-footer b{color:#102e55;font-weight:650}.mg-cover{background:#102e55;color:#fff;padding:17mm 15mm 14mm}.mg-cover:after{content:"";position:absolute;left:-7%;right:-7%;top:65%;height:3mm;background:#f2b813;transform:rotate(-6deg);z-index:2}.cover-orbits{position:absolute;right:-15%;top:-8%;width:130%;height:77%;border:1px solid #ffffff14;border-radius:50%;box-shadow:0 0 0 10mm #ffffff04,0 0 0 22mm #ffffff04,0 0 0 35mm #ffffff03,0 0 0 49mm #ffffff02}.cover-bolt-watermark{position:absolute;right:23mm;top:40mm;font-size:210mm;line-height:.9;color:#21447455;transform:rotate(-8deg)}.cover-brand-large{position:relative;z-index:1;display:flex;align-items:center;gap:10px}.cover-brand-large .mg-bolt{font-size:44px;width:41px}.cover-brand-large b{font-size:17px;letter-spacing:.07em}.cover-brand-large small{display:block;text-align:center;font-size:9px;letter-spacing:.3em}.cover-title-block{position:absolute;z-index:3;top:87mm;left:15mm}.cover-title-block>span{font-size:10px;letter-spacing:.25em;color:#ffc21a;font-weight:750}.cover-title-block h1{font-size:32px;line-height:1.12;letter-spacing:-.03em;font-weight:300;margin:4mm 0}.cover-title-block h1 b{font-weight:800}.cover-title-block i{display:block;width:17mm;height:1.2mm;background:#f2b813;margin:5mm 0}.cover-title-block p{font-size:12px;color:#bfcee0;margin:0 0 5mm}.cover-title-block>strong{font-size:13px;color:#ffc21a;letter-spacing:.12em}.cover-client-card{position:absolute;z-index:4;bottom:22mm;left:13mm;right:13mm;min-height:48mm;display:grid;grid-template-columns:1.7fr 1fr;gap:6mm;padding:5mm;background:#fff;border-radius:4mm;color:#102e55}.cover-client-data{display:grid;grid-template-columns:1fr;gap:2.3mm;align-content:center}.cover-client-data span small,.cover-client-data span b{display:block}.cover-client-data span small{font-size:6.3px;letter-spacing:.15em;color:#748196;margin-bottom:.5mm}.cover-client-data span b{font-size:9px;color:#102e55}.cover-result-box{border-radius:3mm;background:#102e55;color:#fff;padding:4mm 5mm;display:flex;flex-direction:column;justify-content:center}.cover-result-box small{font-size:6.5px;letter-spacing:.15em;color:#f4bd35}.cover-result-box>b{font-size:18px;line-height:1.25;margin:1mm 0;color:#fff}.cover-result-box>span{font-size:7.5px;color:#d3deeb}.cover-result-box hr{border:0;border-top:.25mm solid #ffffff28;width:100%;margin:2mm 0}.cover-result-box>b.cover-annual{font-size:12px}.mg-cover-footer{position:absolute;z-index:4;bottom:9mm;left:13mm;right:13mm;display:flex;justify-content:space-between;color:#a8bdd5;font-size:7px}.mg-kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:3mm;margin-bottom:3mm}.mg-kpi-row article{height:23mm;border:.25mm solid #e3e7eb;border-radius:3mm;padding:3mm 3.5mm;display:flex;flex-direction:column;justify-content:center;background:#fff}.mg-kpi-row article small{font-size:6.3px;letter-spacing:.12em;color:#748196}.mg-kpi-row article>b{font-size:13.5px;color:#102e55;white-space:nowrap;margin:1mm 0}.mg-kpi-row article span{font-size:7px;color:#778396}.mg-kpi-row article.positive{background:#2c8d60;border-color:#2c8d60}.mg-kpi-row article.positive small,.mg-kpi-row article.positive>b,.mg-kpi-row article.positive span{color:#fff}.mg-kpi-row article.dark{background:#102e55;border-color:#102e55}.mg-kpi-row article.dark small,.mg-kpi-row article.dark>b{color:#fff}.mg-kpi-row article.dark span{color:#f2c54f}.mg-two-charts{display:grid;grid-template-columns:.85fr 1.35fr;gap:3mm;margin-bottom:3mm}.mg-panel{border:.25mm solid #e0e5e9;border-radius:3mm;background:#fff;padding:3mm;min-width:0}.mg-panel h3,.mg-tech-columns article>h3{display:flex;align-items:center;gap:2mm;margin:0 0 2mm;color:#102e55;font-size:9px}.mg-panel h3>i,.mg-tech-columns article>h3>i,.mg-howto h3>i{display:inline-block;width:1.2mm;height:4mm;background:#f2b813}.mg-panel h3 small{font-size:7px;font-weight:400;color:#8792a0}.mg-svg{display:block;width:100%;height:auto;max-height:53mm}.chart-axis{stroke:#cbd2da;stroke-width:1}.chart-grid{stroke:#e9edf0;stroke-width:1}.chart-tick{fill:#7d8896;font-size:8px;font-family:"Segoe UI",Arial,sans-serif}.chart-tick.chart-current{font-weight:800;fill:#102e55}.chart-label{fill:#3c4f63;font-size:8px;font-weight:700;font-family:"Segoe UI",Arial,sans-serif}.chart-small{fill:#54657a;font-size:6px;font-family:"Segoe UI",Arial,sans-serif}.chart-legend-svg text{font-size:7px;fill:#667589;font-family:"Segoe UI",Arial,sans-serif}.mg-chart-note,.mg-footnote{font-size:6.4px;line-height:1.35;color:#8490a0;margin:1mm 0 0}.mg-economic-bottom{display:grid;grid-template-columns:1.45fr 1fr;gap:3mm;margin-bottom:3mm}.economic-table th,.economic-table td{font-size:6.7px!important;padding:1.25mm 1.5mm!important}.economic-table th{background:#102e55!important;color:white!important;letter-spacing:0!important}.economic-table td{color:#384a5d}.economic-table td.num-cell{text-align:right}.mg-total-row td{font-weight:800!important;background:#e9eef5!important;color:#102e55!important}.mg-unit-row td{background:#f7f8fa!important;color:#738196!important;font-size:6.3px!important}.mg-donut-wrap{display:flex;flex-direction:column;align-items:center;gap:2mm}.mg-donut{width:37mm;height:37mm}.donut-main{font-size:13px;font-weight:800;fill:#102e55}.donut-sub{font-size:7px;fill:#7f8a98}.mg-donut-legend{width:100%;display:grid;gap:1.1mm}.mg-donut-legend>div{display:grid;grid-template-columns:3mm 1fr 9mm auto;gap:1.5mm;align-items:center;font-size:6.4px;color:#647287}.mg-donut-legend i{width:2.5mm;height:2.5mm;border-radius:.5mm}.mg-donut-legend small{text-align:right}.mg-donut-legend b{text-align:right;color:#344b63}.mg-empty-chart{padding:15mm 5mm;text-align:center;color:#8190a0;font-size:8px}.mg-highlights,.mg-howto{background:#eaf0f8;border-radius:3mm;padding:3.5mm 5mm;margin-top:2mm}.mg-highlights>b,.mg-howto h3{font-size:8px;color:#102e55;letter-spacing:.08em}.mg-highlights ul{padding-left:4mm;margin:2mm 0 0;display:grid;gap:1.4mm}.mg-highlights li{font-size:7px;color:#45576c;line-height:1.4}.mg-highlights li::marker{color:#f2b813}.mg-cost-columns{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4mm;margin:3mm 0 5mm;align-items:start}.mg-cost-columns article>h3{min-height:10mm;display:flex;align-items:center;background:#102e55;color:#fff;font-size:8px;margin:0;padding:2.5mm 3mm}.mg-table{width:100%;border-collapse:collapse;white-space:normal}.mg-table th{position:static;background:#edf0f5;color:#647287;text-align:left;font-size:6px;letter-spacing:.03em;padding:1.7mm 2mm;border-bottom:.25mm solid #dde3e9}.mg-table td{font-size:6.6px;line-height:1.25;padding:1.75mm 2mm;border-bottom:.2mm solid #e7ebef;color:#435367;white-space:normal}.mg-table td.num-cell{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.mg-cost-columns .mg-table tr:nth-child(even) td{background:#f4f6f9}.mg-highlight-row td{background:#e7f3ed!important;color:#23764f!important;font-weight:750}.mg-bars-panel{padding:3mm 4mm;margin-bottom:3mm}.mg-bars-panel .mg-svg{max-height:94mm}.mg-inline-legend,.mg-tech-legend{display:flex;gap:5mm;justify-content:flex-end;font-size:6.5px;color:#667589}.mg-inline-legend span,.mg-tech-legend span{display:flex;align-items:center;gap:1mm}.mg-inline-legend i,.mg-tech-legend i{display:inline-block;width:2.5mm;height:2.5mm;border-radius:.5mm}.mg-method-note{font-size:6.5px;line-height:1.4;color:#778596;margin:2mm 0}.tech-kpis article{height:22mm}.mg-tech-columns{display:grid;grid-template-columns:1fr 1fr 1fr;gap:3mm;margin:3mm 0}.mg-tech-columns article{min-width:0}.mg-tech-columns article>h3{margin-bottom:2mm;font-size:8px}.mg-tech-columns .mg-table td{font-size:6.2px;padding:1.55mm 1.8mm}.mg-tech-columns .mg-table tr:nth-child(even) td{background:#f4f6f9}.mg-tech-columns .mg-table td:last-child{text-align:right;font-weight:650;color:#293f58}.mg-tech-charts{display:grid;grid-template-columns:1fr 1fr;gap:3mm;margin:3mm 0}.mg-tech-charts .mg-panel{min-height:38mm}.mg-tech-legend{justify-content:flex-start;margin-bottom:2mm}.tech-bar-row{display:grid;grid-template-columns:38mm 1fr 22mm;gap:2mm;align-items:center;margin:3mm 0;font-size:6.4px;color:#637286}.tech-bar-pair{height:4mm;background:#f1f3f6;border-radius:1mm;overflow:hidden;position:relative}.tech-bar-pair i{display:block;height:50%;min-width:0}.tech-bar-pair i+i{height:50%}.tech-bar-row>b{font-size:6px;text-align:right;color:#344b63;white-space:nowrap}.mg-notes-page .mg-howto{margin:10mm 0 6mm;padding:5mm}.mg-howto h3{display:flex;align-items:center;gap:2mm;margin:0 0 2mm}.mg-howto p,.mg-disclaimer p{font-size:7.5px;line-height:1.55;color:#43546a;margin:1.5mm 0}.mg-glossary-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:8mm;row-gap:3.5mm}.mg-glossary-grid>div{border-left:1mm solid #f2b813;padding-left:2mm}.mg-glossary-grid b{font-size:7.5px;color:#102e55}.mg-glossary-grid p{font-size:6.8px;line-height:1.4;color:#59697e;margin:1mm 0 0}.mg-disclaimer{margin-top:7mm;padding:4mm;background:#f4f6f8;border-radius:2mm}.mg-disclaimer>b{font-size:8px;color:#102e55}.mg-end-card{position:absolute;bottom:15mm;left:12mm;right:12mm;height:18mm;padding:3mm 5mm;border-radius:3mm;background:#102e55;display:flex;align-items:center;justify-content:space-between}.mg-end-card>div:last-child{text-align:right;color:#fff}.mg-end-card>div:last-child b,.mg-end-card>div:last-child span{display:block}.mg-end-card>div:last-child b{font-size:8px}.mg-end-card>div:last-child span{font-size:6.5px;color:#b9c8d8;margin-top:1mm}.mg-cover-footer{font-variant-numeric:tabular-nums}
@media(max-width:900px){.mg-page{width:100%;height:auto;min-height:unset;aspect-ratio:210/297}.mg-content-page{padding:0 5mm 12mm}.mg-header{margin:0 -5mm;padding:0 5mm}.mg-rule{margin:0 -5mm}.mg-client-strip{gap:1mm}.mg-client-strip b{font-size:6px}.mg-section-title h2{font-size:12px}.mg-section-title p{font-size:6px}.mg-kpi-row article>b{font-size:10px}.mg-cost-columns{gap:1mm}}
@media print{@page{size:A4 portrait;margin:0}html,body{width:210mm!important;margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}body{font-size:8px!important}.sidebar,.topbar,.page-intro,.screen-only,.toast,.page:not(.active){display:none!important}.app-shell,.main-area{display:block!important;width:210mm!important;max-width:none!important;margin:0!important;padding:0!important}.page.active{display:block!important;width:210mm!important;margin:0!important;padding:0!important}.report-sheet{display:block!important;width:210mm!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important}.mg-report-pages{display:block!important;width:210mm!important;gap:0!important}.mg-page{display:block!important;width:210mm!important;height:297mm!important;min-height:297mm!important;margin:0!important;box-shadow:none!important;overflow:hidden!important;break-after:page!important;page-break-after:always!important}.mg-page:last-child{break-after:auto!important;page-break-after:auto!important}.mg-cover{print-color-adjust:exact!important;-webkit-print-color-adjust:exact!important}.mg-footer{font-size:7px}.report-actions{display:none!important}}

@media print{.tech-demand-row{display:grid;grid-template-columns:18mm 1fr 31mm;gap:2mm;align-items:center;margin:2mm 0;font-size:6.4px;color:#637286}.tech-demand-row>div{display:grid;gap:1mm}.tech-demand-row i{display:block;max-width:100%;height:2mm;border-radius:.7mm}.tech-demand-row>b{text-align:right;font-size:6px;color:#344b63;white-space:nowrap}}
@media screen{.tech-demand-row{display:grid;grid-template-columns:18mm 1fr 31mm;gap:2mm;align-items:center;margin:2mm 0;font-size:6.4px;color:#637286}.tech-demand-row>div{display:grid;gap:1mm}.tech-demand-row i{display:block;max-width:100%;height:2mm;border-radius:.7mm}.tech-demand-row>b{text-align:right;font-size:6px;color:#344b63;white-space:nowrap}}

/* Legibilidade ampliada do relatório A4: tipografia de leitura otimizada para impressão. */
@media print{
  .mg-client-strip small{font-size:7.5px!important}.mg-client-strip b{font-size:9px!important}
  .mg-section-title>span{font-size:19px!important}.mg-section-title h2{font-size:17px!important}.mg-section-title p{font-size:9px!important}
  .mg-title small{font-size:8px!important}.mg-title b{font-size:13px!important}
  .mg-kpi-row article small{font-size:7.6px!important}.mg-kpi-row article>b{font-size:15px!important}.mg-kpi-row article span{font-size:8.5px!important}
  .mg-panel h3,.mg-tech-columns article>h3{font-size:10.5px!important}.mg-panel h3 small{font-size:8.5px!important}
  .chart-tick{font-size:9.5px!important}.chart-label{font-size:10px!important}.chart-small{font-size:8px!important}.chart-legend-svg text{font-size:8.5px!important}
  .mg-chart-note,.mg-footnote{font-size:8.8px!important;line-height:1.4!important}
  .economic-table th{font-size:8.8px!important;padding:1.8mm 1.7mm!important}.economic-table td{font-size:9.3px!important;padding:1.65mm 1.7mm!important}
  .mg-cost-columns article>h3{font-size:9.5px!important}.mg-cost-columns .mg-table th{font-size:8.5px!important;padding:1.8mm 1.7mm!important}.mg-cost-columns .mg-table td{font-size:9px!important;line-height:1.3!important;padding:1.8mm 1.7mm!important}
  .mg-tech-columns .mg-table th{font-size:8.5px!important;padding:1.8mm 1.7mm!important}.mg-tech-columns .mg-table td{font-size:8.8px!important;line-height:1.3!important;padding:1.8mm 1.7mm!important}
  .mg-donut-legend>div{font-size:8px!important;grid-template-columns:3mm 1fr 9mm auto!important}.mg-donut-legend small,.mg-donut-legend b{font-size:7.8px!important}
  .mg-inline-legend,.mg-tech-legend{font-size:8px!important}.mg-highlights>b,.mg-howto h3{font-size:9px!important}.mg-highlights li{font-size:9.5px!important;line-height:1.45!important}
  .mg-method-note{font-size:8.8px!important;line-height:1.45!important}.mg-tech-columns{gap:2.5mm!important}.mg-tech-columns .mg-table td:last-child{font-size:8.8px!important}
  .tech-demand-row{font-size:8px!important;grid-template-columns:18mm 1fr 31mm!important}.tech-demand-row>b{font-size:7.5px!important}
  .tech-bar-row{font-size:8px!important;grid-template-columns:38mm 1fr 22mm!important}.tech-bar-row>b{font-size:7.5px!important}
  .mg-howto p,.mg-disclaimer p{font-size:9.6px!important;line-height:1.5!important}.mg-glossary-grid b{font-size:9px!important}.mg-glossary-grid p{font-size:9px!important;line-height:1.45!important}.mg-disclaimer>b{font-size:9.5px!important}
  .cover-client-data span small{font-size:7.5px!important}.cover-client-data span b{font-size:10px!important}.cover-result-box small{font-size:7.5px!important}.cover-result-box>span{font-size:8.5px!important}.mg-cover-footer{font-size:8px!important}.mg-end-card>div:last-child b{font-size:9px!important}.mg-end-card>div:last-child span{font-size:7.5px!important}
  .mg-footer{font-size:8.5px!important}
}

/* Revisão de legibilidade: fontes do PDF aumentadas novamente, sem afetar o restante do app. */
@media print{
  .mg-page{font-size:10px!important}
  .mg-client-strip small{font-size:8.5px!important}.mg-client-strip b{font-size:10px!important}
  .mg-section-title>span{font-size:20px!important}.mg-section-title h2{font-size:18.5px!important}.mg-section-title p{font-size:10px!important}
  .mg-title small{font-size:9px!important}.mg-title b{font-size:14px!important}
  .mg-kpi-row article small{font-size:8.5px!important}.mg-kpi-row article>b{font-size:16px!important}.mg-kpi-row article span{font-size:9.5px!important}
  .mg-panel h3,.mg-tech-columns article>h3{font-size:11.5px!important}.mg-panel h3 small{font-size:9.5px!important}
  .chart-tick{font-size:10.5px!important}.chart-label{font-size:11px!important}.chart-small{font-size:9px!important}.chart-legend-svg text{font-size:9.5px!important}
  .mg-chart-note,.mg-footnote{font-size:9.8px!important;line-height:1.42!important}
  .economic-table th{font-size:10px!important;padding:1.9mm 1.8mm!important}.economic-table td{font-size:10.5px!important;line-height:1.35!important;padding:1.8mm!important}
  .mg-cost-columns article>h3{font-size:10.5px!important}.mg-cost-columns .mg-table th{font-size:9.8px!important;padding:1.9mm 1.8mm!important}.mg-cost-columns .mg-table td{font-size:10.4px!important;line-height:1.35!important;padding:1.9mm 1.8mm!important}
  .mg-tech-columns .mg-table th{font-size:9.8px!important;padding:1.9mm 1.8mm!important}.mg-tech-columns .mg-table td{font-size:10px!important;line-height:1.35!important;padding:1.8mm!important}
  .mg-donut-legend>div{font-size:9px!important;grid-template-columns:3mm 1fr 10mm auto!important}.mg-donut-legend small,.mg-donut-legend b{font-size:8.8px!important}
  .mg-inline-legend,.mg-tech-legend{font-size:9px!important}.mg-highlights>b,.mg-howto h3{font-size:10px!important}.mg-highlights li{font-size:10.5px!important;line-height:1.48!important}
  .mg-method-note{font-size:9.8px!important;line-height:1.48!important}.mg-tech-columns .mg-table td:last-child{font-size:10px!important}
  .tech-demand-row{font-size:9px!important;grid-template-columns:19mm 1fr 31mm!important}.tech-demand-row>b{font-size:8.5px!important}
  .tech-bar-row{font-size:9px!important;grid-template-columns:39mm 1fr 23mm!important}.tech-bar-row>b{font-size:8.5px!important}
  .mg-howto p,.mg-disclaimer p{font-size:10.8px!important;line-height:1.48!important}.mg-glossary-grid b{font-size:10px!important}.mg-glossary-grid p{font-size:10px!important;line-height:1.48!important}.mg-disclaimer>b{font-size:10.5px!important}
  .cover-client-data span small{font-size:8.5px!important}.cover-client-data span b{font-size:11px!important}.cover-result-box small{font-size:8.5px!important}.cover-result-box>span{font-size:9.5px!important}.mg-cover-footer{font-size:9px!important}.mg-end-card>div:last-child b{font-size:10px!important}.mg-end-card>div:last-child span{font-size:8.5px!important}
  .mg-footer{font-size:9.5px!important}
}

/* Evitar que os destaques da página econômica encostem no rodapé após ampliar a fonte. */
@media print{
  .economic-table th,.economic-table td{padding:1.15mm 1.8mm!important;line-height:1.28!important}
  .mg-two-charts,.mg-economic-bottom{margin-bottom:2mm!important}
  .mg-highlights{padding:2.4mm 4mm!important;margin-top:1mm!important}
  .mg-highlights ul{gap:.8mm!important;margin-top:1mm!important}
  .mg-highlights li{line-height:1.35!important}
}

/* Estado explícito quando a persistência local falha. */
.local-pill.is-error { color: #a52a2a; }
.local-pill.is-error i { background: #c63d3d; box-shadow: 0 0 0 3px rgba(198,61,61,.12); }


/* Gráfico técnico de energia reativa e edição local da base tarifária. */
.mg-tech-charts-three{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:2.2mm!important}
.mg-tech-charts-three .mg-panel{min-width:0;padding:2.4mm!important}
.mg-tech-charts-three .tech-bar-row{grid-template-columns:17mm minmax(0,1fr) 18mm!important;gap:1mm!important}
.mg-reactive-svg{display:block;width:100%;height:auto;margin:2mm 0 0;overflow:visible}
.reactive-track{fill:#f0f3f6}
.reactive-label{fill:#596c7e;font-size:10px;font-weight:600;font-family:"Segoe UI",Arial,sans-serif}
.reactive-value{fill:#193b55;font-size:10px;font-weight:700;text-anchor:end;font-family:"Segoe UI",Arial,sans-serif}
.mg-reactive-note{margin:1mm 0 0;color:#718093;font-size:7px;line-height:1.35}
.mg-reactive-note b{color:#183b55}
.tariff-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.tariff-data-table{min-width:1460px}
.tariff-source{display:inline-block;border-radius:20px;padding:3px 7px;background:#edf2f6;color:#617589;font-size:9px;font-weight:700}
.tariff-source.custom{background:#fff2dc;color:#94600f}
.tariff-actions{white-space:nowrap}
.danger-text{color:#a54242}
.tariff-editor-dialog{width:min(940px,calc(100vw - 36px))}
.tariff-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.tariff-editor-field{display:flex;flex-direction:column;gap:5px;min-width:0;padding:8px 9px;background:#fff;border:1px solid #e3e9ed;border-radius:7px}
.tariff-editor-field>span{font-size:10px;color:#52687b;font-weight:700}
.tariff-editor-field small{display:block;margin-top:2px;font-size:8px;font-weight:400;color:#8492a0;line-height:1.35}
.tariff-editor-field input,.tariff-editor-field select{width:100%;min-height:36px;padding:7px 8px;border:1px solid #dbe3e9;border-radius:5px;background:#fff;color:#203c53;font-size:12px}
.tariff-editor-field input:focus,.tariff-editor-field select:focus{outline:2px solid #5285a455;border-color:#5285a4}
@media(max-width:900px){.tariff-toolbar{justify-content:flex-start}.tariff-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.tariff-toolbar{width:100%;justify-content:flex-start}.tariff-toolbar .btn{min-height:42px;padding:8px 10px;font-size:11px}.tariff-editor-grid{grid-template-columns:1fr}.tariff-editor-dialog{width:100%;max-height:94dvh;padding:15px 13px calc(12px + env(safe-area-inset-bottom))}.tariff-editor-dialog .invoice-review-footer{margin:13px -13px -15px;padding:12px 13px calc(10px + env(safe-area-inset-bottom))}.mg-tech-charts-three{grid-template-columns:1fr!important}}
@media print{.mg-tech-charts-three{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:2mm!important}.mg-tech-charts-three .mg-panel{min-height:35mm!important}.mg-reactive-note{font-size:8.5px!important}}

/* Importação tipada de documentos e evidências locais */
.invoice-import-actions{display:flex;flex-direction:column;gap:8px;min-width:220px;flex:0 0 auto}
.invoice-import-actions .btn{width:100%;white-space:normal}
.invoice-field-source,.invoice-current-value{display:block;color:#65778a;font-size:9px;font-weight:450;line-height:1.45;margin-top:2px;white-space:normal;overflow-wrap:anywhere}
.invoice-field-source{color:#47677f}
.invoice-current-value{color:#986218}
.invoice-demand-allocation{display:block;margin-top:5px;color:#8b671d;font-size:9px;font-weight:650}
.invoice-demand-allocation select{display:block;width:100%;margin-top:4px;padding:7px 8px;border:1px solid #dec890;border-radius:6px;background:#fff;color:#263e53;font-size:11px}
.invoice-review-field.low-confidence{border-color:#edcf91;background:#fffaf1}

.invoice-tax-treatment{margin:12px 0;padding:12px 14px;border:1px solid #f0d59d;border-left:4px solid #d89b2b;border-radius:8px;background:#fff8e9;color:#5c4a2b;font-size:11px;line-height:1.5}
.invoice-tax-treatment[hidden]{display:none!important}
.invoice-tax-treatment label{display:flex;align-items:flex-start;gap:9px;cursor:pointer;font-weight:600}
.invoice-tax-treatment input{flex:0 0 auto;width:17px;height:17px;margin:1px 0 0;accent-color:#1e6e56}
.invoice-tax-treatment small{display:block;margin:6px 0 0 26px;color:#816d48;font-size:10px}
