:root{--bg:#0a1218;--pane:#101c24;--pane2:#15242e;--edge:#263947;--accent:#21d590;--ink:#f0f6f9;--dim:#9db0bd;--soft:#cddbe4;--green:#19b982;--yellow:#e7b450}html{color-scheme:dark}body.gram-v4{background:var(--bg);color:var(--ink);font:14px/1.5 Inter,system-ui,-apple-system,Segoe UI,sans-serif}body.gram-v4 *{box-sizing:border-box}body.gram-v4 a{color:inherit}body.gram-v4 .v4-shell{display:flex;min-height:100vh}body.gram-v4 .v4-sidebar{width:239px;flex:0 0 239px;min-height:100vh;position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#0a1217,#0d1b22);border-right:1px solid #24333c;display:flex;flex-direction:column;z-index:25}body.gram-v4 .v4-logo{height:91px;padding:17px;display:flex;align-items:center;gap:12px;text-decoration:none;border-bottom:1px solid #1d3038}body.gram-v4 .v4-logo img{width:51px;height:51px;object-fit:contain;background:#fff;border-radius:8px}body.gram-v4 .v4-logo strong{font-size:13px;letter-spacing:.07em;display:block;white-space:nowrap}body.gram-v4 .v4-logo small{font-size:9px;color:var(--dim);display:block}body.gram-v4 .v4-side-links{padding:19px 10px;display:flex;flex-direction:column;gap:4px;overflow:auto;min-height:0;flex:1}body.gram-v4 .v4-side-links a,body.gram-v4 .v4-more summary{display:flex;align-items:center;gap:12px;padding:11px 13px;font-weight:650;color:#c8d4df;text-decoration:none;border-radius:9px;transition:.15s;border:1px solid transparent;cursor:pointer}body.gram-v4 .v4-side-links a:hover,body.gram-v4 .v4-side-links a.selected{background:linear-gradient(90deg,#086140,#153a31);border-color:#159966;color:#fff;box-shadow:inset 3px 0 var(--accent)}body.gram-v4 .v4-navico{font-size:21px;width:25px;text-align:center;font-weight:400}body.gram-v4 .v4-more{margin-top:10px;border-top:1px solid #253540;padding-top:9px}body.gram-v4 .v4-more>div a{font-size:12px;padding:8px 18px 8px 36px}body.gram-v4 .v4-sidefoot{padding:18px 22px;border-top:1px solid #253540;display:grid;gap:6px;color:var(--dim)}body.gram-v4 .v4-sidefoot span{font-size:12px;color:var(--accent)}body.gram-v4 .v4-sidefoot i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent);margin-right:7px}body.gram-v4 .v4-workspace{width:calc(100% - 239px);min-width:0}body.gram-v4 .v4-header{height:80px;border-bottom:1px solid var(--edge);display:flex;align-items:center;gap:28px;padding:0 30px;background:#0c161d;position:sticky;top:0;z-index:20}body.gram-v4 .v4-header-brand{display:grid;min-width:206px}body.gram-v4 .v4-header-brand b{font-size:18px;letter-spacing:.06em}body.gram-v4 .v4-header-brand span{color:var(--dim);font-size:11px}body.gram-v4 .v4-global-search{display:flex;align-items:center;gap:10px;background:#192833;border:1px solid #344651;border-radius:11px;padding:0 12px;max-width:600px;flex:1}body.gram-v4 .v4-global-search>span{font-size:25px;color:#b7cdd9}body.gram-v4 .v4-global-search input{width:100%;background:transparent;border:0;outline:none;color:#f6fafd;padding:13px 0;font-size:12px}body.gram-v4 .v4-global-search kbd{white-space:nowrap;border:1px solid #415766;color:#a8bdca;font-size:10px;border-radius:5px;padding:3px 5px}body.gram-v4 .v4-account{display:flex;align-items:center;gap:10px;margin-left:auto}body.gram-v4 .v4-avatar{background:linear-gradient(135deg,#385061,#1d303e);height:38px;width:38px;display:grid;place-items:center;border-radius:50%;font-weight:bold}body.gram-v4 .v4-account-label{display:grid}body.gram-v4 .v4-account-label small{font-size:10px;color:#8ee8be}body.gram-v4 .v4-account form{margin:0}body.gram-v4 .v4-account form button{font-size:11px;background:#243541;padding:9px}body.gram-v4 .v4-mobile-toggle{display:none}body.gram-v4 .privacy-eye{background:transparent;padding:5px;border:0}body.gram-v4 .header-version{color:#a5b8c7}body.gram-v4 .v4-main{padding:26px 28px 55px;max-width:1800px;margin:auto}body.gram-v4 .pagehead{margin-bottom:17px}body.gram-v4 .pagehead small{color:#8fa3b3;font-size:10px;letter-spacing:2px}body.gram-v4 .pagehead h1{font-size:28px}body.gram-v4 .v4-hero{padding:29px 32px;border:1px solid #31505b;border-radius:15px;display:flex;justify-content:space-between;gap:25px;align-items:center;margin-bottom:17px;min-height:208px;background:linear-gradient(90deg,rgba(6,19,27,.95),rgba(11,24,32,.72)),radial-gradient(ellipse at 80% 10%,#4c625e,#19222b 50%,#0e1920)}body.gram-v4 .v4-hero small{font-size:11px;letter-spacing:2px;color:#b4c9d5}body.gram-v4 .v4-hero h2{font-size:clamp(23px,2.5vw,37px);line-height:1.24;max-width:750px;margin:8px 0}body.gram-v4 .v4-hero h2 em{color:var(--accent);font-style:normal}body.gram-v4 .v4-hero p{max-width:700px;color:#bdd0dc;margin-bottom:0}body.gram-v4 .v4-hero-right{min-width:210px;max-width:240px;background:#17252dc9;padding:20px;border:1px solid #45616a;border-radius:12px;display:grid;gap:8px}body.gram-v4 .v4-hero-right strong{font-size:24px}body.gram-v4 .v4-hero-right span{color:var(--dim);font-size:12px}body.gram-v4 .kpis{gap:13px;margin-bottom:13px}body.gram-v4 .kpi{background:linear-gradient(155deg,#172731,#101c23);border:1px solid #314450;border-radius:12px;border-top:1px solid #314450;box-shadow:none;min-height:126px;position:relative;padding:22px 19px 20px 74px}body.gram-v4 .kpi:before{content:'◈';position:absolute;left:17px;top:27px;width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:#143e32;color:var(--accent);font-size:23px}body.gram-v4 .kpi.amber:before{background:#514019;color:#ffca66}body.gram-v4 .kpi.red:before{background:#4c2630;color:#ff9a9a}body.gram-v4 .kpi span{font-size:11px;color:#b7c8d4}body.gram-v4 .kpi strong{font-size:clamp(18px,1.8vw,25px);color:#fff;margin-top:13px;line-height:1.2}body.gram-v4 .v4-microgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:14px}body.gram-v4 .v4-microgrid a{display:grid;gap:3px;border:1px solid var(--edge);border-radius:12px;background:#14222b;padding:18px;text-decoration:none}body.gram-v4 .v4-microgrid a:hover{border-color:var(--accent)}body.gram-v4 .v4-microgrid span{font-size:10px;letter-spacing:.6px;color:var(--dim)}body.gram-v4 .v4-microgrid strong{font-size:25px;color:#fff}body.gram-v4 .v4-microgrid small{color:var(--dim)}body.gram-v4 .v4-decision{display:grid;grid-template-columns:1.1fr 1fr;gap:14px;margin-bottom:14px}body.gram-v4 .v4-decision>div{min-height:171px;border-radius:13px;padding:23px;background:linear-gradient(125deg,#0b704b,#07362b);border:1px solid #12ae73}body.gram-v4 .v4-decision>.v4-decision-action{background:#131e26;border-color:#30414b}body.gram-v4 .v4-decision h2{margin:7px 0;font-size:21px}body.gram-v4 .v4-decision p{color:#c2dbd2;font-size:12px;max-width:570px}body.gram-v4 .v4-decision-action p{color:var(--dim)}body.gram-v4 .v4-decision a{display:inline-block;padding:9px 13px;border-radius:8px;background:#f5f9f7;color:#071b14;font-weight:800;text-decoration:none;margin-top:6px}body.gram-v4 .v4-decision-action a{background:#203341;color:#fff}body.gram-v4 .v4-quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}body.gram-v4 .v4-quick a{display:grid;grid-template-columns:44px auto;grid-template-rows:auto auto;align-items:center;gap:2px 12px;padding:13px;border-radius:11px;background:#1a2933;border:1px solid #30424c;text-decoration:none}body.gram-v4 .v4-quick a:first-child{background:#0e4c36;border-color:#0ecb83}body.gram-v4 .v4-quick a>b{grid-row:1/3;display:grid;place-items:center;width:42px;height:42px;background:#26404b;border-radius:10px;color:var(--accent);font-size:24px}body.gram-v4 .v4-quick strong{font-size:12px}body.gram-v4 .v4-quick small{font-size:10px;color:#9eb8c4}body.gram-v4 .v4-bottomgrid{display:grid;grid-template-columns:1.16fr 1fr .8fr;gap:14px}body.gram-v4 .v4-panel,body.gram-v4 .panel{background:#13212a;border:1px solid #2c3f4b;border-radius:13px;color:var(--ink);box-shadow:none}body.gram-v4 .v4-panel{padding:17px;min-width:0}body.gram-v4 .v4-widget-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:16px}body.gram-v4 .v4-widget-head h2{font-size:15px;margin:0}body.gram-v4 .v4-widget-head a{font-size:11px;text-decoration:none;color:#8ce3b6}body.gram-v4 .v4-muted{font-size:12px;color:var(--dim)}body.gram-v4 .v4-agenda-row{display:flex;gap:12px;align-items:center;border-top:1px solid #263944;padding:10px 0}body.gram-v4 .v4-agenda-row time{padding:8px;background:#1e3440;border-radius:7px;font-size:11px;white-space:nowrap}body.gram-v4 .v4-agenda-row div{min-width:0;flex:1}body.gram-v4 .v4-agenda-row b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}body.gram-v4 .v4-agenda-row small{display:block;color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}body.gram-v4 .v4-financial-pulse{border-radius:10px;background:#172a32;padding:15px}body.gram-v4 .v4-financial-pulse span{display:block;color:var(--dim);font-size:10px}body.gram-v4 .v4-financial-pulse strong{font-size:26px}body.gram-v4 .v4-graph{height:114px;display:flex;gap:12px;align-items:end;margin-top:14px;border-bottom:1px solid #314b54}body.gram-v4 .v4-graph i{display:block;flex:1;max-width:48px;background:linear-gradient(#2cdb91,#086f51);border-radius:5px 5px 0 0}body.gram-v4 .v4-financial-links{display:grid;gap:11px;padding-top:16px}body.gram-v4 .v4-financial-links a{display:flex;justify-content:space-between;font-size:12px;text-decoration:none}body.gram-v4 .v4-shipment-ring{width:145px;height:145px;margin:5px auto 15px;display:grid;align-content:center;text-align:center;border:17px solid #20c58a;border-right-color:#e5b75a;border-radius:50%}body.gram-v4 .v4-shipment-ring strong{font-size:30px}body.gram-v4 .v4-shipment-ring span{font-size:10px;color:var(--dim)}body.gram-v4 .v4-log-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #28404a;font-size:11px}body.gram-v4 .v4-track-link{display:block;text-decoration:none;color:#8aebbe;background:#0a422f;border:1px solid #14744f;border-radius:8px;text-align:center;margin-top:16px;padding:10px;font-size:11px;font-weight:700}body.gram-v4 .panel{padding:20px;margin-bottom:14px}body.gram-v4 .panelhead span,body.gram-v4 .panelhead small,body.gram-v4 .panel>span{color:var(--dim)}body.gram-v4 .panel h2{color:#fff}body.gram-v4 button,body.gram-v4 .primary{background:#0b7f54;border:1px solid #159c6d;color:#fff;border-radius:8px}body.gram-v4 button:hover,body.gram-v4 .primary:hover{filter:brightness(1.12)}body.gram-v4 .actions button,body.gram-v4 .actions a{background:#263a47;border:1px solid #395364;color:#e4f5f6}body.gram-v4 .form label{color:#afc4d0}body.gram-v4 input,body.gram-v4 select,body.gram-v4 textarea,body.gram-v4 .form input,body.gram-v4 .form select,body.gram-v4 .form textarea,body.gram-v4 .filters input{background:#1b2c37;color:#ecf7fa;border:1px solid #37505c;border-radius:8px}body.gram-v4 input::placeholder,body.gram-v4 textarea::placeholder{color:#879ca9}body.gram-v4 .table{overflow:auto;border-radius:10px;border:1px solid #2e414e}body.gram-v4 table th{background:#1d303b;color:#b3c5d0;font-size:10px;position:sticky;top:0;z-index:1}body.gram-v4 table th,body.gram-v4 table td{border-bottom:1px solid #2d414c;padding:11px;white-space:normal}body.gram-v4 table tbody tr:hover{background:#1b3039}body.gram-v4 .tag.ok{background:#0b6145;color:#9af4c4}body.gram-v4 .tag.wait{background:#594416;color:#ffe1a1}body.gram-v4 .hint,body.gram-v4 .empty{color:var(--dim)}body.gram-v4 .split{align-items:start}body.gram-v4 .hero{background:#1a2b34;border:1px solid #30434b}body.gram-v4 .hero p{color:var(--dim)}body.gram-v4 .business-verdict{border-radius:11px}body.gram-v4 .business-verdict p{color:#d7e5e6}body.gram-v4 .filters,body.gram-v4 .numbers,body.gram-v4 .limits{background:#13232c;color:#e6f3f7;border-color:#31444f}body.gram-v4 .numbers div,body.gram-v4 .limits div{border-color:#355060}body.gram-v4 .numbers span,body.gram-v4 .limits span{color:var(--dim)}body.gram-v4 .units article,body.gram-v4 .chips span{background:#203540;color:#d9e7ed}body.gram-v4 .v4-ship-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:13px}body.gram-v4 .v4-ship-metrics article{padding:22px;background:#172731;border:1px solid #304550;border-radius:12px;display:grid;gap:8px}body.gram-v4 .v4-ship-metrics span{font-size:10px;color:var(--dim)}body.gram-v4 .v4-ship-metrics strong{font-size:29px}body.gram-v4 .v4-collapse>summary{padding:6px 0 16px;color:#80e6bb;font-size:17px}body.gram-v4 .v4-ship-filter{display:flex;gap:12px;margin:15px 0}body.gram-v4 .v4-ship-filter input{flex:1;padding:11px}body.gram-v4 .v4-ship-filter select{min-width:185px;padding:10px}body.gram-v4 .diag-card{background:#1b3039!important;border-color:#3b5660!important;color:#e2f1f4!important}body.gram-v4 .diag-card.green{border-left-color:#14c987!important}body.gram-v4 .diag-card.red{border-left-color:#d95656!important}body.gram-v4 .diag-grid{gap:14px!important}body.gram-v4 .diag-summary{font-size:19px}body.gram-v4 .diag-raw,body.gram-v4 pre{max-width:100%;overflow:auto;background:#101b22;color:#b5e7d3;padding:15px;border-radius:10px}body.gram-v4.view-opportunities .opportunities-results{background:#12232c!important}body.gram-v4.view-opportunities .opportunities-results .table{max-height:880px}body.gram-v4.view-opportunities .radar-filters,body.gram-v4.view-opportunities .opportunity-filters{background:#13232e}body.gram-v4.view-opportunities .opportunities-results .panelhead{background:#142631!important}body.gram-v4.view-opportunities .opportunity-search-layout{gap:12px}body.gram-v4.view-opportunities .v4-filterwrap{background:#142630;padding:12px;border:1px solid #33505b;border-radius:11px;margin-bottom:14px}body.gram-v4.view-opportunities .v4-filterwrap>summary{color:#7ce3b7;padding:6px;cursor:pointer}body.gram-v4 .auth{background:#0b141b}body.auth:has(.authbox){background:radial-gradient(ellipse at 50% 45%,#425058 0%,#1a2933 34%,#09131a 75%)!important}body.auth .authbox{background:linear-gradient(150deg,#132029ed,#07131ceb);border:1px solid #71828b;box-shadow:0 0 90px #99a2a536,0 30px 70px #000b;color:#f2f7f9;width:min(450px,92vw);padding:42px;border-radius:22px;gap:17px}body.auth .authbox img{width:89px;justify-self:center;border-radius:8px;background:white}body.auth .authbox h1{text-align:center;font-size:28px;margin:5px 0 0}body.auth .authbox .auth-subtitle{text-align:center;color:#a5bfc9;margin:0 0 13px}body.auth .authbox label{color:#bcd3de}body.auth .authbox input{background:#1d2b35!important;color:#fff!important;border:1px solid #476070!important;padding:14px}body.auth .authbox button{background:linear-gradient(90deg,#0a754a,#16bd79);padding:14px;font-size:16px;box-shadow:0 7px 30px #04a9694f}body.auth .authbox small{text-align:center;color:#97aeb9}@media(max-width:1300px){body.gram-v4 .v4-header{gap:13px;padding:0 16px}body.gram-v4 .v4-header-brand{min-width:auto}body.gram-v4 .v4-header-brand span,body.gram-v4 .v4-global-search kbd{display:none}body.gram-v4 .v4-sidebar{width:205px;flex-basis:205px}body.gram-v4 .v4-workspace{width:calc(100% - 205px)}body.gram-v4 .v4-logo span small{display:none}body.gram-v4 .v4-main{padding:21px 18px 40px}body.gram-v4 .v4-bottomgrid{grid-template-columns:1fr 1fr}body.gram-v4 .v4-bottomgrid>.v4-panel:last-child{grid-column:1/-1}}@media(max-width:850px){body.gram-v4 .v4-sidebar{position:fixed;left:-245px;top:0;width:239px;transition:left .2s}body.gram-v4.nav-open .v4-sidebar{left:0;box-shadow:0 0 0 500vmax #0008}body.gram-v4 .v4-workspace{width:100%}body.gram-v4 .v4-mobile-toggle{display:block;border:1px solid #456070;padding:8px}body.gram-v4 .v4-header{height:65px}body.gram-v4 .v4-header-brand{display:none}body.gram-v4 .v4-account-label,body.gram-v4 .v4-global-search kbd{display:none}body.gram-v4 .kpis,body.gram-v4 .v4-microgrid,body.gram-v4 .v4-quick,body.gram-v4 .v4-ship-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}body.gram-v4 .v4-decision,body.gram-v4 .v4-bottomgrid{grid-template-columns:1fr}body.gram-v4 .v4-bottomgrid>.v4-panel:last-child{grid-column:auto}}@media(max-width:520px){body.gram-v4 .v4-header{padding:0 10px;gap:8px}body.gram-v4 .v4-global-search{max-width:180px}body.gram-v4 .v4-account .privacy-tools,body.gram-v4 .v4-account form{display:none}body.gram-v4 .v4-main{padding:16px 10px}body.gram-v4 .v4-hero{display:block;padding:21px}body.gram-v4 .v4-hero-right{margin-top:20px;min-width:0;max-width:none}body.gram-v4 .kpis,body.gram-v4 .v4-microgrid,body.gram-v4 .v4-quick,body.gram-v4 .v4-ship-metrics{grid-template-columns:1fr}body.gram-v4 .form{grid-template-columns:1fr}body.gram-v4 .v4-ship-filter{display:grid}body.auth .authbox{padding:28px}}


/* GRAM V4.1 · interface operacional. Nenhum valor ilustrativo é inserido por CSS. */
body.gram-v4{--bg:#081219;--pane:#101f29;--pane2:#182b36;--edge:#2b414b;--accent:#16d794;--ink:#f1f7fa;--dim:#9fb4c1;font-size:13px;line-height:1.43}
body.gram-v4 .v4-sidebar{width:222px;flex-basis:222px;background:#0b171e}
body.gram-v4 .v4-workspace{width:calc(100% - 222px)}
body.gram-v4 .v4-logo{height:68px;padding:11px 13px;gap:10px}
body.gram-v4 .v4-logo img{width:39px;height:39px}
body.gram-v4 .v4-logo strong{font-size:11px}
body.gram-v4 .v4-side-links{padding:9px 9px 12px;gap:3px;scrollbar-width:thin;scrollbar-color:#364e58 transparent}
body.gram-v4 .v41-menu{margin:0;border:0;border-radius:8px;flex:none}
body.gram-v4 .v41-menu>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;color:#9bafbc;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.07em;padding:10px 11px 5px;border:0;background:none}
body.gram-v4 .v41-menu>summary::-webkit-details-marker{display:none}
body.gram-v4 .v41-arrow{font-size:15px;transform:rotate(-90deg);transition:transform .2s}
body.gram-v4 .v41-menu[open] .v41-arrow{transform:rotate(0deg)}
body.gram-v4 .v41-menu-items{display:grid;gap:1px;padding:1px 0 3px}
body.gram-v4 .v41-menu-items a{min-height:34px;padding:6px 9px!important;gap:10px;border-radius:7px;font-size:12px;font-weight:560}
body.gram-v4 .v41-menu-items a.selected{border-color:#1ba978;box-shadow:inset 3px 0 var(--accent)}
body.gram-v4 .v4-navico{font-family:system-ui,sans-serif;font-size:17px;line-height:1;width:19px;color:#b8d4df}
body.gram-v4 .v4-sidefoot{padding:10px 17px;gap:2px}
body.gram-v4 .v4-sidefoot span{font-size:11px}
body.gram-v4 .v4-header{height:64px;padding:0 18px;gap:14px}
body.gram-v4 .v4-header-brand{min-width:185px}body.gram-v4 .v4-header-brand b{font-size:13px}body.gram-v4 .v4-header-brand span{font-size:10px}
body.gram-v4 .v4-main{max-width:1560px;padding:19px 22px 45px}
body.gram-v4 .pagehead{margin:0 0 13px}body.gram-v4 .pagehead h1{font-size:23px;margin:2px 0 0}
body.gram-v4 .pagehead small{font-size:9px}
body.gram-v4 .panel{padding:17px;margin-bottom:12px}body.gram-v4 .panel h2{font-size:18px;margin:3px 0 7px}
body.gram-v4 .panelhead{gap:12px;margin-bottom:12px}
body.gram-v4 .panel>details>summary{padding:8px 0;cursor:pointer;font-weight:750}
body.gram-v4 .form{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px}
body.gram-v4 .form.one{grid-template-columns:1fr}
body.gram-v4 .form label{font-size:11px;min-width:0;margin:0;gap:4px}
body.gram-v4 input,body.gram-v4 select,body.gram-v4 textarea,body.gram-v4 .form input,body.gram-v4 .form select,body.gram-v4 .form textarea{min-width:0;max-width:100%;padding:8px 10px;min-height:35px;font-size:12px}
body.gram-v4 .form textarea{min-height:65px}
body.gram-v4 .form button{width:max-content;max-width:100%;padding:8px 15px;min-height:35px}
body.gram-v4 .panel:has(#saleForm),body.gram-v4 .panel:has(#commitmentForm),body.gram-v4 .panel:has(#tenderCalc),body.gram-v4 .panel:has(#shipmentSearch){max-width:none}
body.gram-v4 .panel:has(#saleForm) .form,body.gram-v4 .panel:has(#commitmentForm) .form{max-width:1070px}
body.gram-v4 #saleForm>.wide{grid-column:1/-1}body.gram-v4 .sale-calc{background:#172b33!important;border-color:#314d58!important;padding:13px!important}
body.gram-v4 .sale-calc-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
body.gram-v4 .sale-calc-grid>span{padding:9px 10px;background:#203641;border:1px solid #335260;border-radius:8px;font-size:11px;display:flex!important;align-items:center;justify-content:space-between;gap:8px;min-width:0}
body.gram-v4 .sale-calc-grid strong{font-size:12px;color:#5cebb1}
body.gram-v4 .wide.form-divider{border-top:1px solid #344752;padding-top:13px}
body.gram-v4 .form-divider b{font-size:12px}body.gram-v4 .form-divider small{display:block;color:#9bb4c2}
body.gram-v4 .table{max-height:600px;overflow:auto;scrollbar-width:thin}
body.gram-v4 table th,body.gram-v4 table td{padding:9px 10px;font-size:11px}
body.gram-v4 .actions{flex-wrap:wrap;gap:5px}body.gram-v4 .actions button,body.gram-v4 .actions a{font-size:11px;padding:6px 9px;border-radius:7px;text-decoration:none}
body.gram-v4 .filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end;padding:12px}
body.gram-v4 .filters>div{flex:1 1 155px;min-width:110px}
body.gram-v4 .filters input{padding:8px;min-height:35px}
body.gram-v4 .kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:6px}
body.gram-v4 .kpis .kpi{padding:13px 16px;min-width:0;border-radius:11px}
body.gram-v4 .kpis strong{font-size:clamp(17px,1.7vw,23px)}
body.gram-v4 .kpis span{font-size:10px}
body.gram-v4 .v41-intro{display:flex;justify-content:space-between;align-items:center;gap:14px;background:linear-gradient(105deg,#113d31,#11232c 57%,#142430);border:1px solid #22634d;border-radius:12px;padding:18px 21px;margin-bottom:12px}
body.gram-v4 .v41-intro small{font-size:9px;color:#8cdec2;letter-spacing:.11em}
body.gram-v4 .v41-intro h2{font-size:22px;margin:4px 0 5px}
body.gram-v4 .v41-intro h2 em{font-style:normal;color:#50ebb0}
body.gram-v4 .v41-intro p{margin:0;color:#b5ccd3;font-size:12px}
body.gram-v4 .v41-intro-action{flex:none;text-decoration:none;background:#19825b;padding:10px 13px;border-radius:8px;font-size:11px;font-weight:750}
body.gram-v4 .v41-alert-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 12px}
body.gram-v4 .v41-task{background:#142631;border:1px solid #2b4754;border-radius:10px;display:grid;grid-template-columns:auto 1fr auto;gap:4px 9px;align-items:center;padding:11px 12px;text-decoration:none}
body.gram-v4 .v41-task span{font-size:11px;color:#d0dee6}
body.gram-v4 .v41-task strong{font-size:25px;grid-column:3;grid-row:1/3}
body.gram-v4 .v41-task small{font-size:10px;color:#8caab9;grid-column:2}
body.gram-v4 .v41-led{display:inline-block;width:9px;height:9px;flex:none;border-radius:50%;background:#586e7b;box-shadow:0 0 0 3px #6577861f}
body.gram-v4 .v41-task.attention .v41-led{background:#f6b34f;box-shadow:0 0 12px #f4ad4a88}
body.gram-v4 .v41-task.clear .v41-led{background:#28d99a;box-shadow:0 0 12px #22db9777}
body.gram-v4 .v41-data-note{font-size:10px;color:#93aabb;margin:9px 0 14px}
body.gram-v4 .v41-quick{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:9px!important;margin-bottom:12px!important}
body.gram-v4 .v41-quick a{padding:10px!important;grid-template-columns:30px auto!important;gap:2px 8px!important}
body.gram-v4 .v41-quick a>b{width:28px!important;height:29px!important;font-size:19px!important}
body.gram-v4 .v41-data-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:12px;margin-top:12px}
body.gram-v4 .v41-panel{min-width:0;background:#13232d;border:1px solid #304651;padding:17px;border-radius:12px}
body.gram-v4 .v41-panel-head{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:12px}
body.gram-v4 .v41-panel-head h2{font-size:15px;margin:0}
body.gram-v4 .v41-panel-head small{font-size:10px;color:#91adba}
body.gram-v4 .v41-panel-head a{font-size:11px;color:#75e1b4;text-decoration:none;white-space:nowrap}
body.gram-v4 .v41-legend{display:flex;gap:14px;font-size:10px;color:#b3c6cd;margin:8px 0}
body.gram-v4 .v41-swatch{width:8px;height:8px;border-radius:2px;display:inline-block;margin-right:4px;background:#22d89c}
body.gram-v4 .v41-swatch.purchase{background:#77a4bf}
body.gram-v4 .v41-month-chart{height:200px;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;padding:11px 0 0;border-bottom:1px solid #2d414b}
body.gram-v4 .v41-month{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:0;gap:5px}
body.gram-v4 .v41-month-bars{height:158px;width:100%;display:flex;align-items:end;justify-content:center;gap:5px;background:linear-gradient(transparent 49.7%,#2b414a 50%,transparent 50.3%);border-bottom:1px solid #3b515c}
body.gram-v4 .v41-bar{display:block;width:24%;max-width:27px;min-width:4px;border-radius:4px 4px 0 0;background:#24c98c;min-height:0}
body.gram-v4 .v41-bar.purchase{background:#6b9cb5}
body.gram-v4 .v41-month b{font-size:10px;font-weight:600}body.gram-v4 .v41-month small{font-size:9px;color:#93a9b5}
body.gram-v4 .v41-progress-row{margin:13px 0}
body.gram-v4 .v41-progress-row>div:first-child{display:flex;justify-content:space-between;gap:12px;font-size:11px;margin-bottom:5px}
body.gram-v4 .v41-progress-row strong{color:#d5e9f1}
body.gram-v4 .v41-progress{height:8px;background:#203441;border-radius:10px;overflow:hidden}
body.gram-v4 .v41-progress i{display:block;height:100%;border-radius:10px;background:linear-gradient(90deg,#11855d,#22dfa0)}
body.gram-v4 .v41-empty{padding:30px 10px;font-size:12px;color:#91a6b4;text-align:center}
body.gram-v4 .v41-empty a{color:#5ee6b3}
body.gram-v4 .v41-agenda{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #263c47;text-decoration:none;font-size:11px}
body.gram-v4 .v41-agenda time{font-weight:700;color:#6fe0b5;background:#0d4936;padding:7px;border-radius:6px;white-space:nowrap}
body.gram-v4 .v41-agenda div{flex:1;min-width:0}body.gram-v4 .v41-agenda b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.gram-v4 .v41-agenda small{display:block;color:#8eabb8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.gram-v4 .v41-exec-row{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:12px;padding:12px 0;border-bottom:1px solid #29404b}
body.gram-v4 .v41-exec-row span:first-child{flex:1}
body.gram-v4 .v41-exec-row strong{background:#203c46;color:#62e4b3;border-radius:6px;padding:4px 9px;font-size:15px}
/* Radar: compact controls and native accordions. Backend IDs are unchanged. */
body.gram-v4 .v41-oppshell{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:12px;align-items:start}
body.gram-v4 .v41-oppshell>.v41-oppleft,body.gram-v4 .v41-oppshell>.v41-oppfilters{min-width:0}
body.gram-v4 .v41-oppfilters{position:sticky;top:77px;max-height:calc(100vh - 88px);overflow:auto;padding:14px;scrollbar-width:thin}
body.gram-v4 .v41-oppfilters .v41-panel-head{align-items:center;margin-bottom:10px}
body.gram-v4 .v41-oppfilters h2{font-size:17px;margin:0}
body.gram-v4 .v41-filter-toggle{font-size:10px;background:#243841;border-color:#375260;padding:7px 9px}
body.gram-v4 .v41-filter-group{border:1px solid #304752;border-radius:9px;margin-bottom:8px;overflow:hidden;background:#152732}
body.gram-v4 .v41-filter-group>summary{padding:11px 12px;cursor:pointer;font-weight:730;font-size:12px;list-style:none;display:flex;justify-content:space-between;gap:6px}
body.gram-v4 .v41-filter-group>summary:after{content:'⌄';float:right;color:#88a5b4}
body.gram-v4 .v41-filter-group[open]>summary:after{transform:rotate(180deg)}
body.gram-v4 .v41-filter-group>summary::-webkit-details-marker{display:none}
body.gram-v4 .v41-filter-content{padding:11px 11px 13px;border-top:1px solid #2d4753;display:grid;gap:10px}
body.gram-v4 .v41-filter-content label{min-width:0;color:#b7cad6;font-size:11px;display:grid;gap:5px}
body.gram-v4 .v41-filter-content input,body.gram-v4 .v41-filter-content select{width:100%;font-size:12px;min-height:34px;padding:7px 9px}
body.gram-v4 .v41-period{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.gram-v4 .v41-commercial{grid-template-columns:repeat(2,minmax(0,1fr))}
body.gram-v4 .v41-filter-content .uf-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:0}
body.gram-v4 .v41-filter-content .uf-grid label{background:#1d3641;color:#cae0e9;border:1px solid #38515f;padding:7px 2px;display:flex;justify-content:center;gap:3px;font-size:10px;cursor:pointer;min-width:0;border-radius:6px;align-items:center}
body.gram-v4 .v41-filter-content .uf-grid label:has(input:checked){background:#0a5239;border-color:#26bd83;color:#fff}
body.gram-v4 .v41-filter-content .uf-grid input{width:13px;height:13px;margin:0;min-height:0;accent-color:#25dc97}
body.gram-v4 .v41-filter-content .uf-actions{margin:0;display:flex;gap:7px}
body.gram-v4 .v41-filter-content .uf-actions button{flex:1;font-size:11px;padding:6px 9px;background:#24404a;border-color:#3b5866}
body.gram-v4 .v41-selected-ufs{font-size:10px;color:#52dcaa;margin-left:auto}
body.gram-v4 .v41-portals{gap:2px;grid-template-columns:1fr}
body.gram-v4 .v41-portals .portal-check{display:flex!important;align-items:center;gap:8px;min-height:28px;padding:4px!important;font-size:10px}
body.gram-v4 .v41-portals .portal-check input{width:14px;height:14px;min-height:0;accent-color:#25cf92}
body.gram-v4 .v41-helper{font-size:10px;color:#87a2b2;margin:8px 2px}
body.gram-v4 .v41-savefilters{width:100%;padding:11px;font-size:12px;font-weight:750}
body.gram-v4 .v41-opptitle{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}
body.gram-v4 .v41-opptitle small{font-size:10px;color:#73ddb3}
body.gram-v4 .v41-opptitle p{max-width:650px;color:#9eb7c2;font-size:12px;margin:6px 0 14px}
body.gram-v4 .v41-running{display:flex;gap:8px;align-items:center;white-space:nowrap;font-size:10px;color:#b4c6d0;background:#1e323d;padding:8px 11px;border-radius:9px}
body.gram-v4 .v41-running .v41-led{background:#8da0aa}body.gram-v4 .v41-running.running .v41-led{background:#f0bc53;box-shadow:0 0 13px #f0bd53}
body.gram-v4 .v41-running.done .v41-led{background:#20d997;box-shadow:0 0 13px #20d997}
body.gram-v4 .v41-running.failed .v41-led{background:#f06868;box-shadow:0 0 13px #f06868}
body.gram-v4 .v41-search-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin:8px 0 12px}
body.gram-v4 .v41-search-actions button{padding:9px 13px;font-size:12px}
body.gram-v4 #opportunityStopButton{margin:0!important;background:#354c57}
body.gram-v4 .v41-progress-track{height:7px;background:#263d48;border-radius:12px;overflow:hidden}
body.gram-v4 #opportunityProgressBar{height:100%;background:#21d396;transition:width .3s}
body.gram-v4 .v41-lastsearch{margin:10px 0 0;border-top:1px solid #2a4350;padding-top:10px;color:#9ab1bf;font-size:11px}
body.gram-v4 .live-card{background:#182d38!important;border:1px solid #315160!important;border-left:3px solid #24d18f!important;color:#edf8fa!important;padding:13px!important;border-radius:9px!important}
body.gram-v4 .opportunities-results>.panelhead{background:#13242e!important}
body.gram-v4 .opportunities-results table{font-size:11px}
/* Connectivity: these LEDs are based on the result of the actual executed check. */
body.gram-v4.view-diagnostics .panel{background:linear-gradient(180deg,#113025,#13232d 130px);border-color:#236649}
body.gram-v4.view-diagnostics .diag-summary{padding:14px;border-radius:10px;background:#172d37;display:flex;align-items:center;gap:9px;font-size:15px;margin:11px 0!important}
body.gram-v4.view-diagnostics .diag-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
body.gram-v4.view-diagnostics .diag-card{background:#182e37!important;border-radius:11px!important;padding:15px!important;min-height:160px;display:flex;flex-direction:column;gap:8px}
body.gram-v4.view-diagnostics .diag-card.green{border:1px solid #169967!important}
body.gram-v4.view-diagnostics .diag-card.red{border:1px solid #cf5454!important}
body.gram-v4.view-diagnostics .diag-card h3{font-size:21px;margin:2px 0}
body.gram-v4.view-diagnostics .diag-card p{font-size:12px;margin:0;color:#b8cbd5}
body.gram-v4.view-diagnostics .diag-card small{font-size:10px;word-break:break-word;margin-top:auto;color:#91adba}
body.gram-v4.view-diagnostics .diag-dot{width:11px;height:11px;box-shadow:0 0 11px #f0b54872}
body.gram-v4.view-diagnostics .diag-dot.green{box-shadow:0 0 15px #20e79f9c}
body.gram-v4.view-diagnostics .diag-dot.red{box-shadow:0 0 15px #ef777799}
body.gram-v4.view-diagnostics #runDiag{background:#1a8b60;padding:10px 13px;font-size:12px}
body.gram-v4.view-diagnostics details{margin-top:18px;border-top:1px solid #305060;padding-top:12px}
/* Operational forms fit on screen. */
body.gram-v4.view-sales .form,body.gram-v4.view-commitments .form{gap:8px 12px}
body.gram-v4.view-sales .panel:has(#saleForm) details>summary{font-size:13px}
body.gram-v4.view-sales .form-divider{margin:5px 0}
body.gram-v4.view-sales #saleCalc{margin:0}
body.gram-v4 .v4-shipping-hero{min-height:120px;padding:16px 20px}
body.gram-v4 .v4-shipping-hero h2{font-size:22px;margin:3px 0}
body.gram-v4 .v4-ship-metrics article{padding:12px 14px}
body.gram-v4 .v4-ship-metrics strong{font-size:24px}
@media(max-width:1280px){body.gram-v4 .v4-sidebar{width:202px;flex-basis:202px}body.gram-v4 .v4-workspace{width:calc(100% - 202px)}body.gram-v4 .v41-quick{grid-template-columns:repeat(3,minmax(0,1fr))!important}body.gram-v4 .v41-oppshell{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:900px){body.gram-v4 .v4-sidebar{position:fixed;left:-239px;top:0;width:222px;flex-basis:222px}body.gram-v4.nav-open .v4-sidebar{left:0}body.gram-v4 .v4-workspace{width:100%}body.gram-v4 .v41-alert-row,body.gram-v4 .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}body.gram-v4 .v41-data-grid{grid-template-columns:1fr}body.gram-v4 .v41-oppshell{grid-template-columns:1fr}body.gram-v4 .v41-oppfilters{position:static;max-height:none}}
@media(max-width:590px){body.gram-v4 .v41-intro{flex-direction:column;align-items:stretch}body.gram-v4 .v41-quick{grid-template-columns:1fr 1fr!important}body.gram-v4 .v41-quick a{grid-template-columns:1fr!important}body.gram-v4 .v41-quick a>b{display:none!important}body.gram-v4 .kpis,body.gram-v4 .v41-alert-row{grid-template-columns:1fr 1fr}body.gram-v4 .v41-task{padding:9px;grid-template-columns:auto 1fr}body.gram-v4 .v41-task strong{grid-row:auto;grid-column:2}body.gram-v4 .v41-intro h2{font-size:18px}body.gram-v4 .form{grid-template-columns:1fr!important}body.gram-v4 .v41-period,body.gram-v4 .v41-commercial{grid-template-columns:1fr}body.gram-v4 .sale-calc-grid{grid-template-columns:1fr!important}body.gram-v4.view-diagnostics .diag-grid{grid-template-columns:1fr!important}}

body.gram-v4 .v41-local-search{display:flex;gap:9px;max-width:800px;margin:14px 0}body.gram-v4 .v41-local-search input{flex:1}body.gram-v4 .v41-local-search button{padding:9px 18px}body.gram-v4 .v41-search-group{border-top:1px solid #36505d;padding:15px 0}body.gram-v4 .v41-search-group h3{font-size:14px;margin:0}body.gram-v4 .v41-search-result{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:11px;border-bottom:1px solid #2e414a;text-decoration:none;font-size:12px}body.gram-v4 .v41-search-result:hover{background:#1a3740}body.gram-v4 .v41-search-result b{color:#65ddac;white-space:nowrap}
/* Final readability refinements verified in the local renderer */
body.gram-v4 .kpis .kpi{min-height:82px;padding:15px 15px!important;display:flex;flex-direction:column;justify-content:center;gap:6px}
body.gram-v4 .kpis .kpi::before{display:none!important;content:none!important}
body.gram-v4 .kpis .kpi strong{margin:0!important;line-height:1.2!important;overflow-wrap:anywhere;font-size:clamp(17px,1.8vw,23px)}
body.gram-v4 .opportunities-results{margin:12px 0 0!important}
body.gram-v4 .opportunities-results table thead th{background:#203642!important;color:#c3d6df!important;box-shadow:0 1px 0 #375161!important}
body.gram-v4 .opportunities-results table td{background:#152935!important;color:#dcecf2!important}
body.gram-v4 .opportunities-results .table{max-height:590px!important}
body.gram-v4 .opportunities-results .panelhead{position:static!important;background:transparent!important}
body.gram-v4 .v41-oppleft .v41-opp-run{margin-bottom:12px}
body.gram-v4 .panel .form.one{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}
body.gram-v4 .panel .form.one>.wide{grid-column:1/-1}
body.gram-v4 .tag.ok::before,body.gram-v4 .tag.wait::before{content:'';display:inline-block;vertical-align:middle;height:7px;width:7px;margin-right:5px;border-radius:50%;background:#26df96;box-shadow:0 0 7px #20d39399}
body.gram-v4 .tag.wait::before{background:#eac05b;box-shadow:0 0 7px #eac05b77}
@media(max-width:650px){body.gram-v4 .panel .form.one{grid-template-columns:1fr}}

/* GRAM V4.2 · aparência, navegação e revisão de pendências */
body.gram-v4 .v41-menu{margin:3px 0 5px!important;border:1px solid transparent!important;border-radius:12px!important;overflow:hidden}
body.gram-v4 .v41-menu>summary{position:relative;min-height:37px;padding:9px 10px 9px 15px!important;font-size:11px!important;letter-spacing:.035em!important;display:flex!important;align-items:center!important;gap:10px;color:#c0d1d9!important;border-radius:9px!important;transition:background .2s,border-color .2s!important}
body.gram-v4 .v41-menu>summary::before{content:'';width:5px;height:18px;flex:0 0 5px;border-radius:10px;background:#39515d;transition:.2s}
body.gram-v4 .v41-menu[open]>summary::before{background:#22d999;box-shadow:0 0 13px #2cfab267}
body.gram-v4 .v41-menu>summary:hover,body.gram-v4 .v41-menu[open]>summary{background:#162a33;color:#f5fffd!important}
body.gram-v4 .v41-menu .v42-group-state{margin-left:auto;width:20px;height:20px;border:1px solid #42606b;background:#1b303a;border-radius:7px;display:grid;place-items:center;font-size:0}
body.gram-v4 .v41-menu .v42-group-state::before{content:'+';font-size:15px;font-weight:500;line-height:1;color:#a7d8c6}
body.gram-v4 .v41-menu[open] .v42-group-state::before{content:'−';color:#44e7ad}
body.gram-v4 .v41-menu-items{padding:5px 5px 7px 10px!important;gap:3px!important;border-left:1px solid #294f4d;margin-left:17px}
body.gram-v4 .v41-menu-items a{min-height:35px;border-radius:9px!important;font-weight:560}
body.gram-v4 .v41-menu-items a:hover{background:#1b3839}
body.gram-v4 .v41-menu-items a.selected{background:#0a523d!important;border:1px solid #1eae7a!important;box-shadow:inset 3px 0 #40e7af!important}
body.gram-v4 .v42-theme-shortcut{font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:6px;color:#bcead9;padding:6px 9px;text-decoration:none;border:1px solid #36505b;border-radius:8px;background:#193039;white-space:nowrap}
body.gram-v4 .v42-theme-shortcut:hover{border-color:#26d7a0;color:#edfff9}
body.gram-v4 input[type="checkbox"]:not(.v42-switch-label input),body.gram-v4 input[type="radio"]:not(.v42-theme-card input){appearance:auto!important;accent-color:#17b77c!important;width:17px!important;height:17px!important;min-height:17px!important;min-width:17px!important;max-width:17px!important;padding:0!important;border:1px solid #51727a!important;border-radius:4px;vertical-align:middle;cursor:pointer;flex:0 0 17px}
body.gram-v4 label.check,body.gram-v4 .portal-check,body.gram-v4 .uf-grid label{display:inline-flex!important;align-items:center!important;gap:7px!important}
body.gram-v4 .v42-switch-label{display:inline-flex!important;align-items:center;gap:10px;flex-direction:row!important;cursor:pointer;justify-content:flex-start;max-width:max-content;padding:5px 2px;color:var(--ink)!important}
body.gram-v4 .v42-switch-label input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;padding:0!important}
body.gram-v4 .v42-switch-track{width:39px;height:23px;flex:none;background:#4d606b;border:1px solid #687d87;border-radius:99px;position:relative;transition:.2s}
body.gram-v4 .v42-switch-track::before{content:'';position:absolute;top:3px;left:3px;width:15px;height:15px;background:#f8fcff;border-radius:50%;transition:transform .2s}
body.gram-v4 .v42-switch-label input:checked+.v42-switch-track{background:#128557;border-color:#25cf94;box-shadow:0 0 9px #1ee5a445}
body.gram-v4 .v42-switch-label input:checked+.v42-switch-track::before{transform:translateX(16px)}
body.gram-v4 .v42-switch-label input:focus-visible+.v42-switch-track{outline:2px solid #4ee6b1;outline-offset:3px}
body.gram-v4 .settings-list article{background:#1d303a!important;border:1px solid #395561!important;border-radius:9px!important;color:#e3f2f6!important}
body.gram-v4 .settings-list article b{color:#f5fffd!important}body.gram-v4 .settings-list article small{color:#a4c1cd!important}
body.gram-v4 .settings-list article .actions a,body.gram-v4 .settings-list article .actions button{background:#2c4450;color:#eaf9f7;border-color:#446270}
body.gram-v4 .v42-appearance{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;align-items:center;padding:17px 20px!important}
body.gram-v4 .v42-appearance h2{margin:5px 0 4px!important}
body.gram-v4 .v42-theme-form{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap}
body.gram-v4 .v42-theme-card{cursor:pointer;display:block;min-width:125px;flex:1 1 130px;max-width:225px;position:relative}
body.gram-v4 .v42-theme-card input{position:absolute;opacity:0;width:1px;height:1px}
body.gram-v4 .v42-theme-tile{display:grid;grid-template-columns:35px 1fr;column-gap:8px;row-gap:0;align-items:center;background:#182c35;border:1px solid #395660;border-radius:10px;min-height:60px;padding:9px 11px;color:#d3e4e8;transition:.2s}
body.gram-v4 .v42-theme-tile strong{font-size:12px;line-height:16px}
body.gram-v4 .v42-theme-tile small{font-size:10px;color:#9cb7c1;grid-column:2;align-self:start}
body.gram-v4 .v42-theme-glyph{grid-row:1/3;display:grid;place-items:center;font-size:26px;font-weight:400;width:34px;height:34px;border-radius:9px;background:#203f45;color:#64ddaf}
body.gram-v4 .v42-theme-card input:checked+.v42-theme-tile{background:#104a3a;border-color:#3bddaa;box-shadow:inset 0 0 0 1px #2fcf9b}
body.gram-v4 .v42-theme-card input:focus-visible+.v42-theme-tile{outline:2px solid #5ee5b5;outline-offset:3px}
body.gram-v4 .v42-theme-form>button{padding:9px 16px;align-self:center;font-size:12px;white-space:nowrap}
body.gram-v4 .v42-audit-head{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-bottom:13px;padding:17px 20px;background:linear-gradient(110deg,#123a34,#152a32 70%);border:1px solid #316154;border-radius:12px}
body.gram-v4 .v42-audit-head span{font-size:10px;letter-spacing:.09em;color:#86e5b9}
body.gram-v4 .v42-audit-head h2{font-size:21px;margin:5px 0}
body.gram-v4 .v42-audit-head p{margin:0;font-size:12px;color:#b3cad1}
body.gram-v4 .v42-audit-stats{display:flex;gap:9px}
body.gram-v4 .v42-audit-stats>span{min-width:92px;display:grid;gap:3px;padding:9px 14px;text-align:center;background:#132f31;border:1px solid #36595a;border-radius:10px;color:#bcd7ce;font-size:10px;letter-spacing:0}
body.gram-v4 .v42-audit-stats strong{font-size:22px;color:#f6fdfa}
body.gram-v4 .v42-audit-tools{display:flex;flex-wrap:wrap;gap:11px;align-items:end;margin-bottom:12px}
body.gram-v4 .v42-audit-tools>label{display:grid;gap:5px;font-size:11px;color:#a5c0cb}
body.gram-v4 .v42-audit-tools>label:first-child{flex:1;min-width:220px}
body.gram-v4 .v42-issue-show-reviewed{display:flex!important;flex-direction:row;gap:8px!important;align-items:center;padding-bottom:9px;white-space:nowrap}
body.gram-v4 .v42-issues-table{max-height:620px!important}
body.gram-v4 .v42-issues-table th:last-child,body.gram-v4 .v42-issues-table td:last-child{min-width:190px}
body.gram-v4 .v42-issue-row{cursor:pointer;transition:background .15s}
body.gram-v4 .v42-issue-row:hover{background:#1e3f43!important;box-shadow:inset 3px 0 #2edfa0}
body.gram-v4 .v42-issue-row:focus-visible{outline:2px solid #54efbd;outline-offset:-2px}
body.gram-v4 .v42-issue-row td:first-child b{font-size:12px;white-space:nowrap}
body.gram-v4 .v42-issue-row td:first-child small,body.gram-v4 .v42-issue-row td:nth-child(3) small{display:block;color:#9db8c6;margin-top:3px;font-size:10px}
body.gram-v4 .v42-issue-type{font-size:10px;padding:4px 7px;border-radius:99px;font-weight:bold;background:#25404c;border:1px solid #436576;color:#b7ddf1}
body.gram-v4 .v42-issue-type.date{background:#594520;border-color:#816326;color:#ffdf93}
body.gram-v4 .v42-issue-type.identity{background:#4f3144;border-color:#7c4b67;color:#f6b5d3}
body.gram-v4 .v42-issue-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
body.gram-v4 .v42-issue-actions a,body.gram-v4 .v42-issue-actions button{white-space:nowrap;text-decoration:none;padding:7px 10px;font-size:10px;border:1px solid #456675;border-radius:8px}
body.gram-v4 .v42-issue-actions a{background:#0b654b;color:#ebfff7;border-color:#238c6e}
body.gram-v4 .v42-issue-actions button{background:#29404b;color:#d4e5eb}
body.gram-v4 .v42-issue-actions form{margin:0}
body.gram-v4 .v42-issue-row.is-reviewed{opacity:.73}body.gram-v4 .v42-issue-row.is-reviewed td{background:#182832}
body.gram-v4 .v42-context-note{padding:12px 15px;border:1px solid #ad944c;background:#493f24;color:#ffeca6;border-radius:10px;margin-bottom:13px;font-size:12px}
body.gram-v4 .v42-context-note a{margin-left:12px;color:#eaffef;text-decoration:underline}
body.gram-v4 .v42-field-focus{border-color:#e7ba4d!important;box-shadow:0 0 0 3px #d6a63b4d!important}
body.gram-v4 .v42-issue-match{box-shadow:inset 4px 0 #2ad99d!important;background:#1c3837!important}
body.gram-v4.view-settings .form.one .v42-switch-label{grid-column:1/-1}
@media(max-width:1100px){body.gram-v4 .v42-appearance{grid-template-columns:1fr}body.gram-v4 .v42-audit-head{align-items:start;flex-direction:column}}
@media(max-width:680px){body.gram-v4 .v42-audit-stats{width:100%}body.gram-v4 .v42-audit-stats>span{flex:1;min-width:0}body.gram-v4 .v42-audit-tools>label{flex:1 1 100%}body.gram-v4 .v42-theme-card{max-width:none}body.gram-v4 .v42-theme-shortcut span{display:none}}

/* Personalização clara: sobrescritas sem alterar o funcionamento */
html:has(body.gram-v4[data-theme="light"]){color-scheme:light}
body.gram-v4[data-theme="light"]{--bg:#f3f7f9!important;--pane:#fff!important;--pane2:#edf4f6!important;--edge:#d6e3e8!important;--accent:#087b58!important;--ink:#18303d!important;--dim:#597482!important;background:#f3f7f9!important;color:#18303d!important}
body.gram-v4[data-theme="light"] .v4-sidebar{background:linear-gradient(180deg,#f9fcfe,#ecf4f7)!important;border-color:#d5e1e7!important}
body.gram-v4[data-theme="light"] .v4-logo,body.gram-v4[data-theme="light"] .v4-sidefoot{border-color:#dae7ea!important;color:#152f39!important}
body.gram-v4[data-theme="light"] .v4-logo strong,body.gram-v4[data-theme="light"] .v4-header-brand b,body.gram-v4[data-theme="light"] .v4-account-label b{color:#14313c!important}
body.gram-v4[data-theme="light"] .v4-logo small,body.gram-v4[data-theme="light"] .v4-header-brand span{color:#5d7885!important}
body.gram-v4[data-theme="light"] .v41-menu>summary{color:#315365!important}
body.gram-v4[data-theme="light"] .v41-menu>summary:hover,body.gram-v4[data-theme="light"] .v41-menu[open]>summary{background:#deedea!important;color:#15392e!important}
body.gram-v4[data-theme="light"] .v41-menu>summary::before{background:#aac7c8}
body.gram-v4[data-theme="light"] .v41-menu .v42-group-state{background:#f0f8f6!important;border-color:#b5d7ce!important}
body.gram-v4[data-theme="light"] .v41-menu .v42-group-state::before{color:#237c61!important}
body.gram-v4[data-theme="light"] .v41-menu-items{border-color:#b6d8ce!important}
body.gram-v4[data-theme="light"] .v41-menu-items a{color:#355564!important}
body.gram-v4[data-theme="light"] .v41-menu-items a:hover{background:#e1f2ee!important;color:#14583f!important}
body.gram-v4[data-theme="light"] .v41-menu-items a.selected{background:#d1f3e5!important;color:#106344!important;border-color:#4db390!important}
body.gram-v4[data-theme="light"] .v4-navico{color:#32735f!important}
body.gram-v4[data-theme="light"] .v4-header{background:#fff!important;border-color:#d8e4e8!important;box-shadow:0 2px 15px #b8ccd52a}
body.gram-v4[data-theme="light"] .v4-global-search{background:#eff5f8!important;border-color:#cadce4!important}
body.gram-v4[data-theme="light"] .v4-global-search input,body.gram-v4[data-theme="light"] .v4-global-search>span,body.gram-v4[data-theme="light"] .v4-global-search kbd{color:#395969!important}
body.gram-v4[data-theme="light"] .v4-global-search input::placeholder{color:#768c99!important}
body.gram-v4[data-theme="light"] .v4-account-label small{color:#147b57!important}
body.gram-v4[data-theme="light"] .v42-theme-shortcut{background:#e5f2ed;border-color:#c0dbce;color:#126847}
body.gram-v4[data-theme="light"] .header-version{color:#53727e!important}
body.gram-v4[data-theme="light"] .v4-avatar{background:#dbebe9!important;color:#11533c!important}
body.gram-v4[data-theme="light"] .pagehead small,body.gram-v4[data-theme="light"] .v42-appearance span,body.gram-v4[data-theme="light"] .v41-panel-head small{color:#607b87!important}
body.gram-v4[data-theme="light"] .pagehead h1,body.gram-v4[data-theme="light"] h1,body.gram-v4[data-theme="light"] h2,body.gram-v4[data-theme="light"] h3{color:#15313e!important}
body.gram-v4[data-theme="light"] .v4-main,body.gram-v4[data-theme="light"] .v4-workspace{background:#f3f7f9!important}
body.gram-v4[data-theme="light"] .panel,body.gram-v4[data-theme="light"] .v4-panel,body.gram-v4[data-theme="light"] .v41-panel,body.gram-v4[data-theme="light"] .v41-data-grid>*,body.gram-v4[data-theme="light"] .v41-task,body.gram-v4[data-theme="light"] .v41-oppfilters,body.gram-v4[data-theme="light"] .v41-opp-run,body.gram-v4[data-theme="light"] .v41-quick a,body.gram-v4[data-theme="light"] .v41-search-result,body.gram-v4[data-theme="light"] .v4-microgrid a,body.gram-v4[data-theme="light"] .v4-ship-metrics article,body.gram-v4[data-theme="light"] .v42-appearance{background:#fff!important;border-color:#d5e3e8!important;color:#1e3541!important;box-shadow:0 5px 18px #a1bfc918!important}
body.gram-v4[data-theme="light"] .panel h2,body.gram-v4[data-theme="light"] .v41-panel h2,body.gram-v4[data-theme="light"] .panel h3,body.gram-v4[data-theme="light"] .v4-panel h2,body.gram-v4[data-theme="light"] .settings-list article b,body.gram-v4[data-theme="light"] .v41-task strong,body.gram-v4[data-theme="light"] .kpi strong{color:#193740!important}
body.gram-v4[data-theme="light"] .kpi,body.gram-v4[data-theme="light"] .v41-data-chart,body.gram-v4[data-theme="light"] .v41-data-group,body.gram-v4[data-theme="light"] .v41-oppstats>*{background:#fff!important;border:1px solid #d2e1e7!important;color:#213b46!important}
body.gram-v4[data-theme="light"] .v41-intro,body.gram-v4[data-theme="light"] .v4-hero,body.gram-v4[data-theme="light"] .v4-shipping-hero{background:linear-gradient(115deg,#e8f6f1,#dcebf2 70%,#e9f4f6)!important;border-color:#b4d9cf!important}
body.gram-v4[data-theme="light"] .v41-intro h2,body.gram-v4[data-theme="light"] .v4-hero h2,body.gram-v4[data-theme="light"] .v41-intro p,body.gram-v4[data-theme="light"] .v4-hero p{color:#204451!important}
body.gram-v4[data-theme="light"] .v41-intro small,body.gram-v4[data-theme="light"] .v4-hero small{color:#2f8063!important}
body.gram-v4[data-theme="light"] .v4-hero h2 em,body.gram-v4[data-theme="light"] .v41-intro h2 em{color:#0d825b!important}
body.gram-v4[data-theme="light"] .v4-hero-right{background:#fff!important;border-color:#bad8dc!important;color:#21404a!important}
body.gram-v4[data-theme="light"] .v4-hero-right strong{color:#134633!important}
body.gram-v4[data-theme="light"] .v41-task span,body.gram-v4[data-theme="light"] .v41-task small,body.gram-v4[data-theme="light"] .v4-microgrid span,body.gram-v4[data-theme="light"] .v4-microgrid small,body.gram-v4[data-theme="light"] .hint,body.gram-v4[data-theme="light"] .v4-muted{color:#66808c!important}
body.gram-v4[data-theme="light"] .v41-task{color:#28434c!important}
body.gram-v4[data-theme="light"] .v4-decision>div{background:linear-gradient(120deg,#dbf2e9,#eef9f4)!important;border-color:#acd8c6!important}
body.gram-v4[data-theme="light"] .v4-decision>.v4-decision-action{background:#fff!important;border-color:#d4e4e9!important}
body.gram-v4[data-theme="light"] .v4-decision h2,body.gram-v4[data-theme="light"] .v4-decision p{color:#254c48!important}
body.gram-v4[data-theme="light"] .v4-quick a{background:#fff!important;border-color:#d8e5e9!important;color:#27434b!important}
body.gram-v4[data-theme="light"] .v4-quick strong,body.gram-v4[data-theme="light"] .v4-quick small{color:#284b56!important}
body.gram-v4[data-theme="light"] .v4-quick a>b{background:#ddf1e8;color:#057b56}
body.gram-v4[data-theme="light"] .v4-financial-pulse,body.gram-v4[data-theme="light"] .v41-chart-inner,body.gram-v4[data-theme="light"] .v41-stat-row{background:#f0f7f7!important;border-color:#d6e6e7!important;color:#22464a!important}
body.gram-v4[data-theme="light"] .v4-financial-pulse strong{color:#154633!important}
body.gram-v4[data-theme="light"] .v4-agenda-row,body.gram-v4[data-theme="light"] .v4-log-row{border-color:#dce8ec!important}
body.gram-v4[data-theme="light"] .v4-agenda-row time{background:#e6f3f1!important;color:#24434b!important}
body.gram-v4[data-theme="light"] .v4-agenda-row b{color:#24424f!important}
body.gram-v4[data-theme="light"] input,body.gram-v4[data-theme="light"] select,body.gram-v4[data-theme="light"] textarea,body.gram-v4[data-theme="light"] .form input,body.gram-v4[data-theme="light"] .form select,body.gram-v4[data-theme="light"] .form textarea,body.gram-v4[data-theme="light"] .filters input{background:#f5f9fb!important;color:#213b46!important;border:1px solid #cadce3!important}
body.gram-v4[data-theme="light"] input::placeholder,body.gram-v4[data-theme="light"] textarea::placeholder{color:#708995!important}
body.gram-v4[data-theme="light"] .form label,body.gram-v4[data-theme="light"] label,body.gram-v4[data-theme="light"] .panel>span,body.gram-v4[data-theme="light"] .panelhead small,body.gram-v4[data-theme="light"] .panelhead span{color:#405f6b!important}
body.gram-v4[data-theme="light"] button:not(.danger),body.gram-v4[data-theme="light"] .primary{color:#fff!important}
body.gram-v4[data-theme="light"] .actions a,body.gram-v4[data-theme="light"] .actions button,body.gram-v4[data-theme="light"] .settings-list article .actions a,body.gram-v4[data-theme="light"] .settings-list article .actions button{background:#e8f1f5!important;border-color:#c6dce5!important;color:#1a4858!important}
body.gram-v4[data-theme="light"] .settings-list article{background:#f3f8f9!important;border-color:#d5e4e6!important;color:#284754!important}
body.gram-v4[data-theme="light"] .settings-list article b{color:#173741!important}
body.gram-v4[data-theme="light"] .settings-list article small{color:#617f89!important}
body.gram-v4[data-theme="light"] .table,body.gram-v4[data-theme="light"] .v42-issues-table{border-color:#d4e2e8!important;background:#fff!important}
body.gram-v4[data-theme="light"] table,body.gram-v4[data-theme="light"] table td{color:#294653!important;border-color:#dfebee!important}
body.gram-v4[data-theme="light"] table th,body.gram-v4[data-theme="light"] .opportunities-results table thead th{background:#e8f2f5!important;color:#305867!important;box-shadow:none!important}
body.gram-v4[data-theme="light"] table tbody tr:hover,body.gram-v4[data-theme="light"] .v42-issue-row:hover{background:#e4f7ef!important}
body.gram-v4[data-theme="light"] .opportunities-results,body.gram-v4[data-theme="light"].view-opportunities .opportunities-results,body.gram-v4[data-theme="light"].view-opportunities .opportunities-results .panelhead{background:#fff!important;border-color:#d8e5ea!important}
body.gram-v4[data-theme="light"] .opportunities-results table td{background:#fff!important;color:#284552!important}
body.gram-v4[data-theme="light"] .v41-filter-group,body.gram-v4[data-theme="light"] .v41-filter-content,body.gram-v4[data-theme="light"] .v41-oppfilters,body.gram-v4[data-theme="light"] .radar-filters{background:#fff!important;border-color:#d7e6e9!important;color:#2e4c58!important}
body.gram-v4[data-theme="light"] .v41-filter-group summary{color:#285664!important}
body.gram-v4[data-theme="light"] .v41-oppfilters .uf-grid label,body.gram-v4[data-theme="light"] .v41-portals label{background:#f3f8fa!important;color:#245362!important;border-color:#dce9ed!important}
body.gram-v4[data-theme="light"] .v4-shipment-ring{color:#214b54!important}
body.gram-v4[data-theme="light"] .v4-track-link{background:#e8f6ee!important;color:#145c42!important;border-color:#a2d5ba!important}
body.gram-v4[data-theme="light"] .tag.wait{background:#fff0c8!important;color:#835b0c!important}
body.gram-v4[data-theme="light"] .tag.ok{background:#ddf6e9!important;color:#076944!important}
body.gram-v4[data-theme="light"] .diag-card,body.gram-v4[data-theme="light"] .diag-card.green,body.gram-v4[data-theme="light"] .diag-card.red{background:#f5fafb!important;border-color:#c9e0e5!important;color:#20424e!important}
body.gram-v4[data-theme="light"] .diag-summary{color:#22444c!important}
body.gram-v4[data-theme="light"] pre,body.gram-v4[data-theme="light"] .diag-raw{background:#edf4f7!important;color:#1c4f56!important}
body.gram-v4[data-theme="light"] .sale-calc{background:#f1f7f9!important;border-color:#d6e5e9!important}
body.gram-v4[data-theme="light"] .sale-calc-grid>span{background:#fff!important;border-color:#dce8ec!important;color:#3a515f!important}
body.gram-v4[data-theme="light"] .sale-calc-grid strong{color:#0f7b56!important}
body.gram-v4[data-theme="light"] .v42-theme-tile{background:#f4f9fa;border-color:#d4e4e7;color:#234552}
body.gram-v4[data-theme="light"] .v42-theme-tile small{color:#62808d}
body.gram-v4[data-theme="light"] .v42-theme-glyph{background:#e2f0ee;color:#1b855f}
body.gram-v4[data-theme="light"] .v42-theme-card input:checked+.v42-theme-tile{background:#d6f3e8;border-color:#149e70;color:#13674b}
body.gram-v4[data-theme="light"] .v42-audit-head{background:#e5f5ef;border-color:#b4d9ca}
body.gram-v4[data-theme="light"] .v42-audit-head h2,body.gram-v4[data-theme="light"] .v42-audit-head p{color:#264955!important}
body.gram-v4[data-theme="light"] .v42-audit-stats>span{background:#fff;border-color:#c9ded8;color:#496e65}
body.gram-v4[data-theme="light"] .v42-audit-stats strong{color:#16674e}
body.gram-v4[data-theme="light"] .v42-issue-row.is-reviewed td{background:#f0f5f7!important}
body.gram-v4[data-theme="light"] .v42-issue-row:hover{background:#e4f7ef!important}
body.gram-v4[data-theme="light"] .v42-issue-type.date{background:#fff0cf;color:#806111}
body.gram-v4[data-theme="light"] .v42-issue-type.identity{background:#fde7ef;color:#934465}
body.gram-v4[data-theme="light"] .v42-context-note{background:#fff7e4;color:#835e19;border-color:#eed18e}
body.gram-v4[data-theme="light"] .v42-context-note a{color:#006d53}
body.gram-v4[data-theme="light"] .v42-switch-track{background:#bbccd1}
body.gram-v4[data-theme="light"] .v42-issue-actions button{color:#244a56!important;background:#e9f1f5!important;border-color:#cadde3!important}

@media(prefers-color-scheme:light){
html:has(body.gram-v4[data-theme="auto"]){color-scheme:light}
body.gram-v4[data-theme="auto"]{--bg:#f3f7f9!important;--pane:#fff!important;--pane2:#edf4f6!important;--edge:#d6e3e8!important;--accent:#087b58!important;--ink:#18303d!important;--dim:#597482!important;background:#f3f7f9!important;color:#18303d!important}
body.gram-v4[data-theme="auto"] .v4-sidebar{background:linear-gradient(180deg,#f9fcfe,#ecf4f7)!important;border-color:#d5e1e7!important}
body.gram-v4[data-theme="auto"] .v4-logo,body.gram-v4[data-theme="auto"] .v4-sidefoot{border-color:#dae7ea!important;color:#152f39!important}
body.gram-v4[data-theme="auto"] .v4-logo strong,body.gram-v4[data-theme="auto"] .v4-header-brand b,body.gram-v4[data-theme="auto"] .v4-account-label b{color:#14313c!important}
body.gram-v4[data-theme="auto"] .v4-logo small,body.gram-v4[data-theme="auto"] .v4-header-brand span{color:#5d7885!important}
body.gram-v4[data-theme="auto"] .v41-menu>summary{color:#315365!important}
body.gram-v4[data-theme="auto"] .v41-menu>summary:hover,body.gram-v4[data-theme="auto"] .v41-menu[open]>summary{background:#deedea!important;color:#15392e!important}
body.gram-v4[data-theme="auto"] .v41-menu>summary::before{background:#aac7c8}
body.gram-v4[data-theme="auto"] .v41-menu .v42-group-state{background:#f0f8f6!important;border-color:#b5d7ce!important}
body.gram-v4[data-theme="auto"] .v41-menu .v42-group-state::before{color:#237c61!important}
body.gram-v4[data-theme="auto"] .v41-menu-items{border-color:#b6d8ce!important}
body.gram-v4[data-theme="auto"] .v41-menu-items a{color:#355564!important}
body.gram-v4[data-theme="auto"] .v41-menu-items a:hover{background:#e1f2ee!important;color:#14583f!important}
body.gram-v4[data-theme="auto"] .v41-menu-items a.selected{background:#d1f3e5!important;color:#106344!important;border-color:#4db390!important}
body.gram-v4[data-theme="auto"] .v4-navico{color:#32735f!important}
body.gram-v4[data-theme="auto"] .v4-header{background:#fff!important;border-color:#d8e4e8!important;box-shadow:0 2px 15px #b8ccd52a}
body.gram-v4[data-theme="auto"] .v4-global-search{background:#eff5f8!important;border-color:#cadce4!important}
body.gram-v4[data-theme="auto"] .v4-global-search input,body.gram-v4[data-theme="auto"] .v4-global-search>span,body.gram-v4[data-theme="auto"] .v4-global-search kbd{color:#395969!important}
body.gram-v4[data-theme="auto"] .v4-global-search input::placeholder{color:#768c99!important}
body.gram-v4[data-theme="auto"] .v4-account-label small{color:#147b57!important}
body.gram-v4[data-theme="auto"] .v42-theme-shortcut{background:#e5f2ed;border-color:#c0dbce;color:#126847}
body.gram-v4[data-theme="auto"] .header-version{color:#53727e!important}
body.gram-v4[data-theme="auto"] .v4-avatar{background:#dbebe9!important;color:#11533c!important}
body.gram-v4[data-theme="auto"] .pagehead small,body.gram-v4[data-theme="auto"] .v42-appearance span,body.gram-v4[data-theme="auto"] .v41-panel-head small{color:#607b87!important}
body.gram-v4[data-theme="auto"] .pagehead h1,body.gram-v4[data-theme="auto"] h1,body.gram-v4[data-theme="auto"] h2,body.gram-v4[data-theme="auto"] h3{color:#15313e!important}
body.gram-v4[data-theme="auto"] .v4-main,body.gram-v4[data-theme="auto"] .v4-workspace{background:#f3f7f9!important}
body.gram-v4[data-theme="auto"] .panel,body.gram-v4[data-theme="auto"] .v4-panel,body.gram-v4[data-theme="auto"] .v41-panel,body.gram-v4[data-theme="auto"] .v41-data-grid>*,body.gram-v4[data-theme="auto"] .v41-task,body.gram-v4[data-theme="auto"] .v41-oppfilters,body.gram-v4[data-theme="auto"] .v41-opp-run,body.gram-v4[data-theme="auto"] .v41-quick a,body.gram-v4[data-theme="auto"] .v41-search-result,body.gram-v4[data-theme="auto"] .v4-microgrid a,body.gram-v4[data-theme="auto"] .v4-ship-metrics article,body.gram-v4[data-theme="auto"] .v42-appearance{background:#fff!important;border-color:#d5e3e8!important;color:#1e3541!important;box-shadow:0 5px 18px #a1bfc918!important}
body.gram-v4[data-theme="auto"] .panel h2,body.gram-v4[data-theme="auto"] .v41-panel h2,body.gram-v4[data-theme="auto"] .panel h3,body.gram-v4[data-theme="auto"] .v4-panel h2,body.gram-v4[data-theme="auto"] .settings-list article b,body.gram-v4[data-theme="auto"] .v41-task strong,body.gram-v4[data-theme="auto"] .kpi strong{color:#193740!important}
body.gram-v4[data-theme="auto"] .kpi,body.gram-v4[data-theme="auto"] .v41-data-chart,body.gram-v4[data-theme="auto"] .v41-data-group,body.gram-v4[data-theme="auto"] .v41-oppstats>*{background:#fff!important;border:1px solid #d2e1e7!important;color:#213b46!important}
body.gram-v4[data-theme="auto"] .v41-intro,body.gram-v4[data-theme="auto"] .v4-hero,body.gram-v4[data-theme="auto"] .v4-shipping-hero{background:linear-gradient(115deg,#e8f6f1,#dcebf2 70%,#e9f4f6)!important;border-color:#b4d9cf!important}
body.gram-v4[data-theme="auto"] .v41-intro h2,body.gram-v4[data-theme="auto"] .v4-hero h2,body.gram-v4[data-theme="auto"] .v41-intro p,body.gram-v4[data-theme="auto"] .v4-hero p{color:#204451!important}
body.gram-v4[data-theme="auto"] .v41-intro small,body.gram-v4[data-theme="auto"] .v4-hero small{color:#2f8063!important}
body.gram-v4[data-theme="auto"] .v4-hero h2 em,body.gram-v4[data-theme="auto"] .v41-intro h2 em{color:#0d825b!important}
body.gram-v4[data-theme="auto"] .v4-hero-right{background:#fff!important;border-color:#bad8dc!important;color:#21404a!important}
body.gram-v4[data-theme="auto"] .v4-hero-right strong{color:#134633!important}
body.gram-v4[data-theme="auto"] .v41-task span,body.gram-v4[data-theme="auto"] .v41-task small,body.gram-v4[data-theme="auto"] .v4-microgrid span,body.gram-v4[data-theme="auto"] .v4-microgrid small,body.gram-v4[data-theme="auto"] .hint,body.gram-v4[data-theme="auto"] .v4-muted{color:#66808c!important}
body.gram-v4[data-theme="auto"] .v41-task{color:#28434c!important}
body.gram-v4[data-theme="auto"] .v4-decision>div{background:linear-gradient(120deg,#dbf2e9,#eef9f4)!important;border-color:#acd8c6!important}
body.gram-v4[data-theme="auto"] .v4-decision>.v4-decision-action{background:#fff!important;border-color:#d4e4e9!important}
body.gram-v4[data-theme="auto"] .v4-decision h2,body.gram-v4[data-theme="auto"] .v4-decision p{color:#254c48!important}
body.gram-v4[data-theme="auto"] .v4-quick a{background:#fff!important;border-color:#d8e5e9!important;color:#27434b!important}
body.gram-v4[data-theme="auto"] .v4-quick strong,body.gram-v4[data-theme="auto"] .v4-quick small{color:#284b56!important}
body.gram-v4[data-theme="auto"] .v4-quick a>b{background:#ddf1e8;color:#057b56}
body.gram-v4[data-theme="auto"] .v4-financial-pulse,body.gram-v4[data-theme="auto"] .v41-chart-inner,body.gram-v4[data-theme="auto"] .v41-stat-row{background:#f0f7f7!important;border-color:#d6e6e7!important;color:#22464a!important}
body.gram-v4[data-theme="auto"] .v4-financial-pulse strong{color:#154633!important}
body.gram-v4[data-theme="auto"] .v4-agenda-row,body.gram-v4[data-theme="auto"] .v4-log-row{border-color:#dce8ec!important}
body.gram-v4[data-theme="auto"] .v4-agenda-row time{background:#e6f3f1!important;color:#24434b!important}
body.gram-v4[data-theme="auto"] .v4-agenda-row b{color:#24424f!important}
body.gram-v4[data-theme="auto"] input,body.gram-v4[data-theme="auto"] select,body.gram-v4[data-theme="auto"] textarea,body.gram-v4[data-theme="auto"] .form input,body.gram-v4[data-theme="auto"] .form select,body.gram-v4[data-theme="auto"] .form textarea,body.gram-v4[data-theme="auto"] .filters input{background:#f5f9fb!important;color:#213b46!important;border:1px solid #cadce3!important}
body.gram-v4[data-theme="auto"] input::placeholder,body.gram-v4[data-theme="auto"] textarea::placeholder{color:#708995!important}
body.gram-v4[data-theme="auto"] .form label,body.gram-v4[data-theme="auto"] label,body.gram-v4[data-theme="auto"] .panel>span,body.gram-v4[data-theme="auto"] .panelhead small,body.gram-v4[data-theme="auto"] .panelhead span{color:#405f6b!important}
body.gram-v4[data-theme="auto"] button:not(.danger),body.gram-v4[data-theme="auto"] .primary{color:#fff!important}
body.gram-v4[data-theme="auto"] .actions a,body.gram-v4[data-theme="auto"] .actions button,body.gram-v4[data-theme="auto"] .settings-list article .actions a,body.gram-v4[data-theme="auto"] .settings-list article .actions button{background:#e8f1f5!important;border-color:#c6dce5!important;color:#1a4858!important}
body.gram-v4[data-theme="auto"] .settings-list article{background:#f3f8f9!important;border-color:#d5e4e6!important;color:#284754!important}
body.gram-v4[data-theme="auto"] .settings-list article b{color:#173741!important}
body.gram-v4[data-theme="auto"] .settings-list article small{color:#617f89!important}
body.gram-v4[data-theme="auto"] .table,body.gram-v4[data-theme="auto"] .v42-issues-table{border-color:#d4e2e8!important;background:#fff!important}
body.gram-v4[data-theme="auto"] table,body.gram-v4[data-theme="auto"] table td{color:#294653!important;border-color:#dfebee!important}
body.gram-v4[data-theme="auto"] table th,body.gram-v4[data-theme="auto"] .opportunities-results table thead th{background:#e8f2f5!important;color:#305867!important;box-shadow:none!important}
body.gram-v4[data-theme="auto"] table tbody tr:hover,body.gram-v4[data-theme="auto"] .v42-issue-row:hover{background:#e4f7ef!important}
body.gram-v4[data-theme="auto"] .opportunities-results,body.gram-v4[data-theme="auto"].view-opportunities .opportunities-results,body.gram-v4[data-theme="auto"].view-opportunities .opportunities-results .panelhead{background:#fff!important;border-color:#d8e5ea!important}
body.gram-v4[data-theme="auto"] .opportunities-results table td{background:#fff!important;color:#284552!important}
body.gram-v4[data-theme="auto"] .v41-filter-group,body.gram-v4[data-theme="auto"] .v41-filter-content,body.gram-v4[data-theme="auto"] .v41-oppfilters,body.gram-v4[data-theme="auto"] .radar-filters{background:#fff!important;border-color:#d7e6e9!important;color:#2e4c58!important}
body.gram-v4[data-theme="auto"] .v41-filter-group summary{color:#285664!important}
body.gram-v4[data-theme="auto"] .v41-oppfilters .uf-grid label,body.gram-v4[data-theme="auto"] .v41-portals label{background:#f3f8fa!important;color:#245362!important;border-color:#dce9ed!important}
body.gram-v4[data-theme="auto"] .v4-shipment-ring{color:#214b54!important}
body.gram-v4[data-theme="auto"] .v4-track-link{background:#e8f6ee!important;color:#145c42!important;border-color:#a2d5ba!important}
body.gram-v4[data-theme="auto"] .tag.wait{background:#fff0c8!important;color:#835b0c!important}
body.gram-v4[data-theme="auto"] .tag.ok{background:#ddf6e9!important;color:#076944!important}
body.gram-v4[data-theme="auto"] .diag-card,body.gram-v4[data-theme="auto"] .diag-card.green,body.gram-v4[data-theme="auto"] .diag-card.red{background:#f5fafb!important;border-color:#c9e0e5!important;color:#20424e!important}
body.gram-v4[data-theme="auto"] .diag-summary{color:#22444c!important}
body.gram-v4[data-theme="auto"] pre,body.gram-v4[data-theme="auto"] .diag-raw{background:#edf4f7!important;color:#1c4f56!important}
body.gram-v4[data-theme="auto"] .sale-calc{background:#f1f7f9!important;border-color:#d6e5e9!important}
body.gram-v4[data-theme="auto"] .sale-calc-grid>span{background:#fff!important;border-color:#dce8ec!important;color:#3a515f!important}
body.gram-v4[data-theme="auto"] .sale-calc-grid strong{color:#0f7b56!important}
body.gram-v4[data-theme="auto"] .v42-theme-tile{background:#f4f9fa;border-color:#d4e4e7;color:#234552}
body.gram-v4[data-theme="auto"] .v42-theme-tile small{color:#62808d}
body.gram-v4[data-theme="auto"] .v42-theme-glyph{background:#e2f0ee;color:#1b855f}
body.gram-v4[data-theme="auto"] .v42-theme-card input:checked+.v42-theme-tile{background:#d6f3e8;border-color:#149e70;color:#13674b}
body.gram-v4[data-theme="auto"] .v42-audit-head{background:#e5f5ef;border-color:#b4d9ca}
body.gram-v4[data-theme="auto"] .v42-audit-head h2,body.gram-v4[data-theme="auto"] .v42-audit-head p{color:#264955!important}
body.gram-v4[data-theme="auto"] .v42-audit-stats>span{background:#fff;border-color:#c9ded8;color:#496e65}
body.gram-v4[data-theme="auto"] .v42-audit-stats strong{color:#16674e}
body.gram-v4[data-theme="auto"] .v42-issue-row.is-reviewed td{background:#f0f5f7!important}
body.gram-v4[data-theme="auto"] .v42-issue-row:hover{background:#e4f7ef!important}
body.gram-v4[data-theme="auto"] .v42-issue-type.date{background:#fff0cf;color:#806111}
body.gram-v4[data-theme="auto"] .v42-issue-type.identity{background:#fde7ef;color:#934465}
body.gram-v4[data-theme="auto"] .v42-context-note{background:#fff7e4;color:#835e19;border-color:#eed18e}
body.gram-v4[data-theme="auto"] .v42-context-note a{color:#006d53}
body.gram-v4[data-theme="auto"] .v42-switch-track{background:#bbccd1}
body.gram-v4[data-theme="auto"] .v42-issue-actions button{color:#244a56!important;background:#e9f1f5!important;border-color:#cadde3!important}

}

html:has(body.gram-v4[data-theme="dark"]){color-scheme:dark}
/* V4.2 · listas de usuários/alíquotas compactas e bem alinhadas */
body.gram-v4 .settings-list{display:grid;gap:8px;margin-top:12px}
body.gram-v4 .settings-list article{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px;padding:11px 13px!important;min-height:62px}
body.gram-v4 .settings-list article>div:first-child{display:grid;gap:4px;min-width:0;flex:1}
body.gram-v4 .settings-list article b,body.gram-v4 .settings-list article small{display:block!important;overflow-wrap:anywhere;line-height:1.3;margin:0!important}
body.gram-v4 .settings-list article .actions{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:nowrap!important;flex:0 0 auto}
body.gram-v4 .settings-list article .actions form{margin:0}
body.gram-v4 .settings-list article .actions a,body.gram-v4 .settings-list article .actions button{padding:7px 9px!important;min-height:30px;font-size:11px}
body.gram-v4.view-settings .form.one{grid-template-columns:repeat(2,minmax(0,1fr))!important}
body.gram-v4.view-settings .panel{min-width:0}
@media(max-width:640px){body.gram-v4.view-settings .form.one{grid-template-columns:1fr!important}body.gram-v4 .settings-list article{align-items:flex-start!important;flex-wrap:wrap!important}}

/* GRAM V4.3 - recebíveis, ordenação e menu contextual */
.v43-sortable{cursor:pointer;position:relative;user-select:none;padding-right:22px!important}
.v43-sortable:after{content:'⇅';font-weight:500;font-size:11px;opacity:.5;position:absolute;right:6px;top:50%;transform:translateY(-50%)}
.v43-sortable.v43-sort-asc:after{content:'↑';opacity:1;color:#43d28a}.v43-sortable.v43-sort-desc:after{content:'↓';opacity:1;color:#43d28a}
.v43-sortable:focus-visible{outline:2px solid #53ce91;outline-offset:-2px}
.v43-action-row{cursor:context-menu}.v43-action-row.v43-selected{outline:1px solid #50d393;outline-offset:-2px}
.v43-row-menu{position:fixed;z-index:99999;min-width:196px;max-width:275px;padding:6px;border:1px solid #3e5d53;border-radius:13px;background:#192523;color:#e9f4ef;box-shadow:0 18px 42px rgba(0,0,0,.42);max-height:65vh;overflow-y:auto}
.v43-row-menu[hidden]{display:none}.v43-row-menu-title{padding:8px 10px;font-size:10px;letter-spacing:.1em;text-transform:uppercase;opacity:.67}
.v43-row-menu>button{display:block;width:100%;padding:10px;text-align:left;border:0;border-radius:8px;color:inherit;background:transparent;cursor:pointer;font:inherit;font-size:12px}
.v43-row-menu>button:hover,.v43-row-menu>button:focus-visible{background:#2b4139}.v43-row-menu>button.danger{color:#ff9393}
.v43-receivables-head{padding:18px 22px;border-radius:16px;background:linear-gradient(120deg,#173d31,#172922 66%,#131d1c);border:1px solid rgba(72,216,141,.18);margin-bottom:12px}
.v43-receivables-head small,.v43-receivable-kpis small{font-size:10px;letter-spacing:.08em;opacity:.8}.v43-receivables-head h2{margin:6px 0 6px;font-size:21px;color:#e8f9f0}.v43-receivables-head p{margin:0;font-size:12px;opacity:.82;max-width:850px;color:#cee6db}
.v43-receivable-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
.v43-receivable-kpis article{border-radius:14px;border:1px solid var(--v4-border,#303d3c);padding:14px 18px;background:var(--v4-card,#1c2626);display:flex;flex-direction:column;gap:6px}
.v43-receivable-kpis article strong{font-size:24px;font-variant-numeric:tabular-nums;letter-spacing:-.03em}
.v43-receivable-kpis article span{font-size:11px;opacity:.68}.v43-receivable-kpis article.good strong{color:#3dd484}
.v43-rec-filters{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 14px}.v43-rec-filters>input{min-width:250px;flex:2}.v43-rec-filters>select{min-width:205px;flex:1}
.v43-rec-actions{display:flex;align-items:center;gap:6px;flex-wrap:nowrap!important;white-space:nowrap}.v43-rec-actions form{margin:0}.v43-rec-actions button,.v43-rec-actions a{padding:7px 9px;border-radius:999px;font-size:11px}.v43-rec-actions .v43-quick-pay{background:#177b50;color:white;border-color:#239d63}.v43-rec-actions .v43-quick-pay[disabled]{opacity:.48}
.v43-credit-status{display:inline-flex;padding:6px 8px;border-radius:999px;font-size:10px;white-space:nowrap;background:#244238;color:#b9f6d5}
.v43-credit-status.status-doubtful,.v43-credit-status.status-overdue{background:#574020;color:#ffe4a5}.v43-credit-status.status-written_off{background:#512b30;color:#ffb4ba}
.v43-credit-dialog{border:1px solid #3c5750;border-radius:18px;background:#1b2926;color:#f3f8f4;box-shadow:0 16px 65px #0009;max-width:540px;width:calc(100vw - 28px);padding:22px}
.v43-credit-dialog::backdrop{background:#060d0bcc;backdrop-filter:blur(3px)}.v43-credit-form{display:grid;gap:14px}
.v43-credit-form header,.v43-credit-form footer{display:flex;align-items:center;justify-content:space-between;gap:8px}.v43-credit-form h2{font-size:19px;margin:3px 0 0}.v43-credit-form label{display:grid;gap:7px;font-size:12px}
.v43-credit-form input,.v43-credit-form select,.v43-credit-form textarea{background:#111b19!important;color:#f7f7f7!important;border:1px solid #446257!important;border-radius:9px!important;padding:9px!important}
.v43-credit-form textarea{min-height:78px}.v43-credit-form [data-close-credit]{font-size:20px;background:transparent;border:none;color:inherit}
.v43-paid-history{padding:14px 17px;margin-top:14px}.v43-paid-history summary{cursor:pointer;font-weight:600}
.v43-success{border:1px solid #309e70;background:#153d2a;color:#d9fae8;padding:12px 16px;margin:12px 0;border-radius:10px}
.v43-inline-note{font-size:12px;opacity:.8;grid-column:1/-1}.v43-linked{font-size:11px;opacity:.7}
@media(max-width:950px){.v43-receivable-kpis{grid-template-columns:1fr 1fr}.v43-rec-actions{flex-wrap:wrap!important}}
@media(max-width:620px){.v43-receivable-kpis{grid-template-columns:1fr}.v43-rec-filters>input,.v43-rec-filters>select{min-width:100%}.v43-row-menu{max-width:calc(100vw - 22px)}}
body[data-theme="light"] .v43-row-menu{background:#fff;color:#1c2925;border-color:#d6e2db;box-shadow:0 15px 35px #0002}
body[data-theme="light"] .v43-row-menu>button:hover{background:#e8f5ee}
body[data-theme="light"] .v43-receivable-kpis article{background:#fff;border-color:#dfe8e3}
body[data-theme="light"] .v43-credit-dialog{background:#fff;color:#17261e;border-color:#cddbd3}
body[data-theme="light"] .v43-credit-form input,body[data-theme="light"] .v43-credit-form select,body[data-theme="light"] .v43-credit-form textarea{background:#fff!important;color:#17261e!important;border-color:#cddbd3!important}

/* V4.4 · Âmbar para títulos/etiquetas de recebimentos pendentes. */
body.gram-v4.view-receivables .v43-receivable-panel .panelhead h2,
body.gram-v4.view-receivables .v43-receivable-kpis article:first-child strong{color:#efc563!important}
body.gram-v4 .v43-credit-status.status-normal,
body.gram-v4 .v43-credit-status.status-overdue,
body.gram-v4 .v43-credit-status.status-collection,
body.gram-v4 .v43-credit-status.status-doubtful{
 background:#614719!important;color:#ffdb87!important;border:1px solid #9b7632!important;
}
body.gram-v4 .v43-credit-status.status-written_off{
 background:#512b30!important;color:#ffb4ba!important;border:1px solid #8f4147!important;
}
body.gram-v4[data-theme="light"] .v43-credit-status.status-normal,
body.gram-v4[data-theme="light"] .v43-credit-status.status-overdue,
body.gram-v4[data-theme="light"] .v43-credit-status.status-collection,
body.gram-v4[data-theme="light"] .v43-credit-status.status-doubtful{
 background:#fff0ca!important;color:#805708!important;border-color:#f1cd71!important;
}
body.gram-v4[data-theme="light"].view-receivables .v43-receivable-panel .panelhead h2,
body.gram-v4[data-theme="light"].view-receivables .v43-receivable-kpis article:first-child strong{color:#956309!important}
@media(prefers-color-scheme:light){
 body.gram-v4[data-theme="auto"] .v43-credit-status.status-normal,
 body.gram-v4[data-theme="auto"] .v43-credit-status.status-overdue,
 body.gram-v4[data-theme="auto"] .v43-credit-status.status-collection,
 body.gram-v4[data-theme="auto"] .v43-credit-status.status-doubtful{
  background:#fff0ca!important;color:#805708!important;border-color:#f1cd71!important;
 }
 body.gram-v4[data-theme="auto"].view-receivables .v43-receivable-panel .panelhead h2,
 body.gram-v4[data-theme="auto"].view-receivables .v43-receivable-kpis article:first-child strong{color:#956309!important}
}

/* V4.5 — ordenação consistente e colunas independentes de NF e Empenho. */
body.gram-v4 table th.v43-sortable{cursor:pointer;user-select:none;white-space:normal;padding-right:22px!important;transition:background .16s}
body.gram-v4 table th.v43-sortable:hover{background:rgba(70,190,139,.10)!important}
body.gram-v4 table th.v43-sortable.v43-sort-desc,body.gram-v4 table th.v43-sortable.v43-sort-asc{color:var(--v4-text,#f4f7f5);background:rgba(52,170,119,.16)!important}
body.gram-v4 table th.v43-sortable.v43-sort-desc::after{content:'↓';color:#4ee3a0;opacity:1;font-size:15px;font-weight:900}
body.gram-v4 table th.v43-sortable.v43-sort-asc::after{content:'↑';color:#4ee3a0;opacity:1;font-size:15px;font-weight:900}
body.gram-v4 table th.v43-sortable:focus-visible{outline:2px solid #3cda94;outline-offset:-2px}
body.gram-v4 .v43-receivable-panel .table table{min-width:1300px}
body.gram-v4 .v43-receivable-panel th:first-child,body.gram-v4 .v43-receivable-panel th:nth-child(2){min-width:95px}
body.gram-v4 .v43-receivable-panel td:nth-child(2){white-space:nowrap}
body.gram-v4[data-theme="light"] table th.v43-sortable.v43-sort-desc,body.gram-v4[data-theme="light"] table th.v43-sortable.v43-sort-asc{color:#173c2c}

/* V4.6 - Perdas gerenciais separadas dos valores a receber */
body.gram-v4 .v46-loss-note{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:3px 0 15px;padding:10px 13px;background:color-mix(in srgb,var(--pane) 85%,#993b40 15%);border:1px solid color-mix(in srgb,var(--edge) 74%,#bf7474 26%);border-radius:10px;color:var(--dim);font-size:12px}
body.gram-v4 .v46-loss-note strong{color:var(--ink)}
body.gram-v4 .v46-loss-note a{margin-left:auto;color:var(--accent);text-decoration:underline;text-underline-offset:3px}
body.gram-v4 .v46-written-off>summary{cursor:pointer;font-weight:750;font-size:14px;color:var(--ink);padding:8px 0}
body.gram-v4 .v46-written-off .table{max-height:580px;overflow:auto}
body.gram-v4 .v46-written-off .v43-credit-status{white-space:nowrap}
body.gram-v4 .v46-written-off td{vertical-align:middle}
body.gram-v4 .v46-written-off td:nth-child(7){min-width:190px;max-width:340px;white-space:normal}
body.gram-v4 .v46-written-off td:last-child{min-width:155px}
@media(max-width:700px){body.gram-v4 .v46-loss-note a{margin-left:0}}
