/* ===================== Finanças do Agro — estilos ===================== */
:root{
  --g950:#041f10;--g900:#06311a;--g800:#0a4322;--g700:#0f5a2d;--g600:#157a36;--g500:#1f9a3f;--g400:#3db44b;--lime:#8cc63f;--lime2:#b6e05a;
  --bg:#f2f5f1;--card:#ffffff;--line:#e4eae3;--line2:#eef2ed;--tx:#152018;--tx2:#3c4a40;--mut:#6b776e;
  --red:#dc2626;--red-bg:#fdecec;--amber:#d97706;--amber-bg:#fff4dc;--yellow:#f5c518;--blue:#2563eb;--blue-bg:#e8f0fe;--purple:#7c3aed;--purple-bg:#f1eafe;
  --green-bg:#e7f6e8;--cyan-bg:#e3f4fb;--orange:#f08a12;--orange-bg:#fff0de;
  --r:14px;--r-sm:9px;--sh:0 1px 2px rgba(16,40,20,.05),0 6px 18px rgba(16,40,20,.06);
  --side:236px;--zoom:.9;--vh:111.1111vh;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:14px;color:var(--tx);background:var(--bg);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
a{color:var(--g600)}
h1,h2,h3,h4{margin:0;letter-spacing:-.01em}
.ic{width:18px;height:18px;stroke-width:2;flex:none;vertical-align:middle}
svg.ic{display:inline-block}
.nowrap{white-space:nowrap}
.mut{color:var(--mut)}.pos{color:var(--g600)!important}.neg{color:var(--red)!important}.warn{color:var(--amber)!important}.blu{color:var(--blue)!important}.pur{color:var(--purple)!important}
.r{text-align:right}.c{text-align:center}.b{font-weight:700}
.hide{display:none!important}

/* ---------- Logo ---------- */
.logo{display:flex;align-items:center;gap:10px;text-decoration:none}
.logo svg{width:46px;height:46px;flex:none}
.logo .lt{display:flex;flex-direction:column;line-height:.95}
.logo .l1{font-weight:900;font-size:20px;letter-spacing:-.02em;color:#fff}
.logo .l2{font-weight:900;font-size:22px;letter-spacing:-.02em;color:var(--lime2)}
.logo .l3{font-size:8.5px;font-weight:700;letter-spacing:.06em;color:#dfe9de;margin-top:5px}
.logo img.logo-h{display:block;width:100%;max-width:212px;height:auto}
.side .logo{padding:0 2px 16px}
.auth-l .logo{width:min(420px,100%)}
.auth-l .logo img.logo-h{max-width:none}
.auth-r .logo-ic{width:110px;height:110px;filter:drop-shadow(0 10px 24px rgba(0,0,0,.35))}
.co-top .logo img.logo-h{max-width:240px}
.doc-hd .logo img.logo-h{max-width:190px;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.logo-ic{display:block;object-fit:contain}
.logo.light .l1{color:var(--g800)}.logo.light .l2{color:var(--g500)}.logo.light .l3{color:var(--g900)}

/* ---------- Shell ---------- */
.shell{display:flex;min-height:var(--vh,100vh)}
.side{width:var(--side);flex:none;background:linear-gradient(180deg,#06311a 0%,#052a16 60%,#041f10 100%);color:#e8f1e7;position:sticky;top:0;height:var(--vh,100vh);min-height:var(--vh,100vh);overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;padding:14px 12px 18px;z-index:40;scrollbar-width:none;-ms-overflow-style:none}
.side::-webkit-scrollbar{display:none}
.side::after{content:"";position:absolute;left:0;right:0;bottom:0;height:180px;background:radial-gradient(120% 90% at 0% 100%,rgba(61,180,75,.45) 0%,rgba(61,180,75,.12) 45%,transparent 70%);pointer-events:none}
.side .logo{padding:2px 8px 14px}
.nav{display:flex;flex-direction:column;gap:2px;position:relative;z-index:1}
.nav a{display:flex;align-items:center;gap:11px;padding:8px 13px;border-radius:10px;color:#eaf3e8;text-decoration:none;font-weight:500;font-size:14.5px;border:1.5px solid transparent;transition:background .15s}
.nav a .ic{width:21px;height:21px;stroke-width:1.8}
.nav a:hover{background:rgba(255,255,255,.07)}
.nav a.on{background:linear-gradient(90deg,#3db44b,#7fc13f);color:#fff;font-weight:700;box-shadow:0 4px 14px rgba(61,180,75,.35)}
.nav a.gold{border-color:#f5c518;color:#fff}
.nav a.gold .ic{color:#f5c518}
.nav a.gold.on{background:linear-gradient(90deg,#3db44b,#7fc13f);border-color:transparent}
.nav a .chev{margin-left:auto;width:16px;height:16px}
.subnav{display:flex;flex-direction:column;gap:1px;margin:2px 0 6px 14px}
.subnav a{font-size:13px;padding:6px 10px;gap:9px;border-radius:7px;font-weight:500}
.subnav a::before{content:"";width:6px;height:6px;border-radius:50%;background:#56c35e;flex:none}
.subnav a.on{background:#1d6b33;box-shadow:none}
.subnav a.on::before{background:#a8f07a}
.main{flex:1;min-width:0;display:flex;flex-direction:column}
.content{padding:14px 22px 40px;display:flex;flex-direction:column;gap:14px}

/* ---------- Topbar ---------- */
.topbar{position:relative;display:flex;align-items:center;gap:14px;padding:14px 22px;min-height:86px;
  background:
   linear-gradient(90deg,var(--bg) 0%,rgba(242,245,241,.94) 24%,rgba(242,245,241,.55) 44%,rgba(242,245,241,.08) 68%,rgba(242,245,241,0) 100%),
   url(../assets/topbar-bg.jpg) right 64%/cover no-repeat;
}
.topbar .pg-ic{width:52px;height:52px;color:var(--g600);flex:none}
.topbar .pg-ic .ic{width:46px;height:46px;stroke-width:1.7}
.topbar .pg-tt{min-width:0;flex:1}
.topbar h1{font-size:28px;font-weight:800;color:var(--tx);line-height:1.1}
.topbar p{margin:3px 0 0;color:var(--tx2);font-size:13.5px}
.tb-sel{display:flex;align-items:center;gap:10px;background:#fff;border-radius:12px;padding:7px 14px;box-shadow:var(--sh);min-width:190px;border:1px solid rgba(21,122,54,.1)}
.tb-sel .ic{color:var(--g600);width:24px;height:24px;flex:none}
.tb-sel label{display:flex;flex-direction:column;font-size:11.5px;color:var(--tx2);flex:1;min-width:0}
.tb-sel select,.tb-sel input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0!important;box-shadow:none!important;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23157a36' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center/15px no-repeat;font-weight:700;font-size:14px;padding:1px 20px 1px 0;outline:none!important;cursor:pointer;color:var(--tx);width:100%}
.tb-sel input{background-image:none;padding-right:0}
.tb-sel select::-ms-expand{display:none}
.tb-btn{width:44px;height:44px;border-radius:50%;background:#fff;border:0;display:grid;place-items:center;box-shadow:var(--sh);cursor:pointer;position:relative;flex:none}
.tb-btn .ic{width:22px;height:22px}
.tb-btn .dot{position:absolute;top:7px;right:8px;width:10px;height:10px;border-radius:50%;background:#22c55e;border:2px solid #fff}
.tb-btn .cnt{position:absolute;top:-3px;right:-3px;min-width:19px;height:19px;border-radius:10px;background:var(--red);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;padding:0 5px;border:2px solid #fff}
.avatar{display:flex;align-items:center;gap:4px;border:0;background:transparent;cursor:pointer;padding:0}
.avatar .av{width:46px;height:46px;border-radius:50%;background:var(--g800);color:#fff;font-weight:800;display:grid;place-items:center;overflow:hidden;box-shadow:var(--sh);font-size:16px}
.avatar .av img{width:100%;height:100%;object-fit:cover}
.hamb{display:none}

/* ---------- Cards ---------- */
.card{background:var(--card);border-radius:var(--r);box-shadow:var(--sh);border:1px solid var(--line2);min-width:0;display:flex;flex-direction:column}
.card-hd{display:flex;align-items:center;gap:12px;padding:14px 18px 6px;flex-wrap:wrap}
.card-hd h3{font-size:17px;font-weight:800}
.card-hd p{margin:2px 0 0;font-size:12px;color:var(--mut)}
.card-hd .cnt{font-weight:500;font-size:14px;opacity:.85}
.card-tt{display:flex;align-items:center;gap:10px;flex:1;min-width:200px}
.card-tt>.ic{color:var(--g600);width:22px;height:22px}
.card-hd.dark{background:linear-gradient(90deg,#063a1c,#0b4a25);color:#fff;border-radius:var(--r) var(--r) 0 0;padding:11px 16px}
.card-hd.dark .card-tt>.ic{color:#9be37a}
.card-hd.dark p{color:#cfe3cf}
.card-hd.orange{background:linear-gradient(90deg,#e8590c,#f08a12);color:#fff;border-radius:var(--r) var(--r) 0 0;padding:11px 16px}
.card-hd.green{background:linear-gradient(90deg,#157a36,#3aa34a);color:#fff;border-radius:var(--r) var(--r) 0 0;padding:11px 16px}
.card-acts{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.card-bd{padding:10px 18px 16px;flex:1;min-width:0}
.card-bd.flush{padding:0}
.grid{display:grid;gap:14px}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.g-3-2{grid-template-columns:minmax(0,3fr) minmax(0,1.25fr)}
.g-side{grid-template-columns:240px minmax(0,1fr)}
.g-cfg{grid-template-columns:270px minmax(0,1fr)}

/* ---------- KPIs ---------- */
.kpis{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.kpis.k6{grid-template-columns:repeat(6,minmax(0,1fr))}
.kpis.k5{grid-template-columns:repeat(5,minmax(0,1fr))}
.kpi{border-radius:var(--r);padding:11px 12px;display:flex;align-items:center;gap:10px;box-shadow:var(--sh);border:1px solid var(--line2);background:#fff;position:relative;min-width:0}
.kpi.first{border-left:4px solid var(--g500)}
.kpi-ic{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;flex:none}
.kpi-ic .ic{width:23px;height:23px;stroke-width:1.8}
.kpi-tx{display:flex;flex-direction:column;min-width:0;flex:1}
.kpi-lb{font-size:12px;color:var(--tx2);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpi-v{font-size:18.5px;font-weight:800;letter-spacing:-.02em;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-hd.dark select,.card-hd.dark input,.card-hd.green select,.card-hd.orange select{color:var(--tx)}
.kpi small{font-size:11.5px;font-weight:600;color:var(--mut);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kpi.green{background:linear-gradient(135deg,#f4fbf3,#fff)}.kpi.green .kpi-ic{background:var(--green-bg);color:var(--g500)}
.kpi.blue{background:linear-gradient(135deg,#eef5ff,#fff)}.kpi.blue .kpi-ic{background:var(--blue-bg);color:var(--blue)}
.kpi.cyan{background:linear-gradient(135deg,#ecf8fd,#fff)}.kpi.cyan .kpi-ic{background:var(--cyan-bg);color:#0ea5e9}
.kpi.red{background:linear-gradient(135deg,#fff1f1,#fff)}.kpi.red .kpi-ic{background:var(--red-bg);color:var(--red)}
.kpi.amber{background:linear-gradient(135deg,#fff8e8,#fff)}.kpi.amber .kpi-ic{background:var(--amber-bg);color:#f59e0b}
.kpi.orange{background:linear-gradient(135deg,#fff5ea,#fff)}.kpi.orange .kpi-ic{background:var(--orange-bg);color:var(--orange)}
.kpi.purple{background:linear-gradient(135deg,#f6f1ff,#fff)}.kpi.purple .kpi-ic{background:var(--purple-bg);color:var(--purple)}
.kpi.dark{background:linear-gradient(135deg,#f3f5f7,#fff)}.kpi.dark .kpi-ic{background:#e6eaef;color:#334155}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 15px;border-radius:9px;border:1.5px solid transparent;font-weight:700;font-size:13.5px;cursor:pointer;white-space:nowrap;text-decoration:none;transition:filter .15s,background .15s}
.btn .ic{width:17px;height:17px}
.btn:hover{filter:brightness(1.06)}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn.primary{background:linear-gradient(90deg,#1f9a3f,#3db44b);color:#fff}
.btn.dark{background:#0b4a25;color:#fff}
.btn.slate{background:#2b3440;color:#fff}
.btn.blue{background:var(--blue);color:#fff}
.btn.orange{background:var(--orange);color:#fff}
.btn.gold{background:#f5c518;color:#2a1f00}
.btn.danger{background:var(--red);color:#fff}
.btn.ghost{background:#fff;border-color:var(--line);color:var(--tx)}
.btn.outline{background:#fff;border-color:var(--g500);color:var(--g700)}
.btn.out-w{background:transparent;border-color:rgba(255,255,255,.55);color:#fff}
.btn.sm{height:30px;padding:0 10px;font-size:12.5px;border-radius:7px}
.btn.lg{height:50px;font-size:16px;border-radius:12px;padding:0 22px}
.btn.block{width:100%}
.link{background:none;border:0;color:var(--tx);text-decoration:underline;font-weight:600;cursor:pointer;padding:4px}
.ibtn{width:30px;height:30px;border-radius:7px;border:0;display:inline-grid;place-items:center;cursor:pointer;color:#fff;margin:0 1px;vertical-align:middle}
.ibtn .ic{width:16px;height:16px}
.ibtn.e{background:var(--blue)}.ibtn.d{background:var(--red)}.ibtn.k{background:#4b5563}.ibtn.v{background:#fff;color:var(--tx2);border:1px solid var(--line)}.ibtn.g{background:var(--g500)}

/* ---------- Badges ---------- */
.bdg{display:inline-flex;align-items:center;gap:5px;padding:3px 11px;border-radius:999px;font-size:12.5px;font-weight:700;white-space:nowrap}
.bdg .ic{width:14px;height:14px}
.bdg.green{background:var(--green-bg);color:#15803d}
.bdg.red{background:var(--red-bg);color:var(--red)}
.bdg.amber{background:var(--amber-bg);color:#b45309}
.bdg.blue{background:var(--blue-bg);color:var(--blue)}
.bdg.purple{background:var(--purple-bg);color:var(--purple)}
.bdg.orange{background:var(--orange-bg);color:#c2410c}
.bdg.gray{background:#eef0f2;color:#475569}
.bdg.lime{background:#eef8d9;color:#4d7c0f}
.bdg.cyan{background:var(--cyan-bg);color:#0369a1}
.bdg.yellow{background:#fff6cc;color:#a16207}

/* ---------- Tables ---------- */
.tbl-wrap{overflow:auto;max-width:100%}
.tbl{width:100%;border-collapse:collapse;font-size:13.5px}
.tbl th{font-weight:700;text-align:left;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap;font-size:13px;background:#fafcfa;position:sticky;top:0;z-index:1}
.tbl td{padding:9px 12px;border-bottom:1px solid var(--line2);vertical-align:middle}
.tbl tr:last-child td{border-bottom:0}
.tbl tbody tr:hover td{background:#f8fbf7}
.tbl tr.clickable{cursor:pointer}
.tbl tr.sel td{background:#eaf7e8}
.tbl th.r,.tbl td.r{text-align:right}.tbl th.c,.tbl td.c{text-align:center}
.tbl tfoot td{font-weight:800;background:#effaee;border-top:1px solid var(--line)}
.tbl .sub{display:block;font-size:11.5px;color:var(--mut)}
.tbl.compact td{padding:6px 10px}
.tbl-scroll{max-height:440px;overflow:auto}
.empty{display:flex;flex-direction:column;align-items:center;gap:8px;padding:30px 10px;color:var(--mut);text-align:center}
.empty .ic{width:40px;height:40px;color:#b8c2ba;stroke-width:1.4}
.empty p{margin:0}

/* ---------- Filters ---------- */
.filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 16px;flex-direction:row}
.filters>.ic{width:20px;height:20px}
.filters>b{font-size:16px;margin-right:4px}
.flt{display:flex;flex-direction:column;font-size:11.5px;color:var(--tx2);font-weight:600;gap:2px}
.flt select,.flt input{height:36px;border:1px solid var(--line);border-radius:8px;padding:0 10px;min-width:150px;background:#fff;font-weight:500;font-size:13.5px}
.flt select,.fld select,select.inp{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center/15px no-repeat;padding-right:32px!important}
.flt.search{flex:1;min-width:220px;flex-direction:row;align-items:center;border:1px solid var(--line);border-radius:10px;padding:0 10px;height:40px;align-self:flex-end;background:#fff}
.flt.search input{border:0;flex:1;height:36px;outline:none;min-width:0}
.flt.search .ic{color:var(--mut)}

/* ---------- Forms ---------- */
.form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 14px}
.fld{display:flex;flex-direction:column;gap:5px;min-width:0}
.fld.w1{grid-column:span 1}.fld.w2{grid-column:span 2}.fld.w3{grid-column:span 3}.fld.w4{grid-column:span 4}
.fld>label{font-size:12.5px;font-weight:700;color:var(--tx2)}
.req{color:var(--red)}
.fld input,.fld select,.fld textarea,.inp{height:40px;border:1px solid #d9e0d8;border-radius:9px;padding:0 12px;background:#fff;outline:none;font-size:14px;width:100%}
.fld textarea{height:auto;min-height:76px;padding:10px 12px;resize:vertical}
.fld input:focus,.fld select:focus,.fld textarea:focus,.inp:focus{border-color:var(--g400);box-shadow:0 0 0 3px rgba(61,180,75,.15)}
.fld.bad input,.fld.bad select{border-color:var(--red)}
.fld small{color:var(--mut);font-size:11.5px}
.fsec{grid-column:span 4;font-weight:800;font-size:13px;color:var(--g700);border-bottom:1px solid var(--line);padding:6px 0 4px;margin-top:4px;text-transform:uppercase;letter-spacing:.04em}
.check{display:flex;align-items:center;gap:8px;font-weight:600;font-size:13.5px;cursor:pointer}
.check input{width:18px;height:18px;accent-color:var(--g500)}
.iwrap{position:relative;display:flex;align-items:center}
.iwrap>.ic{position:absolute;left:12px;color:var(--mut);pointer-events:none}
.iwrap input,.iwrap select{padding-left:38px}
.iwrap .eye{position:absolute;right:8px;background:none;border:0;cursor:pointer;color:var(--mut);padding:4px}

/* ---------- Modal ---------- */
.modal-wrap{position:fixed;inset:0;background:rgba(5,25,12,.5);backdrop-filter:blur(2px);z-index:100;display:flex;align-items:flex-start;justify-content:center;padding:4vh 16px;overflow:auto;animation:fade .15s}
@keyframes fade{from{opacity:0}}
.modal{background:#fff;border-radius:16px;width:100%;max-width:640px;box-shadow:0 20px 60px rgba(0,0,0,.3);display:flex;flex-direction:column;animation:pop .18s}
@keyframes pop{from{transform:translateY(12px);opacity:0}}
.modal.sm{max-width:440px}.modal.lg{max-width:900px}.modal.xl{max-width:1160px}
.modal-hd{display:flex;align-items:center;gap:10px;padding:16px 20px;border-bottom:1px solid var(--line)}
.modal-hd>.ic{color:var(--g600);width:22px;height:22px}
.modal-hd h3{font-size:18px;font-weight:800;flex:1}
.modal-hd .x{background:#f1f4f0;border:0;border-radius:8px;width:34px;height:34px;display:grid;place-items:center;cursor:pointer}
.modal-bd{padding:18px 20px;overflow:auto}
.modal-ft{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--line);background:#fafcfa;border-radius:0 0 16px 16px;flex-wrap:wrap}

/* ---------- Toast & Floating Action Button ---------- */
#toasts{position:fixed;right:22px;bottom:92px;z-index:200;display:flex;flex-direction:column;gap:8px}
.toast{background:#0b3d1f;color:#fff;padding:12px 16px;border-radius:10px;box-shadow:0 10px 30px rgba(0,0,0,.25);display:flex;gap:10px;align-items:center;font-weight:600;max-width:380px;animation:pop .2s}
.toast.err{background:#991b1b}.toast.warn{background:#92400e}
.fab-wrap{position:fixed;right:24px;bottom:24px;z-index:90;display:flex;flex-direction:column;align-items:flex-end;gap:10px}
.fab-btn{width:56px;height:56px;border-radius:50%;border:0;background:linear-gradient(135deg,#1f9a3f,#3db44b);color:#fff;box-shadow:0 8px 24px rgba(21,122,54,.45),0 2px 6px rgba(0,0,0,.2);cursor:pointer;display:grid;place-items:center;transition:transform .2s,box-shadow .2s}
.fab-btn .ic{width:28px;height:28px;stroke-width:2.5;transition:transform .2s}
.fab-btn:hover{transform:scale(1.06);box-shadow:0 12px 28px rgba(21,122,54,.55)}
.fab-wrap.open .fab-btn .ic{transform:rotate(45deg)}
.fab-menu{display:none;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 16px 48px rgba(5,25,12,.26);border:1px solid var(--line);width:268px;overflow:hidden;animation:pop .16s}
.fab-wrap.open .fab-menu{display:flex}
.fab-hd{background:linear-gradient(90deg,#063a1c,#0b4a25);color:#fff;padding:10px 14px;font-weight:800;font-size:13px;letter-spacing:.02em;text-transform:uppercase}
.fab-item{display:flex;align-items:center;gap:11px;padding:10px 14px;border:0;border-bottom:1px solid var(--line2);background:#fff;cursor:pointer;text-align:left;width:100%;transition:background .12s}
.fab-item:last-child{border-bottom:0}
.fab-item:hover{background:#f3fbf2}
.fab-item b{display:block;font-size:13.5px;color:var(--tx)}
.fab-item small{display:block;font-size:11.5px;color:var(--mut)}
.fab-item .fi{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;flex:none}
.fab-item .fi .ic{width:19px;height:19px}
.fab-item .fi.red{background:var(--red-bg);color:var(--red)}
.fab-item .fi.green{background:var(--green-bg);color:var(--g600)}
.fab-item .fi.blue{background:var(--blue-bg);color:var(--blue)}
.fab-item .fi.amber{background:var(--amber-bg);color:var(--amber)}
.fab-item .fi.purple{background:var(--purple-bg);color:var(--purple)}
.fab-item .fi.dark{background:#e6eaef;color:#334155}

/* ---------- Talhões Satellite Map ---------- */
.tmap-wrap{display:flex;flex-direction:column;gap:8px;border:1px solid var(--line);border-radius:12px;padding:10px;background:#f8faf8}
.tmap-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tmap-search{display:flex;align-items:center;gap:6px;flex:1;min-width:240px;background:#fff;border:1px solid var(--line);border-radius:9px;padding:3px 6px 3px 10px}
.tmap-search .ic{color:var(--mut);width:17px;height:17px}
.tmap-search input{border:0!important;height:30px!important;padding:0 4px!important;flex:1;outline:none;box-shadow:none!important;font-size:13px}
.tmap-canvas{width:100%;height:420px;border-radius:10px;overflow:hidden;border:1px solid var(--line);cursor:crosshair;z-index:1}
.tmap-overview{width:100%;height:410px;border-radius:10px;overflow:hidden;border:1px solid var(--line);z-index:1}
.tmap-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12.5px;color:var(--tx2)}
.tmap-vertex span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#157a36;color:#fff;font-weight:800;font-size:11px;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.4);cursor:grab}
.leaflet-tooltip.tmap-label{background:rgba(6,49,26,.88);color:#fff;border:1px solid #8cc63f;border-radius:7px;padding:3px 8px;font-size:11.5px;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.35)}
.leaflet-tooltip.tmap-label::before{display:none}

/* ---------- Comercialização & Vendas ---------- */
.v-hero{background:linear-gradient(120deg,#064e2c,#0d6938 60%,#115e34);color:#fff;border-radius:16px;padding:20px 24px;display:flex;align-items:center;gap:18px;box-shadow:var(--sh);flex-wrap:wrap}
.v-hero .vh-ic{width:50px;height:50px;border-radius:14px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);display:grid;place-items:center;flex:none}
.v-hero .vh-ic .ic{width:26px;height:26px;color:#86efac}
.v-hero .vh-tx{flex:1;min-width:240px}
.v-hero h2{font-size:21px;font-weight:800;color:#fff}
.v-hero .vh-tag{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:2px 11px;font-size:12px;font-weight:700;color:#bbf7d0}
.v-hero p{margin:4px 0 0;font-size:13px;color:#d1fae5;line-height:1.45}
.vf-herobtn{background:#fff;color:#064e2c;border:0;height:42px;padding:0 18px;border-radius:11px;font-weight:800;box-shadow:0 4px 14px rgba(0,0,0,.15)}
.v-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.vk-card{background:#fff;border:1.5px solid #d1fae5;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;box-shadow:var(--sh)}
.vk-card.amber{border-color:#fde68a;background:linear-gradient(180deg,#fffdf5,#fff)}
.vk-card.yellow{border-color:#fef08a}
.vk-top{display:flex;justify-content:space-between;align-items:center;gap:6px}
.vk-top span{font-size:11px;font-weight:800;color:var(--mut);letter-spacing:.03em;text-transform:uppercase}
.vk-ic{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;font-style:normal;font-weight:800;font-size:14px}
.vk-ic.green{background:var(--green-bg);color:var(--g600)}
.vk-ic.amber{background:var(--amber-bg);color:var(--amber)}
.vk-val{font-size:22px;font-weight:900;letter-spacing:-.02em;color:var(--tx)}
.v-tabs{display:flex;gap:8px;background:#fff;padding:7px;border-radius:13px;border:1px solid var(--line2);box-shadow:var(--sh);flex-wrap:wrap}
.v-tab{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;border-radius:9px;border:1.5px solid transparent;background:transparent;font-weight:700;font-size:13px;color:var(--tx2);cursor:pointer}
.v-tab:hover{background:#f1f7f0}
.v-tab.on{background:#0b5d30;color:#fff;border-color:#22c55e}
.v-fbar{display:flex;align-items:center;gap:12px;background:#fff;padding:10px 14px;border-radius:13px;border:1px solid var(--line2);box-shadow:var(--sh);flex-wrap:wrap}
.vc-card{background:#fff;border:1px solid var(--line);border-radius:15px;box-shadow:var(--sh);overflow:hidden}
.vc-main{display:grid;grid-template-columns:46px minmax(0,1.6fr) minmax(240px,1fr) auto;gap:16px;padding:16px 18px;align-items:center}
.vc-ic{width:46px;height:46px;border-radius:12px;background:var(--green-bg);color:var(--g600);display:grid;place-items:center}
.vc-ic .ic{width:24px;height:24px}
.vc-info{display:flex;flex-direction:column;gap:6px;min-width:0}
.vc-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.vc-num{font-size:17px;font-weight:900;color:var(--tx)}
.vc-buyer{display:flex;align-items:center;gap:6px;font-size:14.5px;color:var(--tx)}
.vc-buyer .ic{width:16px;height:16px;color:var(--mut)}
.vc-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--tx2)}
.vc-meta .ic{width:14px;height:14px;color:var(--mut)}
.vc-fin{background:#f8fbf8;border:1px solid var(--line);border-radius:12px;padding:11px 14px;display:flex;flex-direction:column;gap:5px}
.vc-frow{display:flex;justify-content:space-between;align-items:center;font-size:12.5px;gap:8px}
.vc-frow.tot{border-top:1px solid var(--line);padding-top:6px;margin-top:2px;font-size:13.5px}
.vc-frow.tot strong{font-size:16px;font-weight:900}
.vc-acts{display:flex;flex-direction:column;gap:6px;align-items:stretch;min-width:138px}
.vc-foot{background:#fafcfa;border-top:1px solid var(--line2);padding:10px 18px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.vc-pills{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.vc-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:8px;border:1px solid #bbf7d0;background:#f0fdf4;color:#15803d;font-size:12px;cursor:pointer;transition:filter .15s}
.vc-pill.open{border-color:#fde68a;background:#fffbeb;color:#b45309}
.vc-pill.late{border-color:#fecaca;background:#fef2f2;color:#b91c1c}
.vc-pill .ic{width:14px;height:14px}
.vform{display:flex;flex-direction:column;gap:14px}
.vf-box{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:#fff}
.vf-sec{display:flex;align-items:center;gap:8px;font-weight:800;font-size:13px;color:#0b5d30;border-bottom:1px solid var(--line2);padding-bottom:8px;margin-bottom:12px;text-transform:uppercase;letter-spacing:.03em}
.vf-sec .ic{width:17px;height:17px;color:var(--g600)}
.vf-totbox{background:#eefbf1;border:1.5px solid #86efac;border-radius:11px;padding:8px 14px;display:flex;flex-direction:column;justify-content:center;min-height:62px}
.vf-totbox span{font-size:11px;font-weight:700;color:var(--g700)}
.vf-totbox strong{font-size:21px;font-weight:900;color:#065f46}
.vf-subbox{border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:#fafcfa}
.vf-parc-row{display:flex;align-items:center;gap:12px;background:#f8fafc;border:1px solid var(--line);border-radius:10px;padding:8px 12px;flex-wrap:wrap}
.vf-ptag{background:#e2e8f0;color:#1e293b;font-weight:800;font-size:12.5px;padding:5px 11px;border-radius:7px}
.vf-parc-row label{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--tx2);font-weight:600}
.vf-pst{margin-left:auto;display:inline-flex;background:#e2e8f0;padding:3px;border-radius:9px;gap:3px}
.vf-stbtn{border:0;background:transparent;padding:5px 12px;border-radius:7px;font-size:12px;font-weight:700;cursor:pointer;display:inline-flex;align-items:center;gap:5px;color:#475569}
.vf-stbtn .ic{width:14px;height:14px}
.vf-stbtn.on-open{background:#f59e0b;color:#fff}
.vf-stbtn.on-paid{background:#16a34a;color:#fff}
@media (max-width:1150px){.v-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.vc-main{grid-template-columns:1fr}}

/* ---------- Calendário Financeiro ---------- */
.fcal-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px solid var(--line2)}
.fcal-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fcal-title{font-size:18px;font-weight:900;color:var(--g800);min-width:165px;text-align:center}
.fcal-flts{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fcal-sum{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 0}
.fcal-head{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-bottom:6px}
.fcal-head>div{background:#0b4a25;color:#fff;font-weight:800;font-size:12px;text-align:center;padding:7px 4px;border-radius:8px;text-transform:uppercase;letter-spacing:.04em}
.fcal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.fcal-day{min-height:112px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:6px 7px;display:flex;flex-direction:column;gap:5px;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.fcal-day:hover{border-color:var(--g400);box-shadow:0 3px 12px rgba(21,122,54,.1)}
.fcal-day.empty{background:#f8faf8;border-style:dashed;cursor:default;min-height:80px;opacity:.55}
.fcal-day.empty:hover{border-color:var(--line);box-shadow:none}
.fcal-day.today{border:2px solid var(--g500);background:#f7fdf6}
.fcal-dhd{display:flex;align-items:center;justify-content:space-between;gap:4px}
.fcal-dnum{font-weight:800;font-size:13px;color:var(--tx)}
.fcal-dnum small{background:var(--g600);color:#fff;font-size:9.5px;padding:1px 6px;border-radius:999px;margin-left:3px;font-weight:700}
.fcal-dtot{display:flex;align-items:center;gap:5px;font-size:10.5px;font-weight:800}
.fcal-add{width:20px;height:20px;border-radius:6px;border:1px solid var(--line);background:#f1f6f0;color:var(--g700);font-weight:800;font-size:13px;line-height:1;cursor:pointer;display:grid;place-items:center;opacity:.45;transition:opacity .15s,background .15s}
.fcal-day:hover .fcal-add{opacity:1}
.fcal-add:hover{background:var(--g600);color:#fff;border-color:var(--g600)}
.fcal-evs{display:flex;flex-direction:column;gap:3px;flex:1}
.fcal-ev{display:flex;align-items:center;gap:4px;width:100%;padding:3px 6px;border-radius:6px;border:1px solid transparent;font-size:11px;text-align:left;cursor:pointer;overflow:hidden}
.fcal-ev .ic{width:12px;height:12px;flex:none}
.fcal-ev .ev-ds{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.fcal-ev .ev-vl{font-weight:800;white-space:nowrap;font-size:10.5px}
.fcal-ev.ent-pg{background:#dcfce7;color:#15803d;border-color:#86efac}
.fcal-ev.ent-ab{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd}
.fcal-ev.sai-pg{background:#f1f5f9;color:#475569;border-color:#cbd5e1;text-decoration:line-through}
.fcal-ev.sai-ab{background:#fef3c7;color:#b45309;border-color:#fcd34d}
.fcal-ev.sai-vc{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}
.fcal-more{border:0;background:#eef2ee;color:var(--tx2);font-size:10.5px;font-weight:700;border-radius:5px;padding:2px 6px;cursor:pointer;text-align:center}
.fcal-leg{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:10px;padding-top:10px;border-top:1px solid var(--line2);font-size:12px;font-weight:600;color:var(--tx2)}
.fcal-leg .dt{display:inline-block;width:11px;height:11px;border-radius:50%;margin-right:4px;vertical-align:middle}
@media (max-width:900px){.fcal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fcal-head{display:none}.fcal-day.empty{display:none}}

/* ---------- Modal de Operação de Financiamento ---------- */
.fin-modal{display:flex;flex-direction:column;border-radius:16px;overflow:hidden;background:#fff}
.fin-mhd{background:linear-gradient(90deg,#0f2027,#132e35);color:#fff;padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.fin-mhd h3{font-size:17px;font-weight:900;letter-spacing:.01em;color:#fff}
.fin-mhd p{margin:4px 0 0;font-size:12.5px;color:#cbd5e1}
.fin-mx{background:rgba(255,255,255,.12);border:0;color:#fff;width:34px;height:34px;border-radius:8px;cursor:pointer;display:grid;place-items:center;flex:none}
.fin-mbd{padding:18px 24px;display:flex;flex-direction:column;gap:14px}
.fin-box-gray{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px}
.fin-box-iof{background:#fffbeb;border:1.5px solid #fde68a;border-radius:12px;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.fin-box-iof b{font-size:12.5px;color:#78350f;display:block}
.fin-box-iof p{margin:3px 0 0;font-size:12px;color:#b45309}
.fin-iof-seg{display:inline-flex;background:#fff;border:1px solid #f59e0b;border-radius:10px;padding:3px;gap:3px}
.fin-iof-seg button{border:0;background:transparent;padding:7px 14px;border-radius:7px;font-weight:700;font-size:12.5px;color:#334155;cursor:pointer}
.fin-iof-seg button.on{background:#16a34a;color:#fff}
.fin-box-lib{background:#f4fbf7;border:1.5px solid #86efac;border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:11px}
.fin-lib-hd b{font-size:13px;color:#065f46;display:block}
.fin-lib-hd p{margin:2px 0 0;font-size:12px;color:#15803d}
.fin-presets{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fin-pbtn{height:32px;padding:0 13px;border-radius:8px;border:1px solid #86efac;background:#fff;color:#065f46;font-weight:700;font-size:12px;cursor:pointer}
.fin-pbtn.on{background:#0f5a2d;color:#fff;border-color:#0f5a2d}
.fin-pbtn.add{background:#0284c7;color:#fff;border-color:#0284c7}
.fin-lib-tbl{background:#fff;border:1px solid #cbd5e1;border-radius:10px;overflow:hidden}
.fin-lib-thd{display:grid;grid-template-columns:2fr 1.1fr .7fr 1.1fr 1.3fr;gap:10px;background:#115e34;color:#fff;padding:8px 12px;font-size:12px;font-weight:800}
.fin-lib-row{display:grid;grid-template-columns:2fr 1.1fr .7fr 1.1fr 1.3fr;gap:10px;padding:8px 12px;border-top:1px solid var(--line2);align-items:center}
.fin-lib-row .inp{height:36px}
.fin-lib-sum{background:#fff;border:1px solid #bbf7d0;border-radius:9px;padding:9px 14px;display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:12.5px;color:#334155}
.fin-chk-bar{background:#eefbf2;border:1px solid #86efac;border-radius:11px;padding:11px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.fin-prev-box{border:1px solid #cbd5e1;border-radius:11px;overflow:hidden;background:#fff}
.fin-prev-hd{background:#1e293b;color:#fff;padding:9px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12.5px;font-weight:800}
.fin-prev-hd strong{color:#4ade80;font-size:13px}
.fin-mft{display:flex;justify-content:flex-end;gap:10px;padding-top:8px;border-top:1px solid var(--line)}
@media (max-width:900px){.fin-lib-thd{display:none}.fin-lib-row{grid-template-columns:1fr}}

/* ---------- Modal de Seguros ---------- */
.sg-cat-chips{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.sg-cchip{display:inline-flex;align-items:center;gap:5px;padding:5px 12px;border-radius:999px;border:1px solid var(--line);background:#fff;font-size:12px;font-weight:700;cursor:pointer;color:var(--tx2)}
.sg-cchip .ic{width:14px;height:14px}
.sg-cchip.blue{border-color:#bfdbfe;color:#1d4ed8;background:#eff6ff}
.sg-cchip.green{border-color:#bbf7d0;color:#15803d;background:#f0fdf4}
.sg-cchip.purple{border-color:#e9d5ff;color:#7e22ce;background:#faf5ff}
.sg-cchip.amber{border-color:#fde68a;color:#b45309;background:#fffbeb}
.sg-cchip.red{border-color:#fecaca;color:#b91c1c;background:#fef2f2}
.sg-cchip.on{background:#0f172a!important;color:#fff!important;border-color:#0f172a!important}
.sg-bens-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:220px;overflow:auto;padding:2px}
.sg-bcard{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:12px;border:1.5px solid var(--line);background:#fff;cursor:pointer;transition:border-color .15s,background .15s}
.sg-bcard:hover{border-color:#93c5fd;background:#f8fafc}
.sg-bcard.on{border-color:#2563eb;background:#eff6ff}
.sg-bic{width:38px;height:38px;border-radius:10px;background:#f1f5f9;color:#2563eb;display:grid;place-items:center;flex:none}
.sg-bcard .sg-btx{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.sg-bcard .sg-btx b{font-size:13.5px;color:var(--tx)}
.sg-bcard .sg-btx small{font-size:11.5px;color:var(--mut)}
.sg-bcard .sg-btx span{font-size:11.5px;font-weight:800}
.sg-bcard input[type=checkbox]{width:18px;height:18px;accent-color:#2563eb;pointer-events:none}
.sg-cobs-box{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fafcfa;display:flex;flex-wrap:wrap;gap:8px}
.sg-cob-chip{padding:6px 12px;border-radius:8px;border:1px solid #cbd5e1;background:#fff;font-size:12px;font-weight:700;color:#334155;cursor:pointer;transition:all .12s}
.sg-cob-chip:hover{border-color:#3b82f6}
.sg-cob-chip.on{background:#1d4ed8;color:#fff;border-color:#1d4ed8;box-shadow:0 2px 8px rgba(29,78,216,.25)}
.sg-pay-box{margin-top:12px;background:#faf5ff;border:1.5px solid #e9d5ff;border-radius:13px;padding:14px 16px}
.sg-parc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;margin-top:8px}
.sg-pcard{background:#fff;border:1px solid #e9d5ff;border-radius:10px;padding:10px 12px;text-align:center;display:flex;flex-direction:column;gap:2px}
.sg-pcard span{font-size:11.5px;font-weight:800;color:#7e22ce}
.sg-pcard strong{font-size:14.5px;font-weight:900;color:var(--tx)}
.sg-pcard small{font-size:11px;color:var(--mut)}
.sg-dropzone{border:2px dashed #93c5fd;background:#eff6ff;border-radius:13px;padding:24px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;cursor:pointer;transition:background .15s}
.sg-dropzone:hover{background:#dbeafe}
.sg-dropzone .ic{width:30px;height:30px;color:#2563eb}
.sg-dropzone b{font-size:14px;color:#1e293b}
.sg-dropzone span{font-size:12px;color:#64748b;max-width:520px}
@media (max-width:720px){.sg-bens-grid{grid-template-columns:1fr}}

/* ---------- Charts & legends ---------- */
.chart{position:relative;height:220px}
.chart.tall{height:290px}.chart.sm{height:180px}
.donut-row{display:flex;align-items:center;gap:14px;flex-wrap:nowrap}
.donut-box{position:relative;width:168px;height:168px;flex:none;margin:auto}
.donut-box.sm{width:146px;height:146px}
.donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;pointer-events:none;text-align:center;padding:0 18px}
.donut-center b{font-size:15px;font-weight:800;line-height:1.15}
.donut-center span{font-size:11px;color:var(--mut);margin-top:2px}
.legend{flex:1;min-width:120px;display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.legend li{display:flex;align-items:center;gap:8px;font-size:13px}
.legend .dt{width:12px;height:12px;border-radius:50%;flex:none}
.legend .lb{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.legend .vl{font-weight:600;white-space:nowrap}
.custos-topbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border-radius:var(--r);padding:8px 12px;box-shadow:var(--sh);border:1px solid var(--line2)}
.c-tsel{display:flex;align-items:center;gap:9px;background:#f8faf8;border:1px solid var(--line);border-radius:10px;padding:5px 11px;flex:1;min-width:145px}
.c-tsel .ic{color:var(--g600);width:19px;height:19px}
.c-tsel label{display:flex;flex-direction:column;flex:1;min-width:0}
.c-tsel label span{font-size:11px;color:var(--tx2);font-weight:600;line-height:1.1}
.c-tsel select{border:0;background:transparent;font-weight:700;font-size:13.5px;padding:1px 0 0;outline:none;cursor:pointer;color:var(--tx);width:100%}
.c-tacts{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
.custos-mid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1.15fr) minmax(0,1fr);gap:14px}
.rank{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}
.rank li{display:flex;align-items:center;gap:12px;padding:9px 2px;border-bottom:1px solid var(--line2)}
.rank li:last-child{border-bottom:0}
.rank .ri{width:30px;height:30px;border-radius:8px;background:var(--green-bg);color:var(--g600);display:grid;place-items:center;flex:none}
.rank .ri .ic{width:17px;height:17px}
.rank .rl{flex:1;min-width:0}
.rank .rl small{display:block;color:var(--mut);font-size:11.5px}
.rank .rv{font-weight:800;color:var(--g600);white-space:nowrap}
.bar{height:9px;border-radius:9px;background:#e9eee8;overflow:hidden}
.bar>i{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,#1f9a3f,#3db44b)}
.bar.red>i{background:var(--red)}

/* ---------- Summary strip ---------- */
.strip{display:flex;align-items:center;gap:0;background:linear-gradient(90deg,#eef8ec,#f8fcf7);border-radius:var(--r);box-shadow:var(--sh);padding:14px 22px;flex-wrap:wrap;border:1px solid var(--line2)}
.strip .st-tt{display:flex;align-items:center;gap:12px;font-weight:800;font-size:18px;padding-right:24px;min-width:230px}
.strip .st-tt .ic{width:34px;height:34px;color:var(--g600);stroke-width:1.6}
.strip .st-tt small{font-weight:500;font-size:14px}
.strip .st{flex:1;text-align:center;border-left:1px solid #cfdccc;padding:4px 14px;min-width:150px}
.strip .st span{display:block;font-size:13px;color:var(--tx2)}
.strip .st b{font-size:20px;font-weight:800;color:var(--g600)}

/* ---------- Banners / alerts ---------- */
.alert{display:flex;align-items:center;gap:14px;padding:14px 18px;border-radius:var(--r);border:1px solid #f6d79b;background:linear-gradient(90deg,#fff6e3,#fffaf0);flex-wrap:wrap}
.alert>.ic{width:34px;height:34px;color:var(--orange);flex:none}
.alert .at{flex:1;min-width:220px}
.alert .at b{font-size:16px;color:#7c2d12}
.alert .at p{margin:2px 0 0;font-size:12.5px;color:var(--tx2)}
.alert.green{border-color:#bfe5bd;background:linear-gradient(90deg,#eaf8e8,#f6fcf5)}.alert.green>.ic{color:var(--g500)}.alert.green .at b{color:var(--g800)}
.alert.red{border-color:#f4c2c2;background:linear-gradient(90deg,#fdecec,#fff6f6)}.alert.red>.ic{color:var(--red)}.alert.red .at b{color:#7f1d1d}
.trial{display:flex;align-items:center;gap:16px;background:linear-gradient(90deg,#063a1c,#0f5a2d 60%,#2f7d2e);color:#fff;border-radius:var(--r);padding:14px 20px;flex-wrap:wrap;box-shadow:var(--sh)}
.trial>.ic{width:38px;height:38px;color:#f5c518}
.trial .at{flex:1;min-width:220px}
.trial b{font-size:17px}
.trial p{margin:2px 0 0;font-size:13px;color:#d6ead4}
.trial .days{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:12px;padding:6px 14px;text-align:center}
.trial .days strong{font-size:24px;display:block;line-height:1}
.trial .days span{font-size:11px}

/* ---------- Tabs / chips ---------- */
.tabs{display:flex;gap:8px;flex-wrap:wrap;padding:8px;background:#fff;border-radius:var(--r);box-shadow:var(--sh);border:1px solid var(--line2)}
.tab{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border-radius:10px;border:0;background:transparent;font-weight:600;cursor:pointer;color:var(--tx2);text-decoration:none;font-size:14px}
.tab .ic{width:18px;height:18px}
.tab:hover{background:#f1f6f0}
.tab.on{background:linear-gradient(90deg,#1f9a3f,#3db44b);color:#fff}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{padding:7px 14px;border-radius:9px;border:1px solid var(--line);background:#f6f8f6;font-weight:600;cursor:pointer;font-size:13px}
.chip.on{background:var(--g700);color:#fff;border-color:var(--g700)}
.seg{display:inline-flex;background:#eef2ee;border-radius:10px;padding:3px;gap:3px}
.seg button{border:0;background:transparent;padding:7px 14px;border-radius:8px;font-weight:600;cursor:pointer;display:inline-flex;gap:6px;align-items:center}
.seg button.on{background:#fff;box-shadow:var(--sh);color:var(--g700)}

/* ---------- Side menus (bens/config) ---------- */
.vmenu{background:linear-gradient(180deg,#063a1c,#08451f);color:#fff;border-radius:var(--r);padding:12px 10px;display:flex;flex-direction:column;gap:3px;align-self:start;box-shadow:var(--sh)}
.vmenu h4{font-size:14.5px;padding:2px 8px}
.vmenu p{font-size:11.5px;color:#cfe3cf;margin:1px 8px 6px}
.vmenu a{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:10px;color:#fff;text-decoration:none;background:rgba(255,255,255,.03)}
.vmenu a .ic{width:20px;height:20px;color:#bfe8b0}
.vmenu a b{font-size:13.5px;display:block}
.vmenu a small{font-size:11px;color:#bcd4bb;display:block}
.vmenu a .nb{margin-left:auto;background:#3db44b;border-radius:8px;min-width:22px;height:22px;display:grid;place-items:center;font-size:11.5px;font-weight:800}
.vmenu a:hover{background:rgba(255,255,255,.08)}
.vmenu a.on{background:linear-gradient(90deg,#3db44b,#7fc13f)}
.vmenu a.on .ic{color:#fff}
.vmenu.light{background:#fff;color:var(--tx)}
.vmenu.light a{color:var(--tx);background:transparent}
.vmenu.light a .ic{color:var(--g600)}
.vmenu.light a small{color:var(--mut)}
.vmenu.light a.on{background:var(--green-bg);box-shadow:inset 3px 0 0 var(--g500)}

/* ---------- Policy cards ---------- */
.pcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:14px}
.pcard{border-radius:16px;border:1.5px solid #cfe9cc;background:#fff;padding:14px 16px;display:flex;flex-direction:column;gap:10px;box-shadow:var(--sh)}
.pcard.amber{border-color:#f6d79b}.pcard.blue{border-color:#c7d8fb}.pcard.red{border-color:#f4c2c2}.pcard.purple{border-color:#dccbfb}
.pcard .ph{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}
.pcard .pn{display:flex;align-items:center;gap:12px}
.pcard .pn .lg{width:44px;height:44px;border-radius:10px;display:grid;place-items:center;font-weight:900;color:#fff;font-size:15px;flex:none}
.pcard .pn b{font-size:17px}
.pcard .pt{display:flex;align-items:center;gap:8px;font-weight:800;font-size:15px}
.pcard .pt .ic{color:var(--g600)}
.pcard .pb{background:#f5f7f5;border-radius:10px;padding:9px 12px;font-size:13px}
.pcard .pb b{display:block;font-size:12.5px;margin-bottom:2px}
.pcard dl{margin:0;display:grid;grid-template-columns:1fr auto;gap:6px 10px;font-size:13.5px}
.pcard dt{color:var(--tx2);display:flex;gap:7px;align-items:center}
.pcard dt .ic{width:16px;height:16px;color:var(--mut)}
.pcard dd{margin:0;font-weight:800;text-align:right}
.pcard .pf{display:flex;justify-content:flex-end;gap:6px;border-top:1px solid var(--line2);padding-top:10px}
.prog{display:flex;align-items:center;gap:10px}
.prog .bar{flex:1}

/* ---------- Auth pages ---------- */
.auth{min-height:var(--vh,100vh);display:grid;grid-template-columns:minmax(0,4.4fr) minmax(0,7.6fr);background:#fff}
.auth-l{padding:36px 5vw;display:flex;flex-direction:column;justify-content:center;gap:20px;position:relative;overflow:hidden}
.auth-l>*{width:100%;max-width:540px;margin-left:auto;margin-right:auto}
.auth-l::after{content:"";position:absolute;left:-10%;right:-10%;bottom:-80px;height:160px;background:radial-gradient(60% 100% at 30% 100%,rgba(140,198,63,.5),rgba(61,180,75,.2) 50%,transparent 75%);pointer-events:none}
.auth-l h2{font-size:36px;font-weight:800;color:var(--g900)}
.auth-l>p{margin:-8px auto 0;color:var(--tx2);font-size:16.5px}
.auth-l .logo{align-self:center;width:auto}
.auth-l .logo .logo-h{height:78px}
.auth-l .logo svg{width:76px;height:76px}
.auth-l .logo .l1{font-size:34px}.auth-l .logo .l2{font-size:38px}.auth-l .logo .l3{font-size:12px}
.social{display:grid;grid-template-columns:1fr;gap:10px}
.social button{height:50px;border-radius:12px;border:1px solid var(--line);background:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:700;font-size:15px;color:var(--tx);transition:background .15s,border-color .15s}
.social button:hover{background:#f8fafc;border-color:#cbd5e1}
.or{display:flex;align-items:center;gap:12px;color:var(--mut)}
.or::before,.or::after{content:"";flex:1;height:1px;background:var(--line)}
.auth-r{background:radial-gradient(80% 60% at 70% 30%,rgba(140,198,63,.25),transparent 60%),linear-gradient(160deg,#0c4a24 0%,#063019 55%,#041f10 100%);color:#fff;padding:60px 6vw;display:flex;flex-direction:column;justify-content:center;gap:22px;position:relative;overflow:hidden;min-height:var(--vh,100vh)}
.auth-r::before{content:"";position:absolute;inset:auto -10% -10% -10%;height:45%;background:repeating-linear-gradient(100deg,rgba(140,198,63,.0) 0 26px,rgba(140,198,63,.13) 26px 30px);transform:perspective(500px) rotateX(55deg);transform-origin:bottom}
.auth-r>*{position:relative}
.auth-r.auth-hero{background:#06311a url(../assets/login-hero.webp) right center/cover no-repeat;padding:0}
.auth-r.auth-hero::before,.auth-r.auth-hero::after{display:none!important}
.auth-r.auth-hero.cadastro{background:#06311a url(../assets/cadastro-hero.webp) 82% center/cover no-repeat;padding:0;position:sticky;top:0;min-height:var(--vh,100vh);height:var(--vh,100vh);overflow:hidden}
.auth-r .bar1{width:60px;height:6px;border-radius:4px;background:var(--lime)}
.auth-r h2{font-size:clamp(30px,3.6vw,50px);line-height:1.05;font-weight:800}
.auth-r h2 em{font-style:normal;color:var(--lime2)}
.feat{display:flex;flex-direction:column;gap:10px;max-width:420px}
.feat div{display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);border-radius:14px;padding:12px 16px;font-size:15px}
.feat .ic{width:44px;height:44px;padding:10px;border-radius:50%;background:#0a3a1c;color:#8ee05a}
.quote{display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);border-radius:16px;padding:16px 20px;font-size:18px;max-width:520px}
.quote .ic{width:34px;height:34px;color:var(--lime2)}
.steps{display:flex;align-items:flex-start;justify-content:space-between;position:relative;margin:4px 0}
.steps::before{content:"";position:absolute;top:16px;left:12%;right:12%;height:2px;background:#d7ded6}
.steps .s{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px;color:var(--tx2);position:relative;flex:1}
.steps .s i{width:34px;height:34px;border-radius:50%;border:2px solid #c7d0c6;background:#fff;display:grid;place-items:center;font-style:normal;font-weight:800;color:var(--mut)}
.steps .s.on i{background:var(--g600);border-color:var(--g600);color:#fff}
.steps .s.on{color:var(--g700);font-weight:700}
.box{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:#fff}
.box h4{display:flex;align-items:center;gap:8px;font-size:16px;margin-bottom:10px}
.box h4 .ic{color:var(--g600)}

/* ---------- Checkout ---------- */
.co-top{background:linear-gradient(90deg,#052a16 0%,#0b4a25 40%,rgba(11,74,37,.7) 70%),repeating-linear-gradient(100deg,rgba(140,198,63,0) 0 20px,rgba(140,198,63,.25) 20px 23px),linear-gradient(180deg,#f6c66e,#6aa443);padding:20px 5vw 70px;display:flex;align-items:center;gap:20px;color:#fff;flex-wrap:wrap}
.co-wrap{max-width:1180px;margin:-46px auto 30px;background:#fff;border-radius:26px;padding:28px 30px;box-shadow:0 10px 40px rgba(0,0,0,.08);display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px}
.co-wrap h1{font-size:32px;font-weight:800}
.co-wrap h1 em{font-style:normal;color:var(--g500)}
.plans{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.plan{border:1.5px solid var(--line);border-radius:14px;padding:14px 16px;cursor:pointer;display:flex;gap:12px;position:relative;background:#fff}
.plan input{width:20px;height:20px;accent-color:var(--g500);margin-top:2px}
.plan.on{border-color:var(--g500);background:#f3fbf2;box-shadow:0 0 0 3px rgba(61,180,75,.12)}
.plan b{font-size:15px;display:block;padding-right:90px}
.plan .pr{font-size:24px;font-weight:800;color:var(--g600)}
.plan .pr small{font-size:13px;color:var(--tx2);font-weight:500}
.plan .ds{font-size:12px;color:var(--tx2)}
.plan .tag{position:absolute;top:12px;right:12px;background:#dff3d9;color:var(--g700);font-size:10.5px;font-weight:800;padding:4px 8px;border-radius:999px;text-align:center;line-height:1.15}
.plan .tag.y{background:#f5c518;color:#3d2c00}
.pay{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.pay label{border:1.5px solid var(--line);border-radius:12px;padding:12px;display:flex;gap:10px;align-items:center;cursor:pointer}
.pay label.on{border-color:var(--g500);background:#f3fbf2}
.pay input{accent-color:var(--g500);width:18px;height:18px}
.pay small{display:block;color:var(--mut);font-size:11.5px}
.sum{border-radius:16px;overflow:hidden;border:1px solid var(--line);box-shadow:var(--sh);align-self:start;position:sticky;top:16px}
.sum .sh{background:linear-gradient(90deg,#063a1c,#0f5a2d);color:#fff;padding:14px 18px;font-weight:800;font-size:18px;display:flex;gap:10px;align-items:center}
.sum .sb{padding:16px 18px;display:flex;flex-direction:column;gap:10px}
.sum .ln{display:flex;justify-content:space-between;font-size:14px;gap:10px}
.sum .tot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:12px;font-size:16px;font-weight:700}
.sum .tot b{font-size:26px}
.incl{background:#f1f9ef;border-radius:16px;padding:16px 18px;margin-top:14px}
.incl h4{font-size:15px;margin-bottom:8px}
.incl li{list-style:none;display:flex;gap:8px;align-items:center;padding:4px 0;font-size:13.5px}
.incl li .ic{color:var(--g500)}
.incl ul{margin:0;padding:0}

/* ---------- Profile ---------- */
.pf-hero{background:linear-gradient(90deg,#063a1c 0%,#0b4a25 45%,rgba(11,74,37,.55) 75%),repeating-linear-gradient(100deg,rgba(140,198,63,0) 0 18px,rgba(140,198,63,.3) 18px 21px),linear-gradient(180deg,#f6c66e,#5d9b3c);color:#fff;padding:22px 24px 16px;border-radius:16px 16px 0 0;position:relative}
.pf-hero .row{display:flex;gap:18px;align-items:center}
.pf-av{width:104px;height:104px;border-radius:18px;border:3px solid #fff;background:#0b4a25;display:grid;place-items:center;font-size:36px;font-weight:800;overflow:hidden;position:relative;flex:none}
.pf-av img{width:100%;height:100%;object-fit:cover}
.pf-hero h2{font-size:26px}
.pf-badge{display:inline-flex;gap:6px;align-items:center;background:#f5c518;color:#2a1f00;font-weight:800;border-radius:999px;padding:5px 14px;margin-top:6px;font-size:13px}
.pf-st{display:flex;gap:16px;background:rgba(255,255,255,.9);color:var(--tx);border-radius:12px;padding:9px 16px;margin-top:14px;font-weight:700;width:max-content;max-width:100%;flex-wrap:wrap}
.pf-x{position:absolute;right:14px;top:14px;background:rgba(255,255,255,.15);border:0;color:#fff;border-radius:10px;width:40px;height:40px;cursor:pointer;display:grid;place-items:center}
.dl{display:flex;flex-direction:column}
.dl>div{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line2)}
.dl>div:last-child{border-bottom:0}
.dl .ic{color:var(--g600)}
.dl small{display:block;color:var(--mut);font-size:12px}
.lnk{display:flex;align-items:center;gap:14px;border:1.5px solid #bfe5bd;border-radius:14px;padding:14px 16px;background:linear-gradient(90deg,#effaee,#f8fdf7);cursor:pointer;text-decoration:none;color:var(--tx);width:100%;text-align:left}
.lnk .li{width:48px;height:48px;border-radius:12px;background:var(--g600);color:#fff;display:grid;place-items:center;flex:none}
.lnk b{font-size:16px;display:block}.lnk small{color:var(--tx2)}
.lnk .chev{margin-left:auto}
.lnk.red{border-color:#f4c2c2;background:#fff3f3;color:var(--red);justify-content:center;font-weight:800;font-size:17px}

/* ---------- Licenças hero ---------- */
.lic-hero{background:radial-gradient(70% 120% at 100% 0%,rgba(140,198,63,.25),transparent 60%),linear-gradient(120deg,#052a16,#0b4a25);color:#fff;border-radius:var(--r);padding:18px 22px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--sh)}
.lic-hero .tagm{display:inline-flex;gap:6px;align-items:center;border:1px solid #a7d98a;color:#c9f0a8;border-radius:999px;padding:3px 12px;font-size:12px;font-weight:700;width:max-content}
.lic-hero h2{font-size:22px}
.lic-hero .meta{font-size:12.5px;color:#d3e8d1;display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.lic-hero code{background:rgba(255,255,255,.12);padding:2px 8px;border-radius:6px;font-size:12px}
.lic-hero .tab{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.15)}
.lic-hero .tab.on{background:#fff;color:var(--g800)}

/* ---------- A4 preview / print ---------- */
.a4-stage{background:#e6ebe6;border-radius:12px;padding:20px;overflow:auto;max-height:78vh}
.a4{background:#fff;width:210mm;min-height:297mm;margin:0 auto;padding:14mm 13mm;box-shadow:0 6px 24px rgba(0,0,0,.15);font-size:11px;color:#111;transform-origin:top center}
.a4.land{width:297mm;min-height:210mm}
.a4.compact{font-size:9.5px}.a4.amplo{font-size:12.5px}
.doc-hd{display:flex;gap:14px;align-items:flex-start;border-bottom:2px solid #157a36;padding-bottom:10px}
.doc-hd .logo svg{width:44px;height:44px}
.doc-hd .logo .l1{font-size:15px}.doc-hd .logo .l2{font-size:16px}.doc-hd .logo .l3{display:none}
.doc-hd .dp{flex:1}
.doc-hd .dp h2{font-size:16px}
.doc-hd .dp p{margin:2px 0 0;font-size:9.5px;color:#444}
.doc-hd .dm{text-align:right;font-size:9.5px;color:#444}
.doc-hd .dm b{font-size:11px;color:#111}
.doc-tag{display:inline-block;background:#e7f6e8;color:#157a36;border:1px solid #9bd39a;border-radius:6px;padding:2px 8px;font-size:8.5px;font-weight:800;margin-bottom:4px}
.doc-title{text-align:center;margin:14px 0 4px;font-size:15px;font-weight:800;letter-spacing:.02em}
.doc-sub{text-align:center;color:#555;font-size:10px;margin-bottom:8px}
.doc-chips{display:flex;justify-content:center;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.doc-chips span{border:1px solid #9bd39a;border-radius:20px;padding:2px 10px;font-size:9.5px;font-weight:700;background:#f2faf1}
.doc-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}
.doc-kpis div{border:1px solid #d9e0d8;border-radius:8px;padding:7px 9px}
.doc-kpis span{font-size:8.5px;color:#555;text-transform:uppercase;font-weight:700}
.doc-kpis b{display:block;font-size:14px;margin-top:2px}
.doc-sec{font-weight:800;font-size:11.5px;border-left:3px solid #157a36;padding-left:7px;margin:12px 0 6px}
.dtbl{width:100%;border-collapse:collapse;font-size:1em}
.dtbl th{background:#0b4a25;color:#fff;text-align:left;padding:5px 7px;font-size:.92em}
.dtbl td{padding:4px 7px;border-bottom:1px solid #e3e8e2}
.dtbl td.r,.dtbl th.r{text-align:right}
.dtbl tr.tot td{font-weight:800;background:#eef8ec}
.dtbl tr.grp td{font-weight:800;background:#f6f8f6}
.dtbl tr.neg td{color:#b91c1c}
.doc-sign{display:flex;justify-content:space-around;margin-top:46px;gap:30px}
.doc-sign div{border-top:1px solid #333;padding-top:5px;text-align:center;font-size:10px;flex:1;max-width:240px}
.doc-foot{margin-top:18px;font-size:8.5px;color:#777;text-align:center;border-top:1px solid #ddd;padding-top:6px}
#print-root{display:none}
@media print{
  body.printing #app,body.printing #toasts,body.printing .modal-wrap{display:none!important}
  body.printing #print-root{display:block}
  body.printing{background:#fff}
  #print-root .a4{box-shadow:none;margin:0;width:auto;min-height:0;padding:0}
  .dtbl th{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .dtbl tr.tot td,.doc-tag,.doc-chips span,.dtbl tr.grp td{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* ---------- Dropdown ---------- */
.dd{position:absolute;top:calc(100% + 8px);right:0;background:#fff;border-radius:14px;box-shadow:0 12px 40px rgba(0,0,0,.18);width:360px;max-width:90vw;z-index:60;border:1px solid var(--line);overflow:hidden}
.dd h4{padding:12px 16px;border-bottom:1px solid var(--line)}
.dd .it{display:flex;gap:10px;padding:10px 16px;border-bottom:1px solid var(--line2);font-size:13px;align-items:flex-start;text-decoration:none;color:var(--tx)}
.dd .it:hover{background:#f6faf5}
.dd .it .ic{margin-top:1px}

/* ---------- Responsive ---------- */
@media (max-width:1480px){
  .kpis.k6 .kpi{padding:10px 9px;gap:8px}
  .kpis.k6 .kpi-ic{width:38px;height:38px}
  .kpis.k6 .kpi-ic .ic{width:20px;height:20px}
  .kpis.k6 .kpi-v{font-size:16px}
  .kpis.k6 .kpi-lb{font-size:11.5px}
  .kpis.k6 .kpi small{font-size:11px}
}
@media (max-width:1150px){.kpis.k6{grid-template-columns:repeat(3,minmax(0,1fr))}.g3,.custos-mid{grid-template-columns:repeat(2,minmax(0,1fr))}.g3>.span-all,.custos-mid>:last-child{grid-column:1/-1}.g-3-2{grid-template-columns:1fr}}
@media (max-width:1024px){
  .side{position:fixed;left:0;top:0;transform:translateX(-100%);transition:transform .2s;box-shadow:0 0 40px rgba(0,0,0,.3)}
  .nav-open .side{transform:none}
  .nav-backdrop{display:none}
  .nav-open .nav-backdrop{display:block;position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:30}
  .hamb{display:grid}
  .topbar{flex-wrap:wrap}
  .g2,.g3,.g4,.g-side,.g-cfg,.custos-mid,.kpis.k5,.kpis.k6{grid-template-columns:1fr 1fr}
  .auth{grid-template-columns:1fr}.auth-r{display:none}
  .co-wrap{grid-template-columns:1fr;margin:-46px 16px 30px}
}
@media (max-width:1024px){.fin-head{grid-template-columns:1fr!important}}
@media (max-width:720px){
  .content{padding:12px 12px 30px}
  .topbar{padding:12px}
  .topbar h1{font-size:21px}
  .topbar .pg-ic{display:none}
  .topbar .pg-tt{flex:1 1 calc(100% - 60px)}
  .topbar{gap:8px}
  .topbar p{display:none}
  .tb-sel{min-width:0;flex:1 1 140px}
  .form-grid{grid-template-columns:1fr 1fr}
  .fld.w3,.fld.w4,.fsec{grid-column:span 2}
  .plans,.pay{grid-template-columns:1fr}
  .strip .st{border-left:0;min-width:45%}
  .kpis{grid-template-columns:1fr 1fr}
  .kpi-v{font-size:17px}.kpi-ic{width:42px;height:42px}.kpi-ic .ic{width:22px;height:22px}
  .auth-l{padding:28px 18px}
  .co-wrap{padding:20px 16px}
  .doc-kpis{grid-template-columns:1fr 1fr}
}

/* ---------- Estoque de Insumos & Defensivos ---------- */
.est-hero{background:linear-gradient(135deg,#092c1c 0%,#0d3b26 60%,#082517 100%);border-radius:18px;padding:24px 26px;color:#fff;box-shadow:0 12px 32px rgba(6,35,20,.22);margin-bottom:14px;border:1px solid rgba(255,255,255,.08)}
.est-hero-top{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.09)}
.est-hero-pill{display:inline-flex;align-items:center;gap:6px;background:rgba(16,185,129,.18);border:1px solid rgba(16,185,129,.4);color:#34d399;padding:4px 12px;border-radius:999px;font-size:11.5px;font-weight:700;margin-bottom:8px}
.est-hero-pill .ic{width:14px;height:14px}
.est-hero-top h2{font-size:24px;font-weight:800;margin:0 0 6px;letter-spacing:-.02em;color:#fff}
.est-hero-top p{margin:0;color:rgba(255,255,255,.74);font-size:13px;max-width:650px;line-height:1.45}
.est-hero-btns{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.btn.est-btn-xml{background:#059669;color:#fff;border:1px solid #10b981;font-weight:700;padding:9px 15px;border-radius:10px}
.btn.est-btn-xml:hover{background:#047857}
.btn.est-btn-apl{background:rgba(16,185,129,.14);color:#34d399;border:1px solid rgba(52,211,153,.35);font-weight:700;padding:9px 15px;border-radius:10px}
.btn.est-btn-apl:hover{background:rgba(16,185,129,.25)}
.btn.est-btn-new{background:rgba(255,255,255,.1);color:#fff;border:1px solid rgba(255,255,255,.2);font-weight:700;padding:9px 15px;border-radius:10px}
.btn.est-btn-new:hover{background:rgba(255,255,255,.18)}
.btn.est-btn-nf{background:#2563eb;color:#fff;border:1px solid #3b82f6;font-weight:700;padding:9px 16px;border-radius:10px;box-shadow:0 4px 14px rgba(37,99,235,.35)}
.btn.est-btn-nf:hover{background:#1d4ed8}

.est-hero-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:18px}
.est-hkpi{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:13px;padding:13px 15px;display:flex;flex-direction:column;gap:4px}
.est-hkpi.alert{background:rgba(185,28,28,.18);border-color:rgba(248,113,113,.45)}
.est-hkpi-hd{display:flex;justify-content:space-between;align-items:center;font-size:11.5px;color:rgba(255,255,255,.7);font-weight:600}
.est-hkpi.alert .est-hkpi-hd{color:#fca5a5}
.est-hkpi-hd i{font-style:normal;font-weight:800;font-size:14px}
.est-hkpi strong{font-size:21px;font-weight:800;color:#fff;letter-spacing:-.02em}
.est-hkpi.alert strong{color:#f87171}
.est-hkpi strong.warn{color:#fbbf24}
.est-hkpi small{font-size:11px;color:rgba(255,255,255,.58)}
.est-hkpi small.pos{color:#34d399}
.est-hkpi.alert small{color:#fca5a5}

.est-tabs{display:flex;gap:8px;flex-wrap:wrap;background:#fff;padding:7px 10px;border-radius:13px;border:1px solid var(--line);margin-bottom:14px;box-shadow:0 2px 8px rgba(0,0,0,.03)}
.est-tab{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:9px;font-size:13px;font-weight:700;color:#475569;text-decoration:none;transition:all .15s;border:1px solid transparent}
.est-tab .ic{width:15px;height:15px}
.est-tab:hover{background:#f1f5f9;color:#0f172a}
.est-tab.active{background:#065f46;color:#fff;border-color:#047857;box-shadow:0 2px 8px rgba(6,95,70,.25)}
.est-tab-cnt{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;font-size:11px;font-weight:800;background:#d1fae5;color:#065f46}
.est-tab.active .est-tab-cnt{background:rgba(255,255,255,.22);color:#fff}

.est-fbar{display:grid;grid-template-columns:1fr 200px 210px 180px;gap:10px;background:#fff;padding:12px 14px;border-radius:13px;border:1px solid var(--line);margin-bottom:14px;align-items:center}
.est-search{position:relative;display:flex;align-items:center}
.est-search .ic{position:absolute;left:12px;width:16px;height:16px;color:#94a3b8;pointer-events:none}
.est-search .inp{padding-left:36px;width:100%}

.est-prod-cell{display:flex;flex-direction:column;gap:3px}
.est-prod-cell b{font-size:13.5px;color:#0f172a}
.est-prod-cell small{font-size:11.5px;color:#64748b}
.est-sku{display:inline-block;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:5px;padding:1px 6px;font-family:monospace;font-size:11px;font-weight:700;color:#475569}
.est-cat-pill{display:inline-block;background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe;padding:3px 10px;border-radius:7px;font-size:11.5px;font-weight:700}
.est-saldo-cell{display:inline-flex;flex-direction:column;align-items:flex-end;gap:4px;min-width:90px}
.est-mbar{width:84px;height:4px;background:#e2e8f0;border-radius:99px;overflow:hidden}
.est-mbar span{display:block;height:100%;border-radius:99px}
.est-custo-cell{display:flex;flex-direction:column;align-items:flex-end;line-height:1.2}
.est-custo-cell small{font-size:10.5px;color:#94a3b8}
.est-sit-pill{display:inline-flex;align-items:center;justify-content:center;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:800;color:#fff}
.est-sit-pill.red{background:#ef4444}
.est-sit-pill.amber{background:#f59e0b}
.est-sit-pill.green{background:#10b981}

.est-xml-drop{background:#f0fdf4;border:2px dashed #6ee7b7;border-radius:16px;padding:34px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}
.est-xml-ic{width:46px;height:46px;border-radius:13px;background:#059669;color:#fff;display:grid;place-items:center;margin-bottom:4px;box-shadow:0 6px 16px rgba(5,150,105,.28)}
.est-xml-ic .ic{width:24px;height:24px}
.est-xml-drop h3{font-size:16px;font-weight:800;color:#064e3b;margin:0}
.est-xml-drop p{font-size:12.5px;color:#047857;max-width:620px;margin:0 0 10px;line-height:1.5}
.est-xml-btns{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}

.est-sec-bar{padding:14px 18px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}
.est-sec-bar h4,.est-sec-card h4{margin:0;font-size:14.5px;font-weight:800;color:#0f172a}
.est-sec-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}

.est-warn-banner{background:#fffbeb;border:1px solid #fde68a;border-radius:13px;padding:14px 18px;display:flex;gap:12px;align-items:flex-start;color:#92400e}
.est-warn-banner .ic{width:20px;height:20px;color:#d97706;flex-shrink:0;margin-top:2px}
.est-warn-banner b{font-size:13px;color:#78350f}
.est-warn-banner p{margin:3px 0 0;font-size:12.5px;line-height:1.45;color:#92400e}

.est-kdx-pill{display:inline-block;padding:3px 9px;border-radius:6px;font-size:11px;font-weight:700}
.est-kdx-pill.red{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}
.est-kdx-pill.green{background:#ecfdf5;color:#059669;border:1px solid #a7f3d0}
.est-kdx-pill.blue{background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe}

.est-loc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}
.est-loc-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;display:flex;flex-direction:column;gap:8px;box-shadow:0 2px 8px rgba(0,0,0,.03)}
.est-loc-top{display:flex;justify-content:space-between;align-items:center}
.est-loc-ic{width:38px;height:38px;border-radius:10px;background:#ecfdf5;color:#059669;display:grid;place-items:center}
.est-loc-card h4{margin:4px 0 0;font-size:15px;font-weight:800;color:#0f172a}
.est-loc-desc{margin:0;font-size:12px;color:#64748b;line-height:1.4}
.est-loc-meta{margin-top:4px;padding-top:10px;border-top:1px solid var(--line2);display:flex;flex-direction:column;gap:4px;font-size:12px;color:#475569}
.est-loc-meta div{display:flex;align-items:center;gap:6px}
.est-loc-meta .ic{width:14px;height:14px;color:#64748b}
.est-loc-foot{margin-top:auto;padding-top:12px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:flex-end}
.est-loc-foot small{display:block;font-size:11px;color:#64748b}
.est-loc-foot strong{font-size:16px;font-weight:800}

/* Modal NF-e Manual */
.est-rule-banner{background:#eff6ff;border:1px solid #bfdbfe;border-radius:12px;padding:13px 16px;display:flex;gap:12px;align-items:flex-start;color:#1e40af;margin-bottom:14px}
.est-rule-banner .ic{width:20px;height:20px;color:#2563eb;flex-shrink:0;margin-top:2px}
.est-rule-banner b{font-size:13px;color:#1e3a8a}
.est-rule-banner p{margin:3px 0 0;font-size:12.5px;line-height:1.45;color:#1e40af}
.est-nf-items{display:flex;flex-direction:column;gap:12px}
.est-nf-item{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:14px}
.est-nf-item-hd{display:flex;align-items:center;gap:10px}
.est-nf-num{width:24px;height:24px;border-radius:99px;background:#dbeafe;color:#1d4ed8;font-size:12px;font-weight:800;display:grid;place-items:center}
.est-nf-itname{font-size:13.5px;color:#0f172a}
.est-ro-bold{background:#f1f5f9!important;font-weight:800!important;color:#0f172a!important}
.est-nf-totbar{margin-top:14px;background:linear-gradient(135deg,#047857,#065f46);color:#fff;border-radius:12px;padding:14px 18px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.est-nf-totbar small{display:block;font-size:11px;font-weight:700;letter-spacing:.04em;color:#a7f3d0}
.est-nf-totbar strong{font-size:24px;font-weight:800;color:#fff}
.est-nf-totbar p{margin:0;font-size:11.5px;color:#d1fae5;max-width:440px}
.est-mfoot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}

@media (max-width:1100px){
  .est-hero-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .est-fbar{grid-template-columns:1fr 1fr}
  .est-loc-grid{grid-template-columns:1fr}
}

/* ---------- Modal Produção de Leite & Laticínio ---------- */
.lt-form{display:flex;flex-direction:column;gap:14px}
.lt-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.lt-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.lt-form .field{display:flex;flex-direction:column;gap:5px}
.lt-form .lbl{font-size:11.5px;font-weight:800;color:#475569;letter-spacing:.03em;text-transform:uppercase}
.lt-sum-bar{background:linear-gradient(135deg,#042f1d,#063e26);border-radius:14px;padding:16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:4px;box-shadow:0 8px 20px rgba(4,47,29,.22)}
.lt-sum-box{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:12px 14px;text-align:center;display:flex;flex-direction:column;gap:4px}
.lt-sum-box span{font-size:11px;font-weight:800;color:#6ee7b7;letter-spacing:.04em;text-transform:uppercase}
.lt-sum-box strong{font-size:21px;font-weight:900;color:#fff}
.lt-sum-box strong.gold{color:#facc15}
.lt-sum-box strong.green{color:#34d399}

/* Botões e Cards de Grupo de Animais (Leite) */
.lt-grp-btns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.lt-grp-btn{height:44px;border-radius:10px;border:1.5px solid #cbd5e1;background:#fff;color:#1e293b;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:all .15s}
.lt-grp-btn:hover{border-color:#d97706;background:#fffbeb}
.lt-grp-btn.on{background:#d97706;border-color:#b45309;color:#fff;box-shadow:0 4px 12px rgba(217,119,6,.3)}
.lt-val-inp{border-color:#f43f5e!important;background:#fff1f2!important;font-weight:800!important;color:#be123c!important}
.lt-val-inp::placeholder{color:#fb7185;font-weight:700}
.btn.lt-btn-orange{background:#d97706;border-color:#b45309;color:#fff;font-weight:800}
.btn.lt-btn-orange:hover{background:#b45309}

.lt-grp-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.lt-grp-card{background:#f8fafc;border:1.5px solid #e2e8f0;border-radius:13px;padding:12px 14px;display:flex;flex-direction:column;gap:10px;cursor:pointer;transition:all .15s}
.lt-grp-card:hover{border-color:#f59e0b;background:#fffbeb}
.lt-grp-card.active{border-color:#d97706;background:#fff7ed;box-shadow:0 0 0 3px rgba(217,119,6,.15)}
.lt-grp-top{display:flex;align-items:center;gap:10px}
.lt-grp-emo{font-size:22px;width:38px;height:38px;border-radius:10px;background:#fff;border:1px solid #e2e8f0;display:grid;place-items:center;flex:none}
.lt-grp-top b{display:block;font-size:13.5px;color:#0f172a}
.lt-grp-top small{display:block;font-size:11px;color:#64748b}
.lt-grp-top .btn{margin-left:auto}
.lt-grp-val{display:flex;justify-content:space-between;align-items:baseline;border-top:1px solid #e2e8f0;padding-top:8px}
.lt-grp-val strong{font-size:17px;font-weight:900}
.lt-grp-val span{font-size:11px;color:#475569}

@media (max-width:1024px){
  .lt-grp-cards,.lt-grp-btns{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .lt-grid-3,.lt-grid-2,.lt-sum-bar,.lt-grp-cards,.lt-grp-btns{grid-template-columns:1fr}
}

/* ---------- Recibo de Pagamento Contábil (Holerite / Folha de Pagamento) ---------- */
.hol-stage{background:#eef2ef;padding:18px;border-radius:12px;border:1px solid var(--line)}
.hol-sheet{background:#fff;color:#111;border:2px solid #000;font-family:Arial,Helvetica,sans-serif;font-size:12px;max-width:960px;margin:0 auto;box-shadow:0 4px 16px rgba(0,0,0,.08);-webkit-print-color-adjust:exact;print-color-adjust:exact}
.hol-top{display:grid;grid-template-columns:43% 57%;border-bottom:1.5px solid #000}
.hol-title-box{padding:8px 12px;text-align:center;border-right:1.5px solid #000;display:flex;flex-direction:column;justify-content:center}
.hol-title-box h3{font-size:18px;font-weight:800;margin:0;color:#000}
.hol-title-box span{font-size:12.5px;color:#222}
.hol-sign-box{padding:6px 12px;display:flex;flex-direction:column;justify-content:space-between}
.hol-sign-box small{font-size:10px;color:#222}
.hol-sign-line{font-size:12px;padding-top:8px;color:#000;white-space:nowrap;overflow:hidden}
.hol-row{display:grid;border-bottom:1.5px solid #000}
.hol-row>div{padding:4px 8px;border-right:1.5px solid #000;min-width:0}
.hol-row>div:last-child{border-right:0}
.hol-row small{display:block;font-size:9.5px;color:#333;margin-bottom:2px}
.hol-row b{display:block;font-size:12px;font-weight:700;color:#000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hol-r4{grid-template-columns:43% 22% 13% 22%}
.hol-r3{grid-template-columns:43% 28% 29%}
.hol-r5{grid-template-columns:22% 21% 18% 19% 20%}
.hol-r6{grid-template-columns:16% 17% 17% 14% 18% 18%;border-bottom:0}
.hol-shaded{background:#d4d4d4;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.hol-sec-hd{text-align:center;font-weight:800;font-size:12px;padding:3px 8px;border-bottom:1.5px solid #000;background:#f8f8f8}
.hol-tbl{width:100%;border-collapse:collapse;font-size:12.5px}
.hol-tbl th{border-bottom:1.5px solid #000;border-right:1.5px solid #000;padding:4px 8px;font-size:10.5px;font-weight:800;text-align:left;background:#fff}
.hol-tbl th:last-child{border-right:0}
.hol-tbl td{border-right:1.5px solid #000;padding:4px 8px;vertical-align:top;color:#000}
.hol-tbl td:last-child{border-right:0}
.hol-tbl tr.hol-empty-row td{padding:6px 8px}
.hol-tot-wrap{display:grid;grid-template-columns:1fr 250px;border-top:1.5px solid #000;border-bottom:1.5px solid #000}
.hol-tot-spacer{padding:10px 12px;font-size:10.5px;color:#444;display:flex;align-items:flex-end;border-right:1.5px solid #000}
.hol-tot-boxes{display:flex;flex-direction:column}
.hol-tot-row{display:grid;grid-template-columns:1fr 1fr;border-bottom:1.5px solid #000}
.hol-tot-row>div{padding:4px 8px;text-align:right;border-right:1.5px solid #000}
.hol-tot-row>div:last-child{border-right:0}
.hol-tot-row small{display:block;font-size:9.5px;color:#333}
.hol-tot-row b{font-size:13px;font-weight:700;color:#000}
.hol-liq-box{background:#c4c4c4;padding:5px 10px;text-align:right;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.hol-liq-box small{display:block;font-size:10px;font-weight:700;color:#111}
.hol-liq-box strong{font-size:15px;font-weight:900;color:#000}
.hol-bases>div{text-align:right}
.hol-cut-line{text-align:center;margin:14px 0;font-size:11px;color:#666;letter-spacing:1px}
@media print{
  .hol-sheet{box-shadow:none;max-width:none}
}

/* ---------- Modal Cadastrar Terra / Gleba no Patrimônio ---------- */
.terra-calc-box{background:#f0fdf4;border:1.5px solid #86efac;border-radius:13px;padding:14px 16px}
.terra-tot-inp{border-color:#10b981!important;font-weight:800!important;color:#065f46!important}

/* ---------- Modal Rápido de Lançamentos (Receita / Despesa / A Receber / A Pagar) ---------- */
.lc-modal{max-width:620px;border-radius:18px;overflow:hidden}
.lc-mhd{padding:20px 22px 16px;color:#fff;display:flex;flex-direction:column;gap:16px;transition:background .2s}
.lc-mhd.despesa{background:linear-gradient(135deg,#3b0712 0%,#5f0a1d 60%,#450614 100%)}
.lc-mhd.receita{background:linear-gradient(135deg,#052e1c 0%,#064e32 60%,#042718 100%)}
.lc-mhd.areceber{background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 60%,#172554 100%)}
.lc-mhd.apagar{background:linear-gradient(135deg,#451a03 0%,#78350f 60%,#5c2408 100%)}
.lc-mhd-top{display:flex;align-items:flex-start;gap:13px}
.lc-mhd-ic{width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);display:grid;place-items:center;flex:none}
.lc-mhd-ic .ic{width:20px;height:20px;color:#fda4af}
.lc-mhd.receita .lc-mhd-ic .ic{color:#6ee7b7}
.lc-mhd.areceber .lc-mhd-ic .ic{color:#93c5fd}
.lc-mhd.apagar .lc-mhd-ic .ic{color:#fcd34d}
.lc-mhd-tt{flex:1;min-width:0}
.lc-mhd-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.lc-mhd-tt h3{font-size:20px;font-weight:900;color:#fff;margin:0;letter-spacing:-.01em}
.lc-mhd-badge{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);color:#fff;font-size:10.5px;font-weight:800;padding:3px 9px;border-radius:6px;letter-spacing:.04em}
.lc-mhd-tt p{margin:4px 0 0;font-size:12.5px;color:rgba(255,255,255,.75)}
.lc-mx{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.12);border:0;color:#fff;display:grid;place-items:center;cursor:pointer;flex:none}
.lc-mx:hover{background:rgba(255,255,255,.22)}

.lc-mtabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;background:rgba(0,0,0,.28);padding:5px;border-radius:12px;border:1px solid rgba(255,255,255,.08)}
.lc-mtab{height:36px;border-radius:9px;border:0;background:transparent;color:rgba(255,255,255,.78);font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;transition:all .15s}
.lc-mtab .ic{width:15px;height:15px}
.lc-mtab:hover{color:#fff;background:rgba(255,255,255,.08)}
.lc-mtab[data-modo="despesa"].on{background:#e11d48;color:#fff;box-shadow:0 3px 10px rgba(225,29,72,.4)}
.lc-mtab[data-modo="receita"].on{background:#10b981;color:#fff;box-shadow:0 3px 10px rgba(16,185,129,.4)}
.lc-mtab[data-modo="areceber"].on{background:#2563eb;color:#fff;box-shadow:0 3px 10px rgba(37,99,235,.4)}
.lc-mtab[data-modo="apagar"].on{background:#d97706;color:#fff;box-shadow:0 3px 10px rgba(217,119,6,.4)}

.lc-mbd{padding:18px 22px 20px;display:flex;flex-direction:column;gap:13px;max-height:78vh;overflow-y:auto}
.lc-val-card{border:1.5px solid #10b981;background:#f8fafc;border-radius:14px;padding:12px 16px;transition:box-shadow .15s}
.lc-val-card:focus-within{background:#fff;box-shadow:0 0 0 3px rgba(16,185,129,.16)}
.lc-val-lbl{display:block;font-size:11px;font-weight:800;color:#64748b;letter-spacing:.04em;text-transform:uppercase;margin-bottom:4px}
.lc-val-row{display:flex;align-items:center;gap:8px}
.lc-val-row em{font-style:normal;font-size:24px;font-weight:800;color:#94a3b8}
.lc-val-row input{border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;font-size:28px;font-weight:900;color:#0f172a;width:100%;padding:0}
.lc-val-row input::placeholder{color:#cbd5e1}

.lc-fld{display:flex;flex-direction:column;gap:5px;min-width:0}
.lc-lbl{display:flex;align-items:center;gap:5px;font-size:11.5px;font-weight:800;color:#475569;letter-spacing:.03em;text-transform:uppercase}
.lc-lbl .ic{width:14px;height:14px;color:#64748b}
.lc-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:end}
.lc-venc-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:8px 10px}

.lc-sug-bar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:4px}
.lc-sug-tt{font-size:11px;font-weight:800;color:#64748b;margin-right:2px}
.lc-sug-chip{border:1px solid #e2e8f0;background:#f1f5f9;color:#334155;font-size:11.5px;font-weight:600;padding:4px 10px;border-radius:7px;cursor:pointer;transition:all .12s}
.lc-sug-chip:hover{background:#e0f2fe;border-color:#7dd3fc;color:#0369a1}

.lc-mft{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:12px;margin-top:4px;border-top:1px solid var(--line);flex-wrap:wrap}
.lc-tbl-link{font-size:12px;font-weight:700;color:#0f766e;text-decoration:none}
.lc-tbl-link:hover{text-decoration:underline}
.lc-mft-btns{display:flex;align-items:center;gap:8px;margin-left:auto}
.btn.lc-btn-more{background:#ecfdf5;border:1.5px solid #6ee7b7;color:#047857;font-weight:800}
.btn.lc-btn-more:hover{background:#d1fae5}

@media (max-width:640px){
  .lc-mtabs,.lc-grid-2{grid-template-columns:1fr 1fr}
  .lc-grid-2{grid-template-columns:1fr}
}

/* Placa Mercosul & Modal Veículos (CRLV) */
.placa-mercosul{display:inline-flex;flex-direction:column;width:104px;border:2px solid #0f172a;border-radius:6px;overflow:hidden;background:#fff;box-shadow:0 2px 5px rgba(15,23,42,.12);vertical-align:middle;user-select:all}
.placa-mercosul .placa-top{background:#003399;color:#fff;font-size:7.5px;font-weight:900;letter-spacing:.14em;text-align:center;padding:1.5px 4px;line-height:1.1}
.placa-mercosul .placa-num{font-family:'Inter',monospace;font-size:13.5px;font-weight:900;letter-spacing:.08em;color:#0f172a;text-align:center;padding:3px 4px;line-height:1.15}
.veic-sec-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:12px}
.veic-sec-hd{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:10px;border-bottom:1px solid #e2e8f0;flex-wrap:wrap}
.veic-sec-hd .ic{width:20px;height:20px;color:#0d5c2b}
.veic-crlv-upload{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:1.5px dashed #cbd5e1;border-radius:10px;padding:10px 14px;flex-wrap:wrap}
.veic-crlv-card{background:linear-gradient(135deg,#f0fdf4 0%,#f8fafc 100%);border:1.5px solid #86efac;border-radius:14px;padding:16px}
.lt-grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
@media (max-width:720px){.lt-grid-4{grid-template-columns:1fr 1fr}}

/* Checkout Transparente Mercado Pago (Cartão Interativo, PIX e Boleto na mesma tela) */
.mp-transp-box{background:#f8fafc;border:1.5px solid #cbd5e1;border-radius:14px;padding:16px}
.mp-pix-ic{width:48px;height:48px;border-radius:12px;background:#e0f2fe;color:#0284c7;display:grid;place-items:center;flex:none}
.mp-pix-ic .ic{width:26px;height:26px}
.mp-card-grid{display:grid;grid-template-columns:1.35fr 1fr;gap:18px;align-items:center}
.mp-brand-pill{background:#0d5c2b;color:#fff;font-size:10px;font-weight:900;padding:3px 8px;border-radius:6px;letter-spacing:.06em;margin-right:6px}
.mp-card-visual{background:linear-gradient(135deg,#06311a 0%,#0d5c2b 55%,#15803d 100%);color:#fff;border-radius:16px;padding:20px;min-height:185px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 12px 26px rgba(6,49,26,.28);position:relative;overflow:hidden}
.mp-cv-top{display:flex;justify-content:space-between;align-items:center}
.mp-cv-chip{width:40px;height:28px;border-radius:6px;background:linear-gradient(135deg,#fde047 0%,#ca8a04 100%);display:inline-block;box-shadow:inset 0 0 0 1px rgba(0,0,0,.2)}
.mp-cv-brand{font-size:13px;font-weight:900;letter-spacing:.1em;background:rgba(255,255,255,.16);padding:4px 10px;border-radius:8px}
.mp-cv-num{font-family:monospace;font-size:19px;font-weight:800;letter-spacing:.12em;margin:18px 0 14px;text-shadow:0 2px 4px rgba(0,0,0,.3)}
.mp-cv-bot{display:flex;justify-content:space-between;align-items:flex-end;gap:10px}
.mp-cv-bot small{display:block;font-size:9.5px;opacity:.75;letter-spacing:.08em;margin-bottom:2px}
.mp-cv-bot b{font-size:12.5px;letter-spacing:.05em}
@media (max-width:860px){.mp-card-grid{grid-template-columns:1fr}}
