/* styles.css */
:root{
  --green-950:#032916; --green-900:#07391f; --green-850:#0b4728; --green-800:#0c512d; --green-700:#166534; --green-600:#208248; --green-500:#37a65b; --green-100:#e9f7ec; --green-50:#f4fbf5;
  --orange:#c97917; --orange-100:#fff3df; --blue:#1f6fd2; --blue-100:#eaf3ff;
  --red:#d14a4a; --red-100:#ffecec; --yellow:#f4b73d; --yellow-100:#fff7df;
  --ink:#101827; --muted:#667085; --line:#e7ece9; --panel:#ffffff; --bg:#f7faf7; --shadow:0 18px 45px rgba(10,35,20,.08); --shadow-soft:0 8px 24px rgba(10,35,20,.06);
  --radius:22px; --radius-sm:14px; --sidebar:302px;
}
*{box-sizing:border-box} html,body,#app{height:100%} body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink)}
button,input,select,textarea{font:inherit} button{cursor:pointer} .hidden{display:none!important}
.login-page{min-height:100%;display:grid;grid-template-columns:1fr 1.05fr;background:linear-gradient(135deg,#f7fbf5 0%,#eaf5ed 100%)}
.login-hero{position:relative;padding:58px;overflow:hidden;background:radial-gradient(circle at 20% 20%,rgba(89,180,104,.35),transparent 35%),linear-gradient(145deg,var(--green-950),#052014);color:white;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}
.brand{display:flex;align-items:center;gap:12px;font-weight:900;font-size:26px;letter-spacing:-.04em}.brand-logo-block{display:block;width:100%;max-width:240px}.brand-logo-img{display:block;width:100%;height:auto;max-width:240px;object-fit:contain}.leaf-logo{width:44px;height:44px;border-radius:14px;background:linear-gradient(135deg,#7fca5b,#248f49);display:grid;place-items:center;box-shadow:0 16px 35px rgba(0,0,0,.25)}.leaf-logo:before{content:'🌿';font-size:25px}.brand span{color:#8ed268}
.hero-copy h1{font-size:56px;line-height:1.02;margin:0 0 18px;letter-spacing:-.065em}.hero-copy p{font-size:18px;line-height:1.7;color:#d6eadb;max-width:570px}.hero-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:32px}.glass{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:18px;backdrop-filter:blur(18px)}.glass strong{font-size:24px;display:block}.glass small{color:#c9e5cf}.produce-art{position:absolute;left:-20px;bottom:-40px;width:360px;height:220px;border-radius:50%;background:radial-gradient(circle,#7ab64e 0 10%,transparent 11%),radial-gradient(circle at 60% 55%,#d64236 0 8%,transparent 9%),radial-gradient(circle at 30% 70%,#e48b2b 0 8%,transparent 9%);opacity:.35;filter:blur(.5px)}
.login-card-wrap{display:flex;align-items:center;justify-content:center;padding:45px}.login-card{width:min(520px,100%);background:white;border:1px solid var(--line);border-radius:32px;padding:36px;box-shadow:var(--shadow)}.login-card h2{font-size:34px;margin:0 0 8px;letter-spacing:-.045em}.login-card p{color:var(--muted);line-height:1.6;margin:0 0 28px}.field{display:flex;flex-direction:column;gap:8px;margin:14px 0}.field label{font-size:13px;font-weight:800;color:#34423a}.field input,.field select,.field textarea{border:1px solid var(--line);border-radius:16px;padding:14px 15px;background:#fbfdfb;outline:none;transition:.15s}.field input:focus,.field select:focus,.field textarea:focus{border-color:#7cc087;box-shadow:0 0 0 4px rgba(55,166,91,.12)}.btn{border:0;border-radius:16px;padding:13px 16px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:10px;transition:.18s}.btn-primary{background:linear-gradient(135deg,var(--green-900),var(--green-600));color:white;box-shadow:0 16px 28px rgba(22,101,52,.22)}.btn-primary:hover{transform:translateY(-1px)}.btn-soft{background:var(--green-100);color:var(--green-800);border:1px solid #d2ebd8}.btn-ghost{background:white;border:1px solid var(--line);color:#34423a}.btn-danger{background:var(--red-100);color:#a43030;border:1px solid #ffd3d3}.login-demo{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}.notice{margin-top:18px;background:#fff9e9;border:1px solid #ffe3a6;color:#7a5015;padding:12px 14px;border-radius:16px;font-size:13px;line-height:1.5}
.shell{min-height:100%;display:grid;grid-template-columns:var(--sidebar) 1fr}.sidebar{background:linear-gradient(180deg,#07391f,#032916);color:white;padding:28px 20px;position:sticky;top:0;height:100vh;overflow:hidden}.sidebar .brand{margin-bottom:28px;justify-content:center}.sidebar .brand-logo-block{max-width:228px}.sidebar .brand-logo-img{border-radius:18px}.nav{display:flex;flex-direction:column;gap:8px}.nav-btn{width:100%;display:flex;align-items:center;gap:13px;border:0;border-radius:14px;background:transparent;color:#e7f2ea;padding:14px 14px;font-weight:800;text-align:left}.nav-btn.active,.nav-btn:hover{background:rgba(108,185,84,.25)}.nav-icon{width:22px;text-align:center}.side-foot{position:absolute;left:20px;right:20px;bottom:22px;color:#aac7b1;font-size:12px}.side-art{height:150px;border-radius:24px;margin-bottom:16px;background:radial-gradient(circle at 25% 55%,#a2c85b 0 16%,transparent 17%),radial-gradient(circle at 52% 58%,#d64a39 0 12%,transparent 13%),radial-gradient(circle at 70% 45%,#5d9f4c 0 18%,transparent 19%),linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.02));opacity:.8}
.main{min-width:0}.topbar{height:76px;background:rgba(255,255,255,.8);backdrop-filter:blur(14px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:10}.hamb{width:42px;height:42px;border-radius:50%;border:1px solid var(--line);background:white}.top-right{display:flex;align-items:center;gap:18px;color:#34423a}.notif{position:relative;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);display:grid;place-items:center;background:white}.badge-dot{position:absolute;right:-2px;top:-2px;background:#28a955;color:white;font-size:11px;font-weight:900;border-radius:20px;padding:3px 6px}.user-chip{display:flex;align-items:center;gap:10px}.avatar{width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#cdecc7,#4b9462);display:grid;place-items:center;font-weight:900;color:var(--green-950)}.user-chip strong{display:block}.user-chip small{color:var(--muted)}
.content{padding:28px;max-width:1540px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.title-row{display:flex;gap:18px;align-items:center}.title-icon{width:64px;height:64px;border-radius:18px;background:var(--green-100);display:grid;place-items:center;font-size:28px}.page-head h1{margin:0;font-size:34px;letter-spacing:-.055em}.page-head p{margin:8px 0 0;color:var(--muted)}.filters{display:flex;flex-direction:column;gap:12px;align-items:flex-end}.pill-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.pill{border:1px solid var(--line);background:white;border-radius:13px;padding:11px 16px;font-weight:800;color:#34423a}.pill.active{background:var(--green-900);color:white;border-color:var(--green-900)}.sector-pill{background:var(--green-100);color:var(--green-800);border-color:#d7ecd8}.sector-pill.orange{background:var(--orange-100);color:var(--orange);border-color:#ffe0b4}.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-soft)}.kpi{padding:22px;display:flex;gap:18px;align-items:center}.kpi-icon{width:62px;height:62px;border-radius:50%;background:var(--green-100);display:grid;place-items:center;font-size:28px}.kpi-icon.blue{background:var(--blue-100);color:var(--blue)}.kpi-icon.yellow{background:var(--yellow-100);color:#b97800}.kpi h3{font-size:14px;margin:0 0 8px}.kpi strong{font-size:26px;letter-spacing:-.04em;color:var(--green-800)}.kpi small{color:#14964a;font-weight:700}.finance-note{margin:10px 0 18px;color:#69776e;font-size:13px}.layout-2{display:grid;grid-template-columns:1fr .95fr;gap:16px;margin-top:16px}.panel{padding:18px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.panel h2{font-size:18px;margin:0;letter-spacing:-.02em}.chart{height:270px;display:flex;align-items:end;gap:28px;padding:24px 14px 18px;border-top:1px dashed var(--line);position:relative}.bar-wrap{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px}.bar{width:100%;max-width:54px;border-radius:8px 8px 0 0;background:linear-gradient(180deg,#74bf72,#c9ebca);position:relative}.bar.dark{background:linear-gradient(180deg,#17743a,#8fd18b)}.bar span{position:absolute;top:-24px;left:50%;transform:translateX(-50%);font-size:12px;font-weight:800;white-space:nowrap}.bar-label{font-size:12px;text-align:center;color:#667085;line-height:1.25}.table{width:100%;border-collapse:collapse}.table th{font-size:12px;text-align:left;color:#69776e;padding:12px;border-bottom:1px solid var(--line)}.table td{padding:13px 12px;border-bottom:1px solid var(--line);font-size:14px}.tag{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:800;background:var(--green-100);color:var(--green-800)}.tag.blue{background:var(--blue-100);color:var(--blue)}.tag.orange{background:var(--orange-100);color:var(--orange)}.tag.red{background:var(--red-100);color:var(--red)}.initial{width:28px;height:28px;border-radius:50%;display:inline-grid;place-items:center;background:#f5e7ef;color:#a33e68;font-weight:900;margin-right:8px}.wide{margin-top:16px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.form-card{padding:22px}.toggle{display:flex;background:#f1f6f1;border:1px solid var(--line);border-radius:16px;padding:5px;gap:6px}.toggle button{flex:1;border:0;border-radius:12px;background:transparent;padding:12px;font-weight:900;color:#54615a}.toggle button.active{background:white;color:var(--green-800);box-shadow:var(--shadow-soft)}.chips{display:flex;flex-wrap:wrap;gap:9px}.chip{border:1px solid var(--line);background:white;border-radius:999px;padding:10px 13px;font-weight:800;color:#34423a}.chip.selected{background:var(--green-100);border-color:#a6d7aa;color:var(--green-800)}.summary-box{background:#f7fbf7;border:1px solid var(--line);border-radius:18px;padding:16px;line-height:1.8}.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}.request-item{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:16px;margin:10px 0;background:#fff}.tv-mode .shell{display:block}.tv-mode .sidebar,.tv-mode .topbar{display:none}.tv-mode .content{max-width:none;padding:28px;background:#061f13;color:white;min-height:100vh}.tv-mode .card{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.1);color:white}.tv-mode .page-head h1,.tv-mode .kpi strong{color:white}.tv-mode .page-head p,.tv-mode .table th,.tv-mode .table td{color:#d4e9db}.tv-mode .table td,.tv-mode .table th{border-color:rgba(255,255,255,.12)}.tv-mode .chart{height:330px}.tv-mode .kpi{min-height:145px}.tv-mode .kpi h3{font-size:20px}.tv-mode .kpi strong{font-size:42px}.tv-mode .layout-2{grid-template-columns:1.1fr .9fr}.mobile-only{display:none}.product-emoji{font-size:18px;margin-right:8px}.mobile-shell{display:none}.mobile-topbar{display:none}.mobile-brand{display:flex;align-items:center;gap:12px;min-width:0}.mobile-brand-logo{width:42px;height:42px;object-fit:contain;border-radius:12px;display:block}.mobile-brand-copy{display:flex;flex-direction:column;min-width:0}.mobile-brand-copy strong{font-size:14px;line-height:1.1;color:#0c1d15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-brand-copy small{font-size:12px;color:#667085;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-user-pill .avatar{width:38px;height:38px;box-shadow:none}
@media (max-width:1100px){:root{--sidebar:88px}.sidebar{padding:20px 12px}.sidebar .brand div:not(.leaf-logo),.nav-btn span:not(.nav-icon),.side-foot{display:none}.nav-btn{justify-content:center}.grid-4{grid-template-columns:repeat(2,1fr)}.layout-2{grid-template-columns:1fr}.page-head{flex-direction:column}.filters{align-items:flex-start}.login-page{grid-template-columns:1fr}.login-hero{min-height:auto}.hero-copy h1{font-size:40px}}
@media (max-width:720px){.shell{display:block}.sidebar,.topbar{display:none}.mobile-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;z-index:22;padding:12px 14px;background:rgba(248,251,249,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.content{padding:16px 14px 92px}.mobile-shell{display:flex;position:fixed;left:10px;right:10px;bottom:10px;background:white;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);z-index:20;justify-content:space-around;padding:8px}.mobile-shell button{border:0;background:transparent;color:#5c695f;font-weight:800;font-size:11px;padding:8px;display:flex;flex-direction:column;gap:4px;align-items:center}.mobile-shell button.active{color:var(--green-800)}.page-head h1{font-size:28px}.title-icon{width:52px;height:52px}.grid-4{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.layout-2{gap:12px}.chart{gap:8px;height:220px}.bar span{display:none}.hero-cards{grid-template-columns:1fr}.login-hero{padding:34px}.login-card-wrap{padding:24px}.login-card{padding:24px;border-radius:24px}.login-demo{grid-template-columns:1fr}.table-wrap{overflow-x:auto}.kpi strong{font-size:23px}.actions{flex-direction:column}.actions .btn{width:100%}}
@media print{.sidebar,.topbar,.mobile-shell,.actions,.btn{display:none!important}.shell{display:block}.content{padding:0}.card{box-shadow:none}}

/* Atualização: histórico separado por colaborador e unidades */
.history-list{display:flex;flex-direction:column;gap:10px}
.history-card{display:grid;grid-template-columns:1.35fr 1fr .8fr auto;gap:14px;align-items:center;border:1px solid var(--line);border-radius:18px;background:#fff;padding:14px 16px;box-shadow:0 6px 18px rgba(10,35,20,.035)}
.history-date{font-size:12px;color:var(--muted);font-weight:800;margin-bottom:5px}.history-product{font-weight:900;color:#1c2736}.history-meta{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.history-person{display:flex;align-items:center;gap:8px;font-weight:900}.history-qty small{display:block;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.02em}.history-qty strong{display:block;font-size:18px;color:var(--green-800);letter-spacing:-.02em}.history-qty em{display:block;font-style:normal;color:var(--muted);font-size:12px;margin-top:3px}.collab-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px}.collab-tools .btn{padding:9px 12px;border-radius:12px}.collab-tools small{font-weight:800;color:var(--muted)}.preview-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0}.preview-person{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;background:white;border:1px solid var(--line);border-radius:12px}.preview-person span{font-size:12px;font-weight:800}.preview-person b{white-space:nowrap;color:var(--green-800)}
.tv-mode .history-card{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.12);color:white}.tv-mode .history-date,.tv-mode .history-qty small,.tv-mode .history-qty em{color:#d4e9db}.tv-mode .history-product,.tv-mode .history-qty strong{color:white}
@media (max-width:720px){.history-card{grid-template-columns:1fr;gap:12px;padding:14px}.history-qty{padding:12px;background:var(--green-50);border:1px solid var(--line);border-radius:14px}.history-status{justify-self:start}.preview-list{grid-template-columns:1fr}.collab-tools .btn{flex:1}.chips{max-height:360px;overflow:auto;padding-right:2px}.chip{padding:11px 12px}}


/* Capricho extra do dashboard */
.rank-table td{vertical-align:middle}
.name-cell{display:flex;align-items:center;gap:10px;min-width:0}
.person-name{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px;font-weight:800;color:#1c2736}
.qty-col{text-align:right;white-space:nowrap}
.rank-badge{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:10px;background:var(--green-100);color:var(--green-800);font-weight:900}
.history-person b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:220px}
.history-main{min-width:0}
.history-product{display:flex;align-items:center;gap:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chart .bar span{font-size:11px}
.kpi strong,.history-qty strong{font-variant-numeric:tabular-nums}
@media (max-width:720px){
  .person-name{max-width:140px}
  .rank-table td,.rank-table th{padding:10px 8px}
}


.panel-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mini-toggle{display:flex;align-items:center;gap:8px;background:#f1f6f1;border:1px solid var(--line);border-radius:14px;padding:4px}
.mini-pill{border:0;background:transparent;padding:10px 14px;border-radius:10px;font-weight:800;color:#44514a}
.mini-pill.active{background:var(--green-900);color:#fff}
.panel-toolbar input[type='date'], .panel-toolbar input[type='month']{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff;font-weight:700;color:#34423a}
.sheet-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.prod-sheet{background:#fff;border:1px solid #222;border-radius:10px;padding:0;overflow:hidden}
.prod-sheet-head,.prod-sheet-name,.prod-sheet-sign{padding:8px 10px;font-size:13px}
.prod-sheet-head{border-bottom:1px solid #222}
.prod-sheet-name{border-bottom:1px solid #222;font-size:14px}
.prod-sheet-table{width:100%;border-collapse:collapse}
.prod-sheet-table td{border-bottom:1px solid #222;border-right:1px solid #222;padding:5px 6px;font-size:11px;line-height:1.1}
.prod-sheet-table td:last-child{width:90px;border-right:0;text-align:center;font-weight:800;white-space:nowrap}
.prod-sheet-sign{font-size:12px}
.empty-sheet{padding:20px;border:1px dashed var(--line);border-radius:16px;color:#667085;background:#fbfdfb}
@media (max-width:1200px){.sheet-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:720px){.panel-toolbar{align-items:flex-start}.sheet-grid{grid-template-columns:1fr}.prod-sheet-table td{font-size:12px}}
@media print{.sheet-grid{grid-template-columns:repeat(4,1fr);gap:8px}.prod-sheet{break-inside:avoid;box-shadow:none}.panel-toolbar,.filters,.kpi,.layout-2 .card:nth-child(2),.wide:last-child,.sidebar,.topbar,.mobile-shell{display:none!important}.content{padding:0}.card{border:0;box-shadow:none}.wide{margin-top:0}}


/* Filtros e edição do histórico */
.history-head{align-items:flex-start;gap:14px}
.history-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.history-tools label{display:flex;align-items:center;gap:7px;font-weight:900;color:#34423a;font-size:13px}
.history-tools select{border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 12px;font-weight:800;color:#34423a;min-width:180px;max-width:240px}
.history-status{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.btn-mini{padding:8px 11px;border-radius:12px;font-size:12px}
@media (max-width:720px){.history-head{flex-direction:column}.history-tools{justify-content:flex-start;width:100%}.history-tools label,.history-tools select,.history-tools .btn{width:100%}.history-status{justify-content:flex-start}}

.eye-toggle{background:#fff;border:1px solid var(--line);border-radius:12px;padding:9px 12px;cursor:pointer;user-select:none}
.eye-toggle input{accent-color:var(--green-800)}
.eye-toggle span{font-size:16px}
.history-limit-note{margin:0 0 12px;padding:11px 14px;border-radius:14px;background:var(--green-50);border:1px solid var(--line);color:#34423a;font-weight:800;font-size:13px}
@media (max-width:720px){.eye-toggle{justify-content:center}}


/* Versão consolidada Netlify: trava visual para não parecer que perdeu CSS */
html{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{font-size:16px}
.history-card{font-size:16px}
.history-product,.history-person b{font-size:18px}
.history-qty strong{font-size:20px}
.history-date,.history-qty small,.history-qty em{font-size:14px}
.history-status{display:flex;align-items:center;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.history-head{gap:14px;align-items:flex-start}
.history-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.history-toolbar input,.history-toolbar select{border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff;font-weight:700;color:#34423a}
.history-limit-note{background:#f7fbf7;border:1px dashed var(--line);border-radius:14px;padding:12px 14px;margin-bottom:12px;color:#667085;font-weight:700}
@media (max-width:720px){
  html{font-size:15px}
  .history-card{font-size:15px}
  .history-product,.history-person b{font-size:17px}
  .history-qty strong{font-size:19px}
  .history-status{justify-content:flex-start}
  .history-toolbar{justify-content:flex-start;width:100%}
  .history-toolbar input,.history-toolbar select{width:100%}
}


/* Versão v7 profissional */
.status-flow{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-weight:900;color:#064322}
.status-flow span{background:var(--green-100);padding:8px 12px;border-radius:999px}
.tag.orange{background:var(--orange-100);color:var(--orange)}
.tag.red{background:var(--red-100);color:var(--red)}
.row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.btn-mini{padding:8px 11px;border-radius:12px;font-size:12px}
.empty-sheet{padding:20px;border:1px dashed var(--line);border-radius:16px;color:#667085;background:#fbfdfb}
@media print{
  .sidebar,.topbar,.mobile-shell,.filters,.btn,.row-actions,.panel-toolbar,.history-head .history-toolbar{display:none!important}
  .shell{display:block!important}
  .content{padding:0!important;max-width:none!important}
  .card{box-shadow:none!important;border:0!important}
  .sheet-grid{grid-template-columns:repeat(4,1fr)!important;gap:8px!important}
  .prod-sheet{break-inside:avoid;page-break-inside:avoid}
}

/* Organização do menu por blocos */
.nav-section{
  margin:18px 12px 6px;
  color:#9fc7a9;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.muted-action{color:#667085;font-weight:800;font-size:12px;white-space:nowrap}
@media (max-width:1100px){.nav-section{display:none}}


/* Correção do menu lateral: evita rodapé/desenho sobre os botões inferiores */
.sidebar{
  display:flex !important;
  flex-direction:column !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
}
.sidebar .brand{
  flex:0 0 auto !important;
}
.nav{
  flex:1 1 auto !important;
  overflow:visible !important;
  padding-bottom:18px !important;
}
.side-foot{
  position:static !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  margin-top:18px !important;
  padding-top:12px !important;
  flex:0 0 auto !important;
  border-top:1px solid rgba(255,255,255,.08);
}
.side-art{
  display:none !important;
}
@media (max-height:760px){
  .sidebar{padding-top:18px !important;padding-bottom:14px !important}
  .sidebar .brand{margin-bottom:18px !important}
  .nav-btn{padding-top:11px !important;padding-bottom:11px !important}
  .nav-section{margin-top:12px !important}
}


/* Dashboard profissional v8 - somente tela Dashboard */
.dash-head{
  display:grid;
  grid-template-columns:minmax(260px,1fr) minmax(420px,720px);
  gap:24px;
  align-items:start;
  margin-bottom:22px;
}
.dash-head .page-head{
  margin-bottom:0;
}
.dash-head .page-head h1{
  color:#062414;
  font-size:38px;
}
.dash-head .page-head p{
  font-size:15px;
}
.dash-filter-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:18px;
  box-shadow:var(--shadow-soft);
}
.dash-filter-top{
  display:flex;
  justify-content:flex-end;
  color:#667085;
  font-size:12px;
  font-weight:700;
  margin-bottom:8px;
}
.dash-filter-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}
.dash-filter-grid label{
  display:block;
  font-size:13px;
  font-weight:900;
  color:#1f2a37;
  margin-bottom:10px;
}
.dash-filter-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.dash-filter-card .pill{
  padding:10px 14px;
  border-radius:12px;
  font-size:14px;
}
.dashboard-kpis{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-bottom:16px;
}
.dash-kpi-card{
  width:100%;
  min-height:126px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow-soft);
  padding:20px;
  display:flex;
  align-items:center;
  gap:18px;
  text-align:left;
  cursor:default;
}
.dash-kpi-card span{
  display:block;
  color:#1f2a37;
  font-weight:800;
  font-size:14px;
  margin-bottom:8px;
}
.dash-kpi-card strong{
  display:block;
  color:var(--green-900);
  font-size:30px;
  line-height:1;
  letter-spacing:-.04em;
  font-weight:900;
}
.dash-kpi-card em{
  display:block;
  font-style:normal;
  color:#667085;
  margin-top:8px;
  font-size:12px;
}
.dash-icon{
  width:64px;
  height:64px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--green-100);
  font-size:28px;
  flex:0 0 auto;
}
.dash-icon.money{background:#e8f8ed}
.dash-icon.people{background:#eef8f0}
.dash-icon.absent{background:#ffecec}
.faltas-card strong{color:#c62828}
.trend{
  display:inline-flex!important;
  align-items:center;
  gap:5px;
  margin-top:10px;
  font-size:12px!important;
  font-weight:900!important;
}
.trend.up{color:#0b8f46}
.trend.down{color:#c62828}
.dashboard-main-row{
  align-items:stretch;
}
.dashboard-bottom-row{
  display:grid;
  grid-template-columns:1.6fr .85fr;
  gap:16px;
  margin-top:16px;
}
.absents-panel{
  border-color:#ffd4d4;
  background:linear-gradient(180deg,#fff,#fffafa);
}
.absent-total{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin:18px 0;
  color:#c62828;
}
.absent-total strong{
  font-size:42px;
  line-height:1;
}
.absent-total span{
  font-weight:900;
}
.absent-person{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 0;
  border-top:1px solid #f1e2e2;
}
.absent-person b{
  display:block;
}
.absent-person small{
  color:#667085;
  display:block;
  margin-top:2px;
}
.compact-table td,.compact-table th{
  white-space:nowrap;
}
@media (max-width:1200px){
  .dash-head{grid-template-columns:1fr}
  .dash-filter-grid{grid-template-columns:1fr}
  .dashboard-kpis{grid-template-columns:repeat(2,1fr)}
  .dashboard-bottom-row{grid-template-columns:1fr}
}
@media (max-width:720px){
  .dash-head .page-head h1{font-size:30px}
  .dashboard-kpis{grid-template-columns:1fr}
  .dash-kpi-card{min-height:112px}
  .dash-kpi-card strong{font-size:26px}
}


/* Dashboard: filtro de período estilo viagem/passagem */
.travel-filter{
  padding:20px !important;
}
.travel-filter-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:22px;
  align-items:start;
}
.travel-date-box,
.travel-sector-box{
  min-width:0;
}
.travel-date-box label,
.travel-sector-box label{
  display:block;
  font-size:13px;
  font-weight:900;
  color:#1f2a37;
  margin-bottom:10px;
}
.travel-date-row{
  display:grid;
  grid-template-columns:minmax(150px,1fr) 34px minmax(150px,1fr);
  align-items:center;
  gap:10px;
}
.date-field{
  background:#fbfdfb;
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px 12px;
  transition:.15s;
}
.date-field:focus-within{
  border-color:#7cc087;
  box-shadow:0 0 0 4px rgba(55,166,91,.10);
  background:#fff;
}
.date-field small{
  display:block;
  color:#667085;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:4px;
}
.date-field input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  font-size:15px;
  font-weight:900;
  color:#0f2417;
  padding:0;
}
.travel-arrow{
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--green-100);
  color:var(--green-900);
  display:grid;
  place-items:center;
  font-weight:900;
}
.quick-periods{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.quick-period{
  border:1px solid var(--line);
  background:white;
  color:#34423a;
  border-radius:999px;
  padding:9px 13px;
  font-weight:900;
  font-size:13px;
}
.quick-period.active{
  background:var(--green-900);
  color:white;
  border-color:var(--green-900);
}
.range-caption{
  margin-top:11px;
  color:#667085;
  font-size:12px;
  font-weight:700;
}
.range-caption b{
  color:#0b4728;
}
.sector-select-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.sector-card{
  min-height:52px;
  border:1px solid var(--line);
  background:white;
  border-radius:16px;
  display:flex;
  align-items:center;
  gap:9px;
  justify-content:center;
  padding:10px 12px;
  color:#064322;
  font-size:14px;
}
.sector-card span{
  font-size:18px;
}
.sector-card b{
  font-weight:900;
}
.sector-card.active{
  background:var(--green-900);
  border-color:var(--green-900);
  color:white;
  box-shadow:0 10px 24px rgba(7,57,31,.16);
}
.sector-card.orange{
  color:#c97917;
  border-color:#ffe0b4;
  background:#fff7ec;
}
.sector-card.orange.active{
  background:#c97917;
  color:#fff;
  border-color:#c97917;
}
@media (max-width:1200px){
  .travel-filter-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .travel-date-row{grid-template-columns:1fr}
  .travel-arrow{display:none}
  .sector-select-row{grid-template-columns:1fr}
}


/* Dashboard - filtro refinado estilo passagem + select profissional */
.compact-filter{padding:20px !important}
.airport-grid{grid-template-columns:1.15fr .85fr;align-items:end}
.range-display-card{background:#071a30;color:#fff;border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:16px 18px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.03)}
.range-display-main{font-size:28px;font-weight:900;letter-spacing:-.03em;line-height:1.1}
.range-display-sub{margin-top:6px;color:#b8c4d6;font-size:12px;font-weight:700}
.date-inline-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
.date-inline-field{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.date-inline-field small{display:block;color:#667085;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}
.date-inline-field input{width:100%;border:0;outline:0;background:transparent;font-size:14px;font-weight:800;color:#0f2417;padding:0}
.select-wrap{position:relative}
.dashboard-select{width:100%;appearance:none;-webkit-appearance:none;-moz-appearance:none;border:1px solid #0f2d57;background:#071a30;color:#fff;border-radius:16px;padding:16px 44px 16px 16px;font-size:16px;font-weight:800;line-height:1.2;cursor:pointer;box-shadow:0 10px 24px rgba(7,26,48,.10)}
.select-wrap::after{content:'⌄';position:absolute;right:16px;top:50%;transform:translateY(-52%);color:#fff;font-size:18px;font-weight:900;pointer-events:none}
.dashboard-select option{background:#071a30;color:#fff}
.travel-sector-box label,.travel-date-box label{margin-bottom:12px}
@media (max-width:1200px){.airport-grid{grid-template-columns:1fr}.dashboard-select{max-width:none}}
@media (max-width:720px){.range-display-main{font-size:22px}.date-inline-inputs{grid-template-columns:1fr}}


/* Dashboard - filtro profissional compacto */
.pro-filter-card{padding:18px 20px !important;border-radius:24px}
.pro-filter-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.pro-filter-header h3{margin:0;font-size:20px;line-height:1.1;color:#102132}
.pro-filter-header p{margin:6px 0 0;color:#667085;font-size:13px;font-weight:700}
.pro-filter-header p b{color:#0b4728}
.pro-filter-status{display:inline-flex;align-items:center;gap:6px;color:#667085;font-size:12px;font-weight:800;background:#f8fbf8;border:1px solid var(--line);padding:8px 12px;border-radius:999px;white-space:nowrap}
.pro-filter-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(240px,.65fr);gap:18px;align-items:end}
.pro-filter-group label{display:block;margin-bottom:10px;font-size:13px;font-weight:900;color:#1f2a37}
.pro-date-grid{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:end}
.pro-date-field{background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px 12px;min-width:0}
.pro-date-field:focus-within,.pro-select-wrap:focus-within{border-color:#7cc087;box-shadow:0 0 0 4px rgba(55,166,91,.10)}
.pro-date-field small{display:block;color:#667085;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;margin-bottom:5px}
.pro-date-field input{width:100%;border:0;outline:0;background:transparent;color:#102132;font-size:15px;font-weight:800;padding:0}
.pro-date-separator{font-size:13px;font-weight:900;color:#667085;padding:0 2px 12px}
.pro-quick-periods{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.pro-quick-periods .quick-period{padding:8px 12px;font-size:13px}
.pro-select-wrap{border-radius:16px}
.pro-dashboard-select{background:#fff !important;color:#102132 !important;border:1px solid var(--line) !important;box-shadow:none !important;padding:15px 42px 15px 14px !important;font-size:15px !important;font-weight:800 !important}
.pro-dashboard-select option{background:#fff;color:#102132}
.pro-select-wrap::after{color:#344054 !important}
@media (max-width:1200px){.pro-filter-grid{grid-template-columns:1fr}.sector-group{max-width:none}.pro-filter-header{align-items:flex-start;flex-direction:column}}
@media (max-width:720px){.pro-filter-card{padding:16px !important}.pro-date-grid{grid-template-columns:1fr}.pro-date-separator{padding:0;justify-self:start}.pro-filter-header h3{font-size:18px}}


/* Dashboard - barra executiva compacta */
.executive-filter-bar{padding:14px 18px !important;border-radius:22px}
.exec-filter-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,.8fr) auto;gap:16px;align-items:end}
.exec-filter-group label{display:block;margin-bottom:8px;font-size:13px;font-weight:900;color:#1f2a37}
.exec-period-fields{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:end}
.exec-date-field{background:#fff;border:1px solid var(--line);border-radius:14px;padding:9px 12px;min-width:0}
.exec-date-field:focus-within,.exec-select-wrap:focus-within{border-color:#7cc087;box-shadow:0 0 0 4px rgba(55,166,91,.10)}
.exec-date-field small{display:block;color:#667085;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;margin-bottom:4px}
.exec-date-field input{width:100%;border:0;outline:0;background:transparent;color:#102132;font-size:14px;font-weight:800;padding:0}
.exec-sep{align-self:center;color:#667085;font-size:12px;font-weight:900;padding-top:18px}
.exec-period-summary{margin-top:8px;color:#667085;font-size:12px;font-weight:700}
.exec-period-summary b{color:#0b4728}
.exec-dashboard-select{background:#fff !important;color:#102132 !important;border:1px solid var(--line) !important;box-shadow:none !important;border-radius:14px !important;padding:14px 42px 14px 14px !important;font-size:14px !important;font-weight:800 !important}
.exec-dashboard-select option{background:#fff;color:#102132}
.exec-select-wrap::after{color:#344054 !important}
.exec-filter-meta{align-self:start;justify-self:end;display:inline-flex;align-items:center;gap:6px;color:#667085;font-size:12px;font-weight:800;background:#f8fbf8;border:1px solid var(--line);padding:8px 12px;border-radius:999px;white-space:nowrap}
@media (max-width:1200px){.exec-filter-row{grid-template-columns:1fr 1fr}.exec-filter-meta{grid-column:1 / -1;justify-self:start;align-self:center}}
@media (max-width:720px){.executive-filter-bar{padding:14px !important}.exec-filter-row{grid-template-columns:1fr}.exec-period-fields{grid-template-columns:1fr}.exec-sep{padding-top:0;align-self:start}.exec-filter-meta{justify-self:start}}


/* Dashboard v13 - ajustes finais profissionais */
.dashboard-header-stack{display:flex;flex-direction:column;gap:14px;margin-bottom:16px}
.dashboard-header-stack .page-head{margin-bottom:0}
.dashboard-header-stack .page-head p{font-size:14px;color:#5c6678}
.executive-filter-bar.compact-bar{padding:14px 16px !important;border-radius:20px}
.compact-row{grid-template-columns:minmax(0,1.45fr) minmax(240px,.75fr) auto !important;gap:14px !important;align-items:end}
.compact-period-fields{grid-template-columns:minmax(170px,220px) auto minmax(170px,220px) !important;gap:8px !important}
.exec-date-field{padding:8px 12px !important;min-height:60px}
.exec-date-field small{font-size:10px !important;margin-bottom:3px !important}
.exec-date-field input{font-size:13px !important;font-weight:800 !important;min-width:0}
.exec-date-field input::-webkit-calendar-picker-indicator{opacity:.9}
.exec-period-summary{margin-top:6px !important;font-size:12px !important}
.exec-dashboard-select{padding:13px 38px 13px 14px !important;font-size:14px !important;min-height:60px}
.exec-filter-meta{align-self:start;font-size:12px !important;padding:7px 11px !important}
.dashboard-kpis{margin-top:0}
.faltas-card{border-color:#f2dada;background:linear-gradient(180deg,#fff,#fffdfd)}
.faltas-card strong{color:#b42318 !important}
.faltas-card .dash-icon.absent{background:#f8e9e9;color:#b42318}
.faltas-card .trend.down{color:#b42318}
.single-day-chart{display:grid;grid-template-columns:1.2fr .8fr;gap:24px;align-items:center;min-height:320px;padding:10px 6px 4px}
.single-day-info small{display:block;color:#667085;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em;margin-bottom:10px}
.single-day-info strong{display:block;font-size:26px;line-height:1.15;color:#102132;margin-bottom:8px}
.single-day-info span{display:block;color:#667085;font-size:14px;margin-bottom:16px}
.single-day-value{display:inline-flex;align-items:center;justify-content:center;background:#eff8f0;color:#0b4728;border-radius:18px;padding:14px 18px;font-size:32px;font-weight:900;min-width:170px}
.single-day-visual{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.single-day-track{width:90px;height:230px;border-radius:999px;background:linear-gradient(180deg,#eef5ef,#dceee0);display:flex;align-items:flex-end;padding:8px;box-shadow:inset 0 0 0 1px rgba(11,71,40,.05)}
.single-day-fill{width:100%;border-radius:999px;background:linear-gradient(180deg,#2b914c,#8acb88)}
.single-day-visual b{font-size:20px;color:#0b4728}
@media (max-width:1200px){.compact-row{grid-template-columns:1fr !important}.exec-filter-meta{justify-self:start}.compact-period-fields{grid-template-columns:minmax(170px,1fr) auto minmax(170px,1fr) !important}.single-day-chart{grid-template-columns:1fr;min-height:auto;padding:8px 0}}
@media (max-width:720px){.compact-period-fields{grid-template-columns:1fr !important}.exec-sep{padding-top:0 !important;align-self:start}.exec-dashboard-select,.exec-date-field{min-height:auto}.single-day-track{height:170px;width:80px}.single-day-value{font-size:26px;min-width:140px}}


/* Fichas de Produção - filtros e PDF */
.sheet-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  flex-wrap:wrap;
  margin:8px 0 18px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fbfdfb;
}
.sheet-filter-grid{
  display:grid;
  grid-template-columns:170px 170px minmax(220px,320px);
  gap:12px;
  align-items:end;
}
.sheet-toolbar label{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#344054;
  font-size:12px;
  font-weight:900;
}
.sheet-toolbar input,
.sheet-toolbar select{
  height:44px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:#102132;
  font-size:14px;
  font-weight:800;
  padding:0 12px;
}
.sheet-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.fichas-panel .panel-head{
  margin-bottom:4px;
}
@media (max-width:900px){
  .sheet-toolbar{align-items:stretch}
  .sheet-filter-grid{grid-template-columns:1fr}
  .sheet-actions{width:100%}
  .sheet-actions .btn{flex:1}
}


/* Conferência - colaboradores e conferência em lote */
.review-head{
  align-items:flex-start;
  gap:14px;
}
.review-toolbar{
  display:flex;
  align-items:end;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.review-toolbar label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  font-weight:900;
  color:#344054;
}
.review-toolbar input{
  height:44px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 12px;
  font-weight:800;
  color:#102132;
  background:#fff;
}
.review-toolbar .btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.review-collabs{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:180px;
}
.collab-line{
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:#f6fbf7;
  border:1px solid #e3f1e7;
  border-radius:999px;
  padding:6px 10px;
  font-weight:900;
  color:#102132;
  width:max-content;
  max-width:100%;
}
.collab-line small{
  color:#0b6b35;
  font-weight:900;
  white-space:nowrap;
}
.review-table td{
  vertical-align:middle;
}
@media (max-width:900px){
  .review-head{
    flex-direction:column;
  }
  .review-toolbar{
    justify-content:flex-start;
    width:100%;
  }
}


/* Produtos - edição de setor e valores */
.products-head p{margin:6px 0 0;color:#667085;font-size:13px}
.product-tools{
  display:grid;
  grid-template-columns:220px minmax(300px,1fr) 150px 170px;
  gap:12px;
  align-items:end;
  margin:12px 0 18px;
  padding:14px;
  background:#fbfdfb;
  border:1px solid var(--line);
  border-radius:18px;
}
.product-filter-group label,
.bulk-price-box label{
  display:block;
  margin-bottom:6px;
  font-size:12px;
  font-weight:900;
  color:#344054;
}
.product-filter-group select,
.bulk-price-box input,
.product-sector-edit,
.product-value-edit{
  height:44px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:#102132;
  font-size:14px;
  font-weight:800;
  padding:0 12px;
}
.product-filter-group select{width:100%}
.bulk-price-box div{display:flex;gap:8px}
.bulk-price-box input{min-width:120px;flex:1}
.product-summary-mini{
  height:54px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  padding:9px 12px;
}
.product-summary-mini small{
  display:block;
  color:#667085;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}
.product-summary-mini b{
  display:block;
  margin-top:4px;
  color:#0b4728;
  font-size:16px;
}
.products-table td{vertical-align:middle}
.product-sector-edit{min-width:150px}
.price-edit{
  display:flex;
  align-items:center;
  gap:8px;
  max-width:150px;
}
.price-edit span{
  font-weight:900;
  color:#0b4728;
}
.product-value-edit{width:110px;text-align:right}
@media (max-width:1100px){
  .product-tools{grid-template-columns:1fr 1fr}
}
@media (max-width:720px){
  .product-tools{grid-template-columns:1fr}
  .bulk-price-box div{flex-direction:column}
}


/* Colaboradores - painel estratégico */
.people-kpis{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:14px;
  margin-bottom:16px;
}
.people-kpi{
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow-soft);
}
.people-kpi span{
  display:block;
  color:#344054;
  font-weight:900;
  font-size:13px;
}
.people-kpi strong{
  display:block;
  margin-top:8px;
  font-size:32px;
  color:var(--green-900);
  letter-spacing:-.04em;
}
.people-kpi small{
  display:block;
  color:#667085;
  font-weight:700;
  margin-top:4px;
}
.people-kpi.danger strong{color:#b42318}
.people-kpi.warning strong{color:#c97917}
.people-head p{margin:6px 0 0;color:#667085;font-size:13px}
.people-filters{
  display:grid;
  grid-template-columns:170px 180px 180px 190px minmax(180px,1fr);
  gap:12px;
  align-items:end;
  margin:12px 0 18px;
  padding:14px;
  background:#fbfdfb;
  border:1px solid var(--line);
  border-radius:18px;
}
.people-filters label{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#344054;
  font-size:12px;
  font-weight:900;
}
.people-filters input,
.people-filters select{
  height:44px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:#102132;
  font-size:14px;
  font-weight:800;
  padding:0 12px;
}
.people-table td{vertical-align:middle}
.people-table .name-cell b{display:block}
.people-table .name-cell small{
  display:block;
  margin-top:2px;
  color:#667085;
  font-size:12px;
  font-weight:700;
}
.role-pill{
  display:inline-flex;
  background:#eef7f0;
  color:#0b4728;
  border-radius:999px;
  padding:7px 11px;
  font-weight:900;
  font-size:12px;
}
.freq-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:130px;
}
.freq-wrap b{
  color:#0b4728;
  min-width:42px;
}
.freq-wrap span{
  display:block;
  flex:1;
  height:9px;
  border-radius:999px;
  background:#edf2ee;
  overflow:hidden;
}
.freq-wrap i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#37a65b,#0b6b35);
}
.people-event-mini{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  border-radius:999px;
  padding:6px 10px;
  background:#f6fbf7;
  color:#0b4728;
  border:1px solid #e0efe5;
  font-size:12px;
  font-weight:900;
  margin:2px 4px 2px 0;
}
.people-event-mini.orange{background:#fff7ec;color:#c97917;border-color:#ffe0b4}
.people-event-mini.red{background:#fff0f0;color:#b42318;border-color:#ffd0d0}
.people-event-mini.blue{background:#eef6ff;color:#1f6fd2;border-color:#d9ebff}
.people-history-row td{
  padding-top:0!important;
  border-top:0!important;
}
.people-history{
  background:#fbfdfb;
  border:1px dashed var(--line);
  border-radius:14px;
  padding:10px 12px;
  color:#344054;
}
@media (max-width:1200px){
  .people-kpis{grid-template-columns:repeat(2,1fr)}
  .people-filters{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:720px){
  .people-kpis,.people-filters{grid-template-columns:1fr}
}


/* Relatórios - gráfico por colaborador */
.report-toolbar-pro{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.report-range-inputs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.report-range-inputs span{font-weight:800;color:#667085}
.collab-chart-box{display:flex;flex-direction:column;gap:14px}
.collab-chart-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.collab-chart-summary > div{padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:#fbfdfb;min-height:76px}
.collab-chart-summary small{display:block;color:#667085;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.collab-chart-summary b{display:block;margin-top:6px;color:#102132;font-size:20px;line-height:1.1}
.collab-chart-summary .btn{height:100%;width:100%}
.collab-chart-scroll{overflow-x:auto;padding-bottom:4px}
.collab-chart-canvas{min-width:100%;}
.collab-chart-svg{display:block;width:100%;height:auto;border:1px solid #edf2ee;border-radius:18px;background:linear-gradient(180deg,#fcfefc 0%,#f6fbf7 100%)}
.collab-label-row{display:grid;gap:0;margin-top:12px;border-top:1px solid #edf2ee;padding-top:12px}
.collab-label-card{text-align:center;padding:4px 6px 8px;min-width:0}
.collab-label-card span{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:24px;padding:0 8px;border-radius:999px;background:#eef7f0;color:#0b6b35;font-size:11px;font-weight:900}
.collab-label-card b{display:block;margin-top:6px;color:#102132;font-size:12px;line-height:1.15;word-break:break-word}
.collab-label-card small{display:block;margin-top:4px;color:#667085;font-size:11px;font-weight:800}
.collab-chart-foot{display:flex;justify-content:flex-end}
.chart-note{font-size:12px;color:#667085;font-weight:700}
@media (max-width:1200px){.collab-chart-summary{grid-template-columns:repeat(2,1fr)}}
@media (max-width:720px){.collab-chart-summary{grid-template-columns:1fr}.report-toolbar-pro,.report-range-inputs{align-items:stretch}.report-range-inputs input{width:100%}}


/* Pedidos de alteração - correção controlada */
.request-card h2{margin-bottom:12px}
.request-filters,
.request-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:14px;
}
.request-filters label,
.request-grid label{
  display:flex;
  flex-direction:column;
  gap:6px;
  color:#344054;
  font-size:12px;
  font-weight:900;
}
.request-filters input,
.request-filters select,
.request-grid input,
.request-grid select{
  height:46px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  color:#102132;
  font-size:14px;
  font-weight:800;
  padding:0 12px;
}
.request-warning{
  align-self:end;
  min-height:46px;
  display:flex;
  align-items:center;
  padding:0 14px;
  border-radius:14px;
  background:#fff7ec;
  border:1px solid #ffe0b4;
  color:#a15a00;
  font-weight:900;
}
.request-note{
  margin:12px 0 0;
  color:#667085;
  font-size:13px;
  font-weight:700;
}
.request-panels{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin-top:16px;
}
.request-item-pro{
  align-items:flex-start;
  gap:14px;
}
.request-title{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.request-item-pro p{
  margin:7px 0 0;
  color:#344054;
}
@media (max-width:1000px){
  .request-filters,.request-grid,.request-panels{grid-template-columns:1fr}
}


/* Dashboard - refinamento visual final */
.refined-dashboard-row{grid-template-columns:minmax(0, max-content) minmax(260px, 320px) !important;justify-content:space-between;align-items:end}
.refined-period-group{min-width:0}
.refined-period-fields{grid-template-columns:minmax(170px,220px) auto minmax(170px,220px) !important;justify-content:start;max-width:max-content}
.refined-sector-group{min-width:260px;max-width:320px}
.refined-select-wrap{width:100%}
.refined-dashboard-select{width:100%;min-height:60px;padding:13px 42px 13px 14px !important;border-color:var(--line) !important;background:#fff !important;color:#102132 !important;box-shadow:none !important}
.refined-select-wrap::after{content:'▾';right:14px;top:50%;transform:translateY(-50%);color:#344054 !important;font-size:16px}
.dashboard-primary-grid{display:grid;grid-template-columns:320px minmax(0,1fr);gap:16px;margin-top:16px;align-items:start}
.dashboard-period-panel{min-width:0}
.dashboard-ranking-panel{min-width:0;overflow:hidden}
.dashboard-ranking-panel .panel-head,.dashboard-period-panel .panel-head{margin-bottom:12px}
.dashboard-collab-summary{grid-template-columns:repeat(5, minmax(120px,1fr));gap:10px}
.dashboard-collab-summary > div{min-height:72px;padding:12px 14px}
.dashboard-inline-note{display:flex;align-items:center;justify-content:center;border:1px dashed #d8e6da;border-radius:14px;background:#fbfdfb;color:#667085;font-size:12px;font-weight:800;padding:12px 14px;text-align:center}
.dashboard-collab-scroll{overflow-x:auto;overflow-y:hidden;padding-bottom:6px}
.dashboard-collab-canvas{min-width:960px}
.dashboard-chart-foot{justify-content:flex-start}
.dashboard-bottom-row{margin-top:16px}
@media (max-width:1360px){.refined-dashboard-row{grid-template-columns:1fr !important}.refined-period-fields{max-width:none;width:100%}.refined-sector-group{max-width:none}.dashboard-primary-grid{grid-template-columns:1fr}.dashboard-collab-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.dashboard-collab-summary{grid-template-columns:1fr}.dashboard-collab-canvas{min-width:860px}}


/* Presença diária e alertas */
.attendance-kpis{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:16px;
}
.people-kpi{
  padding:18px;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow-soft);
}
.people-kpi span{display:block;color:#344054;font-weight:900;font-size:13px}
.people-kpi strong{display:block;margin-top:8px;font-size:32px;color:var(--green-900);letter-spacing:-.04em}
.people-kpi small{display:block;color:#667085;font-weight:700;margin-top:4px}
.people-kpi.danger strong{color:#b42318}
.people-kpi.warning strong{color:#c97917}
.attendance-filters{
  display:grid;
  grid-template-columns:170px 180px minmax(220px,1fr) auto;
  gap:12px;
  align-items:end;
  margin:12px 0 14px;
  padding:14px;
  background:#fbfdfb;
  border:1px solid var(--line);
  border-radius:18px;
}
.attendance-filters label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  font-weight:900;
  color:#344054;
}
.attendance-filters input,.attendance-filters select{
  height:44px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 12px;
  background:#fff;
  color:#102132;
  font-weight:800;
}
.attendance-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.attendance-status-summary{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:14px;
}
.attendance-status-summary span{
  background:#fff;
  border:1px solid var(--line);
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  color:#344054;
}
.attendance-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.att-btn{
  border:1px solid var(--line);
  background:#fff;
  color:#344054;
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  font-weight:900;
}
.att-btn.active.present,.att-btn.present:hover{background:#e9f7ec;color:#0b6b35;border-color:#bfe5c8}
.att-btn.active.faltou,.att-btn.faltou:hover{background:#ffecec;color:#b42318;border-color:#ffd0d0}
.att-btn.active.atestado,.att-btn.atestado:hover{background:#fff7ec;color:#c97917;border-color:#ffe0b4}
.att-btn.active.folga,.att-btn.folga:hover,.att-btn.active.ferias,.att-btn.ferias:hover{background:#eef6ff;color:#1f6fd2;border-color:#d9ebff}
.att-btn.clear.active{background:#f3f4f6}
.tag.gray{background:#f3f4f6;color:#667085}
.alerts-panel{
  margin:16px 0;
}
.alerts-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.alert-item{
  display:flex;
  gap:10px;
  align-items:flex-start;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fbfdfb;
  padding:12px;
}
.alert-item span{font-size:22px}
.alert-item b{display:block;color:#102132;font-size:13px}
.alert-item small{display:block;color:#667085;margin-top:4px;line-height:1.35}
.alert-item.orange{background:#fff7ec;border-color:#ffe0b4}
.alert-item.blue{background:#eef6ff;border-color:#d9ebff}
.alert-item.red{background:#fff0f0;border-color:#ffd0d0}
@media (max-width:1100px){
  .attendance-kpis{grid-template-columns:repeat(2,1fr)}
  .attendance-filters{grid-template-columns:1fr 1fr}
  .alerts-grid{grid-template-columns:1fr}
}
@media (max-width:720px){
  .attendance-kpis,.attendance-filters{grid-template-columns:1fr}
  .attendance-actions .btn{width:100%}
}


/* Design profissional unificado v27 */
.page-head h1{
  letter-spacing:-.055em;
}
.card{
  border:1px solid rgba(231,236,233,.95);
}
.panel,.form-card{
  border-radius:24px;
}
.panel-head{
  gap:14px;
}
.panel-head h2{
  color:#102132;
}
.btn{
  transition:.16s ease;
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(10,35,20,.08);
}
.btn-mini:hover{
  transform:none;
}
.btn-primary{
  background:linear-gradient(135deg,#0b6b35,#0e7a3d);
}
.btn-soft{
  background:#eef7f0;
  color:#0b4728;
  border:1px solid #d8ecd9;
}
.btn-ghost{
  background:#fff;
  border:1px solid var(--line);
  color:#344054;
}
.btn-danger{
  background:#b42318;
  color:#fff;
  border:1px solid #b42318;
}
.tag{
  border:1px solid transparent;
}
.tag:not(.blue):not(.orange):not(.red):not(.gray){
  background:#e9f7ec;
  color:#0b6b35;
  border-color:#bfe5c8;
}
.tag.blue{
  background:#eef6ff;
  color:#1f6fd2;
  border-color:#d9ebff;
}
.tag.orange{
  background:#fff7ec;
  color:#c97917;
  border-color:#ffe0b4;
}
.tag.red{
  background:#ffecec;
  color:#b42318;
  border-color:#ffd0d0;
}
.tag.gray{
  background:#f3f4f6;
  color:#667085;
  border-color:#e5e7eb;
}
.filters,.sheet-toolbar,.history-tools,.people-filters,.attendance-filters,.product-tools,.request-filters{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.65);
}
input,select,textarea{
  transition:.16s ease;
}
input:focus,select:focus,textarea:focus{
  outline:0;
  border-color:#7cc087!important;
  box-shadow:0 0 0 4px rgba(55,166,91,.10);
}
.table th{
  text-transform:uppercase;
  letter-spacing:.035em;
}
.table tbody tr:hover{
  background:#fbfdfb;
}
.history-card,.request-item,.prod-sheet,.alert-item{
  transition:.16s ease;
}
.history-card:hover,.request-item:hover,.alert-item:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(10,35,20,.06);
}
.modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(3,20,12,.42);
  backdrop-filter:blur(8px);
  display:grid;
  place-items:center;
  padding:18px;
  z-index:9999;
}
.modal-card{
  width:min(560px,100%);
  background:#fff;
  border:1px solid var(--line);
  border-radius:26px;
  box-shadow:0 28px 80px rgba(0,0,0,.22);
  overflow:hidden;
}
.modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  padding:22px 22px 12px;
}
.modal-head h2{
  margin:0;
  font-size:22px;
  letter-spacing:-.03em;
}
.modal-head p{
  margin:6px 0 0;
  color:#667085;
  font-size:14px;
}
.modal-close{
  border:0;
  background:#f3f4f6;
  width:36px;
  height:36px;
  border-radius:50%;
  font-size:24px;
  line-height:1;
  color:#344054;
}
.modal-body{
  padding:10px 22px 4px;
  display:grid;
  gap:12px;
}
.modal-body label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:13px;
  font-weight:900;
  color:#344054;
}
.modal-body input,.modal-body select,.modal-body textarea{
  border:1px solid var(--line);
  border-radius:14px;
  min-height:46px;
  padding:0 12px;
  background:#fff;
  color:#102132;
  font-weight:800;
}
.modal-body textarea{
  padding:12px;
}
.modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:18px 22px 22px;
}
@media (max-width:820px){
  .table-wrap{
    overflow-x:visible;
  }
  .table:not(.prod-sheet-table){
    display:block;
  }
  .table:not(.prod-sheet-table) thead{
    display:none;
  }
  .table:not(.prod-sheet-table) tbody,
  .table:not(.prod-sheet-table) tr,
  .table:not(.prod-sheet-table) td{
    display:block;
    width:100%;
  }
  .table:not(.prod-sheet-table) tr{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    margin:10px 0;
    padding:8px;
    box-shadow:var(--shadow-soft);
  }
  .table:not(.prod-sheet-table) td{
    border:0;
    padding:8px 10px;
  }
  .row-actions{
    justify-content:flex-start;
  }
  .modal-actions{
    flex-direction:column-reverse;
  }
  .modal-actions .btn{
    width:100%;
  }
}

/* Dashboard mais executivo */
.dashboard-kpis{
  gap:14px;
}
.dash-kpi-card{
  border-radius:24px;
}
.dashboard-primary-grid{
  align-items:stretch;
}
.dashboard-period-panel,.dashboard-ranking-panel{
  border-radius:24px;
}
.alerts-panel{
  border-radius:24px;
}
.alert-item{
  min-height:78px;
}

/* Padrão visual das telas mais simples */
.card.panel > h2:first-child{
  margin-top:0;
}
.users-page-note,.settings-note{
  color:#667085;
}


/* =========================================================
   Espaçamento profissional unificado v28
   Objetivo: corrigir respiros, alturas, margens e alinhamentos
   em todas as abas sem alterar regras do sistema.
========================================================= */
:root{
  --space-1:6px;
  --space-2:8px;
  --space-3:10px;
  --space-4:12px;
  --space-5:14px;
  --space-6:16px;
  --space-7:18px;
  --space-8:20px;
  --space-9:24px;
  --space-10:28px;
}

/* Estrutura geral */
.content{
  padding:24px 26px 30px !important;
}
.page-head{
  margin-bottom:18px !important;
  gap:18px !important;
}
.title-row{
  gap:14px !important;
}
.title-icon{
  width:58px !important;
  height:58px !important;
  border-radius:18px !important;
}
.page-head h1{
  font-size:32px !important;
  line-height:1.05 !important;
}
.page-head p{
  margin-top:6px !important;
  line-height:1.45 !important;
  max-width:760px;
}

/* Cards e grids */
.card{
  border-radius:22px !important;
}
.panel,
.form-card{
  padding:18px !important;
}
.layout-2,
.grid-4,
.dashboard-kpis,
.dashboard-primary-grid,
.dashboard-bottom-row,
.request-panels,
.people-kpis,
.attendance-kpis,
.alerts-grid{
  gap:14px !important;
}
.layout-2,
.wide,
.dashboard-bottom-row,
.request-panels{
  margin-top:14px !important;
}
.panel-head{
  margin-bottom:12px !important;
  gap:12px !important;
  min-height:36px;
}
.panel-head h2,
.panel h2{
  line-height:1.2 !important;
}
.panel-head .btn,
.panel-head button{
  flex:0 0 auto;
}

/* Dashboard mais compacto e equilibrado */
.dashboard-header-stack{
  gap:12px !important;
  margin-bottom:14px !important;
}
.dashboard-kpis{
  margin-bottom:14px !important;
}
.dash-kpi-card{
  min-height:110px !important;
  padding:16px !important;
  gap:14px !important;
  align-items:center !important;
}
.dash-icon{
  width:54px !important;
  height:54px !important;
  font-size:24px !important;
}
.dash-kpi-card span{
  margin-bottom:6px !important;
  font-size:13px !important;
}
.dash-kpi-card strong{
  font-size:27px !important;
}
.dash-kpi-card em,
.dash-kpi-card small{
  margin-top:6px !important;
  line-height:1.35 !important;
}
.dashboard-primary-grid{
  grid-template-columns:300px minmax(0,1fr) !important;
  margin-top:14px !important;
}
.dashboard-period-panel .chart{
  height:238px !important;
  padding:20px 10px 14px !important;
  gap:16px !important;
}
.chart{
  height:252px !important;
  padding:22px 12px 16px !important;
  gap:20px !important;
}
.bar-label{
  margin-top:2px;
}
.alerts-panel{
  margin:14px 0 !important;
}
.alert-item{
  min-height:68px !important;
  padding:11px 12px !important;
}
.absents-panel .absent-total{
  margin:12px 0 !important;
}
.absent-person{
  padding:8px 0 !important;
}

/* Filtros padronizados */
.filters,
.dash-filter-card,
.sheet-toolbar,
.history-tools,
.people-filters,
.attendance-filters,
.request-filters,
.request-grid,
.product-tools,
.report-toolbar-pro{
  gap:10px !important;
}
.dash-filter-card,
.sheet-toolbar,
.attendance-filters,
.people-filters,
.request-card .request-filters,
.request-card .request-grid{
  padding:12px !important;
  border-radius:18px !important;
}
.refined-dashboard-row{
  gap:12px !important;
}
.refined-period-fields{
  gap:7px !important;
}
.exec-date-field{
  min-height:54px !important;
  padding:7px 10px !important;
}
.exec-date-field small{
  margin-bottom:2px !important;
}
.exec-dashboard-select,
.refined-dashboard-select{
  min-height:54px !important;
  padding-top:11px !important;
  padding-bottom:11px !important;
}
.exec-period-summary{
  margin-top:5px !important;
}
.pill{
  padding:9px 13px !important;
  border-radius:12px !important;
}
.sheet-toolbar input,
.sheet-toolbar select,
.attendance-filters input,
.attendance-filters select,
.people-filters input,
.people-filters select,
.request-filters input,
.request-filters select,
.request-grid input,
.request-grid select,
.history-tools input,
.history-tools select,
.report-toolbar-pro input,
.report-toolbar-pro select{
  height:42px !important;
  min-height:42px !important;
}

/* Formulários e lançamentos */
.form-grid{
  gap:14px !important;
}
.form-card{
  margin-bottom:14px;
}
.field{
  margin-bottom:12px;
}
.toggle{
  padding:4px !important;
  gap:5px !important;
}
.toggle button{
  padding:10px 12px !important;
}
.chips{
  gap:7px !important;
}
.chip{
  padding:9px 11px !important;
}
.summary-box{
  padding:14px !important;
}
.actions{
  gap:8px !important;
  margin-top:14px !important;
}

/* Tabelas */
.table th{
  padding:10px 11px !important;
}
.table td{
  padding:11px !important;
  line-height:1.35 !important;
}
.table-wrap{
  margin-top:0 !important;
}
.compact-table td,
.compact-table th{
  padding:10px 11px !important;
}
.history-list{
  gap:10px !important;
}
.history-card{
  padding:12px !important;
  border-radius:16px !important;
}
.history-main{
  gap:8px !important;
}
.history-person,
.history-qty{
  gap:8px !important;
}

/* Botões e ações */
.row-actions,
.sheet-actions,
.attendance-actions,
.history-status,
.history-tools,
.modal-actions{
  gap:8px !important;
}
.btn{
  min-height:38px;
  padding:9px 13px;
  border-radius:12px;
}
.btn-mini{
  min-height:32px !important;
  padding:7px 10px !important;
  border-radius:11px !important;
}
.attendance-buttons{
  gap:6px !important;
}
.att-btn{
  padding:7px 9px !important;
}

/* Colaboradores e presença */
.attendance-status-summary{
  gap:7px !important;
  margin-bottom:12px !important;
}
.attendance-status-summary span{
  padding:7px 10px !important;
}
.attendance-panel .panel-head,
.people-panel .panel-head{
  align-items:flex-start !important;
}
.people-head p{
  margin-top:5px !important;
  line-height:1.4 !important;
}
.people-kpi{
  padding:15px !important;
}
.people-kpi strong{
  font-size:29px !important;
}
.attendance-table .name-cell{
  gap:8px !important;
}

/* Relatórios e gráfico de colaboradores */
.collab-chart-box{
  gap:12px !important;
}
.collab-chart-summary{
  gap:9px !important;
}
.collab-chart-summary > div{
  min-height:66px !important;
  padding:11px 12px !important;
}
.collab-chart-summary b{
  font-size:18px !important;
}
.collab-chart-svg{
  max-height:360px;
}
.dashboard-collab-summary > div{
  min-height:64px !important;
}
.dashboard-collab-canvas{
  min-width:880px !important;
}
.collab-label-row{
  margin-top:10px !important;
  padding-top:10px !important;
}
.collab-label-card{
  padding-bottom:6px !important;
}

/* Pedidos de alteração */
.request-card h2{
  margin:0 0 10px !important;
}
.request-grid,
.request-filters{
  margin-bottom:12px !important;
}
.request-item{
  padding:14px !important;
  gap:12px !important;
}
.request-item-pro p{
  margin-top:5px !important;
}
.request-note{
  margin-top:10px !important;
}

/* Produtos, usuários, setores e configurações */
.product-tools{
  margin-bottom:14px !important;
}
.sector-group,
.pro-filter-card,
.travel-filter,
.dash-filter-card{
  margin-bottom:0 !important;
}
.settings-page .card,
.users-page .card{
  margin-top:14px !important;
}

/* Modais */
.modal-card{
  border-radius:24px !important;
}
.modal-head{
  padding:20px 20px 10px !important;
}
.modal-body{
  padding:8px 20px 4px !important;
  gap:10px !important;
}
.modal-actions{
  padding:16px 20px 20px !important;
}
.modal-body input,
.modal-body select,
.modal-body textarea{
  min-height:42px !important;
}

/* Evita excesso de altura em cards vazios */
.empty-sheet{
  padding:20px !important;
  border-radius:16px !important;
}

/* Responsivo */
@media (max-width:1200px){
  .content{
    padding:22px 20px 28px !important;
  }
  .dashboard-primary-grid{
    grid-template-columns:1fr !important;
  }
  .dashboard-period-panel .chart{
    height:230px !important;
  }
  .dashboard-kpis{
    grid-template-columns:repeat(2,1fr) !important;
  }
  .attendance-kpis,
  .people-kpis{
    grid-template-columns:repeat(2,1fr) !important;
  }
}
@media (max-width:820px){
  .content{
    padding:18px 14px 24px !important;
  }
  .topbar{
    height:66px !important;
    padding:0 16px !important;
  }
  .page-head{
    flex-direction:column !important;
    align-items:stretch !important;
    margin-bottom:14px !important;
  }
  .title-icon{
    width:50px !important;
    height:50px !important;
  }
  .page-head h1{
    font-size:28px !important;
  }
  .dashboard-kpis,
  .grid-4,
  .attendance-kpis,
  .people-kpis{
    grid-template-columns:1fr !important;
  }
  .panel,
  .form-card{
    padding:14px !important;
  }
  .panel-head{
    align-items:flex-start !important;
    flex-direction:column !important;
  }
  .panel-head .btn,
  .panel-head button{
    width:100%;
  }
  .btn{
    width:auto;
  }
  .dash-kpi-card{
    min-height:96px !important;
    padding:14px !important;
  }
  .dash-icon{
    width:48px !important;
    height:48px !important;
  }
  .dashboard-period-panel .chart,
  .chart{
    height:220px !important;
    gap:10px !important;
  }
  .bar span{
    font-size:11px !important;
  }
  .attendance-filters,
  .people-filters,
  .sheet-filter-grid,
  .request-filters,
  .request-grid,
  .form-grid{
    grid-template-columns:1fr !important;
  }
  .history-tools,
  .sheet-toolbar{
    align-items:stretch !important;
  }
  .history-tools label,
  .history-tools select,
  .history-tools input,
  .history-tools .btn,
  .sheet-actions .btn{
    width:100% !important;
  }
  .request-item{
    grid-template-columns:1fr !important;
  }
  .table:not(.prod-sheet-table) tr{
    margin:8px 0 !important;
    padding:8px !important;
  }
  .table:not(.prod-sheet-table) td{
    padding:7px 8px !important;
  }
  .row-actions,
  .attendance-buttons{
    gap:6px !important;
  }
}
@media (max-width:520px){
  .content{
    padding:14px 10px 22px !important;
  }
  .page-head h1{
    font-size:25px !important;
  }
  .title-row{
    gap:10px !important;
  }
  .dashboard-collab-canvas{
    min-width:760px !important;
  }
  .modal-overlay{
    padding:10px !important;
  }
}


/* Evolução operacional: pedido do dia, jornada, comissão e previsão */
.daily-order-layout{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:14px;
  margin-bottom:14px;
}
.order-form-grid,
.shift-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.order-form-grid label,
.shift-grid label,
.order-obs{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  font-weight:900;
  color:#344054;
}
.order-form-grid input,
.order-form-grid select,
.shift-grid input,
.order-obs textarea{
  height:42px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 12px;
  font-weight:800;
  background:#fff;
}
.order-obs textarea{
  height:auto;
  min-height:70px;
  padding:10px 12px;
  margin:10px 0;
}
.shift-summary{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
  margin-top:12px;
}
.shift-summary span,
.order-total-pill{
  border:1px solid var(--line);
  background:#fbfdfb;
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:800;
  color:#344054;
}
.shift-summary .risk{
  background:#fff0f0;
  color:#b42318;
  border-color:#ffd0d0;
}
.order-kpi-line{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-bottom:12px;
}
.order-kpi-line div{
  border:1px solid var(--line);
  border-radius:16px;
  background:#fbfdfb;
  padding:12px;
}
.order-kpi-line small{
  display:block;
  color:#667085;
  font-weight:900;
  text-transform:uppercase;
  font-size:10px;
  letter-spacing:.04em;
}
.order-kpi-line b{
  display:block;
  margin-top:4px;
  color:#0b4728;
  font-size:20px;
}
.order-mini-list{
  display:grid;
  gap:8px;
}
.order-mini-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  border-top:1px solid var(--line);
  padding-top:10px;
}
.order-mini-item b,
.order-mini-item small{
  display:block;
}
.order-mini-item small{
  color:#667085;
  margin-top:3px;
}
.order-bar{
  width:120px;
  height:9px;
  background:#edf2ee;
  border-radius:999px;
  overflow:hidden;
  margin-bottom:4px;
}
.order-bar i{
  display:block;
  height:100%;
  background:linear-gradient(90deg,#37a65b,#0b6b35);
}
.section-subtitle{
  margin:16px 0 10px!important;
}
.commission-table td,
.commission-table th{
  vertical-align:top;
}
.order-progress-panel{
  margin:14px 0;
}
@media(max-width:1100px){
  .daily-order-layout,
  .order-kpi-line{
    grid-template-columns:1fr;
  }
  .order-form-grid,
  .shift-grid{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:720px){
  .order-form-grid,
  .shift-grid,
  .shift-summary{
    grid-template-columns:1fr;
  }
  .order-mini-item{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* Produtos e bonificações por setor */
.product-bonus-kpis{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:14px;
}
.product-bonus-panel .panel-head{
  align-items:flex-start;
}
.product-bonus-toolbar{
  display:grid;
  grid-template-columns:190px minmax(220px,1fr) 190px auto auto;
  gap:10px;
  align-items:end;
  padding:12px;
  border:1px solid var(--line);
  background:#fbfdfb;
  border-radius:18px;
  margin-bottom:14px;
}
.product-bonus-toolbar label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  font-weight:900;
  color:#344054;
}
.product-bonus-toolbar input,
.product-bonus-toolbar select,
.product-bonus-table input{
  height:42px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 12px;
  background:#fff;
  color:#102132;
  font-weight:900;
}
.product-bonus-table input{
  width:120px;
}
.product-bonus-table td,
.product-bonus-table th{
  vertical-align:middle;
}
@media(max-width:1100px){
  .product-bonus-kpis{grid-template-columns:repeat(2,1fr)}
  .product-bonus-toolbar{grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
  .product-bonus-kpis,.product-bonus-toolbar{grid-template-columns:1fr}
  .product-bonus-toolbar .btn{width:100%}
}


/* Usuários e permissões */
.users-kpis{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
  margin-bottom:14px;
}
.users-panel .panel-head{
  align-items:flex-start;
}
.users-table .name-cell{
  display:flex;
  align-items:center;
  gap:10px;
}
.permissions-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:12px;
}
.permissions-grid div{
  border:1px solid var(--line);
  background:#fbfdfb;
  border-radius:16px;
  padding:14px;
}
.permissions-grid b,
.permissions-grid small{
  display:block;
}
.permissions-grid b{
  color:#102132;
  margin-bottom:5px;
}
.permissions-grid small{
  color:#667085;
  line-height:1.35;
}
@media(max-width:1100px){
  .users-kpis,.permissions-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:720px){
  .users-kpis,.permissions-grid{grid-template-columns:1fr}
}


/* Correção filtro Produtos */
.product-bonus-toolbar select{
  cursor:pointer;
}
.product-bonus-table tbody{
  contain:content;
}


/* Painel rápido de faltas no Dashboard */
.faltas-card{
  cursor:pointer !important;
}
.faltas-card:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 30px rgba(180,35,24,.10);
}
.absents-modal .modal-body{
  max-height:420px;
  overflow:auto;
}
.quick-absence-body{
  display:grid;
  gap:8px;
}
.quick-absence-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px;
  background:#fbfdfb;
}
.quick-absence-row b,
.quick-absence-row small{
  display:block;
}
.quick-absence-row small{
  color:#667085;
  margin-top:3px;
}
@media(max-width:560px){
  .quick-absence-row{
    grid-template-columns:auto 1fr;
  }
  .quick-absence-row .tag{
    grid-column:1 / -1;
    width:max-content;
  }
}


/* Fechamento profissional */
.closing-period-toolbar{
  margin:8px 0 14px;
}
.closing-summary,
.closing-safety{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-bottom:14px;
}
.closing-summary > div,
.closing-safety-card{
  border:1px solid var(--line);
  background:#fbfdfb;
  border-radius:16px;
  padding:12px;
}
.closing-summary small,
.closing-safety-card small{
  display:block;
  color:#667085;
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.closing-summary b,
.closing-safety-card b{
  display:block;
  margin-top:5px;
  color:#0b4728;
  font-size:22px;
}
.closing-safety-card span{
  display:block;
  color:#667085;
  margin-top:3px;
  font-size:12px;
}
.closing-safety-card.orange{background:#fff7ec;border-color:#ffe0b4}
.closing-safety-card.orange b{color:#c97917}
.closing-safety-card.red{background:#fff0f0;border-color:#ffd0d0}
.closing-safety-card.red b{color:#b42318}
.closing-section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:16px 0 10px;
}
.closing-section-title h2{
  margin:0;
}
.closing-section-title small{
  color:#667085;
  font-weight:700;
}
.closing-chart-compact{
  display:grid;
  gap:9px;
  margin-bottom:16px;
}
.closing-bar-row{
  display:grid;
  grid-template-columns:52px minmax(150px,220px) 1fr;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  padding:10px;
}
.closing-rank{
  background:#e9f7ec;
  color:#0b6b35;
  border-radius:999px;
  padding:7px 9px;
  text-align:center;
  font-weight:900;
}
.closing-person b,
.closing-person small{
  display:block;
}
.closing-person small{
  color:#667085;
  margin-top:3px;
}
.closing-bars{
  display:grid;
  gap:7px;
}
.closing-bar-line{
  display:grid;
  grid-template-columns:78px 1fr 110px;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:#344054;
  font-weight:900;
}
.closing-bar-line i{
  display:block;
  height:10px;
  border-radius:999px;
  background:#0b6b35;
}
.closing-bar-line i.value{
  background:#c97917;
}
.closing-bar-line b{
  text-align:right;
  color:#102132;
}
.closing-table td,
.closing-table th{
  vertical-align:middle;
}
.closing-detail-modal .modal-card,
.closing-detail-modal{
  max-width:900px;
}
@media(max-width:900px){
  .closing-summary,
  .closing-safety{
    grid-template-columns:1fr 1fr;
  }
  .closing-bar-row{
    grid-template-columns:1fr;
  }
  .closing-bar-line{
    grid-template-columns:72px 1fr;
  }
  .closing-bar-line b{
    grid-column:1 / -1;
    text-align:left;
  }
}
@media(max-width:560px){
  .closing-summary,
  .closing-safety{
    grid-template-columns:1fr;
  }
}


/* Fechamento congelado */
.closed-sheets-panel{
  margin-top:14px;
}
.closed-sheets-panel .panel-head small{
  display:block;
}


/* Dashboard sem gráfico de uma barra */
.dashboard-ranking-full{
  margin-top:14px;
}
.dashboard-ranking-full .dashboard-collab-canvas{
  min-width:100%;
}


/* Dashboard ranking - melhor aproveitamento do espaço */
.dashboard-collab-summary{grid-template-columns:repeat(5,minmax(140px,1fr)) !important;}
.dashboard-collab-scroll{overflow-x:visible !important;overflow-y:hidden;padding-bottom:4px !important;}
.dashboard-collab-canvas{min-width:100% !important;width:100% !important;}
.dashboard-collab-chart .collab-chart-svg{width:100% !important;}
.dashboard-collab-chart .collab-label-row{margin-top:10px;padding-top:10px;}
.dashboard-collab-chart .collab-label-card{padding:6px 8px 10px;}
.dashboard-collab-chart .collab-chart-foot{display:none !important;}
.dashboard-collab-chart .dashboard-inline-note{display:none !important;}
@media (max-width:1360px){.dashboard-collab-summary{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}}
@media (max-width:760px){.dashboard-collab-summary{grid-template-columns:1fr !important;}.dashboard-collab-canvas{min-width:860px !important;}}


/* Configurações e teste mobile */
.settings-backup-grid{
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:14px;
}
.backup-main-card,
.backup-danger-card,
.backup-info-card{
  border-radius:24px!important;
}
.backup-steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin:14px 0;
}
.backup-steps div{
  border:1px solid var(--line);
  background:#fbfdfb;
  border-radius:18px;
  padding:14px;
}
.backup-steps span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:#e9f7ec;
  color:#0b6b35;
  font-weight:900;
}
.backup-steps b,
.backup-steps small{
  display:block;
}
.backup-steps b{
  margin-top:8px;
  color:#102132;
}
.backup-steps small{
  margin-top:4px;
  color:#667085;
  line-height:1.35;
}
.backup-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.backup-warning{
  margin-top:12px;
  border:1px solid #ffe0b4;
  background:#fff7ec;
  color:#8a4b00;
  border-radius:14px;
  padding:10px 12px;
  font-weight:800;
  font-size:13px;
}

/* Revisão mobile geral */
@media(max-width:820px){
  body{overflow-x:hidden;}
  .app{min-width:0!important;}
  .content{padding:14px 10px 24px!important;}
  .sidebar{position:fixed;left:-280px;z-index:50;}
  .main{margin-left:0!important;width:100%!important;}
  .topbar{position:sticky;top:0;z-index:30;}
  .page-head{gap:10px!important;}
  .page-head h1{font-size:24px!important;}
  .page-head p{font-size:13px!important;}
  .settings-backup-grid,
  .backup-steps,
  .dashboard-kpis,
  .grid-4,
  .layout-2,
  .request-panels,
  .daily-order-layout,
  .closing-summary,
  .closing-safety{
    grid-template-columns:1fr!important;
  }
  .backup-actions .btn,
  .backup-import-label{
    width:100%;
    justify-content:center;
  }
  .panel-head{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .row-actions,
  .sheet-actions,
  .attendance-actions{
    flex-direction:column;
    align-items:stretch!important;
  }
  .row-actions .btn,
  .sheet-actions .btn,
  .attendance-actions .btn{
    width:100%;
  }
  .dash-kpi-card{
    width:100%;
  }
  .product-bonus-toolbar,
  .attendance-filters,
  .people-filters,
  .request-grid,
  .request-filters,
  .order-form-grid,
  .shift-grid{
    grid-template-columns:1fr!important;
  }
  input,select,textarea,button{
    font-size:16px!important;
  }
  .modal-card{
    max-height:92vh;
    overflow:auto;
  }
}

@media(max-width:620px){
  .table-wrap{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .table{
    min-width:640px;
  }
  .product-bonus-table,
  .attendance-table,
  .users-table,
  .closing-table{
    min-width:720px;
  }
  .dashboard-line-ranking .line-ranking-chart svg,
  .collab-chart-svg{
    min-width:620px;
  }
}


/* Dashboard: card de progresso do pedido */
.progress-kpi-card{
  cursor:pointer;
}
.progress-kpi-card:hover{
  border-color:#cce6d4;
  box-shadow:0 12px 28px rgba(14,80,40,.08);
}
.progress-kpi-card .dash-kpi-body{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.progress-kpi-card .dash-kpi-copy{
  min-width:0;
}
.progress-kpi-card strong{
  font-size:28px;
}
.progress-ring{
  position:relative;
  width:84px;
  height:84px;
  flex:0 0 84px;
}
.progress-ring svg{
  width:84px;
  height:84px;
  transform:rotate(-90deg);
  overflow:visible;
}
.progress-ring-bg,
.progress-ring-bar{
  fill:none;
  stroke-width:8;
}
.progress-ring-bg{
  stroke:#e8f2eb;
}
.progress-ring-bar{
  stroke:#12753d;
  stroke-linecap:round;
}
.progress-ring-text{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  text-align:center;
}
.progress-ring-text b{
  font-size:20px;
  line-height:1;
  color:#0f5a30;
  letter-spacing:-.03em;
}
.production-progress-modal{
  max-width:880px;
}
.quick-progress-summary{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:18px;
  align-items:center;
  margin-bottom:18px;
}
.quick-progress-circle-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px;
}
.quick-progress-totals{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.quick-progress-totals div{
  border:1px solid var(--line);
  background:#fbfdfb;
  border-radius:16px;
  padding:12px;
}
.quick-progress-totals small{
  display:block;
  color:#667085;
  font-size:12px;
  font-weight:800;
  margin-bottom:4px;
}
.quick-progress-totals b{
  display:block;
  color:#102132;
  font-size:18px;
  font-weight:900;
}
@media (max-width:1200px){
  .progress-kpi-card .dash-kpi-body{align-items:flex-start}
}
@media (max-width:720px){
  .progress-kpi-card .dash-kpi-body{flex-direction:row;align-items:center}
  .progress-ring{width:74px;height:74px;flex-basis:74px}
  .progress-ring svg{width:74px;height:74px}
  .quick-progress-summary{grid-template-columns:1fr}
  .quick-progress-totals{grid-template-columns:1fr 1fr}
}

.login-hero .brand-logo-block{max-width:280px}
.login-hero .brand-logo-img{max-width:280px}


/* Login: manter conectado, sem alterar tamanho geral */
.remember-login{
  display:flex;
  align-items:center;
  gap:8px;
  margin:10px 0 14px;
  color:#34423a;
  font-weight:800;
  cursor:pointer;
  user-select:none;
}
.remember-login input{
  width:16px!important;
  height:16px!important;
  min-height:auto!important;
  accent-color:var(--green-800);
  flex:0 0 auto;
}
.remember-login span{
  line-height:1.25;
}

/* Correção: menu lateral mais compacto */
:root{
  --sidebar: 238px;
}

.sidebar{
  width:238px!important;
  padding:14px 12px!important;
}

.brand-logo-block{
  padding:8px 6px!important;
  margin-bottom:14px!important;
}

.brand-logo-img{
  width:162px!important;
  max-width:162px!important;
  height:auto!important;
  display:block;
  margin:0 auto;
  object-fit:contain!important;
}

.nav{
  gap:3px!important;
}

.nav-section{
  margin:13px 8px 5px!important;
  font-size:10px!important;
  letter-spacing:.15em!important;
}

.nav-btn{
  min-height:39px!important;
  padding:8px 10px!important;
  border-radius:14px!important;
  gap:9px!important;
  font-size:13px!important;
  line-height:1.1!important;
  font-weight:800!important;
}

.nav-icon{
  width:20px!important;
  min-width:20px!important;
  font-size:15px!important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.side-foot{
  padding:8px!important;
  font-size:11px!important;
}

@media(max-width:1100px){
  :root{--sidebar:76px}
  .sidebar{
    width:76px!important;
    padding:14px 8px!important;
  }
  .brand-logo-img{
    width:42px!important;
    max-width:42px!important;
  }
  .nav-btn{
    min-height:38px!important;
    padding:8px!important;
  }
}

@media(max-width:720px){
  .sidebar{
    display:none!important;
  }
}


/* Modo profissional: textos objetivos */
.notice:empty{
  display:none!important;
}
.login-demo .btn{
  justify-content:center;
}

/* Mobile profissional estrutural */
@media (max-width:820px){
  html,
  body,
  #app{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
    background:#f6faf7!important;
  }

  *{
    box-sizing:border-box;
  }

  .shell,
  .main{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
  }

  .sidebar,
  .topbar{
    display:none!important;
  }

  .mobile-topbar{
    display:flex!important;
    width:100%!important;
    min-height:58px!important;
    padding:9px 12px!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    position:sticky!important;
    top:0!important;
    z-index:80!important;
    background:rgba(255,255,255,.96)!important;
    border-bottom:1px solid #e8eee9!important;
    backdrop-filter:blur(14px);
  }

  .mobile-brand{
    min-width:0!important;
    gap:9px!important;
  }

  .mobile-brand-logo{
    width:54px!important;
    height:24px!important;
    max-width:54px!important;
    object-fit:contain!important;
    border-radius:4px!important;
    box-shadow:none!important;
    flex:0 0 auto!important;
  }

  .mobile-brand-copy strong{
    font-size:13px!important;
    line-height:1.05!important;
    max-width:190px!important;
  }

  .mobile-brand-copy small{
    font-size:11px!important;
    line-height:1.15!important;
    max-width:190px!important;
  }

  .mobile-user-pill .avatar{
    width:38px!important;
    height:38px!important;
    font-size:14px!important;
  }

  .content{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:12px 10px 86px!important;
  }

  .content > *,
  .card,
  .panel,
  .form-card,
  .wide,
  .request-card,
  .fichas-panel,
  .dash-filter-card,
  .dashboard-ranking-panel,
  .dashboard-period-panel{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .page-head{
    width:100%!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    margin:0 0 10px!important;
    padding:0!important;
  }

  .title-row{
    width:100%!important;
    min-width:0!important;
    gap:9px!important;
    align-items:center!important;
  }

  .title-icon{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    border-radius:13px!important;
    font-size:18px!important;
  }

  .page-head h1{
    font-size:22px!important;
    line-height:1.08!important;
    letter-spacing:-.04em!important;
    margin:0!important;
  }

  .page-head p{
    font-size:12px!important;
    line-height:1.3!important;
    margin:3px 0 0!important;
    max-width:100%!important;
  }

  .filters,
  .pill-row,
  .dash-filter-row{
    width:100%!important;
    align-items:flex-start!important;
  }

  .pill-row,
  .dash-filter-row{
    display:flex!important;
    flex-wrap:nowrap!important;
    gap:7px!important;
    overflow-x:auto!important;
    padding-bottom:4px!important;
    scrollbar-width:none;
  }

  .pill-row::-webkit-scrollbar,
  .dash-filter-row::-webkit-scrollbar{
    display:none;
  }

  .pill{
    flex:0 0 auto!important;
    min-height:34px!important;
    padding:8px 12px!important;
    font-size:12px!important;
    border-radius:12px!important;
  }

  .card,
  .panel,
  .form-card{
    border-radius:18px!important;
    padding:14px!important;
    margin-top:10px!important;
    overflow:hidden!important;
    box-shadow:0 8px 22px rgba(16,39,24,.055)!important;
  }

  .panel-head{
    align-items:flex-start!important;
    flex-direction:column!important;
    gap:8px!important;
    margin-bottom:10px!important;
  }

  .panel-head h2,
  .panel h2,
  .form-card h2{
    font-size:18px!important;
    line-height:1.1!important;
    margin:0 0 8px!important;
  }

  .form-grid,
  .layout-2,
  .grid-4,
  .dashboard-kpis,
  .dashboard-bottom-row,
  .daily-order-layout,
  .order-kpi-line,
  .order-form-grid,
  .shift-grid,
  .shift-summary,
  .request-grid,
  .request-filters,
  .request-panels,
  .product-bonus-kpis,
  .product-bonus-toolbar,
  .users-kpis,
  .permissions-grid,
  .people-kpis,
  .people-filters,
  .attendance-filters,
  .sheet-filter-grid,
  .closing-summary,
  .closing-safety,
  .settings-backup-grid,
  .backup-steps{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
  }

  .field,
  .request-grid label,
  .request-filters label,
  .history-tools label,
  .sheet-toolbar label{
    width:100%!important;
    min-width:0!important;
  }

  input,
  select,
  textarea{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:42px!important;
    border-radius:13px!important;
    font-size:16px!important;
  }

  textarea{
    min-height:86px!important;
  }

  .btn{
    min-height:42px!important;
    border-radius:13px!important;
    font-size:13px!important;
    padding:10px 12px!important;
  }

  .actions,
  .row-actions,
  .sheet-actions,
  .attendance-actions,
  .backup-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    width:100%!important;
  }

  .actions .btn,
  .row-actions .btn,
  .sheet-actions .btn,
  .attendance-actions .btn,
  .backup-actions .btn{
    width:100%!important;
  }

  /* Lançamentos mobile */
  .toggle{
    padding:4px!important;
    border-radius:13px!important;
  }

  .toggle button{
    min-height:36px!important;
    padding:8px!important;
    font-size:12px!important;
    border-radius:10px!important;
  }

  .collab-tools{
    position:sticky;
    top:58px;
    z-index:5;
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    padding:8px;
    margin-bottom:8px;
  }

  .chips{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    max-height:260px!important;
    overflow:auto!important;
    padding:2px 2px 6px!important;
    -webkit-overflow-scrolling:touch;
  }

  .chip{
    min-width:0!important;
    width:100%!important;
    min-height:38px!important;
    padding:8px 9px!important;
    border-radius:13px!important;
    font-size:12px!important;
    line-height:1.1!important;
    text-align:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  .summary-box{
    padding:12px!important;
    border-radius:14px!important;
    font-size:13px!important;
    line-height:1.45!important;
  }

  .notice{
    padding:10px 12px!important;
    border-radius:14px!important;
    font-size:12px!important;
    line-height:1.35!important;
  }

  #saveLaunch{
    position:sticky;
    bottom:78px;
    z-index:70;
    min-height:46px!important;
    box-shadow:0 12px 26px rgba(0,99,49,.22)!important;
  }

  /* Relatórios mobile */
  .report-toolbar-pro{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    gap:8px!important;
  }

  .mini-toggle{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    gap:6px!important;
  }

  .mini-pill{
    min-width:0!important;
    width:100%!important;
    padding:9px 6px!important;
    font-size:11px!important;
    border-radius:11px!important;
    text-align:center!important;
  }

  .report-range-inputs{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:7px!important;
  }

  .collab-chart-summary,
  .quick-progress-totals{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }

  .line-ranking-chart,
  .dashboard-line-ranking,
  .chart,
  .table-wrap{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch;
  }

  .line-ranking-chart svg,
  .collab-chart-svg{
    width:100%!important;
    min-width:480px!important;
    height:220px!important;
  }

  .fichas-panel{
    display:none!important;
  }

  /* Histórico mobile vira cards */
  .table:not(.prod-sheet-table){
    width:100%!important;
    min-width:0!important;
  }

  .table-wrap{
    border-radius:14px!important;
  }

  .history-tools{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    width:100%!important;
  }

  .history-tools .btn,
  .history-tools select,
  .history-tools input{
    width:100%!important;
  }

  .history-card{
    width:100%!important;
    grid-template-columns:1fr!important;
  }

  /* Solicitar alteração */
  .request-card{
    padding:14px!important;
  }

  .request-grid select,
  .request-grid input,
  .request-grid textarea,
  .request-filters select,
  .request-filters input{
    width:100%!important;
    max-width:100%!important;
  }

  .request-note{
    font-size:12px!important;
    line-height:1.35!important;
  }

  /* Menu inferior */
  .mobile-shell{
    display:grid!important;
    grid-template-columns:repeat(5,1fr)!important;
    gap:3px!important;
    position:fixed!important;
    left:8px!important;
    right:8px!important;
    bottom:8px!important;
    width:auto!important;
    z-index:100!important;
    padding:7px!important;
    background:rgba(255,255,255,.97)!important;
    border:1px solid #e6eee8!important;
    border-radius:22px!important;
    box-shadow:0 12px 28px rgba(16,39,24,.14)!important;
    backdrop-filter:blur(16px);
  }

  .mobile-shell button{
    min-width:0!important;
    min-height:48px!important;
    border:0!important;
    background:transparent!important;
    border-radius:15px!important;
    padding:5px 2px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    font-size:10px!important;
    line-height:1.05!important;
    font-weight:900!important;
    color:#56625b!important;
    overflow:hidden!important;
  }

  .mobile-shell button span{
    font-size:16px!important;
    line-height:1!important;
  }

  .mobile-shell button.active{
    color:#064b28!important;
    background:#eaf7ed!important;
  }

  .modal-overlay{
    padding:0!important;
    align-items:flex-end!important;
  }

  .modal-card{
    width:100%!important;
    max-width:100%!important;
    max-height:90dvh!important;
    border-radius:22px 22px 0 0!important;
    overflow:auto!important;
  }
}

@media (max-width:390px){
  .content{
    padding-left:8px!important;
    padding-right:8px!important;
  }
  .mobile-brand-copy strong{
    max-width:150px!important;
  }
  .mobile-brand-copy small{
    max-width:150px!important;
  }
  .chips{
    grid-template-columns:1fr 1fr!important;
  }
  .chip{
    font-size:11px!important;
  }
  .mobile-shell button{
    font-size:9px!important;
  }
}


/* Mobile: relatório por colaborador em gráfico de barras */
.mobile-bar-ranking{
  display:none;
}
@media(max-width:820px){
  .collab-chart-box:not(.dashboard-collab-chart) .collab-chart-scroll{
    display:none!important;
  }
  .collab-chart-box:not(.dashboard-collab-chart) .collab-chart-foot{
    display:none!important;
  }
  .mobile-bar-ranking{
    display:flex!important;
    flex-direction:column;
    gap:10px;
    margin-top:12px;
  }
  .mobile-bar-row{
    width:100%;
    border:1px solid var(--line);
    background:#fff;
    border-radius:14px;
    padding:10px;
  }
  .mobile-bar-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:8px;
  }
  .mobile-bar-head span{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:12px;
    font-weight:900;
    color:#102132;
  }
  .mobile-bar-head b{
    flex:0 0 auto;
    font-size:12px;
    color:#0b6b35;
  }
  .mobile-bar-track{
    width:100%;
    height:12px;
    background:#edf5ef;
    border-radius:999px;
    overflow:hidden;
  }
  .mobile-bar-track i{
    display:block;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#73c787,#0b6b35);
  }
}


/* Correção mobile: período do Dashboard sem estourar */
@media(max-width:820px){
  .dash-filter-card,
  .travel-filter,
  .pro-filter-card,
  .dashboard-period-panel{
    overflow:hidden!important;
  }

  .dash-filter-grid,
  .travel-filter-grid,
  .travel-date-row,
  .pro-date-grid,
  .date-inline-inputs,
  .refined-period-fields{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    gap:8px!important;
  }

  .travel-date-box,
  .pro-date-box,
  .date-inline-inputs label,
  .refined-period-fields label,
  .dash-filter-card label,
  .date-control,
  .range-display-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  .travel-arrow,
  .pro-date-separator,
  .refined-period-fields span{
    display:none!important;
  }

  .travel-date-box input,
  .travel-date-box select,
  .pro-date-box input,
  .pro-date-box select,
  .date-inline-inputs input,
  .date-inline-inputs select,
  .refined-period-fields input,
  .refined-period-fields select,
  .dash-filter-card input,
  .dash-filter-card select{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
}

/* Firebase status */
.firebase-card{
  border-color:#d7ecd8;
}
.firebase-status-line{
  display:flex;
  flex-direction:column;
  gap:4px;
  background:#f7fbf7;
  border:1px solid var(--line);
  border-radius:14px;
  padding:11px 13px;
  margin:10px 0;
  font-weight:900;
  color:#0b4728;
}
.firebase-status-line small{
  color:#667085;
  font-weight:800;
}

/* Login seguro */
.login-demo{
  display:none!important;
}
.login-card .notice{
  display:none!important;
}

/* Controle de jornada */
.jornada-status{
  border:1px solid var(--line);
  background:#fbfdfb;
  border-radius:14px;
  padding:9px 10px;
  min-width:170px;
}
.jornada-status b,
.jornada-status small{
  display:block;
}
.jornada-status b{
  color:#102132;
  font-size:12px;
  font-weight:900;
}
.jornada-status small{
  color:#667085;
  margin-top:3px;
  font-size:11px;
  font-weight:800;
}
.jornada-status.open{
  background:#eef8f0;
  border-color:#ccebd3;
}
.jornada-status.closed{
  background:#edf5ff;
  border-color:#cfe0ff;
}
.jornada-actions{
  display:flex;
  gap:7px;
  margin-top:7px;
  flex-wrap:wrap;
}
.jornada-actions .btn{
  min-height:34px;
  padding:7px 10px;
  font-size:12px;
}
@media(max-width:820px){
  .jornada-status{
    min-width:0;
    width:100%;
  }
  .jornada-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .jornada-actions .btn{
    width:100%;
  }
}

/* Jornada com botão único */
.jornada-global-actions{
  align-items:end;
}
.jornada-global-actions #startAllJornada,
.jornada-global-actions #endAllJornada{
  font-weight:900;
}
@media(max-width:820px){
  .jornada-global-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }
  .jornada-global-actions button{
    width:100%;
  }
}

/* Banco de horas */
.banco-horas-panel{
  margin-top:18px;
}
.banco-horas-filters{
  margin-bottom:14px;
}
.bank-balance{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:76px;
  padding:7px 10px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
}
.bank-balance.pos{
  background:#e9f8ef;
  color:#067647;
}
.bank-balance.neg{
  background:#fff1f1;
  color:#b42318;
}
.bank-balance.zero{
  background:#eef2f6;
  color:#344054;
}
.history-title{
  margin:16px 0 10px;
}
.history-title h3{
  margin:0;
  font-size:16px;
  color:#102132;
}
.history-title small{
  color:#667085;
  font-weight:800;
}
@media(max-width:820px){
  .banco-horas-table th,
  .banco-horas-table td,
  .banco-horas-history th,
  .banco-horas-history td{
    white-space:nowrap;
  }
}

/* Login premium corrigido na base enviada */
.login-page.premium-login{
  min-height:100%;
  display:grid;
  grid-template-columns:1.04fr 1fr;
  background:
    radial-gradient(circle at 80% 20%,rgba(47,122,74,.10),transparent 34%),
    linear-gradient(135deg,#f8fbf8 0%,#eef6ef 100%);
  overflow:hidden;
}
.premium-login .login-hero{
  position:relative;
  min-height:100vh;
  padding:0;
  overflow:hidden;
  background:
    radial-gradient(circle at 72% 20%,rgba(84,174,87,.18),transparent 30%),
    radial-gradient(circle at 20% 0%,rgba(80,170,80,.18),transparent 28%),
    linear-gradient(145deg,#041b11 0%,#062816 48%,#03170d 100%);
  color:#fff;
}
.premium-login .login-hero:before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(4,27,17,.12),rgba(4,27,17,.65)),
    url("data:image/svg+xml,%3Csvg width='900' height='580' viewBox='0 0 900 580' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%232a7b47' stroke-opacity='.28' stroke-width='1.4'%3E%3Cpath d='M155 455c130-110 285-150 475-138 92 6 162 30 235 70'/%3E%3Cpath d='M420 400c75-95 180-135 315-120 70 8 118 30 168 65'/%3E%3Cpath d='M0 560c160-78 355-120 585-125 125-3 225 10 315 40'/%3E%3Cpath d='M540 355v-95c0-18 15-33 33-33h24c18 0 33 15 33 33v95'/%3E%3Cpath d='M665 355v-70c0-18 15-33 33-33h22c18 0 33 15 33 33v70'/%3E%3Cpath d='M470 355v-50c0-13 11-24 24-24h20c13 0 24 11 24 24v50'/%3E%3Cpath d='M742 260c20-34 64-34 82 4 31-8 61 12 63 44'/%3E%3C/g%3E%3C/svg%3E") right bottom/72% auto no-repeat;
  opacity:.78;
}
.premium-login .login-hero-inner{
  position:relative;
  z-index:2;
  min-height:100vh;
  padding:62px 8.5vw 44px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.premium-login .login-logo{
  max-width:335px!important;
  width:335px!important;
  margin-bottom:12px;
  filter:drop-shadow(0 20px 34px rgba(0,0,0,.22));
}
.premium-login .login-logo .brand-logo-img{
  max-width:335px!important;
  width:100%!important;
}
.premium-login .hero-copy{
  margin-top:auto;
  margin-bottom:auto;
  max-width:720px;
}
.premium-login .hero-copy h1{
  font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(42px,4.4vw,74px);
  line-height:1.08;
  letter-spacing:-.045em;
  margin:0 0 26px;
  max-width:780px;
  text-shadow:0 10px 26px rgba(0,0,0,.24);
}
.premium-login .hero-copy h1 span{
  display:block;
  color:#87cf19;
}
.premium-login .hero-copy p{
  max-width:610px;
  color:#e6f0e7;
  font-size:clamp(17px,1.35vw,22px);
  line-height:1.62;
  margin:0;
}
.premium-login .hero-line{
  width:58px;
  height:3px;
  background:#8bd91c;
  border-radius:999px;
  margin:38px 0 32px;
}
.premium-login .hero-cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  max-width:705px;
}
.premium-login .glass{
  min-height:150px;
  border-radius:18px;
  padding:24px 25px;
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.045));
  border:1px solid rgba(142,210,104,.25);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 20px 44px rgba(0,0,0,.12);
  backdrop-filter:blur(18px);
}
.premium-login .glass-icon{
  width:44px;
  height:44px;
  border:2px solid #8bd91c;
  border-radius:50%;
  display:grid;
  place-items:center;
  margin-bottom:22px;
  color:#8bd91c;
}
.premium-login .glass strong{
  font-size:clamp(28px,2.1vw,42px);
  line-height:1;
  display:block;
  letter-spacing:-.04em;
}
.premium-login .glass small{
  display:block;
  margin-top:8px;
  color:#e7f3e6;
  font-size:clamp(14px,1.05vw,17px);
  line-height:1.36;
}
.premium-login .login-security{
  display:flex;
  gap:12px;
  align-items:center;
  color:#eaf5e8;
  font-size:15px;
  font-weight:700;
}
.premium-login .login-security span{
  color:#8bd91c;
  font-size:25px;
}
.login-ambient{
  position:absolute;
  z-index:1;
  pointer-events:none;
  filter:blur(1px);
  opacity:.7;
}
.login-ambient.leaf-one{
  left:-70px;
  top:-74px;
  width:250px;
  height:150px;
  border-radius:75% 25% 70% 30%;
  background:radial-gradient(circle at 50% 50%,rgba(139,217,28,.42),rgba(139,217,28,.08) 52%,transparent 70%);
  transform:rotate(28deg);
}
.login-ambient.leaf-two{
  right:-80px;
  bottom:-55px;
  width:320px;
  height:190px;
  border-radius:75% 25% 70% 30%;
  background:radial-gradient(circle at 50% 50%,rgba(139,217,28,.38),rgba(139,217,28,.07) 52%,transparent 70%);
  transform:rotate(-18deg);
}
.premium-login .login-card-wrap{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:58px;
}
.premium-login .login-card{
  width:min(570px,100%);
  background:rgba(255,255,255,.94);
  border:1px solid rgba(16,24,39,.06);
  border-radius:30px;
  padding:54px 52px 46px;
  box-shadow:0 34px 90px rgba(18,52,31,.14);
}
.premium-login .login-card-mark{
  width:78px;
  height:78px;
  margin:0 auto 28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:radial-gradient(circle at 38% 28%,#0b4d2d,#052313 72%);
  box-shadow:0 16px 28px rgba(4,43,22,.24);
}
.premium-login .login-card h2{
  text-align:center;
  font-size:36px;
  line-height:1.12;
  letter-spacing:-.04em;
  margin:0 0 10px;
  color:#0d1828;
}
.premium-login .login-card p{
  text-align:center;
  color:#667085;
  font-size:16px;
  margin:0 0 32px;
}
.premium-login .login-field{
  margin:0 0 22px;
  gap:10px;
}
.premium-login .login-field label{
  color:#111827;
  font-size:15px;
  font-weight:900;
}
.premium-login .input-shell{
  height:63px;
  display:flex;
  align-items:center;
  gap:14px;
  border:1.3px solid #d7e1dc;
  border-radius:13px;
  background:#fff;
  padding:0 17px;
  transition:.18s;
}
.premium-login .input-shell:focus-within{
  border-color:#2f8f4c;
  box-shadow:0 0 0 4px rgba(47,143,76,.12);
}
.premium-login .input-shell input{
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0!important;
  width:100%;
  outline:none;
  font-size:16px;
}
.premium-login .input-shell button{
  border:0;
  background:transparent;
}
.premium-login .remember-login{
  display:flex;
  align-items:center;
  gap:12px;
  margin:8px 0 28px;
  color:#202b22;
  font-size:15px;
  font-weight:800;
}
.premium-login .remember-login input{
  width:20px;
  height:20px;
  accent-color:#16813d;
}
.premium-login .login-submit{
  width:100%;
  min-height:68px;
  border-radius:13px;
  font-size:20px;
  font-weight:950;
  background:linear-gradient(135deg,#07843f,#006b34);
  box-shadow:0 16px 30px rgba(0,107,52,.24);
}
.premium-login .login-submit span{
  margin-left:auto;
  font-size:30px;
  line-height:1;
}
.premium-login .login-divider{
  height:1px;
  background:#e4ebe7;
  margin:36px 0 22px;
}
.premium-login .login-restricted{
  text-align:center;
  color:#667085;
  font-size:14px;
  font-weight:800;
}
@media(max-width:980px){
  .login-page.premium-login{
    grid-template-columns:1fr;
  }
  .premium-login .login-hero{
    min-height:auto;
  }
  .premium-login .login-hero-inner{
    min-height:auto;
    padding:38px 24px 30px;
  }
  .premium-login .login-logo{
    max-width:260px!important;
    width:260px!important;
  }
  .premium-login .login-logo .brand-logo-img{
    max-width:260px!important;
  }
  .premium-login .hero-copy{
    margin:34px 0 30px;
  }
  .premium-login .hero-cards{
    grid-template-columns:1fr;
    gap:12px;
  }
  .premium-login .glass{
    min-height:auto;
    padding:18px;
  }
  .premium-login .login-card-wrap{
    min-height:auto;
    padding:30px 18px 46px;
  }
  .premium-login .login-card{
    padding:36px 22px 28px;
    border-radius:24px;
  }
  .premium-login .login-card h2{
    font-size:30px;
  }
}

/* Correção: travar somente a página de login */
body.login-lock{
  overflow:hidden!important;
}
body.login-lock #app{
  height:100vh!important;
  max-height:100vh!important;
  overflow:hidden!important;
}
body.login-lock .login-page{
  height:100vh!important;
  max-height:100vh!important;
  overflow:hidden!important;
}
body.login-lock .premium-login .login-hero,
body.login-lock .premium-login .login-card-wrap{
  min-height:100vh!important;
  max-height:100vh!important;
  overflow:hidden!important;
}
body.login-lock .premium-login .login-hero-inner{
  min-height:100vh!important;
  max-height:100vh!important;
}
@media(max-width:980px){
  body.login-lock{
    overflow:auto!important;
  }
  body.login-lock #app,
  body.login-lock .login-page,
  body.login-lock .premium-login .login-hero,
  body.login-lock .premium-login .login-card-wrap,
  body.login-lock .premium-login .login-hero-inner{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }
}


/* Ajuste para caber todo o conteúdo da tela de login sem cortar */
@media(min-width:981px){
  .premium-login{
    min-height:100vh;
    align-items:stretch;
  }
  .premium-login .login-hero,
  .premium-login .login-card-wrap{
    min-height:100vh;
  }
  .premium-login .login-hero-inner{
    min-height:100vh;
    padding:40px 7vw 26px;
    display:grid;
    grid-template-rows:auto 1fr auto;
    gap:22px;
  }
  .premium-login .login-logo{
    max-width:360px!important;
    width:360px!important;
    margin-bottom:0;
  }
  .premium-login .login-logo .brand-logo-img{
    max-width:360px!important;
  }
  .premium-login .hero-copy{
    margin:0;
    align-self:center;
    max-width:720px;
  }
  .premium-login .hero-copy h1{
    font-size:clamp(36px,3.9vw,68px);
    line-height:1.03;
    margin:0 0 18px;
    max-width:700px;
  }
  .premium-login .hero-copy p{
    font-size:clamp(16px,1.15vw,19px);
    line-height:1.52;
    max-width:560px;
  }
  .premium-login .hero-line{
    margin:24px 0 20px;
  }
  .premium-login .hero-cards{
    max-width:690px;
    gap:16px;
  }
  .premium-login .glass{
    min-height:122px;
    padding:18px 20px;
    border-radius:18px;
  }
  .premium-login .glass-icon{
    width:40px;
    height:40px;
    margin-bottom:16px;
  }
  .premium-login .glass strong{
    font-size:clamp(24px,1.9vw,36px);
  }
  .premium-login .glass small{
    margin-top:6px;
    font-size:clamp(13px,0.95vw,15px);
    line-height:1.3;
  }
  .premium-login .login-security{
    font-size:14px;
    gap:10px;
  }
  .premium-login .login-security span{
    font-size:22px;
  }
  .premium-login .login-card-wrap{
    padding:42px 44px;
  }
  .premium-login .login-card{
    width:min(540px,100%);
    padding:42px 42px 34px;
    border-radius:28px;
  }
  .premium-login .login-card-mark{
    width:70px;
    height:70px;
    margin:0 auto 22px;
  }
  .premium-login .login-card h2{
    font-size:32px;
    margin:0 0 8px;
  }
  .premium-login .login-card p{
    margin:0 0 26px;
    font-size:15px;
  }
  .premium-login .login-field{
    margin:0 0 18px;
  }
  .premium-login .input-shell{
    height:58px;
  }
  .premium-login .remember-login{
    margin:6px 0 16px;
  }
  .premium-login .login-submit{
    height:64px;
  }
  .premium-login .login-divider{
    margin:22px 0 18px;
  }
}

@media(min-width:981px) and (max-height:860px){
  .premium-login .login-hero-inner{
    padding-top:28px;
    padding-bottom:18px;
    gap:16px;
  }
  .premium-login .login-logo,
  .premium-login .login-logo .brand-logo-img{
    max-width:320px!important;
    width:320px!important;
  }
  .premium-login .hero-copy h1{
    font-size:clamp(34px,3.5vw,58px);
    margin-bottom:14px;
  }
  .premium-login .hero-copy p{
    font-size:15px;
    line-height:1.45;
  }
  .premium-login .hero-line{
    margin:18px 0 16px;
  }
  .premium-login .hero-cards{
    gap:12px;
  }
  .premium-login .glass{
    min-height:108px;
    padding:15px 16px;
  }
  .premium-login .glass-icon{
    width:36px;
    height:36px;
    margin-bottom:12px;
  }
  .premium-login .glass strong{
    font-size:28px;
  }
  .premium-login .glass small{
    font-size:13px;
  }
  .premium-login .login-card-wrap{
    padding:30px 34px;
  }
  .premium-login .login-card{
    padding:34px 34px 28px;
  }
  .premium-login .login-card-mark{
    width:64px;
    height:64px;
    margin-bottom:18px;
  }
  .premium-login .login-card h2{
    font-size:30px;
  }
  .premium-login .login-card p{
    margin-bottom:20px;
  }
  .premium-login .input-shell{
    height:54px;
  }
  .premium-login .login-submit{
    height:58px;
  }
}

/* Ajuste: logo ocupando melhor a área superior do login */
@media(min-width:981px){
  .premium-login .login-logo{
    max-width:520px!important;
    width:clamp(430px,31vw,520px)!important;
    margin-bottom:0!important;
  }
  .premium-login .login-logo .brand-logo-img{
    max-width:520px!important;
    width:100%!important;
  }
  .premium-login .login-hero-inner{
    padding-top:38px!important;
    grid-template-rows:auto 1fr auto!important;
  }
}
@media(min-width:981px) and (max-height:860px){
  .premium-login .login-logo{
    max-width:500px!important;
    width:clamp(410px,30vw,500px)!important;
  }
  .premium-login .login-logo .brand-logo-img{
    max-width:500px!important;
  }
}
@media(max-width:980px){
  .premium-login .login-logo{
    max-width:285px!important;
    width:285px!important;
  }
  .premium-login .login-logo .brand-logo-img{
    max-width:285px!important;
  }
}


/* V6 aplicado nos arquivos enviados: colaborador com ações profissionais */
.collab-action-wrap{
  position:relative;
  display:inline-flex;
  justify-content:center;
  align-items:center;
}

.collab-menu-btn{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:#1f2a37;
  font-size:24px;
  font-weight:900;
  line-height:1;
  display:grid;
  place-items:center;
  box-shadow:0 5px 16px rgba(5,32,18,.05);
}

.collab-menu-btn:hover{
  background:var(--green-50);
  border-color:#cfe3d4;
}

.collab-action-menu{
  position:absolute;
  top:48px;
  right:0;
  width:220px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:8px;
  box-shadow:0 18px 42px rgba(5,32,18,.16);
  z-index:80;
  display:none;
}

.collab-action-wrap.open .collab-action-menu{
  display:block;
}

.collab-action-item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  border:0;
  background:transparent;
  padding:11px 12px;
  border-radius:12px;
  color:#1f2a37;
  font-size:13px;
  font-weight:900;
  text-align:left;
}

.collab-action-item:hover{
  background:#f5faf6;
}

.collab-action-item.danger{
  color:#a83232;
}

.collab-action-item.danger:hover{
  background:#fff1f1;
}

.collab-history-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}

.collab-history-summary div{
  background:#f8fbf8;
  border:1px solid var(--line);
  border-radius:16px;
  padding:12px;
}

.collab-history-summary span{
  display:block;
  color:#667085;
  font-size:12px;
  font-weight:900;
  margin-bottom:4px;
}

.collab-history-summary b{
  display:block;
  color:#0f2b1a;
  font-size:16px;
}

.collab-dismissal-note{
  background:#fff8ed;
  border:1px solid #ffe0b4;
  border-radius:16px;
  padding:12px;
  margin-bottom:16px;
  color:#7a5015;
  line-height:1.5;
}

.info-section-title{
  margin:10px 0 10px;
  font-size:16px;
}

.info-modal-card{
  width:min(880px,calc(100vw - 28px));
}

.info-modal-body{
  max-height:70dvh;
  overflow:auto;
}

@media (max-width:720px){
  .collab-action-menu{
    position:fixed;
    left:14px;
    right:14px;
    top:auto;
    bottom:92px;
    width:auto;
    z-index:120;
  }

  .collab-history-summary{
    grid-template-columns:1fr;
  }

  .info-modal-body .table{
    min-width:680px;
  }
}


/* V7: correção profissional do layout da Lista de Presença */
.attendance-panel .attendance-filters{
  display:grid !important;
  grid-template-columns:180px 230px minmax(260px,1fr) 150px;
  gap:12px !important;
  align-items:end !important;
  background:#fbfdfb;
  border:1px solid var(--line);
  border-radius:22px;
  padding:16px !important;
  margin-bottom:16px;
}

.attendance-panel .attendance-filters > label{
  display:flex !important;
  flex-direction:column !important;
  gap:7px !important;
  width:100% !important;
  min-width:0 !important;
  font-weight:900;
  color:#1f2a37;
}

.attendance-panel .attendance-filters input,
.attendance-panel .attendance-filters select{
  width:100% !important;
  min-height:50px;
}

.attendance-panel .jornada-global-actions{
  grid-column:1 / -1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  width:100% !important;
  min-height:auto !important;
  margin:0 !important;
  padding:0 !important;
}

.attendance-panel .jornada-global-actions .btn{
  width:auto !important;
  min-width:auto !important;
  min-height:44px !important;
  padding:12px 16px !important;
  white-space:nowrap !important;
  border-radius:15px !important;
}

.attendance-panel .jornada-global-actions #markAllPresent{
  min-width:210px !important;
}

.attendance-panel .jornada-global-actions #clearAttendanceDay{
  margin-left:auto !important;
}

.attendance-status-summary{
  margin-top:4px !important;
}

@media (max-width:1180px){
  .attendance-panel .attendance-filters{
    grid-template-columns:180px 220px minmax(260px,1fr);
  }

  .attendance-panel .attendance-filters label:has(#collabStatusFilter){
    grid-column:auto;
  }
}

@media (max-width:860px){
  .attendance-panel .attendance-filters{
    grid-template-columns:1fr 1fr !important;
  }

  .attendance-panel .attendance-filters label:has(#attendanceNameFilter){
    grid-column:1 / -1;
  }

  .attendance-panel .jornada-global-actions #clearAttendanceDay{
    margin-left:0 !important;
  }
}

@media (max-width:620px){
  .attendance-panel .attendance-filters{
    grid-template-columns:1fr !important;
    padding:12px !important;
  }

  .attendance-panel .jornada-global-actions{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
  }

  .attendance-panel .jornada-global-actions .btn{
    width:100% !important;
    white-space:normal !important;
    min-height:46px !important;
    padding:10px 12px !important;
  }

  .attendance-panel .jornada-global-actions #markAllPresent,
  .attendance-panel .jornada-global-actions #clearAttendanceDay{
    min-width:0 !important;
    margin-left:0 !important;
  }
}


/* V8: ações profissionais na tabela de produtos */
.product-action-wrap{
  position:relative;
  display:inline-flex;
  justify-content:center;
  align-items:center;
}

.product-menu-btn{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff;
  color:#1f2a37;
  font-size:24px;
  font-weight:900;
  line-height:1;
  display:grid;
  place-items:center;
  box-shadow:0 5px 16px rgba(5,32,18,.05);
}

.product-menu-btn:hover{
  background:var(--green-50);
  border-color:#cfe3d4;
}

.product-action-menu{
  position:absolute;
  top:48px;
  right:0;
  width:210px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:8px;
  box-shadow:0 18px 42px rgba(5,32,18,.16);
  z-index:90;
  display:none;
}

.product-action-wrap.open .product-action-menu{
  display:block;
}

.product-action-item{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  border:0;
  background:transparent;
  padding:11px 12px;
  border-radius:12px;
  color:#1f2a37;
  font-size:13px;
  font-weight:900;
  text-align:left;
}

.product-action-item:hover{
  background:#f5faf6;
}

.product-action-item.danger{
  color:#a83232;
}

.product-action-item.danger:hover{
  background:#fff1f1;
}

.product-bonus-table th:last-child,
.product-bonus-table td:last-child{
  text-align:center;
  width:90px;
}

@media (max-width:720px){
  .product-action-menu{
    position:fixed;
    left:14px;
    right:14px;
    top:auto;
    bottom:92px;
    width:auto;
    z-index:130;
  }
}



/* Avatares e liderança */
.avatar{
  overflow:hidden;
  flex:0 0 auto;
  box-shadow:0 6px 16px rgba(24,75,41,.14);
}
.avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.avatar-sm{width:40px;height:40px;font-size:14px}
.avatar-md{width:44px;height:44px;font-size:16px}
.avatar-lg{width:72px;height:72px;font-size:24px}
.user-chip .avatar,
.mobile-user-pill .avatar{
  border:2px solid rgba(255,255,255,.75);
}
.user-identity-cell{
  min-width:220px;
}
.user-list-avatar{
  margin-right:2px;
}
.leader-gallery-grid,
.sector-leaders-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.leader-gallery-card,
.sector-leader-card{
  border:1px solid var(--line);
  background:#fbfdfb;
  border-radius:18px;
  padding:14px;
}
.leader-gallery-card{
  display:flex;
  align-items:center;
  gap:12px;
}
.leader-gallery-visual{
  width:56px;
  height:56px;
  border-radius:16px;
  overflow:hidden;
  background:var(--green-100);
  flex:0 0 auto;
}
.leader-gallery-visual img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.leader-gallery-card b,
.leader-gallery-card small,
.sector-leader-card h3,
.sector-leader-card small,
.sector-leader-card p{
  display:block;
}
.leader-gallery-card small,
.sector-leader-card small,
.sector-leader-card p{
  color:#667085;
}
.sector-leader-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
}
.sector-leader-body{
  display:flex;
  align-items:center;
  gap:14px;
}
.sector-leader-body h3{
  margin:0 0 4px;
  font-size:20px;
  letter-spacing:-.03em;
}
.sector-leader-body p{
  margin:8px 0 0;
  font-weight:700;
  color:#25553b;
}
.sector-leader-empty{
  display:flex;
  align-items:center;
  gap:12px;
}
.empty-avatar{
  width:72px;
  height:72px;
  border-radius:20px;
  background:var(--green-100);
  display:grid;
  place-items:center;
  font-size:28px;
  flex:0 0 auto;
}
@media(max-width:1200px){
  .leader-gallery-grid,
  .sector-leaders-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:720px){
  .leader-gallery-grid,
  .sector-leaders-grid{grid-template-columns:1fr;}
  .sector-leader-body{align-items:flex-start;}
  .leader-gallery-card{padding:12px;}
}


/* Revisão final: fotos dos líderes leves e alinhadas */
.avatar.has-photo{
  background:#e9f7ec;
  color:transparent;
}

.avatar.has-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.user-chip{
  min-width:0;
}

.user-chip > div:last-child{
  min-width:0;
}

.user-chip strong,
.user-chip small{
  max-width:150px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.leader-gallery-card b{
  color:#102132;
}

.leader-gallery-card small{
  font-weight:800;
  line-height:1.35;
}

.sector-leader-avatar{
  border:3px solid #fff;
  box-shadow:0 12px 26px rgba(5,32,18,.13);
}

@media(max-width:720px){
  .top-right .user-chip strong,
  .top-right .user-chip small{
    max-width:110px;
  }
}


/* Topo profissional desktop — não altera a versão mobile */
@media (min-width:721px){
  .shell.sidebar-collapsed{
    grid-template-columns:90px 1fr;
  }

  .shell.sidebar-collapsed .sidebar{
    padding:22px 12px;
  }

  .shell.sidebar-collapsed .sidebar .brand-logo-img{
    display:none;
  }

  .shell.sidebar-collapsed .sidebar .brand-logo-block{
    width:54px;
    height:54px;
    max-width:54px;
    margin:0 auto 22px;
    border-radius:18px;
    background:rgba(255,255,255,.10);
    display:grid;
    place-items:center;
  }

  .shell.sidebar-collapsed .sidebar .brand-logo-block::after{
    content:'SF';
    color:white;
    font-weight:1000;
    letter-spacing:-.06em;
    font-size:18px;
  }

  .shell.sidebar-collapsed .nav-section,
  .shell.sidebar-collapsed .side-foot{
    display:none;
  }

  .shell.sidebar-collapsed .nav-btn{
    justify-content:center;
    padding:14px 10px;
    min-height:50px;
  }

  .shell.sidebar-collapsed .nav-btn span:not(.nav-icon){
    display:none;
  }

  .shell.sidebar-collapsed .nav-icon{
    width:auto;
    font-size:19px;
  }

  .professional-topbar{
    overflow:visible;
  }

  .professional-topbar .hamb{
    transition:transform .18s ease, background .18s ease, border-color .18s ease;
  }

  .professional-topbar .hamb:hover{
    background:var(--green-50);
    border-color:#cfe3d4;
    transform:translateY(-1px);
  }

  .top-date{
    color:#34423a;
    font-weight:700;
    white-space:nowrap;
  }

  .topbar-menu-wrap,
  .user-menu-wrap{
    position:relative;
    display:inline-flex;
    align-items:center;
  }

  .top-icon-btn{
    transition:background .18s ease, border-color .18s ease, transform .18s ease;
  }

  .top-icon-btn:hover{
    background:var(--green-50);
    border-color:#cfe3d4;
    transform:translateY(-1px);
  }

  .user-chip-btn{
    border:1px solid transparent;
    background:transparent;
    border-radius:999px;
    padding:6px 9px 6px 6px;
    transition:background .18s ease, border-color .18s ease, box-shadow .18s ease;
  }

  .user-chip-btn:hover{
    background:#fff;
    border-color:var(--line);
    box-shadow:0 8px 22px rgba(5,32,18,.07);
  }

  .user-chevron{
    color:#667085;
    font-size:13px;
    margin-left:2px;
  }

  .top-dropdown{
    position:absolute;
    top:calc(100% + 12px);
    right:0;
    width:310px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:20px;
    box-shadow:0 22px 48px rgba(5,32,18,.16);
    padding:10px;
    z-index:120;
    display:none;
  }

  .topbar-menu-wrap.open .top-dropdown,
  .user-menu-wrap.open .top-dropdown{
    display:block;
  }

  .top-dropdown-head{
    padding:10px 10px 12px;
    border-bottom:1px solid var(--line);
    margin-bottom:8px;
  }

  .top-dropdown-head b,
  .top-dropdown-head small{
    display:block;
  }

  .top-dropdown-head small{
    margin-top:3px;
    color:#667085;
    font-size:12px;
    font-weight:800;
  }

  .top-notif-list{
    display:grid;
    gap:6px;
  }

  .top-notif-item,
  .top-notif-empty,
  .user-dropdown-item{
    width:100%;
    border:0;
    background:transparent;
    border-radius:14px;
    padding:11px;
    display:flex;
    align-items:center;
    gap:10px;
    text-align:left;
    color:#17211b;
  }

  .top-notif-item:hover,
  .user-dropdown-item:hover{
    background:#f5faf6;
  }

  .top-notif-item span,
  .top-notif-empty span{
    width:34px;
    height:34px;
    border-radius:12px;
    background:var(--green-100);
    display:grid;
    place-items:center;
    flex:0 0 auto;
  }

  .top-notif-item b,
  .top-notif-item small,
  .top-notif-empty b,
  .top-notif-empty small{
    display:block;
  }

  .top-notif-item small,
  .top-notif-empty small{
    color:#667085;
    font-size:12px;
    margin-top:2px;
    font-weight:750;
  }

  .user-dropdown{
    width:230px;
  }

  .user-dropdown-item{
    font-weight:900;
    justify-content:flex-start;
  }

  .user-dropdown-item.danger{
    color:#b42318;
  }

  .user-dropdown-item.danger:hover{
    background:#fff1f1;
  }

  .profile-modal-card{
    display:flex;
    align-items:center;
    gap:16px;
    border:1px solid var(--line);
    background:#fbfdfb;
    border-radius:20px;
    padding:16px;
  }

  .profile-modal-card h3{
    margin:0 0 8px;
    font-size:22px;
  }

  .profile-modal-card p{
    margin:4px 0;
    color:#425046;
  }
}

@media (max-width:720px){
  .professional-topbar,
  .top-dropdown,
  .user-dropdown,
  .top-notifications-panel{
    display:none!important;
  }
}


/* Correção final: menu lateral recolhido no PC sem sobrepor o conteúdo */
@media (min-width:721px){
  body:not(.tv-mode) .shell{
    display:grid!important;
    grid-template-columns:var(--sidebar) minmax(0,1fr)!important;
    min-height:100%!important;
    width:100%!important;
  }

  body:not(.tv-mode) .shell.sidebar-collapsed{
    display:grid!important;
    grid-template-columns:92px minmax(0,1fr)!important;
  }

  body:not(.tv-mode) .shell .sidebar{
    position:sticky!important;
    top:0!important;
    width:auto!important;
    min-width:0!important;
    height:100vh!important;
    z-index:30!important;
  }

  body:not(.tv-mode) .shell.sidebar-collapsed .sidebar{
    width:92px!important;
    padding:20px 10px!important;
  }

  body:not(.tv-mode) .shell .main{
    min-width:0!important;
    width:100%!important;
    overflow:hidden!important;
  }

  body:not(.tv-mode) .shell.sidebar-collapsed .main{
    grid-column:2!important;
  }

  body:not(.tv-mode) .shell.sidebar-collapsed .sidebar .brand{
    margin:0 0 18px!important;
    min-height:54px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }

  body:not(.tv-mode) .shell.sidebar-collapsed .sidebar .brand-logo-block{
    width:54px!important;
    height:54px!important;
    max-width:54px!important;
    margin:0 auto!important;
    border-radius:18px!important;
    background:rgba(255,255,255,.10)!important;
    display:grid!important;
    place-items:center!important;
  }

  body:not(.tv-mode) .shell.sidebar-collapsed .sidebar .brand-logo-img{
    display:none!important;
  }

  body:not(.tv-mode) .shell.sidebar-collapsed .sidebar .brand-logo-block::after{
    content:'SF';
    color:#fff;
    font-weight:1000;
    font-size:18px;
    letter-spacing:-.06em;
  }

  body:not(.tv-mode) .shell.sidebar-collapsed .nav{
    align-items:center!important;
  }

  body:not(.tv-mode) .shell.sidebar-collapsed .nav-btn{
    width:56px!important;
    height:46px!important;
    min-height:46px!important;
    justify-content:center!important;
    padding:0!important;
    border-radius:15px!important;
  }

  body:not(.tv-mode) .shell.sidebar-collapsed .nav-btn span:not(.nav-icon),
  body:not(.tv-mode) .shell.sidebar-collapsed .nav-section,
  body:not(.tv-mode) .shell.sidebar-collapsed .side-foot{
    display:none!important;
  }

  body:not(.tv-mode) .shell.sidebar-collapsed .nav-icon{
    width:auto!important;
    margin:0!important;
    font-size:19px!important;
    text-align:center!important;
  }

  body:not(.tv-mode) .shell.sidebar-collapsed .topbar{
    left:auto!important;
    width:100%!important;
  }
}

@media (max-width:720px){
  body:not(.tv-mode) .shell,
  body:not(.tv-mode) .shell.sidebar-collapsed{
    display:block!important;
    width:100%!important;
  }
}


/* Ajuste: divisão coletiva igual editável, sem distribuir sobra */
.preview-person-editable{
  align-items:center;
}
.preview-person-editable input.equalQty{
  width:86px;
  min-width:72px;
  padding:7px 8px;
  border:1px solid var(--line);
  border-radius:10px;
  font-weight:900;
  text-align:right;
  color:var(--green-800);
  background:#fff;
}
.preview-person-editable b{
  font-size:13px;
}
.summary-box small{
  color:var(--muted);
  font-weight:700;
}

/* Conferência - filtros rápidos */
.review-fast-filters{
  display:grid;
  grid-template-columns:minmax(220px,1.2fr) minmax(220px,1.2fr) minmax(260px,1.4fr) auto auto;
  gap:10px;
  align-items:end;
  margin:14px 0 16px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#f8fcf9;
}
.review-fast-filters label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  font-weight:900;
  color:#344054;
}
.review-fast-filters select,
.review-fast-filters input{
  width:100%;
  height:44px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:0 12px;
  font-weight:800;
  color:#102132;
  background:#fff;
}
.review-fast-filters small{
  align-self:center;
  font-weight:900;
  color:#667085;
  white-space:nowrap;
}
@media (max-width:1100px){
  .review-fast-filters{grid-template-columns:1fr 1fr;}
  .review-fast-filters .review-search-label{grid-column:1 / -1;}
}
@media (max-width:700px){
  .review-fast-filters{grid-template-columns:1fr;}
  .review-fast-filters .btn{width:100%;}
  .review-fast-filters small{justify-self:start;}
}

/* Relatórios - subaba Comparativos */
.report-subtabs{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 16px}
.report-tab{border:1px solid var(--line);background:#fff;border-radius:14px;padding:12px 18px;font-weight:900;color:#34423a;box-shadow:var(--shadow-soft);cursor:pointer}
.report-tab.active{background:var(--green-900);color:#fff;border-color:var(--green-900)}
.compare-toolbar{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0 18px}
.compare-toolbar label{display:flex;flex-direction:column;gap:7px;font-weight:900;color:#34423a;font-size:13px}
.compare-toolbar input,.compare-toolbar select{border:1px solid var(--line);background:#fff;border-radius:12px;padding:11px 12px;font-weight:800;color:#34423a;min-width:0}
.compare-toolbar .btn{align-self:end;min-height:42px}
.compare-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:12px 0 14px}
.compare-summary-grid>div,.compare-mini-card{border:1px solid var(--line);background:#fbfdfb;border-radius:18px;padding:16px;min-height:96px}
.compare-summary-grid small,.compare-mini-card small{display:block;color:#667085;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.compare-summary-grid b,.compare-mini-card b{display:block;margin-top:7px;color:#102132;font-size:14px;line-height:1.25}
.compare-summary-grid strong{display:block;margin-top:8px;color:var(--green-900);font-size:22px;line-height:1.1}
.compare-detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}
.compare-mini-card span{display:block;margin-top:8px;font-weight:900;color:#344054}
.compare-diff{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:6px 10px;font-weight:900;font-size:12px;background:#eef2f0;color:#344054;white-space:nowrap}
.compare-diff.pos{background:#e7f7ec;color:#0b7a37}.compare-diff.neg{background:#fff0f0;color:#b42318}.compare-diff.zero{background:#eef2f0;color:#667085}
.compare-table-head{margin-top:8px}
@media (max-width:1100px){.compare-toolbar,.compare-summary-grid,.compare-detail-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:720px){.report-subtabs{display:grid;grid-template-columns:1fr}.report-tab{width:100%}.compare-toolbar,.compare-summary-grid,.compare-detail-grid{grid-template-columns:1fr}.compare-toolbar .btn{width:100%}}

/* Ajuste: cadeado para manter colaboradores selecionados no lançamento coletivo */
.collab-lock-btn.locked{
  border-color: rgba(22, 101, 52, .25);
  background: var(--green-50, #ecfdf3);
  color: var(--green-800, #166534);
  font-weight: 900;
}
.collab-tools button:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.collab-lock-note{
  display:none;
  margin: -4px 0 10px;
  padding: 9px 11px;
  border: 1px dashed rgba(22, 101, 52, .35);
  border-radius: 12px;
  background: rgba(240, 253, 244, .72);
  color: var(--green-800, #166534);
  font-size: 12px;
  font-weight: 800;
}
.collab-lock-note.show{display:block;}
.chips.locked .chip:not(.selected){opacity:.45;}
.chip.locked{cursor:not-allowed;}

/* Controle de Erros da Separação */
.sep-tabs{margin:0 0 18px 0;display:flex;gap:10px;flex-wrap:wrap}
.sep-filter-card{margin-bottom:18px;padding:16px}
.sep-filter-grid,.sep-form-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px;align-items:end}
.sep-form-grid.compact{grid-template-columns:1fr 1fr auto;margin-bottom:14px}
.sep-form-grid label,.sep-filter-grid label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:#244236;font-size:13px}
.sep-form-grid input,.sep-form-grid select,.sep-filter-grid input,.sep-filter-grid select,.sep-check-table input{border:1px solid #dce8df;border-radius:12px;padding:11px 12px;background:#fff;outline:none;font:inherit;min-height:42px}
.sep-form-panel{margin-bottom:18px}
.sep-calc-preview{align-self:stretch;border:1px dashed #9cc7ad;background:#f2fbf5;border-radius:14px;padding:12px 14px;font-weight:800;color:#0f6b3d;display:flex;align-items:center}
.sep-kpis{margin-bottom:18px}
.sep-chart{min-height:310px}
.sep-bars{display:flex;flex-direction:column;gap:12px}
.sep-bar-row{display:grid;grid-template-columns:160px 1fr 86px;gap:12px;align-items:center;font-size:13px}
.sep-bar-row>span{font-weight:700;color:#263f34;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sep-bar-row>div{height:12px;background:#edf4ef;border-radius:999px;overflow:hidden}
.sep-bar-row i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#1d7d43,#77bf69)}
.sep-bar-row>b{text-align:right;color:#143d25}
.switch-check{display:inline-flex;gap:8px;align-items:center;font-weight:700;color:#1f5535}
.switch-check.danger{color:#a43737}
.sep-check-table input[type="checkbox"]{width:18px;height:18px;min-height:auto;accent-color:#198754}
.sep-check-table .sep-check-note{width:100%;min-width:180px}
@media (max-width:900px){.sep-filter-grid,.sep-form-grid,.sep-form-grid.compact{grid-template-columns:1fr}.sep-bar-row{grid-template-columns:1fr}.sep-bar-row>b{text-align:left}.sep-tabs{overflow:auto;flex-wrap:nowrap}.sep-tabs button{white-space:nowrap}}
.sep-store-ref{align-self:stretch;border:1px dashed #c8dfcf;background:#f7fbf8;border-radius:14px;padding:12px 14px;font-weight:800;color:#415b4a;display:flex;align-items:center;line-height:1.35}

/* Ajuste profissional da aba Cadastros do Controle de Erros */
.sep-cadastros-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:16px;
}
.sep-card-full{width:100%;overflow:hidden;}
.sep-product-form{grid-template-columns:minmax(240px,1fr) minmax(180px,280px) auto;}
.sep-stores-table th:last-child,.sep-stores-table td:last-child{width:190px;text-align:right;}
.sep-stores-table .row-actions{justify-content:flex-end;gap:8px;flex-wrap:nowrap;}
@media (max-width:900px){
  .sep-product-form{grid-template-columns:1fr;}
  .sep-stores-table th:last-child,.sep-stores-table td:last-child{text-align:left;width:auto;}
  .sep-stores-table .row-actions{justify-content:flex-start;flex-wrap:wrap;}
}


.sep-history-search-row{grid-template-columns:minmax(260px,1fr) auto auto;align-items:center}
.sep-history-count{display:flex;align-items:center;justify-content:flex-end;font-weight:700;color:#415b4a}
.sep-filter-card .row-actions.wrap{justify-content:flex-start;gap:10px;flex-wrap:wrap;margin-top:12px}
.sep-check-table .row-actions{margin-top:14px}
.sep-product-row .row-actions,.table .row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
@media (max-width:900px){
  .sep-history-search-row{grid-template-columns:1fr}
  .sep-history-count{justify-content:flex-start}
}

.sep-filter-card .align-end{align-items:flex-end;justify-content:flex-start;height:100%}


/* Ações dos separadores no Controle de Erros */
tr[data-sep-person-row] .row-actions{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
}
tr[data-sep-person-row] input[readonly]{
  background:#fff;
  border-color:#dce8df;
  color:#001b36;
}
tr[data-sep-person-row].editing-row{
  background:#f7fbf8;
}
tr[data-sep-person-row].editing-row input{
  border-color:#82c596;
  box-shadow:0 0 0 3px rgba(25,135,84,.10);
}


/* Alinhamento final do botão Salvar erro dentro da grade */
.sep-form-panel .sep-form-grid{
  align-items:end;
}
.sep-save-error-field{
  display:flex;
  align-items:end;
  justify-content:flex-start;
  min-height:54px;
}
.sep-save-error-field #saveSepError{
  width:100%;
  max-width:220px;
  height:54px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0;
  white-space:nowrap;
}
@media (max-width:900px){
  .sep-save-error-field #saveSepError{
    max-width:none;
    width:100%;
  }
}


/* Jornada e Produção por Hora */
.jornada-control-panel{margin-bottom:18px}
.jornada-today-grid{display:grid;grid-template-columns:repeat(3,minmax(260px,1fr));gap:16px}
.jornada-sector-card{padding:18px;border:1px solid #e0ece4}
.jornada-sector-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px}
.jornada-sector-card h3{margin:4px 0 3px;font-size:22px;color:#143d25}
.jornada-sector-card small{color:#64746b}
.jornada-sector-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}
.jornada-sector-stats div{background:#f6fbf8;border:1px solid #e1eee6;border-radius:14px;padding:10px}
.jornada-sector-stats span{display:block;font-size:11px;color:#60766a;font-weight:700}
.jornada-sector-stats b{display:block;font-size:18px;color:#103b25;margin-top:4px}
.jornada-prod-filters{margin-bottom:16px}
.jornada-kpis{margin:12px 0 18px}
.jornada-prod-table td,.jornada-prod-table th{white-space:nowrap}
@media (max-width:1100px){.jornada-today-grid{grid-template-columns:1fr}}

/* Edição do Banco de Horas */
.edit-bank-hours{white-space:nowrap}
.banco-horas-table th,.banco-horas-table td,.banco-horas-history th,.banco-horas-history td{vertical-align:middle}

/* Correção dos filtros de período */
.custom-period-row label{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dfe9e3;border-radius:14px;padding:8px 12px;font-weight:800}
.custom-period-row input{border:0;outline:0;font-weight:800;color:#06213f;background:transparent}
.review-toolbar label small{display:block;margin-top:4px;color:#789087;font-size:12px;font-weight:700}

/* Permissões de abas por usuário */
.modal-section-title{font-size:15px;font-weight:900;color:#052b1b;margin:8px 0 2px}
.permission-help{background:#f3faf5;border:1px solid #dcefe3;border-radius:14px;padding:10px 12px;color:#476052;font-weight:700;margin-bottom:10px}
.permission-actions-mini{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:8px;margin-top:4px}
.permission-group-title{grid-column:1/-1;margin-top:8px;font-weight:900;color:#0b3d28;border-bottom:1px solid #e1ebe5;padding-bottom:4px}
.check-field{display:flex!important;align-items:center;gap:9px;border:1px solid #e2ece6;background:#fff;border-radius:12px;padding:10px 12px;font-weight:800;min-height:auto}
.check-field input{width:auto!important;accent-color:#007a3d}
.check-field input:disabled + span{opacity:.65}
@media (max-width:700px){.permission-grid{grid-template-columns:1fr}}


/* Mobile premium: abas arrastáveis e todas as abas liberadas */
@media (max-width:720px){
  .content{
    padding-bottom:106px!important;
  }

  .mobile-shell.mobile-shell-scroll,
  .mobile-shell{
    display:flex!important;
    grid-template-columns:none!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:8px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior-x:contain!important;
    position:fixed!important;
    left:10px!important;
    right:10px!important;
    bottom:10px!important;
    width:auto!important;
    max-width:none!important;
    padding:8px 9px!important;
    background:rgba(255,255,255,.96)!important;
    border:1px solid rgba(218,232,222,.96)!important;
    border-radius:26px!important;
    box-shadow:0 16px 38px rgba(13,42,24,.18)!important;
    backdrop-filter:blur(18px)!important;
    z-index:120!important;
    touch-action:pan-x!important;
    scrollbar-width:none!important;
  }

  .mobile-shell::-webkit-scrollbar{
    display:none!important;
  }

  .mobile-shell::before,
  .mobile-shell::after{
    content:"";
    flex:0 0 2px;
  }

  .mobile-shell button{
    flex:0 0 74px!important;
    width:74px!important;
    min-width:74px!important;
    min-height:58px!important;
    border:0!important;
    background:transparent!important;
    border-radius:18px!important;
    padding:7px 6px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    color:#53635b!important;
    font-size:10px!important;
    line-height:1.05!important;
    font-weight:900!important;
    scroll-snap-align:center!important;
    white-space:nowrap!important;
    transition:background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease!important;
  }

  .mobile-shell button span{
    width:28px!important;
    height:26px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:20px!important;
    line-height:1!important;
  }

  .mobile-shell button small{
    display:block!important;
    max-width:66px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:10px!important;
    font-weight:900!important;
    line-height:1.05!important;
  }

  .mobile-shell button.active{
    color:#064b28!important;
    background:linear-gradient(180deg,#eaffef,#dff6e6)!important;
    box-shadow:inset 0 0 0 1px rgba(9,126,58,.08), 0 6px 14px rgba(7,84,38,.12)!important;
    transform:translateY(-1px)!important;
  }

  .mobile-shell button:active{
    transform:scale(.96)!important;
  }

  .mobile-topbar{
    box-shadow:0 8px 22px rgba(16,39,24,.06)!important;
  }
}

@media (max-width:390px){
  .mobile-shell button{
    flex-basis:68px!important;
    width:68px!important;
    min-width:68px!important;
  }
  .mobile-shell button small{
    max-width:60px!important;
    font-size:9px!important;
  }
}


/* ajuste solicitado: nome da marca preto no topo mobile */
@media (max-width:720px){
  .mobile-brand-copy strong,
  .mobile-brand-copy strong span,
  .mobile-topbar .mobile-brand-copy strong{
    color:#111827 !important;
    -webkit-text-fill-color:#111827 !important;
  }
  .mobile-brand-copy small{
    color:#667085 !important;
  }
}


/* Painel TV profissional */
.tv-mode .content{
  padding:22px!important;
  background:radial-gradient(circle at top left,#0d5f34 0,#062316 34%,#03120d 100%)!important;
  min-height:100vh!important;
}
.tv-dashboard{display:flex;flex-direction:column;gap:18px;color:#fff}
.tv-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;background:linear-gradient(135deg,rgba(255,255,255,.14),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.16);border-radius:28px;padding:22px 24px;box-shadow:0 20px 60px rgba(0,0,0,.18)}
.tv-eyebrow{font-size:13px;text-transform:uppercase;letter-spacing:.12em;color:#b9f5c9;font-weight:900}
.tv-hero h1{margin:6px 0 4px;font-size:42px;line-height:1;letter-spacing:-.05em;color:#fff}
.tv-hero p{margin:0;color:#d7f4df;font-weight:800}
.tv-actions{display:flex;align-items:end;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.tv-actions label,.tv-filter-fixed{display:flex;flex-direction:column;gap:5px;color:#cdebd6;font-size:12px;font-weight:900}
.tv-actions input,.tv-actions select{height:44px;border:1px solid rgba(255,255,255,.22);border-radius:14px;background:rgba(255,255,255,.94);color:#062316;font-weight:900;padding:0 12px;min-width:150px}
.tv-kpi-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1fr;gap:14px}
.tv-kpi{background:#fff;color:#071c13;border-radius:26px;padding:20px 22px;box-shadow:0 18px 40px rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.35)}
.tv-kpi span{display:block;color:#5b6b62;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.tv-kpi strong{display:block;margin-top:8px;font-size:34px;line-height:1;color:#044625;letter-spacing:-.04em}
.tv-kpi.main strong{font-size:46px}
.tv-kpi small{display:block;margin-top:7px;color:#0b8a3e;font-weight:900}
.tv-sector-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.tv-sector-card{display:flex;align-items:center;gap:16px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.15);border-radius:24px;padding:18px 20px}
.tv-sector-card>span{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:rgba(255,255,255,.16);font-size:30px}
.tv-sector-card b{display:block;color:#dff8e7;font-size:14px}
.tv-sector-card strong{display:block;color:#fff;font-size:28px;letter-spacing:-.04em}
.tv-sector-card small{color:#bce6ca;font-weight:900}
.tv-main-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tv-panel{background:rgba(255,255,255,.96);color:#071c13;border-radius:28px;padding:20px;box-shadow:0 18px 40px rgba(0,0,0,.16)}
.tv-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.tv-panel h2{margin:0;color:#071c13;font-size:22px;letter-spacing:-.03em}
.tv-panel-head small{color:#607168;font-weight:900}
.tv-rank-list,.tv-feed{display:flex;flex-direction:column;gap:10px}
.tv-rank-item,.tv-feed-item{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;border:1px solid #e0ebe4;border-radius:18px;padding:12px 14px;background:#fbfefc}
.tv-rank-item>span{width:36px;height:36px;border-radius:12px;background:#e6f7eb;color:#075b2e;display:grid;place-items:center;font-weight:1000}
.tv-rank-item b,.tv-feed-item b{color:#102132}
.tv-rank-item small,.tv-feed-item small{display:block;color:#667085;font-weight:800;margin-top:2px}
.tv-rank-item strong,.tv-feed-item strong{color:#075b2e;font-size:20px;white-space:nowrap}
.tv-bars{display:flex;flex-direction:column;gap:12px}
.tv-bar-row{display:grid;grid-template-columns:56px 1fr 90px;align-items:center;gap:12px}
.tv-bar-row span{font-weight:1000;color:#102132}
.tv-bar-row div{height:18px;border-radius:999px;background:#eaf4ed;overflow:hidden}
.tv-bar-row i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0a7d3d,#85d679)}
.tv-bar-row b{color:#075b2e;text-align:right}
.tv-empty{border:1px dashed #dbe8df;border-radius:18px;background:#fbfefc;color:#667085;font-weight:900;padding:22px;text-align:center}
.tv-last{margin-bottom:10px}
@media (max-width:1100px){
  .tv-hero{flex-direction:column}
  .tv-actions{justify-content:flex-start}
  .tv-kpi-grid,.tv-sector-grid,.tv-main-grid{grid-template-columns:1fr}
  .tv-hero h1{font-size:34px}
}


/* TV standalone fix */
body.tv-mode{background:#03120d!important;overflow:auto}
body.tv-mode #app{min-height:100vh}
.tv-standalone{min-height:100vh;background:radial-gradient(circle at top left,#0d5f34 0,#062316 34%,#03120d 100%)}
.tv-content{max-width:none!important;padding:22px!important;min-height:100vh}
.tv-mode .tv-standalone .content{max-width:none!important;padding:22px!important;background:transparent!important}
.tv-mode .tv-standalone .tv-dashboard{max-width:100%!important}

.tv-kpi-grid-5{grid-template-columns:1.4fr 1fr 1fr 1fr 1fr}
.tv-main-grid-large{grid-template-columns:1.35fr .85fr}
.tv-lines{min-height:420px}
.tv-line-wrap{display:flex;flex-direction:column;gap:14px}
.tv-line-legend{display:flex;flex-wrap:wrap;gap:16px;align-items:center;color:#425247;font-weight:900}
.tv-line-legend span{display:inline-flex;align-items:center;gap:8px}
.tv-line-legend i{width:18px;height:4px;border-radius:999px;display:inline-block}
.tv-line-legend i.curr{background:#16a34a}
.tv-line-legend i.prev{background:#94a3b8}
.tv-line-legend strong{margin-left:auto}
.tv-line-legend .up{color:#0b8a3e}.tv-line-legend .down{color:#c43d1c}
.tv-line-chart{width:100%;height:240px;background:linear-gradient(180deg,#ffffff,#f8fbf9);border:1px solid #e0ebe4;border-radius:20px}
.tv-line-chart .axis{stroke:#d6e5db;stroke-width:1}
.tv-line-chart polyline{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.tv-line-chart polyline.curr{stroke:#16a34a}
.tv-line-chart polyline.prev{stroke:#94a3b8;stroke-dasharray:10 8}
.tv-line-chart .curr-point{fill:#16a34a;stroke:#fff;stroke-width:2}
.tv-line-footer{display:grid;grid-template-columns:repeat(auto-fit,minmax(86px,1fr));gap:10px}
.tv-line-label{background:#fbfefc;border:1px solid #e0ebe4;border-radius:16px;padding:10px 12px;text-align:center}
.tv-line-label b{display:block;color:#102132}
.tv-line-label span{display:block;color:#075b2e;font-weight:900;margin-top:2px}
.tv-line-label small{display:block;color:#667085;font-weight:800;margin-top:2px}
.tv-rank-error strong{font-size:16px}
@media (max-width: 1200px){
  .tv-kpi-grid-5,.tv-main-grid-large{grid-template-columns:1fr}
}


.tv-dashboard-pro{gap:20px}
.tv-hero-pro{background:linear-gradient(135deg,rgba(5,76,40,.92),rgba(2,45,24,.86));border:1px solid rgba(166,233,195,.16);box-shadow:0 22px 70px rgba(0,0,0,.24)}
.tv-actions-pro{align-items:flex-end}
.tv-actions-pro label,.tv-filter-fixed{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);padding:10px 12px;border-radius:16px}
.tv-actions-pro label span,.tv-filter-fixed span{color:#d9f0de}
.tv-kpi-grid-6{grid-template-columns:1.5fr repeat(5,1fr)}
.tv-sector-grid-pro .tv-sector-card{background:linear-gradient(135deg,rgba(10,77,43,.92),rgba(8,61,35,.82));border:1px solid rgba(176,238,199,.14)}
.tv-sector-grid-pro .tv-sector-card b,.tv-sector-grid-pro .tv-sector-card strong,.tv-sector-grid-pro .tv-sector-card small{color:#fff}
.tv-main-grid-hero{grid-template-columns:1.35fr .95fr}
.tv-main-grid-pro{grid-template-columns:1fr 1fr}
.tv-panel-pro{border:1px solid #e2ece5;box-shadow:0 20px 50px rgba(6,34,20,.16)}
.tv-summary-panel{display:flex;flex-direction:column;gap:16px}
.tv-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.tv-mini-metric{background:#f8fbf9;border:1px solid #e1ebe4;border-radius:20px;padding:16px}
.tv-mini-metric span{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#6b7c72;font-weight:900}
.tv-mini-metric strong{display:block;margin-top:8px;font-size:26px;line-height:1.1;color:#0a4a28;letter-spacing:-.03em}
.tv-mini-metric.green strong{color:#0c7a38}.tv-mini-metric.blue strong{color:#1d4ed8}.tv-mini-metric.amber strong{color:#a16207}.tv-mini-metric.purple strong{color:#6d28d9}.tv-mini-metric.danger strong{color:#c2410c}.tv-mini-metric.solid strong{color:#044625}
.tv-status-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tv-status-strip>div{background:linear-gradient(135deg,#0a4a28,#0d6436);color:#fff;border-radius:20px;padding:14px 16px}
.tv-status-strip b{display:block;font-size:26px;line-height:1}.tv-status-strip span{display:block;margin-top:6px;color:#d3f7de;font-weight:800}
.tv-flow-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}
.tv-flow-card,.tv-quality-card{background:#f8fbf9;border:1px solid #e1ebe4;border-radius:20px;padding:16px}
.tv-flow-card span,.tv-quality-card span{display:block;color:#66788b;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.tv-flow-card strong,.tv-quality-card strong{display:block;margin-top:8px;color:#073c22;font-size:26px;line-height:1.1}
.tv-quality-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media (max-width: 1400px){
  .tv-kpi-grid-6{grid-template-columns:1fr 1fr 1fr}
  .tv-main-grid-hero{grid-template-columns:1fr}
}
@media (max-width: 1200px){
  .tv-main-grid-pro,.tv-flow-grid,.tv-quality-grid,.tv-status-strip,.tv-mini-grid{grid-template-columns:1fr}
}


.tv-line-legend .tv-line-key{width:18px;height:4px;border-radius:999px;display:inline-block}
.tv-line-total-multi{margin-left:auto;display:flex;gap:16px;flex-wrap:wrap;justify-content:flex-end}
.tv-line-total-multi strong{font-size:14px}
.tv-line-label span{display:block;font-size:12px;font-weight:900;line-height:1.35}


/* TV visual professional refresh */
.tv-hero-pro{padding:26px 28px;border-radius:32px;background:linear-gradient(135deg,rgba(6,71,39,.96),rgba(4,38,22,.95));box-shadow:0 26px 80px rgba(0,0,0,.28)}
.tv-hero h1{font-size:40px}
.tv-hero p{max-width:760px;color:#d8eee0}
.tv-actions-pro{gap:12px}
.tv-actions-pro label,.tv-filter-fixed{min-width:140px}
.tv-kpi-grid-6{gap:16px;grid-template-columns:1.35fr repeat(5,minmax(0,1fr))}
.tv-kpi{padding:18px 20px;border-radius:24px;box-shadow:0 16px 36px rgba(7,28,19,.14)}
.tv-kpi span{font-size:12px}
.tv-kpi strong{font-size:30px}
.tv-kpi.main strong{font-size:42px}
.tv-sector-grid{gap:16px}
.tv-sector-card{padding:16px 18px;border-radius:22px}
.tv-main-grid-hero{grid-template-columns:minmax(0,1.55fr) minmax(380px,.9fr);align-items:start}
.tv-main-grid-pro{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.tv-main-grid-single{grid-template-columns:1fr}

.tv-panel{padding:24px;border-radius:30px}
.tv-panel-head{margin-bottom:18px}
.tv-panel h2{font-size:20px}
.tv-panel-head small{font-size:13px}
.tv-summary-panel{gap:14px}
.tv-mini-grid{gap:14px}
.tv-mini-metric{padding:18px;border-radius:18px;background:#fbfdfb}
.tv-mini-metric strong{font-size:22px}
.tv-status-strip>div{padding:16px 18px;border-radius:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.tv-status-strip b{font-size:24px}
.tv-lines{min-height:auto}
.tv-line-wrap-pro{gap:16px}
.tv-line-legend-pro{justify-content:space-between;align-items:flex-start;gap:12px 18px}
.tv-line-legend-pro > span{font-size:14px}
.tv-line-total-multi{margin-left:0;display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.tv-line-total-multi strong{background:color-mix(in srgb, var(--chip) 12%, white);border:1px solid color-mix(in srgb, var(--chip) 28%, white);color:var(--chip)!important;padding:8px 12px;border-radius:999px;font-size:13px;line-height:1}
.tv-line-chart-pro{height:320px;border-radius:24px;background:linear-gradient(180deg,#ffffff 0%,#f6faf7 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.tv-line-chart .grid{stroke:#edf3ef;stroke-width:1}
.tv-line-chart .xlab{fill:#7a8b81;font-size:11px;font-weight:800;text-anchor:middle}
.tv-line-footer-pro{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.tv-line-label{padding:12px 12px;border-radius:18px;min-height:108px;display:flex;flex-direction:column;justify-content:flex-start;gap:8px;background:#fcfefd;box-shadow:0 8px 20px rgba(6,34,20,.04)}
.tv-line-label b{font-size:14px;line-height:1}
.tv-line-values{display:flex;flex-direction:column;gap:4px}
.tv-line-values span{position:relative;padding-left:12px;font-size:12px;color:#334155 !important;font-weight:900;line-height:1.25}
.tv-line-values span::before{content:'';position:absolute;left:0;top:.42em;width:6px;height:6px;border-radius:999px;background:var(--line)}
.tv-line-label small{font-size:11px;margin-top:auto}
.tv-flow-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tv-flow-card,.tv-quality-card{padding:18px;border-radius:18px;background:#fbfdfb}
.tv-rank-item,.tv-feed-item{padding:12px 14px;border-radius:16px}
.tv-rank-item strong{font-size:18px}
@media (max-width:1600px){
  .tv-kpi-grid-6{grid-template-columns:1.3fr repeat(3,1fr)}
  .tv-line-footer-pro{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:1280px){
  .tv-main-grid-hero,.tv-main-grid-pro,.tv-kpi-grid-6,.tv-sector-grid,.tv-flow-grid,.tv-status-strip,.tv-mini-grid{grid-template-columns:1fr}
  .tv-line-footer-pro{grid-template-columns:repeat(2,minmax(0,1fr))}
}

.tv-line-values-on-chart .tv-line-chart{overflow:visible}
.tv-point-label{font-size:11px;font-weight:900;text-anchor:middle;paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}

/* Botão para sair do Painel TV */
.tv-exit-btn{
  background:rgba(255,255,255,.12)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.22)!important;
}
.tv-exit-btn:hover{
  background:rgba(255,255,255,.20)!important;
}

/* Jornada por período */
.jornada-period-head{align-items:flex-start;gap:18px;flex-wrap:wrap}
.jornada-period-grid{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:12px;min-width:min(100%,760px);align-items:end}
.jornada-period-grid label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:#244236;font-size:13px}
.jornada-period-grid input,.jornada-period-grid select{width:100%;border:1px solid #dce8df;border-radius:12px;padding:11px 12px;background:#fff;outline:none;font:inherit;min-height:42px;box-shadow:none}
.jornada-period-grid input:focus,.jornada-period-grid select:focus{border-color:#7cc087;box-shadow:0 0 0 4px rgba(55,166,91,.12)}
.jornada-period-pill{border:1px solid #dce9df;background:linear-gradient(135deg,#f8fcf9,#eef7f1);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;justify-content:center}
.jornada-period-pill span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#6b7f73;font-weight:800}
.jornada-period-pill b{font-size:18px;color:#103b25;margin-top:4px}
.jornada-sector-card-period h3{font-size:34px;line-height:1.05;margin:8px 0 4px}
.jornada-sector-card-period small{display:block}
.jornada-sector-subline{margin-bottom:14px;padding:10px 12px;border:1px solid #e4ece6;background:#fbfdfb;border-radius:14px}
.jornada-sector-subline b{display:block;color:#123925;font-size:15px}
.jornada-sector-subline small{margin-top:4px;color:#64746b}
.jornada-chart-box{margin:8px 0 18px;padding:18px;border:1px solid #e0ece4;border-radius:22px;background:linear-gradient(180deg,#fbfdfb 0%,#f6faf7 100%)}
.jornada-chart-legend{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center;margin-bottom:12px}
.jornada-chart-legend span{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;border:1px solid #e1ece5;background:#fff;color:#143d25;font-weight:800}
.jornada-chart-legend i{display:inline-block;width:14px;height:4px;border-radius:999px}
.jornada-chart-legend b{margin-left:4px;color:#0f6b35}
.jornada-chart-svg{width:100%;height:320px;display:block;overflow:visible}
.jornada-chart-svg .grid{stroke:#e6efe8;stroke-width:1}
.jornada-chart-svg .axis{stroke:#cad9cf;stroke-width:1.2}
.jornada-chart-svg polyline{fill:none;stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round}
.jornada-chart-svg .xlab,.jornada-chart-svg .ylab{fill:#78897f;font-size:11px;font-weight:800}
.jornada-chart-svg .xlab{text-anchor:middle}
.jornada-chart-svg .ylab{text-anchor:end}
@media (max-width:1200px){
  .jornada-period-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}
}
@media (max-width:900px){
  .jornada-period-grid{grid-template-columns:1fr}
  .jornada-chart-svg{height:260px}
}


/* Correção do modal de usuários/permissões: rolagem e edição completa */
.modal-overlay{
  overflow:auto !important;
  align-items:center !important;
  padding:24px !important;
}
.modal-card{
  max-height:92dvh !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
}
.modal-head,
.modal-actions{
  flex:0 0 auto !important;
}
.modal-body{
  flex:1 1 auto !important;
  overflow-y:auto !important;
  max-height:calc(92dvh - 150px) !important;
  padding-right:18px !important;
}
.permission-grid{
  padding-bottom:12px !important;
}
.permission-grid .check-field,
.check-field{
  cursor:pointer !important;
}
.permission-grid .check-field input{
  cursor:pointer !important;
}
.permission-grid .check-field.permission-disabled,
.permission-grid .check-field:has(input:disabled){
  opacity:.58 !important;
  cursor:not-allowed !important;
}
.permission-actions-mini{
  position:sticky !important;
  top:0 !important;
  z-index:3 !important;
  background:rgba(255,255,255,.96) !important;
  backdrop-filter:blur(8px) !important;
  padding:10px 0 !important;
}
@media (max-width:720px){
  .modal-overlay{
    align-items:flex-end !important;
    padding:0 !important;
  }
  .modal-card{
    width:100% !important;
    max-height:92dvh !important;
    border-radius:22px 22px 0 0 !important;
  }
  .modal-body{
    max-height:calc(92dvh - 145px) !important;
    padding-right:16px !important;
  }
}

/* Etapa 1 — correções urgentes */
.sep-check-bulk{justify-content:flex-start;margin:10px 0 14px}
.request-history-filters{margin:14px 0}
.sep-filter-grid{align-items:end}
.sep-history-count{font-weight:800;color:#344054}
@media(max-width:760px){
  .sep-check-bulk{position:sticky;top:0;z-index:3;background:#fff;padding:8px 0}
}

/* Etapa 2 — fechamento, gráfico, PDF e regras */
.sep-closing-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:14px 0}
.sep-closing-kpis>div{border:1px solid #dce8df;border-radius:14px;padding:14px;background:#f8fbf9}
.sep-closing-kpis span{display:block;color:#667085;font-size:12px;font-weight:700}
.sep-closing-kpis strong{display:block;font-size:24px;margin-top:4px}
.sep-line-card{margin:16px 0;border:1px solid #dce8df}
.sep-line-wrap{overflow-x:auto}
.sep-line-chart{width:100%;min-width:760px;height:auto}
.chart-axis{stroke:#98a2b3;stroke-width:1}
.line-errors,.line-loss{fill:none;stroke-width:3}
.line-errors{stroke:#0b6b3a}.line-loss{stroke:#d97706}
.point-errors{fill:#0b6b3a}.point-loss{fill:#d97706}
.chart-number{font-size:12px;font-weight:800;fill:#0b6b3a}
.chart-money{font-size:11px;font-weight:800;fill:#b45309}
.sep-line-chart text{font-size:11px;fill:#475467}
.sep-line-legend{display:flex;gap:18px;justify-content:flex-end;padding:0 10px 8px;font-size:12px;font-weight:700}
.sep-line-legend i{display:inline-block;width:20px;height:3px;vertical-align:middle;margin-right:6px}
.legend-errors{background:#0b6b3a}.legend-loss{background:#d97706}
@media(max-width:720px){.sep-closing-kpis{grid-template-columns:1fr}.sep-line-legend{justify-content:flex-start;flex-wrap:wrap}}

/* fechamento grafico refinado */
.sep-chart-shell{display:grid;gap:14px}
.sep-chart-topstats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sep-topstat{background:linear-gradient(180deg,#f9fcfa 0%,#f4faf6 100%);border:1px solid #d8e7dd;border-radius:14px;padding:12px 14px;box-shadow:0 8px 18px rgba(15,23,42,.04)}
.sep-topstat span{display:block;font-size:12px;font-weight:700;color:#667085;margin-bottom:4px}
.sep-topstat strong{display:block;font-size:16px;line-height:1.25;color:#0f5132}
.sep-line-card{background:linear-gradient(180deg,#ffffff 0%,#fbfcfc 100%);border:1px solid #d9e7de;box-shadow:0 16px 30px rgba(15,23,42,.05)}
.sep-line-wrap{overflow-x:auto;background:radial-gradient(circle at top right,rgba(22,163,74,.05),transparent 28%),linear-gradient(180deg,#f8fcf9 0%,#ffffff 100%);border:1px solid #e1ece5;border-radius:22px;padding:14px}
.sep-line-legend{display:flex;gap:18px;justify-content:flex-end;padding:2px 6px 10px;font-size:12px;font-weight:800;color:#344054}
.sep-line-legend span{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e3ebe6;padding:8px 12px;border-radius:999px;box-shadow:0 8px 16px rgba(15,23,42,.04)}
.sep-line-legend i{display:inline-block;width:22px;height:4px;border-radius:99px;vertical-align:middle}
.legend-errors{background:linear-gradient(90deg,#0b6b3a,#16a34a)}
.legend-loss{background:linear-gradient(90deg,#c56b05,#f59e0b)}
.sep-line-chart{width:100%;min-width:820px;height:auto}
.chart-backdrop{fill:#ffffff;stroke:#ecf2ee;stroke-width:1}
.chart-grid{stroke:#d8e7dd;stroke-width:1;stroke-dasharray:4 6}
.chart-axis-label{font-size:11px;font-weight:700;fill:#667085}
.chart-date{font-size:12px;font-weight:700;fill:#475467}
.area-errors{fill:url(#gradErr)}
.area-loss{fill:url(#gradLoss)}
.line-errors,.line-loss{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 6px 10px rgba(15,23,42,.08))}
.line-errors{stroke:#0b6b3a}
.line-loss{stroke:#d97706}
.point-errors{fill:#0b6b3a;stroke:#fff;stroke-width:3;filter:drop-shadow(0 4px 8px rgba(11,107,58,.25))}
.point-loss{fill:#d97706;stroke:#fff;stroke-width:3;filter:drop-shadow(0 4px 8px rgba(217,119,6,.25))}
.point-badge{stroke-width:1;filter:drop-shadow(0 8px 12px rgba(15,23,42,.06))}
.point-badge-errors{fill:#ecfdf3;stroke:#b7e2c4}
.point-badge-loss{fill:#fff7ed;stroke:#f6d6ae}
.chart-number{font-size:13px;font-weight:800;fill:#0b6b3a}
.chart-money{font-size:11px;font-weight:800;fill:#b45309}
@media (max-width:980px){.sep-chart-topstats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){.sep-chart-topstats{grid-template-columns:1fr}.sep-line-legend{justify-content:flex-start;flex-wrap:wrap}}

/* alinhamento refinado do gráfico de fechamento */
.sep-chart-shell{gap:16px}
.sep-chart-topstats{align-items:stretch}
.sep-topstat{display:flex;flex-direction:column;justify-content:center;min-height:76px}
.sep-line-wrap{padding:16px 16px 14px}
.sep-line-legend{padding:0 2px 12px;align-items:center}
.sep-line-legend span{min-height:38px}
.chart-axis-label{font-size:10.5px}
.point-guide{stroke-width:1.5;stroke-dasharray:4 4;opacity:.9}
.point-guide-errors{stroke:#7bc99a}
.point-guide-loss{stroke:#f0b56a}
.point-badge{shape-rendering:geometricPrecision}
.point-badge-errors{fill:#f0fdf4;stroke:#b7e2c4}
.point-badge-loss{fill:#fff7ed;stroke:#f3c78d}
.chart-number{font-size:12px;font-weight:900}
.chart-money{font-size:10.5px;font-weight:900}


/* ajuste estrutural e proporção do fechamento */
.sep-line-card{
  background:linear-gradient(180deg,#ffffff 0%,#fbfdfb 100%);
  border:1px solid #dbe8df;
  border-radius:26px;
  box-shadow:0 18px 36px rgba(15,23,42,.06);
  padding:22px 22px 20px;
  overflow:hidden;
}
.sep-line-card .panel-head{
  display:block;
  margin:0 0 18px;
  padding:0 2px;
}
.sep-line-card .panel-head > div{
  display:grid;
  gap:8px;
}
.sep-line-card .panel-head h3{
  margin:0;
  font-size:20px;
  line-height:1.15;
  letter-spacing:-.03em;
  color:#0f172a;
}
.sep-line-card .panel-head small{
  display:block;
  margin:0;
  font-size:13px;
  line-height:1.45;
  color:#667085;
  font-weight:600;
}
.sep-chart-shell{
  display:grid;
  gap:18px;
  align-items:start;
}
.sep-chart-topstats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:0;
}
.sep-topstat{
  min-height:88px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(180deg,#fbfdfb 0%,#f5faf6 100%);
  border:1px solid #dce8df;
  box-shadow:0 10px 22px rgba(15,23,42,.04);
}
.sep-topstat span{
  margin:0 0 8px;
  font-size:12px;
  line-height:1.2;
  color:#667085;
}
.sep-topstat strong{
  font-size:15px;
  line-height:1.25;
  letter-spacing:-.02em;
  color:#0b5132;
}
.sep-line-wrap{
  padding:18px 18px 16px;
  border-radius:24px;
  background:radial-gradient(circle at top right,rgba(22,163,74,.06),transparent 28%),linear-gradient(180deg,#f9fcfa 0%,#ffffff 100%);
}
.sep-line-legend{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  margin:0 0 12px;
  padding:0;
}
.sep-line-legend span{
  min-height:40px;
  padding:9px 14px;
  border-radius:999px;
  white-space:nowrap;
}
.sep-line-chart{
  width:100%;
  min-width:820px;
}
.chart-backdrop{
  rx:20px;
}
@media (max-width:1100px){
  .sep-chart-topstats{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:700px){
  .sep-line-card{padding:18px 16px 16px;}
  .sep-chart-topstats{grid-template-columns:1fr;}
  .sep-line-card .panel-head h3{font-size:18px;}
  .sep-line-card .panel-head small{font-size:12px;}
  .sep-line-legend{justify-content:flex-start;flex-wrap:wrap;}
  .sep-line-wrap{padding:14px 12px 12px;}
}


/* Etapa 3 — Pedido do Dia em lote */
.order-bulk-card{padding:22px}
.order-bulk-head{align-items:flex-start;gap:20px}
.order-main-filters{display:grid;grid-template-columns:repeat(2,minmax(190px,240px));gap:12px;align-items:end}
.order-main-filters label,.order-picker-toolbar label,.order-bulk-row label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#475467}
.order-main-filters input,.order-main-filters select,.order-picker-toolbar input,.order-bulk-row input{width:100%;min-height:42px;border:1px solid #dce8df;border-radius:12px;padding:9px 11px;background:#fff;color:#102132;font:inherit}
.order-fixed-sector{display:grid;gap:5px;padding:10px 13px;border:1px solid #dce8df;border-radius:12px;background:#f7fbf8}.order-fixed-sector span{font-size:11px;color:#667085;font-weight:800}.order-fixed-sector b{color:#0b5132}
.order-product-picker{margin-top:14px;border:1px solid #dce8df;border-radius:18px;padding:15px;background:#fbfdfb}
.order-picker-toolbar{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:13px}.order-picker-toolbar label{min-width:280px}
.order-product-checks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;max-height:270px;overflow:auto;padding:2px}
.order-product-check{display:flex;align-items:center;gap:9px;min-height:46px;padding:10px 12px;border:1px solid #e0e9e3;border-radius:13px;background:#fff;cursor:pointer;font-weight:750;color:#344054}.order-product-check.selected{border-color:#88c89b;background:#effaf2;color:#0b5132}.order-product-check input{accent-color:#0b6b3a}
.order-bulk-actions{display:flex;justify-content:space-between;align-items:end;gap:14px;margin:16px 0 10px}.order-bulk-actions>div{display:flex;gap:9px;align-items:end;flex-wrap:wrap}.order-bulk-actions label{display:grid;gap:5px;font-size:12px;font-weight:800;color:#475467}.order-bulk-actions input{height:38px;border:1px solid #dce8df;border-radius:11px;padding:7px 9px}
.order-bulk-list{display:grid;gap:10px}
.order-bulk-row{display:grid;grid-template-columns:minmax(190px,1.35fr) repeat(7,minmax(115px,1fr));gap:10px;align-items:end;padding:13px;border:1px solid #dce8df;border-radius:16px;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.035)}
.order-bulk-product{display:flex;gap:10px;align-items:center;align-self:center}.order-bulk-product>span{font-size:24px}.order-bulk-product b{display:block;color:#102132}.order-bulk-product small{display:block;color:#667085;margin-top:3px}
.order-priority-check{display:flex!important;flex-direction:column;align-items:flex-start}.order-priority-check input{width:22px!important;min-height:22px!important;accent-color:#d97706}
.order-bulk-row input:disabled{background:#f2f4f3;color:#98a2b3;cursor:not-allowed}
.order-draft-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-top:15px}.order-draft-summary>div{padding:13px 15px;border:1px solid #dce8df;border-radius:14px;background:#f7fbf8}.order-draft-summary span{display:block;font-size:11px;font-weight:800;color:#667085}.order-draft-summary strong{display:block;font-size:22px;color:#0b5132;margin-top:4px}
.order-save-line{display:flex;justify-content:flex-end;margin-top:14px}.order-save-line .btn{min-width:220px}
.order-sector-required{margin-top:14px}
.order-shift-panel{margin-top:16px}
.order-progress-table .row-actions{flex-wrap:wrap;justify-content:flex-start}
@media(max-width:1350px){.order-bulk-row{grid-template-columns:minmax(180px,1.3fr) repeat(3,minmax(125px,1fr))}.order-product-checks{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px){.order-bulk-head,.order-picker-toolbar,.order-bulk-actions{display:grid}.order-main-filters{grid-template-columns:1fr 1fr}.order-picker-toolbar label{min-width:0}.order-product-checks{grid-template-columns:repeat(2,1fr)}.order-bulk-row{grid-template-columns:1fr 1fr}.order-bulk-product{grid-column:1/-1}.order-draft-summary{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.order-main-filters,.order-product-checks,.order-bulk-row,.order-draft-summary{grid-template-columns:1fr}.order-bulk-product{grid-column:auto}.order-save-line .btn{width:100%}}

/* Etapa 4 — Jornada, produção por hora e Banco de Horas */
.jornada-average-chart{
  margin-top:16px;
  border:1px solid #dce8df;
  border-radius:22px;
  padding:18px;
  background:linear-gradient(180deg,#fbfdfb 0%,#fff 100%);
}
.jornada-chart-title h3{margin:0;font-size:19px;color:#102132}
.jornada-chart-title small{display:block;margin-top:5px;color:#667085;font-weight:600}
.jornada-point-label-bg{fill:#fff;stroke:#dce8df;stroke-width:1;filter:drop-shadow(0 5px 8px rgba(15,23,42,.08))}
.jornada-point-label{font-size:11px;font-weight:900;fill:#102132}
.bank-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 18px}
.bank-summary-card{border:1px solid #dce8df;border-radius:16px;padding:14px 16px;background:#f8fbf9}
.bank-summary-card span{display:block;color:#667085;font-size:12px;font-weight:800}
.bank-summary-card strong{display:block;margin-top:5px;font-size:22px;color:#0b5132}
.bank-summary-card strong.pos{color:#08783d}
.bank-summary-card strong.neg{color:#c62828}
.bank-summary-card strong.zero{color:#667085}
.bank-summary-card small{display:block;margin-top:4px;color:#667085}
.banco-horas-filters{align-items:end}
.banco-horas-filters .btn{align-self:end}
@media(max-width:980px){.bank-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.bank-summary-grid{grid-template-columns:1fr}.jornada-average-chart{padding:14px}}

/* Etapa 5 — Erros Injustificados */
.unjustified-form-panel{border-color:#f0dfc4;background:linear-gradient(180deg,#fffdfa 0%,#fff 100%)}
.unjustified-form-panel .unj-obs-field{grid-column:1/-1}
.unjustified-kpis{margin-top:16px}
.unjustified-table td{vertical-align:middle}
.unjustified-table th:nth-child(9),
.unjustified-table td:nth-child(9){min-width:220px}
@media(max-width:760px){
  .unjustified-form-panel .unj-obs-field{grid-column:auto}
  .unjustified-kpis{grid-template-columns:1fr}
}

/* Etapa 6 — Comparativos do Dashboard e estabilidade do Painel TV */
.dashboard-compare-controls{
  display:grid;
  grid-template-columns:minmax(220px,1fr) repeat(2,minmax(200px,.8fr));
  gap:12px;
  align-items:end;
  margin-bottom:16px;
  padding:14px;
  border:1px solid #dce8df;
  border-radius:18px;
  background:#f8fbf9;
}
.dashboard-compare-controls label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#475467}
.dashboard-compare-controls select{min-height:42px;border:1px solid #dce8df;border-radius:12px;background:#fff;padding:9px 12px;font-weight:700}
.dashboard-sector-compare{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.dashboard-sector-compare-card{padding:18px;border:1px solid #dce8df;border-radius:20px;background:linear-gradient(180deg,#fff,#f8fbf9)}
.sector-compare-head{display:flex;gap:12px;align-items:center}
.sector-compare-head>span{font-size:30px}
.sector-compare-head small,.individual-compare-card small{color:#667085;font-weight:700}
.sector-compare-head h3,.individual-compare-card h3{margin:3px 0 0}
.dashboard-sector-compare-card>strong,.individual-compare-card>strong{display:block;margin:18px 0 10px;font-size:28px;color:#0b5132}
.sector-compare-track,.individual-compare-track{height:10px;border-radius:999px;background:#e8f1eb;overflow:hidden}
.sector-compare-track i,.individual-compare-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0b6b3a,#35a85c)}
.sector-compare-meta{display:flex;justify-content:space-between;gap:10px;margin-top:12px;color:#667085;font-size:12px}
.individual-compare-grid{display:grid;grid-template-columns:1fr 1fr .72fr;gap:14px}
.individual-compare-card,.individual-compare-result{position:relative;padding:18px;border:1px solid #dce8df;border-radius:20px;background:#fff}
.compare-letter{position:absolute;right:14px;top:14px;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:#edf7f0;color:#0b6b3a;font-weight:900}
.individual-compare-result{display:flex;flex-direction:column;justify-content:center;background:linear-gradient(180deg,#0b5132,#083d27);color:#fff}
.individual-compare-result small{opacity:.75}
.individual-compare-result strong{font-size:24px;margin:8px 0}
.daily-production-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}
.daily-production-summary>div{padding:14px;border:1px solid #dce8df;border-radius:16px;background:#f8fbf9}
.daily-production-summary span{display:block;color:#667085;font-size:12px;font-weight:700}
.daily-production-summary strong{display:block;margin-top:5px;font-size:22px;color:#0b5132}
.daily-production-bars{display:grid;gap:10px}
.daily-production-row{display:grid;grid-template-columns:90px minmax(160px,1fr) 110px 90px;gap:12px;align-items:center}
.daily-production-row>div{height:11px;border-radius:999px;background:#e8f1eb;overflow:hidden}
.daily-production-row i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0b6b3a,#4eb66c)}
.daily-production-row strong{text-align:right}
.daily-production-row small{color:#667085}
.tv-content{overflow-anchor:none}
@media(max-width:980px){
  .dashboard-compare-controls{grid-template-columns:1fr}
  .dashboard-sector-compare{grid-template-columns:1fr}
  .individual-compare-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .daily-production-summary{grid-template-columns:1fr}
  .daily-production-row{grid-template-columns:76px 1fr 90px}
  .daily-production-row small{display:none}
}

/* Ajuste: produção total por dia em gráfico de linhas */
.daily-production-line-card{padding:18px;border:1px solid #dce8df;border-radius:22px;background:linear-gradient(180deg,#ffffff,#f8fbf9)}
.daily-production-line-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.daily-production-line-head h3{margin:0;font-size:18px;color:#102132}
.daily-production-line-head small{color:#667085;font-weight:600}
.daily-line-legend span{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid #dce8df;border-radius:999px;background:#fff;font-weight:800;color:#102132}
.daily-line-legend i{display:block;width:24px;height:4px;border-radius:999px;background:linear-gradient(90deg,#0b6b3a,#4eb66c)}
.daily-production-line-chart{width:100%;height:auto;display:block}
.daily-grid{stroke:#dce8df;stroke-dasharray:5 7;stroke-width:1}
.daily-ylab,.daily-xlab,.daily-xsub{fill:#667085;font-weight:700;font-size:12px}
.daily-xlab{fill:#344054;font-size:13px}
.daily-xsub{font-size:11px}
.daily-axis{stroke:#c9d8cf;stroke-width:1.2}
.daily-area{fill:url(#dailyLineFill)}
.daily-line{fill:none;stroke:#11823b;stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round}
.daily-line-dot{fill:#24a148;stroke:#fff;stroke-width:3}
.daily-point-value{fill:#0b5132;font-size:12px;font-weight:900}
@media(max-width:700px){
  .daily-production-line-head{flex-direction:column;align-items:flex-start}
  .daily-point-value{font-size:11px}
  .daily-ylab,.daily-xlab,.daily-xsub{font-size:10px}
}

/* Etapa 6: comparar setores em gráfico de linhas */
.sector-line-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:18px}
.sector-line-summary-card{padding:22px;border:1px solid #dce8df;border-radius:24px;background:linear-gradient(180deg,#ffffff,#f8fbf9);box-shadow:0 12px 28px rgba(15,23,42,.04)}
.sector-line-summary-top{display:flex;align-items:center;gap:14px;margin-bottom:14px}
.sector-line-summary-icon{font-size:42px;line-height:1}
.sector-line-summary-top small{display:block;color:#667085;font-weight:800;margin-bottom:2px}
.sector-line-summary-top h4{margin:0;font-size:18px;color:#102132}
.sector-line-summary-card strong{display:block;font-size:36px;line-height:1.1;margin-bottom:14px}
.sector-line-summary-meta{display:flex;justify-content:space-between;gap:12px;color:#667085;font-weight:700}
.sector-line-summary-meta b{color:#344054}
.daily-line-legend.multi{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
.sector-line-point-value{font-size:11px;font-weight:900}
@media(max-width:980px){.sector-line-summary-grid{grid-template-columns:1fr}}


/* Colaboradores - banco de horas profissional */
.collab-subtabs{margin:0 0 14px}
.bank-policy-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:14px}
.bank-policy-card{border:1px solid var(--line);background:#fbfdfb;border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:6px;min-height:112px}
.bank-policy-card small{color:#667085;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.bank-policy-card strong{font-size:22px;line-height:1.1;color:#102132}
.bank-policy-card span{color:#52616f;font-weight:700;font-size:13px}
.bank-summary-grid.professional{grid-template-columns:repeat(4,1fr)}
.bank-rule-cell{display:flex;flex-direction:column;gap:4px}
.bank-rule-cell small,.bank-status-today small,.bank-history-status small{color:#667085;font-size:12px;line-height:1.35}
.bank-actions-stack{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.banco-horas-table.professional td,.banco-horas-history.professional td{vertical-align:top}
.bank-status-today{display:flex;flex-direction:column;gap:4px;min-width:170px}
.bank-history-status{display:flex;flex-direction:column;gap:6px;min-width:180px}
.banco-horas-panel .history-title{margin:22px 0 10px}
.banco-horas-panel .history-title h3{margin-bottom:4px}
.bank-summary-card .pos{color:#0b7a37}
.bank-summary-card .neg{color:#b42318}
@media (max-width:1180px){
  .bank-policy-grid,.bank-summary-grid.professional{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:760px){
  .bank-policy-grid,.bank-summary-grid.professional{grid-template-columns:1fr}
  .bank-actions-stack{width:100%}
  .bank-actions-stack .btn{width:100%}
}


/* Ajustes visuais pontuais sem alterar a identidade do sistema */
.closing-top-filters{margin-bottom:16px;padding:16px 18px}
.closing-top-filters .filters{width:100%;align-items:flex-start}
.closing-top-filters .pill-row{width:100%;justify-content:flex-start}
.closing-top-filters .custom-period-row{justify-content:flex-start}

.banco-horas-panel .table-wrap{width:100%;max-width:100%;overflow-x:auto;overflow-y:visible}
.banco-horas-table.professional{width:100%;min-width:1180px;table-layout:auto}
.banco-horas-table.professional th:last-child,
.banco-horas-table.professional td:last-child{width:132px;min-width:132px;max-width:132px;padding-left:8px;padding-right:8px}
.bank-actions-stack{width:116px;min-width:116px;align-items:stretch}
.bank-actions-stack .btn{width:100%;white-space:nowrap;padding-left:10px;padding-right:10px}
.name-cell>div{min-width:0}
.name-cell b,.name-cell small{display:block}
.name-cell small{margin-top:3px}

.daily-production-line-chart{overflow:visible}
.daily-xlab{font-size:12px}
.request-history-wait{margin-top:14px}

@media(max-width:900px){
  .closing-top-filters .pill-row{align-items:flex-start}
  .banco-horas-table.professional{min-width:1120px}
}


/* Gestão de Materiais e Frequência */
.material-form-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:14px 0}
.material-form-grid label,.people-filters label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:900;color:#34423a}
.material-form-grid input,.material-form-grid select{height:44px;border:1px solid var(--line);border-radius:12px;padding:0 12px;background:#fff;font-weight:800;color:#34423a;min-width:0}
.material-wide{grid-column:span 2}
.material-mode-toggle{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0 14px}
.material-calculation-note{border:1px dashed #b7d4c1;background:#f3fbf5;border-radius:14px;padding:12px 14px;color:#166534;font-weight:800}
.material-register-layout{align-items:start}
.material-rule-table-wrap{max-height:620px;overflow:auto}
.material-rule-table-wrap input[type=checkbox]{width:20px;height:20px;accent-color:var(--green-900)}
.frequency-summary{margin-top:14px}
.frequency-table .tag.red{min-width:38px;justify-content:center}
@media(max-width:1100px){.material-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.material-form-grid{grid-template-columns:1fr}.material-wide{grid-column:auto}.materials-subtabs{display:grid;grid-template-columns:1fr}}

/* Lançamento conjunto de materiais */
.material-batch-top{margin-bottom:16px}
.material-batch-products{border:1px solid var(--line);border-radius:16px;background:#fbfdfb;padding:14px;margin:4px 0 16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.material-batch-products-head{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.material-batch-products-head div{display:flex;flex-direction:column;gap:3px}.material-batch-products-head small{color:var(--muted)}
.material-batch-product{display:flex;align-items:center;gap:10px;border:1px solid #dce8df;border-radius:13px;background:#fff;padding:11px 12px;cursor:pointer;min-width:0}
.material-batch-product input{width:19px;height:19px;accent-color:var(--green-900);flex:0 0 auto}
.material-batch-product span{display:flex;flex-direction:column;min-width:0}.material-batch-product b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.material-batch-product small{color:var(--muted);margin-top:2px}
.materials-report-chart{margin:18px 0 20px}
.materials-report-visuals{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:18px;align-items:stretch;margin:18px 0 20px}
.materials-report-visuals .materials-report-chart{margin:0}
.materials-loss-donut-card{padding:18px;border:1px solid #dce8df;border-radius:22px;background:linear-gradient(180deg,#ffffff,#f8fbf9);display:flex;flex-direction:column;gap:16px}
.materials-loss-donut-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.materials-loss-donut-head h3{margin:0;font-size:29px;line-height:1.05;letter-spacing:-.03em;color:#102132}
.materials-loss-donut-head small{display:block;margin-top:6px;color:#667085;font-size:14px;font-weight:700}
.materials-loss-donut-wrap{display:grid;grid-template-columns:190px minmax(0,1fr);gap:18px;align-items:center}
.materials-loss-donut-ring{width:190px;height:190px;border-radius:999px;position:relative;justify-self:center;box-shadow:inset 0 2px 10px rgba(255,255,255,.5),0 14px 30px rgba(6,34,20,.08)}
.materials-loss-donut-hole{position:absolute;inset:24px;background:#fff;border-radius:999px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.materials-loss-donut-hole strong{font-size:23px;line-height:1.05;color:#0a4a28;letter-spacing:-.04em}
.materials-loss-donut-hole span{margin-top:6px;color:#6b7c72;font-size:12px;text-transform:uppercase;letter-spacing:.08em;font-weight:900}
.materials-loss-donut-hole small{margin-top:4px;color:#94a3a8;font-size:11px;font-weight:800}
.materials-loss-donut-legend{display:flex;flex-direction:column;gap:10px;min-width:0}
.materials-donut-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;border:1px solid #e2ece5;background:#fbfdfb;border-radius:16px;padding:10px 12px}
.materials-donut-item i{width:12px;height:12px;border-radius:999px;display:block}
.materials-donut-item b{display:block;color:#102132;font-size:14px;line-height:1.2}
.materials-donut-item small{display:block;margin-top:2px;color:#667085;font-weight:800;font-size:12px}
.materials-donut-item strong{color:#0a4a28;font-size:15px;white-space:nowrap}
.materials-donut-item span{color:#667085;font-size:12px;font-weight:900;white-space:nowrap}
@media(max-width:1000px){.materials-report-visuals{grid-template-columns:1fr}.materials-loss-donut-wrap{grid-template-columns:1fr}}
@media(max-width:650px){.materials-loss-donut-head h3{font-size:24px}.materials-loss-donut-ring{width:170px;height:170px}.materials-loss-donut-hole{inset:20px}.materials-donut-item{grid-template-columns:auto 1fr auto}.materials-donut-item span{grid-column:2 / -1;justify-self:end}}
@media(max-width:1000px){.material-batch-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.material-batch-products{grid-template-columns:1fr}.material-batch-products-head{align-items:flex-start;flex-direction:column}}

/* Lançamento conjunto de materiais */
.material-batch-top{margin-bottom:16px}
.material-batch-products{border:1px solid var(--line);border-radius:16px;background:#fbfdfb;padding:14px;margin:4px 0 16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.material-batch-products-head{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.material-batch-products-head div{display:flex;flex-direction:column;gap:3px}.material-batch-products-head small{color:var(--muted)}
.material-batch-product{display:flex;align-items:center;gap:10px;border:1px solid #dce8df;border-radius:13px;background:#fff;padding:11px 12px;cursor:pointer;min-width:0}
.material-batch-product input{width:19px;height:19px;accent-color:var(--green-900);flex:0 0 auto}
.material-batch-product span{display:flex;flex-direction:column;min-width:0}.material-batch-product b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.material-batch-product small{color:var(--muted);margin-top:2px}
.materials-report-chart{margin:18px 0 20px}
@media(max-width:1000px){.material-batch-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.material-batch-products{grid-template-columns:1fr}.material-batch-products-head{align-items:flex-start;flex-direction:column}}

/* Ajuste pontual: espaço entre ações de materiais */
.material-action-buttons{display:flex;align-items:center;gap:10px;flex-wrap:nowrap}
.material-action-buttons .btn{margin:0}

/* Padrão visual premium para todos os ícones existentes */
.premium-outline-icon{
  width:1em;
  height:1em;
  display:block;
  color:#42b86b;
  filter:drop-shadow(0 0 3px rgba(67,190,108,.34));
  flex:0 0 auto;
  overflow:visible;
}
.nav-icon .premium-outline-icon{
  width:21px;
  height:21px;
  color:#8fd49e;
  stroke-width:1.75;
}
.nav-btn:hover .premium-outline-icon,
.nav-btn.active .premium-outline-icon{
  color:#d7ffe1;
  filter:drop-shadow(0 0 5px rgba(91,235,132,.58));
}
.title-icon .premium-outline-icon{
  width:31px;
  height:31px;
  color:#168347;
  filter:drop-shadow(0 0 4px rgba(22,131,71,.26));
}
.kpi-icon .premium-outline-icon,
.dash-icon .premium-outline-icon{
  width:28px;
  height:28px;
  color:#137a3f;
}
.glass-icon .premium-outline-icon{
  width:28px;
  height:28px;
  color:#bcefc8;
}
.sector-line-summary-icon .premium-outline-icon{
  width:38px;
  height:38px;
  color:#168347;
}
.alert-item>span .premium-outline-icon,
.login-security>span .premium-outline-icon,
.login-card-mark>span .premium-outline-icon,
.input-shell>span .premium-outline-icon{
  width:20px;
  height:20px;
}
.top-date.premium-iconized{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.top-date .premium-outline-icon,
.top-icon-btn .premium-outline-icon{
  width:20px;
  height:20px;
  color:#168347;
}
.mobile-shell button>span .premium-outline-icon{
  width:21px;
  height:21px;
}
@media(max-width:1100px){
  .nav-icon .premium-outline-icon{width:23px;height:23px}
}


/* Ícones premium nos filtros de setores */
.sector-pill.sector-filter{display:inline-flex;align-items:center;gap:8px}
.sector-filter-premium-icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.sector-filter-premium-icon .premium-outline-icon{width:20px;height:20px;color:currentColor;filter:drop-shadow(0 0 3px rgba(67,190,108,.28))}
.sector-pill.sector-filter.active .sector-filter-premium-icon .premium-outline-icon{color:#d7ffe1;filter:drop-shadow(0 0 5px rgba(91,235,132,.5))}
.sector-pill.sector-filter.orange .sector-filter-premium-icon .premium-outline-icon{color:#c97713;filter:drop-shadow(0 0 3px rgba(201,119,19,.25))}

/* Refinamento dos ícones destacados do dashboard */
.premium-panel-title{
  display:flex;
  align-items:center;
  gap:10px;
}
.premium-panel-title-icon{
  width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 36px;
  border-radius:12px;
  background:linear-gradient(145deg,#f2fbf5,#e5f6ea);
  border:1px solid rgba(35,145,76,.14);
  box-shadow:0 8px 18px rgba(20,95,50,.08), inset 0 1px 0 rgba(255,255,255,.85);
}
.premium-panel-title-icon .premium-outline-icon{
  width:21px;
  height:21px;
  color:#168445;
  filter:drop-shadow(0 0 4px rgba(40,190,95,.28));
}
.alert-title-icon{
  background:linear-gradient(145deg,#fff5f2,#fde9e7);
  border-color:rgba(210,55,43,.14);
}
.alert-title-icon .premium-outline-icon{
  color:#c43227;
  filter:drop-shadow(0 0 4px rgba(225,74,59,.22));
}
.trophy-title-icon{
  background:linear-gradient(145deg,#fffaf0,#f8efd9);
  border-color:rgba(185,139,35,.16);
}
.trophy-title-icon .premium-outline-icon{
  color:#a97a12;
  filter:drop-shadow(0 0 4px rgba(201,154,41,.24));
}
.top-icon-btn .premium-outline-icon{
  width:21px;
  height:21px;
  color:#168445;
  filter:drop-shadow(0 0 4px rgba(40,190,95,.28));
}
.top-icon-btn.premium-iconized{
  gap:0;
}
.top-icon-btn.premium-iconized>span:not(.badge-dot){display:none}
.top-notif-item>span,
.top-notif-empty>span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.top-notif-item>span .premium-outline-icon,
.top-notif-empty>span .premium-outline-icon{
  width:20px;
  height:20px;
  color:#168445;
  filter:drop-shadow(0 0 3px rgba(40,190,95,.25));
}
.dash-kpi-card .dash-icon.money{
  background:linear-gradient(145deg,#effaf2,#dff3e5);
  border:1px solid rgba(35,145,76,.12);
  box-shadow:0 9px 22px rgba(20,95,50,.08), inset 0 1px 0 rgba(255,255,255,.9);
}
.dash-kpi-card .dash-icon.money .premium-outline-icon{
  width:30px;
  height:30px;
  stroke-width:1.65;
  filter:drop-shadow(0 0 5px rgba(40,190,95,.28));
}
@media (max-width:700px){
  .premium-panel-title-icon{width:32px;height:32px;flex-basis:32px;border-radius:10px}
  .premium-panel-title-icon .premium-outline-icon{width:19px;height:19px}
}


/* Ícones dos produtos padronizados por setor */
.product-sector-icon{
  width:30px;
  height:30px;
  min-width:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  vertical-align:middle;
  margin-right:7px;
  border-radius:10px;
  color:#168445;
  background:linear-gradient(145deg,#f2fbf4,#e5f5e9);
  border:1px solid rgba(35,145,76,.13);
  box-shadow:0 6px 14px rgba(20,95,50,.07), inset 0 1px 0 rgba(255,255,255,.92);
}
.product-sector-icon svg{
  width:19px;
  height:19px;
  filter:drop-shadow(0 0 3px rgba(40,190,95,.24));
}
.product-sector-bandeja{color:#247f43}
.product-sector-agroindustria{color:#197a46}
.product-emoji .product-sector-icon{margin-right:0}
.order-bulk-product>span>.product-sector-icon,
.order-product-check span>.product-sector-icon{margin-right:8px}
.product-bonus-table td:first-child>b{
  display:inline-flex;
  align-items:center;
}
@media(max-width:700px){
  .product-sector-icon{width:28px;height:28px;min-width:28px;border-radius:9px;margin-right:6px}
  .product-sector-icon svg{width:17px;height:17px}
}
.tv-dashboard-scroll{padding-bottom:12px}
.tv-hero-extended{position:relative;top:auto;z-index:1;backdrop-filter:none}
.tv-actions-extended{row-gap:12px}
.tv-period-pills{display:flex;flex-wrap:wrap;gap:8px;width:100%;justify-content:flex-end}
.tv-period-btn{height:40px;padding:0 14px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;font-weight:900;cursor:pointer}
.tv-period-btn.active{background:#fff;color:#075b2e;box-shadow:0 12px 24px rgba(0,0,0,.18)}
.tv-kpi-grid-extended{grid-template-columns:1.25fr repeat(7,1fr)}
.tv-grid-2-1{grid-template-columns:1.2fr .8fr}
.tv-panel-head>div{display:flex;flex-direction:column;gap:3px}
.tv-badge{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;background:#edf7ef;color:#0b5c2f;font-weight:900;font-size:12px;white-space:nowrap}
.tv-badge.success{background:#dcfce7;color:#166534}
.tv-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.tv-mini-metric{border-radius:18px;padding:14px;background:#f6fbf7;border:1px solid #e2eee6;display:flex;flex-direction:column;gap:4px}
.tv-mini-metric span{font-size:12px;color:#64748b;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.tv-mini-metric strong{font-size:24px;color:#0a4a28;line-height:1.05}
.tv-mini-metric.blue strong{color:#1d4ed8}
.tv-mini-metric.amber strong{color:#b45309}
.tv-mini-metric.purple strong{color:#7c3aed}
.tv-mini-metric.danger strong{color:#dc2626}
.tv-mini-metric.neutral strong{font-size:18px}
.tv-insights-grid{display:grid;grid-template-columns:1fr;gap:10px}
.tv-insight-card{border-radius:20px;padding:16px 18px;background:#fbfefc;border:1px solid #e2eee6;display:flex;flex-direction:column;gap:4px}
.tv-insight-card span{font-size:12px;color:#64748b;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.tv-insight-card strong{font-size:28px;color:#0a4a28;line-height:1}
.tv-insight-card small{color:#667085;font-weight:800}
.tv-insight-card.warning strong{color:#b45309}
.tv-insight-card.neutral strong{color:#0f172a}
.tv-line-extended .tv-line-legend{margin-bottom:10px;display:flex;flex-wrap:wrap;gap:14px}
.tv-line-legend span{display:inline-flex;align-items:center;gap:8px;color:#102132;font-weight:900}
.tv-line-legend i{display:inline-block;width:28px;height:4px;border-radius:999px}
.tv-line-chart{width:100%;height:320px}
.tv-line-chart polyline{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.tv-line-chart polyline.dashed{stroke-dasharray:12 8}
.tv-line-chart circle{stroke:#fff;stroke-width:2}
.tv-grid-line{stroke:#e5ece7;stroke-width:1}
.tv-axis-line{stroke:#95aa9a;stroke-width:1.2}
.tv-axis-label,.tv-axis-x,.tv-value-label{font-family:inherit;text-anchor:middle;font-size:12px;font-weight:800}
.tv-axis-label{text-anchor:end;fill:#718096}
.tv-axis-x{fill:#667085}
.tv-value-label{paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.tv-bars-pro{gap:12px}
.tv-bar-row-pro{grid-template-columns:46px 1fr 110px;grid-template-areas:'index bar value' 'index label label';align-items:center}
.tv-bar-row-pro>span{grid-area:index;width:38px;height:38px;border-radius:12px;background:#eaf7ee;display:grid;place-items:center;color:#065f32}
.tv-bar-row-pro>div{grid-area:bar;height:18px;border-radius:999px;background:#ecf3ee;overflow:hidden}
.tv-bar-row-pro>b{grid-area:value;font-weight:1000;color:#065f32;text-align:right}
.tv-bar-row-pro>small{grid-area:label;color:#667085;font-weight:800;margin-left:0}
.tv-summary-strip{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.tv-summary-strip>div{border-radius:20px;background:#f7fbf7;border:1px solid #e0ebe4;padding:16px;display:flex;flex-direction:column;gap:4px}
.tv-summary-strip b{font-size:28px;color:#064f2a;line-height:1}
.tv-summary-strip span{font-size:13px;color:#667085;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
.tv-last-section{margin-bottom:20px}
.tv-main-grid-single .tv-panel{min-height:100%}
@media (max-width:1500px){
  .tv-kpi-grid-extended{grid-template-columns:repeat(4,1fr)}
  .tv-summary-strip{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:1100px){
  .tv-period-pills{justify-content:flex-start}
  .tv-kpi-grid-extended,.tv-mini-grid,.tv-summary-strip,.tv-grid-2-1{grid-template-columns:1fr!important}
  .tv-bar-row-pro{grid-template-columns:40px 1fr 90px}
}

/* TV dashboard refinement – compact, aligned, mixed charts */
.tv-kpi-grid-summary{grid-template-columns:1.4fr repeat(5,minmax(0,1fr));align-items:stretch}
.tv-sector-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tv-sector-mini{display:flex;align-items:center;gap:14px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);border-radius:22px;padding:16px 18px;min-height:96px}
.tv-sector-mini-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:rgba(255,255,255,.16);font-size:28px;flex:0 0 52px}
.tv-sector-mini b{display:block;color:#dff8e7;font-size:14px}
.tv-sector-mini strong{display:block;margin-top:2px;color:#fff;font-size:25px;line-height:1.1;letter-spacing:-.03em}
.tv-sector-mini small{display:block;margin-top:4px;color:#c9ebd4;font-weight:800}
.tv-dashboard-row-large{grid-template-columns:minmax(0,1.55fr) minmax(360px,.95fr);align-items:stretch}
.tv-dashboard-row-equal{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.tv-inline-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.tv-inline-kpis-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tv-inline-kpi{background:#fbfdfb;border:1px solid #e2ece5;border-radius:18px;padding:14px 16px;min-height:88px}
.tv-inline-kpi span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#6b7c72;font-weight:900}
.tv-inline-kpi strong{display:block;margin-top:8px;color:#0a4a28;font-size:22px;line-height:1.1;letter-spacing:-.03em}
.tv-inline-kpi small{display:block;margin-top:6px;color:#667085;font-weight:800;line-height:1.35}
.tv-donut-wrap{display:grid;grid-template-columns:220px 1fr;gap:18px;align-items:center}
.tv-donut-ring{width:220px;height:220px;border-radius:999px;position:relative;box-shadow:inset 0 2px 10px rgba(255,255,255,.35),0 14px 30px rgba(6,34,20,.08);justify-self:center}
.tv-donut-hole{position:absolute;inset:22px;background:#fff;border-radius:999px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
.tv-donut-hole strong{font-size:28px;line-height:1;color:#0a4a28;letter-spacing:-.04em}
.tv-donut-hole span{margin-top:6px;color:#6b7c72;font-size:12px;text-transform:uppercase;letter-spacing:.07em;font-weight:900}
.tv-donut-legend{display:flex;flex-direction:column;gap:10px;min-width:0}
.tv-donut-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:10px;border:1px solid #e2ece5;background:#fbfdfb;border-radius:16px;padding:10px 12px}
.tv-donut-item i{width:12px;height:12px;border-radius:999px;display:block}
.tv-donut-item b{display:block;color:#102132;font-size:14px;line-height:1.2}
.tv-donut-item small{display:block;margin-top:2px;color:#667085;font-weight:800;font-size:12px}
.tv-donut-item strong{color:#0a4a28;font-size:15px;white-space:nowrap}
.tv-donut-item span{color:#667085;font-size:12px;font-weight:900;white-space:nowrap}
.tv-subpanel-list{margin-top:16px}
.tv-subpanel-title{margin-bottom:10px;color:#5f6f66;font-size:12px;font-weight:1000;text-transform:uppercase;letter-spacing:.06em}
.tv-badge.warning{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}
.tv-badge.danger{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}
.tv-panel .tv-bars{margin-top:4px}
.tv-panel .tv-bars .tv-bar-row{grid-template-columns:42px minmax(0,1fr) 88px;align-items:center}
.tv-panel .tv-bars .tv-bar-row small{display:block;grid-column:2 / 4;color:#667085;font-weight:800;margin-top:4px;line-height:1.3}
.tv-panel .tv-bars .tv-bar-row b{font-size:15px}
.tv-line-extended .tv-line-legend{margin-bottom:6px}

@media (max-width: 1480px){
  .tv-kpi-grid-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tv-inline-kpis-3{grid-template-columns:1fr}
}
@media (max-width: 1180px){
  .tv-kpi-grid-summary,.tv-sector-mini-grid,.tv-dashboard-row-large,.tv-dashboard-row-equal,.tv-inline-kpis{grid-template-columns:1fr}
  .tv-donut-wrap{grid-template-columns:1fr}
}


/* Theme toggle + dark mode */
:root[data-theme="dark"]{
  --green-950:#07120d;
  --green-900:#0b1f15;
  --green-850:#103120;
  --green-800:#16442b;
  --green-700:#1e6a40;
  --green-600:#2f8a53;
  --green-500:#47b36b;
  --green-100:#133020;
  --green-50:#0d2116;
  --orange:#e09a3a;
  --orange-100:#2e1d09;
  --blue:#68a8ff;
  --blue-100:#13263d;
  --red:#f17575;
  --red-100:#301417;
  --yellow:#f3c66c;
  --yellow-100:#2f260d;
  --ink:#eef5f0;
  --muted:#9fb1a4;
  --line:#22352a;
  --panel:#101b14;
  --bg:#07120d;
  --shadow:0 20px 45px rgba(0,0,0,.32);
  --shadow-soft:0 10px 28px rgba(0,0,0,.24);
}

[data-theme="dark"] body,
[data-theme="dark"]{
  background:var(--bg);
  color:var(--ink);
}
[data-theme="dark"] .topbar,
[data-theme="dark"] .mobile-topbar{
  background:rgba(7,18,13,.92);
}
[data-theme="dark"] .login-page{background:linear-gradient(135deg,#07120d 0%,#0d1d14 100%)}
[data-theme="dark"] .login-card,
[data-theme="dark"] .card,
[data-theme="dark"] .history-card,
[data-theme="dark"] .preview-person,
[data-theme="dark"] .eye-toggle,
[data-theme="dark"] .mobile-shell,
[data-theme="dark"] .top-dropdown,
[data-theme="dark"] .prod-sheet,
[data-theme="dark"] .empty-sheet,
[data-theme="dark"] .timeline-item,
[data-theme="dark"] .support-card,
[data-theme="dark"] .glass-soft,
[data-theme="dark"] .pill,
[data-theme="dark"] .theme-switch,
[data-theme="dark"] .theme-option-btn,
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea,
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .notif,
[data-theme="dark"] .hamb,
[data-theme="dark"] .user-chip-btn,
[data-theme="dark"] .btn-ghost{
  background:var(--panel);
  color:var(--ink);
  border-color:var(--line);
}
[data-theme="dark"] .btn-soft{background:var(--green-100);color:#bfe7cb;border-color:#244731}
[data-theme="dark"] .table th,
[data-theme="dark"] .history-date,
[data-theme="dark"] .history-qty small,
[data-theme="dark"] .history-qty em,
[data-theme="dark"] .top-date,
[data-theme="dark"] .user-chip small,
[data-theme="dark"] .page-head p,
[data-theme="dark"] .finance-note,
[data-theme="dark"] .bar-label,
[data-theme="dark"] .top-dropdown-head small,
[data-theme="dark"] .field label,
[data-theme="dark"] .form-help,
[data-theme="dark"] .history-limit-note,
[data-theme="dark"] .notice,
[data-theme="dark"] .login-card p,
[data-theme="dark"] .mobile-brand-copy small{
  color:var(--muted);
}
[data-theme="dark"] .top-dropdown-head,
[data-theme="dark"] .table th,
[data-theme="dark"] .table td,
[data-theme="dark"] .history-card,
[data-theme="dark"] .history-product,
[data-theme="dark"] .top-dropdown,
[data-theme="dark"] .prod-sheet,
[data-theme="dark"] .prod-sheet-head,
[data-theme="dark"] .prod-sheet-name,
[data-theme="dark"] .prod-sheet-table td,
[data-theme="dark"] .prod-sheet-sign{
  border-color:var(--line);
}
[data-theme="dark"] .toggle,
[data-theme="dark"] .mini-toggle{background:#0b1c13;border-color:var(--line)}
[data-theme="dark"] .toggle button.active,
[data-theme="dark"] .mini-pill.active{background:#173022;color:#f4fff7}
[data-theme="dark"] .top-icon-btn:hover,
[data-theme="dark"] .user-chip-btn:hover,
[data-theme="dark"] .theme-switch:hover,
[data-theme="dark"] .theme-option-btn:hover{background:#14261d;border-color:#355742}
[data-theme="dark"] .tag,
[data-theme="dark"] .sector-pill{background:var(--green-100);color:#c7ecd2;border-color:#244731}
[data-theme="dark"] .tag.blue{background:var(--blue-100);color:#8dc0ff}
[data-theme="dark"] .tag.orange{background:var(--orange-100);color:#f3b35c}
[data-theme="dark"] .tag.red{background:var(--red-100);color:#ff9c9c}
[data-theme="dark"] .sector-pill.orange{background:var(--orange-100);color:#f3b35c;border-color:#63421d}
[data-theme="dark"] .history-qty strong,
[data-theme="dark"] .person-name,
[data-theme="dark"] .history-product,
[data-theme="dark"] .user-chip strong,
[data-theme="dark"] .page-head h1,
[data-theme="dark"] .panel h2,
[data-theme="dark"] .login-card h2{color:var(--ink)}
.theme-switch{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:10px 14px;font-weight:800;color:#34423a;min-height:42px}
.theme-switch-icon{font-size:16px;line-height:1}
.theme-switch-label{white-space:nowrap}
.mobile-top-actions{display:flex;align-items:center;gap:10px}
.theme-switch-mobile{padding:10px 12px;border-radius:14px}
.theme-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.theme-option-btn{width:100%;display:flex;align-items:center;gap:14px;padding:16px 18px;border:1px solid var(--line);border-radius:20px;background:var(--panel);color:inherit;text-align:left;transition:.18s}
.theme-option-icon{width:48px;height:48px;border-radius:16px;background:var(--green-100);display:grid;place-items:center;font-size:22px;flex:0 0 auto}
.theme-option-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.theme-option-copy strong{font-size:15px;color:inherit}
.theme-option-copy small{color:var(--muted);line-height:1.45}
.theme-option-state{margin-left:auto;font-size:12px;font-weight:900;color:var(--green-800);background:var(--green-100);border-radius:999px;padding:7px 10px;white-space:nowrap}
.theme-option-btn.active{border-color:#5fbf70;box-shadow:0 0 0 3px rgba(55,166,91,.12);background:var(--green-50)}
[data-theme="dark"] .theme-option-state{color:#dff5e6;background:#1b3b28}
@media (max-width:1180px){.theme-switch-label{display:none}.theme-switch{padding:10px 12px}}
@media (max-width:720px){.theme-options{grid-template-columns:1fr}.theme-switch-mobile{min-width:42px;justify-content:center}}

/* Ajustes finos de contraste e proporção de cores no tema escuro */
[data-theme="dark"] .kpi h3,
[data-theme="dark"] .compare-summary-grid small,
[data-theme="dark"] .compare-mini-card small,
[data-theme="dark"] .collab-chart-summary small,
[data-theme="dark"] .chart-note,
[data-theme="dark"] .jornada-chart-title small,
[data-theme="dark"] .tv-axis-label,
[data-theme="dark"] .tv-axis-x,
[data-theme="dark"] .chart-axis-label,
[data-theme="dark"] .chart-date,
[data-theme="dark"] .collab-label-card small,
[data-theme="dark"] .daily-line-legend span small,
[data-theme="dark"] .sector-compare-head small,
[data-theme="dark"] .individual-compare-card small,
[data-theme="dark"] .sector-compare-meta,
[data-theme="dark"] .report-range-inputs span,
[data-theme="dark"] .compare-toolbar label,
[data-theme="dark"] .dashboard-compare-controls label{
  color:#9fb1a4 !important;
}

[data-theme="dark"] .kpi strong,
[data-theme="dark"] .collab-chart-summary b,
[data-theme="dark"] .compare-summary-grid b,
[data-theme="dark"] .compare-summary-grid strong,
[data-theme="dark"] .compare-mini-card b,
[data-theme="dark"] .compare-mini-card span,
[data-theme="dark"] .collab-label-card b,
[data-theme="dark"] .jornada-chart-title h3,
[data-theme="dark"] .sector-compare-head h3,
[data-theme="dark"] .individual-compare-card h3,
[data-theme="dark"] .dashboard-sector-compare-card > strong,
[data-theme="dark"] .individual-compare-card > strong,
[data-theme="dark"] .tv-line-legend span,
[data-theme="dark"] .daily-line-legend span,
[data-theme="dark"] .sep-line-legend span,
[data-theme="dark"] .report-tab,
[data-theme="dark"] .compare-diff,
[data-theme="dark"] .report-toolbar-pro input,
[data-theme="dark"] .report-toolbar-pro select,
[data-theme="dark"] .compare-toolbar input,
[data-theme="dark"] .compare-toolbar select,
[data-theme="dark"] .dashboard-compare-controls select{
  color:#eef5f0 !important;
}

[data-theme="dark"] .collab-chart-summary > div,
[data-theme="dark"] .compare-summary-grid > div,
[data-theme="dark"] .compare-mini-card,
[data-theme="dark"] .dashboard-sector-compare-card,
[data-theme="dark"] .individual-compare-card,
[data-theme="dark"] .jornada-chart-box,
[data-theme="dark"] .bank-policy-card,
[data-theme="dark"] .report-tab,
[data-theme="dark"] .daily-line-legend span,
[data-theme="dark"] .sep-line-legend span,
[data-theme="dark"] .jornada-chart-legend span,
[data-theme="dark"] .compare-diff,
[data-theme="dark"] .collab-label-card span{
  background:#0f1c15 !important;
  border-color:#22352a !important;
  box-shadow:none !important;
}

[data-theme="dark"] .report-tab.active,
[data-theme="dark"] .toggle button.active,
[data-theme="dark"] .mini-pill.active{
  background:#1d6b3f !important;
  border-color:#1d6b3f !important;
  color:#ffffff !important;
}

[data-theme="dark"] .collab-chart-svg,
[data-theme="dark"] .tv-line-chart,
[data-theme="dark"] .tv-line-chart-pro,
[data-theme="dark"] .jornada-chart-box,
[data-theme="dark"] .dashboard-sector-compare-card,
[data-theme="dark"] .daily-production-line-chart,
[data-theme="dark"] .sep-line-chart{
  background:linear-gradient(180deg,#0d1712 0%, #101d16 100%) !important;
}

[data-theme="dark"] .collab-chart-svg,
[data-theme="dark"] .tv-line-chart,
[data-theme="dark"] .tv-line-chart-pro,
[data-theme="dark"] .jornada-chart-box,
[data-theme="dark"] .chart-backdrop{
  border-color:#22352a !important;
}

[data-theme="dark"] .tv-line-chart .axis,
[data-theme="dark"] .tv-line-chart .grid,
[data-theme="dark"] .jornada-chart-svg .grid,
[data-theme="dark"] .jornada-chart-svg .axis,
[data-theme="dark"] .chart-grid,
[data-theme="dark"] .chart-axis,
[data-theme="dark"] .daily-axis,
[data-theme="dark"] .tv-axis-line{
  stroke:#294236 !important;
}

[data-theme="dark"] .jornada-chart-svg .xlab,
[data-theme="dark"] .jornada-chart-svg .ylab,
[data-theme="dark"] .chart-axis-label,
[data-theme="dark"] .chart-date,
[data-theme="dark"] .tv-line-chart .xlab,
[data-theme="dark"] .tv-axis-label,
[data-theme="dark"] .tv-axis-x{
  fill:#9fb1a4 !important;
}

[data-theme="dark"] .chart-number,
[data-theme="dark"] .tv-value-label{
  fill:#8ee5a9 !important;
}

[data-theme="dark"] .chart-money{
  fill:#f3b35c !important;
}

[data-theme="dark"] .kpi small,
[data-theme="dark"] .compare-diff.pos,
[data-theme="dark"] .tv-line-legend .up{
  color:#7fe09d !important;
}

[data-theme="dark"] .compare-diff.pos{
  background:#12321f !important;
}

[data-theme="dark"] .compare-diff.neg,
[data-theme="dark"] .tv-line-legend .down{
  color:#ff9c9c !important;
  background:#301417 !important;
}

[data-theme="dark"] .compare-diff.zero{
  color:#c9d6ce !important;
  background:#17231c !important;
}

[data-theme="dark"] .sector-compare-track,
[data-theme="dark"] .individual-compare-track{
  background:#1a2a22 !important;
}


/* Ajuste mobile: lista de produtos embalados no filme */
@media (max-width: 650px){
  .material-batch-products{
    grid-template-columns:1fr !important;
    padding:12px;
  }
  .material-batch-products-head{
    align-items:flex-start;
    flex-direction:column;
  }
  .material-batch-product{
    display:grid !important;
    grid-template-columns:24px minmax(0,1fr);
    align-items:start;
    justify-content:flex-start;
    width:100%;
    gap:12px;
    padding:12px;
  }
  .material-batch-product input{
    width:22px;
    height:22px;
    margin-top:2px;
  }
  .material-batch-product span{
    display:flex;
    flex-direction:column;
    min-width:0;
    width:100%;
    overflow:hidden;
  }
  .material-batch-product b,
  .material-batch-product small{
    white-space:normal;
    overflow:visible;
    text-overflow:unset;
    word-break:break-word;
  }
}


/* Correção global de contraste do tema escuro */
[data-theme="dark"] .card,
[data-theme="dark"] .panel,
[data-theme="dark"] .form-card,
[data-theme="dark"] .history-card,
[data-theme="dark"] .preview-person,
[data-theme="dark"] .support-card,
[data-theme="dark"] .glass-soft,
[data-theme="dark"] .request-item,
[data-theme="dark"] .summary-box,
[data-theme="dark"] .collab-chart-summary > div,
[data-theme="dark"] .compare-summary-grid > div,
[data-theme="dark"] .compare-mini-card,
[data-theme="dark"] .dashboard-sector-compare-card,
[data-theme="dark"] .individual-compare-card,
[data-theme="dark"] .jornada-chart-box,
[data-theme="dark"] .bank-policy-card,
[data-theme="dark"] .report-tab,
[data-theme="dark"] .daily-line-legend span,
[data-theme="dark"] .sep-line-legend span,
[data-theme="dark"] .jornada-chart-legend span,
[data-theme="dark"] .compare-diff,
[data-theme="dark"] .collab-label-card span,
[data-theme="dark"] .material-batch-product,
[data-theme="dark"] .material-consumption-row,
[data-theme="dark"] .tv-summary-card,
[data-theme="dark"] .tv-chart-card,
[data-theme="dark"] .tv-kpi,
[data-theme="dark"] .tv-card,
[data-theme="dark"] .tv-panel,
[data-theme="dark"] .top-dropdown,
[data-theme="dark"] .prod-sheet,
[data-theme="dark"] .empty-sheet,
[data-theme="dark"] .timeline-item,
[data-theme="dark"] .mobile-shell,
[data-theme="dark"] .history-item,
[data-theme="dark"] .table-wrap,
[data-theme="dark"] .compare-card,
[data-theme="dark"] .report-card,
[data-theme="dark"] .analytics-card,
[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .sheet-card,
[data-theme="dark"] .filter-card,
[data-theme="dark"] .kpi-card,
[data-theme="dark"] .info-card{
  background:#101b14 !important;
  color:#eef5f0 !important;
  border-color:#22352a !important;
}

[data-theme="dark"] .card h1,
[data-theme="dark"] .card h2,
[data-theme="dark"] .card h3,
[data-theme="dark"] .card h4,
[data-theme="dark"] .card h5,
[data-theme="dark"] .card h6,
[data-theme="dark"] .panel h1,
[data-theme="dark"] .panel h2,
[data-theme="dark"] .panel h3,
[data-theme="dark"] .panel h4,
[data-theme="dark"] .panel h5,
[data-theme="dark"] .panel h6,
[data-theme="dark"] .form-card h1,
[data-theme="dark"] .form-card h2,
[data-theme="dark"] .form-card h3,
[data-theme="dark"] .form-card h4,
[data-theme="dark"] .form-card h5,
[data-theme="dark"] .form-card h6,
[data-theme="dark"] .history-card h1,
[data-theme="dark"] .history-card h2,
[data-theme="dark"] .history-card h3,
[data-theme="dark"] .history-card h4,
[data-theme="dark"] .person-name,
[data-theme="dark"] .history-product,
[data-theme="dark"] .table td,
[data-theme="dark"] .table td strong,
[data-theme="dark"] .table td b,
[data-theme="dark"] .kpi strong,
[data-theme="dark"] strong,
[data-theme="dark"] b{
  color:#f3fbf5 !important;
}

[data-theme="dark"] .card p,
[data-theme="dark"] .card small,
[data-theme="dark"] .card label,
[data-theme="dark"] .card em,
[data-theme="dark"] .panel p,
[data-theme="dark"] .panel small,
[data-theme="dark"] .panel label,
[data-theme="dark"] .panel em,
[data-theme="dark"] .form-card p,
[data-theme="dark"] .form-card small,
[data-theme="dark"] .form-card label,
[data-theme="dark"] .form-card em,
[data-theme="dark"] .history-card p,
[data-theme="dark"] .history-card small,
[data-theme="dark"] .history-card label,
[data-theme="dark"] .history-card em,
[data-theme="dark"] .table th,
[data-theme="dark"] .history-date,
[data-theme="dark"] .history-qty small,
[data-theme="dark"] .history-qty em,
[data-theme="dark"] .field label,
[data-theme="dark"] .form-help,
[data-theme="dark"] .notice,
[data-theme="dark"] .finance-note,
[data-theme="dark"] .bar-label,
[data-theme="dark"] .sector-compare-meta,
[data-theme="dark"] .report-range-inputs span,
[data-theme="dark"] .compare-toolbar label,
[data-theme="dark"] .dashboard-compare-controls label,
[data-theme="dark"] .page-head p{
  color:#a9bbb0 !important;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .report-toolbar-pro input,
[data-theme="dark"] .report-toolbar-pro select,
[data-theme="dark"] .compare-toolbar input,
[data-theme="dark"] .compare-toolbar select,
[data-theme="dark"] .dashboard-compare-controls select{
  background:#0d1712 !important;
  color:#eef5f0 !important;
  border-color:#294236 !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder{
  color:#8fa297 !important;
}

[data-theme="dark"] .toggle,
[data-theme="dark"] .mini-toggle,
[data-theme="dark"] .pill,
[data-theme="dark"] .chip,
[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .theme-switch,
[data-theme="dark"] .theme-option-btn,
[data-theme="dark"] .notif,
[data-theme="dark"] .hamb,
[data-theme="dark"] .user-chip-btn{
  background:#101b14 !important;
  color:#eef5f0 !important;
  border-color:#22352a !important;
}

[data-theme="dark"] .toggle button,
[data-theme="dark"] .mini-pill,
[data-theme="dark"] .pill,
[data-theme="dark"] .chip,
[data-theme="dark"] .btn-ghost,
[data-theme="dark"] .theme-switch-label,
[data-theme="dark"] .user-chip strong,
[data-theme="dark"] .mobile-brand-copy strong{
  color:#eef5f0 !important;
}

[data-theme="dark"] .topbar,
[data-theme="dark"] .mobile-topbar,
[data-theme="dark"] .sidebar{
  background:#07120d !important;
}

[data-theme="dark"] .title-icon,
[data-theme="dark"] .kpi-icon,
[data-theme="dark"] .theme-option-icon{
  box-shadow:none !important;
}

/* ===== Correção final do tema escuro (somente sistema, sem afetar Painel TV) ===== */
[data-theme="dark"] body:not(.tv-mode){
  background:linear-gradient(180deg,#06110c 0%, #08150f 100%);
  color:#eef5f0;
}

[data-theme="dark"] body:not(.tv-mode) .content,
[data-theme="dark"] body:not(.tv-mode) .mobile-content,
[data-theme="dark"] body:not(.tv-mode) main{
  color:#eef5f0;
}

[data-theme="dark"] body:not(.tv-mode) .page-head h1,
[data-theme="dark"] body:not(.tv-mode) .page-head h2,
[data-theme="dark"] body:not(.tv-mode) .page-head h3,
[data-theme="dark"] body:not(.tv-mode) .panel h1,
[data-theme="dark"] body:not(.tv-mode) .panel h2,
[data-theme="dark"] body:not(.tv-mode) .panel h3,
[data-theme="dark"] body:not(.tv-mode) .card h1,
[data-theme="dark"] body:not(.tv-mode) .card h2,
[data-theme="dark"] body:not(.tv-mode) .card h3,
[data-theme="dark"] body:not(.tv-mode) .card h4,
[data-theme="dark"] body:not(.tv-mode) .card h5,
[data-theme="dark"] body:not(.tv-mode) .card h6,
[data-theme="dark"] body:not(.tv-mode) .section-title,
[data-theme="dark"] body:not(.tv-mode) .person-name,
[data-theme="dark"] body:not(.tv-mode) .history-product,
[data-theme="dark"] body:not(.tv-mode) .user-chip strong,
[data-theme="dark"] body:not(.tv-mode) strong,
[data-theme="dark"] body:not(.tv-mode) b{
  color:#f4fbf6 !important;
}

[data-theme="dark"] body:not(.tv-mode) p,
[data-theme="dark"] body:not(.tv-mode) small,
[data-theme="dark"] body:not(.tv-mode) label,
[data-theme="dark"] body:not(.tv-mode) em,
[data-theme="dark"] body:not(.tv-mode) .page-head p,
[data-theme="dark"] body:not(.tv-mode) .finance-note,
[data-theme="dark"] body:not(.tv-mode) .form-help,
[data-theme="dark"] body:not(.tv-mode) .notice,
[data-theme="dark"] body:not(.tv-mode) .field label,
[data-theme="dark"] body:not(.tv-mode) .top-date,
[data-theme="dark"] body:not(.tv-mode) .bar-label,
[data-theme="dark"] body:not(.tv-mode) .chart-note,
[data-theme="dark"] body:not(.tv-mode) .sector-compare-meta,
[data-theme="dark"] body:not(.tv-mode) .chart-axis-label,
[data-theme="dark"] body:not(.tv-mode) .chart-date,
[data-theme="dark"] body:not(.tv-mode) .history-date,
[data-theme="dark"] body:not(.tv-mode) .table th,
[data-theme="dark"] body:not(.tv-mode) .mobile-brand-copy small,
[data-theme="dark"] body:not(.tv-mode) .user-chip small{
  color:#a8bbb0 !important;
}

[data-theme="dark"] body:not(.tv-mode) .card,
[data-theme="dark"] body:not(.tv-mode) .panel,
[data-theme="dark"] body:not(.tv-mode) .form-card,
[data-theme="dark"] body:not(.tv-mode) .history-card,
[data-theme="dark"] body:not(.tv-mode) .preview-person,
[data-theme="dark"] body:not(.tv-mode) .support-card,
[data-theme="dark"] body:not(.tv-mode) .glass-soft,
[data-theme="dark"] body:not(.tv-mode) .request-item,
[data-theme="dark"] body:not(.tv-mode) .summary-box,
[data-theme="dark"] body:not(.tv-mode) .history-item,
[data-theme="dark"] body:not(.tv-mode) .table-wrap,
[data-theme="dark"] body:not(.tv-mode) .compare-card,
[data-theme="dark"] body:not(.tv-mode) .report-card,
[data-theme="dark"] body:not(.tv-mode) .analytics-card,
[data-theme="dark"] body:not(.tv-mode) .dashboard-card,
[data-theme="dark"] body:not(.tv-mode) .sheet-card,
[data-theme="dark"] body:not(.tv-mode) .filter-card,
[data-theme="dark"] body:not(.tv-mode) .kpi-card,
[data-theme="dark"] body:not(.tv-mode) .info-card,
[data-theme="dark"] body:not(.tv-mode) .collab-chart-summary > div,
[data-theme="dark"] body:not(.tv-mode) .compare-summary-grid > div,
[data-theme="dark"] body:not(.tv-mode) .compare-mini-card,
[data-theme="dark"] body:not(.tv-mode) .dashboard-sector-compare-card,
[data-theme="dark"] body:not(.tv-mode) .individual-compare-card,
[data-theme="dark"] body:not(.tv-mode) .jornada-chart-box,
[data-theme="dark"] body:not(.tv-mode) .bank-policy-card,
[data-theme="dark"] body:not(.tv-mode) .report-tab,
[data-theme="dark"] body:not(.tv-mode) .daily-line-legend span,
[data-theme="dark"] body:not(.tv-mode) .sep-line-legend span,
[data-theme="dark"] body:not(.tv-mode) .jornada-chart-legend span,
[data-theme="dark"] body:not(.tv-mode) .compare-diff,
[data-theme="dark"] body:not(.tv-mode) .collab-label-card span,
[data-theme="dark"] body:not(.tv-mode) .material-batch-product,
[data-theme="dark"] body:not(.tv-mode) .material-consumption-row,
[data-theme="dark"] body:not(.tv-mode) .top-dropdown,
[data-theme="dark"] body:not(.tv-mode) .prod-sheet,
[data-theme="dark"] body:not(.tv-mode) .empty-sheet,
[data-theme="dark"] body:not(.tv-mode) .timeline-item,
[data-theme="dark"] body:not(.tv-mode) .mobile-shell,
[data-theme="dark"] body:not(.tv-mode) .sidebar,
[data-theme="dark"] body:not(.tv-mode) .topbar,
[data-theme="dark"] body:not(.tv-mode) .mobile-topbar{
  background:#0d1712 !important;
  color:#eef5f0 !important;
  border-color:#22352a !important;
}

[data-theme="dark"] body:not(.tv-mode) .card.kpi,
[data-theme="dark"] body:not(.tv-mode) .kpi,
[data-theme="dark"] body:not(.tv-mode) .kpi > div,
[data-theme="dark"] body:not(.tv-mode) .kpi-card,
[data-theme="dark"] body:not(.tv-mode) .dashboard-card .kpi,
[data-theme="dark"] body:not(.tv-mode) .dashboard-overview .card{
  color:#eef5f0 !important;
}

[data-theme="dark"] body:not(.tv-mode) .kpi h3,
[data-theme="dark"] body:not(.tv-mode) .kpi-title,
[data-theme="dark"] body:not(.tv-mode) .compare-summary-grid small,
[data-theme="dark"] body:not(.tv-mode) .compare-mini-card small,
[data-theme="dark"] body:not(.tv-mode) .collab-chart-summary small,
[data-theme="dark"] body:not(.tv-mode) .collab-label-card small,
[data-theme="dark"] body:not(.tv-mode) .daily-line-legend span small,
[data-theme="dark"] body:not(.tv-mode) .sector-compare-head small,
[data-theme="dark"] body:not(.tv-mode) .individual-compare-card small,
[data-theme="dark"] body:not(.tv-mode) .report-range-inputs span,
[data-theme="dark"] body:not(.tv-mode) .compare-toolbar label,
[data-theme="dark"] body:not(.tv-mode) .dashboard-compare-controls label{
  color:#b8c7bf !important;
}

[data-theme="dark"] body:not(.tv-mode) .kpi strong,
[data-theme="dark"] body:not(.tv-mode) .collab-chart-summary b,
[data-theme="dark"] body:not(.tv-mode) .compare-summary-grid b,
[data-theme="dark"] body:not(.tv-mode) .compare-summary-grid strong,
[data-theme="dark"] body:not(.tv-mode) .compare-mini-card b,
[data-theme="dark"] body:not(.tv-mode) .compare-mini-card span,
[data-theme="dark"] body:not(.tv-mode) .collab-label-card b,
[data-theme="dark"] body:not(.tv-mode) .jornada-chart-title h3,
[data-theme="dark"] body:not(.tv-mode) .sector-compare-head h3,
[data-theme="dark"] body:not(.tv-mode) .individual-compare-card h3,
[data-theme="dark"] body:not(.tv-mode) .dashboard-sector-compare-card > strong,
[data-theme="dark"] body:not(.tv-mode) .individual-compare-card > strong,
[data-theme="dark"] body:not(.tv-mode) .tv-line-legend span,
[data-theme="dark"] body:not(.tv-mode) .daily-line-legend span,
[data-theme="dark"] body:not(.tv-mode) .sep-line-legend span,
[data-theme="dark"] body:not(.tv-mode) .report-toolbar-pro input,
[data-theme="dark"] body:not(.tv-mode) .report-toolbar-pro select,
[data-theme="dark"] body:not(.tv-mode) .compare-toolbar input,
[data-theme="dark"] body:not(.tv-mode) .compare-toolbar select,
[data-theme="dark"] body:not(.tv-mode) .dashboard-compare-controls select{
  color:#f4fbf6 !important;
}

[data-theme="dark"] body:not(.tv-mode) .kpi small,
[data-theme="dark"] body:not(.tv-mode) .compare-diff.pos,
[data-theme="dark"] body:not(.tv-mode) .tv-line-legend .up,
[data-theme="dark"] body:not(.tv-mode) .positive,
[data-theme="dark"] body:not(.tv-mode) .success-text{
  color:#7fe09d !important;
}

[data-theme="dark"] body:not(.tv-mode) .compare-diff.neg,
[data-theme="dark"] body:not(.tv-mode) .tv-line-legend .down,
[data-theme="dark"] body:not(.tv-mode) .negative,
[data-theme="dark"] body:not(.tv-mode) .danger-text{
  color:#ff9c9c !important;
}

[data-theme="dark"] body:not(.tv-mode) .compare-diff.pos{background:#12321f !important}
[data-theme="dark"] body:not(.tv-mode) .compare-diff.neg{background:#301417 !important}
[data-theme="dark"] body:not(.tv-mode) .compare-diff.zero{background:#17231c !important;color:#c9d6ce !important}

[data-theme="dark"] body:not(.tv-mode) input,
[data-theme="dark"] body:not(.tv-mode) select,
[data-theme="dark"] body:not(.tv-mode) textarea,
[data-theme="dark"] body:not(.tv-mode) .field input,
[data-theme="dark"] body:not(.tv-mode) .field select,
[data-theme="dark"] body:not(.tv-mode) .field textarea,
[data-theme="dark"] body:not(.tv-mode) .report-toolbar-pro input,
[data-theme="dark"] body:not(.tv-mode) .report-toolbar-pro select,
[data-theme="dark"] body:not(.tv-mode) .compare-toolbar input,
[data-theme="dark"] body:not(.tv-mode) .compare-toolbar select,
[data-theme="dark"] body:not(.tv-mode) .dashboard-compare-controls select,
[data-theme="dark"] body:not(.tv-mode) .btn-ghost,
[data-theme="dark"] body:not(.tv-mode) .pill,
[data-theme="dark"] body:not(.tv-mode) .chip,
[data-theme="dark"] body:not(.tv-mode) .toggle,
[data-theme="dark"] body:not(.tv-mode) .mini-toggle,
[data-theme="dark"] body:not(.tv-mode) .notif,
[data-theme="dark"] body:not(.tv-mode) .hamb,
[data-theme="dark"] body:not(.tv-mode) .user-chip-btn,
[data-theme="dark"] body:not(.tv-mode) .theme-switch,
[data-theme="dark"] body:not(.tv-mode) .theme-option-btn{
  background:#0f1c15 !important;
  color:#eef5f0 !important;
  border-color:#294236 !important;
}

[data-theme="dark"] body:not(.tv-mode) input::placeholder,
[data-theme="dark"] body:not(.tv-mode) textarea::placeholder{
  color:#8ea196 !important;
}

[data-theme="dark"] body:not(.tv-mode) .toggle button.active,
[data-theme="dark"] body:not(.tv-mode) .mini-pill.active,
[data-theme="dark"] body:not(.tv-mode) .report-tab.active,
[data-theme="dark"] body:not(.tv-mode) .pill.active{
  background:#1d6b3f !important;
  border-color:#1d6b3f !important;
  color:#ffffff !important;
}

[data-theme="dark"] body:not(.tv-mode) .chart,
[data-theme="dark"] body:not(.tv-mode) .collab-chart-svg,
[data-theme="dark"] body:not(.tv-mode) .tv-line-chart,
[data-theme="dark"] body:not(.tv-mode) .tv-line-chart-pro,
[data-theme="dark"] body:not(.tv-mode) .jornada-chart-box,
[data-theme="dark"] body:not(.tv-mode) .dashboard-sector-compare-card,
[data-theme="dark"] body:not(.tv-mode) .daily-production-line-chart,
[data-theme="dark"] body:not(.tv-mode) .sep-line-chart,
[data-theme="dark"] body:not(.tv-mode) .chart-backdrop{
  background:linear-gradient(180deg,#0c1712 0%, #122019 100%) !important;
  border-color:#22352a !important;
}

[data-theme="dark"] body:not(.tv-mode) .tv-line-chart .axis,
[data-theme="dark"] body:not(.tv-mode) .tv-line-chart .grid,
[data-theme="dark"] body:not(.tv-mode) .jornada-chart-svg .grid,
[data-theme="dark"] body:not(.tv-mode) .jornada-chart-svg .axis,
[data-theme="dark"] body:not(.tv-mode) .chart-grid,
[data-theme="dark"] body:not(.tv-mode) .chart-axis,
[data-theme="dark"] body:not(.tv-mode) .daily-axis,
[data-theme="dark"] body:not(.tv-mode) .tv-axis-line{
  stroke:#355142 !important;
}

[data-theme="dark"] body:not(.tv-mode) .jornada-chart-svg .xlab,
[data-theme="dark"] body:not(.tv-mode) .jornada-chart-svg .ylab,
[data-theme="dark"] body:not(.tv-mode) .chart-axis-label,
[data-theme="dark"] body:not(.tv-mode) .chart-date,
[data-theme="dark"] body:not(.tv-mode) .tv-line-chart .xlab,
[data-theme="dark"] body:not(.tv-mode) .tv-axis-label,
[data-theme="dark"] body:not(.tv-mode) .tv-axis-x,
[data-theme="dark"] body:not(.tv-mode) .chart .bar-label{
  fill:#b8c7bf !important;
  color:#b8c7bf !important;
}

[data-theme="dark"] body:not(.tv-mode) .chart-number,
[data-theme="dark"] body:not(.tv-mode) .tv-value-label,
[data-theme="dark"] body:not(.tv-mode) .chart-value,
[data-theme="dark"] body:not(.tv-mode) .point-label{
  fill:#f4fbf6 !important;
  color:#f4fbf6 !important;
}

[data-theme="dark"] body:not(.tv-mode) .chart-money{
  fill:#f3c66c !important;
  color:#f3c66c !important;
}

[data-theme="dark"] body:not(.tv-mode) .tag,
[data-theme="dark"] body:not(.tv-mode) .sector-pill{background:#133020 !important;color:#d5eddc !important;border-color:#244731 !important}
[data-theme="dark"] body:not(.tv-mode) .tag.blue{background:#13263d !important;color:#9fc9ff !important}
[data-theme="dark"] body:not(.tv-mode) .tag.orange,
[data-theme="dark"] body:not(.tv-mode) .sector-pill.orange{background:#2e1d09 !important;color:#f3c66c !important;border-color:#63421d !important}
[data-theme="dark"] body:not(.tv-mode) .tag.red{background:#301417 !important;color:#ffb2b2 !important}

[data-theme="dark"] body:not(.tv-mode) .alert,
[data-theme="dark"] body:not(.tv-mode) .warning-card,
[data-theme="dark"] body:not(.tv-mode) .empty-state{
  background:#101b14 !important;
  color:#eef5f0 !important;
  border-color:#22352a !important;
}

/* =========================================================
   Tema escuro final aplicado a partir do Guia de Cores.
   Escopo: SOMENTE modo escuro do sistema.
   Não altera o modo claro.
   Não altera o Painel TV (body.tv-mode).
   ========================================================= */
html[data-theme="dark"] body:not(.tv-mode){
  --bg:#050706;
  --panel:#0B100E;
  --panel-elevated:#101915;
  --panel-soft:#0F1A14;
  --surface:#08110D;
  --surface-2:#0D1712;
  --ink:#F4FFF7;
  --muted:#A7C0B1;
  --muted-2:#8EA196;
  --line:#223229;
  --line-strong:#2C4035;
  --green-950:#050706;
  --green-900:#0F5C31;
  --green-850:#145F36;
  --green-800:#178A47;
  --green-700:#20BB5F;
  --green-600:#44D27D;
  --green-500:#44D27D;
  --green-100:#0F1A14;
  --green-50:#08110D;
  --orange:#D48B24;
  --orange-100:#2B1D08;
  --blue:#59B7FF;
  --blue-100:#101B24;
  --red:#FF6B6B;
  --red-100:#261314;
  --yellow:#F6C453;
  --yellow-100:#2A220C;
  --shadow:0 22px 45px rgba(0,0,0,.45);
  --shadow-soft:0 12px 26px rgba(0,0,0,.28);
  background:var(--bg);
  color:var(--ink);
}

html[data-theme="dark"] body:not(.tv-mode),
html[data-theme="dark"] body:not(.tv-mode) .main,
html[data-theme="dark"] body:not(.tv-mode) .content{
  background:var(--bg);
  color:var(--ink);
}

html[data-theme="dark"] body:not(.tv-mode) .sidebar{
  background:linear-gradient(180deg,#050706 0%,#08110D 48%,#0F1A14 100%);
  color:var(--ink);
}
html[data-theme="dark"] body:not(.tv-mode) .nav-btn{color:#dceee3}
html[data-theme="dark"] body:not(.tv-mode) .nav-btn.active,
html[data-theme="dark"] body:not(.tv-mode) .nav-btn:hover{background:rgba(23,138,71,.20)}
html[data-theme="dark"] body:not(.tv-mode) .side-foot{color:#9cb6a6}

html[data-theme="dark"] body:not(.tv-mode) .topbar,
html[data-theme="dark"] body:not(.tv-mode) .mobile-topbar{
  background:rgba(8,17,13,.92);
  border-color:var(--line);
}
html[data-theme="dark"] body:not(.tv-mode) .mobile-shell{
  background:rgba(8,17,13,.97);
  border-color:var(--line);
}
html[data-theme="dark"] body:not(.tv-mode) .mobile-shell button{color:var(--muted)}
html[data-theme="dark"] body:not(.tv-mode) .mobile-shell button.active{color:var(--ink)}

html[data-theme="dark"] body:not(.tv-mode) .login-page{background:linear-gradient(135deg,#050706 0%,#08110D 100%)}
html[data-theme="dark"] body:not(.tv-mode) .login-card,
html[data-theme="dark"] body:not(.tv-mode) .card,
html[data-theme="dark"] body:not(.tv-mode) .history-card,
html[data-theme="dark"] body:not(.tv-mode) .preview-person,
html[data-theme="dark"] body:not(.tv-mode) .eye-toggle,
html[data-theme="dark"] body:not(.tv-mode) .top-dropdown,
html[data-theme="dark"] body:not(.tv-mode) .prod-sheet,
html[data-theme="dark"] body:not(.tv-mode) .empty-sheet,
html[data-theme="dark"] body:not(.tv-mode) .timeline-item,
html[data-theme="dark"] body:not(.tv-mode) .support-card,
html[data-theme="dark"] body:not(.tv-mode) .glass-soft,
html[data-theme="dark"] body:not(.tv-mode) .pill,
html[data-theme="dark"] body:not(.tv-mode) .theme-switch,
html[data-theme="dark"] body:not(.tv-mode) .theme-option-btn,
html[data-theme="dark"] body:not(.tv-mode) .notif,
html[data-theme="dark"] body:not(.tv-mode) .hamb,
html[data-theme="dark"] body:not(.tv-mode) .user-chip-btn,
html[data-theme="dark"] body:not(.tv-mode) .btn-ghost,
html[data-theme="dark"] body:not(.tv-mode) .history-qty,
html[data-theme="dark"] body:not(.tv-mode) .summary-box,
html[data-theme="dark"] body:not(.tv-mode) .request-item,
html[data-theme="dark"] body:not(.tv-mode) .compare-summary-grid > div,
html[data-theme="dark"] body:not(.tv-mode) .compare-mini-card,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-sector-compare-card,
html[data-theme="dark"] body:not(.tv-mode) .individual-compare-card,
html[data-theme="dark"] body:not(.tv-mode) .jornada-chart-box,
html[data-theme="dark"] body:not(.tv-mode) .bank-policy-card,
html[data-theme="dark"] body:not(.tv-mode) .report-tab,
html[data-theme="dark"] body:not(.tv-mode) .daily-line-legend span,
html[data-theme="dark"] body:not(.tv-mode) .sep-line-legend span,
html[data-theme="dark"] body:not(.tv-mode) .jornada-chart-legend span,
html[data-theme="dark"] body:not(.tv-mode) .compare-diff,
html[data-theme="dark"] body:not(.tv-mode) .collab-label-card span,
html[data-theme="dark"] body:not(.tv-mode) .collab-chart-summary > div,
html[data-theme="dark"] body:not(.tv-mode) .report-toolbar-pro,
html[data-theme="dark"] body:not(.tv-mode) .compare-toolbar,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-compare-controls{
  background:var(--panel);
  color:var(--ink);
  border-color:var(--line);
  box-shadow:none;
}

html[data-theme="dark"] body:not(.tv-mode) .panel,
html[data-theme="dark"] body:not(.tv-mode) .form-card,
html[data-theme="dark"] body:not(.tv-mode) .report-toolbar-pro,
html[data-theme="dark"] body:not(.tv-mode) .compare-toolbar,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-compare-controls{background:var(--panel-elevated)}
html[data-theme="dark"] body:not(.tv-mode) .summary-box,
html[data-theme="dark"] body:not(.tv-mode) .history-qty,
html[data-theme="dark"] body:not(.tv-mode) .tag,
html[data-theme="dark"] body:not(.tv-mode) .sector-pill{background:var(--panel-soft)}

html[data-theme="dark"] body:not(.tv-mode) .field input,
html[data-theme="dark"] body:not(.tv-mode) .field select,
html[data-theme="dark"] body:not(.tv-mode) .field textarea,
html[data-theme="dark"] body:not(.tv-mode) input,
html[data-theme="dark"] body:not(.tv-mode) select,
html[data-theme="dark"] body:not(.tv-mode) textarea{
  background:var(--surface-2);
  color:var(--ink);
  border-color:#294236;
}
html[data-theme="dark"] body:not(.tv-mode) input::placeholder,
html[data-theme="dark"] body:not(.tv-mode) textarea::placeholder{color:var(--muted-2)}
html[data-theme="dark"] body:not(.tv-mode) .field input:focus,
html[data-theme="dark"] body:not(.tv-mode) .field select:focus,
html[data-theme="dark"] body:not(.tv-mode) .field textarea:focus,
html[data-theme="dark"] body:not(.tv-mode) input:focus,
html[data-theme="dark"] body:not(.tv-mode) select:focus,
html[data-theme="dark"] body:not(.tv-mode) textarea:focus{
  border-color:#44D27D;
  box-shadow:0 0 0 4px rgba(68,210,125,.12);
}

html[data-theme="dark"] body:not(.tv-mode) .page-head h1,
html[data-theme="dark"] body:not(.tv-mode) .panel h2,
html[data-theme="dark"] body:not(.tv-mode) .login-card h2,
html[data-theme="dark"] body:not(.tv-mode) .person-name,
html[data-theme="dark"] body:not(.tv-mode) .history-product,
html[data-theme="dark"] body:not(.tv-mode) .user-chip strong,
html[data-theme="dark"] body:not(.tv-mode) .mobile-brand-copy strong,
html[data-theme="dark"] body:not(.tv-mode) .theme-option-copy strong,
html[data-theme="dark"] body:not(.tv-mode) .kpi h3,
html[data-theme="dark"] body:not(.tv-mode) .table td,
html[data-theme="dark"] body:not(.tv-mode) .report-tab,
html[data-theme="dark"] body:not(.tv-mode) .compare-toolbar input,
html[data-theme="dark"] body:not(.tv-mode) .compare-toolbar select,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-compare-controls select,
html[data-theme="dark"] body:not(.tv-mode) .report-toolbar-pro input,
html[data-theme="dark"] body:not(.tv-mode) .report-toolbar-pro select,
html[data-theme="dark"] body:not(.tv-mode) .history-qty strong,
html[data-theme="dark"] body:not(.tv-mode) .kpi strong,
html[data-theme="dark"] body:not(.tv-mode) .collab-chart-summary b,
html[data-theme="dark"] body:not(.tv-mode) .compare-summary-grid b,
html[data-theme="dark"] body:not(.tv-mode) .compare-summary-grid strong,
html[data-theme="dark"] body:not(.tv-mode) .compare-mini-card b,
html[data-theme="dark"] body:not(.tv-mode) .compare-mini-card span,
html[data-theme="dark"] body:not(.tv-mode) .collab-label-card b,
html[data-theme="dark"] body:not(.tv-mode) .jornada-chart-title h3,
html[data-theme="dark"] body:not(.tv-mode) .sector-compare-head h3,
html[data-theme="dark"] body:not(.tv-mode) .individual-compare-card h3,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-sector-compare-card > strong,
html[data-theme="dark"] body:not(.tv-mode) .individual-compare-card > strong{
  color:var(--ink) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .page-head p,
html[data-theme="dark"] body:not(.tv-mode) .table th,
html[data-theme="dark"] body:not(.tv-mode) .history-date,
html[data-theme="dark"] body:not(.tv-mode) .history-qty small,
html[data-theme="dark"] body:not(.tv-mode) .history-qty em,
html[data-theme="dark"] body:not(.tv-mode) .top-date,
html[data-theme="dark"] body:not(.tv-mode) .user-chip small,
html[data-theme="dark"] body:not(.tv-mode) .finance-note,
html[data-theme="dark"] body:not(.tv-mode) .bar-label,
html[data-theme="dark"] body:not(.tv-mode) .top-dropdown-head small,
html[data-theme="dark"] body:not(.tv-mode) .field label,
html[data-theme="dark"] body:not(.tv-mode) .form-help,
html[data-theme="dark"] body:not(.tv-mode) .history-limit-note,
html[data-theme="dark"] body:not(.tv-mode) .notice,
html[data-theme="dark"] body:not(.tv-mode) .login-card p,
html[data-theme="dark"] body:not(.tv-mode) .mobile-brand-copy small,
html[data-theme="dark"] body:not(.tv-mode) .compare-summary-grid small,
html[data-theme="dark"] body:not(.tv-mode) .compare-mini-card small,
html[data-theme="dark"] body:not(.tv-mode) .collab-chart-summary small,
html[data-theme="dark"] body:not(.tv-mode) .chart-note,
html[data-theme="dark"] body:not(.tv-mode) .jornada-chart-title small,
html[data-theme="dark"] body:not(.tv-mode) .chart-axis-label,
html[data-theme="dark"] body:not(.tv-mode) .chart-date,
html[data-theme="dark"] body:not(.tv-mode) .collab-label-card small,
html[data-theme="dark"] body:not(.tv-mode) .daily-line-legend span small,
html[data-theme="dark"] body:not(.tv-mode) .sector-compare-head small,
html[data-theme="dark"] body:not(.tv-mode) .individual-compare-card small,
html[data-theme="dark"] body:not(.tv-mode) .sector-compare-meta,
html[data-theme="dark"] body:not(.tv-mode) .report-range-inputs span,
html[data-theme="dark"] body:not(.tv-mode) .compare-toolbar label,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-compare-controls label{
  color:var(--muted) !important;
}

html[data-theme="dark"] body:not(.tv-mode) .table th,
html[data-theme="dark"] body:not(.tv-mode) .table td,
html[data-theme="dark"] body:not(.tv-mode) .history-card,
html[data-theme="dark"] body:not(.tv-mode) .top-dropdown,
html[data-theme="dark"] body:not(.tv-mode) .prod-sheet,
html[data-theme="dark"] body:not(.tv-mode) .prod-sheet-head,
html[data-theme="dark"] body:not(.tv-mode) .prod-sheet-name,
html[data-theme="dark"] body:not(.tv-mode) .prod-sheet-table td,
html[data-theme="dark"] body:not(.tv-mode) .prod-sheet-sign,
html[data-theme="dark"] body:not(.tv-mode) .request-item,
html[data-theme="dark"] body:not(.tv-mode) .top-dropdown-head{
  border-color:var(--line);
}
html[data-theme="dark"] body:not(.tv-mode) .table th{background:var(--panel-elevated)}

html[data-theme="dark"] body:not(.tv-mode) .btn-primary{
  background:linear-gradient(135deg,#0F5C31,#178A47);
  color:#FFFFFF;
  box-shadow:0 14px 28px rgba(23,138,71,.28);
}
html[data-theme="dark"] body:not(.tv-mode) .btn-primary:hover{background:linear-gradient(135deg,#178A47,#20BB5F)}
html[data-theme="dark"] body:not(.tv-mode) .btn-soft{
  background:#0F1A14;
  color:#44D27D;
  border-color:#244731;
}
html[data-theme="dark"] body:not(.tv-mode) .btn-ghost{color:var(--ink)}
html[data-theme="dark"] body:not(.tv-mode) .btn-danger{
  background:#261314;
  color:#FFB1B1;
  border-color:#5A2326;
}

html[data-theme="dark"] body:not(.tv-mode) .toggle,
html[data-theme="dark"] body:not(.tv-mode) .mini-toggle{
  background:#08110D;
  border-color:var(--line);
}
html[data-theme="dark"] body:not(.tv-mode) .toggle button,
html[data-theme="dark"] body:not(.tv-mode) .mini-pill,
html[data-theme="dark"] body:not(.tv-mode) .pill,
html[data-theme="dark"] body:not(.tv-mode) .chip,
html[data-theme="dark"] body:not(.tv-mode) .report-tab{
  background:#08110D;
  color:var(--ink);
  border-color:var(--line);
}
html[data-theme="dark"] body:not(.tv-mode) .toggle button.active,
html[data-theme="dark"] body:not(.tv-mode) .mini-pill.active,
html[data-theme="dark"] body:not(.tv-mode) .pill.active,
html[data-theme="dark"] body:not(.tv-mode) .report-tab.active{
  background:#178A47 !important;
  border-color:#178A47 !important;
  color:#FFFFFF !important;
}
html[data-theme="dark"] body:not(.tv-mode) .chip.selected,
html[data-theme="dark"] body:not(.tv-mode) .theme-option-btn.active{
  background:#0F1A14;
  color:#F4FFF7;
  border-color:#178A47;
  box-shadow:0 0 0 3px rgba(32,187,95,.10);
}
html[data-theme="dark"] body:not(.tv-mode) .theme-option-icon,
html[data-theme="dark"] body:not(.tv-mode) .title-icon,
html[data-theme="dark"] body:not(.tv-mode) .kpi-icon{
  background:#0F1A14;
  color:#44D27D;
}
html[data-theme="dark"] body:not(.tv-mode) .kpi-icon.blue{background:#101B24;color:#59B7FF}
html[data-theme="dark"] body:not(.tv-mode) .kpi-icon.yellow{background:#2A220C;color:#F6C453}
html[data-theme="dark"] body:not(.tv-mode) .theme-option-state{
  color:#F4FFF7;
  background:#1B3B28;
}
html[data-theme="dark"] body:not(.tv-mode) .theme-switch,
html[data-theme="dark"] body:not(.tv-mode) .theme-option-btn,
html[data-theme="dark"] body:not(.tv-mode) .user-chip-btn,
html[data-theme="dark"] body:not(.tv-mode) .top-icon-btn,
html[data-theme="dark"] body:not(.tv-mode) .hamb,
html[data-theme="dark"] body:not(.tv-mode) .notif{color:var(--ink)}
html[data-theme="dark"] body:not(.tv-mode) .top-icon-btn:hover,
html[data-theme="dark"] body:not(.tv-mode) .user-chip-btn:hover,
html[data-theme="dark"] body:not(.tv-mode) .theme-switch:hover,
html[data-theme="dark"] body:not(.tv-mode) .theme-option-btn:hover{background:#14261d;border-color:#355742}

html[data-theme="dark"] body:not(.tv-mode) .tag,
html[data-theme="dark"] body:not(.tv-mode) .sector-pill{
  background:#0F1A14;
  color:#44D27D;
  border-color:#244731;
}
html[data-theme="dark"] body:not(.tv-mode) .tag.blue{background:#101B24;color:#59B7FF;border-color:#223A4A}
html[data-theme="dark"] body:not(.tv-mode) .tag.orange,
html[data-theme="dark"] body:not(.tv-mode) .sector-pill.orange{background:#2B1D08;color:#D48B24;border-color:#63421d}
html[data-theme="dark"] body:not(.tv-mode) .tag.red{background:#261314;color:#FF8E8E;border-color:#5A2326}
html[data-theme="dark"] body:not(.tv-mode) .rank-badge{background:#0F1A14;color:#44D27D}

html[data-theme="dark"] body:not(.tv-mode) .kpi strong{color:#F4FFF7 !important}
html[data-theme="dark"] body:not(.tv-mode) .kpi small,
html[data-theme="dark"] body:not(.tv-mode) .compare-diff.pos{color:#44D27D !important}
html[data-theme="dark"] body:not(.tv-mode) .compare-diff.pos{background:#0F1A14 !important}
html[data-theme="dark"] body:not(.tv-mode) .compare-diff.neg{color:#FF8E8E !important;background:#261314 !important}
html[data-theme="dark"] body:not(.tv-mode) .compare-diff.zero{color:#C9D6CE !important;background:#17231c !important}
html[data-theme="dark"] body:not(.tv-mode) .sector-compare-track,
html[data-theme="dark"] body:not(.tv-mode) .individual-compare-track{background:#1a2a22 !important}

html[data-theme="dark"] body:not(.tv-mode) .collab-chart-svg,
html[data-theme="dark"] body:not(.tv-mode) .jornada-chart-box,
html[data-theme="dark"] body:not(.tv-mode) .daily-production-line-chart,
html[data-theme="dark"] body:not(.tv-mode) .sep-line-chart,
html[data-theme="dark"] body:not(.tv-mode) .chart,
html[data-theme="dark"] body:not(.tv-mode) .chart-backdrop{
  background:linear-gradient(180deg,#0C1712 0%,#101915 100%) !important;
  border-color:#223229 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .bar{background:linear-gradient(180deg,#20BB5F,#0F5C31)}
html[data-theme="dark"] body:not(.tv-mode) .bar.dark{background:linear-gradient(180deg,#44D27D,#178A47)}
html[data-theme="dark"] body:not(.tv-mode) .bar span{color:#F4FFF7}

html[data-theme="dark"] body:not(.tv-mode) .tv-line-chart .axis,
html[data-theme="dark"] body:not(.tv-mode) .tv-line-chart .grid,
html[data-theme="dark"] body:not(.tv-mode) .jornada-chart-svg .grid,
html[data-theme="dark"] body:not(.tv-mode) .jornada-chart-svg .axis,
html[data-theme="dark"] body:not(.tv-mode) .chart-grid,
html[data-theme="dark"] body:not(.tv-mode) .chart-axis,
html[data-theme="dark"] body:not(.tv-mode) .daily-axis,
html[data-theme="dark"] body:not(.tv-mode) .tv-axis-line{
  stroke:#355142 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .jornada-chart-svg .xlab,
html[data-theme="dark"] body:not(.tv-mode) .jornada-chart-svg .ylab,
html[data-theme="dark"] body:not(.tv-mode) .chart-axis-label,
html[data-theme="dark"] body:not(.tv-mode) .chart-date,
html[data-theme="dark"] body:not(.tv-mode) .tv-line-chart .xlab,
html[data-theme="dark"] body:not(.tv-mode) .tv-axis-label,
html[data-theme="dark"] body:not(.tv-mode) .tv-axis-x{
  fill:#B8C7BF !important;
  color:#B8C7BF !important;
}
html[data-theme="dark"] body:not(.tv-mode) .chart-number,
html[data-theme="dark"] body:not(.tv-mode) .tv-value-label{fill:#F4FFF7 !important}
html[data-theme="dark"] body:not(.tv-mode) .chart-money{fill:#F6C453 !important}
html[data-theme="dark"] body:not(.tv-mode) .tv-line-legend span,
html[data-theme="dark"] body:not(.tv-mode) .daily-line-legend span,
html[data-theme="dark"] body:not(.tv-mode) .sep-line-legend span,
html[data-theme="dark"] body:not(.tv-mode) .jornada-chart-legend span{color:#F4FFF7 !important}

html[data-theme="dark"] body:not(.tv-mode) .notice{background:#101B24;border-color:#223A4A;color:#CDE7FF}
html[data-theme="dark"] body:not(.tv-mode) .initial{background:#17231c;color:#D7E7DE}
html[data-theme="dark"] body:not(.tv-mode) .avatar{background:linear-gradient(135deg,#1B3B28,#44D27D);color:#05120B}
html[data-theme="dark"] body:not(.tv-mode) .badge-dot{background:#20BB5F;color:#05120B}

html[data-theme="dark"] body:not(.tv-mode) .table-wrap,
html[data-theme="dark"] body:not(.tv-mode) .history-list,
html[data-theme="dark"] body:not(.tv-mode) .collab-tools small{color:var(--muted)}

@media (max-width:720px){
  html[data-theme="dark"] body:not(.tv-mode) .history-qty{
    background:#0F1A14;
    border-color:#223229;
  }
}

/* ===== Ajuste final solicitado pelo usuário: contraste do Dashboard no modo escuro ===== */
html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-kpi-card,
html[data-theme="dark"] body:not(.tv-mode) .alerts-panel,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-ranking-panel{
  background:#0d1712 !important;
  border-color:#223229 !important;
  color:#f4fff7 !important;
}

html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card label,
html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card .exec-filter-group > label,
html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card .exec-period-summary,
html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card .exec-period-summary b,
html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card .exec-sep,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-kpi-card span,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-kpi-card strong,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-kpi-card em,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-kpi-card small,
html[data-theme="dark"] body:not(.tv-mode) .alerts-panel .panel-head h2,
html[data-theme="dark"] body:not(.tv-mode) .alerts-panel .panel-head p,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-ranking-panel .panel-head h2,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-ranking-panel .panel-head p{
  color:#f4fff7 !important;
}

html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card .exec-period-summary,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-kpi-card em,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-kpi-card small,
html[data-theme="dark"] body:not(.tv-mode) .alerts-panel .panel-head p,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-ranking-panel .panel-head p{
  color:#a7c0b1 !important;
}

html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card .exec-date-field,
html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card .exec-select-wrap,
html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card .refined-dashboard-select,
html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card .dashboard-select{
  background:#08110d !important;
  border-color:#294236 !important;
  color:#f4fff7 !important;
}

html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card .exec-date-field small{
  color:#9fb6a8 !important;
}

html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card .exec-date-field input,
html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card .refined-dashboard-select,
html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card .dashboard-select,
html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card select,
html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card input{
  color:#f4fff7 !important;
  background:transparent !important;
}

html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card .refined-select-wrap::after,
html[data-theme="dark"] body:not(.tv-mode) .dash-filter-card .select-wrap::after{
  color:#d7e7de !important;
}

html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-kpi-card .trend.up,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-kpi-card .trend.down,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-kpi-card .muted-action{
  color:#a7c0b1 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-kpi-card .trend.down{color:#ff8e8e !important;}
html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-kpi-card .trend.up{color:#44d27d !important;}

html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-icon{
  background:#0f1a14 !important;
  color:#44d27d !important;
}
html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-icon.money{background:#101b24 !important;color:#59b7ff !important;}
html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-icon.absent{background:#261314 !important;color:#ff8e8e !important;}

html[data-theme="dark"] body:not(.tv-mode) .progress-ring-bg{stroke:#20372c !important;}
html[data-theme="dark"] body:not(.tv-mode) .progress-ring-bar{stroke:#20bb5f !important;}
html[data-theme="dark"] body:not(.tv-mode) .progress-ring-text b{color:#f4fff7 !important;}

html[data-theme="dark"] body:not(.tv-mode) .alerts-grid .alert-item{
  background:#101915 !important;
  border-color:#223229 !important;
  color:#f4fff7 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .alerts-grid .alert-item b{color:#f4fff7 !important;}
html[data-theme="dark"] body:not(.tv-mode) .alerts-grid .alert-item small{color:#a7c0b1 !important;}
html[data-theme="dark"] body:not(.tv-mode) .alerts-grid .alert-item.red{background:#261314 !important;border-color:#5a2326 !important;}
html[data-theme="dark"] body:not(.tv-mode) .alerts-grid .alert-item.orange{background:#2b1d08 !important;border-color:#63421d !important;}
html[data-theme="dark"] body:not(.tv-mode) .alerts-grid .alert-item.blue{background:#101b24 !important;border-color:#223a4a !important;}

html[data-theme="dark"] body:not(.tv-mode) .alerts-panel .btn.btn-ghost,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-ranking-panel .btn.btn-ghost{
  background:#0f1a14 !important;
  color:#f4fff7 !important;
  border-color:#294236 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .alerts-panel .btn.btn-ghost:hover,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-ranking-panel .btn.btn-ghost:hover{
  background:#14261d !important;
  border-color:#355742 !important;
}

/* ===== Correções finais do modo escuro com base nas capturas enviadas ===== */
html[data-theme="dark"] body:not(.tv-mode) .sheet-toolbar,
html[data-theme="dark"] body:not(.tv-mode) .history-toolbar,
html[data-theme="dark"] body:not(.tv-mode) .sep-filter-card,
html[data-theme="dark"] body:not(.tv-mode) .sep-form-panel,
html[data-theme="dark"] body:not(.tv-mode) .compare-toolbar,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-compare-controls,
html[data-theme="dark"] body:not(.tv-mode) .closing-period-toolbar,
html[data-theme="dark"] body:not(.tv-mode) .request-history-filters,
html[data-theme="dark"] body:not(.tv-mode) .people-filters,
html[data-theme="dark"] body:not(.tv-mode) .materials-history-filters,
html[data-theme="dark"] body:not(.tv-mode) .closing-top-filters,
html[data-theme="dark"] body:not(.tv-mode) .fichas-panel .panel-head,
html[data-theme="dark"] body:not(.tv-mode) .compare-table-head{
  background:var(--panel-elevated) !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
}

html[data-theme="dark"] body:not(.tv-mode) .sheet-toolbar,
html[data-theme="dark"] body:not(.tv-mode) .history-toolbar,
html[data-theme="dark"] body:not(.tv-mode) .sep-filter-card,
html[data-theme="dark"] body:not(.tv-mode) .compare-toolbar,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-compare-controls,
html[data-theme="dark"] body:not(.tv-mode) .request-history-filters,
html[data-theme="dark"] body:not(.tv-mode) .people-filters,
html[data-theme="dark"] body:not(.tv-mode) .closing-top-filters{
  border:1px solid var(--line) !important;
  border-radius:20px !important;
  box-shadow:none !important;
}

html[data-theme="dark"] body:not(.tv-mode) .sheet-toolbar label,
html[data-theme="dark"] body:not(.tv-mode) .sheet-toolbar b,
html[data-theme="dark"] body:not(.tv-mode) .history-toolbar label,
html[data-theme="dark"] body:not(.tv-mode) .history-toolbar b,
html[data-theme="dark"] body:not(.tv-mode) .sep-filter-grid label,
html[data-theme="dark"] body:not(.tv-mode) .sep-form-grid label,
html[data-theme="dark"] body:not(.tv-mode) .compare-toolbar label,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-compare-controls label,
html[data-theme="dark"] body:not(.tv-mode) .people-filters label,
html[data-theme="dark"] body:not(.tv-mode) .filters b,
html[data-theme="dark"] body:not(.tv-mode) .custom-period-row label,
html[data-theme="dark"] body:not(.tv-mode) .fichas-panel .panel-head small,
html[data-theme="dark"] body:not(.tv-mode) .compare-table-head small,
html[data-theme="dark"] body:not(.tv-mode) .closing-panel .muted-action,
html[data-theme="dark"] body:not(.tv-mode) .closed-sheets-panel .panel-head small,
html[data-theme="dark"] body:not(.tv-mode) .collab-tools small{
  color:var(--muted) !important;
}

html[data-theme="dark"] body:not(.tv-mode) .daily-production-summary > div,
html[data-theme="dark"] body:not(.tv-mode) .daily-production-line-card,
html[data-theme="dark"] body:not(.tv-mode) .daily-line-legend span,
html[data-theme="dark"] body:not(.tv-mode) .sector-line-summary-card,
html[data-theme="dark"] body:not(.tv-mode) .closing-summary > div,
html[data-theme="dark"] body:not(.tv-mode) .closing-safety-card,
html[data-theme="dark"] body:not(.tv-mode) .closing-bar-row,
html[data-theme="dark"] body:not(.tv-mode) .sep-chart,
html[data-theme="dark"] body:not(.tv-mode) .sep-topstat,
html[data-theme="dark"] body:not(.tv-mode) .sep-line-card,
html[data-theme="dark"] body:not(.tv-mode) .sep-line-wrap,
html[data-theme="dark"] body:not(.tv-mode) .people-kpi,
html[data-theme="dark"] body:not(.tv-mode) .bank-summary-card,
html[data-theme="dark"] body:not(.tv-mode) .bank-policy-card,
html[data-theme="dark"] body:not(.tv-mode) .leader-gallery-card,
html[data-theme="dark"] body:not(.tv-mode) .permissions-grid > div,
html[data-theme="dark"] body:not(.tv-mode) .request-card,
html[data-theme="dark"] body:not(.tv-mode) .history-limit-note{
  background:var(--panel-soft) !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
  box-shadow:none !important;
}

html[data-theme="dark"] body:not(.tv-mode) .daily-production-line-head h3,
html[data-theme="dark"] body:not(.tv-mode) .sector-line-summary-top h4,
html[data-theme="dark"] body:not(.tv-mode) .closing-summary b,
html[data-theme="dark"] body:not(.tv-mode) .closing-safety-card b,
html[data-theme="dark"] body:not(.tv-mode) .closing-person b,
html[data-theme="dark"] body:not(.tv-mode) .closing-bar-line,
html[data-theme="dark"] body:not(.tv-mode) .closing-bar-line b,
html[data-theme="dark"] body:not(.tv-mode) .sep-topstat strong,
html[data-theme="dark"] body:not(.tv-mode) .sep-bar-row > span,
html[data-theme="dark"] body:not(.tv-mode) .sep-bar-row > b,
html[data-theme="dark"] body:not(.tv-mode) .people-kpi strong,
html[data-theme="dark"] body:not(.tv-mode) .bank-summary-card strong,
html[data-theme="dark"] body:not(.tv-mode) .bank-policy-card strong,
html[data-theme="dark"] body:not(.tv-mode) .leader-gallery-card b,
html[data-theme="dark"] body:not(.tv-mode) .permissions-grid > div b,
html[data-theme="dark"] body:not(.tv-mode) .request-card h2,
html[data-theme="dark"] body:not(.tv-mode) .daily-production-summary strong{
  color:var(--ink) !important;
}

html[data-theme="dark"] body:not(.tv-mode) .daily-production-summary span,
html[data-theme="dark"] body:not(.tv-mode) .daily-production-line-head small,
html[data-theme="dark"] body:not(.tv-mode) .sector-line-summary-top small,
html[data-theme="dark"] body:not(.tv-mode) .sector-line-summary-meta,
html[data-theme="dark"] body:not(.tv-mode) .sector-line-summary-meta b,
html[data-theme="dark"] body:not(.tv-mode) .closing-summary small,
html[data-theme="dark"] body:not(.tv-mode) .closing-safety-card small,
html[data-theme="dark"] body:not(.tv-mode) .closing-person small,
html[data-theme="dark"] body:not(.tv-mode) .sep-topstat span,
html[data-theme="dark"] body:not(.tv-mode) .people-kpi span,
html[data-theme="dark"] body:not(.tv-mode) .people-kpi small,
html[data-theme="dark"] body:not(.tv-mode) .bank-summary-card span,
html[data-theme="dark"] body:not(.tv-mode) .bank-summary-card small,
html[data-theme="dark"] body:not(.tv-mode) .bank-policy-card small,
html[data-theme="dark"] body:not(.tv-mode) .bank-policy-card span,
html[data-theme="dark"] body:not(.tv-mode) .leader-gallery-card small,
html[data-theme="dark"] body:not(.tv-mode) .permissions-grid > div small,
html[data-theme="dark"] body:not(.tv-mode) .request-note,
html[data-theme="dark"] body:not(.tv-mode) .history-limit-note,
html[data-theme="dark"] body:not(.tv-mode) .sep-line-card .panel-head small,
html[data-theme="dark"] body:not(.tv-mode) .sep-check-note,
html[data-theme="dark"] body:not(.tv-mode) .sep-history-count{
  color:var(--muted) !important;
}

html[data-theme="dark"] body:not(.tv-mode) .sep-bar-row > div,
html[data-theme="dark"] body:not(.tv-mode) .closing-bar-line > i,
html[data-theme="dark"] body:not(.tv-mode) .daily-production-row > div,
html[data-theme="dark"] body:not(.tv-mode) .sector-compare-track,
html[data-theme="dark"] body:not(.tv-mode) .individual-compare-track,
html[data-theme="dark"] body:not(.tv-mode) .progress-ring-bg{
  background:#17231c !important;
  stroke:#20372c !important;
}

html[data-theme="dark"] body:not(.tv-mode) .sep-line-card .panel-head h3,
html[data-theme="dark"] body:not(.tv-mode) .sep-chart .panel-head h2,
html[data-theme="dark"] body:not(.tv-mode) .closing-section-title h2,
html[data-theme="dark"] body:not(.tv-mode) .closed-sheets-panel h2{
  color:var(--ink) !important;
}

html[data-theme="dark"] body:not(.tv-mode) .closing-section-title small{
  color:var(--muted) !important;
}

html[data-theme="dark"] body:not(.tv-mode) .daily-grid,
html[data-theme="dark"] body:not(.tv-mode) .daily-axis,
html[data-theme="dark"] body:not(.tv-mode) .chart-grid,
html[data-theme="dark"] body:not(.tv-mode) .chart-axis,
html[data-theme="dark"] body:not(.tv-mode) .chart-backdrop,
html[data-theme="dark"] body:not(.tv-mode) .sep-line-chart .chart-backdrop{
  stroke:#355142 !important;
}

html[data-theme="dark"] body:not(.tv-mode) .sep-line-wrap .chart-backdrop{
  fill:#0b100e !important;
}

html[data-theme="dark"] body:not(.tv-mode) .daily-ylab,
html[data-theme="dark"] body:not(.tv-mode) .daily-xlab,
html[data-theme="dark"] body:not(.tv-mode) .daily-xsub,
html[data-theme="dark"] body:not(.tv-mode) .chart-axis-label,
html[data-theme="dark"] body:not(.tv-mode) .chart-date,
html[data-theme="dark"] body:not(.tv-mode) .sector-line-summary-meta,
html[data-theme="dark"] body:not(.tv-mode) .sep-line-chart text{
  fill:#b8c7bf !important;
  color:#b8c7bf !important;
}

html[data-theme="dark"] body:not(.tv-mode) .daily-point-value,
html[data-theme="dark"] body:not(.tv-mode) .daily-point-label,
html[data-theme="dark"] body:not(.tv-mode) .daily-point-value,
html[data-theme="dark"] body:not(.tv-mode) .daily-point-label,
html[data-theme="dark"] body:not(.tv-mode) .sector-line-point-value,
html[data-theme="dark"] body:not(.tv-mode) .chart-number,
html[data-theme="dark"] body:not(.tv-mode) .point-label{
  fill:#f4fff7 !important;
  color:#f4fff7 !important;
}

html[data-theme="dark"] body:not(.tv-mode) .chart-money,
html[data-theme="dark"] body:not(.tv-mode) .sep-line-chart .chart-money{
  fill:#f6c453 !important;
  color:#f6c453 !important;
}

html[data-theme="dark"] body:not(.tv-mode) .daily-line-dot,
html[data-theme="dark"] body:not(.tv-mode) .point-errors,
html[data-theme="dark"] body:not(.tv-mode) .point-loss{
  stroke:#0b100e !important;
}

html[data-theme="dark"] body:not(.tv-mode) .history-card,
html[data-theme="dark"] body:not(.tv-mode) .preview-person,
html[data-theme="dark"] body:not(.tv-mode) .collab-action-item,
html[data-theme="dark"] body:not(.tv-mode) .material-batch-product,
html[data-theme="dark"] body:not(.tv-mode) .material-consumption-row,
html[data-theme="dark"] body:not(.tv-mode) .sep-product-row,
html[data-theme="dark"] body:not(.tv-mode) .sep-store-ref,
html[data-theme="dark"] body:not(.tv-mode) .sep-calc-preview{
  background:var(--panel) !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
}

html[data-theme="dark"] body:not(.tv-mode) .sep-check-table input,
html[data-theme="dark"] body:not(.tv-mode) .history-toolbar input,
html[data-theme="dark"] body:not(.tv-mode) .history-toolbar select,
html[data-theme="dark"] body:not(.tv-mode) .sheet-toolbar input,
html[data-theme="dark"] body:not(.tv-mode) .sheet-toolbar select,
html[data-theme="dark"] body:not(.tv-mode) .sep-filter-grid input,
html[data-theme="dark"] body:not(.tv-mode) .sep-filter-grid select,
html[data-theme="dark"] body:not(.tv-mode) .sep-form-grid input,
html[data-theme="dark"] body:not(.tv-mode) .sep-form-grid select,
html[data-theme="dark"] body:not(.tv-mode) .people-filters input,
html[data-theme="dark"] body:not(.tv-mode) .people-filters select,
html[data-theme="dark"] body:not(.tv-mode) .filters input,
html[data-theme="dark"] body:not(.tv-mode) .filters select{
  background:#08110d !important;
  color:var(--ink) !important;
  border-color:#294236 !important;
}

html[data-theme="dark"] body:not(.tv-mode) .sep-kpis .kpi,
html[data-theme="dark"] body:not(.tv-mode) .sep-chart,
html[data-theme="dark"] body:not(.tv-mode) .sep-card-full,
html[data-theme="dark"] body:not(.tv-mode) .closing-panel,
html[data-theme="dark"] body:not(.tv-mode) .closed-sheets-panel,
html[data-theme="dark"] body:not(.tv-mode) .compare-panel,
html[data-theme="dark"] body:not(.tv-mode) .users-panel,
html[data-theme="dark"] body:not(.tv-mode) .leader-gallery-panel,
html[data-theme="dark"] body:not(.tv-mode) .permissions-help{
  background:var(--panel-elevated) !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
}

html[data-theme="dark"] body:not(.tv-mode) .sep-bar-row > span,
html[data-theme="dark"] body:not(.tv-mode) .closing-rank,
html[data-theme="dark"] body:not(.tv-mode) .report-tab,
html[data-theme="dark"] body:not(.tv-mode) .sep-tab,
html[data-theme="dark"] body:not(.tv-mode) .daily-line-legend span,
html[data-theme="dark"] body:not(.tv-mode) .sector-line-summary-card strong,
html[data-theme="dark"] body:not(.tv-mode) .compare-letter,
html[data-theme="dark"] body:not(.tv-mode) .bank-history-status,
html[data-theme="dark"] body:not(.tv-mode) .bank-status-today{
  color:var(--ink) !important;
}

html[data-theme="dark"] body:not(.tv-mode) .closing-rank,
html[data-theme="dark"] body:not(.tv-mode) .compare-letter{
  background:#0f1a14 !important;
  border-color:#244731 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .closing-bar-line i{
  background:#0b6b35 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .closing-bar-line i.value{
  background:#c97917 !important;
}

/* Ajuste específico do modal "Progresso do Pedido" no modo escuro */
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal{
  background:var(--panel-elevated) !important;
  border-color:var(--line) !important;
  color:var(--ink) !important;
  box-shadow:0 28px 80px rgba(0,0,0,.45) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .modal-head,
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .modal-body,
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .modal-actions{
  background:transparent !important;
  color:var(--ink) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .modal-head h2,
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .modal-body h2,
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .modal-actions .btn{
  color:var(--ink) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .modal-head p,
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .modal-body small{
  color:var(--muted) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .modal-close{
  background:#15201a !important;
  color:#f3fff6 !important;
  border:1px solid #284233 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .quick-progress-totals div{
  background:var(--panel-soft) !important;
  border:1px solid var(--line) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .quick-progress-totals b{
  color:var(--ink) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .empty-sheet{
  background:#08110d !important;
  color:#f4fff7 !important;
  border-color:#1e3429 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .table-wrap,
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .table,
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .table thead,
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .table tbody,
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .table tr,
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .table td,
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .table th{
  background:transparent !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .btn.btn-ghost{
  background:#0d1712 !important;
  color:#f3fff6 !important;
  border-color:#264133 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .production-progress-modal .btn.btn-primary{
  color:#fff !important;
}

/* ===== Correções extras de contraste no modo escuro ===== */
html[data-theme="dark"] body:not(.tv-mode) .absents-modal{
  background:var(--panel-elevated) !important;
  border-color:var(--line) !important;
  color:var(--ink) !important;
  box-shadow:0 28px 80px rgba(0,0,0,.45) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .absents-modal .modal-head,
html[data-theme="dark"] body:not(.tv-mode) .absents-modal .modal-body,
html[data-theme="dark"] body:not(.tv-mode) .absents-modal .modal-actions{
  background:transparent !important;
  color:var(--ink) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .absents-modal h2,
html[data-theme="dark"] body:not(.tv-mode) .absents-modal b,
html[data-theme="dark"] body:not(.tv-mode) .absents-modal strong{
  color:var(--ink) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .absents-modal p,
html[data-theme="dark"] body:not(.tv-mode) .absents-modal small,
html[data-theme="dark"] body:not(.tv-mode) .absents-modal .quick-absence-row small{
  color:var(--muted) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .absents-modal .modal-close{
  background:#15201a !important;
  color:#f3fff6 !important;
  border:1px solid #284233 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .absents-modal .empty-sheet{
  background:#08110d !important;
  color:#f4fff7 !important;
  border-color:#1e3429 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .absents-modal .btn.btn-ghost{
  background:#0d1712 !important;
  color:#f3fff6 !important;
  border-color:#264133 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .absents-modal .btn.btn-primary{
  color:#fff !important;
}

html[data-theme="dark"] body:not(.tv-mode) .shift-summary span,
html[data-theme="dark"] body:not(.tv-mode) .order-total-pill{
  background:var(--panel-soft) !important;
  border-color:var(--line) !important;
  color:var(--ink) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .shift-summary span b,
html[data-theme="dark"] body:not(.tv-mode) .order-total-pill b{
  color:var(--ink) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .shift-summary .risk{
  background:rgba(179,38,30,.16) !important;
  border-color:rgba(179,38,30,.35) !important;
  color:#ffb4ab !important;
}
html[data-theme="dark"] body:not(.tv-mode) .shift-summary .risk b{
  color:#ffd6d1 !important;
}

html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table,
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table thead,
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table tbody,
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table th,
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table td{
  background:transparent !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table td small,
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table th small{
  color:var(--muted) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table tbody tr:hover,
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table tbody tr:focus-within,
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table tbody tr:active{
  background:#0d1712 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table tbody tr:hover td,
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table tbody tr:focus-within td,
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table tbody tr:active td,
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table tbody tr:hover b,
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table tbody tr:focus-within b,
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .table tbody tr:active b{
  color:var(--ink) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .order-bar{
  background:#18231d !important;
  border:1px solid #24362c !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .btn.btn-soft{
  background:#0d1712 !important;
  color:#f3fff6 !important;
  border-color:#264133 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-progress-table .btn.btn-danger{
  color:#ffd8d4 !important;
}

/* ===== Ajustes finais adicionais solicitados ===== */

/* Remover contorno branco do bloco de Período/Setores em todas as abas no modo escuro */
html[data-theme="dark"] body:not(.tv-mode) .filters,
html[data-theme="dark"] body:not(.tv-mode) .closing-top-filters .filters,
html[data-theme="dark"] body:not(.tv-mode) .request-history-filters .filters{
  box-shadow:none !important;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
}

/* Modal genérico de edição/cadastro no modo escuro */
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card){
  background:var(--panel-elevated) !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
  box-shadow:0 28px 80px rgba(0,0,0,.45) !important;
}
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-head,
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-body,
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-actions{
  background:transparent !important;
  color:var(--ink) !important;
}
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-head h2,
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-body b,
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-body strong,
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-section-title{
  color:var(--ink) !important;
}
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-head p,
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-body label,
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-body small{
  color:var(--muted) !important;
}
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-body input,
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-body select,
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-body textarea{
  background:#08110d !important;
  color:#f4fff7 !important;
  border-color:#294236 !important;
}
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-body input::placeholder,
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-body textarea::placeholder{
  color:#7f9587 !important;
}
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .modal-close{
  background:#15201a !important;
  color:#f3fff6 !important;
  border:1px solid #284233 !important;
}
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .btn.btn-ghost{
  background:#0d1712 !important;
  color:#f3fff6 !important;
  border-color:#264133 !important;
}
html[data-theme="dark"] body:not(.tv-mode) #appModal .modal-card:not(.absents-modal):not(.production-progress-modal):not(.info-modal-card) .btn.btn-primary{
  color:#fff !important;
}

/* Números e textos dos gráficos em branco para melhor leitura no modo escuro */
html[data-theme="dark"] body:not(.tv-mode) .collab-chart-svg text,
html[data-theme="dark"] body:not(.tv-mode) .dashboard-collab-chart .collab-chart-svg text,
html[data-theme="dark"] body:not(.tv-mode) .daily-production-line-chart text,
html[data-theme="dark"] body:not(.tv-mode) .sep-line-chart text{
  fill:#f4fff7 !important;
  color:#f4fff7 !important;
}

/* Mantém destaque dos valores monetários/linhas setoriais quando houver classes específicas */
html[data-theme="dark"] body:not(.tv-mode) .chart-money,
html[data-theme="dark"] body:not(.tv-mode) .sep-line-chart .chart-money{
  fill:#f6c453 !important;
  color:#f6c453 !important;
}

/* ===== Ajuste Pedido do Dia no modo escuro ===== */
html[data-theme="dark"] body:not(.tv-mode) .order-bulk-card,
html[data-theme="dark"] body:not(.tv-mode) .order-shift-panel,
html[data-theme="dark"] body:not(.tv-mode) .order-bulk-card .panel-head,
html[data-theme="dark"] body:not(.tv-mode) .order-shift-panel .panel-head{
  color:var(--ink) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-bulk-card .panel-head h2,
html[data-theme="dark"] body:not(.tv-mode) .order-shift-panel .panel-head h2,
html[data-theme="dark"] body:not(.tv-mode) .order-bulk-card .panel-head p,
html[data-theme="dark"] body:not(.tv-mode) .order-shift-panel .panel-head p,
html[data-theme="dark"] body:not(.tv-mode) .order-bulk-actions small{
  color:var(--muted) !important;
}

html[data-theme="dark"] body:not(.tv-mode) .order-main-filters label,
html[data-theme="dark"] body:not(.tv-mode) .order-picker-toolbar label,
html[data-theme="dark"] body:not(.tv-mode) .order-bulk-row label,
html[data-theme="dark"] body:not(.tv-mode) .order-bulk-actions label{
  color:var(--muted) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-main-filters input,
html[data-theme="dark"] body:not(.tv-mode) .order-main-filters select,
html[data-theme="dark"] body:not(.tv-mode) .order-picker-toolbar input,
html[data-theme="dark"] body:not(.tv-mode) .order-bulk-row input,
html[data-theme="dark"] body:not(.tv-mode) .order-bulk-row select,
html[data-theme="dark"] body:not(.tv-mode) .order-bulk-actions input{
  background:#08110d !important;
  color:#f4fff7 !important;
  border-color:#294236 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-main-filters input::placeholder,
html[data-theme="dark"] body:not(.tv-mode) .order-picker-toolbar input::placeholder,
html[data-theme="dark"] body:not(.tv-mode) .order-bulk-row input::placeholder{
  color:#7f9587 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-fixed-sector{
  background:#0b1510 !important;
  border-color:#22372c !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-fixed-sector span{color:var(--muted) !important;}
html[data-theme="dark"] body:not(.tv-mode) .order-fixed-sector b{color:var(--ink) !important;}

html[data-theme="dark"] body:not(.tv-mode) .order-product-picker{
  background:var(--panel-elevated) !important;
  border-color:var(--line) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-product-check{
  background:#0d1712 !important;
  border-color:#22372c !important;
  color:#f4fff7 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-product-check span,
html[data-theme="dark"] body:not(.tv-mode) .order-product-check b,
html[data-theme="dark"] body:not(.tv-mode) .order-product-check small{
  color:inherit !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-product-check.selected{
  background:rgba(36,88,57,.42) !important;
  border-color:#3aa56a !important;
  color:#ffffff !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-product-check input{
  accent-color:#2ac96b !important;
}

html[data-theme="dark"] body:not(.tv-mode) .order-bulk-row{
  background:var(--panel-soft) !important;
  border-color:var(--line) !important;
  box-shadow:none !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-bulk-product b{color:#ffffff !important;}
html[data-theme="dark"] body:not(.tv-mode) .order-bulk-product small{color:var(--muted) !important;}
html[data-theme="dark"] body:not(.tv-mode) .order-priority-check span{color:var(--muted) !important;}
html[data-theme="dark"] body:not(.tv-mode) .order-bulk-row input:disabled{
  background:#101b16 !important;
  color:#91a596 !important;
  border-color:#23372d !important;
}

html[data-theme="dark"] body:not(.tv-mode) .order-draft-summary>div{
  background:#0b1510 !important;
  border-color:#22372c !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-draft-summary span{color:var(--muted) !important;}
html[data-theme="dark"] body:not(.tv-mode) .order-draft-summary strong{color:#ffffff !important;}

html[data-theme="dark"] body:not(.tv-mode) .order-bulk-actions .btn.btn-soft,
html[data-theme="dark"] body:not(.tv-mode) .order-save-line .btn.btn-primary{
  color:#ffffff !important;
}

/* ===== Ajuste global do período personalizado no modo escuro ===== */
html[data-theme="dark"] body:not(.tv-mode) .custom-period-row{
  gap:12px !important;
}
html[data-theme="dark"] body:not(.tv-mode) .custom-period-row > b,
html[data-theme="dark"] body:not(.tv-mode) .pill-row > b{
  color:#dceade !important;
}
html[data-theme="dark"] body:not(.tv-mode) .custom-period-row label{
  background:#08110d !important;
  border:1px solid #284137 !important;
  color:#dbe9dd !important;
  box-shadow:none !important;
}
html[data-theme="dark"] body:not(.tv-mode) .custom-period-row label:hover,
html[data-theme="dark"] body:not(.tv-mode) .custom-period-row label:focus-within{
  border-color:#38b469 !important;
  box-shadow:0 0 0 3px rgba(56,180,105,.12) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .custom-period-row input{
  color:#ffffff !important;
  background:transparent !important;
}
html[data-theme="dark"] body:not(.tv-mode) .custom-period-row input::-webkit-datetime-edit,
html[data-theme="dark"] body:not(.tv-mode) .custom-period-row input::-webkit-datetime-edit-text,
html[data-theme="dark"] body:not(.tv-mode) .custom-period-row input::-webkit-datetime-edit-month-field,
html[data-theme="dark"] body:not(.tv-mode) .custom-period-row input::-webkit-datetime-edit-day-field,
html[data-theme="dark"] body:not(.tv-mode) .custom-period-row input::-webkit-datetime-edit-year-field{
  color:#ffffff !important;
}
html[data-theme="dark"] body:not(.tv-mode) .custom-period-row input::-webkit-calendar-picker-indicator{
  filter:invert(1) brightness(1.2);
  opacity:.9;
}
html[data-theme="dark"] body:not(.tv-mode) .filters .custom-period-row,
html[data-theme="dark"] body:not(.tv-mode) .closing-top-filters .custom-period-row,
html[data-theme="dark"] body:not(.tv-mode) .request-history-filters .custom-period-row{
  background:transparent !important;
  border:0 !important;
  outline:0 !important;
}

/* ===== Correção global do hover branco nas tabelas do modo escuro ===== */
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:hover,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:focus-within,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:active {
  background:#0d1712 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:hover td,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:focus-within td,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:active td,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:hover th,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:focus-within th,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:active th {
  background:transparent !important;
  color:var(--ink) !important;
  border-color:var(--line) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:hover small,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:focus-within small,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:active small,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:hover span,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:focus-within span,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:active span,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:hover b,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:focus-within b,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:active b,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:hover strong,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:focus-within strong,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:active strong,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:hover a,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:focus-within a,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:active a {
  color:var(--ink) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:hover .muted,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:focus-within .muted,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:active .muted,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:hover small,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:focus-within small,
html[data-theme="dark"] body:not(.tv-mode) .table tbody tr:active small {
  color:var(--muted) !important;
}

/* ===== Ajustes extras: presença diária e conferência no modo escuro ===== */
html[data-theme="dark"] body:not(.tv-mode) .attendance-status-summary span{
  background:#111b15 !important;
  border:1px solid #294033 !important;
  color:#f3fff6 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .attendance-status-summary span b{
  color:#ffffff !important;
}
html[data-theme="dark"] body:not(.tv-mode) .att-btn{
  background:#101915 !important;
  color:#f3fff6 !important;
  border-color:#294033 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .att-btn:hover{
  background:#16231d !important;
  color:#ffffff !important;
  border-color:#345241 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .att-btn.present.active,
html[data-theme="dark"] body:not(.tv-mode) .att-btn.present:hover{
  background:#123120 !important;
  color:#9ef0b8 !important;
  border-color:#2d6a43 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .att-btn.faltou.active,
html[data-theme="dark"] body:not(.tv-mode) .att-btn.faltou:hover{
  background:#34181b !important;
  color:#ffb0ad !important;
  border-color:#6d2b31 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .att-btn.atestado.active,
html[data-theme="dark"] body:not(.tv-mode) .att-btn.atestado:hover{
  background:#33240f !important;
  color:#ffd28a !important;
  border-color:#6b4a1b !important;
}
html[data-theme="dark"] body:not(.tv-mode) .att-btn.folga.active,
html[data-theme="dark"] body:not(.tv-mode) .att-btn.folga:hover,
html[data-theme="dark"] body:not(.tv-mode) .att-btn.ferias.active,
html[data-theme="dark"] body:not(.tv-mode) .att-btn.ferias:hover{
  background:#17263a !important;
  color:#a9cfff !important;
  border-color:#29496f !important;
}
html[data-theme="dark"] body:not(.tv-mode) .att-btn.clear.active,
html[data-theme="dark"] body:not(.tv-mode) .att-btn.clear:hover{
  background:#1b2520 !important;
  color:#e8f5ec !important;
  border-color:#3c5145 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .jornada-status{
  background:#101915 !important;
  border-color:#294033 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .jornada-status b{
  color:#ffffff !important;
}
html[data-theme="dark"] body:not(.tv-mode) .jornada-status small{
  color:#b9cbbf !important;
}
html[data-theme="dark"] body:not(.tv-mode) .jornada-status.open{
  background:#12261b !important;
  border-color:#28553a !important;
}
html[data-theme="dark"] body:not(.tv-mode) .jornada-status.closed{
  background:#142133 !important;
  border-color:#274566 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .collab-menu-btn{
  background:#101915 !important;
  color:#f3fff6 !important;
  border-color:#294033 !important;
  box-shadow:none !important;
}
html[data-theme="dark"] body:not(.tv-mode) .collab-menu-btn:hover{
  background:#16231d !important;
  border-color:#345241 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .collab-action-menu{
  background:#0f1713 !important;
  color:#f3fff6 !important;
  border-color:#294033 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .collab-action-item:hover{
  background:#16231d !important;
}
html[data-theme="dark"] body:not(.tv-mode) .status-flow{
  color:#eefbf2 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .status-flow span{
  background:#12241b !important;
  border:1px solid #244330 !important;
  color:#b9f3cb !important;
}
html[data-theme="dark"] body:not(.tv-mode) .review-fast-filters{
  background:#0f1713 !important;
  border-color:#294033 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .review-fast-filters label,
html[data-theme="dark"] body:not(.tv-mode) .review-fast-filters small{
  color:#c7d8cd !important;
}
html[data-theme="dark"] body:not(.tv-mode) .review-collabs{
  gap:8px !important;
}
html[data-theme="dark"] body:not(.tv-mode) .collab-line{
  background:#101915 !important;
  border-color:#294033 !important;
  color:#ffffff !important;
}
html[data-theme="dark"] body:not(.tv-mode) .collab-line small{
  color:#9ef0b8 !important;
}

/* ===== Ajustes finais adicionais — capturas de 16/07 ===== */
html[data-theme="dark"] body:not(.tv-mode) .product-sector-icon{
  background:linear-gradient(145deg,#14241b,#1b3024) !important;
  border:1px solid #2e4b3a !important;
  color:#9fe6b9 !important;
  box-shadow:none !important;
}
html[data-theme="dark"] body:not(.tv-mode) .product-sector-icon svg{
  filter:none !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-product-check:hover{
  background:#132118 !important;
  border-color:#355542 !important;
}

html[data-theme="dark"] body:not(.tv-mode) .order-kpi-line div,
html[data-theme="dark"] body:not(.tv-mode) .jornada-sector-stats > div,
html[data-theme="dark"] body:not(.tv-mode) .jornada-period-pill,
html[data-theme="dark"] body:not(.tv-mode) .jornada-sector-subline,
html[data-theme="dark"] body:not(.tv-mode) .sep-closing-kpis > div{
  background:#101915 !important;
  border:1px solid #294033 !important;
  color:#eef5f0 !important;
  box-shadow:none !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-kpi-line small,
html[data-theme="dark"] body:not(.tv-mode) .jornada-sector-stats > div span,
html[data-theme="dark"] body:not(.tv-mode) .jornada-period-pill span,
html[data-theme="dark"] body:not(.tv-mode) .jornada-sector-subline small,
html[data-theme="dark"] body:not(.tv-mode) .sep-closing-kpis span{
  color:#a9bbb0 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .order-kpi-line b,
html[data-theme="dark"] body:not(.tv-mode) .jornada-sector-stats > div b,
html[data-theme="dark"] body:not(.tv-mode) .jornada-period-pill b,
html[data-theme="dark"] body:not(.tv-mode) .jornada-sector-subline b,
html[data-theme="dark"] body:not(.tv-mode) .sep-closing-kpis strong{
  color:#ffffff !important;
}

html[data-theme="dark"] body:not(.tv-mode) .history-tools,
html[data-theme="dark"] body:not(.tv-mode) .history-toolbar,
html[data-theme="dark"] body:not(.tv-mode) .review-fast-filters,
html[data-theme="dark"] body:not(.tv-mode) .material-batch-products{
  background:#0f1713 !important;
  border:1px solid #294033 !important;
  color:#eef5f0 !important;
  box-shadow:none !important;
}
html[data-theme="dark"] body:not(.tv-mode) .history-tools label,
html[data-theme="dark"] body:not(.tv-mode) .history-toolbar label,
html[data-theme="dark"] body:not(.tv-mode) .review-fast-filters label,
html[data-theme="dark"] body:not(.tv-mode) .material-batch-products-head div b,
html[data-theme="dark"] body:not(.tv-mode) .material-batch-products-head div strong{
  color:#eef5f0 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .history-tools small,
html[data-theme="dark"] body:not(.tv-mode) .history-tools label,
html[data-theme="dark"] body:not(.tv-mode) .history-toolbar small,
html[data-theme="dark"] body:not(.tv-mode) .review-fast-filters small,
html[data-theme="dark"] body:not(.tv-mode) .material-batch-products-head small{
  color:#a9bbb0 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .history-tools input,
html[data-theme="dark"] body:not(.tv-mode) .history-tools select,
html[data-theme="dark"] body:not(.tv-mode) .history-toolbar input,
html[data-theme="dark"] body:not(.tv-mode) .history-toolbar select,
html[data-theme="dark"] body:not(.tv-mode) .review-fast-filters input,
html[data-theme="dark"] body:not(.tv-mode) .review-fast-filters select,
html[data-theme="dark"] body:not(.tv-mode) .review-toolbar input,
html[data-theme="dark"] body:not(.tv-mode) .material-consumption-grid input,
html[data-theme="dark"] body:not(.tv-mode) .material-consumption-grid select{
  background:#09110d !important;
  border:1px solid #294236 !important;
  color:#ffffff !important;
}
html[data-theme="dark"] body:not(.tv-mode) input[type="date"]::-webkit-datetime-edit,
html[data-theme="dark"] body:not(.tv-mode) input[type="date"]::-webkit-datetime-edit-text,
html[data-theme="dark"] body:not(.tv-mode) input[type="date"]::-webkit-datetime-edit-month-field,
html[data-theme="dark"] body:not(.tv-mode) input[type="date"]::-webkit-datetime-edit-day-field,
html[data-theme="dark"] body:not(.tv-mode) input[type="date"]::-webkit-datetime-edit-year-field{
  color:#ffffff !important;
}
html[data-theme="dark"] body:not(.tv-mode) input[type="date"]::-webkit-calendar-picker-indicator{
  filter:invert(1) brightness(1.25);
  opacity:.92;
}
html[data-theme="dark"] body:not(.tv-mode) .history-tools .eye-toggle,
html[data-theme="dark"] body:not(.tv-mode) .eye-toggle{
  background:#09110d !important;
  border:1px solid #294236 !important;
  color:#eef5f0 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .history-tools .eye-toggle span,
html[data-theme="dark"] body:not(.tv-mode) .history-tools .eye-toggle,
html[data-theme="dark"] body:not(.tv-mode) .history-tools .eye-toggle *{
  color:#eef5f0 !important;
}

html[data-theme="dark"] body:not(.tv-mode) .review-fast-filters .btn,
html[data-theme="dark"] body:not(.tv-mode) .history-tools .btn,
html[data-theme="dark"] body:not(.tv-mode) .review-toolbar .btn,
html[data-theme="dark"] body:not(.tv-mode) .material-batch-products .btn{
  box-shadow:none !important;
}
html[data-theme="dark"] body:not(.tv-mode) .review-fast-filters .btn.btn-ghost,
html[data-theme="dark"] body:not(.tv-mode) .history-tools .btn.btn-ghost,
html[data-theme="dark"] body:not(.tv-mode) .material-batch-products .btn.btn-ghost{
  background:#0b1510 !important;
  border-color:#294033 !important;
  color:#f4fff7 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .review-fast-filters .btn.btn-ghost:hover,
html[data-theme="dark"] body:not(.tv-mode) .history-tools .btn.btn-ghost:hover,
html[data-theme="dark"] body:not(.tv-mode) .material-batch-products .btn.btn-ghost:hover{
  background:#15231a !important;
  border-color:#3a5b47 !important;
}

html[data-theme="dark"] body:not(.tv-mode) .review-collabs{
  gap:8px !important;
}
html[data-theme="dark"] body:not(.tv-mode) .review-collabs .collab-line,
html[data-theme="dark"] body:not(.tv-mode) .collab-line{
  background:#101915 !important;
  border:1px solid #294033 !important;
  color:#f4fff7 !important;
  box-shadow:none !important;
}
html[data-theme="dark"] body:not(.tv-mode) .review-collabs .collab-line small,
html[data-theme="dark"] body:not(.tv-mode) .collab-line small{
  color:#9fe6b9 !important;
}

html[data-theme="dark"] body:not(.tv-mode) .material-batch-products{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
html[data-theme="dark"] body:not(.tv-mode) .material-batch-products-head{
  border-bottom:1px solid #294033 !important;
  padding-bottom:10px !important;
}
html[data-theme="dark"] body:not(.tv-mode) .material-batch-product{
  background:#0b1510 !important;
  border:1px solid #22382c !important;
  color:#f4fff7 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .material-batch-product:hover{
  background:#111c16 !important;
  border-color:#31523f !important;
}
html[data-theme="dark"] body:not(.tv-mode) .material-batch-product span b{
  color:#ffffff !important;
}
html[data-theme="dark"] body:not(.tv-mode) .material-batch-product span small{
  color:#b7c8bf !important;
}
html[data-theme="dark"] body:not(.tv-mode) .material-batch-product input{
  accent-color:#30cb70 !important;
}

html[data-theme="dark"] body:not(.tv-mode) .jornada-point-label-bg{
  fill:#15231a !important;
  stroke:#31523f !important;
  filter:none !important;
}
html[data-theme="dark"] body:not(.tv-mode) .jornada-point-label,
html[data-theme="dark"] body:not(.tv-mode) .daily-point-value,
html[data-theme="dark"] body:not(.tv-mode) .daily-point-label,
html[data-theme="dark"] body:not(.tv-mode) .chart-number,
html[data-theme="dark"] body:not(.tv-mode) .point-label,
html[data-theme="dark"] body:not(.tv-mode) .sep-line-chart text{
  fill:#eef5f0 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .chart-money,
html[data-theme="dark"] body:not(.tv-mode) .sep-line-chart .chart-money{
  fill:#f6c453 !important;
  color:#f6c453 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .point-errors,
html[data-theme="dark"] body:not(.tv-mode) .point-loss{
  stroke:#08110d !important;
}

html[data-theme="dark"] body:not(.tv-mode) .table thead th,
html[data-theme="dark"] body:not(.tv-mode) .review-table thead th,
html[data-theme="dark"] body:not(.tv-mode) .people-table thead th,
html[data-theme="dark"] body:not(.tv-mode) .attendance-table thead th{
  color:#bfd0c6 !important;
}


/* Ajustes finais — bonificações + TV sempre clara */
[data-theme="dark"] .product-bonus-toolbar{
  background:linear-gradient(180deg,#0d1812 0%,#111f18 100%);
  border-color:#264332;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03), 0 10px 24px rgba(0,0,0,.14);
}
[data-theme="dark"] .product-bonus-toolbar label{
  color:#c9dbd1;
}
[data-theme="dark"] .product-bonus-toolbar input,
[data-theme="dark"] .product-bonus-toolbar select{
  background:#08130f;
  border-color:#284635;
  color:#eef5f0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
[data-theme="dark"] .product-bonus-toolbar input::placeholder{
  color:#8ea698;
  opacity:1;
}
[data-theme="dark"] .product-bonus-toolbar .btn-soft{
  background:#133120;
  color:#d8f5e1;
  border-color:#264b35;
}
[data-theme="dark"] .product-bonus-toolbar .btn-ghost{
  background:#0d1812;
  color:#eef5f0;
  border-color:#264332;
}
body.tv-mode[data-theme="dark"],
[data-theme="dark"] body.tv-mode{
  background:#f4f8f5 !important;
}
[data-theme="dark"] .tv-mode .content,
[data-theme="dark"] .tv-mode .tv-standalone .content{
  background:linear-gradient(180deg,#f4f8f5 0%,#edf5ef 100%) !important;
  color:#102132 !important;
}
[data-theme="dark"] .tv-mode .card{
  background:#ffffff !important;
  color:#102132 !important;
  border-color:#dbe8df !important;
}

/* ===== Finalização: Histórico de Produções + menu do perfil ===== */
@media (min-width:901px){
  html[data-theme="dark"] body:not(.tv-mode) .history-head{
    display:grid !important;
    grid-template-columns:190px minmax(0,1fr) !important;
    align-items:start !important;
    gap:18px !important;
  }
  html[data-theme="dark"] body:not(.tv-mode) .history-head > h2{
    margin-top:2px !important;
  }
  html[data-theme="dark"] body:not(.tv-mode) .history-tools{
    display:grid !important;
    grid-template-columns:minmax(160px,.75fr) minmax(190px,1fr) minmax(210px,1.15fr) auto auto !important;
    align-items:end !important;
    gap:10px !important;
    width:100% !important;
    padding:0 !important;
    margin:0 !important;
    background:transparent !important;
    border:0 !important;
    border-radius:0 !important;
    outline:0 !important;
    box-shadow:none !important;
  }
  html[data-theme="dark"] body:not(.tv-mode) .history-tools > label,
  html[data-theme="dark"] body:not(.tv-mode) .history-tools > button{
    min-width:0 !important;
    margin:0 !important;
  }
  html[data-theme="dark"] body:not(.tv-mode) .history-tools > label:not(.eye-toggle){
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) !important;
    align-items:center !important;
    gap:8px !important;
  }
  html[data-theme="dark"] body:not(.tv-mode) .history-tools input,
  html[data-theme="dark"] body:not(.tv-mode) .history-tools select{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
  }
  html[data-theme="dark"] body:not(.tv-mode) .history-tools .btn-soft{
    grid-column:4 / 6 !important;
    justify-self:end !important;
    min-width:190px !important;
  }
}

html[data-theme="dark"] body:not(.tv-mode) .history-tools .eye-toggle{
  min-height:42px !important;
  padding:9px 14px !important;
  justify-content:center !important;
  white-space:nowrap !important;
}
html[data-theme="dark"] body:not(.tv-mode) .history-tools .btn{
  min-height:42px !important;
  white-space:nowrap !important;
}

html[data-theme="dark"] body:not(.tv-mode) .user-dropdown{
  background:#101915 !important;
  border-color:#294033 !important;
  box-shadow:0 22px 48px rgba(0,0,0,.42) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .user-dropdown .user-dropdown-item{
  color:#ffffff !important;
  font-weight:800 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .user-dropdown .user-dropdown-item:hover,
html[data-theme="dark"] body:not(.tv-mode) .user-dropdown .user-dropdown-item:focus-visible{
  background:#18271f !important;
  color:#ffffff !important;
}
html[data-theme="dark"] body:not(.tv-mode) .user-dropdown .user-dropdown-item.danger{
  color:#ff5c55 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .user-dropdown .user-dropdown-item.danger:hover{
  background:#321719 !important;
  color:#ff8c87 !important;
}

/* ===== Ajuste final: cabeçalho mobile no tema escuro ===== */
@media (max-width:720px){
  html[data-theme="dark"] body:not(.tv-mode) .mobile-topbar{
    background:#07120d !important;
    border-bottom:1px solid #22352a !important;
    box-shadow:0 10px 24px rgba(0,0,0,.22);
  }

  html[data-theme="dark"] body:not(.tv-mode) .mobile-brand{
    gap:10px;
    min-width:0;
  }

  html[data-theme="dark"] body:not(.tv-mode) .mobile-brand-logo{
    background:#f4fbf6 !important;
    padding:6px !important;
    border-radius:12px !important;
    box-shadow:0 6px 16px rgba(0,0,0,.18);
  }

  html[data-theme="dark"] body:not(.tv-mode) .mobile-brand-copy strong,
  html[data-theme="dark"] body:not(.tv-mode) .mobile-brand-copy strong span,
  html[data-theme="dark"] body:not(.tv-mode) .mobile-topbar .mobile-brand-copy strong{
    color:#f4fbf6 !important;
  }

  html[data-theme="dark"] body:not(.tv-mode) .mobile-brand-copy small,
  html[data-theme="dark"] body:not(.tv-mode) .mobile-topbar .mobile-brand-copy small{
    color:#c7d7ce !important;
  }
}

/* ===== Ajuste final: ícone do card "Valor gerado" ===== */
.dashboard-kpis .dash-kpi-card .dash-icon.money{
  position:relative;
  overflow:hidden;
  border-radius:20px !important;
  background:linear-gradient(145deg,#f4fbf6 0%,#e0f4e6 100%) !important;
  border:1px solid rgba(27,124,67,.14) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 10px 24px rgba(14,79,41,.10),
    0 0 0 4px rgba(46,151,84,.06) !important;
}
.dashboard-kpis .dash-kpi-card .dash-icon.money::before{
  content:"";
  position:absolute;
  inset:7px;
  border-radius:16px;
  background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.14) 58%, transparent 59%), linear-gradient(160deg, rgba(58,183,102,.16), rgba(14,86,43,.02));
  border:1px solid rgba(58,183,102,.14);
}
.dashboard-kpis .dash-kpi-card .dash-icon.money .premium-outline-icon{
  position:relative;
  z-index:1;
  width:31px;
  height:31px;
  color:#15914b !important;
  stroke-width:1.85;
  filter:drop-shadow(0 3px 8px rgba(21,145,75,.18));
}

html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-kpi-card .dash-icon.money{
  background:linear-gradient(145deg,#0f251a 0%,#153624 100%) !important;
  border:1px solid rgba(70,214,119,.24) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 12px 28px rgba(0,0,0,.28),
    0 0 0 4px rgba(57,173,101,.10) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-kpi-card .dash-icon.money::before{
  background:radial-gradient(circle at 30% 30%, rgba(87,255,151,.10), rgba(87,255,151,.03) 55%, transparent 56%), linear-gradient(160deg, rgba(72,212,122,.12), rgba(12,25,18,.02));
  border:1px solid rgba(80,220,130,.18);
}
html[data-theme="dark"] body:not(.tv-mode) .dashboard-kpis .dash-kpi-card .dash-icon.money .premium-outline-icon{
  color:#56e28e !important;
  filter:drop-shadow(0 0 8px rgba(86,226,142,.24));
}


html[data-theme="dark"] body:not(.tv-mode) .materials-loss-donut-card{
  background:linear-gradient(180deg,rgba(8,31,20,.94),rgba(6,24,16,.98)) !important;
  border-color:rgba(60,111,82,.4) !important;
  box-shadow:none !important;
}
html[data-theme="dark"] body:not(.tv-mode) .materials-loss-donut-head h3{
  color:#f4fff7 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .materials-loss-donut-head small,
html[data-theme="dark"] body:not(.tv-mode) .materials-donut-item small,
html[data-theme="dark"] body:not(.tv-mode) .materials-donut-item span,
html[data-theme="dark"] body:not(.tv-mode) .materials-loss-donut-hole small{
  color:#99b3a5 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .materials-loss-donut-ring{
  box-shadow:inset 0 2px 14px rgba(255,255,255,.05),0 16px 30px rgba(0,0,0,.28) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .materials-loss-donut-hole{
  background:#071911 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .materials-loss-donut-hole strong,
html[data-theme="dark"] body:not(.tv-mode) .materials-donut-item strong{
  color:#eafff0 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .materials-loss-donut-hole span{
  color:#79d699 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .materials-donut-item{
  background:rgba(9,34,22,.85) !important;
  border-color:rgba(60,111,82,.4) !important;
}
html[data-theme="dark"] body:not(.tv-mode) .materials-donut-item b{
  color:#f4fff7 !important;
}

/* Refinamento final do gráfico de rosca de perdas */
.materials-loss-donut-card{
  min-height:100%;
}
.materials-loss-donut-head h3{
  font-size:24px;
}
.materials-loss-donut-wrap{
  flex:1;
}
.materials-donut-item{
  min-height:72px;
}
.materials-donut-item strong{
  font-size:16px;
}
@media(max-width:1000px){
  .materials-loss-donut-wrap{grid-template-columns:220px minmax(0,1fr)}
}
@media(max-width:650px){
  .materials-loss-donut-wrap{grid-template-columns:1fr}
}


/* ===== Correção definitiva da legenda do gráfico de rosca ===== */
.materials-report-visuals{
  grid-template-columns:minmax(440px,500px) minmax(0,1fr) !important;
}
.materials-loss-donut-card{
  min-width:0;
  overflow:hidden;
}
.materials-loss-donut-wrap{
  grid-template-columns:210px minmax(0,1fr) !important;
  gap:22px !important;
}
.materials-loss-donut-ring{
  width:210px !important;
  height:210px !important;
}
.materials-loss-donut-hole{
  inset:27px !important;
}
.materials-loss-donut-legend{
  min-width:0;
  gap:12px !important;
}
.materials-donut-item{
  display:grid !important;
  grid-template-columns:12px minmax(0,1fr) auto !important;
  grid-template-areas:"dot copy metrics" !important;
  align-items:center !important;
  column-gap:10px !important;
  row-gap:4px !important;
  min-width:0 !important;
  min-height:86px !important;
  padding:12px 14px !important;
}
.materials-donut-item > i{
  grid-area:dot;
  align-self:center;
}
.materials-donut-copy{
  grid-area:copy;
  min-width:0;
}
.materials-donut-copy b{
  display:block;
  white-space:normal;
  overflow-wrap:anywhere;
  font-size:15px !important;
  line-height:1.15 !important;
}
.materials-donut-copy small{
  display:block;
  margin-top:5px !important;
  white-space:normal;
  overflow-wrap:anywhere;
  line-height:1.25 !important;
  font-size:12px !important;
}
.materials-donut-metrics{
  grid-area:metrics;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:center;
  gap:5px;
  min-width:78px;
  padding-left:8px;
}
.materials-donut-metrics strong{
  display:block;
  margin:0 !important;
  white-space:nowrap;
  font-size:15px !important;
  line-height:1.15 !important;
}
.materials-donut-metrics span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:46px;
  padding:4px 8px;
  border-radius:999px;
  background:#eef7f0;
  color:#466254 !important;
  font-size:11px !important;
  font-weight:900 !important;
  line-height:1 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .materials-donut-metrics span{
  background:#183226 !important;
  color:#a9e9bd !important;
}
@media(max-width:1180px){
  .materials-report-visuals{grid-template-columns:1fr !important}
  .materials-loss-donut-wrap{grid-template-columns:220px minmax(0,1fr) !important}
}
@media(max-width:650px){
  .materials-loss-donut-wrap{grid-template-columns:1fr !important}
  .materials-donut-item{grid-template-columns:12px minmax(0,1fr) auto !important}
  .materials-loss-donut-ring{width:190px !important;height:190px !important}
  .materials-loss-donut-hole{inset:24px !important}
}

/* ===== Ajuste final: gráfico de rendimento do papel filme em largura total ===== */
.materials-report-visuals{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:20px !important;
}
.materials-report-visuals .materials-report-chart{
  width:100% !important;
  min-width:0 !important;
  margin:0 !important;
}
.materials-report-visuals .materials-report-chart .daily-production-line-chart{
  width:100% !important;
  min-height:420px !important;
  display:block !important;
}
.materials-loss-donut-card{
  width:100% !important;
}
.materials-loss-donut-wrap{
  grid-template-columns:240px minmax(0,1fr) !important;
  max-width:760px !important;
}
@media(max-width:900px){
  .materials-report-visuals .materials-report-chart .daily-production-line-chart{
    min-height:360px !important;
  }
}
@media(max-width:650px){
  .materials-report-visuals .materials-report-chart .daily-production-line-chart{
    min-height:300px !important;
  }
  .materials-loss-donut-wrap{
    grid-template-columns:1fr !important;
    max-width:none !important;
  }
}

/* Primeira etapa — períodos de atestado, férias e folga */
.attendance-period-person{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:14px 16px;
  border:1px solid #dbe8df;
  border-radius:16px;
  background:#f6fbf7;
}
.attendance-period-person b{font-size:18px;color:#102132}
.attendance-period-person span{font-size:13px;color:#667085;font-weight:700}
html[data-theme="dark"] body:not(.tv-mode) .attendance-period-person{
  background:#0d1812;
  border-color:#294033;
}
html[data-theme="dark"] body:not(.tv-mode) .attendance-period-person b{color:#f4fff7}
html[data-theme="dark"] body:not(.tv-mode) .attendance-period-person span{color:#a9bbb0}

/* ===== Etapa 2: gestão de atestados, férias e folgas ===== */
.attendance-period-management{margin-top:18px}
.period-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}
.period-summary-grid>div{padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--panel-soft,#f7fbf8)}
.period-summary-grid span{display:block;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.period-summary-grid strong{display:block;margin-top:7px;font-size:24px;color:var(--ink)}
.attendance-period-table td small{display:block;margin-top:4px;color:var(--muted)}
.period-state{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900;border:1px solid transparent}
.period-state-ativo{background:#e8f8ed;color:#13733b;border-color:#bfe6cb}
.period-state-futuro{background:#edf4ff;color:#285ea8;border-color:#cbdcf3}
.period-state-encerrado{background:#f1f4f2;color:#607067;border-color:#dce4df}
.period-state-cancelado{background:#fff0f0;color:#b42318;border-color:#f0c4c1}
.period-detail-box{display:flex;flex-direction:column;gap:9px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--panel-soft,#f7fbf8)}
.period-detail-box b{font-size:18px}
.period-detail-box span{color:var(--muted)}
@media(max-width:900px){.period-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.period-summary-grid{grid-template-columns:1fr 1fr}.attendance-period-management .table-wrap{overflow-x:auto}}
html[data-theme="dark"] body:not(.tv-mode) .period-summary-grid>div,
html[data-theme="dark"] body:not(.tv-mode) .period-detail-box{background:#0d1712!important;border-color:#294033!important}
html[data-theme="dark"] body:not(.tv-mode) .period-summary-grid strong,
html[data-theme="dark"] body:not(.tv-mode) .period-detail-box b{color:#f4fff7!important}
html[data-theme="dark"] body:not(.tv-mode) .period-state-ativo{background:#123120;color:#9ef0b8;border-color:#2d6a43}
html[data-theme="dark"] body:not(.tv-mode) .period-state-futuro{background:#17263a;color:#a9cfff;border-color:#29496f}
html[data-theme="dark"] body:not(.tv-mode) .period-state-encerrado{background:#17201b;color:#b7c8bf;border-color:#34463c}
html[data-theme="dark"] body:not(.tv-mode) .period-state-cancelado{background:#34181b;color:#ffb0ad;border-color:#6d2b31}

/* ===== Etapa 3 — segurança e histórico da folga compensatória ===== */
.period-compensation-detail{
  margin-top:14px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel-soft);
  display:flex;
  flex-direction:column;
  gap:6px;
}
.period-compensation-detail b{font-size:14px;color:var(--ink)}
.period-compensation-detail strong{margin-top:4px;color:var(--green-800)}
.period-compensation-detail span{color:var(--muted);font-size:13px}
.bank-compensation-history td small{display:block;margin-top:3px;color:var(--muted);line-height:1.45}
.bank-compensation-history td{vertical-align:top}
html[data-theme="dark"] body:not(.tv-mode) .period-compensation-detail{
  background:#0c1711 !important;
  border-color:#294236 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .period-compensation-detail b,
html[data-theme="dark"] body:not(.tv-mode) .period-compensation-detail strong{
  color:#f4fff7 !important;
}
html[data-theme="dark"] body:not(.tv-mode) .period-compensation-detail span,
html[data-theme="dark"] body:not(.tv-mode) .bank-compensation-history td small{
  color:#a7c0b1 !important;
}

/* Etapa 4 — prioridade automática dos status de presença */
.attendance-priority-note{display:block;margin-top:5px;font-size:11px;font-weight:700;color:#8a5a00}
.attendance-buttons.is-locked{opacity:.72}
.attendance-buttons.is-locked .att-btn:disabled{cursor:not-allowed;filter:saturate(.65)}
[data-theme="dark"] .attendance-priority-note{color:#f2c96d}
.jornada-alert-settings{margin-bottom:16px}.jornada-alert-settings input[type="time"],.jornada-alert-settings input[type="number"]{min-width:105px}.alert-weekdays{display:flex;flex-wrap:wrap;gap:6px}.alert-weekdays label{display:inline-flex;align-items:center;gap:3px;padding:5px 7px;border:1px solid var(--line,#dbe5df);border-radius:8px;font-size:12px}.switch-line{display:flex;align-items:center;gap:6px}.block-muted{display:block;color:var(--muted,#667);margin-top:4px}.alert-item small .btn{margin-left:8px;vertical-align:middle}

/* Etapa 6 — notificações no celular */

/* v27 — avisos internos e períodos */
.internal-alert-notice,
.period-count-notice{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin:12px 0 16px;
  padding:12px 14px;
  border:1px solid rgba(23,122,62,.22);
  border-radius:14px;
  background:rgba(29,142,72,.07);
}
.internal-alert-notice b,
.period-count-notice b{font-size:13px;color:var(--green-800,#14532d)}
.internal-alert-notice span,
.period-count-notice span{font-size:12px;line-height:1.5;color:var(--muted,#667085)}
[data-theme="dark"] .internal-alert-notice,
[data-theme="dark"] .period-count-notice{background:rgba(72,187,120,.10);border-color:rgba(72,187,120,.26)}
[data-theme="dark"] .internal-alert-notice b,
[data-theme="dark"] .period-count-notice b{color:#9be7b6}

/* ===== Correção definitiva: cards no modo escuro mobile ===== */
@media (max-width:720px){
  html[data-theme="dark"] body:not(.tv-mode) .content .card,
  html[data-theme="dark"] body:not(.tv-mode) .content .panel,
  html[data-theme="dark"] body:not(.tv-mode) .history-card,
  html[data-theme="dark"] body:not(.tv-mode) .request-card,
  html[data-theme="dark"] body:not(.tv-mode) .material-card,
  html[data-theme="dark"] body:not(.tv-mode) .material-history-card,
  html[data-theme="dark"] body:not(.tv-mode) .leader-gallery-card,
  html[data-theme="dark"] body:not(.tv-mode) .permissions-grid > div,
  html[data-theme="dark"] body:not(.tv-mode) .period-detail-box,
  html[data-theme="dark"] body:not(.tv-mode) .attendance-period-person{
    background:#0d1812 !important;
    color:#f4fff7 !important;
    border-color:#294033 !important;
    box-shadow:0 10px 28px rgba(0,0,0,.18) !important;
  }

  html[data-theme="dark"] body:not(.tv-mode) .table-wrap,
  html[data-theme="dark"] body:not(.tv-mode) .table,
  html[data-theme="dark"] body:not(.tv-mode) .table tbody{
    background:transparent !important;
  }

  html[data-theme="dark"] body:not(.tv-mode) .table tbody tr{
    background:#0d1812 !important;
    color:#f4fff7 !important;
    border:1px solid #294033 !important;
    box-shadow:0 8px 22px rgba(0,0,0,.16) !important;
  }

  html[data-theme="dark"] body:not(.tv-mode) .table tbody td,
  html[data-theme="dark"] body:not(.tv-mode) .table tbody th{
    background:transparent !important;
    color:#f4fff7 !important;
    border-color:#294033 !important;
  }

  html[data-theme="dark"] body:not(.tv-mode) .table tbody b,
  html[data-theme="dark"] body:not(.tv-mode) .table tbody strong,
  html[data-theme="dark"] body:not(.tv-mode) .table tbody a,
  html[data-theme="dark"] body:not(.tv-mode) .history-card b,
  html[data-theme="dark"] body:not(.tv-mode) .history-card strong,
  html[data-theme="dark"] body:not(.tv-mode) .material-card b,
  html[data-theme="dark"] body:not(.tv-mode) .material-card strong,
  html[data-theme="dark"] body:not(.tv-mode) .request-card b,
  html[data-theme="dark"] body:not(.tv-mode) .request-card strong{
    color:#f4fff7 !important;
  }

  html[data-theme="dark"] body:not(.tv-mode) .table tbody small,
  html[data-theme="dark"] body:not(.tv-mode) .table tbody .muted,
  html[data-theme="dark"] body:not(.tv-mode) .table tbody td::before,
  html[data-theme="dark"] body:not(.tv-mode) .history-card small,
  html[data-theme="dark"] body:not(.tv-mode) .history-date,
  html[data-theme="dark"] body:not(.tv-mode) .history-qty em,
  html[data-theme="dark"] body:not(.tv-mode) .material-card small,
  html[data-theme="dark"] body:not(.tv-mode) .request-card small,
  html[data-theme="dark"] body:not(.tv-mode) .name-cell small{
    color:#a9bbb0 !important;
  }

  html[data-theme="dark"] body:not(.tv-mode) .history-product,
  html[data-theme="dark"] body:not(.tv-mode) .name-cell b,
  html[data-theme="dark"] body:not(.tv-mode) .user-identity-cell b,
  html[data-theme="dark"] body:not(.tv-mode) .panel-head h2,
  html[data-theme="dark"] body:not(.tv-mode) .panel-head h3{
    color:#f4fff7 !important;
  }

  html[data-theme="dark"] body:not(.tv-mode) .table tbody input,
  html[data-theme="dark"] body:not(.tv-mode) .table tbody select,
  html[data-theme="dark"] body:not(.tv-mode) .table tbody textarea,
  html[data-theme="dark"] body:not(.tv-mode) .history-card input,
  html[data-theme="dark"] body:not(.tv-mode) .history-card select,
  html[data-theme="dark"] body:not(.tv-mode) .history-card textarea{
    background:#08110d !important;
    color:#f4fff7 !important;
    border-color:#345142 !important;
  }

  html[data-theme="dark"] body:not(.tv-mode) .table tbody input::placeholder,
  html[data-theme="dark"] body:not(.tv-mode) .table tbody textarea::placeholder,
  html[data-theme="dark"] body:not(.tv-mode) .history-card input::placeholder,
  html[data-theme="dark"] body:not(.tv-mode) .history-card textarea::placeholder{
    color:#7f9587 !important;
  }

  /* Preserva a identidade visual dos botões, etiquetas e indicadores. */
  html[data-theme="dark"] body:not(.tv-mode) .table tbody .btn,
  html[data-theme="dark"] body:not(.tv-mode) .table tbody .tag,
  html[data-theme="dark"] body:not(.tv-mode) .table tbody .att-btn,
  html[data-theme="dark"] body:not(.tv-mode) .history-card .btn,
  html[data-theme="dark"] body:not(.tv-mode) .material-card .btn{
    box-shadow:none;
  }
}

/* Correção mobile: quantidade no ranking de produção visível no modo escuro */
@media (max-width:820px){
  html[data-theme="dark"] body:not(.tv-mode) .mobile-bar-ranking .mobile-bar-head b{
    color:#0b6b35 !important;
    opacity:1 !important;
    -webkit-text-fill-color:#0b6b35 !important;
  }
}

/* Registro de erros em lote — múltiplos produtos e lojas */
.sep-batch-main{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:14px;margin-bottom:18px}
.sep-batch-main label,.sep-batch-store-grid label,.sep-batch-row-grid label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:#244236;font-size:13px}
.sep-batch-main input,.sep-batch-main select,.sep-batch-store-grid select,.sep-batch-row-grid input,.sep-batch-row-grid select{border:1px solid #dce8df;border-radius:12px;padding:11px 12px;background:#fff;outline:none;font:inherit;min-height:42px;width:100%}
.sep-batch-store{border:1px solid #dce8df;border-radius:18px;padding:18px;margin:14px 0;background:#fbfdfb}
.sep-batch-store-head,.sep-batch-row-title,.sep-batch-summary{display:flex;align-items:center;justify-content:space-between;gap:14px}
.sep-batch-store-head h3{margin:3px 0 0;font-size:20px}.sep-batch-kicker{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#648073;font-weight:800}
.sep-batch-store-grid{display:grid;grid-template-columns:minmax(240px,1fr) minmax(220px,1fr);gap:14px;align-items:end;margin:14px 0}
.sep-batch-row{border:1px solid #e4ece7;border-radius:16px;padding:14px;margin:10px 0;background:#fff}
.sep-batch-row-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:12px;margin-top:10px}
.sep-batch-row-title strong{font-size:14px}.sep-batch-row-title .icon-btn{width:32px;height:32px;border-radius:10px;border:1px solid #e4ece7;background:#fff;font-size:20px;cursor:pointer}
.sep-batch-summary{margin-top:18px;padding:16px 18px;border-radius:16px;background:#eef8f1;border:1px solid #d9ebdf}.sep-batch-summary>div{display:flex;flex-direction:column;gap:4px}.sep-batch-summary span{font-size:12px;color:#61776c}.sep-batch-summary b{color:#08783f}
.sep-batch-save{display:flex;justify-content:flex-end;margin-top:14px}.sep-batch-save .btn{min-width:230px}
html[data-theme="dark"] body:not(.tv-mode) .sep-batch-store{background:#0d1f16;border-color:#274537}
html[data-theme="dark"] body:not(.tv-mode) .sep-batch-row{background:#10231a;border-color:#29493a}
html[data-theme="dark"] body:not(.tv-mode) .sep-batch-main label,html[data-theme="dark"] body:not(.tv-mode) .sep-batch-store-grid label,html[data-theme="dark"] body:not(.tv-mode) .sep-batch-row-grid label{color:#dcebe2}
html[data-theme="dark"] body:not(.tv-mode) .sep-batch-main input,html[data-theme="dark"] body:not(.tv-mode) .sep-batch-main select,html[data-theme="dark"] body:not(.tv-mode) .sep-batch-store-grid select,html[data-theme="dark"] body:not(.tv-mode) .sep-batch-row-grid input,html[data-theme="dark"] body:not(.tv-mode) .sep-batch-row-grid select{background:#0a1912;border-color:#29493a;color:#f3fff7}
html[data-theme="dark"] body:not(.tv-mode) .sep-batch-summary{background:#0c2116;border-color:#28513a;color:#effcf3}
html[data-theme="dark"] body:not(.tv-mode) .sep-batch-summary span{color:#a8c3b4}
html[data-theme="dark"] body:not(.tv-mode) .sep-batch-row-title .icon-btn{background:#0a1912;border-color:#29493a;color:#fff}
@media(max-width:900px){.sep-batch-main,.sep-batch-store-grid,.sep-batch-row-grid{grid-template-columns:1fr}.sep-batch-store-head,.sep-batch-summary{align-items:flex-start;flex-direction:column}.sep-batch-save .btn{width:100%}.sep-batch-store{padding:14px}.sep-batch-row{padding:12px}}

/* Alertas do dashboard: acesso direto à lista de presença */
.alert-item.is-clickable{cursor:pointer;}
.alert-item.is-clickable:focus-visible{outline:2px solid currentColor;outline-offset:3px;}

/* v33: card de pendência abre diretamente a correção de bonificações */
.closing-safety-card.is-clickable{
  cursor:pointer;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.closing-safety-card.is-clickable:hover,
.closing-safety-card.is-clickable:focus-visible{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(180,35,24,.14);
  outline:none;
  border-color:#ef4444;
}
.product-missing-filter-notice{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
@media (max-width:700px){
  .product-missing-filter-notice{align-items:flex-start;flex-direction:column;}
}

.product-status-stack{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.tag.gray{background:#eef1f3;color:#55606d;border-color:#d8dde2}

/* Compatibilidade de toque no Safari/iPhone — não altera o layout */
@supports (-webkit-touch-callout: none) {
  button, [role="button"], input, select, textarea, label, a {
    touch-action: manipulation;
  }
  button, .btn, .nav-btn, .pill, .chip, .mobile-shell button {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
  }
  .premium-login .login-card,
  .premium-login .login-card-wrap,
  .premium-login .input-shell,
  .premium-login .login-submit {
    pointer-events: auto !important;
  }
  .premium-login .login-hero:before,
  .login-ambient {
    pointer-events: none !important;
  }
}


/* Orientação vertical: sem sobreposição ou mensagem visual */

/* Seleção em lote nas solicitações de alteração */
.request-batch-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0}
.request-batch-toolbar strong{margin-left:auto;color:#06753b}
.request-batch-list{display:grid;gap:8px;max-height:360px;overflow:auto;padding:4px 2px 10px;margin-bottom:18px}
.request-batch-row{display:flex;align-items:center;gap:12px;border:1px solid #dfe9e2;border-radius:14px;padding:12px 14px;background:#fff;cursor:pointer}
.request-batch-row:has(input:checked){border-color:#079447;background:#f0fbf5;box-shadow:0 0 0 2px rgba(7,148,71,.08)}
.request-batch-row input{width:20px;height:20px;flex:0 0 auto;accent-color:#07883f}
.request-batch-row span{display:flex;flex-direction:column;gap:3px}
.request-batch-row small{color:#667085}
.request-batch-row.disabled{opacity:.55;cursor:not-allowed}
@media(max-width:700px){.request-batch-toolbar strong{width:100%;margin-left:0}.request-batch-list{max-height:48vh}.request-batch-row{padding:11px}}

/* Gráfico profissional da aba Comparativos */
.compare-evolution-card{margin:20px 0 24px;padding:20px;border:1px solid var(--line);border-radius:22px;background:linear-gradient(180deg,#fff 0%,#fbfdfb 100%);box-shadow:0 12px 32px rgba(16,33,50,.05)}
.compare-evolution-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}
.compare-evolution-head h2{margin:0 0 5px;font-size:20px;color:#102132}
.compare-evolution-legend{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.compare-evolution-legend span{display:grid;grid-template-columns:12px auto;column-gap:8px;align-items:center;padding:9px 12px;border:1px solid #e1e9e3;border-radius:14px;background:#fff;min-width:190px}
.compare-evolution-legend i{grid-row:1/3;width:10px;height:10px;border-radius:50%}
.compare-evolution-legend .period-a i{background:#0b6b35}.compare-evolution-legend .period-b i{background:#e09a26}
.compare-evolution-legend b{font-size:12px;color:#102132}.compare-evolution-legend small{font-size:11px;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}
.compare-chart-scroll{width:100%;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;border:1px solid #e8eee9;border-radius:18px;background:#fff}
.compare-chart-canvas{min-width:760px;width:100%}
.compare-evolution-svg{display:block;width:100%;height:auto;min-height:310px}
.compare-chart-grid-line{stroke:#dfe7e1;stroke-width:1;stroke-dasharray:5 7}
.compare-chart-axis{stroke:#b9c8bd;stroke-width:1.4}
.compare-chart-axis-text{fill:#667085;font-size:12px;font-weight:700}
.compare-point-value{font-size:11px;font-weight:800;fill:#102132;paint-order:stroke;stroke:rgba(255,255,255,.92);stroke-width:4px;stroke-linejoin:round;pointer-events:none}.compare-point-value-a{fill:#0b6b35}.compare-point-value-b{fill:#c88416}
.compare-line-a,.compare-line-b{fill:none;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.compare-line-a{stroke:#0b6b35}.compare-line-b{stroke:#e09a26}
.compare-line-a-dot{fill:#0b6b35;stroke:#fff;stroke-width:3}.compare-line-b-dot{fill:#e09a26;stroke:#fff;stroke-width:3}
.compare-chart-point circle{cursor:pointer;transition:r .15s ease}.compare-chart-point circle:hover{r:8}
.compare-chart-foot{display:flex;align-items:center;justify-content:flex-start;gap:12px 24px;flex-wrap:wrap;margin-top:14px;color:#667085;font-size:12px}
.compare-chart-foot span{display:inline-flex;align-items:center;gap:5px}.compare-chart-foot b{color:#102132;font-size:13px}
.compare-chart-empty{min-height:180px;display:grid;place-items:center}
.compare-table-head{padding-top:4px}
@media (max-width:720px){
  .compare-evolution-card{margin:16px 0 20px;padding:14px;border-radius:18px}
  .compare-evolution-head{display:block;margin-bottom:12px}
  .compare-evolution-head h2{font-size:18px}
  .compare-evolution-legend{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
  .compare-evolution-legend span{min-width:0;padding:8px 9px;border-radius:12px}
  .compare-evolution-legend small{max-width:120px}
  .compare-chart-scroll{border-radius:14px}
  .compare-chart-canvas{min-width:720px}
  .compare-evolution-svg{min-height:280px}
  .compare-chart-foot{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:11px}
  .compare-chart-foot span:last-child{grid-column:1/-1}
}
[data-theme="dark"] .compare-evolution-card{background:linear-gradient(180deg,#17211b,#111915);border-color:#2a3c30;box-shadow:none}
[data-theme="dark"] .compare-evolution-head h2,[data-theme="dark"] .compare-evolution-legend b,[data-theme="dark"] .compare-chart-foot b{color:#f3f7f4}
[data-theme="dark"] .compare-evolution-legend span,[data-theme="dark"] .compare-chart-scroll{background:#121b16;border-color:#2a3c30}
[data-theme="dark"] .compare-chart-grid-line{stroke:#304337}[data-theme="dark"] .compare-chart-axis{stroke:#52665a}[data-theme="dark"] .compare-chart-axis-text,[data-theme="dark"] .compare-evolution-legend small,[data-theme="dark"] .compare-chart-foot{fill:#a8b6ac;color:#a8b6ac}[data-theme="dark"] .compare-point-value{stroke:rgba(18,27,22,.96)}

/* ============================================================
   Atualização 0.0.2 — Estrutura experimental de Compras
   Escopo isolado: Pedido do Dia > Compras (protótipo sem Firebase)
   ============================================================ */
.daily-order-workspace-tabs{
  display:flex; gap:8px; align-items:center; flex-wrap:wrap;
  margin:0 0 16px; padding:6px; border:1px solid var(--border, #dfe8e2);
  border-radius:14px; background:var(--card, #fff);
}
.daily-order-workspace-tab{
  min-height:42px; border:0; border-radius:10px; padding:0 16px;
  background:transparent; color:var(--muted, #53665d); font-weight:800; cursor:pointer;
}
.daily-order-workspace-tab span{font-size:10px; text-transform:uppercase; margin-left:6px; opacity:.68; letter-spacing:.04em}
.daily-order-workspace-tab.active{background:#edf8f0; color:#07552a; box-shadow:inset 0 0 0 1px #cfe7d6}
.purchase-proto-warning{
  display:flex; justify-content:space-between; gap:14px; align-items:center;
  padding:13px 16px; border:1px solid #f0d9a9; border-radius:14px; background:#fffaf0; margin-bottom:12px;
}
.purchase-proto-warning>div{display:flex; flex-direction:column; gap:2px}.purchase-proto-warning b{color:#6d4b00}.purchase-proto-warning span{font-size:12px;color:#6b6252}
.purchase-proto-nav{display:flex; gap:8px; overflow:auto; margin:0 0 12px; padding-bottom:2px}
.purchase-proto-nav button{min-height:42px; white-space:nowrap; border:1px solid var(--border,#dfe8e2); border-radius:10px; padding:0 15px; background:var(--card,#fff); color:var(--text,#102118); font-weight:800}
.purchase-proto-nav button.active{background:#0b6b36;color:#fff;border-color:#0b6b36}.purchase-proto-nav button:disabled{opacity:.55}.purchase-proto-nav small{display:block;font-size:9px;font-weight:700}
.purchase-proto-card{overflow:visible}.purchase-proto-head{align-items:flex-start; gap:20px}
.purchase-proto-meta{display:grid; grid-template-columns:minmax(180px,240px); gap:10px; width:auto}
.purchase-proto-meta label,.purchase-proto-meta>div{display:flex; flex-direction:column; gap:6px; font-size:11px; font-weight:800; color:var(--muted,#607066)}
.purchase-proto-meta input,.purchase-proto-meta>div b{min-height:40px; display:flex; align-items:center; width:100%; border:1px solid var(--border,#dce6df); background:var(--input-bg,#fff); border-radius:10px; padding:0 11px; color:var(--text,#102118); font-size:13px}
.purchase-proto-sector-tabs{display:flex; gap:8px; flex-wrap:wrap; padding:13px 0; border-top:1px solid var(--border,#e2eae5); border-bottom:1px solid var(--border,#e2eae5); margin:8px 0 16px}
.purchase-proto-sector-tab{min-height:42px; border:1px solid var(--border,#dce6df); border-radius:10px; padding:0 16px; background:var(--card,#fff); font-weight:900; color:var(--text,#102118); cursor:pointer}
.purchase-proto-sector-tab.active{background:#e9f6ed;color:#07552a;border-color:#bcdcc6}
.purchase-proto-section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:12px}.purchase-proto-section-head h3{margin:0 0 3px}.purchase-proto-section-head p{margin:0;color:var(--muted,#607066);font-size:12px}
.purchase-proto-columns,.purchase-proto-row{display:grid;grid-template-columns:minmax(180px,1.45fr) 88px 110px minmax(160px,1fr) 120px 120px minmax(160px,1fr) 34px;gap:9px;align-items:center}
.purchase-proto-columns{padding:0 10px 7px;color:var(--muted,#607066);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.03em}
.purchase-proto-list{display:flex;flex-direction:column;gap:8px}.purchase-proto-row{padding:10px;border:1px solid var(--border,#e0e8e3);border-radius:12px;background:var(--panel,#fbfdfb)}
.purchase-proto-row label,.purchase-proto-product,.purchase-proto-total{display:flex;flex-direction:column;gap:5px;min-width:0}.purchase-proto-row label>span,.purchase-proto-total>span{font-size:10px;font-weight:900;color:var(--muted,#607066);display:none}.purchase-proto-row small{font-size:9px;font-weight:700;opacity:.68}
.purchase-proto-row input,.purchase-proto-row select{width:100%;min-height:40px;border:1px solid var(--border,#dce6df);border-radius:9px;background:var(--input-bg,#fff);color:var(--text,#102118);padding:0 10px;font-size:13px}
.purchase-proto-product::before{content:"Produto";font-size:10px;font-weight:900;color:var(--muted,#607066);display:none}.purchase-proto-total b{min-height:40px;display:flex;align-items:center;padding:0 10px;border-radius:9px;background:var(--card,#fff);border:1px dashed var(--border,#dce6df);font-size:13px;white-space:nowrap}
.purchase-proto-remove{width:34px;height:40px;border:0;border-radius:9px;background:#fff0f0;color:#a62929;font-size:20px;font-weight:700;cursor:pointer}.purchase-proto-remove:hover{background:#ffe4e4}
.purchase-proto-summary{display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:8px;margin-top:16px}.purchase-proto-summary>div{border:1px solid var(--border,#dce6df);border-radius:11px;padding:10px 12px;background:var(--card,#fff);display:flex;flex-direction:column;gap:2px}.purchase-proto-summary span{font-size:10px;color:var(--muted,#607066);font-weight:800}.purchase-proto-summary strong{font-size:15px}
.purchase-proto-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding-top:14px;border-top:1px solid var(--border,#e2eae5)}.purchase-proto-footer p{margin:0;max-width:720px;color:var(--muted,#607066);font-size:12px}.purchase-proto-footer .btn span{display:block;font-size:9px;font-weight:700;opacity:.75}.purchase-proto-footer .btn{pointer-events:auto;opacity:.7}
@media(max-width:1200px){.purchase-proto-columns{display:none}.purchase-proto-row{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.purchase-proto-row label>span,.purchase-proto-total>span,.purchase-proto-product::before{display:block}.purchase-proto-product{grid-column:span 2}.purchase-proto-obs{grid-column:span 2}.purchase-proto-remove{align-self:end}.purchase-proto-summary{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.daily-order-workspace-tabs{flex-wrap:nowrap;overflow:auto}.daily-order-workspace-tab{white-space:nowrap}.purchase-proto-head{display:block}.purchase-proto-meta{grid-template-columns:1fr;margin-top:14px}.purchase-proto-row{grid-template-columns:1fr 1fr}.purchase-proto-product,.purchase-proto-obs{grid-column:1/-1}.purchase-proto-remove{justify-self:end}.purchase-proto-summary{grid-template-columns:1fr 1fr}.purchase-proto-footer{align-items:stretch;flex-direction:column}.purchase-proto-footer .btn{width:100%}}
@media(max-width:430px){.purchase-proto-row{grid-template-columns:1fr}.purchase-proto-product,.purchase-proto-obs{grid-column:auto}.purchase-proto-summary{grid-template-columns:1fr 1fr}.purchase-proto-sector-tabs{flex-wrap:nowrap;overflow:auto}.purchase-proto-sector-tab{white-space:nowrap}.purchase-proto-section-head{align-items:stretch;flex-direction:column}.purchase-proto-section-head .btn{width:100%}}
html[data-theme='dark'] .purchase-proto-warning{background:#211b0f;border-color:#4a3a18}.theme-dark .purchase-proto-warning{background:#211b0f;border-color:#4a3a18}
html[data-theme='dark'] .daily-order-workspace-tab.active,html[data-theme='dark'] .purchase-proto-sector-tab.active{background:#153222;color:#a7e4bd;border-color:#275a3b}

/* Atualização 0.0.3 — listas recorrentes e importação no protótipo de Compras */
.purchase-proto-section-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.purchase-proto-import{margin:0 0 14px;padding:14px;border:1px solid var(--border,#dce6df);border-radius:12px;background:var(--panel,#f8fbf9)}
.purchase-proto-import-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:12px}.purchase-proto-import-head h4{margin:0 0 3px;font-size:15px}.purchase-proto-import-head p{margin:0;color:var(--muted,#607066);font-size:12px}.purchase-proto-import-head>button{border:0;background:transparent;color:var(--muted,#607066);font-size:22px;line-height:1;cursor:pointer;padding:4px 6px}
.purchase-proto-import-grid{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(300px,1.3fr);gap:12px;align-items:start}.purchase-proto-import-grid label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;color:var(--muted,#607066)}.purchase-proto-import-grid input[type=file],.purchase-proto-import-grid textarea{width:100%;border:1px solid var(--border,#dce6df);border-radius:10px;background:var(--input-bg,#fff);color:var(--text,#102118);font:inherit}.purchase-proto-import-grid input[type=file]{padding:10px}.purchase-proto-import-grid textarea{padding:10px;resize:vertical;min-height:150px}.purchase-proto-import-grid small{font-size:10px;font-weight:600;line-height:1.4;color:var(--muted,#607066)}
.purchase-proto-import-status{margin-top:10px;padding:9px 11px;border-radius:9px;background:var(--card,#fff);border:1px dashed var(--border,#dce6df);font-size:12px;color:var(--text,#102118)}.purchase-proto-import-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
@media(max-width:900px){.purchase-proto-import-grid{grid-template-columns:1fr}.purchase-proto-section-actions{justify-content:flex-start}}
@media(max-width:720px){.purchase-proto-section-actions{width:100%}.purchase-proto-section-actions .btn{flex:1 1 150px}.purchase-proto-import-actions{flex-direction:column}.purchase-proto-import-actions .btn{width:100%}}

/* 0.0.5 — Processados com autocomplete global e refinamento de alinhamento */
.purchase-proto-registered-picker{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 14px;padding:13px 14px;border:1px solid var(--border,#dce6df);border-radius:12px;background:var(--panel,#f8fbf9)}
.purchase-proto-registered-picker>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}.purchase-proto-registered-picker b{font-size:13px}.purchase-proto-registered-picker span{font-size:11px;color:var(--muted,#607066)}
.purchase-proto-registered-input{display:flex;gap:8px;align-items:center;min-width:min(520px,100%)}.purchase-proto-registered-input input{min-height:42px;flex:1;min-width:220px;border:1px solid var(--border,#dce6df);border-radius:10px;background:var(--input-bg,#fff);color:var(--text,#102118);padding:0 11px;font-size:13px}
.purchase-proto-product-name[readonly]{background:var(--card,#fff);font-weight:800;cursor:default}
@media(max-width:760px){.purchase-proto-registered-picker{align-items:stretch;flex-direction:column}.purchase-proto-registered-input{min-width:0;width:100%;flex-direction:column;align-items:stretch}.purchase-proto-registered-input input{width:100%}}

/* Atualização 0.0.7 — refinamento exclusivo da aba Compras / Nova Compra */
.purchase-proto-nav{
  display:flex;
  gap:8px;
  overflow-x:auto;
  margin:0 0 14px;
  padding:0 0 2px;
  scrollbar-width:thin;
}
.purchase-proto-nav button{
  min-height:42px;
  white-space:nowrap;
  border:1px solid var(--border,#dfe8e2);
  border-radius:10px;
  padding:0 16px;
  background:var(--card,#fff);
  color:var(--text,#102118);
  font-weight:800;
}
.purchase-proto-nav button.active{
  background:#0b6b36;
  color:#fff;
  border-color:#0b6b36;
}
.purchase-proto-nav button:disabled{
  opacity:.72;
  cursor:not-allowed;
  background:var(--panel,#f7faf8);
  color:var(--muted,#607066);
}
.purchase-proto-card{overflow:visible}
.purchase-proto-head{align-items:flex-start;gap:20px}
.purchase-proto-head h2{margin-bottom:0}
.purchase-proto-meta{display:grid;grid-template-columns:minmax(190px,240px);gap:10px;width:auto}
.purchase-proto-meta label{display:flex;flex-direction:column;gap:6px;font-size:11px;font-weight:800;color:var(--muted,#607066)}
.purchase-proto-meta input{min-height:42px;width:100%;border:1px solid var(--border,#dce6df);background:var(--input-bg,#fff);border-radius:10px;padding:0 11px;color:var(--text,#102118);font-size:13px}
.purchase-proto-sector-tabs{margin:10px 0 16px}
.purchase-proto-section-head{align-items:center;margin-bottom:12px}
.purchase-proto-section-head h3{margin:0}
.purchase-proto-section-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.purchase-proto-columns,
.purchase-proto-row{
  display:grid;
  grid-template-columns:minmax(240px,2fr) 96px 130px minmax(240px,1.35fr) 38px;
  gap:10px;
  align-items:center;
}
.purchase-proto-columns{
  padding:0 10px 7px;
  color:var(--muted,#607066);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.purchase-proto-row{
  padding:10px;
  border:1px solid var(--border,#e0e8e3);
  border-radius:12px;
  background:var(--panel,#fbfdfb);
}
.purchase-proto-row label,
.purchase-proto-product{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
  margin:0;
}
.purchase-proto-row label>span{
  display:none;
  min-height:0;
  font-size:10px;
  font-weight:900;
  color:var(--muted,#607066);
}
.purchase-proto-product::before{display:none!important;content:none!important}
.purchase-proto-row input,
.purchase-proto-row select{
  width:100%;
  min-height:42px;
  height:42px;
  border:1px solid var(--border,#dce6df);
  border-radius:9px;
  background:var(--input-bg,#fff);
  color:var(--text,#102118);
  padding:0 10px;
  font-size:13px;
  line-height:1.2;
  box-sizing:border-box;
}
.purchase-proto-product-name[readonly]{background:var(--card,#fff);font-weight:800;cursor:default}
.purchase-proto-remove{
  width:38px;
  height:42px;
  align-self:center;
  border:0;
  border-radius:9px;
  background:#fff0f0;
  color:#a62929;
  font-size:20px;
  font-weight:700;
  cursor:pointer;
}
.purchase-proto-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(180px,1fr));
  gap:8px;
  margin-top:16px;
  max-width:620px;
}
.purchase-proto-summary>div{
  border:1px solid var(--border,#dce6df);
  border-radius:11px;
  padding:10px 12px;
  background:var(--card,#fff);
  display:flex;
  flex-direction:column;
  gap:2px;
}
.purchase-proto-summary span{font-size:10px;color:var(--muted,#607066);font-weight:800}
.purchase-proto-summary strong{font-size:15px}
.purchase-proto-registered-picker{
  display:grid;
  grid-template-columns:minmax(220px,.7fr) minmax(320px,1.3fr);
  align-items:center;
  gap:16px;
  margin:0 0 14px;
  padding:13px 14px;
  border:1px solid var(--border,#dce6df);
  border-radius:12px;
  background:var(--panel,#f8fbf9);
}
.purchase-proto-picker-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.purchase-proto-picker-copy b{font-size:13px}
.purchase-proto-picker-copy span{font-size:11px;color:var(--muted,#607066);line-height:1.35}
.purchase-proto-registered-input{position:relative;display:block;min-width:0;width:100%}
.purchase-proto-registered-input input{
  min-height:44px;
  width:100%;
  border:1px solid var(--border,#dce6df);
  border-radius:10px;
  background:var(--input-bg,#fff);
  color:var(--text,#102118);
  padding:0 12px;
  font-size:14px;
}
.purchase-proto-suggestions{
  position:absolute;
  z-index:30;
  top:calc(100% + 6px);
  left:0;
  right:0;
  max-height:280px;
  overflow:auto;
  border:1px solid var(--border,#dce6df);
  border-radius:11px;
  background:var(--card,#fff);
  box-shadow:0 12px 30px rgba(15,45,25,.14);
  padding:5px;
}
.purchase-proto-suggestions[hidden]{display:none}
.purchase-proto-suggestions button{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  min-height:44px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--text,#102118);
  padding:8px 10px;
  text-align:left;
  cursor:pointer;
}
.purchase-proto-suggestions button:hover,
.purchase-proto-suggestions button:focus-visible{background:#edf8f0;outline:none}
.purchase-proto-suggestions b{font-size:13px}
.purchase-proto-suggestions span{font-size:10px;color:var(--muted,#607066);text-align:right}

@media(max-width:1100px){
  .purchase-proto-columns{display:none}
  .purchase-proto-row{grid-template-columns:minmax(0,1.5fr) 100px 130px minmax(0,1.3fr) 38px;align-items:end}
  .purchase-proto-row label>span{display:block}
}
@media(max-width:860px){
  .purchase-proto-head{display:block}
  .purchase-proto-meta{grid-template-columns:1fr;margin-top:14px}
  .purchase-proto-section-head{align-items:stretch;flex-direction:column}
  .purchase-proto-section-actions{justify-content:flex-start}
  .purchase-proto-row{grid-template-columns:1fr 1fr;align-items:end}
  .purchase-proto-product,.purchase-proto-obs{grid-column:1/-1}
  .purchase-proto-remove{justify-self:end;align-self:end}
  .purchase-proto-summary{grid-template-columns:1fr 1fr;max-width:none}
  .purchase-proto-registered-picker{grid-template-columns:1fr;align-items:stretch}
}
@media(max-width:560px){
  .purchase-proto-nav{gap:6px}
  .purchase-proto-nav button{min-height:44px;padding:0 13px}
  .purchase-proto-sector-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}
  .purchase-proto-sector-tab{white-space:nowrap;min-height:44px}
  .purchase-proto-section-actions{width:100%}
  .purchase-proto-section-actions .btn{flex:1 1 145px;min-height:44px}
  .purchase-proto-row{grid-template-columns:1fr}
  .purchase-proto-product,.purchase-proto-obs{grid-column:auto}
  .purchase-proto-row input,.purchase-proto-row select{min-height:44px;height:44px;font-size:16px}
  .purchase-proto-remove{justify-self:end;width:44px;height:44px}
  .purchase-proto-summary{grid-template-columns:1fr}
  .purchase-proto-registered-input input{font-size:16px;min-height:46px}
  .purchase-proto-suggestions{position:static;margin-top:6px;box-shadow:none;max-height:260px}
  .purchase-proto-import-grid{grid-template-columns:1fr}
  .purchase-proto-import-actions{flex-direction:column}
  .purchase-proto-import-actions .btn{width:100%;min-height:44px}
}
html[data-theme='dark'] .purchase-proto-suggestions button:hover,
html[data-theme='dark'] .purchase-proto-suggestions button:focus-visible{background:#153222}
/* Neutraliza spans de colunas herdados das versões de protótipo anteriores. */
.purchase-proto-product,.purchase-proto-obs{grid-column:auto}
@media(max-width:860px){.purchase-proto-product,.purchase-proto-obs{grid-column:1/-1}}
@media(max-width:560px){.purchase-proto-product,.purchase-proto-obs{grid-column:auto}}

/* =========================================================
   Compras 0.0.8 — fluxo completo, conferência e acertos
   ========================================================= */
.purchase-action-line{display:flex;justify-content:flex-end;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid var(--border,#dce6df)}
.purchase-saved-drafts{margin-top:16px}.purchase-list-cards{display:grid;gap:9px}.purchase-mini-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--border,#dce6df);border-radius:12px;background:var(--panel,#fbfdfb)}.purchase-mini-card>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}.purchase-mini-card small{color:var(--muted,#607066)}
.purchase-completion-card{margin-top:16px}.purchase-completion-head,.purchase-completion-row{display:grid;grid-template-columns:minmax(170px,1.3fr) 110px 120px minmax(150px,1fr) 120px minmax(150px,1fr);gap:9px;align-items:center}.purchase-completion-head{padding:0 10px 7px;color:var(--muted,#607066);font-size:10px;font-weight:900;text-transform:uppercase}.purchase-completion-list{display:grid;gap:8px}.purchase-completion-row{padding:10px;border:1px solid var(--border,#e0e8e3);border-radius:12px;background:var(--panel,#fbfdfb)}.purchase-completion-row>div,.purchase-completion-row label{min-width:0;display:flex;flex-direction:column;gap:5px}.purchase-completion-row span{font-size:10px;font-weight:800;color:var(--muted,#607066)}.purchase-completion-row input{width:100%;min-height:40px;border:1px solid var(--border,#dce6df);border-radius:9px;background:var(--input-bg,#fff);color:var(--text,#102118);padding:0 10px}.purchase-cell-main b{overflow:hidden;text-overflow:ellipsis}.purchase-cell-main small{color:var(--muted,#607066)}
.purchase-kpis{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px;margin:0 0 14px}.purchase-kpis>div{border:1px solid var(--border,#dce6df);border-radius:12px;background:var(--card,#fff);padding:12px 14px;display:flex;flex-direction:column;gap:3px}.purchase-kpis span{font-size:10px;font-weight:800;color:var(--muted,#607066)}.purchase-kpis strong{font-size:18px}
.purchase-conference-card,.purchase-settlement-card{margin-bottom:14px}.purchase-conference-head,.purchase-conference-row{display:grid;grid-template-columns:minmax(155px,1.25fr) 92px 105px 105px 118px 105px 92px 92px 100px minmax(135px,1fr);gap:8px;align-items:center}.purchase-conference-head,.purchase-break-head{padding:0 10px 7px;color:var(--muted,#607066);font-size:10px;font-weight:900;text-transform:uppercase}.purchase-conference-list,.purchase-break-list{display:grid;gap:8px}.purchase-conference-row,.purchase-break-row{padding:10px;border:1px solid var(--border,#e0e8e3);border-radius:12px;background:var(--panel,#fbfdfb)}.purchase-conference-row>div,.purchase-conference-row label,.purchase-break-row>div,.purchase-break-row label{display:flex;flex-direction:column;gap:4px;min-width:0}.purchase-conference-row span,.purchase-break-row span{font-size:10px;font-weight:800;color:var(--muted,#607066)}.purchase-conference-row input,.purchase-break-row input,.purchase-settlement-fields input{width:100%;min-height:40px;border:1px solid var(--border,#dce6df);border-radius:9px;background:var(--input-bg,#fff);color:var(--text,#102118);padding:0 10px}
.purchase-break-head,.purchase-break-row{display:grid;grid-template-columns:minmax(155px,1.25fr) 105px 115px minmax(130px,1fr) 110px 125px 115px 125px minmax(140px,1fr);gap:8px;align-items:center}.purchase-billable-reason-wrap.is-hidden{opacity:.55}.purchase-settlement-box{margin-top:14px;padding:14px;border:1px solid var(--border,#dce6df);border-radius:12px;background:var(--panel,#f8fbf9)}.purchase-settlement-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.purchase-settlement-summary>div{padding:11px;border:1px solid var(--border,#dce6df);border-radius:10px;background:var(--card,#fff);display:flex;flex-direction:column;gap:3px}.purchase-settlement-summary span{font-size:10px;color:var(--muted,#607066);font-weight:800}.purchase-settlement-summary strong{font-size:17px}.purchase-settlement-fields{display:grid;grid-template-columns:180px minmax(220px,1fr);gap:10px;margin-top:12px}.purchase-settlement-fields label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:800;color:var(--muted,#607066)}.purchase-existing-settlement{margin-top:12px;padding:10px 12px;border:1px solid #d9b65c;border-radius:10px;background:#fff9e9;display:flex;flex-direction:column;gap:2px}.purchase-existing-settlement span,.purchase-existing-settlement small{font-size:11px;color:#6d5518}
.purchase-history-filters{margin-bottom:14px}.purchase-filter-grid{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:9px}.purchase-filter-grid label{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:800;color:var(--muted,#607066)}.purchase-filter-grid input,.purchase-filter-grid select{min-height:40px;border:1px solid var(--border,#dce6df);border-radius:9px;background:var(--input-bg,#fff);color:var(--text,#102118);padding:0 9px;min-width:0}.purchase-filter-search{grid-column:span 2}.purchase-analysis-grid{align-items:start}.purchase-analysis-grid>.card{min-width:0}.purchase-analysis-grid .table{font-size:11px}
.purchase-timeline-modal{display:grid;gap:9px}.purchase-timeline-modal>div{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-left:3px solid #19834a;background:var(--panel,#f8fbf9);border-radius:0 9px 9px 0}.purchase-timeline-modal b{font-size:11px}.purchase-timeline-modal span{font-size:12px}
.purchase-reopen-tabs{display:flex;gap:7px}.purchase-reopen-tabs .active{background:#e9f6ed;border-color:#bcdcc6;color:#07552a}.purchase-reopen-list{display:grid;gap:8px}.purchase-reopen-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--border,#dce6df);border-radius:11px;background:var(--panel,#fbfdfb)}.purchase-reopen-card>div:first-child{display:flex;flex-direction:column;gap:3px}.purchase-reopen-card small{color:var(--muted,#607066)}.purchase-reopen-compare{display:grid;grid-template-columns:1fr 1fr;gap:10px}.purchase-reopen-compare>div{padding:12px;border:1px solid var(--border,#dce6df);border-radius:10px;display:flex;flex-direction:column;gap:4px}.purchase-reopen-compare span{font-size:10px;color:var(--muted,#607066);font-weight:800}.purchase-reopen-compare b{font-size:16px}
.tag.green{background:#e7f7ed;color:#096535}.tag.orange{background:#fff3d8;color:#7a5300}.tag.gray{background:#eef1ef;color:#5c6760}
@media(max-width:1250px){.purchase-completion-head,.purchase-conference-head,.purchase-break-head{display:none}.purchase-completion-row{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.purchase-conference-row{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end}.purchase-break-row{grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}.purchase-completion-row span,.purchase-conference-row span,.purchase-break-row span{display:block}.purchase-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.purchase-kpis{grid-template-columns:1fr 1fr}.purchase-completion-row,.purchase-conference-row,.purchase-break-row{grid-template-columns:1fr 1fr}.purchase-cell-main{grid-column:1/-1}.purchase-settlement-summary{grid-template-columns:1fr}.purchase-settlement-fields{grid-template-columns:1fr}.purchase-filter-grid{grid-template-columns:1fr 1fr}.purchase-filter-search{grid-column:1/-1}.purchase-mini-card,.purchase-reopen-card{grid-template-columns:1fr}.purchase-mini-card .btn,.purchase-reopen-card .row-actions{justify-self:start}.purchase-analysis-grid{grid-template-columns:1fr!important}}
@media(max-width:520px){.purchase-kpis,.purchase-completion-row,.purchase-conference-row,.purchase-break-row,.purchase-filter-grid,.purchase-reopen-compare{grid-template-columns:1fr}.purchase-filter-search{grid-column:auto}.purchase-action-line{flex-direction:column}.purchase-action-line .btn{width:100%}.purchase-settlement-fields input,.purchase-completion-row input,.purchase-conference-row input,.purchase-break-row input{font-size:16px;min-height:44px}}
html[data-theme='dark'] .purchase-existing-settlement,.theme-dark .purchase-existing-settlement{background:#2b2412;border-color:#6b5726}.theme-dark .purchase-existing-settlement span,.theme-dark .purchase-existing-settlement small{color:#e7d491}

/* 0.0.8 · Destaques analíticos do módulo Compras */
.purchase-supplier-highlights{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}.purchase-supplier-highlights>div{background:var(--card,#fff);border:1px solid var(--line,#dfe7df);border-radius:14px;padding:14px;min-width:0}.purchase-supplier-highlights span{display:block;color:var(--muted,#66736a);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.02em}.purchase-supplier-highlights strong{display:block;margin-top:5px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.purchase-supplier-highlights small{display:block;margin-top:3px;color:var(--muted,#66736a)}
@media(max-width:900px){.purchase-supplier-highlights{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.purchase-supplier-highlights{grid-template-columns:1fr}.purchase-supplier-highlights>div{padding:12px}}

/* Atualização 0.0.9 — Apuração de rendimento, quebra do fornecedor e perda interna */
.purchase-conference-subtabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.purchase-conference-subtabs .active{background:#e9f6ed;border-color:#bcdcc6;color:#07552a}
.purchase-yield-unconfigured{margin-bottom:14px}
.purchase-yield-card{margin-bottom:14px;overflow:visible}.purchase-yield-head{align-items:flex-start}.purchase-yield-top{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}.purchase-yield-readonly{border:1px solid var(--border,#dce6df);border-radius:12px;padding:13px;background:var(--panel,#fbfdfb);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.purchase-yield-readonly h3{grid-column:1/-1;margin:0 0 2px;font-size:14px}.purchase-yield-readonly>div{display:flex;flex-direction:column;gap:3px;min-width:0}.purchase-yield-readonly span{font-size:10px;font-weight:800;color:var(--muted,#607066)}.purchase-yield-readonly b{font-size:14px;overflow-wrap:anywhere}
.purchase-yield-loss-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.purchase-yield-loss-card{border:1px solid var(--border,#dce6df);border-radius:12px;padding:13px;background:var(--card,#fff);min-width:0}.purchase-yield-loss-card.supplier{border-top:3px solid #c48a19}.purchase-yield-loss-card.internal{border-top:3px solid #447c9d}.purchase-yield-loss-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.purchase-yield-loss-head h4{margin:0 0 3px;font-size:14px}.purchase-yield-loss-head p{margin:0;color:var(--muted,#607066);font-size:11px;line-height:1.4}.purchase-yield-entry{display:grid;grid-template-columns:130px minmax(160px,1fr) minmax(180px,1.4fr);gap:8px;margin-top:10px;align-items:end}.purchase-yield-entry label{display:flex;flex-direction:column;gap:5px;font-size:10px;font-weight:800;color:var(--muted,#607066)}.purchase-yield-entry input,.purchase-yield-entry select{min-height:40px;border:1px solid var(--border,#dce6df);border-radius:9px;background:var(--input-bg,#fff);color:var(--text,#102118);padding:0 9px;min-width:0}.purchase-yield-entry .row-actions{grid-column:1/-1}.purchase-yield-validate-actions{margin-top:10px}.purchase-yield-na{padding:14px;border:1px dashed var(--border,#dce6df);border-radius:10px;color:var(--muted,#607066);font-size:12px}
.purchase-yield-events{display:grid;gap:6px;margin-top:8px}.purchase-yield-events>div{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 10px;padding:8px 10px;border-radius:9px;background:var(--panel,#f8fbf9);border:1px solid var(--border,#e4ebe6)}.purchase-yield-events b{grid-row:1/3;align-self:center}.purchase-yield-events span{font-size:12px}.purchase-yield-events small{font-size:10px;color:var(--muted,#607066)}.purchase-yield-empty-events{padding:8px 0;color:var(--muted,#607066);font-size:11px}
.purchase-yield-results{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:12px}.purchase-yield-results>div{border:1px solid var(--border,#dce6df);border-radius:11px;padding:11px;background:var(--panel,#fbfdfb);display:flex;flex-direction:column;gap:3px;min-width:0}.purchase-yield-results span{font-size:10px;font-weight:800;color:var(--muted,#607066)}.purchase-yield-results strong{font-size:17px}.purchase-yield-results small{font-size:10px;color:var(--muted,#607066)}
.purchase-yield-financial{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:12px;padding-top:12px;border-top:1px solid var(--border,#dce6df)}.purchase-yield-financial>div{display:flex;flex-direction:column;gap:3px}.purchase-yield-financial span{font-size:10px;color:var(--muted,#607066);font-weight:800}.purchase-yield-financial b{font-size:14px}.purchase-yield-financial.restricted{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border:1px dashed var(--border,#dce6df);border-radius:10px}.purchase-yield-history-kpis{margin-top:14px}
@media(max-width:980px){.purchase-yield-top,.purchase-yield-loss-grid{grid-template-columns:1fr}.purchase-yield-entry{grid-template-columns:1fr 1fr}.purchase-yield-entry label:last-of-type{grid-column:1/-1}.purchase-yield-results,.purchase-yield-financial{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.purchase-conference-subtabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}.purchase-conference-subtabs .btn{white-space:nowrap;min-height:44px}.purchase-yield-readonly{grid-template-columns:1fr}.purchase-yield-entry{grid-template-columns:1fr}.purchase-yield-entry label:last-of-type{grid-column:auto}.purchase-yield-results,.purchase-yield-financial{grid-template-columns:1fr}.purchase-yield-entry input,.purchase-yield-entry select{font-size:16px;min-height:44px}.purchase-yield-loss-head{flex-direction:column}.purchase-yield-events>div{grid-template-columns:1fr}.purchase-yield-events b{grid-row:auto}}
.purchase-yield-loss-card.supplier .purchase-yield-entry{grid-template-columns:120px minmax(145px,.9fr) minmax(170px,1.2fr) minmax(170px,1.2fr)}
@media(max-width:1180px){.purchase-yield-loss-card.supplier .purchase-yield-entry{grid-template-columns:1fr 1fr}.purchase-yield-loss-card.supplier .purchase-yield-entry .row-actions{grid-column:1/-1}}
@media(max-width:560px){.purchase-yield-loss-card.supplier .purchase-yield-entry{grid-template-columns:1fr}}

/* =========================================================
   Compras 0.0.10 — ajuste visual cirúrgico da Nova Compra
   Escopo: somente layout/usabilidade de Compras > Nova Compra
   ========================================================= */
.purchase-proto-card .purchase-proto-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) 200px;
  align-items:end;
  gap:24px;
  margin-bottom:0;
}
.purchase-proto-title-copy{min-width:0}
.purchase-proto-card .purchase-proto-head h2{
  margin:0;
  font-size:20px;
  line-height:1.2;
  font-weight:800;
}
.purchase-proto-card .purchase-proto-head .muted-action{
  margin:5px 0 0;
  max-width:680px;
  font-size:12.5px;
  line-height:1.45;
}
.purchase-proto-card .purchase-proto-meta{
  width:200px;
  min-width:0;
  grid-template-columns:1fr;
  justify-self:end;
}
.purchase-proto-card .purchase-proto-meta label{
  gap:5px;
  font-size:10px;
  letter-spacing:.01em;
}
.purchase-proto-card .purchase-proto-meta input{
  min-height:40px;
  height:40px;
  padding:0 10px;
  font-size:13px;
  border-radius:9px;
}
.purchase-proto-card .purchase-proto-sector-tabs{
  gap:7px;
  margin:12px 0 14px;
  padding:10px 0;
}
.purchase-proto-card .purchase-proto-sector-tab{
  min-height:40px;
  padding:0 15px;
  border-radius:10px;
  font-weight:800;
}
.purchase-proto-card .purchase-proto-sector-tab.active{
  background:#0b6b36;
  color:#fff;
  border-color:#0b6b36;
}
.purchase-proto-card .purchase-proto-section-head{
  align-items:center;
  gap:14px;
  margin:0 0 10px;
}
.purchase-proto-card .purchase-proto-section-head h3{
  margin:0;
  font-size:17px;
  font-weight:800;
}
.purchase-proto-card .purchase-proto-section-actions{
  gap:7px;
  align-items:center;
}
.purchase-proto-card .purchase-proto-section-actions .btn{
  min-height:38px;
  padding-left:14px;
  padding-right:14px;
}
.purchase-proto-card .purchase-action-tertiary{
  background:transparent;
  color:var(--muted,#607066);
  border-color:var(--border,#dce6df);
}
.purchase-proto-card .purchase-add-product{
  font-weight:850;
}
.purchase-proto-card .purchase-proto-columns,
.purchase-proto-card .purchase-proto-row{
  grid-template-columns:minmax(260px,2.15fr) 108px 138px minmax(220px,1.35fr) 40px;
  gap:9px;
}
.purchase-proto-card .purchase-proto-columns{
  padding:0 10px 6px;
  font-size:9.5px;
  line-height:1.2;
}
.purchase-proto-card .purchase-proto-row{
  padding:8px 10px;
  border-radius:11px;
}
.purchase-proto-card .purchase-proto-row input,
.purchase-proto-card .purchase-proto-row select{
  min-height:40px;
  height:40px;
  border-radius:8px;
  font-size:13px;
}
.purchase-proto-card .purchase-proto-qty{
  font-weight:700;
}
.purchase-proto-card .purchase-proto-remove{
  width:36px;
  height:40px;
  border:1px solid rgba(166,41,41,.10);
  background:rgba(166,41,41,.065);
  color:#a62929;
  font-size:18px;
  border-radius:8px;
  transition:background .15s ease,border-color .15s ease,transform .15s ease;
}
@media (hover:hover) and (pointer:fine){
  .purchase-proto-card .purchase-proto-remove:hover{
    background:rgba(166,41,41,.13);
    border-color:rgba(166,41,41,.22);
  }
}
.purchase-proto-card .purchase-proto-summary{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  max-width:none;
  margin-top:12px;
}
.purchase-proto-card .purchase-proto-summary>div{
  min-width:170px;
  padding:8px 11px;
  border-radius:9px;
  background:var(--card,#fff);
}
.purchase-proto-card .purchase-proto-summary strong{font-size:14px}
.purchase-proto-summary-empty{
  margin-top:12px;
  padding:9px 11px;
  border:1px dashed var(--border,#dce6df);
  border-radius:9px;
  color:var(--muted,#607066);
  background:var(--panel,#fbfdfb);
  font-size:12px;
}
.purchase-proto-card .purchase-action-line{
  margin-top:12px;
  padding-top:12px;
}

@media(max-width:1100px){
  .purchase-proto-card .purchase-proto-row{
    grid-template-columns:minmax(0,1.55fr) 104px 126px minmax(0,1.25fr) 38px;
  }
}
@media(max-width:860px){
  .purchase-proto-card .purchase-proto-head{
    display:grid;
    grid-template-columns:1fr;
    align-items:start;
    gap:12px;
  }
  .purchase-proto-card .purchase-proto-meta{
    width:220px;
    max-width:100%;
    justify-self:start;
    margin-top:0;
  }
  .purchase-proto-card .purchase-proto-section-head{
    align-items:flex-start;
    gap:9px;
  }
  .purchase-proto-card .purchase-proto-row{
    grid-template-columns:1fr 1fr;
    gap:9px;
    padding:10px;
  }
  .purchase-proto-card .purchase-proto-product,
  .purchase-proto-card .purchase-proto-obs{grid-column:1/-1}
  .purchase-proto-card .purchase-proto-remove{justify-self:end}
}
@media(max-width:560px){
  .purchase-proto-card .purchase-proto-head h2{font-size:19px}
  .purchase-proto-card .purchase-proto-meta{
    width:100%;
    max-width:none;
  }
  .purchase-proto-card .purchase-proto-meta input{
    min-height:44px;
    height:44px;
    font-size:16px;
  }
  .purchase-proto-card .purchase-proto-sector-tabs{
    gap:6px;
    margin:10px 0 12px;
    padding:8px 0 9px;
  }
  .purchase-proto-card .purchase-proto-sector-tab{
    min-height:44px;
    padding:0 14px;
  }
  .purchase-proto-card .purchase-proto-section-actions{
    display:grid;
    grid-template-columns:1fr;
    width:100%;
    gap:7px;
  }
  .purchase-proto-card .purchase-proto-section-actions .btn{
    width:100%;
    min-height:44px;
  }
  .purchase-proto-card .purchase-add-product{order:-1}
  .purchase-proto-card .purchase-proto-row{
    grid-template-columns:1fr;
    gap:8px;
  }
  .purchase-proto-card .purchase-proto-product,
  .purchase-proto-card .purchase-proto-obs{grid-column:auto}
  .purchase-proto-card .purchase-proto-row input,
  .purchase-proto-card .purchase-proto-row select{
    min-height:44px;
    height:44px;
    font-size:16px;
  }
  .purchase-proto-card .purchase-proto-remove{
    width:44px;
    height:44px;
    justify-self:end;
  }
  .purchase-proto-card .purchase-proto-summary{
    display:grid;
    grid-template-columns:1fr;
  }
  .purchase-proto-card .purchase-proto-summary>div{min-width:0}
}
html[data-theme='dark'] .purchase-proto-card .purchase-proto-sector-tab.active,
.theme-dark .purchase-proto-card .purchase-proto-sector-tab.active{
  background:#17663a;
  color:#fff;
  border-color:#2a8250;
}
html[data-theme='dark'] .purchase-proto-card .purchase-proto-remove,
.theme-dark .purchase-proto-card .purchase-proto-remove{
  background:rgba(225,82,82,.10);
  border-color:rgba(225,82,82,.16);
  color:#ff8e8e;
}
.purchase-proto-card .purchase-proto-head .muted-action{white-space:normal}

/* =========================================================
   Compras 0.0.11 — busca simples + prévia da lista de compras
   Escopo: somente Compras > Nova Compra
   ========================================================= */
.purchase-proto-search{
  margin:8px 0 10px;
  max-width:420px;
}
.purchase-proto-search label{
  display:flex;
  flex-direction:column;
  gap:5px;
  color:var(--muted,#607066);
  font-size:10px;
  font-weight:800;
}
.purchase-proto-search-field{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:0 11px;
  border:1px solid var(--border,#dce6df);
  border-radius:9px;
  background:var(--input-bg,#fff);
  color:var(--muted,#607066);
}
.purchase-proto-search-field>span{
  flex:0 0 auto;
  font-size:17px;
  line-height:1;
}
.purchase-proto-search-field input{
  width:100%;
  min-width:0;
  min-height:38px;
  border:0!important;
  outline:0;
  background:transparent!important;
  color:var(--text,#102118);
  padding:0!important;
  box-shadow:none!important;
  font-size:13px;
}
.purchase-proto-search-field:focus-within{
  border-color:#6db287;
  box-shadow:0 0 0 3px rgba(11,107,54,.08);
}
.purchase-proto-search-empty{
  margin:8px 0 0;
  padding:10px 12px;
  border:1px dashed var(--border,#dce6df);
  border-radius:9px;
  color:var(--muted,#607066);
  background:var(--panel,#fbfdfb);
  font-size:12px;
}
.purchase-proto-row[hidden]{display:none!important}
.purchase-proto-preview-wrap{margin-top:14px}
.purchase-preview-card{
  padding:18px;
  background:var(--panel,#f7faf8);
}
.purchase-preview-sheet{
  max-width:900px;
  margin:0 auto;
  padding:28px 30px;
  border:1px solid var(--border,#dce6df);
  border-radius:8px;
  background:var(--card,#fff);
  box-shadow:0 1px 2px rgba(16,33,24,.04);
}
.purchase-preview-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding-bottom:14px;
  border-bottom:2px solid #0b6b36;
}
.purchase-preview-head>div{min-width:0}
.purchase-preview-head span{
  display:block;
  margin-bottom:3px;
  color:var(--muted,#607066);
  font-size:9.5px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.purchase-preview-head h3{
  margin:0;
  color:var(--text,#102118);
  font-size:22px;
  line-height:1.15;
}
.purchase-preview-head time{
  flex:0 0 auto;
  color:var(--muted,#607066);
  font-size:12px;
  font-weight:700;
}
.purchase-preview-group{
  padding:17px 0 4px;
}
.purchase-preview-group+ .purchase-preview-group{
  border-top:1px solid var(--border,#e4ebe6);
  margin-top:8px;
}
.purchase-preview-group h4{
  margin:0 0 8px;
  color:#0b6b36;
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.purchase-preview-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  min-height:38px;
  padding:7px 0;
  border-bottom:1px solid var(--border,#eef2ef);
}
.purchase-preview-row:last-child{border-bottom:0}
.purchase-preview-row>div{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.purchase-preview-row b{
  color:var(--text,#102118);
  font-size:13px;
  overflow-wrap:anywhere;
}
.purchase-preview-row small{
  color:var(--muted,#607066);
  font-size:10.5px;
  line-height:1.35;
}
.purchase-preview-row strong{
  color:var(--text,#102118);
  font-size:13px;
  white-space:nowrap;
}
.purchase-preview-empty{
  padding:34px 10px 20px;
  text-align:center;
  color:var(--muted,#607066);
  font-size:12px;
}
.purchase-preview-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid var(--border,#dce6df);
  color:var(--muted,#607066);
  font-size:11px;
  font-weight:750;
}
.purchase-preview-footer>div{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px 12px;
}
.purchase-preview-footer>div span{
  color:var(--text,#102118);
  font-weight:850;
}
@media(max-width:560px){
  .purchase-proto-search{max-width:none;margin-top:7px}
  .purchase-proto-search-field{min-height:44px}
  .purchase-proto-search-field input{min-height:42px;font-size:16px}
  .purchase-proto-preview-wrap{margin-top:10px}
  .purchase-preview-card{padding:10px}
  .purchase-preview-sheet{padding:20px 16px}
  .purchase-preview-head{gap:10px;flex-direction:column}
  .purchase-preview-head h3{font-size:19px}
  .purchase-preview-row{gap:10px;align-items:start}
  .purchase-preview-footer{align-items:flex-start;flex-direction:column}
  .purchase-preview-footer>div{justify-content:flex-start}
}
html[data-theme='dark'] .purchase-preview-group h4,
.theme-dark .purchase-preview-group h4{color:#69bd87}
html[data-theme='dark'] .purchase-preview-head,
.theme-dark .purchase-preview-head{border-bottom-color:#2a8250}

/* 0.0.12 — exportação da lista e exclusão controlada de compras */
.purchase-preview-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-top:16px;
  padding-top:14px;
  border-top:1px dashed var(--border,#dce6df);
}
.purchase-preview-actions .btn{min-height:40px}
.purchase-mini-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.purchase-mini-actions .purchase-delete-purchase{color:var(--danger,#b42318)}
@media(max-width:800px){
  .purchase-preview-actions{display:grid;grid-template-columns:1fr}
  .purchase-preview-actions .btn{width:100%;justify-content:center}
  .purchase-mini-actions{justify-content:flex-start}
}

/* =========================================================
   COMPRAS 0.0.13 — consulta, edição e exclusão de listas salvas
   ========================================================= */
.purchase-saved-consult{margin-top:16px;padding:14px;border:1px solid var(--border,#dce6df);border-radius:14px;background:var(--panel,#f8fbf9)}
.purchase-saved-consult-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.purchase-saved-consult-head>div{min-width:0}.purchase-saved-consult-head span{display:block;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:#0b6b36;margin-bottom:2px}.purchase-saved-consult-head h3{margin:0;font-size:18px}.purchase-saved-consult-head p{margin:3px 0 0;color:var(--muted,#607066);font-size:12px;line-height:1.45}
.purchase-saved-filter-grid{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(190px,1.15fr) minmax(190px,1.15fr) minmax(150px,.85fr) auto;gap:10px;align-items:end}
.purchase-saved-filter-grid label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:10px;font-weight:900;color:var(--muted,#607066);text-transform:uppercase;letter-spacing:.03em}
.purchase-saved-filter-grid input,.purchase-saved-filter-grid select{width:100%;height:42px;border:1px solid var(--border,#dce6df);border-radius:10px;background:var(--input-bg,#fff);color:var(--text,#102118);padding:0 10px;font-size:13px;text-transform:none;letter-spacing:0}
.purchase-saved-filter-action{display:flex;align-items:flex-end}.purchase-saved-filter-action .btn{min-height:42px;white-space:nowrap}
.purchase-saved-selected{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:9px 11px;border:1px solid #bcdcc6;border-radius:10px;background:#eef8f1;font-size:12px;color:#174d2c}
.purchase-saved-results{display:grid;gap:8px;margin-top:12px}.purchase-saved-result{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:10px 11px;border:1px solid var(--border,#dce6df);border-radius:11px;background:var(--card,#fff)}.purchase-saved-result.active{border-color:#8cc7a1;background:#f0f8f3}
.purchase-saved-result-main{display:flex;flex-direction:column;gap:2px;min-width:0}.purchase-saved-result-main b{font-size:13px}.purchase-saved-result-main small{color:var(--muted,#607066);font-size:11px;white-space:normal}.purchase-saved-more{display:block;margin-top:8px;color:var(--muted,#607066);font-size:10px}
.purchase-saved-result .purchase-mini-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.purchase-saved-result .btn-mini{min-height:34px;padding:0 10px}
.purchase-saved-editor{margin-top:14px}.purchase-saved-edit-meta{display:flex;justify-content:flex-end;margin-bottom:12px}.purchase-saved-edit-meta label{display:flex;flex-direction:column;gap:5px;width:210px;font-size:10px;font-weight:900;color:var(--muted,#607066);text-transform:uppercase}.purchase-saved-edit-meta input{height:42px;border:1px solid var(--border,#dce6df);border-radius:10px;background:var(--input-bg,#fff);color:var(--text,#102118);padding:0 10px;font-size:13px;text-transform:none}
.purchase-saved-edit-list{display:grid;gap:8px}.purchase-saved-edit-row{display:grid;grid-template-columns:minmax(160px,1.3fr) 120px 86px 110px 110px minmax(150px,1fr) 110px minmax(160px,1.1fr);gap:8px;align-items:end;padding:10px;border:1px solid var(--border,#dce6df);border-radius:11px;background:var(--panel,#fbfdfb)}.purchase-saved-edit-row label{display:flex;flex-direction:column;gap:4px;min-width:0}.purchase-saved-edit-row label>span{font-size:9px;font-weight:900;color:var(--muted,#607066);text-transform:uppercase}.purchase-saved-edit-row input,.purchase-saved-edit-row select{width:100%;height:40px;border:1px solid var(--border,#dce6df);border-radius:9px;background:var(--input-bg,#fff);color:var(--text,#102118);padding:0 9px;font-size:12px}
@media(max-width:1180px){.purchase-saved-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.purchase-saved-filter-action{grid-column:1/-1;justify-content:flex-end}.purchase-saved-edit-row{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.purchase-saved-consult{padding:12px}.purchase-saved-filter-grid{grid-template-columns:1fr}.purchase-saved-filter-action{grid-column:auto}.purchase-saved-filter-action .btn{width:100%}.purchase-saved-selected{align-items:flex-start;flex-direction:column}.purchase-saved-results{gap:10px}.purchase-saved-result{grid-template-columns:1fr;align-items:start}.purchase-saved-result .tag{justify-self:start}.purchase-saved-result .purchase-mini-actions{justify-content:flex-start;width:100%}.purchase-saved-result .purchase-mini-actions .btn{flex:1 1 120px;min-height:42px}.purchase-saved-edit-meta{justify-content:stretch}.purchase-saved-edit-meta label{width:100%}.purchase-saved-edit-row{grid-template-columns:1fr 1fr}.purchase-saved-edit-row label:first-child,.purchase-saved-edit-row label:last-child{grid-column:1/-1}.purchase-saved-edit-row input,.purchase-saved-edit-row select{height:44px;font-size:16px}}
@media(max-width:430px){.purchase-saved-edit-row{grid-template-columns:1fr}.purchase-saved-edit-row label:first-child,.purchase-saved-edit-row label:last-child{grid-column:auto}}
html[data-theme='dark'] .purchase-saved-selected,.theme-dark .purchase-saved-selected{background:#153222;border-color:#275a3b;color:#b7e7c7}
html[data-theme='dark'] .purchase-saved-result.active,.theme-dark .purchase-saved-result.active{background:#142b1d;border-color:#2c6c43}

/* Atualização 0.0.14 — consulta automática de listas salvas */
.purchase-saved-result{
  cursor:pointer;
}
.purchase-saved-result:focus-visible{
  outline:3px solid rgba(14,122,61,.22);
  outline-offset:2px;
  border-color:#72b98a;
}
.purchase-saved-result .purchase-delete-soft{
  background:#fff7f6;
  color:#a43030;
  border:1px solid #efc8c4;
  box-shadow:none;
}
.purchase-saved-result .purchase-delete-soft:hover{
  background:#fdeceb;
  color:#8f2119;
  border-color:#e7aaa4;
  box-shadow:none;
}
html[data-theme='dark'] body:not(.tv-mode) .purchase-saved-result .purchase-delete-soft,
.theme-dark .purchase-saved-result .purchase-delete-soft{
  background:#211516;
  color:#ffb1b1;
  border-color:#5a3032;
}
html[data-theme='dark'] body:not(.tv-mode) .purchase-saved-result .purchase-delete-soft:hover,
.theme-dark .purchase-saved-result .purchase-delete-soft:hover{
  background:#2b1719;
  color:#ffc4c4;
  border-color:#784044;
}

/* Atualização 0.0.15 — Acertos em formato de registro + cadastro de fornecedores */
.purchase-settlement-ledger-filters{margin-bottom:14px}
.purchase-settlement-filter-grid{grid-template-columns:repeat(6,minmax(130px,1fr));align-items:end}
.purchase-settlement-filter-action{display:flex;align-items:end;justify-content:flex-end;min-height:42px}
.purchase-settlement-kpis{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:14px}
.purchase-settlement-ledger{margin-bottom:18px}
.purchase-settlement-excel-table{min-width:1380px}
.purchase-settlement-excel-table th{white-space:nowrap}
.purchase-settlement-excel-table td{vertical-align:middle;white-space:nowrap}
.purchase-settlement-excel-table td:nth-child(2),.purchase-settlement-excel-table td:nth-child(3){white-space:normal;min-width:160px}
.purchase-settlement-pending-section{display:grid;gap:12px;margin-top:18px}
.purchase-section-copy h2{margin:0 0 4px;font-size:18px}.purchase-section-copy p{margin:0;color:var(--muted,#607066);font-size:13px}
.purchase-supplier-registry{margin-top:20px}
.purchase-supplier-toolbar{display:flex;gap:12px;align-items:end;justify-content:space-between;margin:8px 0 12px}
.purchase-supplier-toolbar label{display:flex;flex-direction:column;gap:5px;min-width:min(360px,100%);font-size:11px;font-weight:800;color:var(--muted,#607066)}
.purchase-supplier-toolbar input{min-height:42px;border:1px solid var(--border,#dce6df);border-radius:10px;background:var(--input-bg,#fff);color:var(--text,#102118);padding:0 12px}
.purchase-supplier-toolbar>span{font-size:12px;color:var(--muted,#607066);font-weight:700}
.purchase-supplier-registry .table td:first-child{min-width:260px}
.purchase-supplier-registry .table td:nth-child(2){min-width:180px}
@media(max-width:1100px){.purchase-settlement-filter-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}.purchase-settlement-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.purchase-settlement-filter-grid{grid-template-columns:1fr 1fr}.purchase-settlement-filter-action{grid-column:1/-1;justify-content:flex-start}.purchase-settlement-kpis{grid-template-columns:1fr 1fr}.purchase-supplier-toolbar{align-items:stretch;flex-direction:column}.purchase-supplier-toolbar label{min-width:0;width:100%}}
@media(max-width:390px){.purchase-settlement-filter-grid,.purchase-settlement-kpis{grid-template-columns:1fr}.purchase-settlement-filter-action{grid-column:auto}.purchase-supplier-registry .panel-head{align-items:flex-start}.purchase-supplier-registry .panel-head .btn{width:100%}}

/* Produção Só Folhas 0.0.17 — Histórico filtrável dentro da Conferência */
.purchase-conference-history-filter-grid{grid-template-columns:repeat(4,minmax(150px,1fr));align-items:end}
.purchase-conference-history-filter-action{display:flex;align-items:end;min-height:100%}
.purchase-conference-history-kpis{grid-template-columns:repeat(6,minmax(120px,1fr))}
.purchase-conference-history-table{min-width:1560px}
.purchase-conference-history-table th{white-space:nowrap}
.purchase-conference-history-table td{vertical-align:middle;white-space:nowrap}
.purchase-conference-history-table td:nth-child(3),
.purchase-conference-history-table td:nth-child(4),
.purchase-conference-history-table td:nth-child(13){white-space:normal;min-width:150px}
.purchase-conference-history-card .table-wrap{max-width:100%;overflow-x:auto}
@media(max-width:1250px){
  .purchase-conference-history-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .purchase-conference-history-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:800px){
  .purchase-conference-history-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .purchase-conference-history-filter-grid .purchase-filter-search{grid-column:1/-1}
  .purchase-conference-history-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .purchase-conference-history-filter-grid,.purchase-conference-history-kpis{grid-template-columns:1fr}
  .purchase-conference-history-filter-grid .purchase-filter-search{grid-column:auto}
  .purchase-conference-history-filter-action .btn{width:100%}
}

/* Produção Só Folhas 0.0.18 — unidades de preço e quebra em KG/g */
.purchase-breakage-input{display:grid;grid-template-columns:minmax(0,1fr) 64px;gap:6px;align-items:center}
.purchase-breakage-input input{min-width:0}
.purchase-breakage-input select{width:64px;min-height:40px;border:1px solid var(--border,#dce6df);border-radius:9px;background:var(--input-bg,#fff);color:var(--text,#102118);padding:0 6px;font-weight:800}
.purchase-conference-row .purchase-breakage-field,.purchase-break-row .purchase-breakage-field{min-width:0}
@media(max-width:520px){.purchase-breakage-input select{min-height:44px;font-size:16px}}
.purchase-settlement-excel-table{min-width:1240px}

/* Produção Só Folhas 0.0.20 — alinhamento de compras e base de preço */
.purchase-completion-card{margin-top:16px}
.purchase-completion-head,.purchase-completion-row{display:grid;grid-template-columns:minmax(190px,1.45fr) 118px 128px minmax(170px,1fr) minmax(220px,1.2fr) minmax(170px,1fr);gap:12px;align-items:end}
.purchase-conference-head,.purchase-conference-row{display:grid;grid-template-columns:minmax(180px,1.4fr) 105px 145px 110px 126px 128px 96px 96px 104px minmax(150px,1fr);gap:12px;align-items:end}
.purchase-break-head,.purchase-break-row{display:grid;grid-template-columns:minmax(180px,1.35fr) 150px 120px minmax(160px,1fr) 128px 145px 118px 132px minmax(150px,1fr);gap:12px;align-items:end}
.purchase-completion-head,.purchase-conference-head,.purchase-break-head{padding:0 12px 8px;color:var(--muted,#607066);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}
.purchase-completion-row,.purchase-conference-row,.purchase-break-row{padding:12px;border:1px solid var(--border,#e0e8e3);border-radius:14px;background:var(--panel,#fbfdfb)}
.purchase-completion-row>div,.purchase-completion-row>label,.purchase-conference-row>div,.purchase-conference-row>label,.purchase-break-row>div,.purchase-break-row>label{display:flex;flex-direction:column;gap:5px;min-width:0;align-self:stretch}
.purchase-completion-row input,.purchase-completion-row select,.purchase-conference-row input,.purchase-conference-row select,.purchase-break-row input,.purchase-break-row select,.purchase-settlement-fields input{width:100%;min-height:42px;border:1px solid var(--border,#dce6df);border-radius:10px;background:var(--input-bg,#fff);color:var(--text,#102118);padding:0 10px}
.purchase-cell-main b,.purchase-cell-main small{display:block;white-space:normal;overflow-wrap:anywhere}
.purchase-cell-main b{line-height:1.15}
.purchase-price-field{min-width:0}
.purchase-price-inputline{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:8px;align-items:center}
.purchase-price-inputline .purchase-complete-price{min-width:0}
.purchase-price-inputline .purchase-complete-price-unit{font-weight:800;padding:0 8px}
.purchase-breakage-input{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:8px;align-items:center}
.purchase-breakage-input select{width:72px;min-height:42px;border-radius:10px}
.purchase-settlement-ledger .table-wrap,.purchase-conference-history-card .table-wrap{max-width:100%;overflow-x:auto;overflow-y:visible}
.purchase-settlement-excel-table{width:100%;min-width:1320px;table-layout:fixed}
.purchase-settlement-excel-table th{white-space:nowrap}
.purchase-settlement-excel-table td{vertical-align:top;white-space:normal;overflow-wrap:anywhere;word-break:break-word;line-height:1.35}
.purchase-settlement-excel-table td:nth-child(1),.purchase-settlement-excel-table th:nth-child(1){width:96px}
.purchase-settlement-excel-table td:nth-child(2),.purchase-settlement-excel-table th:nth-child(2){width:170px}
.purchase-settlement-excel-table td:nth-child(3),.purchase-settlement-excel-table th:nth-child(3){width:170px}
.purchase-settlement-excel-table td:nth-child(4),.purchase-settlement-excel-table th:nth-child(4),.purchase-settlement-excel-table td:nth-child(5),.purchase-settlement-excel-table th:nth-child(5){width:92px}
.purchase-settlement-excel-table td:nth-child(6),.purchase-settlement-excel-table th:nth-child(6){width:92px}
.purchase-settlement-excel-table td:nth-child(7),.purchase-settlement-excel-table th:nth-child(7){width:120px}
.purchase-settlement-excel-table td:nth-child(8),.purchase-settlement-excel-table th:nth-child(8){width:96px}
.purchase-settlement-excel-table td:nth-child(9),.purchase-settlement-excel-table th:nth-child(9),.purchase-settlement-excel-table td:nth-child(10),.purchase-settlement-excel-table th:nth-child(10),.purchase-settlement-excel-table td:nth-child(11),.purchase-settlement-excel-table th:nth-child(11){width:128px}
.purchase-settlement-excel-table td .block-muted,.purchase-conference-history-table td .block-muted{display:block;margin-top:4px;white-space:normal}
@media(max-width:1250px){.purchase-completion-head,.purchase-conference-head,.purchase-break-head{display:none}.purchase-completion-row{grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-conference-row{grid-template-columns:repeat(4,minmax(0,1fr))}.purchase-break-row{grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-completion-row span,.purchase-conference-row span,.purchase-break-row span{display:block}}
@media(max-width:800px){.purchase-completion-row,.purchase-conference-row,.purchase-break-row{grid-template-columns:1fr 1fr}.purchase-cell-main{grid-column:1/-1}.purchase-price-field{grid-column:1/-1}.purchase-price-inputline{grid-template-columns:minmax(0,1fr) 88px}}
@media(max-width:520px){.purchase-completion-row,.purchase-conference-row,.purchase-break-row{grid-template-columns:1fr}.purchase-price-field{grid-column:auto}.purchase-completion-row input,.purchase-completion-row select,.purchase-conference-row input,.purchase-conference-row select,.purchase-break-row input,.purchase-break-row select,.purchase-settlement-fields input{font-size:16px;min-height:44px}}

.purchase-settlement-excel-table td:nth-child(n+4){white-space:nowrap;overflow-wrap:normal;word-break:normal}
.purchase-settlement-excel-table td:nth-child(2),.purchase-settlement-excel-table td:nth-child(3){white-space:normal;overflow-wrap:anywhere}

/* Produção Só Folhas 0.0.21 — refinamento visual da área Acertos pendentes */
.purchase-settlement-card{
  margin-bottom:18px;
  border-radius:18px;
  overflow:hidden;
}
.purchase-settlement-card .panel-head{
  padding:18px 22px 8px;
  align-items:flex-start;
  gap:12px;
}
.purchase-settlement-card .panel-head h2{
  margin:0;
  font-size:18px;
  line-height:1.15;
  font-weight:800;
  color:var(--text,#102118);
}
.purchase-settlement-card .panel-head p{
  margin:4px 0 0;
  font-size:14px;
  line-height:1.35;
  color:var(--muted,#607066);
}
.purchase-settlement-card .tag{
  align-self:flex-start;
  white-space:nowrap;
}
.purchase-break-head,
.purchase-break-row{
  grid-template-columns:minmax(250px,1.7fr) 180px 150px minmax(190px,1.2fr) 160px 180px 150px 150px minmax(170px,1fr);
  gap:14px;
}
.purchase-break-head{
  padding:10px 22px 8px;
  border-top:1px solid rgba(16,33,24,.06);
  border-bottom:1px solid rgba(16,33,24,.06);
  background:rgba(255,255,255,.45);
  font-size:11px;
  letter-spacing:.05em;
}
.purchase-break-row{
  padding:16px 22px;
  border:none;
  border-bottom:1px solid rgba(16,33,24,.08);
  border-radius:0;
  background:transparent;
  align-items:end;
}
.purchase-break-list .purchase-break-row:last-child{
  border-bottom:none;
}
.purchase-break-row>div,
.purchase-break-row>label{
  gap:6px;
  justify-content:flex-end;
}
.purchase-break-row span{
  font-size:11px;
  line-height:1.2;
  font-weight:800;
  color:var(--muted,#607066);
  text-transform:none;
  letter-spacing:0;
}
.purchase-break-row b{
  font-size:15px;
  line-height:1.25;
  color:var(--text,#102118);
}
.purchase-break-row .purchase-cell-main{
  justify-content:flex-start;
  align-self:center;
}
.purchase-break-row .purchase-cell-main b{
  font-size:17px;
  line-height:1.15;
  font-weight:800;
  white-space:normal;
  overflow-wrap:anywhere;
}
.purchase-break-row .purchase-cell-main small{
  margin-top:4px;
  font-size:13px;
  line-height:1.4;
  color:var(--muted,#607066);
  white-space:normal;
  overflow-wrap:anywhere;
}
.purchase-break-row input,
.purchase-break-row select,
.purchase-settlement-fields input{
  min-height:50px;
  border-radius:12px;
  padding:0 14px;
  font-size:15px;
}
.purchase-break-row .purchase-billable-qty,
.purchase-break-row .purchase-billable-reason,
.purchase-break-row .purchase-breakage-note{
  font-weight:600;
}
.purchase-breakage-field .purchase-breakage-input{
  grid-template-columns:minmax(0,1fr) 88px;
  gap:10px;
}
.purchase-breakage-field .purchase-breakage-input select{
  min-width:88px;
  font-weight:800;
  text-align:center;
}
.purchase-break-row label{
  width:100%;
}
.purchase-break-row .purchase-breakage-note{
  width:100%;
}
.purchase-settlement-box{
  margin:0 22px 18px;
  padding:18px;
  border-radius:16px;
}
.purchase-settlement-summary{
  gap:12px;
}
.purchase-settlement-summary>div{
  padding:14px;
  border-radius:12px;
}
.purchase-settlement-summary span{
  font-size:11px;
}
.purchase-settlement-summary strong{
  font-size:20px;
  line-height:1.2;
}
.purchase-settlement-fields{
  grid-template-columns:190px minmax(260px,1fr);
  gap:12px;
}
.purchase-settlement-fields label{
  font-size:12px;
}
.purchase-action-line{
  padding:0 22px 18px;
}
.purchase-settlement-card .purchase-action-line{
  padding-left:22px;
  padding-right:22px;
}
.purchase-settlement-card .purchase-action-line .btn{
  min-height:48px;
  padding:0 18px;
  border-radius:12px;
  font-weight:800;
}
@media (max-width: 1480px){
  .purchase-break-head,
  .purchase-break-row{
    grid-template-columns:minmax(230px,1.55fr) 160px 138px minmax(180px,1.15fr) 150px 165px 138px 138px minmax(160px,1fr);
    gap:12px;
  }
}
@media (max-width: 1250px){
  .purchase-settlement-card .panel-head{padding:16px 18px 8px}
  .purchase-break-row{
    grid-template-columns:repeat(3,minmax(0,1fr));
    padding:16px 18px;
  }
  .purchase-break-row .purchase-cell-main{grid-column:1/-1}
  .purchase-break-row .purchase-breakage-field,
  .purchase-break-row label:last-child{grid-column:span 2}
  .purchase-settlement-box,
  .purchase-action-line,
  .purchase-break-head{margin-left:0;margin-right:0;padding-left:18px;padding-right:18px}
}
@media (max-width: 800px){
  .purchase-break-row{
    grid-template-columns:1fr 1fr;
    gap:12px;
  }
  .purchase-break-row .purchase-cell-main,
  .purchase-break-row .purchase-breakage-field,
  .purchase-break-row label:last-child{grid-column:1/-1}
  .purchase-break-head{display:none}
  .purchase-settlement-fields{grid-template-columns:1fr}
}
@media (max-width: 520px){
  .purchase-settlement-card .panel-head{padding:14px 14px 8px}
  .purchase-break-row,
  .purchase-settlement-box,
  .purchase-action-line{padding-left:14px;padding-right:14px}
  .purchase-break-row{grid-template-columns:1fr;padding-top:14px;padding-bottom:14px}
  .purchase-break-row>div,
  .purchase-break-row>label{justify-content:flex-start}
  .purchase-break-row b{font-size:16px}
  .purchase-break-row .purchase-cell-main b{font-size:18px}
  .purchase-breakage-field .purchase-breakage-input{grid-template-columns:minmax(0,1fr) 84px}
}

/* Produção Só Folhas 0.0.22 — ajuste do registro de compras dos fornecedores sem rolagem lateral */
.purchase-settlement-ledger{
  overflow:hidden;
}
.purchase-settlement-ledger .panel-head{
  margin-bottom:12px;
}
.purchase-settlement-ledger .panel-head h2{
  margin:0 0 6px;
  line-height:1.15;
}
.purchase-settlement-ledger .panel-head p{
  margin:0;
  line-height:1.45;
}
.purchase-settlement-ledger .table-wrap{
  width:100%;
  max-width:100%;
  overflow-x:clip !important;
  overflow-y:visible;
}
.purchase-settlement-excel-table{
  width:100%;
  min-width:0 !important;
  table-layout:fixed;
}
.purchase-settlement-excel-table th,
.purchase-settlement-excel-table td{
  padding:11px 10px;
  font-size:12px;
  line-height:1.28;
  vertical-align:top;
}
.purchase-settlement-excel-table th{
  font-size:11px;
  letter-spacing:.02em;
  white-space:nowrap;
}
.purchase-settlement-excel-table td{
  overflow-wrap:break-word;
  word-break:normal;
}
.purchase-settlement-excel-table td b{
  font-size:13px;
  line-height:1.2;
}
.purchase-settlement-excel-table td .block-muted{
  margin-top:3px;
  font-size:11px;
  line-height:1.2;
}
.purchase-settlement-excel-table td:nth-child(1),
.purchase-settlement-excel-table th:nth-child(1){width:7%; white-space:nowrap;}
.purchase-settlement-excel-table td:nth-child(2),
.purchase-settlement-excel-table th:nth-child(2){width:12%;}
.purchase-settlement-excel-table td:nth-child(3),
.purchase-settlement-excel-table th:nth-child(3){width:13%;}
.purchase-settlement-excel-table td:nth-child(4),
.purchase-settlement-excel-table th:nth-child(4),
.purchase-settlement-excel-table td:nth-child(5),
.purchase-settlement-excel-table th:nth-child(5),
.purchase-settlement-excel-table td:nth-child(6),
.purchase-settlement-excel-table th:nth-child(6),
.purchase-settlement-excel-table td:nth-child(8),
.purchase-settlement-excel-table th:nth-child(8){width:7%;}
.purchase-settlement-excel-table td:nth-child(7),
.purchase-settlement-excel-table th:nth-child(7){width:10%;}
.purchase-settlement-excel-table td:nth-child(9),
.purchase-settlement-excel-table th:nth-child(9),
.purchase-settlement-excel-table td:nth-child(10),
.purchase-settlement-excel-table th:nth-child(10),
.purchase-settlement-excel-table td:nth-child(11),
.purchase-settlement-excel-table th:nth-child(11){width:10%;}
.purchase-settlement-excel-table td:nth-child(4),
.purchase-settlement-excel-table td:nth-child(5),
.purchase-settlement-excel-table td:nth-child(6),
.purchase-settlement-excel-table td:nth-child(7),
.purchase-settlement-excel-table td:nth-child(8),
.purchase-settlement-excel-table td:nth-child(9),
.purchase-settlement-excel-table td:nth-child(10),
.purchase-settlement-excel-table td:nth-child(11){
  white-space:normal;
}
@media (max-width: 1450px){
  .purchase-settlement-excel-table th,
  .purchase-settlement-excel-table td{padding:10px 8px;font-size:11.5px}
  .purchase-settlement-excel-table th{font-size:10.5px}
  .purchase-settlement-excel-table td b{font-size:12.5px}
}
@media (max-width: 1280px){
  .purchase-settlement-ledger .table-wrap{overflow-x:auto !important}
  .purchase-settlement-excel-table{min-width:1120px !important}
}

/* Produção Só Folhas 0.0.23 — compactação proporcional dos Acertos pendentes */
.purchase-settlement-pending-section{
  margin-top:14px;
}
.purchase-settlement-pending-section .purchase-section-copy{
  margin:0 0 10px;
}
.purchase-settlement-pending-section .purchase-section-copy h2{
  margin:0 0 3px;
  font-size:19px;
  line-height:1.15;
}
.purchase-settlement-pending-section .purchase-section-copy p{
  margin:0;
  font-size:13px;
  line-height:1.35;
}
.purchase-settlement-pending-section .purchase-settlement-card{
  margin-bottom:14px;
  border-radius:16px;
}
.purchase-settlement-pending-section .purchase-settlement-card .panel-head{
  padding:14px 18px 10px;
  margin-bottom:0;
  min-height:0;
}
.purchase-settlement-pending-section .purchase-settlement-card .panel-head h2{
  font-size:16px;
  line-height:1.1;
}
.purchase-settlement-pending-section .purchase-settlement-card .panel-head p{
  margin-top:4px;
  font-size:12px;
  line-height:1.25;
}
.purchase-settlement-pending-section .purchase-settlement-card .tag{
  padding:5px 10px;
  font-size:11px;
}
.purchase-settlement-pending-section .purchase-break-head,
.purchase-settlement-pending-section .purchase-break-row{
  grid-template-columns:minmax(210px,1.55fr) 150px 132px minmax(160px,1.05fr) 148px 155px 128px 130px minmax(150px,1fr);
  gap:10px;
}
.purchase-settlement-pending-section .purchase-break-head{
  padding:8px 18px 7px;
  font-size:10px;
}
.purchase-settlement-pending-section .purchase-break-row{
  padding:12px 18px;
}
.purchase-settlement-pending-section .purchase-break-row>div,
.purchase-settlement-pending-section .purchase-break-row>label{
  gap:4px;
}
.purchase-settlement-pending-section .purchase-break-row span{
  font-size:10px;
  line-height:1.15;
}
.purchase-settlement-pending-section .purchase-break-row b{
  font-size:14px;
  line-height:1.18;
}
.purchase-settlement-pending-section .purchase-break-row .purchase-cell-main b{
  font-size:15px;
}
.purchase-settlement-pending-section .purchase-break-row .purchase-cell-main small{
  margin-top:2px;
  font-size:11.5px;
  line-height:1.25;
}
.purchase-settlement-pending-section .purchase-break-row input,
.purchase-settlement-pending-section .purchase-break-row select{
  min-height:40px;
  height:40px;
  padding:0 10px;
  border-radius:9px;
  font-size:13px;
}
.purchase-settlement-pending-section .purchase-breakage-field .purchase-breakage-input{
  grid-template-columns:minmax(0,1fr) 74px;
  gap:7px;
}
.purchase-settlement-pending-section .purchase-breakage-field .purchase-breakage-input select{
  min-width:74px;
}
.purchase-settlement-pending-section .purchase-action-line{
  margin-top:0;
  padding:10px 18px 14px;
  border-top:1px solid rgba(16,33,24,.07);
}
.purchase-settlement-pending-section .purchase-action-line .btn{
  min-height:40px;
  height:40px;
  padding:0 15px;
  border-radius:10px;
  font-size:13px;
}
.purchase-settlement-pending-section .purchase-settlement-box{
  margin:10px 18px 14px;
  padding:13px;
  border-radius:13px;
}
.purchase-settlement-pending-section .purchase-settlement-summary{
  gap:8px;
}
.purchase-settlement-pending-section .purchase-settlement-summary>div{
  padding:10px;
}
.purchase-settlement-pending-section .purchase-settlement-summary span{
  font-size:10px;
}
.purchase-settlement-pending-section .purchase-settlement-summary strong{
  font-size:17px;
}
.purchase-settlement-pending-section .purchase-settlement-fields{
  grid-template-columns:170px minmax(220px,1fr);
  gap:9px;
  margin-top:9px;
}
.purchase-settlement-pending-section .purchase-settlement-fields input{
  min-height:40px;
  height:40px;
  font-size:13px;
}
@media (max-width: 1480px){
  .purchase-settlement-pending-section .purchase-break-head,
  .purchase-settlement-pending-section .purchase-break-row{
    grid-template-columns:minmax(200px,1.45fr) 140px 124px minmax(150px,1fr) 140px 145px 120px 122px minmax(145px,1fr);
    gap:9px;
  }
}
@media (max-width: 1250px){
  .purchase-settlement-pending-section .purchase-break-row{
    grid-template-columns:repeat(3,minmax(0,1fr));
    padding:12px 16px;
  }
  .purchase-settlement-pending-section .purchase-break-row .purchase-cell-main{grid-column:1/-1}
  .purchase-settlement-pending-section .purchase-break-row .purchase-breakage-field,
  .purchase-settlement-pending-section .purchase-break-row label:last-child{grid-column:span 2}
  .purchase-settlement-pending-section .purchase-break-head{display:none}
}
@media (max-width: 800px){
  .purchase-settlement-pending-section .purchase-break-row{grid-template-columns:1fr 1fr}
  .purchase-settlement-pending-section .purchase-break-row .purchase-breakage-field,
  .purchase-settlement-pending-section .purchase-break-row label:last-child{grid-column:1/-1}
}
@media (max-width: 520px){
  .purchase-settlement-pending-section .purchase-settlement-card .panel-head{padding:12px 14px 8px}
  .purchase-settlement-pending-section .purchase-break-row{grid-template-columns:1fr;padding:10px 14px}
  .purchase-settlement-pending-section .purchase-break-row .purchase-cell-main,
  .purchase-settlement-pending-section .purchase-break-row .purchase-breakage-field,
  .purchase-settlement-pending-section .purchase-break-row label:last-child{grid-column:auto}
  .purchase-settlement-pending-section .purchase-action-line{padding:9px 14px 12px}
}

/* Produção Só Folhas 0.0.24 — redesign compacto e proporcional de Acertos pendentes */
.purchase-settlement-pending-section{
  margin-top:12px;
}
.purchase-settlement-pending-section .purchase-section-copy{
  margin:0 0 8px;
}
.purchase-settlement-pending-section .purchase-section-copy h2{
  margin:0 0 2px;
  font-size:18px;
  line-height:1.1;
}
.purchase-settlement-pending-section .purchase-section-copy p{
  margin:0;
  font-size:12.5px;
  line-height:1.3;
}
.purchase-settlement-pending-section .purchase-settlement-card{
  margin-bottom:10px;
  border-radius:14px;
  overflow:visible;
}
.purchase-settlement-pending-section .purchase-settlement-card .panel-head{
  padding:11px 16px 9px;
  margin:0;
  min-height:0;
  align-items:center;
}
.purchase-settlement-pending-section .purchase-settlement-card .panel-head h2{
  margin:0;
  font-size:15px;
  line-height:1.05;
  font-weight:800;
}
.purchase-settlement-pending-section .purchase-settlement-card .panel-head p{
  margin:3px 0 0;
  font-size:11.5px;
  line-height:1.2;
  color:var(--muted,#607066);
}
.purchase-settlement-pending-section .purchase-pending-top-action{
  min-height:34px;
  height:34px;
  padding:0 13px;
  border-radius:9px;
  font-size:11.5px;
  font-weight:800;
  white-space:nowrap;
  box-shadow:none;
}
.purchase-settlement-pending-section .purchase-settlement-card .tag{
  padding:4px 9px;
  font-size:10.5px;
}
.purchase-settlement-pending-section .purchase-break-head,
.purchase-settlement-pending-section .purchase-break-row{
  grid-template-columns:minmax(210px,1.55fr) 128px 118px minmax(170px,1.18fr) 140px 150px 112px 112px minmax(145px,.95fr);
  gap:8px;
}
.purchase-settlement-pending-section .purchase-break-head{
  padding:7px 16px 6px;
  border-top:1px solid rgba(16,33,24,.06);
  border-bottom:1px solid rgba(16,33,24,.07);
  background:rgba(255,255,255,.35);
  font-size:9.5px;
  line-height:1.1;
  letter-spacing:.025em;
}
.purchase-settlement-pending-section .purchase-break-head span{
  white-space:nowrap;
}
.purchase-settlement-pending-section .purchase-break-row{
  padding:9px 16px 10px;
  border:0;
  border-bottom:1px solid rgba(16,33,24,.07);
  border-radius:0;
  background:transparent;
  align-items:center;
}
.purchase-settlement-pending-section .purchase-break-list .purchase-break-row:last-child{
  border-bottom:0;
}
.purchase-settlement-pending-section .purchase-break-row>div,
.purchase-settlement-pending-section .purchase-break-row>label{
  min-width:0;
  gap:2px;
  justify-content:center;
}
/* No desktop, os cabeçalhos já identificam os campos. Evita rótulos duplicados e reduz altura. */
.purchase-settlement-pending-section .purchase-break-row>div:not(.purchase-cell-main)>span,
.purchase-settlement-pending-section .purchase-break-row>label>span{
  display:none;
}
.purchase-settlement-pending-section .purchase-break-row b{
  font-size:12.5px;
  line-height:1.15;
  font-weight:800;
  color:var(--text,#102118);
}
.purchase-settlement-pending-section .purchase-break-row .purchase-cell-main{
  justify-content:center;
}
.purchase-settlement-pending-section .purchase-break-row .purchase-cell-main b{
  font-size:13.5px;
  line-height:1.1;
  white-space:normal;
  overflow-wrap:anywhere;
}
.purchase-settlement-pending-section .purchase-break-row .purchase-cell-main small{
  margin-top:3px;
  font-size:10.5px;
  line-height:1.2;
  color:var(--muted,#607066);
  white-space:normal;
  overflow-wrap:anywhere;
}
.purchase-settlement-pending-section .purchase-break-row input,
.purchase-settlement-pending-section .purchase-break-row select{
  min-height:36px;
  height:36px;
  padding:0 9px;
  border-radius:8px;
  font-size:12px;
}
.purchase-settlement-pending-section .purchase-break-row input::placeholder{
  font-size:11px;
}
.purchase-settlement-pending-section .purchase-breakage-field .purchase-breakage-input{
  grid-template-columns:minmax(0,1fr) 66px;
  gap:6px;
}
.purchase-settlement-pending-section .purchase-breakage-field .purchase-breakage-input select{
  min-width:66px;
  width:66px;
  padding:0 5px;
  font-size:12px;
}
.purchase-settlement-pending-section .purchase-break-row>div:nth-child(2) b,
.purchase-settlement-pending-section .purchase-break-row>div:nth-child(6) b,
.purchase-settlement-pending-section .purchase-break-row>div:nth-child(7) b,
.purchase-settlement-pending-section .purchase-break-row>div:nth-child(8) b{
  white-space:nowrap;
}
.purchase-settlement-pending-section .purchase-break-row label:last-child input{
  min-width:0;
}
.purchase-settlement-pending-section .purchase-settlement-box{
  margin:8px 16px 12px;
  padding:11px;
  border-radius:11px;
}
.purchase-settlement-pending-section .purchase-settlement-summary{
  gap:7px;
}
.purchase-settlement-pending-section .purchase-settlement-summary>div{
  padding:8px 10px;
}
.purchase-settlement-pending-section .purchase-settlement-summary span{
  font-size:9.5px;
}
.purchase-settlement-pending-section .purchase-settlement-summary strong{
  font-size:15px;
}
.purchase-settlement-pending-section .purchase-settlement-fields{
  grid-template-columns:155px minmax(210px,1fr);
  gap:8px;
  margin-top:8px;
}
.purchase-settlement-pending-section .purchase-settlement-fields label{
  font-size:10.5px;
}
.purchase-settlement-pending-section .purchase-settlement-fields input{
  min-height:36px;
  height:36px;
  font-size:12px;
}
.purchase-settlement-pending-section .purchase-settlement-box .purchase-action-line{
  padding:8px 0 0;
  margin-top:8px;
}
.purchase-settlement-pending-section .purchase-settlement-box .purchase-action-line .btn{
  min-height:36px;
  height:36px;
  padding:0 13px;
  border-radius:9px;
  font-size:12px;
}
@media (max-width:1450px){
  .purchase-settlement-pending-section .purchase-break-head,
  .purchase-settlement-pending-section .purchase-break-row{
    grid-template-columns:minmax(190px,1.45fr) 118px 110px minmax(155px,1.08fr) 130px 140px 104px 104px minmax(132px,.9fr);
    gap:7px;
  }
  .purchase-settlement-pending-section .purchase-break-row b{font-size:12px}
  .purchase-settlement-pending-section .purchase-break-row .purchase-cell-main b{font-size:13px}
}
@media (max-width:1250px){
  .purchase-settlement-pending-section .purchase-break-head{display:none}
  .purchase-settlement-pending-section .purchase-break-row{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px 10px;
    padding:10px 14px;
  }
  .purchase-settlement-pending-section .purchase-break-row .purchase-cell-main{grid-column:1/-1}
  .purchase-settlement-pending-section .purchase-break-row .purchase-breakage-field,
  .purchase-settlement-pending-section .purchase-break-row label:last-child{grid-column:span 2}
  .purchase-settlement-pending-section .purchase-break-row>div:not(.purchase-cell-main)>span,
  .purchase-settlement-pending-section .purchase-break-row>label>span{
    display:block;
    font-size:9.5px;
    line-height:1.1;
    margin-bottom:2px;
  }
  .purchase-settlement-pending-section .purchase-break-row>div,
  .purchase-settlement-pending-section .purchase-break-row>label{
    justify-content:flex-end;
  }
}
@media (max-width:800px){
  .purchase-settlement-pending-section .purchase-settlement-card .panel-head{
    padding:10px 12px 8px;
  }
  .purchase-settlement-pending-section .purchase-break-row{
    grid-template-columns:1fr 1fr;
    padding:9px 12px;
  }
  .purchase-settlement-pending-section .purchase-break-row .purchase-breakage-field,
  .purchase-settlement-pending-section .purchase-break-row label:last-child{grid-column:1/-1}
}
@media (max-width:520px){
  .purchase-settlement-pending-section .purchase-settlement-card .panel-head{
    align-items:flex-start;
    gap:8px;
  }
  .purchase-settlement-pending-section .purchase-pending-top-action{
    min-height:32px;
    height:32px;
    font-size:11px;
  }
  .purchase-settlement-pending-section .purchase-break-row{
    grid-template-columns:1fr;
  }
  .purchase-settlement-pending-section .purchase-break-row .purchase-cell-main,
  .purchase-settlement-pending-section .purchase-break-row .purchase-breakage-field,
  .purchase-settlement-pending-section .purchase-break-row label:last-child{grid-column:auto}
}


/* 0.0.72 — feedback visual ao clicar em botões */
button,
.btn,
[role="button"]{
  transition:transform .12s ease,box-shadow .18s ease,filter .18s ease,background-color .18s ease,border-color .18s ease,color .18s ease,opacity .18s ease;
}
button:active:not(:disabled),
.btn:active:not(:disabled),
[role="button"]:active:not(:disabled){
  transform:translateY(1px) scale(.985);
}
.btn-click-feedback{
  animation:btnClickPulse .24s ease;
}
@keyframes btnClickPulse{
  0%{transform:scale(1);filter:brightness(1)}
  45%{transform:scale(.975);filter:brightness(.96)}
  100%{transform:scale(1);filter:brightness(1)}
}

/* 0.0.73 — Compras: controle operacional por unidade e área de Sobra */
.purchase-proto-columns.purchase-proto-columns-control,
.purchase-proto-row.purchase-proto-row-control{
  grid-template-columns:minmax(210px,1.8fr) 86px 148px 108px minmax(180px,1.2fr) 34px;
  gap:10px;
}
.purchase-proto-columns.purchase-proto-columns-control span:nth-child(2),
.purchase-proto-columns.purchase-proto-columns-control span:nth-child(3),
.purchase-proto-columns.purchase-proto-columns-control span:nth-child(4){text-align:left}
.purchase-proto-row-control .purchase-control-unit,
.purchase-proto-row-control .purchase-production-mode{font-weight:800;color:var(--green-800)}
.purchase-tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:5px;border-radius:999px;background:#fff;color:#0b6b36;font-size:10px;font-weight:900}
.purchase-main-tab:not(.active) .purchase-tab-count{background:var(--green-100);color:var(--green-800)}

.leftover-filter-card{margin-bottom:14px}
.leftover-filter-card .panel-head{align-items:flex-start}
.leftover-filter-grid{display:grid;grid-template-columns:minmax(180px,1.5fr) 132px 132px 150px 110px 142px minmax(160px,1fr) auto;gap:10px;align-items:end}
.leftover-filter-grid label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:10px;font-weight:900;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}
.leftover-filter-grid input,.leftover-filter-grid select{height:40px;width:100%;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);padding:0 11px;font-size:12px;outline:none}
.leftover-filter-grid input:focus,.leftover-filter-grid select:focus{border-color:#7cc087;box-shadow:0 0 0 3px rgba(55,166,91,.1)}
.leftover-toggle{height:40px!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel);text-transform:none!important;letter-spacing:0!important;font-size:11px!important}
.leftover-toggle input{width:16px!important;height:16px!important;flex:0 0 auto;padding:0}
.leftover-kpis{margin-bottom:14px}
.leftover-table-card{padding:0;overflow:hidden}
.leftover-table{min-width:1160px}
.leftover-table th{white-space:nowrap;font-size:10px}
.leftover-table td{vertical-align:middle;font-size:11.5px}
.leftover-table td:nth-child(2){min-width:170px}
.leftover-table td:nth-child(5),.leftover-table td:nth-child(6),.leftover-table td:nth-child(7),.leftover-table td:nth-child(8){font-variant-numeric:tabular-nums;white-space:nowrap}
.leftover-table td.neg{color:#b42318;font-weight:800}
.leftover-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:6px;min-width:190px}
.leftover-actions .btn{min-height:34px;padding:0 10px;border-radius:10px;font-size:10.5px;white-space:nowrap}
.leftover-history-list{display:grid;gap:10px}
.leftover-history-list article{display:grid;grid-template-columns:minmax(90px,.7fr) auto;gap:6px 12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2,#fbfdfb)}
.leftover-history-list article b{color:var(--green-800);font-size:11px}.leftover-history-list article time{justify-self:end;color:var(--muted);font-size:10px}.leftover-history-list article span,.leftover-history-list article small{grid-column:1/-1}.leftover-history-list article span{font-weight:800}.leftover-history-list article small{color:var(--muted)}

.purchase-toast{position:sticky;top:10px;z-index:40;display:flex;align-items:center;gap:12px;margin:0 0 14px;padding:12px 14px;border:1px solid #cce3d3;border-radius:14px;background:#f7fcf8;box-shadow:0 14px 34px rgba(13,76,36,.10)}
.purchase-toast>div{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}.purchase-toast b{font-size:12px;color:var(--green-900)}.purchase-toast span{font-size:11px;color:#526359}.purchase-toast-close{width:30px;height:30px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:18px;cursor:pointer}.purchase-toast-close:hover{background:var(--green-50);color:var(--green-800)}

@media(max-width:1180px){
  .purchase-proto-columns.purchase-proto-columns-control{display:none}
  .purchase-proto-row.purchase-proto-row-control{grid-template-columns:minmax(0,1.6fr) 90px 140px 110px minmax(0,1.2fr) 36px;align-items:end}
  .purchase-proto-row.purchase-proto-row-control label>span{display:block}
  .leftover-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .leftover-filter-grid>label:first-child{grid-column:span 2}
}
@media(max-width:760px){
  .purchase-proto-row.purchase-proto-row-control{grid-template-columns:1fr 1fr}
  .purchase-proto-row.purchase-proto-row-control .purchase-proto-product,
  .purchase-proto-row.purchase-proto-row-control .purchase-proto-obs{grid-column:1/-1}
  .leftover-filter-grid{grid-template-columns:1fr 1fr}
  .leftover-filter-grid>label:first-child{grid-column:1/-1}
  .leftover-filter-grid .btn{width:100%;min-height:44px}
  .purchase-toast{top:6px;align-items:flex-start;flex-wrap:wrap}.purchase-toast>div{min-width:calc(100% - 42px)}
}
@media(max-width:480px){
  .purchase-proto-row.purchase-proto-row-control,.leftover-filter-grid{grid-template-columns:1fr}
  .purchase-proto-row.purchase-proto-row-control .purchase-proto-product,
  .purchase-proto-row.purchase-proto-row-control .purchase-proto-obs,
  .leftover-filter-grid>label:first-child{grid-column:auto}
}
:root[data-theme="dark"] .purchase-toast{background:rgba(26,70,40,.92);border-color:rgba(93,179,119,.28)}
:root[data-theme="dark"] .purchase-toast b{color:#d8f5e1}:root[data-theme="dark"] .purchase-toast span{color:#b7c8bd}


/* 0.0.73 — Completar compra com unidade operacional explícita. */
.purchase-completion-head,.purchase-completion-row{grid-template-columns:minmax(180px,1.35fr) 92px 110px 118px minmax(150px,.95fr) minmax(210px,1.15fr) minmax(150px,.9fr)!important}
.purchase-completion-row .purchase-complete-control{font-weight:800;color:var(--green-800)}
@media(max-width:1250px){.purchase-completion-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}.purchase-price-field{grid-column:auto}}
@media(max-width:800px){.purchase-completion-row{grid-template-columns:1fr 1fr!important}.purchase-cell-main,.purchase-price-field{grid-column:1/-1}}
@media(max-width:520px){.purchase-completion-row{grid-template-columns:1fr!important}.purchase-cell-main,.purchase-price-field{grid-column:auto}}

/* 0.0.73 — editor de compra alinhado às regras de Controle e Etapas. */
.purchase-saved-edit-row{grid-template-columns:minmax(160px,1.25fr) 110px 82px 118px 104px 104px minmax(145px,.95fr) 105px minmax(150px,1fr)!important}
@media(max-width:1180px){.purchase-saved-edit-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){.purchase-saved-edit-row{grid-template-columns:1fr 1fr!important}.purchase-saved-edit-row label:first-child,.purchase-saved-edit-row label:last-child{grid-column:1/-1}}
@media(max-width:430px){.purchase-saved-edit-row{grid-template-columns:1fr!important}.purchase-saved-edit-row label:first-child,.purchase-saved-edit-row label:last-child{grid-column:auto}}


/* 0.0.74 — Sobra: ajuste exclusivo de espaçamentos, sem mudança visual/funcional. */
.leftover-filter-card{margin-bottom:18px}
.leftover-filter-card .panel-head{gap:20px;margin-bottom:18px}
.leftover-filter-grid{
  grid-template-columns:minmax(190px,1.45fr) 140px 140px 155px 118px 150px minmax(175px,1fr) 132px;
  column-gap:12px;
  row-gap:12px;
}
.leftover-filter-grid>.btn{min-width:132px;height:40px;padding-left:16px;padding-right:16px;white-space:nowrap}
.leftover-toggle{padding-left:12px;padding-right:12px!important}
.leftover-kpis{gap:12px;margin-bottom:18px}
.leftover-table-card{padding:10px 14px 8px}
.leftover-table-card .table-wrap{max-width:100%;overflow-x:auto;padding-bottom:4px}
.leftover-table{min-width:1260px}
.leftover-table th{padding-left:14px;padding-right:14px}
.leftover-table td{padding-left:14px;padding-right:14px}
.leftover-table th:first-child,.leftover-table td:first-child{padding-left:18px}
.leftover-table th:last-child,.leftover-table td:last-child{min-width:228px;padding-left:16px;padding-right:20px}
.leftover-actions{gap:8px;min-width:208px;flex-wrap:nowrap}
.leftover-actions .btn{padding-left:11px;padding-right:11px}

@media(max-width:1180px){
  .leftover-filter-grid{column-gap:12px;row-gap:12px}
  .leftover-table-card{padding-left:10px;padding-right:10px}
}
@media(max-width:760px){
  .leftover-filter-card .panel-head{gap:14px;margin-bottom:16px}
  .leftover-kpis{gap:10px;margin-bottom:16px}
  .leftover-table-card{padding:8px}
}

/* 0.0.224 — créditos no rodapé da barra lateral */
.sidebar .side-foot{
  left:16px!important;
  right:16px!important;
  bottom:14px!important;
  padding:0!important;
  color:#9fc6ac!important;
  font-size:10px!important;
  line-height:1.35!important;
}
.sidebar .side-copyright{
  padding:9px 4px 10px;
  border-top:1px solid rgba(255,255,255,.10);
  color:#9fc6ac;
}
.sidebar .side-credit{
  padding:8px 4px 0;
}
.sidebar .side-credit span{
  display:block;
  margin-bottom:3px;
  color:#7faf8c;
  font-size:8px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.sidebar .side-credit strong{
  display:block;
  color:#dceee1;
  font-size:10px;
  line-height:1.3;
  font-weight:800;
}
@media(max-width:1100px){
  .sidebar .side-foot{display:none!important}
}


/* acertos-only-0.0.87.css */
/* Produção Só Folhas 0.0.27 — Acertos pendentes ajustados para 100% de zoom */
.purchase-settlement-pending-section{
  width:100%;
  max-width:100%;
  overflow:hidden;
}
.purchase-settlement-pending-section .purchase-settlement-card{
  width:100%;
  max-width:100%;
  overflow:hidden;
}
.purchase-settlement-pending-section .purchase-break-head,
.purchase-settlement-pending-section .purchase-break-row{
  width:100%;
  box-sizing:border-box;
  grid-template-columns:
    minmax(170px,1.70fr)
    minmax(105px,.95fr)
    minmax(105px,.95fr)
    minmax(130px,1.18fr)
    minmax(118px,1.02fr)
    minmax(140px,1.12fr)
    minmax(95px,.86fr)
    minmax(100px,.90fr)
    minmax(110px,1fr);
  gap:6px;
}
.purchase-settlement-pending-section .purchase-break-head{
  padding:6px 12px 5px;
  font-size:9px;
  letter-spacing:.015em;
}
.purchase-settlement-pending-section .purchase-break-row{
  padding:8px 12px 9px;
}
.purchase-settlement-pending-section .purchase-break-row b{
  font-size:11.5px;
  line-height:1.15;
}
.purchase-settlement-pending-section .purchase-break-row .purchase-cell-main b{
  font-size:12.5px;
}
.purchase-settlement-pending-section .purchase-break-row .purchase-cell-main small{
  font-size:10px;
}
.purchase-settlement-pending-section .purchase-break-row input,
.purchase-settlement-pending-section .purchase-break-row select{
  min-width:0;
  min-height:34px;
  height:34px;
  padding:0 8px;
  font-size:11.5px;
}
.purchase-settlement-pending-section .purchase-break-row input::placeholder{
  font-size:10.5px;
}
.purchase-settlement-pending-section .purchase-breakage-field .purchase-breakage-input{
  grid-template-columns:minmax(0,1fr) 62px;
  gap:5px;
}
.purchase-settlement-pending-section .purchase-breakage-field .purchase-breakage-input select{
  width:62px;
  min-width:62px;
  padding:0 4px;
  font-size:11.5px;
}
.purchase-settlement-pending-section .purchase-break-row>div:nth-child(2) b,
.purchase-settlement-pending-section .purchase-break-row>div:nth-child(6) b,
.purchase-settlement-pending-section .purchase-break-row>div:nth-child(7) b,
.purchase-settlement-pending-section .purchase-break-row>div:nth-child(8) b{
  white-space:normal;
  overflow-wrap:anywhere;
}
.purchase-settlement-pending-section .purchase-settlement-card .panel-head{
  padding:9px 12px 7px;
}
.purchase-settlement-pending-section .purchase-settlement-card .panel-head h2{
  font-size:14px;
}
.purchase-settlement-pending-section .purchase-settlement-card .panel-head p{
  font-size:10.5px;
}
.purchase-settlement-pending-section .purchase-pending-top-action{
  min-height:32px;
  height:32px;
  padding:0 11px;
  font-size:11px;
}

/* Em larguras realmente menores, troca para cards responsivos antes de ocorrer qualquer corte. */
@media (max-width:1320px){
  .purchase-settlement-pending-section .purchase-break-head{display:none}
  .purchase-settlement-pending-section .purchase-break-row{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px 10px;
    padding:10px 12px;
  }
  .purchase-settlement-pending-section .purchase-break-row .purchase-cell-main{grid-column:1/-1}
  .purchase-settlement-pending-section .purchase-break-row .purchase-breakage-field,
  .purchase-settlement-pending-section .purchase-break-row label:last-child{grid-column:span 2}
  .purchase-settlement-pending-section .purchase-break-row>div:not(.purchase-cell-main)>span,
  .purchase-settlement-pending-section .purchase-break-row>label>span{
    display:block;
    font-size:9.5px;
    line-height:1.1;
    margin-bottom:2px;
  }
  .purchase-settlement-pending-section .purchase-break-row>div,
  .purchase-settlement-pending-section .purchase-break-row>label{justify-content:flex-end}
}
@media (max-width:800px){
  .purchase-settlement-pending-section .purchase-break-row{grid-template-columns:1fr 1fr}
  .purchase-settlement-pending-section .purchase-break-row .purchase-cell-main,
  .purchase-settlement-pending-section .purchase-break-row .purchase-breakage-field,
  .purchase-settlement-pending-section .purchase-break-row label:last-child{grid-column:1/-1}
}
@media (max-width:520px){
  .purchase-settlement-pending-section .purchase-break-row{grid-template-columns:1fr}
  .purchase-settlement-pending-section .purchase-break-row .purchase-cell-main,
  .purchase-settlement-pending-section .purchase-break-row .purchase-breakage-field,
  .purchase-settlement-pending-section .purchase-break-row label:last-child{grid-column:auto}
}

/* 0.0.31 — filtros da aba Acertos: maiores, alinhados e sem afetar outras telas */
.purchase-settlement-ledger-filters{
  padding:20px 22px;
}
.purchase-settlement-ledger-filters .panel-head{
  margin-bottom:18px;
}
.purchase-settlement-ledger-filters .panel-head h2{
  margin:0 0 6px;
}
.purchase-settlement-ledger-filters .panel-head p{
  margin:0;
  line-height:1.45;
}
.purchase-settlement-ledger-filters .purchase-settlement-filter-grid{
  display:grid;
  grid-template-columns:145px 145px minmax(190px,1.18fr) minmax(190px,1.18fr) minmax(155px,.9fr) minmax(155px,.9fr) 126px;
  gap:12px;
  align-items:end;
  width:100%;
}
.purchase-settlement-ledger-filters .purchase-settlement-filter-grid label{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
  font-size:11px;
  font-weight:800;
  color:var(--muted,#607066);
}
.purchase-settlement-ledger-filters .purchase-settlement-filter-grid input,
.purchase-settlement-ledger-filters .purchase-settlement-filter-grid select{
  width:100%;
  min-width:0;
  height:48px;
  min-height:48px;
  padding:0 13px;
  border-radius:12px;
  font-size:14px;
  font-weight:700;
  box-sizing:border-box;
}
.purchase-settlement-ledger-filters .purchase-settlement-filter-action{
  display:flex;
  align-items:flex-end;
  justify-content:stretch;
  min-height:48px;
}
.purchase-settlement-ledger-filters .purchase-settlement-filter-action .btn{
  width:100%;
  height:48px;
  min-height:48px;
  padding:0 12px;
  border-radius:12px;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}
@media (max-width:1380px){
  .purchase-settlement-ledger-filters .purchase-settlement-filter-grid{
    grid-template-columns:145px 145px repeat(2,minmax(190px,1fr)) repeat(2,minmax(155px,.85fr));
  }
  .purchase-settlement-ledger-filters .purchase-settlement-filter-action{
    grid-column:5 / 7;
    justify-self:end;
    width:126px;
  }
}
@media (max-width:1120px){
  .purchase-settlement-ledger-filters .purchase-settlement-filter-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .purchase-settlement-ledger-filters .purchase-settlement-filter-action{
    grid-column:auto;
    width:100%;
  }
}
@media (max-width:720px){
  .purchase-settlement-ledger-filters{padding:16px}
  .purchase-settlement-ledger-filters .purchase-settlement-filter-grid{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .purchase-settlement-ledger-filters .purchase-settlement-filter-action{
    grid-column:1 / -1;
  }
}
@media (max-width:480px){
  .purchase-settlement-ledger-filters .purchase-settlement-filter-grid{
    grid-template-columns:1fr;
  }
  .purchase-settlement-ledger-filters .purchase-settlement-filter-action{
    grid-column:auto;
  }
}

/* 0.0.57 — reorganização cirúrgica de Acertos pendentes.
   Agrupa por fornecedor > compra > itens sem alterar a lógica financeira. */
.purchase-pending-filter-card{
  margin-bottom:12px;
  padding:16px 18px;
}
.purchase-pending-filter-card .panel-head{
  margin-bottom:12px;
}
.purchase-pending-filter-card .panel-head h2{
  font-size:18px;
  margin:0 0 3px;
}
.purchase-pending-filter-card .panel-head p{
  font-size:11.5px;
  color:var(--muted,#65736a);
}
.purchase-pending-filter-card .purchase-settlement-filter-grid{
  grid-template-columns:138px 138px minmax(190px,1.05fr) minmax(220px,1.3fr) minmax(170px,.9fr) 118px;
  gap:10px;
}
.purchase-pending-filter-card .purchase-settlement-filter-grid input,
.purchase-pending-filter-card .purchase-settlement-filter-grid select,
.purchase-pending-filter-card .purchase-settlement-filter-action .btn{
  height:40px;
  min-height:40px;
  border-radius:10px;
  font-size:12px;
}
.purchase-pending-filter-card .purchase-settlement-filter-grid label{
  gap:5px;
  font-size:10px;
}
.purchase-pending-break-filter .purchase-pending-switch{
  height:40px;
  border:1px solid var(--border,#dce5df);
  border-radius:10px;
  padding:0 10px;
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--panel,#fff);
  color:var(--text,#10221a);
  font-size:11px;
  font-weight:700;
}
.purchase-pending-break-filter .purchase-pending-switch input{
  width:16px !important;
  height:16px !important;
  min-height:16px !important;
  margin:0;
  accent-color:var(--green-700,#08783f);
}
.purchase-pending-kpis{
  grid-template-columns:repeat(5,minmax(0,1fr));
  margin:0 0 14px;
}
.purchase-pending-kpis>div{
  min-height:66px;
}
.purchase-pending-kpis span{
  font-size:9.5px;
}
.purchase-pending-kpis strong{
  font-size:17px;
}

.purchase-settlement-pending-section{
  display:grid;
  gap:12px;
  overflow:visible;
  margin-bottom:16px;
}
.purchase-pending-supplier{
  border:1px solid var(--border,#dfe8e2);
  border-radius:15px;
  background:var(--panel,#fff);
  overflow:hidden;
}
.purchase-pending-supplier>summary,
.purchase-pending-purchase>summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
}
.purchase-pending-supplier>summary::-webkit-details-marker,
.purchase-pending-purchase>summary::-webkit-details-marker{
  display:none;
}
.purchase-pending-supplier>summary{
  min-height:68px;
  padding:12px 16px;
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  gap:16px;
  align-items:center;
  background:#fbfdfb;
  border-bottom:1px solid transparent;
}
.purchase-pending-supplier[open]>summary{
  border-bottom-color:var(--border,#e3eae5);
}
.purchase-pending-supplier>summary::after{
  content:'⌄';
  grid-column:2;
  grid-row:1;
  justify-self:end;
  align-self:start;
  color:var(--muted,#68776f);
  font-size:16px;
  transform:rotate(-90deg);
  transition:transform .15s ease;
}
.purchase-pending-supplier[open]>summary::after{
  transform:rotate(0deg);
}
.purchase-supplier-title{
  min-width:0;
  padding-right:18px;
}
.purchase-supplier-title b{
  display:block;
  color:var(--text,#0f2118);
  font-size:14px;
  font-weight:800;
  line-height:1.2;
}
.purchase-supplier-title span{
  display:block;
  margin-top:3px;
  color:var(--muted,#68766e);
  font-size:10.5px;
  font-weight:600;
}
.purchase-supplier-summary-metrics{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:18px;
  padding-right:28px;
  white-space:nowrap;
}
.purchase-supplier-summary-metrics span{
  display:grid;
  gap:2px;
  color:var(--muted,#68766e);
  font-size:9px;
  font-weight:700;
}
.purchase-supplier-summary-metrics b{
  color:var(--text,#12251b);
  font-size:11.5px;
  font-weight:800;
}
.purchase-supplier-summary-metrics span:last-child b{
  color:var(--green-800,#065b34);
  font-size:12.5px;
}
.purchase-supplier-purchases{
  padding:10px 12px 12px;
  display:grid;
  gap:8px;
}

.purchase-pending-purchase{
  border:1px solid #e7ede9;
  border-radius:11px;
  background:#fff;
  overflow:hidden;
}
.purchase-pending-purchase>summary{
  min-height:52px;
  padding:8px 12px;
  display:grid;
  grid-template-columns:minmax(190px,.85fr) minmax(330px,1.3fr) auto;
  gap:12px;
  align-items:center;
  background:#fff;
}
.purchase-pending-purchase[open]>summary{
  background:#f8fbf9;
  border-bottom:1px solid #e8eee9;
}
.purchase-pending-purchase>summary::before{
  content:'›';
  color:var(--green-700,#0b7b45);
  font-size:18px;
  font-weight:800;
  margin-right:2px;
  grid-column:1;
  grid-row:1;
  position:absolute;
}
.purchase-purchase-ident{
  min-width:0;
  padding-left:18px;
}
.purchase-purchase-ident b{
  display:block;
  font-size:11.5px;
  font-weight:800;
  color:var(--text,#10221a);
}
.purchase-purchase-ident span{
  display:block;
  margin-top:2px;
  font-size:9.5px;
  color:var(--muted,#6a7870);
}
.purchase-purchase-summary{
  display:flex;
  justify-content:flex-end;
  gap:16px;
  white-space:nowrap;
}
.purchase-purchase-summary span{
  color:var(--muted,#6a7870);
  font-size:9px;
  font-weight:700;
}
.purchase-purchase-summary b{
  margin-left:4px;
  color:var(--text,#12251b);
  font-size:10.5px;
  font-weight:800;
}
.purchase-purchase-summary span:last-child b{
  color:var(--green-800,#065b34);
}
.purchase-pending-purchase .purchase-pending-top-action,
.purchase-pending-purchase .tag{
  justify-self:end;
}
.purchase-purchase-body{
  overflow-x:auto;
  scrollbar-width:thin;
}

.purchase-settlement-pending-section .purchase-break-head,
.purchase-settlement-pending-section .purchase-break-row{
  width:100%;
  min-width:920px;
  display:grid !important;
  grid-template-columns:minmax(210px,1.65fr) minmax(135px,1fr) minmax(110px,.72fr) minmax(105px,.7fr) minmax(115px,.78fr) minmax(125px,.82fr) 46px !important;
  gap:0 !important;
  box-sizing:border-box;
}
.purchase-settlement-pending-section .purchase-break-head{
  padding:7px 10px !important;
  background:#f6faf7;
  border-bottom:1px solid #e4ece6;
  color:#496257;
  font-size:9px !important;
  font-weight:800;
  text-transform:uppercase;
}
.purchase-settlement-pending-section .purchase-break-head>span{
  padding:0 8px;
  display:flex;
  align-items:center;
}
.purchase-settlement-pending-section .purchase-break-head>span:nth-child(n+3){
  justify-content:center;
  text-align:center;
}
.purchase-settlement-pending-section .purchase-break-row{
  position:relative;
  padding:0 !important;
  border-bottom:1px solid #ebf0ed;
  background:#fff;
  transition:background .15s ease;
}
.purchase-settlement-pending-section .purchase-break-row:last-child{
  border-bottom:0;
}
.purchase-settlement-pending-section .purchase-break-row:hover{
  background:#f9fcfa;
}
.purchase-settlement-pending-section .purchase-break-row.is-search-match{
  background:#f7fbf8;
}
.purchase-settlement-pending-section .purchase-break-row.is-edited{
  box-shadow:inset 3px 0 0 #5b9fd5;
  background:#f8fbfd;
}
.purchase-settlement-pending-section .purchase-break-row>div,
.purchase-settlement-pending-section .purchase-break-row>label{
  min-width:0;
  min-height:54px;
  padding:8px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
  border-right:1px solid #edf1ee;
}
.purchase-settlement-pending-section .purchase-break-row>.purchase-item-actions-cell{
  border-right:0;
  align-items:center;
}
.purchase-settlement-pending-section .purchase-break-row .purchase-cell-main b{
  font-size:12px;
  font-weight:800;
  color:var(--text,#10221a);
  line-height:1.18;
}
.purchase-settlement-pending-section .purchase-break-row .purchase-cell-main small,
.purchase-price-cell small{
  font-size:9.5px;
  color:var(--muted,#6f7d75);
  font-weight:600;
  line-height:1.25;
}
.purchase-price-cell b{
  font-size:11px;
  font-weight:800;
  color:var(--text,#10221a);
}
.purchase-break-row>label>span,
.purchase-value-cell>span{
  display:none !important;
}
.purchase-break-row input{
  height:34px !important;
  min-height:34px !important;
  border-radius:9px !important;
  font-size:11.5px !important;
  font-weight:700;
  text-align:center;
}
.purchase-breakage-readonly{
  display:flex;
  min-height:34px;
  align-items:center;
  justify-content:center;
  color:#273d31;
  font-size:11.5px;
  font-weight:800;
}
.purchase-value-cell{
  align-items:flex-end;
  text-align:right;
}
.purchase-value-cell b{
  font-size:11.5px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
.purchase-final-value-cell b{
  color:var(--green-800,#065b34);
  font-size:12.5px;
}
.purchase-item-actions{
  position:relative;
}
.purchase-item-actions>summary{
  list-style:none;
  width:32px;
  height:32px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:#617168;
  font-weight:800;
  letter-spacing:1px;
}
.purchase-item-actions>summary::-webkit-details-marker{display:none}
.purchase-item-actions>summary:hover,
.purchase-item-actions[open]>summary{
  background:#edf6f0;
  color:#08733f;
}
.purchase-item-actions>summary i{
  position:absolute;
  width:6px;
  height:6px;
  border-radius:50%;
  background:#0b8a4a;
  right:2px;
  top:2px;
}
.purchase-item-actions-menu{
  position:absolute;
  z-index:30;
  right:0;
  top:36px;
  width:190px;
  padding:5px;
  border:1px solid #dfe8e2;
  border-radius:10px;
  background:#fff;
  box-shadow:0 12px 28px rgba(12,36,23,.14);
}
.purchase-item-actions-menu button{
  width:100%;
  border:0;
  background:transparent;
  border-radius:7px;
  padding:8px 9px;
  text-align:left;
  color:#21362a;
  font-size:10.5px;
  font-weight:700;
  cursor:pointer;
}
.purchase-item-actions-menu button:hover{
  background:#f2f8f4;
}

.purchase-settlement-pending-section .purchase-break-row>.purchase-item-extra{
  grid-column:1/-1;
  min-height:0;
  padding:0 !important;
  border-right:0;
  display:none;
  grid-template-columns:minmax(260px,1.4fr) minmax(240px,1fr) minmax(160px,.65fr);
  gap:10px;
  background:#f8fbf9;
  border-top:1px dashed #dfe8e2;
}
.purchase-item-extra.has-required-reason,
.purchase-item-extra.is-force-open{
  display:grid !important;
  padding:10px 12px !important;
}
.purchase-item-extra:not(.is-force-open) .purchase-note-wrap,
.purchase-item-extra:not(.is-force-open) .purchase-origin-wrap{
  display:none !important;
}
.purchase-item-extra:not(.has-required-reason) .purchase-reason-wrap{
  display:none !important;
}
.purchase-item-extra label,
.purchase-origin-wrap{
  min-width:0;
}
.purchase-item-extra label span,
.purchase-origin-wrap span{
  display:block;
  margin-bottom:4px;
  color:#5f7067;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}
.purchase-item-extra input{
  width:100%;
  text-align:left !important;
}
.purchase-origin-wrap{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:5px 8px;
  border-radius:9px;
}
.purchase-origin-wrap.is-highlighted{
  background:#edf6f0;
}
.purchase-origin-wrap b{
  font-size:11px;
  color:#193326;
}
.purchase-origin-wrap small{
  color:#718078;
  font-size:9.5px;
  margin-top:2px;
}

.purchase-settlement-box{
  margin:10px 12px 12px;
  border-radius:10px;
}
.purchase-ledger-details{
  margin-top:16px;
}
.purchase-ledger-details>summary{
  cursor:pointer;
  color:#486257;
  font-size:11px;
  font-weight:800;
  padding:10px 2px;
}
.purchase-ledger-details .purchase-settlement-ledger{
  margin-top:6px;
}

@media(max-width:1260px){
  .purchase-pending-filter-card .purchase-settlement-filter-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .purchase-pending-kpis{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .purchase-pending-purchase>summary{
    grid-template-columns:minmax(180px,.8fr) minmax(300px,1fr) auto;
  }
}
@media(max-width:900px){
  .purchase-pending-filter-card .purchase-settlement-filter-grid{
    grid-template-columns:1fr 1fr;
  }
  .purchase-pending-kpis{
    grid-template-columns:1fr 1fr;
  }
  .purchase-pending-supplier>summary{
    grid-template-columns:1fr;
  }
  .purchase-pending-supplier>summary::after{
    grid-column:1;
    justify-self:end;
  }
  .purchase-supplier-summary-metrics{
    justify-content:flex-start;
    padding-right:0;
    flex-wrap:wrap;
  }
  .purchase-pending-purchase>summary{
    grid-template-columns:1fr auto;
  }
  .purchase-purchase-summary{
    grid-column:1/-1;
    justify-content:flex-start;
    flex-wrap:wrap;
  }
  .purchase-pending-purchase .purchase-pending-top-action,
  .purchase-pending-purchase .tag{
    grid-column:2;
    grid-row:1;
  }
}
@media(max-width:620px){
  .purchase-pending-filter-card .purchase-settlement-filter-grid,
  .purchase-pending-kpis{
    grid-template-columns:1fr;
  }
  .purchase-supplier-summary-metrics,
  .purchase-purchase-summary{
    gap:10px;
  }
  .purchase-supplier-purchases{
    padding:8px;
  }
  .purchase-pending-purchase>summary{
    grid-template-columns:1fr;
  }
  .purchase-pending-purchase .purchase-pending-top-action,
  .purchase-pending-purchase .tag{
    grid-column:1;
    grid-row:auto;
    justify-self:start;
  }
  .purchase-settlement-pending-section .purchase-break-head,
  .purchase-settlement-pending-section .purchase-break-row{
    min-width:880px;
  }
}

:root[data-theme="dark"] .purchase-pending-supplier,
:root[data-theme="dark"] .purchase-pending-purchase,
:root[data-theme="dark"] .purchase-item-actions-menu{
  background:var(--panel);
  border-color:var(--border);
}
:root[data-theme="dark"] .purchase-pending-supplier>summary,
:root[data-theme="dark"] .purchase-pending-purchase[open]>summary,
:root[data-theme="dark"] .purchase-break-head,
:root[data-theme="dark"] .purchase-item-extra{
  background:var(--surface-2,rgba(255,255,255,.035)) !important;
}
:root[data-theme="dark"] .purchase-settlement-pending-section .purchase-break-row{
  background:var(--panel);
}
.purchase-pending-purchase>summary{position:relative}
.purchase-pending-purchase>summary::before{left:12px;top:50%;transform:translateY(-50%)}


/* 0.0.85 — Acertos: distribuição espacial real e leitura compacta. */
@media (min-width: 1101px){
  .purchase-pending-supplier>summary{
    min-height:56px;
    padding:10px 14px;
    grid-template-columns:minmax(170px,250px) minmax(420px,1fr) 32px;
    grid-template-rows:1fr;
    gap:18px;
  }
  .purchase-pending-supplier>summary::after{
    grid-column:3;
    grid-row:1;
    justify-self:center;
    align-self:center;
    margin:0;
  }
  .purchase-supplier-title{grid-column:1;grid-row:1;padding-right:0}
  .purchase-supplier-summary-metrics{
    grid-column:2;
    grid-row:1;
    justify-content:flex-start;
    gap:30px;
    padding-right:0;
  }
  .purchase-supplier-summary-metrics span{min-width:max-content}

  .purchase-pending-purchase>summary{
    min-height:48px;
    padding:7px 12px;
    grid-template-columns:minmax(190px,270px) minmax(430px,1fr) auto;
    gap:18px;
  }
  .purchase-purchase-summary{justify-content:flex-start;gap:26px}

  .purchase-settlement-pending-section .purchase-break-head,
  .purchase-settlement-pending-section .purchase-break-row{
    min-width:0;
    grid-template-columns:minmax(235px,1.35fr) 135px 155px 125px 145px 155px 50px !important;
  }
  .purchase-settlement-pending-section .purchase-break-row>div,
  .purchase-settlement-pending-section .purchase-break-row>label{
    min-height:52px;
    padding:7px 10px;
  }
  .purchase-settlement-pending-section .purchase-breakage-field{align-items:stretch}
  .purchase-breakage-readonly{width:100%;min-height:34px;border-radius:8px;background:#f7faf8;border:1px solid #e4ebe6}

  .purchase-settlement-pending-section .purchase-settlement-box{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px 16px;
    align-items:end;
    padding:12px;
  }
  .purchase-settlement-pending-section .purchase-settlement-summary{
    grid-column:1/-1;
    grid-template-columns:repeat(3,minmax(190px,260px));
    justify-content:start;
    gap:10px;
  }
  .purchase-settlement-pending-section .purchase-settlement-summary>div{min-width:0}
  .purchase-settlement-pending-section .purchase-settlement-fields{
    grid-column:1;
    grid-row:auto;
    grid-template-columns:170px minmax(280px,520px);
    justify-content:start;
    margin-top:0;
  }
  .purchase-settlement-pending-section .purchase-settlement-box .purchase-action-line{
    grid-column:2;
    align-self:end;
    justify-self:end;
    margin:0;
    padding:0;
    border-top:0;
  }
  .purchase-settlement-pending-section .purchase-settlement-box .purchase-action-line .btn{min-width:150px}
}

@media (max-width:1100px){
  .purchase-pending-supplier>summary{grid-template-columns:minmax(0,1fr) 28px;grid-template-rows:auto auto}
  .purchase-supplier-title{grid-column:1;grid-row:1}
  .purchase-supplier-summary-metrics{grid-column:1/-1;grid-row:2;justify-content:flex-start;padding-right:0;flex-wrap:wrap}
  .purchase-pending-supplier>summary::after{grid-column:2;grid-row:1;align-self:center}
  .purchase-settlement-pending-section .purchase-settlement-box{display:block}
}

@media (max-width:700px){
  .purchase-supplier-summary-metrics{gap:12px 18px}
  .purchase-purchase-summary{justify-content:flex-start;flex-wrap:wrap;gap:8px 14px}
  .purchase-settlement-pending-section .purchase-settlement-summary{grid-template-columns:1fr}
  .purchase-settlement-pending-section .purchase-settlement-fields{grid-template-columns:1fr}
}

/* 0.0.86 — Acertos: hierarquia visual, quebra visível e distribuição proporcional. */
.purchase-pending-filter-card{
  padding:18px 20px 16px !important;
}
.purchase-pending-filter-card .panel-head{
  margin-bottom:14px !important;
}
.purchase-pending-filter-card .purchase-settlement-filter-grid{
  display:grid !important;
  grid-template-columns:155px 155px minmax(220px,260px) minmax(250px,1fr) 200px 132px !important;
  gap:12px !important;
  align-items:end !important;
}
.purchase-pending-filter-card .purchase-settlement-filter-grid>label,
.purchase-pending-filter-card .purchase-settlement-filter-action{
  min-width:0 !important;
  margin:0 !important;
}
.purchase-pending-filter-card .purchase-settlement-filter-grid input,
.purchase-pending-filter-card .purchase-settlement-filter-grid select,
.purchase-pending-filter-card .purchase-settlement-filter-action .btn,
.purchase-pending-switch{
  height:46px !important;
  min-height:46px !important;
  box-sizing:border-box !important;
}
.purchase-pending-filter-card .purchase-settlement-filter-action .btn{
  width:100% !important;
  padding-inline:12px !important;
}
.purchase-pending-kpis{
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:12px !important;
  margin:14px 0 !important;
}
.purchase-pending-kpis>div{
  min-height:76px !important;
  padding:13px 16px !important;
}

/* Fornecedor: nome de um lado, resumo útil do outro. */
.purchase-pending-supplier{
  border:1px solid #dfe8e2 !important;
  border-radius:14px !important;
  overflow:visible !important;
  background:#fff !important;
}
.purchase-pending-supplier>summary{
  min-height:58px !important;
  padding:10px 14px 10px 16px !important;
  grid-template-columns:minmax(220px,1fr) auto 28px !important;
  gap:18px !important;
  align-items:center !important;
}
.purchase-supplier-title{
  min-width:0 !important;
  padding:0 !important;
}
.purchase-supplier-summary-metrics{
  justify-content:flex-end !important;
  gap:22px !important;
  padding:0 !important;
}
.purchase-supplier-summary-metrics span:nth-child(2){display:none !important;}
.purchase-supplier-summary-metrics span{
  min-width:max-content !important;
}

/* Compra: não repetir três vezes os mesmos números. */
.purchase-pending-purchase{
  margin:10px 12px 12px !important;
  border:1px solid #e4ebe6 !important;
  border-radius:12px !important;
  overflow:visible !important;
}
.purchase-pending-purchase>summary{
  min-height:52px !important;
  padding:8px 12px 8px 18px !important;
  grid-template-columns:minmax(230px,1fr) auto auto !important;
  gap:16px !important;
  align-items:center !important;
}
.purchase-purchase-summary{
  justify-content:flex-end !important;
  gap:0 !important;
}
.purchase-purchase-summary span:nth-child(1),
.purchase-purchase-summary span:nth-child(2){display:none !important;}
.purchase-purchase-summary span:last-child{
  display:flex !important;
  align-items:center !important;
  gap:5px !important;
  padding:7px 10px !important;
  border-radius:9px !important;
  background:#f2f8f4 !important;
  color:#486257 !important;
}

/* Linha do item: sete colunas claras, sem buracos. */
.purchase-settlement-pending-section .purchase-break-head,
.purchase-settlement-pending-section .purchase-break-row{
  min-width:0 !important;
  grid-template-columns:minmax(250px,1.55fr) minmax(125px,.78fr) minmax(140px,.86fr) minmax(125px,.76fr) minmax(145px,.88fr) minmax(155px,.94fr) 48px !important;
  gap:0 !important;
}
.purchase-settlement-pending-section .purchase-break-head{
  padding:8px 10px !important;
  font-size:9.5px !important;
}
.purchase-settlement-pending-section .purchase-break-row>div,
.purchase-settlement-pending-section .purchase-break-row>label{
  min-height:60px !important;
  padding:8px 10px !important;
}
.purchase-settlement-pending-section .purchase-break-row .purchase-cell-main b{
  font-size:12.5px !important;
}
.purchase-price-cell b,
.purchase-value-cell b{
  font-size:12px !important;
}
.purchase-final-value-cell b{
  font-size:13px !important;
}

/* A regra anterior escondia TODOS os spans do label, inclusive o valor readonly da quebra. */
.purchase-break-row>label>span:first-child:not(.purchase-breakage-readonly){
  display:none !important;
}
.purchase-breakage-field>.purchase-breakage-readonly{
  display:flex !important;
  width:100% !important;
  min-height:36px !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid #f0c9c9 !important;
  border-radius:9px !important;
  background:#fff7f7 !important;
  color:#b42318 !important;
  font-size:12px !important;
  font-weight:900 !important;
  font-variant-numeric:tabular-nums !important;
  box-sizing:border-box !important;
}
.purchase-breakage-field>.purchase-breakage-input{
  width:100% !important;
}

/* Fechamento financeiro: ocupar a largura disponível, sem um deserto branco no meio. */
.purchase-settlement-pending-section .purchase-settlement-box{
  margin:10px 12px 12px !important;
  padding:12px !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto !important;
  gap:10px 14px !important;
  align-items:end !important;
}
.purchase-settlement-pending-section .purchase-settlement-summary{
  grid-column:1/-1 !important;
  width:100% !important;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px !important;
}
.purchase-settlement-pending-section .purchase-settlement-summary>div{
  width:auto !important;
  min-width:0 !important;
  min-height:58px !important;
  padding:10px 12px !important;
  box-sizing:border-box !important;
}
.purchase-settlement-pending-section .purchase-settlement-fields{
  grid-column:1 !important;
  display:grid !important;
  grid-template-columns:190px minmax(260px,1fr) !important;
  gap:10px !important;
  margin:0 !important;
}
.purchase-settlement-pending-section .purchase-settlement-fields label{
  min-width:0 !important;
}
.purchase-settlement-pending-section .purchase-settlement-box .purchase-action-line{
  grid-column:2 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  align-self:end !important;
}
.purchase-settlement-pending-section .purchase-settlement-box .purchase-action-line .btn{
  min-width:170px !important;
  height:44px !important;
}

/* Menus não devem ser cortados pelo container da compra. */
.purchase-purchase-body,
.purchase-break-list{
  overflow:visible !important;
}
.purchase-item-actions-menu{
  z-index:80 !important;
}

@media(max-width:1250px){
  .purchase-pending-filter-card .purchase-settlement-filter-grid{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
  .purchase-pending-kpis{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
  .purchase-settlement-pending-section .purchase-break-head{display:none !important;}
  .purchase-settlement-pending-section .purchase-break-row{
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:8px !important;
    padding:10px !important;
  }
  .purchase-settlement-pending-section .purchase-break-row .purchase-cell-main{grid-column:1/-1 !important;}
  .purchase-break-row>label>span:first-child:not(.purchase-breakage-readonly),
  .purchase-value-cell>span{display:block !important;font-size:9px !important;color:#65756c !important;margin-bottom:2px !important;}
}
@media(max-width:800px){
  .purchase-pending-filter-card .purchase-settlement-filter-grid,
  .purchase-pending-kpis{grid-template-columns:1fr 1fr !important;}
  .purchase-pending-supplier>summary{grid-template-columns:1fr 26px !important;grid-template-rows:auto auto !important;}
  .purchase-supplier-summary-metrics{grid-column:1/-1 !important;justify-content:flex-start !important;flex-wrap:wrap !important;}
  .purchase-pending-purchase>summary{grid-template-columns:1fr auto !important;grid-template-rows:auto auto !important;}
  .purchase-purchase-summary{grid-column:1 !important;grid-row:2 !important;justify-content:flex-start !important;}
  .purchase-pending-purchase .tag,.purchase-pending-purchase .purchase-pending-top-action{grid-column:2 !important;grid-row:1/-1 !important;}
  .purchase-settlement-pending-section .purchase-break-row{grid-template-columns:1fr 1fr !important;}
  .purchase-settlement-pending-section .purchase-break-row .purchase-cell-main{grid-column:1/-1 !important;}
  .purchase-settlement-pending-section .purchase-settlement-box{display:block !important;}
  .purchase-settlement-pending-section .purchase-settlement-summary{grid-template-columns:1fr !important;}
  .purchase-settlement-pending-section .purchase-settlement-fields{grid-template-columns:1fr !important;margin-top:10px !important;}
  .purchase-settlement-pending-section .purchase-settlement-box .purchase-action-line{margin-top:10px !important;}
  .purchase-settlement-pending-section .purchase-settlement-box .purchase-action-line .btn{width:100% !important;}
}
@media(max-width:520px){
  .purchase-pending-filter-card .purchase-settlement-filter-grid,
  .purchase-pending-kpis,
  .purchase-settlement-pending-section .purchase-break-row{grid-template-columns:1fr !important;}
}


/* 0.0.87 — quebra registrada só impacta o valor final quando aplicada manualmente */
.purchase-final-value-cell .purchase-breakage-apply-state{display:block;margin-top:3px;font-size:10px;line-height:1.2;font-weight:700;color:#8a6d1d;white-space:nowrap}
.purchase-final-value-cell .purchase-breakage-apply-state.is-applied{color:#08743c}
.purchase-item-actions-menu .purchase-breakage-apply-action{font-weight:800;color:#075f35}
.purchase-item-actions-menu .purchase-breakage-apply-action.is-applied{color:#9a3412}


/* conference-table-0.0.75.css */
/* Produção Só Folhas 0.0.47
   Escopo exclusivo: Compras > Conferência > conferência única.
   O arquivo herda o design system existente e não altera componentes globais. */

.conference-workspace-card{
  margin-bottom:16px;
  overflow:hidden;
}
.conference-card-head{
  margin-bottom:12px;
  gap:16px;
}
.conference-card-head p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:12px;
}

/* Informações compactas do lote */
.conference-lot-meta{
  display:grid;
  grid-template-columns:minmax(170px,1.35fr) minmax(145px,1fr) minmax(110px,.7fr) minmax(145px,1fr) minmax(72px,.45fr) minmax(150px,.95fr);
  gap:0;
  margin:0 0 12px;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:var(--green-50);
  overflow:hidden;
}
.conference-lot-meta>div{
  min-width:0;
  padding:10px 12px;
  border-right:1px solid var(--line);
}
.conference-lot-meta>div:last-child{border-right:0}
.conference-lot-meta span{
  display:block;
  margin-bottom:3px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
}
.conference-lot-meta b{
  display:block;
  overflow:hidden;
  color:var(--ink);
  font-size:12px;
  font-weight:800;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Tabs internas: somente uma produção visível por vez */
.conference-production-tabs{
  display:flex;
  align-items:center;
  gap:6px;
  width:max-content;
  max-width:100%;
  margin:0 0 12px;
  padding:5px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--panel);
}
.purchase-production-tab{
  min-height:40px;
  padding:0 18px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
  transition:background .15s,border-color .15s,color .15s,box-shadow .15s;
}
.purchase-production-tab:hover{
  background:var(--green-50);
  color:var(--green-800);
}
.purchase-production-tab.active{
  border-color:#cfe7d6;
  background:var(--green-100);
  color:var(--green-800);
  box-shadow:inset 0 0 0 1px rgba(22,101,52,.03);
}

.conference-production-content{min-width:0}
.conference-production-panel{
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:var(--panel);
  overflow:hidden;
}
.conference-production-panel.is-hidden{display:none}
.conference-production-panel.is-active{display:block}
.conference-production-heading{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 14px;
  border-bottom:1px solid var(--line);
  background:var(--panel);
}
.conference-production-heading>div:first-child{
  min-width:0;
  display:flex;
  align-items:baseline;
  gap:9px;
}
.conference-production-heading strong{
  color:var(--ink);
  font-size:16px;
  font-weight:800;
}
.conference-production-heading small{
  color:var(--muted);
  font-size:11px;
  font-weight:600;
}
.conference-legend{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
}
.conference-legend span{
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--muted);
  font-size:10px;
  font-weight:750;
  white-space:nowrap;
}
.conference-legend i{
  width:7px;
  height:7px;
  display:inline-block;
  border-radius:50%;
}
.conference-legend .editable-dot{background:var(--green-500)}
.conference-legend .automatic-dot{background:#a7b2ab}

/* Data grid operacional */
.conference-table-scroll{
  width:100%;
  max-width:100%;
  overflow-x:auto;
  overflow-y:visible;
  scrollbar-width:thin;
}
.conference-operation-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  color:var(--ink);
  font-size:12px;
  font-variant-numeric:tabular-nums;
}
.conference-table-p1{min-width:1080px}
.conference-table-p2{min-width:980px}

.conference-operation-table thead th{
  position:sticky;
  top:0;
  z-index:4;
  height:44px;
  padding:6px 5px;
  border-bottom:1px solid var(--line);
  background:var(--green-50);
  color:var(--green-900);
  font-size:10px;
  font-weight:850;
  line-height:1.15;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.015em;
  white-space:nowrap;
}
.conference-operation-table thead th small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:8.5px;
  font-weight:750;
  letter-spacing:0;
}
.conference-operation-table tbody td{
  min-width:0;
  height:46px;
  padding:5px 5px;
  border-bottom:1px solid var(--line);
  background:var(--panel);
  vertical-align:middle;
}
.conference-operation-table tbody tr:last-child td{border-bottom:0}
.conference-operation-table tbody tr:hover td{background:var(--green-50)}

/* 0.0.39 — densidade horizontal: todas as informações da Produção 1
   devem caber na primeira visão em desktop/notebook comum. */
.conference-operation-table th:nth-child(1),
.conference-operation-table td:nth-child(1){width:9.5%;min-width:100px;text-align:left}
.conference-operation-table th:nth-child(2),
.conference-operation-table td:nth-child(2){width:14%;min-width:145px;text-align:left}

.conference-table-p1 th:nth-child(3),.conference-table-p1 td:nth-child(3){width:6%;min-width:64px}
.conference-table-p1 th:nth-child(4),.conference-table-p1 td:nth-child(4){width:6.5%;min-width:68px}
.conference-table-p1 th:nth-child(5),.conference-table-p1 td:nth-child(5){width:7%;min-width:72px}
.conference-table-p1 th:nth-child(6),.conference-table-p1 td:nth-child(6){width:6%;min-width:64px}
.conference-table-p1 th:nth-child(7),.conference-table-p1 td:nth-child(7){width:6.5%;min-width:70px}
.conference-table-p1 th:nth-child(8),.conference-table-p1 td:nth-child(8){width:7%;min-width:72px}
.conference-table-p1 th:nth-child(9),.conference-table-p1 td:nth-child(9){width:7%;min-width:72px}
.conference-table-p1 th:nth-child(10),.conference-table-p1 td:nth-child(10){width:13%;min-width:128px}
.conference-table-p1 th:nth-child(11),.conference-table-p1 td:nth-child(11){width:8.5%;min-width:84px}
.conference-table-p1 th:nth-child(12),.conference-table-p1 td:nth-child(12){width:9%;min-width:86px}

.conference-table-p2 th:nth-child(3),.conference-table-p2 td:nth-child(3){width:8%;min-width:78px}
.conference-table-p2 th:nth-child(4),.conference-table-p2 td:nth-child(4){width:8%;min-width:78px}
.conference-table-p2 th:nth-child(5),.conference-table-p2 td:nth-child(5){width:8%;min-width:82px}
.conference-table-p2 th:nth-child(6),.conference-table-p2 td:nth-child(6){width:8%;min-width:78px}
.conference-table-p2 th:nth-child(7),.conference-table-p2 td:nth-child(7){width:8.5%;min-width:84px}
.conference-table-p2 th:nth-child(8),.conference-table-p2 td:nth-child(8){width:15%;min-width:132px}
.conference-table-p2 th:nth-child(9),.conference-table-p2 td:nth-child(9){width:10%;min-width:90px}
.conference-table-p2 th:nth-child(10),.conference-table-p2 td:nth-child(10){width:10%;min-width:90px}

/* Fornecedor + item fixos no desktop, com offsets compactos. */
.conference-operation-table thead th:nth-child(1){left:0;z-index:8}
.conference-operation-table tbody td:nth-child(1){position:sticky;left:0;z-index:2}
.conference-operation-table thead th:nth-child(2){left:100px;z-index:8}
.conference-operation-table tbody td:nth-child(2){position:sticky;left:100px;z-index:2;box-shadow:4px 0 6px rgba(10,35,20,.03)}
.conference-operation-table tbody tr:hover td:nth-child(1),
.conference-operation-table tbody tr:hover td:nth-child(2){background:var(--green-50)}

.conference-supplier-cell b{
  display:block;
  color:var(--ink);
  font-size:10.5px;
  font-weight:800;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.conference-item-cell b{
  display:block;
  color:var(--ink);
  font-size:11px;
  font-weight:850;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.conference-item-cell small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:9px;
  font-weight:700;
}
.conference-number-cell,
.conference-yield-cell{text-align:right}
.conference-status-cell{text-align:center}

/* Editável x automático */
.conference-auto-cell{
  background:var(--bg)!important;
  color:var(--muted);
  font-weight:700;
}
.conference-auto-value{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  color:var(--muted);
  font-weight:750;
  white-space:nowrap;
}
.conference-cell-input,
.conference-unit-select,
.conference-loss-type{
  width:100%;
  height:30px;
  margin:0;
  border:1px solid var(--line);
  border-radius:7px;
  background:var(--panel);
  color:var(--ink);
  box-shadow:none;
  outline:none;
  font-size:12px;
  font-weight:700;
  transition:border-color .15s,box-shadow .15s,background .15s;
}
.conference-cell-input{
  padding:0 5px;
  text-align:right;
  font-variant-numeric:tabular-nums;
}
.conference-cell-input::placeholder{color:var(--muted);opacity:.55}
.conference-unit-select,
.conference-loss-type{padding:0 7px}
.conference-cell-input:hover,
.conference-unit-select:hover,
.conference-loss-type:hover{border-color:#bfd1c4}
.conference-cell-input:focus,
.conference-unit-select:focus,
.conference-loss-type:focus{
  border-color:var(--green-500);
  box-shadow:0 0 0 3px rgba(55,166,91,.12);
}
.conference-cell-input:disabled,
.conference-unit-select:disabled,
.conference-loss-type:disabled{
  cursor:default;
  opacity:.72;
  background:var(--bg);
}

/* Perda / quebra: valor, unidade e classificação no mesmo bloco, sem criar coluna gigante. */
.conference-loss-editor{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(62px,.9fr);
  gap:4px;
  align-items:center;
}
.conference-loss-value{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(42px,1fr) 36px;
  gap:3px;
}
.conference-loss-value .conference-cell-input{min-width:0}
.conference-unit-select{min-width:0;text-align:center;padding:0 1px;font-size:9.5px}
.conference-loss-type{min-width:0;padding:0 3px;font-size:9px;font-weight:750}

/* Status discretos, sem pintar a linha inteira. */
.conference-status-pill{
  min-width:58px;
  min-height:21px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:3px 6px;
  border-radius:999px;
  background:#f1f4f2;
  color:var(--muted);
  font-size:10px;
  font-weight:850;
  line-height:1;
  white-space:nowrap;
}
.conference-status-pill.is-ok{background:var(--green-100);color:var(--green-700)}
.conference-status-pill.is-missing{background:var(--red-100);color:var(--red)}
.conference-status-pill.is-extra{background:var(--yellow-100);color:#946200}
.conference-status-pill.is-mixed{background:var(--orange-100);color:var(--orange)}
.purchase-diff-preview{font-weight:850}
.conference-p1-used,.conference-p2-used{font-weight:850;color:var(--ink)}

/* Erros de campo sem alert/modal */
.conference-operation-table td.has-error{background:var(--red-100)!important}
.conference-operation-table td.has-error .conference-cell-input,
.conference-operation-table td.has-error .conference-unit-select,
.conference-operation-table td.has-error .conference-loss-type{border-color:var(--red);box-shadow:0 0 0 2px rgba(209,74,74,.08)}
.conference-field-error{
  display:block;
  margin-top:4px;
  color:var(--red);
  font-size:9px;
  font-weight:750;
  line-height:1.2;
}
.conference-validation-box{
  display:none;
  margin-top:12px;
  padding:10px 12px;
  border:1px solid #f1c7c7;
  border-radius:12px;
  background:var(--red-100);
  color:var(--red);
  font-size:11px;
  line-height:1.45;
}
.conference-validation-box.is-visible{display:block}
.conference-validation-box b{display:block;margin-bottom:4px}
.conference-validation-box ul{margin:0;padding-left:18px}

/* Total integrado ao grid, com identidade do sistema e sem aparência de Excel. */
.conference-operation-table tfoot td{
  height:48px;
  padding:7px 5px;
  border-top:2px solid var(--green-600);
  background:var(--green-900);
  color:#fff;
  font-size:10.5px;
  font-weight:850;
  text-align:right;
  white-space:nowrap;
}
.conference-operation-table tfoot td:first-child{
  text-align:left;
  letter-spacing:.01em;
}
.conference-operation-table tfoot .conference-status-pill{vertical-align:middle}

/* Resumo consolidado: uma superfície compacta, não uma terceira planilha. */
.conference-lot-summary{
  margin-top:12px;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:var(--panel);
  overflow:hidden;
}
.conference-summary-head{
  min-height:46px;
  display:flex;
  align-items:center;
  padding:9px 13px;
  border-bottom:1px solid var(--line);
  background:var(--green-50);
}
.conference-summary-head strong{display:block;color:var(--ink);font-size:13px;font-weight:850}
.conference-summary-head small{display:block;margin-top:2px;color:var(--muted);font-size:10px;font-weight:600}
.conference-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.conference-summary-grid>div{
  min-width:0;
  padding:10px 12px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.conference-summary-grid>div:nth-child(4n){border-right:0}
.conference-summary-grid>div:nth-last-child(-n+4){border-bottom:0}
.conference-summary-grid span{display:block;color:var(--muted);font-size:9.5px;font-weight:750}
.conference-summary-grid strong{display:block;margin-top:3px;color:var(--ink);font-size:13px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.purchase-lot-actions{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:flex-end;
  gap:8px;
}
.purchase-lot-actions .btn{min-height:40px}

/* Tema escuro: usa os tokens globais já existentes. */
:root[data-theme="dark"] .conference-lot-meta,
:root[data-theme="dark"] .conference-operation-table thead th,
:root[data-theme="dark"] .conference-summary-head,
:root[data-theme="dark"] .conference-operation-table tbody tr:hover td{
  background:var(--green-50);
}
:root[data-theme="dark"] .conference-auto-cell{background:var(--bg)!important;color:var(--muted)}
:root[data-theme="dark"] .conference-status-pill.is-extra{color:var(--yellow)}

@media(max-width:1200px){
  .conference-lot-meta{grid-template-columns:repeat(3,minmax(0,1fr))}
  .conference-lot-meta>div:nth-child(3n){border-right:0}
  .conference-lot-meta>div:nth-child(-n+3){border-bottom:1px solid var(--line)}
  .conference-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .conference-summary-grid>div:nth-child(2n){border-right:0}
  .conference-summary-grid>div:nth-child(-n+6){border-bottom:1px solid var(--line)}
  .conference-summary-grid>div:nth-last-child(-n+2){border-bottom:0}
}

@media(max-width:800px){
  .conference-production-heading{align-items:flex-start;flex-direction:column;gap:5px}
  .conference-production-heading>div:first-child{align-items:flex-start;flex-direction:column;gap:2px}
  .conference-legend{gap:8px}
  .conference-operation-table tbody td{height:50px}
  .conference-cell-input,.conference-unit-select,.conference-loss-type{height:40px;font-size:13px}
  .conference-loss-type{font-size:11px}
  .purchase-lot-actions{flex-direction:column}
  .purchase-lot-actions .btn{width:100%;min-height:44px}
  /* No mobile, apenas Item permanece sticky para liberar espaço útil. */
  .conference-operation-table thead th:nth-child(1),
  .conference-operation-table tbody td:nth-child(1){position:static;left:auto;z-index:auto}
  .conference-operation-table thead th:nth-child(2){left:0;z-index:8}
  .conference-operation-table tbody td:nth-child(2){left:0;z-index:3;box-shadow:5px 0 8px rgba(10,35,20,.045)}
}

@media(max-width:560px){
  .conference-workspace-card{padding:12px}
  .conference-card-head{align-items:flex-start;flex-direction:column}
  .conference-lot-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  .conference-lot-meta>div{border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
  .conference-lot-meta>div:nth-child(2n){border-right:0}
  .conference-lot-meta>div:nth-last-child(-n+2){border-bottom:0}
  .conference-production-tabs{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .purchase-production-tab{width:100%;min-height:44px;padding:0 10px}
  .conference-legend{display:none}
  .conference-summary-grid{grid-template-columns:1fr 1fr}
  .conference-summary-grid>div{padding:9px 10px}
  .conference-table-p1{min-width:1550px}
  .conference-table-p2{min-width:1360px}
}

/* 0.0.38 — uma única área de conferência para todos os itens pendentes. */
.conference-global-workspace{margin-top:0}
.conference-global-meta{grid-template-columns:repeat(6,minmax(110px,1fr))}
@media (max-width:1100px){.conference-global-meta{grid-template-columns:repeat(3,minmax(130px,1fr))}.conference-global-meta>div:nth-child(3){border-right:0}.conference-global-meta>div:nth-child(-n+3){border-bottom:1px solid var(--line)}}
@media (max-width:700px){.conference-global-meta{grid-template-columns:repeat(2,minmax(120px,1fr))}.conference-global-meta>div:nth-child(3){border-right:1px solid var(--line)}.conference-global-meta>div:nth-child(even){border-right:0}.conference-global-meta>div:nth-child(-n+4){border-bottom:1px solid var(--line)}}


/* 0.0.39 — comportamento de largura revisado.
   Desktop/notebook >= 1180px: sem rolagem horizontal na Produção 1.
   Abaixo disso, preserva scroll horizontal funcional. */
@media (min-width:1180px){
  .conference-table-scroll{overflow-x:visible}
  .conference-table-p1,.conference-table-p2{min-width:0;width:100%}
}
@media (max-width:1179px) and (min-width:801px){
  .conference-table-p1{min-width:1080px}
  .conference-table-p2{min-width:980px}
}
@media(max-width:560px){
  .conference-table-p1{min-width:1080px}
  .conference-table-p2{min-width:980px}
}

@media (min-width:1180px){
  .conference-operation-table thead th:nth-child(1),
  .conference-operation-table tbody td:nth-child(1),
  .conference-operation-table thead th:nth-child(2),
  .conference-operation-table tbody td:nth-child(2){position:static;left:auto;box-shadow:none}
  .conference-operation-table th,
  .conference-operation-table td{min-width:0!important}
}

/* 0.0.40 — alinhamento e estabilidade de preenchimento.
   Ajustes locais da Conferência; nenhuma regra global do sistema é alterada. */
.conference-operation-table tbody td{
  padding:6px 6px;
  vertical-align:middle;
}
.conference-operation-table thead th{
  vertical-align:middle;
}

/* Distribuição horizontal revisada da Produção 1. */
.conference-table-p1 th:nth-child(1),.conference-table-p1 td:nth-child(1){width:9.5%;min-width:108px}
.conference-table-p1 th:nth-child(2),.conference-table-p1 td:nth-child(2){width:13.5%;min-width:150px}
.conference-table-p1 th:nth-child(3),.conference-table-p1 td:nth-child(3){width:6%;min-width:66px}
.conference-table-p1 th:nth-child(4),.conference-table-p1 td:nth-child(4){width:6.5%;min-width:72px}
.conference-table-p1 th:nth-child(5),.conference-table-p1 td:nth-child(5){width:6.5%;min-width:74px}
.conference-table-p1 th:nth-child(6),.conference-table-p1 td:nth-child(6){width:6%;min-width:68px}
.conference-table-p1 th:nth-child(7),.conference-table-p1 td:nth-child(7){width:6%;min-width:70px}
.conference-table-p1 th:nth-child(8),.conference-table-p1 td:nth-child(8){width:7%;min-width:76px}
.conference-table-p1 th:nth-child(9),.conference-table-p1 td:nth-child(9){width:7%;min-width:76px}
.conference-table-p1 th:nth-child(10),.conference-table-p1 td:nth-child(10){width:15%;min-width:170px}
.conference-table-p1 th:nth-child(11),.conference-table-p1 td:nth-child(11){width:8.5%;min-width:90px}
.conference-table-p1 th:nth-child(12),.conference-table-p1 td:nth-child(12){width:8.5%;min-width:90px}

/* Alinhamento visual consistente: texto à esquerda, operação numérica centralizada. */
.conference-operation-table th:nth-child(n+3),
.conference-operation-table td:nth-child(n+3),
.conference-number-cell,
.conference-yield-cell{
  text-align:center;
}
.conference-operation-table th:nth-child(1),
.conference-operation-table th:nth-child(2),
.conference-operation-table td:nth-child(1),
.conference-operation-table td:nth-child(2){text-align:left}

.conference-cell-input,
.conference-unit-select,
.conference-loss-type{
  min-width:0;
  max-width:100%;
  height:32px;
  line-height:1;
}
.conference-cell-input{
  padding:0 6px;
  text-align:center;
  white-space:nowrap;
}
.conference-edit-cell{overflow:visible}
.conference-auto-cell{white-space:nowrap}
.conference-p1-used,.conference-p2-used,.purchase-diff-preview{white-space:nowrap}

/* Perda / quebra: três controles alinhados, legíveis e sem recorte do valor. */
.conference-loss-editor{
  width:100%;
  display:grid;
  grid-template-columns:minmax(96px,1fr) minmax(84px,.95fr);
  gap:5px;
  align-items:center;
}
.conference-loss-value{
  width:100%;
  display:grid;
  grid-template-columns:minmax(52px,1fr) 40px;
  gap:4px;
  align-items:center;
}
.conference-loss-value .conference-cell-input{width:100%;padding:0 4px}
.conference-unit-select{width:40px;padding:0 2px;font-size:10px;text-align:center}
.conference-loss-type{width:100%;padding:0 5px;font-size:10px;font-weight:750}

/* Sem scroll no desktop: sticky não deve deslocar/encobrir as primeiras colunas. */
@media (min-width:1180px){
  .conference-operation-table thead th:nth-child(1),
  .conference-operation-table thead th:nth-child(2),
  .conference-operation-table tbody td:nth-child(1),
  .conference-operation-table tbody td:nth-child(2){
    position:static;
    left:auto;
    z-index:auto;
    box-shadow:none;
  }
}

/* Em telas que realmente precisam rolar, apenas ITEM permanece fixo.
   Evita offsets artificiais entre Fornecedor e Item. */
@media (max-width:1179px){
  .conference-operation-table thead th:nth-child(1),
  .conference-operation-table tbody td:nth-child(1){
    position:static;
    left:auto;
    z-index:auto;
    box-shadow:none;
  }
  .conference-operation-table thead th:nth-child(2){
    position:sticky;
    left:0;
    z-index:8;
  }
  .conference-operation-table tbody td:nth-child(2){
    position:sticky;
    left:0;
    z-index:3;
    box-shadow:5px 0 8px rgba(10,35,20,.04);
  }
}

@media (max-width:800px){
  .conference-cell-input,.conference-unit-select,.conference-loss-type{height:40px}
  .conference-loss-editor{grid-template-columns:minmax(100px,1fr) minmax(100px,1fr)}
  .conference-loss-value{grid-template-columns:minmax(56px,1fr) 42px}
}

/* 0.0.41 — Conferência: quebra sempre segue para Acertos como quebra do fornecedor.
   O seletor de classificação foi removido e a célula volta a ser simples: valor + unidade. */
.conference-loss-editor{
  width:100%;
  display:block;
}
.conference-loss-value{
  width:100%;
  display:grid;
  grid-template-columns:minmax(52px,1fr) 42px;
  gap:5px;
  align-items:center;
}
.conference-loss-value .conference-cell-input{width:100%;min-width:0;padding:0 5px}
.conference-unit-select{width:42px;min-width:42px;padding:0 2px;font-size:10px;text-align:center}

/* A coluna de quebra não precisa mais reservar espaço para classificação. */
.conference-table-p1 th:nth-child(1),.conference-table-p1 td:nth-child(1){width:9.5%;min-width:105px}
.conference-table-p1 th:nth-child(2),.conference-table-p1 td:nth-child(2){width:15%;min-width:165px}
.conference-table-p1 th:nth-child(3),.conference-table-p1 td:nth-child(3){width:6.5%;min-width:70px}
.conference-table-p1 th:nth-child(4),.conference-table-p1 td:nth-child(4){width:6.5%;min-width:72px}
.conference-table-p1 th:nth-child(5),.conference-table-p1 td:nth-child(5){width:6.5%;min-width:74px}
.conference-table-p1 th:nth-child(6),.conference-table-p1 td:nth-child(6){width:6%;min-width:68px}
.conference-table-p1 th:nth-child(7),.conference-table-p1 td:nth-child(7){width:6%;min-width:70px}
.conference-table-p1 th:nth-child(8),.conference-table-p1 td:nth-child(8){width:7%;min-width:76px}
.conference-table-p1 th:nth-child(9),.conference-table-p1 td:nth-child(9){width:7%;min-width:76px}
.conference-table-p1 th:nth-child(10),.conference-table-p1 td:nth-child(10){width:9%;min-width:98px}
.conference-table-p1 th:nth-child(11),.conference-table-p1 td:nth-child(11){width:10%;min-width:94px}
.conference-table-p1 th:nth-child(12),.conference-table-p1 td:nth-child(12){width:11%;min-width:94px}

.conference-table-p2 th:nth-child(8),.conference-table-p2 td:nth-child(8){width:9%;min-width:98px}

/* Seletores antigos não existem mais na Conferência 0.0.41. */
.conference-loss-type{display:none!important}

@media (max-width:1179px){
  .conference-loss-value{grid-template-columns:minmax(64px,1fr) 44px}
  .conference-unit-select{width:44px;min-width:44px}
}

/* 0.0.42 — alinhamento do status e cálculo automático de Produção Líquida / Rendimento. */
.conference-status-cell{
  text-align:center!important;
  vertical-align:middle!important;
  padding-left:5px!important;
  padding-right:5px!important;
}
.conference-status-cell .conference-status-pill{
  display:inline-flex;
  min-width:66px;
  margin:0 auto;
  align-items:center;
  justify-content:center;
  text-align:center;
  transform:translateX(1px);
}
.conference-production-output-cell,
.conference-yield-cell{
  background:var(--surface-soft, #f6f8f7);
  vertical-align:middle;
  text-align:center!important;
}
.conference-production-output-cell b,
.conference-yield-cell b{
  display:inline-flex;
  width:100%;
  min-height:32px;
  align-items:center;
  justify-content:center;
  font-variant-numeric:tabular-nums;
  font-weight:800;
  white-space:nowrap;
}
.conference-table-p1 th:nth-child(11),.conference-table-p1 td:nth-child(11){min-width:102px}
.conference-table-p1 th:nth-child(12),.conference-table-p1 td:nth-child(12){min-width:108px}
.conference-table-p2 th:nth-child(9),.conference-table-p2 td:nth-child(9){min-width:102px}
.conference-table-p2 th:nth-child(10),.conference-table-p2 td:nth-child(10){min-width:108px}
:root[data-theme="dark"] .conference-production-output-cell,
:root[data-theme="dark"] .conference-yield-cell{
  background:var(--surface-2, rgba(255,255,255,.035));
}


/* 0.0.43 — acabamento visual da tabela sem alterar estrutura nem lógica.
   Objetivo: fundo mais uniforme, grupos Recebimento/Produção/Resultado,
   quebra mais compacta, status alinhado e destaque para resultado. */

.conference-operation-table thead th,
.conference-operation-table tbody td{
  position:relative;
}

/* Fundo mais uniforme: a tabela deixa de parecer um mosaico de colunas. */
.conference-operation-table tbody td{
  background:#fbfcfb;
}
.conference-operation-table tbody tr:hover td{
  background:#f6faf7;
}
.conference-auto-cell{
  background:#f8faf8 !important;
  color:var(--muted);
}
.conference-auto-value{
  min-height:30px;
}

/* Grupos visuais: Recebimento / Produção / Resultado. */
.conference-production-panel{
  --conference-group-receipt:#fbfdfb;
  --conference-group-production:#f8fbf8;
  --conference-group-result:#f6faf7;
  --conference-group-divider:#dce7df;
}

/* Produção 1 */
.conference-table-p1 thead th:nth-child(n+3):nth-child(-n+7),
.conference-table-p1 tbody td:nth-child(n+3):nth-child(-n+7){
  background:var(--conference-group-receipt);
}
.conference-table-p1 thead th:nth-child(n+8):nth-child(-n+10),
.conference-table-p1 tbody td:nth-child(n+8):nth-child(-n+10){
  background:var(--conference-group-production);
}
.conference-table-p1 thead th:nth-child(n+11):nth-child(-n+12),
.conference-table-p1 tbody td:nth-child(n+11):nth-child(-n+12){
  background:var(--conference-group-result);
}

/* Produção 2 */
.conference-table-p2 thead th:nth-child(n+3):nth-child(-n+5),
.conference-table-p2 tbody td:nth-child(n+3):nth-child(-n+5){
  background:var(--conference-group-receipt);
}
.conference-table-p2 thead th:nth-child(n+6):nth-child(-n+8),
.conference-table-p2 tbody td:nth-child(n+6):nth-child(-n+8){
  background:var(--conference-group-production);
}
.conference-table-p2 thead th:nth-child(n+9):nth-child(-n+10),
.conference-table-p2 tbody td:nth-child(n+9):nth-child(-n+10){
  background:var(--conference-group-result);
}

/* Divisores suaves entre grupos. */
.conference-table-p1 thead th:nth-child(3),
.conference-table-p1 tbody td:nth-child(3),
.conference-table-p1 thead th:nth-child(8),
.conference-table-p1 tbody td:nth-child(8),
.conference-table-p1 thead th:nth-child(11),
.conference-table-p1 tbody td:nth-child(11),
.conference-table-p2 thead th:nth-child(3),
.conference-table-p2 tbody td:nth-child(3),
.conference-table-p2 thead th:nth-child(6),
.conference-table-p2 tbody td:nth-child(6),
.conference-table-p2 thead th:nth-child(9),
.conference-table-p2 tbody td:nth-child(9){
  box-shadow:inset 1px 0 0 var(--conference-group-divider);
}

/* Rótulo do grupo no cabeçalho, sem criar segunda linha estrutural. */
.conference-operation-table thead th{
  padding-top:17px;
}
.conference-table-p1 thead th:nth-child(3)::before,
.conference-table-p1 thead th:nth-child(8)::before,
.conference-table-p1 thead th:nth-child(11)::before,
.conference-table-p2 thead th:nth-child(3)::before,
.conference-table-p2 thead th:nth-child(6)::before,
.conference-table-p2 thead th:nth-child(9)::before{
  position:absolute;
  top:4px;
  left:8px;
  color:var(--muted);
  font-size:8px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  opacity:.9;
}
.conference-table-p1 thead th:nth-child(3)::before{content:'Recebimento';}
.conference-table-p1 thead th:nth-child(8)::before{content:'Produção';}
.conference-table-p1 thead th:nth-child(11)::before{content:'Resultado';}
.conference-table-p2 thead th:nth-child(3)::before{content:'Disponível';}
.conference-table-p2 thead th:nth-child(6)::before{content:'Produção';}
.conference-table-p2 thead th:nth-child(9)::before{content:'Resultado';}

/* Status mais alinhado e consistente. */
.conference-status-cell{ text-align:center; }
.conference-status-pill{
  width:88px;
  min-width:88px;
  min-height:24px;
  padding:4px 8px;
  vertical-align:middle;
}

/* Quebra mais compacta e organizada. */
.conference-loss-editor{
  width:100%;
  grid-template-columns:1fr;
  gap:0;
}
.conference-loss-value{
  grid-template-columns:minmax(0,1fr) 50px;
  gap:4px;
}
.conference-loss-value .conference-cell-input{
  padding-right:6px;
}
.conference-unit-select{
  padding:0 4px;
  font-size:11px;
  font-weight:800;
}
.conference-table-p1 th:nth-child(10),.conference-table-p1 td:nth-child(10),
.conference-table-p2 th:nth-child(8),.conference-table-p2 td:nth-child(8){
  min-width:118px;
}

/* Resultado final mais destacado, sem virar input. */
.conference-table-p1 tbody td:nth-child(11),
.conference-table-p1 tbody td:nth-child(12),
.conference-table-p2 tbody td:nth-child(9),
.conference-table-p2 tbody td:nth-child(10){
  font-weight:800;
}
.conference-table-p1 tbody td:nth-child(11) .conference-auto-value,
.conference-table-p1 tbody td:nth-child(12) .conference-auto-value,
.conference-table-p2 tbody td:nth-child(9) .conference-auto-value,
.conference-table-p2 tbody td:nth-child(10) .conference-auto-value{
  justify-content:flex-end;
  color:var(--green-800);
  font-size:13px;
  font-weight:850;
}
.conference-table-p1 tbody td:nth-child(11) .conference-auto-value,
.conference-table-p1 tbody td:nth-child(12) .conference-auto-value,
.conference-table-p2 tbody td:nth-child(9) .conference-auto-value,
.conference-table-p2 tbody td:nth-child(10) .conference-auto-value{
  padding:0 2px;
}

/* Mantém sticky coerente com os novos fundos. */
.conference-operation-table tbody td:nth-child(1),
.conference-operation-table tbody td:nth-child(2){
  background:#fbfcfb;
}
.conference-operation-table tbody tr:hover td:nth-child(1),
.conference-operation-table tbody tr:hover td:nth-child(2){
  background:#f6faf7;
}

/* Linha total continua forte, mas com melhor leitura. */
.conference-operation-table tfoot td{
  box-shadow:inset 1px 0 0 rgba(255,255,255,.06);
}
.conference-operation-table tfoot td:first-child,
.conference-operation-table tfoot td:nth-child(2){
  box-shadow:none;
}

@media(max-width:1179px){
  .conference-operation-table thead th{padding-top:14px}
  .conference-status-pill{width:82px;min-width:82px}
}

@media(max-width:800px){
  .conference-operation-table thead th::before{display:none}
  .conference-status-pill{width:78px;min-width:78px}
}


/* 0.0.44 — coluna Status removida da Produção 1.
   A Diferença passa a comunicar o estado visualmente:
   negativo = vermelho; zero/positivo = verde. */

/* Produção 1 agora possui 11 colunas. */
.conference-table-p1 th:nth-child(1),.conference-table-p1 td:nth-child(1){width:9.5%;min-width:100px}
.conference-table-p1 th:nth-child(2),.conference-table-p1 td:nth-child(2){width:15%;min-width:145px}
.conference-table-p1 th:nth-child(3),.conference-table-p1 td:nth-child(3){width:6.5%;min-width:68px}
.conference-table-p1 th:nth-child(4),.conference-table-p1 td:nth-child(4){width:7%;min-width:70px}
.conference-table-p1 th:nth-child(5),.conference-table-p1 td:nth-child(5){width:7.5%;min-width:76px}
.conference-table-p1 th:nth-child(6),.conference-table-p1 td:nth-child(6){width:7%;min-width:68px}
.conference-table-p1 th:nth-child(7),.conference-table-p1 td:nth-child(7){width:8%;min-width:78px}
.conference-table-p1 th:nth-child(8),.conference-table-p1 td:nth-child(8){width:8%;min-width:78px}
.conference-table-p1 th:nth-child(9),.conference-table-p1 td:nth-child(9){width:10.5%;min-width:110px}
.conference-table-p1 th:nth-child(10),.conference-table-p1 td:nth-child(10){width:10.5%;min-width:100px}
.conference-table-p1 th:nth-child(11),.conference-table-p1 td:nth-child(11){width:10.5%;min-width:100px}

/* Corrige os agrupamentos após a remoção de Status. */
.conference-table-p1 thead th,
.conference-table-p1 tbody td{background:#fbfcfb}
.conference-table-p1 thead th:nth-child(n+3):nth-child(-n+6),
.conference-table-p1 tbody td:nth-child(n+3):nth-child(-n+6){background:var(--conference-group-receipt)}
.conference-table-p1 thead th:nth-child(n+7):nth-child(-n+9),
.conference-table-p1 tbody td:nth-child(n+7):nth-child(-n+9){background:var(--conference-group-production)}
.conference-table-p1 thead th:nth-child(n+10):nth-child(-n+11),
.conference-table-p1 tbody td:nth-child(n+10):nth-child(-n+11){background:var(--conference-group-result)}

.conference-table-p1 thead th,
.conference-table-p1 tbody td{box-shadow:none}
.conference-table-p1 thead th:nth-child(3),
.conference-table-p1 tbody td:nth-child(3),
.conference-table-p1 thead th:nth-child(7),
.conference-table-p1 tbody td:nth-child(7),
.conference-table-p1 thead th:nth-child(10),
.conference-table-p1 tbody td:nth-child(10){box-shadow:inset 1px 0 0 var(--conference-group-divider)}

.conference-table-p1 thead th::before{content:none!important}
.conference-table-p1 thead th:nth-child(3)::before{content:'Recebimento'!important}
.conference-table-p1 thead th:nth-child(7)::before{content:'Produção'!important}
.conference-table-p1 thead th:nth-child(10)::before{content:'Resultado'!important}

/* Quebra agora é a coluna 9. */
.conference-table-p1 th:nth-child(9),.conference-table-p1 td:nth-child(9){min-width:110px}

/* Produção líquida e rendimento agora ocupam as colunas 10 e 11. */
.conference-table-p1 tbody td:nth-child(10),
.conference-table-p1 tbody td:nth-child(11){font-weight:800}
.conference-table-p1 tbody td:nth-child(10) .conference-auto-value,
.conference-table-p1 tbody td:nth-child(11) .conference-auto-value{
  justify-content:flex-end;
  color:var(--green-800);
  font-size:13px;
  font-weight:850;
  padding:0 2px;
}

/* A própria diferença substitui o chip de status. */
.purchase-diff-preview{
  min-width:58px;
  min-height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  padding:3px 6px;
  border-radius:7px;
  font-weight:850;
  line-height:1;
  white-space:nowrap;
}
.purchase-diff-preview.is-negative{
  color:var(--red);
  background:var(--red-100);
}
.purchase-diff-preview.is-nonnegative{
  color:var(--green-700);
  background:var(--green-100);
}
.conference-p1-total-diff.is-negative{color:#ffb7b7}
.conference-p1-total-diff.is-nonnegative{color:#b9efc8}

/* Hover preserva a leitura dos grupos sem voltar a criar mosaico. */
.conference-table-p1 tbody tr:hover td:nth-child(n+3):nth-child(-n+6){background:#f8fbf8}
.conference-table-p1 tbody tr:hover td:nth-child(n+7):nth-child(-n+9){background:#f5faf6}
.conference-table-p1 tbody tr:hover td:nth-child(n+10):nth-child(-n+11){background:#f3f9f5}

@media(max-width:1179px) and (min-width:801px){
  .conference-table-p1{min-width:1010px}
}


/* 0.0.47 — refinamento visual do cabeçalho da Conferência (base 0.0.45).
   Ajusta nomes/grupos, alinhamento e leitura sem alterar lógica. */

/* Cabeçalho mais organizado e menos espremido. */
.conference-operation-table thead th{
  height:50px;
  padding:18px 6px 6px;
  vertical-align:bottom;
}
.conference-operation-table thead th small{
  margin-top:1px;
  line-height:1.1;
}

/* Títulos de grupo centralizados para não parecerem colados ao nome da coluna. */
.conference-table-p1 thead th:nth-child(3)::before,
.conference-table-p1 thead th:nth-child(7)::before,
.conference-table-p2 thead th:nth-child(3)::before,
.conference-table-p2 thead th:nth-child(6)::before{
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  max-width:calc(100% - 12px);
  text-align:center;
  white-space:nowrap;
}

/* Na Produção 1: manter apenas Produção como rótulo do grupo de sobra/utilizadas,
   e remover o rótulo 'Resultado' acima da coluna Produção Líquida. */
.conference-table-p1 thead th:nth-child(7)::before{content:'Produção' !important;}
.conference-table-p1 thead th:nth-child(10)::before{content:none !important; display:none !important;}

/* Na Produção 2: o grupo final fica sem rótulo extra para evitar 'Resultado Produção'. */
.conference-table-p2 thead th:nth-child(9)::before{content:none !important; display:none !important;}

/* Cabeçalhos das colunas mais curtos e melhor centralizados. */
.conference-table-p1 thead th:nth-child(7),
.conference-table-p1 thead th:nth-child(8),
.conference-table-p1 thead th:nth-child(10),
.conference-table-p1 thead th:nth-child(11),
.conference-table-p2 thead th:nth-child(6),
.conference-table-p2 thead th:nth-child(7),
.conference-table-p2 thead th:nth-child(9),
.conference-table-p2 thead th:nth-child(10){
  text-align:center;
}

/* Pequeno ajuste de largura para o novo texto mais curto. */
.conference-table-p1 th:nth-child(7),.conference-table-p1 td:nth-child(7){min-width:74px}
.conference-table-p1 th:nth-child(8),.conference-table-p1 td:nth-child(8){min-width:82px}
.conference-table-p1 th:nth-child(10),.conference-table-p1 td:nth-child(10){min-width:104px}
.conference-table-p1 th:nth-child(11),.conference-table-p1 td:nth-child(11){min-width:106px}

@media(max-width:1179px){
  .conference-operation-table thead th{padding-top:16px}
}

@media(max-width:800px){
  .conference-operation-table thead th{height:48px;padding-top:10px}
  .conference-table-p1 thead th:nth-child(3)::before,
  .conference-table-p1 thead th:nth-child(7)::before,
  .conference-table-p2 thead th:nth-child(3)::before,
  .conference-table-p2 thead th:nth-child(6)::before{
    font-size:7.5px;
  }
}


/* 0.0.48 — refinamento visual final da tabela da Conferência.
   Escopo: nomenclatura e design. Nenhuma regra de cálculo é alterada. */

/* Remove totalmente os rótulos textuais de grupo herdados das versões anteriores. */
.conference-operation-table thead th::before{
  content:none !important;
  display:none !important;
}

/* Cabeçalho compacto, uniforme e perfeitamente alinhado. */
.conference-operation-table thead th{
  height:46px;
  padding:7px 6px 6px;
  vertical-align:middle;
  background:var(--green-50);
  line-height:1.08;
  text-align:center;
}
.conference-operation-table thead th:nth-child(1),
.conference-operation-table thead th:nth-child(2){
  text-align:left;
}
.conference-operation-table thead th small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:8.5px;
  font-weight:600;
  line-height:1.05;
  letter-spacing:.01em;
  text-transform:none;
}

/* Fundo uniforme: separação das etapas é por divisores suaves, não por faixas. */
.conference-operation-table tbody td,
.conference-table-p1 tbody td:nth-child(n+3):nth-child(-n+11),
.conference-table-p2 tbody td:nth-child(n+3):nth-child(-n+10){
  background:var(--panel) !important;
  box-shadow:none;
}
.conference-operation-table tbody tr:hover td,
.conference-table-p1 tbody tr:hover td:nth-child(n+3):nth-child(-n+11),
.conference-table-p2 tbody tr:hover td:nth-child(n+3):nth-child(-n+10){
  background:#f7faf8 !important;
}

/* Somente três divisores visuais por tabela: Entrada | Produção | Resultado. */
.conference-table-p1 thead th:nth-child(3),
.conference-table-p1 tbody td:nth-child(3),
.conference-table-p1 thead th:nth-child(7),
.conference-table-p1 tbody td:nth-child(7),
.conference-table-p1 thead th:nth-child(10),
.conference-table-p1 tbody td:nth-child(10),
.conference-table-p2 thead th:nth-child(3),
.conference-table-p2 tbody td:nth-child(3),
.conference-table-p2 thead th:nth-child(6),
.conference-table-p2 tbody td:nth-child(6),
.conference-table-p2 thead th:nth-child(9),
.conference-table-p2 tbody td:nth-child(9){
  border-left:1px solid #dce7df;
}

/* Fornecedor é contexto; Item é a informação textual principal. */
.conference-supplier-cell b{
  font-size:10.5px;
  font-weight:600;
  line-height:1.25;
}
.conference-item-cell b{
  font-size:11px;
  font-weight:700;
  line-height:1.22;
}
.conference-item-cell small{
  margin-top:2px;
  font-size:9px;
  font-weight:550;
}

/* Proporções horizontais: Item ganha respiro; dados operacionais ficam compactos. */
.conference-table-p1 th:nth-child(1),.conference-table-p1 td:nth-child(1){width:9%;min-width:96px}
.conference-table-p1 th:nth-child(2),.conference-table-p1 td:nth-child(2){width:16.5%;min-width:160px}
.conference-table-p1 th:nth-child(3),.conference-table-p1 td:nth-child(3){width:6.5%;min-width:66px}
.conference-table-p1 th:nth-child(4),.conference-table-p1 td:nth-child(4){width:7%;min-width:70px}
.conference-table-p1 th:nth-child(5),.conference-table-p1 td:nth-child(5){width:7.5%;min-width:76px}
.conference-table-p1 th:nth-child(6),.conference-table-p1 td:nth-child(6){width:7%;min-width:68px}
.conference-table-p1 th:nth-child(7),.conference-table-p1 td:nth-child(7){width:7.5%;min-width:74px}
.conference-table-p1 th:nth-child(8),.conference-table-p1 td:nth-child(8){width:7.5%;min-width:78px}
.conference-table-p1 th:nth-child(9),.conference-table-p1 td:nth-child(9){width:9.5%;min-width:96px}
.conference-table-p1 th:nth-child(10),.conference-table-p1 td:nth-child(10){width:10.5%;min-width:100px}
.conference-table-p1 th:nth-child(11),.conference-table-p1 td:nth-child(11){width:11.5%;min-width:106px}

/* Produção 2 usa a mesma linguagem de proporções. */
.conference-table-p2 th:nth-child(1),.conference-table-p2 td:nth-child(1){width:10%;min-width:100px}
.conference-table-p2 th:nth-child(2),.conference-table-p2 td:nth-child(2){width:17%;min-width:160px}
.conference-table-p2 th:nth-child(3),.conference-table-p2 td:nth-child(3){width:8%;min-width:72px}
.conference-table-p2 th:nth-child(4),.conference-table-p2 td:nth-child(4){width:8%;min-width:72px}
.conference-table-p2 th:nth-child(5),.conference-table-p2 td:nth-child(5){width:9%;min-width:82px}
.conference-table-p2 th:nth-child(6),.conference-table-p2 td:nth-child(6){width:8%;min-width:72px}
.conference-table-p2 th:nth-child(7),.conference-table-p2 td:nth-child(7){width:9%;min-width:80px}
.conference-table-p2 th:nth-child(8),.conference-table-p2 td:nth-child(8){width:10%;min-width:96px}
.conference-table-p2 th:nth-child(9),.conference-table-p2 td:nth-child(9){width:10%;min-width:96px}
.conference-table-p2 th:nth-child(10),.conference-table-p2 td:nth-child(10){width:11%;min-width:104px}

/* Inputs editáveis discretos e integrados. */
.conference-cell-input,
.conference-unit-select{
  height:32px;
  border-color:var(--line);
  background:var(--panel);
  font-weight:600;
}
.conference-cell-input:focus,
.conference-unit-select:focus{
  border-color:var(--green-500);
  box-shadow:0 0 0 2px rgba(55,166,91,.11);
}

/* Diferença: badge numérico de tamanho constante. */
.purchase-diff-preview{
  width:64px;
  min-width:64px;
  min-height:26px;
  justify-content:center;
  padding:3px 6px;
  margin:0 auto;
}

/* Utilizadas é cálculo: hierarquia sem caixa de input. */
.conference-p1-used,
.conference-p2-used{
  font-weight:700;
  color:var(--ink);
}

/* Quebra: valor e unidade parecem um único conjunto compacto. */
.conference-loss-editor{
  width:100%;
  display:flex;
  justify-content:center;
}
.conference-loss-value{
  width:100%;
  max-width:112px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 40px;
  gap:3px;
  align-items:center;
}
.conference-loss-value .conference-cell-input{
  min-width:0;
  padding:0 5px;
}
.conference-unit-select{
  width:40px;
  min-width:40px;
  padding:0 2px;
  font-size:10px;
  font-weight:700;
  text-align:center;
}

/* Produção e Rendimento: resultado final com hierarquia maior, sem aparência de input. */
.conference-production-output-cell,
.conference-yield-cell{
  background:#f8faf8 !important;
  text-align:center !important;
}
.conference-production-output-cell b,
.conference-yield-cell b,
.conference-table-p1 tbody td:nth-child(10) .conference-auto-value,
.conference-table-p1 tbody td:nth-child(11) .conference-auto-value,
.conference-table-p2 tbody td:nth-child(9) .conference-auto-value,
.conference-table-p2 tbody td:nth-child(10) .conference-auto-value{
  color:var(--green-800);
  font-size:12.5px;
  font-weight:800;
  justify-content:center;
  text-align:center;
}

/* Linhas: densas, mas com respiro; grade vertical reduzida. */
.conference-operation-table tbody td{
  height:48px;
  padding:6px 6px;
  border-bottom:1px solid var(--line);
  vertical-align:middle;
}

/* Total: fechamento claro e sem redundância. */
.conference-operation-table tfoot td{
  height:50px;
  padding:10px 6px;
  font-weight:800;
  text-align:center;
  box-shadow:none;
}
.conference-operation-table tfoot td:first-child{
  text-align:left;
  padding-left:10px;
}

/* Dark mode: usa tokens do sistema e evita hex de superfície clara. */
:root[data-theme="dark"] .conference-operation-table tbody td,
:root[data-theme="dark"] .conference-table-p1 tbody td:nth-child(n+3):nth-child(-n+11),
:root[data-theme="dark"] .conference-table-p2 tbody td:nth-child(n+3):nth-child(-n+10){
  background:var(--panel) !important;
}
:root[data-theme="dark"] .conference-operation-table tbody tr:hover td{
  background:var(--green-50) !important;
}
:root[data-theme="dark"] .conference-production-output-cell,
:root[data-theme="dark"] .conference-yield-cell{
  background:var(--surface-2, rgba(255,255,255,.035)) !important;
}

@media(max-width:1179px){
  .conference-operation-table thead th{height:46px;padding:7px 5px 6px}
  .conference-operation-table tbody td{padding-left:5px;padding-right:5px}
}

@media(max-width:800px){
  .conference-operation-table thead th{height:46px;padding-top:7px}
  .conference-cell-input,.conference-unit-select{height:40px}
  .conference-loss-value{max-width:124px;grid-template-columns:minmax(0,1fr) 42px}
  .conference-unit-select{width:42px;min-width:42px}
}

/* 0.0.49 — acabamento visual profissional baseado no mockup aprovado.
   Escopo: somente visual da tabela de Conferência, sem alterar lógica. */

.conference-production-panel{
  border:1px solid #e4ece6;
  border-radius:18px;
  background:#ffffff;
  box-shadow:0 10px 26px rgba(10,35,20,.04);
  overflow:hidden;
}

.conference-production-heading{
  min-height:56px;
  padding:14px 18px;
  border-bottom:1px solid #e7efe9;
  background:linear-gradient(180deg,#ffffff 0%, #fbfdfb 100%);
}
.conference-production-heading strong{
  font-size:15px;
  font-weight:800;
}
.conference-production-heading small{
  font-size:11px;
  font-weight:600;
  color:#738273;
}
.conference-legend span{
  font-size:10.5px;
  font-weight:700;
}

.conference-table-scroll{
  background:#ffffff;
}

.conference-operation-table{
  color:#0f1d28;
  font-size:12px;
}

.conference-operation-table thead th{
  height:52px;
  padding:10px 10px 9px;
  border-bottom:1px solid #e3ece6;
  background:#f6faf7;
  color:#0c5a35;
  font-size:10.5px;
  font-weight:800;
  letter-spacing:.01em;
}
.conference-operation-table thead th small{
  margin-top:3px;
  color:#708175;
  font-size:8.5px;
  font-weight:700;
}
.conference-operation-table thead th:nth-child(1),
.conference-operation-table thead th:nth-child(2){
  background:#f8fbf8;
}

.conference-operation-table tbody td{
  height:50px;
  padding:8px 10px;
  border-bottom:1px solid #ebf1ed;
  background:#ffffff !important;
  vertical-align:middle;
}
.conference-operation-table tbody tr:hover td{
  background:#f8fcf9 !important;
}

/* Primeiras colunas com leve superfície contextual, sem parecer blocos pesados. */
.conference-operation-table tbody td:nth-child(1),
.conference-operation-table tbody td:nth-child(2){
  background:#fcfdfc !important;
}
.conference-operation-table tbody tr:hover td:nth-child(1),
.conference-operation-table tbody tr:hover td:nth-child(2){
  background:#f8fcf9 !important;
}

/* Divisores mínimos: Entrada | Produção | Resultado */
.conference-table-p1 thead th:nth-child(3),
.conference-table-p1 tbody td:nth-child(3),
.conference-table-p1 thead th:nth-child(7),
.conference-table-p1 tbody td:nth-child(7),
.conference-table-p1 thead th:nth-child(10),
.conference-table-p1 tbody td:nth-child(10),
.conference-table-p2 thead th:nth-child(3),
.conference-table-p2 tbody td:nth-child(3),
.conference-table-p2 thead th:nth-child(6),
.conference-table-p2 tbody td:nth-child(6),
.conference-table-p2 thead th:nth-child(9),
.conference-table-p2 tbody td:nth-child(9){
  border-left:1px solid #e1e9e3;
}

/* Zona de resultado levemente valorizada. */
.conference-table-p1 thead th:nth-child(10),
.conference-table-p1 thead th:nth-child(11),
.conference-table-p1 tbody td:nth-child(10),
.conference-table-p1 tbody td:nth-child(11),
.conference-table-p2 thead th:nth-child(9),
.conference-table-p2 thead th:nth-child(10),
.conference-table-p2 tbody td:nth-child(9),
.conference-table-p2 tbody td:nth-child(10){
  background:#fbfdfb !important;
}
.conference-operation-table tbody tr:hover td:nth-child(10),
.conference-operation-table tbody tr:hover td:nth-child(11),
.conference-table-p2 tbody tr:hover td:nth-child(9),
.conference-table-p2 tbody tr:hover td:nth-child(10){
  background:#f7fbf8 !important;
}

.conference-supplier-cell b{
  color:#203047;
  font-size:10.5px;
  font-weight:700;
  line-height:1.3;
}
.conference-item-cell b{
  color:#0f1d28;
  font-size:12px;
  font-weight:800;
  line-height:1.22;
}
.conference-item-cell small{
  margin-top:3px;
  color:#7a897c;
  font-size:9px;
  font-weight:700;
}

/* Inputs mais elegantes e menos gritantes. */
.conference-cell-input,
.conference-unit-select{
  height:34px;
  border:1px solid #d7e1da;
  border-radius:10px;
  background:#ffffff;
  color:#132033;
  font-size:12px;
  font-weight:700;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
.conference-cell-input:hover,
.conference-unit-select:hover{
  border-color:#bfd0c4;
}
.conference-cell-input:focus,
.conference-unit-select:focus{
  border-color:#3aa46b;
  box-shadow:0 0 0 3px rgba(58,164,107,.12);
}
.conference-cell-input::placeholder{color:#95a29a;opacity:.8}

/* Números automáticos com aparência de resultado, não de input desabilitado. */
.conference-auto-cell{
  background:#ffffff !important;
  color:#21354c;
}
.conference-auto-value{
  min-height:34px;
  align-items:center;
  justify-content:center;
  color:#23354b;
  font-weight:700;
}
.conference-p1-used,
.conference-p2-used{
  color:#102237;
  font-weight:800;
}

/* Diferença com badge mais premium e largura estável. */
.purchase-diff-preview{
  width:74px;
  min-width:74px;
  min-height:28px;
  border-radius:9px;
  justify-content:center;
  margin:0 auto;
  font-size:11px;
  font-weight:800;
}
.purchase-diff-preview.is-negative{
  color:#de4f4f;
  background:#fdecec;
}
.purchase-diff-preview.is-nonnegative{
  color:#1f8a57;
  background:#eaf6ee;
}

/* Quebra mais compacta e coesa. */
.conference-loss-editor{
  width:100%;
  display:flex;
  justify-content:center;
}
.conference-loss-value{
  width:100%;
  max-width:104px;
  grid-template-columns:minmax(0,1fr) 38px;
  gap:4px;
}
.conference-loss-value .conference-cell-input{
  text-align:center;
  padding:0 4px;
}
.conference-unit-select{
  width:38px;
  min-width:38px;
  padding:0 1px;
  font-size:10px;
  font-weight:800;
  text-align:center;
}

/* Colunas de resultado com mais presença. */
.conference-production-output-cell,
.conference-yield-cell{
  background:#fbfdfb !important;
}
.conference-production-output-cell b,
.conference-yield-cell b,
.conference-table-p1 tbody td:nth-child(10) .conference-auto-value,
.conference-table-p1 tbody td:nth-child(11) .conference-auto-value,
.conference-table-p2 tbody td:nth-child(9) .conference-auto-value,
.conference-table-p2 tbody td:nth-child(10) .conference-auto-value{
  color:#0f6a3f;
  font-size:13px;
  font-weight:800;
  letter-spacing:-.01em;
}

/* Proporções refinadas para o desktop ficar mais elegante. */
.conference-table-p1 th:nth-child(1),.conference-table-p1 td:nth-child(1){width:9%;min-width:94px}
.conference-table-p1 th:nth-child(2),.conference-table-p1 td:nth-child(2){width:18%;min-width:190px}
.conference-table-p1 th:nth-child(3),.conference-table-p1 td:nth-child(3){width:6%;min-width:64px}
.conference-table-p1 th:nth-child(4),.conference-table-p1 td:nth-child(4){width:7%;min-width:72px}
.conference-table-p1 th:nth-child(5),.conference-table-p1 td:nth-child(5){width:8%;min-width:78px}
.conference-table-p1 th:nth-child(6),.conference-table-p1 td:nth-child(6){width:7%;min-width:72px}
.conference-table-p1 th:nth-child(7),.conference-table-p1 td:nth-child(7){width:7%;min-width:74px}
.conference-table-p1 th:nth-child(8),.conference-table-p1 td:nth-child(8){width:7%;min-width:76px}
.conference-table-p1 th:nth-child(9),.conference-table-p1 td:nth-child(9){width:9%;min-width:94px}
.conference-table-p1 th:nth-child(10),.conference-table-p1 td:nth-child(10){width:11%;min-width:106px}
.conference-table-p1 th:nth-child(11),.conference-table-p1 td:nth-child(11){width:11%;min-width:108px}

.conference-table-p2 th:nth-child(2),.conference-table-p2 td:nth-child(2){width:18%;min-width:190px}

/* Rodapé forte e mais elegante. */
.conference-operation-table tfoot td{
  height:54px;
  padding:12px 10px;
  border-top:none;
  background:linear-gradient(135deg,#014226 0%, #015934 55%, #004626 100%);
  color:#ffffff;
  font-size:11px;
  font-weight:800;
  text-align:center;
}
.conference-operation-table tfoot td:first-child{
  text-align:left;
  padding-left:14px;
}
.conference-operation-table tfoot td:first-child{border-bottom-left-radius:0}
.conference-operation-table tfoot td:last-child{border-bottom-right-radius:0}
.conference-p1-total-diff.is-negative{color:#ffd1d1}
.conference-p1-total-diff.is-nonnegative{color:#d2f5dd}

/* Resumo e ações mantidos consistentes. */
.conference-lot-summary{
  border-color:#e4ece6;
  border-radius:16px;
  background:#ffffff;
  box-shadow:0 8px 18px rgba(10,35,20,.03);
}
.conference-summary-head{
  background:#f7fbf8;
  border-bottom:1px solid #e7efe9;
}
.conference-summary-grid>div{
  border-color:#ebf1ed;
}

@media (max-width:1179px){
  .conference-table-p1{min-width:1120px}
  .conference-table-p2{min-width:1040px}
  .conference-operation-table thead th,
  .conference-operation-table tbody td{padding-left:8px;padding-right:8px}
}

@media (max-width:800px){
  .conference-production-heading{padding:12px 14px}
  .conference-operation-table thead th{height:50px;padding:8px 7px}
  .conference-cell-input,
  .conference-unit-select{height:40px}
  .conference-loss-value{max-width:112px;grid-template-columns:minmax(0,1fr) 40px}
  .conference-unit-select{width:40px;min-width:40px}
}

:root[data-theme="dark"] .conference-production-panel,
:root[data-theme="dark"] .conference-lot-summary{
  box-shadow:none;
}
:root[data-theme="dark"] .conference-operation-table thead th{
  background:var(--green-50);
}
:root[data-theme="dark"] .conference-operation-table tbody td,
:root[data-theme="dark"] .conference-auto-cell{
  background:var(--panel) !important;
}
:root[data-theme="dark"] .conference-production-output-cell,
:root[data-theme="dark"] .conference-yield-cell,
:root[data-theme="dark"] .conference-table-p1 tbody td:nth-child(10),
:root[data-theme="dark"] .conference-table-p1 tbody td:nth-child(11),
:root[data-theme="dark"] .conference-table-p2 tbody td:nth-child(9),
:root[data-theme="dark"] .conference-table-p2 tbody td:nth-child(10){
  background:var(--surface-2, rgba(255,255,255,.035)) !important;
}

/* 0.0.50 — coesão visual do bloco de Produção na Conferência.
   Objetivo: Sobra + Utilizadas + Quebra lidos como um único bloco.
   Escopo: somente divisores/agrupamento visual, sem alterar lógica. */

/* Remove qualquer separador residual dentro do bloco de Produção (P1). */
.conference-table-p1 thead th:nth-child(8),
.conference-table-p1 tbody td:nth-child(8),
.conference-table-p1 thead th:nth-child(9),
.conference-table-p1 tbody td:nth-child(9){
  border-left:none !important;
  box-shadow:none !important;
}

/* Remove qualquer separador residual dentro do bloco de Produção (P2). */
.conference-table-p2 thead th:nth-child(7),
.conference-table-p2 tbody td:nth-child(7),
.conference-table-p2 thead th:nth-child(8),
.conference-table-p2 tbody td:nth-child(8){
  border-left:none !important;
  box-shadow:none !important;
}

/* Mantém apenas os divisores principais: antes do bloco Produção e antes do bloco Resultado. */
.conference-table-p1 thead th:nth-child(7),
.conference-table-p1 tbody td:nth-child(7),
.conference-table-p1 thead th:nth-child(10),
.conference-table-p1 tbody td:nth-child(10),
.conference-table-p2 thead th:nth-child(6),
.conference-table-p2 tbody td:nth-child(6),
.conference-table-p2 thead th:nth-child(9),
.conference-table-p2 tbody td:nth-child(9){
  border-left:1px solid #e3ebe5 !important;
  box-shadow:none !important;
}

/* Uniformiza visualmente o bloco de Produção para leitura contínua. */
.conference-table-p1 thead th:nth-child(7),
.conference-table-p1 thead th:nth-child(8),
.conference-table-p1 thead th:nth-child(9),
.conference-table-p1 tbody td:nth-child(7),
.conference-table-p1 tbody td:nth-child(8),
.conference-table-p1 tbody td:nth-child(9),
.conference-table-p2 thead th:nth-child(6),
.conference-table-p2 thead th:nth-child(7),
.conference-table-p2 thead th:nth-child(8),
.conference-table-p2 tbody td:nth-child(6),
.conference-table-p2 tbody td:nth-child(7),
.conference-table-p2 tbody td:nth-child(8){
  background:#ffffff !important;
}

/* Alinhamento fino do trio Sobra + Utilizadas + Quebra. */
.conference-table-p1 thead th:nth-child(7),
.conference-table-p1 thead th:nth-child(8),
.conference-table-p1 thead th:nth-child(9),
.conference-table-p2 thead th:nth-child(6),
.conference-table-p2 thead th:nth-child(7),
.conference-table-p2 thead th:nth-child(8){
  text-align:center;
}
.conference-table-p1 tbody td:nth-child(7),
.conference-table-p1 tbody td:nth-child(8),
.conference-table-p1 tbody td:nth-child(9),
.conference-table-p2 tbody td:nth-child(6),
.conference-table-p2 tbody td:nth-child(7),
.conference-table-p2 tbody td:nth-child(8){
  text-align:center;
}

/* Leve respiração interna sem criar quebra visual entre as 3 colunas. */
.conference-table-p1 thead th:nth-child(7),
.conference-table-p1 thead th:nth-child(8),
.conference-table-p1 thead th:nth-child(9),
.conference-table-p1 tbody td:nth-child(7),
.conference-table-p1 tbody td:nth-child(8),
.conference-table-p1 tbody td:nth-child(9),
.conference-table-p2 thead th:nth-child(6),
.conference-table-p2 thead th:nth-child(7),
.conference-table-p2 thead th:nth-child(8),
.conference-table-p2 tbody td:nth-child(6),
.conference-table-p2 tbody td:nth-child(7),
.conference-table-p2 tbody td:nth-child(8){
  padding-left:9px;
  padding-right:9px;
}

/* 0.0.51 — mais respiro no bloco de Entrada da Conferência.
   Escopo: somente largura/espaçamento visual, sem alterar lógica. */

/* Produção 1: alivia Compra, Recebeu, Peso Bruto e Diferença. */
.conference-table-p1 th:nth-child(3),.conference-table-p1 td:nth-child(3){width:7.5% !important;min-width:82px !important}
.conference-table-p1 th:nth-child(4),.conference-table-p1 td:nth-child(4){width:8.5% !important;min-width:94px !important}
.conference-table-p1 th:nth-child(5),.conference-table-p1 td:nth-child(5){width:9% !important;min-width:102px !important}
.conference-table-p1 th:nth-child(6),.conference-table-p1 td:nth-child(6){width:8.5% !important;min-width:96px !important}

/* Ajuste compensatório nas zonas seguintes para a mesa caber melhor. */
.conference-table-p1 th:nth-child(7),.conference-table-p1 td:nth-child(7){width:6.8% !important;min-width:76px !important}
.conference-table-p1 th:nth-child(8),.conference-table-p1 td:nth-child(8){width:6.8% !important;min-width:76px !important}
.conference-table-p1 th:nth-child(9),.conference-table-p1 td:nth-child(9){width:8.5% !important;min-width:92px !important}
.conference-table-p1 th:nth-child(10),.conference-table-p1 td:nth-child(10){width:10% !important;min-width:102px !important}
.conference-table-p1 th:nth-child(11),.conference-table-p1 td:nth-child(11){width:10.4% !important;min-width:104px !important}

/* Mais respiro horizontal no bloco de Entrada. */
.conference-table-p1 thead th:nth-child(3),
.conference-table-p1 thead th:nth-child(4),
.conference-table-p1 thead th:nth-child(5),
.conference-table-p1 thead th:nth-child(6),
.conference-table-p1 tbody td:nth-child(3),
.conference-table-p1 tbody td:nth-child(4),
.conference-table-p1 tbody td:nth-child(5),
.conference-table-p1 tbody td:nth-child(6){
  padding-left:12px !important;
  padding-right:12px !important;
}

/* Diferença com um pouco mais de ar antes do divisor do próximo bloco. */
.conference-table-p1 thead th:nth-child(6),
.conference-table-p1 tbody td:nth-child(6){
  padding-right:16px !important;
}

/* Divisor entre Entrada e Produção mais sutil para não 'amassar' visualmente. */
.conference-table-p1 thead th:nth-child(7),
.conference-table-p1 tbody td:nth-child(7){
  border-left:1px solid #e8eee9 !important;
}

/* Mobile/notebook: mantém confortável sem exagerar. */
@media (max-width: 1179px){
  .conference-table-p1 th:nth-child(3),.conference-table-p1 td:nth-child(3){min-width:80px !important}
  .conference-table-p1 th:nth-child(4),.conference-table-p1 td:nth-child(4){min-width:90px !important}
  .conference-table-p1 th:nth-child(5),.conference-table-p1 td:nth-child(5){min-width:98px !important}
  .conference-table-p1 th:nth-child(6),.conference-table-p1 td:nth-child(6){min-width:92px !important}
}

/* 0.0.52 — Quebra padronizada exclusivamente em KG.
   Ex.: 0,500 = 500 g; 1,250 = 1 kg e 250 g. */
.conference-loss-value{
  width:100%;
  max-width:92px;
  display:block !important;
  margin:0 auto;
}
.conference-loss-value .conference-cell-input{
  width:100%;
  min-width:0;
  text-align:center;
  padding:0 8px;
}
/* O seletor foi removido do markup; esta regra protege contra resíduos de cache antigo. */
.conference-loss-cell .conference-unit-select{
  display:none !important;
}
.conference-table-p1 th:nth-child(9),.conference-table-p1 td:nth-child(9),
.conference-table-p2 th:nth-child(8),.conference-table-p2 td:nth-child(8){
  min-width:96px !important;
}
@media(max-width:800px){
  .conference-loss-value{max-width:104px}
}

/* 0.0.53 — filtros, histórico e auditoria da Conferência. */
.conference-active-filters{
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid #e3ebe5;
  border-radius:14px;
  background:#fbfdfb;
}
.conference-filter-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.conference-filter-title strong{display:block;color:var(--ink);font-size:12px;font-weight:800}
.conference-filter-title small{display:block;margin-top:2px;color:var(--muted);font-size:9.5px;font-weight:600}
.conference-active-filter-grid{
  display:grid;
  grid-template-columns:150px 150px minmax(190px,230px) minmax(220px,1fr) auto auto;
  gap:10px;
  align-items:end;
}
.conference-active-filter-grid label,
.conference-history-filters label{display:flex;min-width:0;flex-direction:column;gap:5px;color:var(--muted);font-size:9.5px;font-weight:750}
.conference-active-filter-grid input,
.conference-active-filter-grid select,
.conference-history-filters input,
.conference-history-filters select{
  width:100%;height:38px;margin:0;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);font-size:11px;font-weight:650;outline:none;
}
.conference-active-filter-grid input:focus,
.conference-active-filter-grid select:focus,
.conference-history-filters input:focus,
.conference-history-filters select:focus{border-color:var(--green-500);box-shadow:0 0 0 3px rgba(55,166,91,.1)}
.conference-divergence-toggle{height:38px!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:var(--panel);white-space:nowrap}
.conference-divergence-toggle input{width:15px!important;height:15px!important;padding:0!important;margin:0!important;box-shadow:none!important}
.conference-divergence-toggle span{color:var(--ink);font-size:10px;font-weight:700}
.conference-active-filter-grid>.btn{height:38px;white-space:nowrap}
.conference-filter-empty{margin:0 0 12px;padding:12px;border:1px dashed var(--line);border-radius:12px;background:var(--bg);color:var(--muted);font-size:11px;text-align:center}
.conference-filter-hidden{display:none!important}

/* Histórico incorporado à página, visualmente subordinado à conferência ativa. */
.conference-history-section{
  margin-top:18px;
  border:1px solid #e2ebe5;
  border-radius:16px;
  background:var(--panel);
  overflow:hidden;
  box-shadow:0 8px 22px rgba(10,35,20,.03);
}
.conference-history-toggle{
  width:100%;min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:0;background:#f8fbf9;color:var(--ink);text-align:left;cursor:pointer;
}
.conference-history-toggle:hover{background:#f3f9f5}
.conference-history-toggle strong{display:block;font-size:14px;font-weight:850}
.conference-history-toggle small{display:block;margin-top:3px;color:var(--muted);font-size:10.5px;font-weight:600}
.conference-history-toggle>span{color:var(--green-700);font-size:10.5px;font-weight:800;white-space:nowrap}
.conference-history-body{padding:14px 16px 16px;border-top:1px solid #e7eee9}
.conference-history-notice{margin:0 0 10px;padding:9px 11px;border:1px solid #cfe7d6;border-radius:9px;background:var(--green-50);color:var(--green-800);font-size:10.5px;font-weight:700}
.conference-history-filters{
  display:grid;
  grid-template-columns:145px 145px minmax(190px,230px) minmax(220px,1fr) 140px auto;
  gap:10px;
  align-items:end;
  margin-bottom:12px;
}
.conference-history-filters>.btn{height:38px}
.conference-history-table-wrap{width:100%;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.conference-history-table{min-width:1180px;margin:0}
.conference-history-table thead th{background:#f7faf8;color:var(--muted);font-size:9px;font-weight:800;white-space:nowrap}
.conference-history-table tbody td{font-size:10.5px;vertical-align:middle}
.conference-history-table tbody tr:hover td{background:#f8fcf9}
.conference-history-status{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:3px 8px;border-radius:999px;background:#eef2ef;color:#617066;font-size:9px;font-weight:800;white-space:nowrap}
.conference-history-status.is-corrected{background:#eaf4ff;color:#2e6299}
.conference-history-actions{display:flex;align-items:center;gap:5px;white-space:nowrap}
.conference-history-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:11px;color:var(--muted);font-size:10px;font-weight:650}
.conference-history-pager>div{display:flex;align-items:center;gap:8px}
.conference-history-pager select{height:30px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink);font-size:10px}

/* Drawer de consulta/correção/auditoria. */
.conference-drawer-backdrop{position:fixed;inset:0;z-index:1200;display:flex;justify-content:flex-end;background:rgba(7,20,13,.28);backdrop-filter:blur(2px)}
.conference-drawer{width:min(560px,92vw);height:100%;display:flex;flex-direction:column;background:var(--panel);box-shadow:-18px 0 40px rgba(6,26,14,.16);animation:conferenceDrawerIn .18s ease-out}
@keyframes conferenceDrawerIn{from{transform:translateX(24px);opacity:.7}to{transform:none;opacity:1}}
.conference-drawer-head{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line);background:#f8fbf9}
.conference-drawer-head h2{margin:0;color:var(--ink);font-size:17px;font-weight:850}
.conference-drawer-head p{margin:3px 0 0;color:var(--muted);font-size:10.5px;font-weight:600}
.conference-drawer-close{width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font-size:22px;line-height:1;cursor:pointer}
.conference-drawer-content{flex:1;overflow:auto;padding:16px 18px 22px}
.conference-drawer-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}
.conference-drawer-meta>div{padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.conference-drawer-meta span{display:block;color:var(--muted);font-size:9px;font-weight:700}
.conference-drawer-meta b{display:block;margin-top:3px;color:var(--ink);font-size:11px;font-weight:800}
.conference-drawer-block{margin-top:12px;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.conference-drawer-block h3{margin:0;padding:9px 11px;background:#f6faf7;color:var(--green-900);font-size:10.5px;font-weight:850;text-transform:uppercase;letter-spacing:.02em}
.conference-drawer-block>div>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border-top:1px solid var(--line)}
.conference-drawer-block span{color:var(--muted);font-size:10px;font-weight:650}
.conference-drawer-block b{color:var(--ink);font-size:11px;font-weight:800;text-align:right}

.conference-correction-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.conference-correction-grid label,.conference-correction-reason{display:flex;flex-direction:column;gap:5px;padding:10px;border:1px solid var(--line);border-radius:11px;background:var(--bg)}
.conference-correction-grid label>span,.conference-correction-reason>span{color:var(--ink);font-size:10.5px;font-weight:800}
.conference-correction-grid label>small{color:var(--muted);font-size:9px;font-weight:650}
.conference-correction-grid input{height:36px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);padding:0 9px;font-size:11px;font-weight:700}
.conference-correction-grid input:focus{outline:none;border-color:var(--green-500);box-shadow:0 0 0 3px rgba(55,166,91,.1)}
.conference-correction-reason{margin-top:12px}
.conference-correction-reason textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);padding:9px;font:inherit;font-size:11px}
.conference-correction-impact{margin-top:12px;padding:11px 12px;border:1px solid #dce8df;border-radius:11px;background:#f7fbf8}
.conference-correction-impact>strong{display:block;margin-bottom:7px;color:var(--green-900);font-size:10.5px;font-weight:850;text-transform:uppercase}
.conference-correction-impact #purchaseConferenceCorrectionImpact{color:var(--muted);font-size:10px;line-height:1.5}
.conference-correction-impact #purchaseConferenceCorrectionImpact>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 0}
.conference-correction-impact #purchaseConferenceCorrectionImpact span{color:var(--muted)}
.conference-correction-impact #purchaseConferenceCorrectionImpact b{color:var(--ink);font-size:10px}
.conference-drawer-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}

.conference-audit-timeline{position:relative;padding-left:18px}
.conference-audit-timeline:before{content:'';position:absolute;left:5px;top:6px;bottom:6px;width:1px;background:#d9e5dc}
.conference-audit-timeline article{position:relative;margin:0 0 14px;padding:0 0 14px 9px;border-bottom:1px solid var(--line)}
.conference-audit-timeline article:before{content:'';position:absolute;left:-17px;top:4px;width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:var(--green-500);box-shadow:0 0 0 1px #b8d4c0}
.conference-audit-timeline time{display:block;color:var(--muted);font-size:9px;font-weight:650}
.conference-audit-timeline article>b{display:block;margin-top:2px;color:var(--ink);font-size:10.5px}
.conference-audit-timeline article>div{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px;padding:8px;border-radius:8px;background:var(--bg)}
.conference-audit-timeline article>div strong{font-size:10px}.conference-audit-timeline article>div span{color:var(--muted);font-size:9.5px;font-weight:700}
.conference-audit-timeline p{margin:7px 0 0;color:var(--muted);font-size:10px;line-height:1.45}

@media(max-width:1180px){
  .conference-active-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .conference-history-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:800px){
  .conference-active-filter-grid,.conference-history-filters{grid-template-columns:1fr 1fr}
  .conference-divergence-toggle{min-height:42px}
  .conference-history-pager{align-items:flex-start;flex-direction:column}
  .conference-drawer{width:100vw;max-width:none}
  .conference-correction-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .conference-active-filter-grid,.conference-history-filters{grid-template-columns:1fr}
  .conference-history-toggle{align-items:flex-start;flex-direction:column}
  .conference-drawer-head{padding:14px}
  .conference-drawer-content{padding:14px}
  .conference-drawer-meta{grid-template-columns:1fr}
}
:root[data-theme="dark"] .conference-active-filters,
:root[data-theme="dark"] .conference-history-section,
:root[data-theme="dark"] .conference-drawer{background:var(--panel)}
:root[data-theme="dark"] .conference-history-toggle,
:root[data-theme="dark"] .conference-drawer-head,
:root[data-theme="dark"] .conference-drawer-block h3,
:root[data-theme="dark"] .conference-correction-impact{background:var(--green-50)}
.conference-correction-impact #purchaseConferenceCorrectionImpact.is-error{color:var(--red);font-weight:750}
.conference-legacy-note{margin-top:12px;padding:10px 11px;border:1px solid #e0e7e2;border-radius:10px;background:var(--bg);color:var(--muted);font-size:10px;line-height:1.5}

/* =========================================================
   0.0.54 — Compras > Concluídos
   Central profissional de consulta, correção e auditoria.
   Escopo local: não altera componentes globais.
   ========================================================= */

.completed-page{display:flex;flex-direction:column;gap:14px}
.completed-control{overflow:visible}
.completed-control .panel-head{margin-bottom:12px}
.completed-filter-bar{
  display:grid;
  grid-template-columns:150px 150px minmax(190px,1fr) minmax(230px,1.25fr) minmax(160px,.85fr) 145px auto auto auto;
  gap:10px;
  align-items:end;
}
.completed-filter-bar>label{display:flex;min-width:0;flex-direction:column;gap:5px;color:var(--muted);font-size:9.5px;font-weight:750}
.completed-filter-bar>label>span{white-space:nowrap}
.completed-filter-bar input:not([type="checkbox"]),
.completed-filter-bar select{
  width:100%;
  height:38px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel);
  color:var(--ink);
  padding:0 10px;
  outline:none;
  font-size:11px;
  font-weight:650;
}
.completed-filter-bar input:focus,
.completed-filter-bar select:focus{border-color:var(--green-500);box-shadow:0 0 0 3px rgba(55,166,91,.10)}
.completed-filter-toggle{
  min-height:38px;
  display:flex!important;
  flex-direction:row!important;
  align-items:center;
  gap:7px!important;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel);
  color:var(--ink)!important;
}
.completed-filter-toggle input{margin:0}
.completed-filter-bar>.btn{height:38px;white-space:nowrap}
.completed-kpis{grid-template-columns:repeat(5,minmax(0,1fr))}
.completed-notice{padding:10px 12px;border:1px solid #cfe7d6;border-radius:10px;background:var(--green-50);color:var(--green-800);font-size:10.5px;font-weight:750}
.completed-table-card{padding:0;overflow:hidden}
.completed-table-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}
.completed-table-head h2{margin:0;color:var(--ink);font-size:15px;font-weight:850}
.completed-table-head p{margin:3px 0 0;color:var(--muted);font-size:10.5px;font-weight:600}
.completed-table-wrap{width:100%;overflow:auto;background:var(--panel)}
.completed-table{width:100%;min-width:1325px;border-collapse:separate;border-spacing:0;table-layout:fixed;color:var(--ink);font-size:11px;font-variant-numeric:tabular-nums}
.completed-table col.c-date{width:82px}.completed-table col.c-supplier{width:125px}.completed-table col.c-item{width:190px}.completed-table col.c-purchase{width:125px}.completed-table col.c-compare{width:112px}.completed-table col.c-diff{width:82px}.completed-table col.c-weight{width:78px}.completed-table col.c-break{width:90px}.completed-table col.c-production{width:95px}.completed-table col.c-yield{width:105px}.completed-table col.c-by{width:105px}.completed-table col.c-status{width:88px}.completed-table col.c-actions{width:48px}
.completed-table thead th{
  position:sticky;
  top:0;
  z-index:3;
  height:48px;
  padding:8px 8px;
  border-bottom:1px solid #e2ebe5;
  background:#f7faf8;
  color:var(--green-900);
  font-size:10px;
  font-weight:800;
  line-height:1.1;
  letter-spacing:.01em;
  text-align:center;
  text-transform:uppercase;
}
.completed-table thead th small{display:block;margin-top:2px;color:var(--muted);font-size:8px;font-weight:600;text-transform:none}
.completed-table thead th:nth-child(2),.completed-table thead th:nth-child(3),.completed-table thead th:nth-child(4),.completed-table thead th:nth-child(11){text-align:left}
.completed-sort-date{border:0;background:transparent;color:inherit;font:inherit;font-weight:800;cursor:pointer;padding:0}
.completed-table tbody td{height:50px;padding:7px 8px;border-bottom:1px solid #e9efeb;background:var(--panel);vertical-align:middle;text-align:center;transition:background .14s ease}
.completed-table tbody td:nth-child(2),.completed-table tbody td:nth-child(3),.completed-table tbody td:nth-child(4),.completed-table tbody td:nth-child(11){text-align:left}
.completed-table thead th:nth-child(5),.completed-table tbody td:nth-child(5),.completed-table thead th:nth-child(9),.completed-table tbody td:nth-child(9),.completed-table thead th:nth-child(11),.completed-table tbody td:nth-child(11){border-left:1px solid #e3ebe5}
.completed-row{cursor:pointer;outline:none}
.completed-row:hover td{background:#f7fbf8}
.completed-row.is-selected td{background:#eef8f1}
.completed-row.is-selected td:first-child{box-shadow:inset 3px 0 0 var(--green-600)}
.completed-row:focus-visible td{outline:2px solid rgba(38,143,82,.62);outline-offset:-2px}
.completed-item-name{display:block;color:var(--ink);font-size:11.5px;font-weight:800;line-height:1.22}
.completed-table td small{display:block;margin-top:2px;color:var(--muted);font-size:8.8px;font-weight:600}
.completed-purchase-code{color:#4b5d50;font-size:10.5px;font-weight:650}
.completed-table td:nth-child(5){white-space:nowrap}.completed-table td:nth-child(5)>span{color:var(--muted)}.completed-table td:nth-child(5)>i{margin:0 5px;color:#a2ada5;font-style:normal}.completed-table td:nth-child(5)>b{font-weight:750}
.completed-diff{min-width:68px;min-height:27px;display:inline-flex;align-items:center;justify-content:center;padding:3px 7px;border-radius:9px;font-size:10.5px;font-weight:800;white-space:nowrap}
.completed-diff.is-negative{background:#fdecec;color:#d74b4b}.completed-diff.is-nonnegative{background:#eaf6ee;color:#1f8a57}
.completed-result{color:var(--green-800);font-weight:800}
.completed-status{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:3px 9px;border-radius:999px;background:#f0f3f1;color:#617067;font-size:9px;font-weight:800;white-space:nowrap}
.completed-status.is-corrected{background:#e8f3f5;color:#2b6871}.completed-status.is-pending{background:#fff4d9;color:#8d6900}
.completed-actions{position:relative;display:inline-block}
.completed-actions summary{list-style:none;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;color:var(--muted);font-size:18px;font-weight:800;cursor:pointer;user-select:none}
.completed-actions summary::-webkit-details-marker{display:none}.completed-actions summary:hover,.completed-actions[open] summary{background:var(--green-50);color:var(--green-800)}
.completed-actions-menu{position:absolute;right:0;top:36px;z-index:15;width:154px;padding:5px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:0 10px 26px rgba(7,28,15,.13)}
.completed-actions-menu button{width:100%;height:34px;border:0;border-radius:7px;background:transparent;color:var(--ink);padding:0 9px;text-align:left;font-size:10.5px;font-weight:700;cursor:pointer}.completed-actions-menu button:hover{background:var(--green-50);color:var(--green-800)}
.completed-empty{display:flex;align-items:center;justify-content:center;gap:12px;min-height:150px;color:var(--muted)}
.completed-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-top:1px solid var(--line);color:var(--muted);font-size:10px;font-weight:650}
.completed-pager>div{display:flex;align-items:center;gap:8px}.completed-pager label{display:flex;align-items:center;gap:6px}.completed-pager select{height:30px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink);font-size:10px}

/* Drawer detalhado */
.conference-view-drawer{width:min(560px,94vw)}
.conference-correction-drawer{width:min(620px,96vw)}
.conference-audit-drawer{width:min(560px,94vw)}
.conference-drawer-heading{min-width:0}.conference-drawer-eyebrow{display:block;margin-bottom:3px;color:var(--green-700);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.conference-drawer-heading h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conference-drawer-heading small{display:block;margin-top:4px;color:var(--muted);font-size:9.5px;font-weight:600}
.conference-drawer-head-actions{display:flex;align-items:center;gap:8px}
.conference-drawer-content{padding-bottom:24px}
.conference-detail-section{margin-top:16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}
.conference-detail-section-head{padding:10px 12px;border-bottom:1px solid var(--line);background:#f8fbf9}.conference-detail-section-head h3{margin:0;color:var(--ink);font-size:11.5px;font-weight:850}.conference-detail-section-head p{margin:2px 0 0;color:var(--muted);font-size:9.5px;font-weight:600}
.conference-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.conference-detail-grid>div{padding:11px 12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.conference-detail-grid>div:nth-child(2n){border-right:0}.conference-detail-grid>div:nth-last-child(-n+2){border-bottom:0}.conference-detail-grid span{display:block;color:var(--muted);font-size:9px;font-weight:700}.conference-detail-grid strong{display:block;margin-top:3px;color:var(--ink);font-size:12px;font-weight:800;word-break:break-word}
.conference-detail-result{border-color:#d4e7da;background:#f8fcf9}.conference-detail-result .conference-detail-section-head{background:#eef8f1}.conference-detail-result .conference-detail-grid>div:nth-last-child(-n+2) strong{color:var(--green-800);font-size:18px;font-weight:850}
.conference-p2-empty{padding:18px 12px;color:var(--muted);font-size:10.5px;font-weight:650;text-align:center}
.conference-audit-summary{display:grid;grid-template-columns:1fr 1fr}.conference-audit-summary>div{padding:10px 12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.conference-audit-summary>div:nth-child(2n){border-right:0}.conference-audit-summary span{display:block;color:var(--muted);font-size:9px;font-weight:700}.conference-audit-summary b{display:block;margin-top:3px;color:var(--ink);font-size:10.5px;font-weight:800}.conference-audit-empty,.conference-audit-pending{grid-column:1/-1!important;border-right:0!important;color:var(--muted);font-size:10px;font-weight:650}.conference-audit-pending{background:#fff8e7;color:#8b6700}
.conference-detail-audit>.btn{margin:10px 12px}
.conference-drawer-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px;border-top:1px solid var(--line);background:var(--panel)}.conference-drawer-footer>div{display:flex;align-items:center;gap:8px}

/* Auditoria */
.conference-audit-timeline{display:flex;flex-direction:column;gap:11px}.conference-audit-timeline article{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}.conference-audit-timeline article.is-pending{border-color:#eadcaf;background:#fffaf0}.conference-audit-original{background:#f8faf9!important}
.conference-audit-revision-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.conference-audit-revision-head strong{color:var(--green-900);font-size:10px;font-weight:850}.conference-audit-revision-head time{color:var(--muted);font-size:9px;font-weight:650}.conference-audit-timeline article>p{margin:6px 0;color:var(--muted);font-size:9.5px;line-height:1.4}.conference-audit-field{padding:8px 0;border-top:1px solid var(--line)}.conference-audit-field>strong{display:block;margin-bottom:4px;color:var(--ink);font-size:10px}.conference-audit-change{display:flex;align-items:center;gap:7px;flex-wrap:wrap;color:var(--muted);font-size:9.5px}.conference-audit-change i{font-style:normal;color:#9aa69d}.conference-audit-change b{color:var(--ink)}.conference-audit-reason{padding-top:7px;border-top:1px dashed var(--line)}

/* Modo corrigir */
.conference-correction-original-line{padding:8px 18px;border-bottom:1px solid var(--line);background:#fcfdfc;color:var(--muted);font-size:9.5px;font-weight:650}
.conference-correction-identification{display:grid;grid-template-columns:1fr 1fr;gap:8px}.conference-correction-identification>div{padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}.conference-correction-identification span{display:block;color:var(--muted);font-size:9px;font-weight:700}.conference-correction-identification b{display:block;margin-top:3px;color:var(--ink);font-size:10.5px;font-weight:800}
.conference-correction-section,.conference-correction-recalculated,.conference-correction-reason-card,.conference-correction-audit-preview{margin-top:14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}
.conference-correction-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line);background:#f8fbf9}.conference-correction-section-head h3{margin:0;color:var(--ink);font-size:11.5px;font-weight:850}.conference-correction-section-head p{margin:2px 0 0;color:var(--muted);font-size:9.3px}
.conference-correction-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px}
.conference-correction-field{position:relative;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--bg);transition:border-color .15s,background .15s}.conference-correction-field.is-changed{border-color:#bcdcc7;background:#f8fcf9}.conference-correction-field-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.conference-correction-field-head>strong{color:var(--ink);font-size:10.5px;font-weight:800}.conference-correction-restore{display:none;border:0;background:transparent;color:var(--green-700);font-size:9px;font-weight:800;cursor:pointer}.conference-correction-field.is-changed .conference-correction-restore{display:inline}.conference-correction-compare{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:7px;align-items:end}.conference-correction-compare>div>span,.conference-correction-compare label>span{display:block;margin-bottom:4px;color:var(--muted);font-size:8.5px;font-weight:700}.conference-correction-compare>div>b{display:flex;align-items:center;min-height:36px;color:var(--ink);font-size:10.5px;font-weight:800}.conference-correction-compare>i{padding-bottom:11px;color:#9eaaa1;font-style:normal}.conference-correction-input-wrap{display:flex;align-items:center;height:36px;border:1px solid var(--line);border-radius:8px;background:var(--panel);overflow:hidden}.conference-correction-input-wrap:focus-within{border-color:var(--green-500);box-shadow:0 0 0 3px rgba(55,166,91,.10)}.conference-correction-input-wrap input{min-width:0;width:100%;height:100%;border:0;background:transparent;color:var(--ink);padding:0 7px;outline:0;font-size:10.5px;font-weight:750}.conference-correction-input-wrap em{padding:0 7px;color:var(--muted);font-size:8.5px;font-style:normal;font-weight:800}.conference-correction-changed{display:none;margin-top:6px;color:var(--green-700);font-size:8.5px;font-weight:800}.conference-correction-field.is-changed .conference-correction-changed{display:block}
.conference-correction-recalculated>div:last-child{padding:10px 12px;color:var(--muted);font-size:10px}.conference-correction-recalculated>div:last-child>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 0;border-bottom:1px dashed var(--line)}.conference-correction-recalculated>div:last-child>div:last-child{border-bottom:0}.conference-correction-recalculated span{color:var(--muted)}.conference-correction-recalculated b{color:var(--ink);font-size:10px}
.conference-correction-impact{margin-top:14px}.conference-impact-acertos{margin:8px -2px -2px;padding:8px 9px;border-radius:8px;background:#fff8e8;color:#876300;font-size:9.5px;font-weight:700}
.conference-correction-reason-card{padding:11px 12px}.conference-correction-reason-card label{display:flex;flex-direction:column;gap:5px;margin-bottom:10px}.conference-correction-reason-card label:last-of-type{margin-bottom:0}.conference-correction-reason-card label>span{color:var(--ink);font-size:10px;font-weight:800}.conference-correction-reason-card label>span small{color:var(--muted);font-weight:600}.conference-correction-reason-card label>span b{color:var(--red)}.conference-correction-reason-card select,.conference-correction-reason-card textarea{width:100%;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);padding:8px 9px;outline:0;font:inherit;font-size:10.5px}.conference-correction-reason-card textarea{resize:vertical;min-height:82px}.conference-correction-reason-card select:focus,.conference-correction-reason-card textarea:focus{border-color:var(--green-500);box-shadow:0 0 0 3px rgba(55,166,91,.10)}.conference-correction-reason-card label>small{color:var(--muted);font-size:8.5px}.conference-correction-error{min-height:16px;color:var(--red);font-size:9.5px;font-weight:750}
.conference-correction-audit-preview{padding:11px 12px}.conference-correction-audit-preview h3{margin:0 0 8px;color:var(--ink);font-size:11px;font-weight:850}.conference-correction-audit-preview>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:5px 0}.conference-correction-audit-preview span{color:var(--muted);font-size:9px}.conference-correction-audit-preview b{color:var(--ink);font-size:9.5px;text-align:right}.conference-correction-audit-preview p{margin:8px 0;color:var(--muted);font-size:9px}

/* Etapa final de confirmação */
.conference-confirm-section{border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}.conference-confirm-section>h3{margin:0;padding:13px 14px 3px;color:var(--ink);font-size:15px;font-weight:850}.conference-confirm-section>p{margin:0;padding:0 14px 12px;color:var(--muted);font-size:10px}.conference-confirm-changes{border-top:1px solid var(--line)}.conference-confirm-changes>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;border-bottom:1px solid var(--line)}.conference-confirm-changes span{color:var(--muted);font-size:9.5px}.conference-confirm-changes b{color:var(--ink);font-size:10px;text-align:right}.conference-confirm-impact,.conference-confirm-reason,.conference-confirm-type{padding:11px 12px;border-top:1px solid var(--line);background:#f8fbf9}.conference-confirm-impact>strong,.conference-confirm-reason>span,.conference-confirm-type>span{display:block;margin-bottom:6px;color:var(--green-900);font-size:9.5px;font-weight:850;text-transform:uppercase}.conference-confirm-impact ul{margin:0;padding-left:18px;color:var(--muted);font-size:9.5px;line-height:1.55}.conference-confirm-reason p{margin:0;color:var(--ink);font-size:10px;line-height:1.45}.conference-confirm-type b{color:var(--ink);font-size:10px}

@media(max-width:1380px){
  .completed-filter-bar{grid-template-columns:140px 140px minmax(180px,1fr) minmax(210px,1.2fr) minmax(150px,.8fr) 140px;}
  .completed-filter-toggle{min-width:0}.completed-filter-bar>.btn{justify-self:start}
}
@media(max-width:1050px){
  .completed-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}
  .completed-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:800px){
  .completed-filter-bar{grid-template-columns:1fr 1fr}
  .completed-filter-search{grid-column:1/-1}
  .completed-kpis{grid-template-columns:1fr 1fr}
  .completed-pager{align-items:flex-start;flex-direction:column}.completed-pager>div{flex-wrap:wrap}
  .conference-view-drawer,.conference-correction-drawer,.conference-audit-drawer{width:100vw;max-width:none}
  .conference-detail-grid,.conference-audit-summary,.conference-correction-identification,.conference-correction-fields{grid-template-columns:1fr}
  .conference-detail-grid>div,.conference-audit-summary>div{border-right:0}
  .conference-correction-compare{grid-template-columns:1fr}.conference-correction-compare>i{padding:0;text-align:center;transform:rotate(90deg)}
  .conference-drawer-footer{align-items:stretch;flex-direction:column}.conference-drawer-footer>div{display:grid;grid-template-columns:1fr 1fr}.conference-drawer-footer>.btn{width:100%}
}
@media(max-width:520px){
  .completed-filter-bar{grid-template-columns:1fr}.completed-filter-search{grid-column:auto}.completed-filter-toggle{min-height:44px}.completed-filter-bar input:not([type="checkbox"]),.completed-filter-bar select{height:44px;font-size:16px}
  .completed-kpis{grid-template-columns:1fr 1fr}
  .conference-drawer-head{padding:13px 14px}.conference-drawer-head-actions{align-self:flex-start}.conference-drawer-heading h2{white-space:normal}.conference-drawer-content{padding:13px 14px 20px}.conference-drawer-footer{padding:10px 12px}
}

:root[data-theme="dark"] .completed-table thead th,
:root[data-theme="dark"] .conference-detail-section-head,
:root[data-theme="dark"] .conference-correction-section-head,
:root[data-theme="dark"] .conference-confirm-impact,
:root[data-theme="dark"] .conference-confirm-reason,
:root[data-theme="dark"] .conference-confirm-type{background:var(--green-50)}
:root[data-theme="dark"] .completed-row:hover td{background:var(--green-50)}
:root[data-theme="dark"] .completed-row.is-selected td{background:rgba(46,139,87,.12)}

/* 0.0.56 — Concluídos mais enxuto.
   Remove da tabela principal Compra, Diferença e Situação.
   Compra permanece pesquisável e disponível no drawer; divergência é indicada no comparativo. */
.completed-table{
  min-width:1158px;
}
.completed-table col.c-date{width:82px}
.completed-table col.c-supplier{width:140px}
.completed-table col.c-item{width:230px}
.completed-table col.c-compare{width:145px}
.completed-table col.c-weight{width:88px}
.completed-table col.c-break{width:90px}
.completed-table col.c-production{width:105px}
.completed-table col.c-yield{width:120px}
.completed-table col.c-by{width:110px}
.completed-table col.c-actions{width:48px}

/* Reset dos alinhamentos/divisores da grade antiga de 13 colunas. */
.completed-table thead th,
.completed-table tbody td{
  text-align:center;
  border-left:none !important;
}
.completed-table thead th:nth-child(2),
.completed-table thead th:nth-child(3),
.completed-table thead th:nth-child(9),
.completed-table tbody td:nth-child(2),
.completed-table tbody td:nth-child(3),
.completed-table tbody td:nth-child(9){
  text-align:left;
}

/* Divisão conceitual: Identificação | Conferência | Resultado | Auditoria. */
.completed-table thead th:nth-child(4),
.completed-table tbody td:nth-child(4),
.completed-table thead th:nth-child(7),
.completed-table tbody td:nth-child(7),
.completed-table thead th:nth-child(9),
.completed-table tbody td:nth-child(9){
  border-left:1px solid #e3ebe5 !important;
}

/* Comprado → Recebido carrega a divergência sem uma coluna redundante. */
.completed-compare{
  white-space:nowrap;
}
.completed-compare>span{
  color:var(--muted);
  font-weight:650;
}
.completed-compare>i{
  margin:0 6px;
  color:#a2ada5;
  font-style:normal;
}
.completed-compare>b{
  display:inline-flex;
  min-height:25px;
  align-items:center;
  justify-content:center;
  padding:2px 6px;
  border-radius:7px;
  font-weight:800;
}
.completed-compare.is-short>b{
  color:#d74b4b;
  background:#fdecec;
}
.completed-compare.is-equal>b,
.completed-compare.is-over>b{
  color:#1f8a57;
  background:#eaf6ee;
}

/* Mais hierarquia para o que realmente importa na consulta. */
.completed-item-name{
  font-size:12px;
}
.completed-result{
  color:var(--green-800);
  font-weight:850;
}

@media(max-width:1179px){
  .completed-table{min-width:1120px}
}

/* Filtros de Concluídos sem o campo Situação, que deixou de ser uma dimensão principal da consulta. */
.completed-filter-bar{
  grid-template-columns:150px 150px minmax(190px,1fr) minmax(230px,1.25fr) minmax(160px,.85fr) auto auto auto;
}
@media(max-width:1320px) and (min-width:981px){
  .completed-filter-bar{grid-template-columns:140px 140px minmax(180px,1fr) minmax(210px,1.2fr) minmax(150px,.8fr) auto auto auto;}
}
@media(max-width:1050px){
  .completed-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:800px){
  .completed-filter-bar{grid-template-columns:1fr 1fr;}
  .completed-filter-search{grid-column:1/-1;}
}
@media(max-width:520px){
  .completed-filter-bar{grid-template-columns:1fr;}
  .completed-filter-search{grid-column:auto;}
}

/* 0.0.60 — Sobra em unidade + KG na Conferência.
   Mantém uma única coluna SOBRA, com dois campos compactos, sem alterar a estrutura geral. */
.conference-leftover-cell{
  min-width:128px!important;
}
.conference-leftover-editor{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:5px;
  align-items:start;
}
.conference-leftover-editor>label{
  min-width:0;
  display:grid;
  grid-template-rows:32px auto;
  gap:2px;
  margin:0;
}
.conference-leftover-editor .conference-cell-input{
  width:100%;
  min-width:0;
  padding-left:4px;
  padding-right:4px;
  text-align:center;
}
.conference-leftover-editor small{
  display:block;
  margin:0;
  text-align:center;
  color:var(--muted);
  font-size:8px;
  font-weight:800;
  line-height:1;
  text-transform:uppercase;
}

/* A coluna Sobra ganha espaço suficiente sem criar uma coluna nova. */
.conference-table-p1 th:nth-child(7),
.conference-table-p1 td:nth-child(7){
  width:11.5%!important;
  min-width:132px!important;
}
.conference-table-p2 th:nth-child(6),
.conference-table-p2 td:nth-child(6){
  width:12.5%!important;
  min-width:132px!important;
}

/* Saldo/Disponível da P2 podem mostrar CX + KG sem cortar. */
.conference-table-p2 td:nth-child(3) b,
.conference-table-p2 td:nth-child(5) b{
  white-space:normal;
  line-height:1.2;
  text-align:center;
}

@media(max-width:1179px){
  .conference-table-p1{min-width:1220px!important}
  .conference-table-p2{min-width:1100px!important}
}

@media(max-width:800px){
  .conference-leftover-editor>label{grid-template-rows:40px auto}
  .conference-leftover-cell{min-width:142px!important}
}

/* 0.0.65 — Produção 2: Entrada em CX + KG e Disponível convertido em KG pelo rendimento da P1. */
.conference-table-p2 th:nth-child(4),
.conference-table-p2 td:nth-child(4){
  width:12.5%!important;
  min-width:132px!important;
}
.conference-table-p2 th:nth-child(5),
.conference-table-p2 td:nth-child(5){
  width:9.5%!important;
  min-width:96px!important;
}
.conference-extra-cell .conference-leftover-editor{max-width:136px;margin:0 auto;}
.conference-p2-available{color:#0b6b3b;font-weight:800;}

/* =========================================================
   0.0.66 — Conferência > Concluídos mais compacto e profissional.
   - Aguardando apuração integrado a Concluídos.
   - Filtros primários + avançados.
   - Indicadores em faixa compacta.
   - Tabela sem Peso/Compra/Situação e com linha inteira clicável.
   ========================================================= */

.purchase-conference-subtabs{gap:8px}
.purchase-conference-subtabs .btn{min-height:38px}

.completed-page{gap:12px}
.completed-page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:2px 2px 0}
.completed-page-intro h2{margin:0;color:var(--ink);font-size:17px;font-weight:850}
.completed-page-intro p{margin:4px 0 0;color:var(--muted);font-size:10.5px;font-weight:600}

.completed-filters-modern{padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.completed-filter-primary{display:grid;grid-template-columns:minmax(280px,1.45fr) minmax(260px,1.05fr) minmax(190px,.85fr) auto auto;gap:10px;align-items:end}
.completed-filter-primary>label,.completed-period-field,.completed-filter-advanced>label{min-width:0}
.completed-filter-primary label,.completed-filter-advanced label{display:flex;flex-direction:column;gap:5px}
.completed-filter-primary label>span,.completed-period-field>span,.completed-filter-advanced label>span{color:var(--muted);font-size:9.5px;font-weight:750}
.completed-filter-primary input,.completed-filter-primary select,.completed-filter-advanced select{width:100%;height:38px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink);padding:0 10px;outline:none;font-size:11px;font-weight:650}
.completed-filter-primary input:focus,.completed-filter-primary select:focus,.completed-filter-advanced select:focus{border-color:var(--green-500);box-shadow:0 0 0 3px rgba(55,166,91,.10)}
.completed-modern-search input{font-size:12px}
.completed-period-field{display:flex;flex-direction:column;gap:5px}
.completed-period-field>div{display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);align-items:center;border:1px solid var(--line);border-radius:9px;background:var(--panel);overflow:hidden}
.completed-period-field input{height:36px!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0 8px!important}
.completed-period-field i{color:var(--muted);font-style:normal;text-align:center;font-size:10px}
.completed-more-filters,.completed-clear-filters{height:38px;white-space:nowrap}
.completed-more-filters.has-active{color:var(--green-800);background:var(--green-50)}
.completed-more-filters b{margin-left:4px;color:var(--green-600)}
.completed-filter-advanced{display:none;grid-template-columns:minmax(180px,240px) auto auto;gap:10px;align-items:end;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.completed-filter-advanced.is-open{display:grid}
.completed-modern-toggle{min-height:38px!important;display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--ink)!important}
.completed-modern-toggle input{margin:0}.completed-modern-toggle span{color:var(--ink)!important;white-space:nowrap}

.completed-summary-strip{display:flex;align-items:center;gap:12px;min-height:42px;padding:8px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--muted);font-size:10.5px;font-weight:650;white-space:nowrap;overflow:auto}
.completed-summary-strip span{display:flex;align-items:baseline;gap:5px}
.completed-summary-strip strong{color:var(--ink);font-size:14px;font-weight:850;font-variant-numeric:tabular-nums}
.completed-summary-strip i{width:1px;height:18px;flex:0 0 1px;background:var(--line)}
.completed-summary-strip .has-pending strong{color:#8a6500}

.completed-yield-inline{border:1px solid #dfe9e2;border-radius:12px;background:var(--panel);overflow:hidden}
.completed-yield-inline-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px}
.completed-yield-inline-head>div{min-width:0}.completed-yield-inline-head strong{display:block;color:var(--ink);font-size:11.5px;font-weight:800}.completed-yield-inline-head span{display:block;margin-top:2px;color:var(--muted);font-size:9.5px;font-weight:600}
.completed-yield-workspace{padding:0 10px 10px;border-top:1px solid var(--line);background:#fbfdfb}
.completed-yield-workspace>.card{margin-top:10px;box-shadow:none}
.completed-yield-pending{display:inline-flex;margin-top:4px;padding:2px 6px;border-radius:999px;background:#fff4d9;color:#8d6900;font-size:8px;font-style:normal;font-weight:800}

.completed-table-card{border-radius:14px}
.completed-table-head{padding:12px 14px}
.completed-table-head h2{font-size:14px}.completed-table-head p{font-size:9.8px}
.completed-table-wrap{overflow:auto}
.completed-table.completed-table-compact{min-width:980px;width:100%;table-layout:fixed}
.completed-table.completed-table-compact col.c-date{width:82px}
.completed-table.completed-table-compact col.c-supplier{width:145px}
.completed-table.completed-table-compact col.c-item{width:245px}
.completed-table.completed-table-compact col.c-received{width:120px}
.completed-table.completed-table-compact col.c-break{width:90px}
.completed-table.completed-table-compact col.c-production{width:100px}
.completed-table.completed-table-compact col.c-yield{width:125px}
.completed-table.completed-table-compact col.c-by{width:112px}
.completed-table.completed-table-compact col.c-actions{width:48px}
.completed-table.completed-table-compact thead th,.completed-table.completed-table-compact tbody td{border-left:none!important;text-align:center}
.completed-table.completed-table-compact thead th:nth-child(2),.completed-table.completed-table-compact thead th:nth-child(3),.completed-table.completed-table-compact thead th:nth-child(8),.completed-table.completed-table-compact tbody td:nth-child(2),.completed-table.completed-table-compact tbody td:nth-child(3),.completed-table.completed-table-compact tbody td:nth-child(8){text-align:left}
.completed-table.completed-table-compact thead th:nth-child(4),.completed-table.completed-table-compact tbody td:nth-child(4),.completed-table.completed-table-compact thead th:nth-child(6),.completed-table.completed-table-compact tbody td:nth-child(6),.completed-table.completed-table-compact thead th:nth-child(8),.completed-table.completed-table-compact tbody td:nth-child(8){border-left:1px solid #e3ebe5!important}
.completed-table.completed-table-compact tbody td{height:52px;padding-top:8px;padding-bottom:8px}
.completed-table.completed-table-compact thead th:last-child,.completed-table.completed-table-compact tbody td:last-child{position:sticky;right:0;z-index:4;background:var(--panel);box-shadow:-1px 0 0 var(--line)}
.completed-table.completed-table-compact thead th:last-child{z-index:6;background:#f7faf8}
.completed-table.completed-table-compact .completed-row:hover td:last-child{background:#f7fbf8}
.completed-table.completed-table-compact .completed-row.is-selected td:last-child{background:#eef8f1}
.completed-received{white-space:nowrap;font-variant-numeric:tabular-nums}
.completed-received>span{color:var(--muted);font-weight:650}.completed-received>i{margin:0 5px;color:#9aa79f;font-style:normal}.completed-received>b{font-weight:800}
.completed-received.is-short>b{display:inline-flex;align-items:center;min-height:24px;padding:2px 6px;border-radius:7px;background:#fdecec;color:#d74b4b}
.completed-received.is-over>b{display:inline-flex;align-items:center;min-height:24px;padding:2px 6px;border-radius:7px;background:#eaf6ee;color:#1f8a57}
.completed-received.is-equal>b{color:var(--ink)}
.completed-row{cursor:pointer}
.completed-row:hover td{background:#f7fbf8}
.completed-row:hover .completed-item-name{color:var(--green-800)}
.completed-actions-menu{right:4px}
.completed-pager{padding:9px 12px}

@media(max-width:1180px){
  .completed-filter-primary{grid-template-columns:minmax(250px,1.3fr) minmax(250px,1fr) minmax(180px,.8fr) auto}.completed-clear-filters{grid-column:auto}.completed-table.completed-table-compact{min-width:940px}
}
@media(max-width:900px){
  .completed-filter-primary{grid-template-columns:1fr 1fr}.completed-modern-search{grid-column:1/-1}.completed-filter-advanced{grid-template-columns:1fr 1fr}.completed-modern-toggle:last-child{grid-column:1/-1}.completed-summary-strip{gap:9px}
}
@media(max-width:620px){
  .completed-filter-primary{grid-template-columns:1fr}.completed-modern-search{grid-column:auto}.completed-period-field>div{grid-template-columns:1fr 16px 1fr}.completed-filter-primary input,.completed-filter-primary select{font-size:16px;height:44px}.completed-period-field input{height:42px!important;font-size:14px!important}.completed-more-filters,.completed-clear-filters{height:44px}.completed-filter-advanced{grid-template-columns:1fr}.completed-modern-toggle:last-child{grid-column:auto;min-height:44px!important}.completed-yield-inline-head{align-items:flex-start;flex-direction:column}.completed-yield-inline-head .btn{width:100%}.completed-table.completed-table-compact{min-width:900px}.completed-summary-strip{padding:8px 10px}
}

:root[data-theme="dark"] .completed-yield-workspace{background:var(--surface-2,var(--panel))}
:root[data-theme="dark"] .completed-table.completed-table-compact thead th:last-child{background:var(--green-50)}
:root[data-theme="dark"] .completed-table.completed-table-compact tbody td:last-child{background:var(--panel)}
:root[data-theme="dark"] .completed-table.completed-table-compact .completed-row:hover td:last-child{background:var(--green-50)}
:root[data-theme="dark"] .completed-table.completed-table-compact .completed-row.is-selected td:last-child{background:rgba(46,139,87,.12)}

/* 0.0.67 — Concluídos: menu de ações estável e único. */
.completed-actions-menu{
  position:fixed!important;
  right:auto!important;
  top:auto;
  left:auto;
  z-index:2500!important;
  width:170px;
  max-width:calc(100vw - 16px);
}
.completed-actions[open] summary{position:relative;z-index:2501}

/* 0.0.69 — Conferência unificada: sem subtabs redundantes. */
.purchase-conference-unified{display:flex;flex-direction:column;gap:22px;min-width:0}
.conference-unified-active,.conference-unified-completed{min-width:0}
.conference-unified-active+.conference-unified-completed{padding-top:4px;border-top:1px solid var(--line)}

/* Ações explícitas no lugar do antigo botão de três pontos. */
.completed-table.completed-table-compact col.c-actions{width:92px}
.completed-actions{display:inline-block;position:relative}
.completed-actions summary.completed-actions-trigger{
  width:auto;
  min-width:72px;
  height:34px;
  padding:0 10px;
  gap:5px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel);
  color:var(--green-800);
  font-size:10.5px;
  font-weight:800;
  white-space:nowrap;
}
.completed-actions summary.completed-actions-trigger span{font-size:10px;color:var(--muted)}
.completed-actions summary.completed-actions-trigger:hover,
.completed-actions[open] summary.completed-actions-trigger{background:var(--green-50);border-color:#cfe3d5;color:var(--green-800)}
.completed-table.completed-table-compact thead th:last-child{font-size:9.5px;font-weight:800;color:var(--green-800)}
.completed-table-head p{max-width:620px}

@media(max-width:620px){
  .purchase-conference-unified{gap:16px}
  .completed-table.completed-table-compact col.c-actions{width:88px}
  .completed-actions summary.completed-actions-trigger{min-width:68px;height:36px;padding:0 9px}
}


/* 0.0.71 — Ações de Concluídos: gatilho e menu mais limpos e profissionais. */
.completed-table.completed-table-compact col.c-actions{width:128px}
.completed-table.completed-table-compact th:last-child,
.completed-table.completed-table-compact td:last-child{text-align:center}
.completed-actions{display:inline-block;position:relative}
.completed-actions summary.completed-actions-trigger{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:96px;
  height:38px;
  padding:0 12px;
  border:1px solid #d8e5dc;
  border-radius:12px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbf9 100%);
  color:var(--green-800);
  font-size:12px;
  font-weight:800;
  letter-spacing:-.01em;
  white-space:nowrap;
  box-shadow:0 1px 2px rgba(7,28,15,.04);
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease,transform .18s ease;
}
.completed-actions-trigger-icon{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--green-50);
  color:var(--green-700);
  font-size:14px;
  line-height:1;
}
.completed-actions-trigger-label{line-height:1}
.completed-actions-trigger-caret{font-size:10px;color:var(--muted);line-height:1;transform:translateY(1px)}
.completed-actions summary.completed-actions-trigger:hover,
.completed-actions summary.completed-actions-trigger:focus-visible,
.completed-actions[open] summary.completed-actions-trigger{
  background:#fff;
  border-color:#bfd7c6;
  box-shadow:0 10px 24px rgba(7,28,15,.08);
  color:var(--green-900);
}
.completed-actions summary.completed-actions-trigger:hover .completed-actions-trigger-icon,
.completed-actions[open] summary.completed-actions-trigger .completed-actions-trigger-icon{background:#e8f5ec;color:var(--green-800)}
.completed-actions summary.completed-actions-trigger:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(38,143,82,.16),0 10px 24px rgba(7,28,15,.08)}
.completed-actions-menu{
  width:188px;
  padding:8px;
  border:1px solid #dce8df;
  border-radius:14px;
  background:#fff;
  box-shadow:0 18px 42px rgba(7,28,15,.14);
}
.completed-actions-menu button{
  width:100%;
  min-height:38px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--ink);
  text-align:left;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
}
.completed-actions-menu button::before{
  width:18px;
  flex:0 0 18px;
  text-align:center;
  font-size:13px;
  color:var(--green-700);
}
.completed-actions-menu .completed-action-view::before{content:'◉';}
.completed-actions-menu .completed-action-correct::before{content:'✎';font-size:12px;}
.completed-actions-menu .completed-action-audit::before{content:'↺';}
.completed-actions-menu .completed-action-yield::before{content:'≈';font-size:14px;}
.completed-actions-menu button:hover{background:var(--green-50);color:var(--green-800)}
.completed-actions-menu button:hover::before{color:var(--green-800)}
.completed-table-head p{max-width:620px}
:root[data-theme="dark"] .completed-actions summary.completed-actions-trigger{
  background:rgba(255,255,255,.03);
  border-color:rgba(255,255,255,.08);
  color:var(--green-100);
  box-shadow:none;
}
:root[data-theme="dark"] .completed-actions-trigger-icon{background:rgba(46,139,87,.18);color:var(--green-100)}
:root[data-theme="dark"] .completed-actions-trigger-caret{color:var(--muted)}
:root[data-theme="dark"] .completed-actions summary.completed-actions-trigger:hover,
:root[data-theme="dark"] .completed-actions summary.completed-actions-trigger:focus-visible,
:root[data-theme="dark"] .completed-actions[open] summary.completed-actions-trigger{
  background:rgba(46,139,87,.12);
  border-color:rgba(46,139,87,.35);
  color:#fff;
  box-shadow:0 14px 30px rgba(0,0,0,.28);
}
:root[data-theme="dark"] .completed-actions-menu{
  background:var(--panel);
  border-color:rgba(255,255,255,.08);
  box-shadow:0 18px 40px rgba(0,0,0,.36);
}
:root[data-theme="dark"] .completed-actions-menu button{color:var(--ink)}
:root[data-theme="dark"] .completed-actions-menu button:hover{background:rgba(46,139,87,.12);color:#fff}
@media(max-width:620px){
  .completed-table.completed-table-compact col.c-actions{width:118px}
  .completed-actions summary.completed-actions-trigger{min-width:90px;height:36px;padding:0 10px;font-size:11.5px}
  .completed-actions-menu{width:180px}
}


/* 0.0.72 — Ações visíveis por linha, sem dropdown. */
.completed-table.completed-table-compact col.c-actions{width:152px}
.completed-table.completed-table-compact th:last-child,
.completed-table.completed-table-compact td:last-child{vertical-align:middle;text-align:center}
.completed-inline-actions{display:flex;flex-direction:column;gap:7px;align-items:stretch;min-width:128px}
.completed-inline-actions .completed-inline-btn{
  width:100%;
  min-height:34px;
  padding:0 12px;
  border-radius:12px;
  justify-content:center;
  font-size:12px;
  font-weight:800;
  box-shadow:none;
}
.completed-inline-actions .completed-action-view{background:#fff;border:1px solid #d9e4dd;color:#314235}
.completed-inline-actions .completed-action-view:hover{background:#f8fbf9;border-color:#c6d8cd;color:#173d24}
.completed-inline-actions .completed-action-correct,
.completed-inline-actions .completed-action-yield,
.completed-inline-actions .completed-action-audit.btn{border:1px solid #cae2d1}
.completed-inline-link{
  border:0;
  background:transparent;
  color:var(--green-700);
  font-size:11px;
  font-weight:800;
  line-height:1.2;
  padding:0;
  text-decoration:underline;
  text-underline-offset:2px;
  cursor:pointer;
}
.completed-inline-link:hover{color:var(--green-900)}
:root[data-theme="dark"] .completed-inline-actions .completed-action-view{background:rgba(255,255,255,.03);border-color:rgba(255,255,255,.08);color:var(--ink)}
:root[data-theme="dark"] .completed-inline-actions .completed-action-view:hover{background:rgba(255,255,255,.06);border-color:rgba(46,139,87,.28);color:#fff}
:root[data-theme="dark"] .completed-inline-link{color:#8ed5a5}
@media(max-width:760px){
  .completed-table.completed-table-compact col.c-actions{width:136px}
  .completed-inline-actions{min-width:112px}
  .completed-inline-actions .completed-inline-btn{padding:0 10px;font-size:11.5px}
}

/* 0.0.73 — Conferência adaptativa por CX / KG / UN */
.conference-control-group{margin:0 0 14px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--panel)}
.conference-control-group:last-child{margin-bottom:0}
.conference-control-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,var(--green-50),rgba(255,255,255,.35))}
.conference-control-heading>div{display:flex;align-items:center;gap:10px;min-width:0}
.conference-control-heading strong{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:24px;padding:0 8px;border-radius:999px;background:var(--green-800);color:#fff;font-size:10px;font-weight:900}
.conference-control-heading small{color:var(--muted);font-size:10.5px;font-weight:700}
.conference-control-group .conference-table-scroll{border:0;border-radius:0}
.conference-control-group .conference-operation-table{margin:0}
.conference-operation-table.control-kg,.conference-operation-table.control-un{min-width:1040px}
.conference-operation-table.control-cx{min-width:1180px}
.conference-operation-table.control-kg .conference-item-cell small,
.conference-operation-table.control-un .conference-item-cell small,
.conference-operation-table.control-cx .conference-item-cell small{white-space:nowrap}
.conference-p1-row.control-un .conference-loss-editor small,
.conference-p2-row.control-un .conference-loss-editor small{color:var(--green-800);font-weight:900}
.conference-p1-row.control-kg .conference-leftover-editor,
.conference-p2-row.control-kg .conference-leftover-editor,
.conference-p1-row.control-un .conference-leftover-editor,
.conference-p2-row.control-un .conference-leftover-editor{grid-template-columns:1fr}
.conference-lot-summary .conference-summary-grid strong{font-variant-numeric:tabular-nums}
@media(max-width:720px){
  .conference-control-heading{align-items:flex-start}.conference-control-heading>div{align-items:flex-start;flex-direction:column;gap:4px}
  .conference-operation-table.control-kg,.conference-operation-table.control-un{min-width:920px}
  .conference-operation-table.control-cx{min-width:1080px}
}
:root[data-theme="dark"] .conference-control-heading{background:rgba(46,139,87,.09)}


/* 0.0.73 — grupos adaptativos CX / KG / UN. */
.conference-control-label{display:flex;align-items:center;gap:8px;margin:0 0 9px;font-size:10px;font-weight:900;letter-spacing:.045em;text-transform:uppercase;color:var(--green-800)}
.conference-control-label::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--green-600);box-shadow:0 0 0 3px var(--green-50)}
.conference-control-group{min-width:0}
.conference-control-group.control-cx .conference-operation-table{min-width:1120px}
.conference-control-group.control-kg .conference-operation-table{min-width:900px}
.conference-control-group.control-un .conference-operation-table{min-width:900px}
.conference-control-group.control-un .conference-result-value,
.conference-control-group.control-kg .conference-result-value{white-space:nowrap}

/* 0.0.149 — feedback de salvamento por etapa sem concluir a conferência */
.conference-validation-box.is-success{
  border-color:#b9dec7;
  background:#edf8f1;
  color:#17653a;
}
html[data-theme='dark'] .conference-validation-box.is-success,
.theme-dark .conference-validation-box.is-success{
  border-color:#285b3c;
  background:#142b1d;
  color:#a9e1bd;
}


/* conference-assignee-2.3.6.css */
/* 2.3.6 — Seleção profissional de conferente. Apenas usuários ativos com perfil Conferente. */
.completed-table.completed-table-compact .completed-assignee-th{
  position:relative;
  padding:0!important;
  overflow:visible;
}
.completed-assignee-trigger{
  appearance:none;
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-radius:0;
  padding:8px 10px;
  background:transparent;
  color:var(--ink);
  font:inherit;
  font-size:10px;
  font-weight:850;
  line-height:1.15;
  letter-spacing:.01em;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease;
}
.completed-assignee-trigger i{
  width:7px;
  height:7px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  opacity:.72;
}
.completed-assignee-trigger:hover,
.completed-assignee-trigger:focus-visible{
  background:rgba(31,143,75,.075);
  color:var(--green-800);
}
.completed-assignee-trigger:focus-visible{
  outline:none;
  box-shadow:inset 0 0 0 2px rgba(31,143,75,.30);
}
.completed-assignee-trigger:disabled{
  cursor:not-allowed;
  opacity:.62;
}
.completed-assignee-backdrop{
  position:fixed;
  inset:0;
  z-index:10080;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(9,24,17,.34);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px);
}
.completed-assignee-modal{
  width:min(440px,calc(100vw - 32px));
  max-height:min(620px,calc(100vh - 48px));
  overflow:hidden;
  border:1px solid rgba(31,143,75,.18);
  border-radius:22px;
  background:var(--panel,#fff);
  box-shadow:0 24px 70px rgba(10,31,20,.20),0 4px 16px rgba(10,31,20,.08);
  animation:completedAssigneeIn .16s ease-out;
}
@keyframes completedAssigneeIn{
  from{opacity:0;transform:translateY(8px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.completed-assignee-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:22px 22px 16px;
  border-bottom:1px solid var(--line,#e2e9e4);
}
.completed-assignee-modal-head>div>span{
  display:block;
  margin-bottom:4px;
  color:var(--green-700,#18773d);
  font-size:10px;
  font-weight:850;
  letter-spacing:.10em;
}
.completed-assignee-modal-head h3{
  margin:0;
  color:var(--ink,#102132);
  font-size:20px;
  line-height:1.2;
}
.completed-assignee-modal-head p{
  margin:7px 0 0;
  color:var(--muted,#607080);
  font-size:12px;
  line-height:1.45;
}
.completed-assignee-close{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border:1px solid var(--line,#e2e9e4);
  border-radius:10px;
  background:transparent;
  color:var(--muted,#607080);
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.completed-assignee-close:hover{background:rgba(31,143,75,.07);color:var(--green-800,#126132)}
.completed-assignee-list{
  display:grid;
  gap:8px;
  max-height:430px;
  overflow:auto;
  padding:14px;
}
.completed-assignee-option{
  appearance:none;
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 14px;
  border:1px solid var(--line,#e2e9e4);
  border-radius:13px;
  background:var(--panel,#fff);
  color:var(--ink,#102132);
  font:inherit;
  font-size:14px;
  font-weight:750;
  text-align:left;
  cursor:pointer;
  transition:transform .12s ease,border-color .12s ease,background .12s ease,box-shadow .12s ease;
}
.completed-assignee-option:hover,
.completed-assignee-option:focus-visible{
  outline:none;
  border-color:rgba(31,143,75,.38);
  background:rgba(31,143,75,.055);
  box-shadow:0 5px 14px rgba(16,82,44,.07);
  transform:translateY(-1px);
}
.completed-assignee-option b{
  width:24px;
  height:24px;
  flex:0 0 24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#fff;
  font-size:13px;
}
.completed-assignee-option.is-selected{
  border-color:rgba(31,143,75,.42);
  background:rgba(31,143,75,.08);
  color:var(--green-800,#126132);
}
.completed-assignee-option.is-selected b{background:var(--green-700,#18773d)}
.completed-assignee-empty{
  padding:24px 18px;
  text-align:center;
  border:1px dashed var(--line,#dce6df);
  border-radius:14px;
}
.completed-assignee-empty strong{display:block;color:var(--ink,#102132);font-size:14px}
.completed-assignee-empty span{display:block;margin-top:6px;color:var(--muted,#607080);font-size:12px;line-height:1.45}
:root[data-theme="dark"] .completed-assignee-backdrop,
.theme-dark .completed-assignee-backdrop{background:rgba(0,0,0,.56)}
:root[data-theme="dark"] .completed-assignee-modal,
.theme-dark .completed-assignee-modal{background:var(--panel,#17211b)}
:root[data-theme="dark"] .completed-assignee-option,
.theme-dark .completed-assignee-option{background:rgba(255,255,255,.02)}
@media (max-width:900px){
  .completed-assignee-trigger{font-size:9px;padding-left:6px;padding-right:6px}
  .completed-assignee-backdrop{padding:16px}
  .completed-assignee-modal-head{padding:18px 18px 14px}
}


/* purchase-processed-0.0.75.css */
/* Produção Só Folhas 0.0.55
   Escopo exclusivo: Compras > Nova Compra > Processados.
   Simplifica adição, edição do nome na compra, linhas compactas e busca secundária discreta. */

.purchase-proto-processados .purchase-proto-registered-picker{
  grid-template-columns:minmax(180px,.55fr) minmax(380px,1.75fr);
  gap:14px;
  margin-bottom:10px;
  padding:10px 12px;
  border-radius:10px;
  background:var(--panel,#f8fbf9);
}
.purchase-proto-processados .purchase-proto-picker-copy{gap:2px}
.purchase-proto-processados .purchase-proto-picker-copy b{font-size:12px;font-weight:800}
.purchase-proto-processados .purchase-proto-picker-copy span{font-size:10px;line-height:1.25}
.purchase-proto-processados .purchase-proto-registered-input input{
  min-height:40px;
  height:40px;
  font-size:13px;
  border-radius:9px;
}

/* A busca dentro da lista deixa de competir com a busca principal. */
.purchase-proto-processados .purchase-proto-search-secondary{
  width:max-content;
  max-width:100%;
  margin:2px 0 9px;
}
.purchase-proto-processados .purchase-proto-search-secondary>summary{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:32px;
  padding:0 9px;
  border:1px solid var(--border,#dce6df);
  border-radius:8px;
  background:transparent;
  color:var(--muted,#607066);
  font-size:10.5px;
  font-weight:750;
  cursor:pointer;
  list-style:none;
  user-select:none;
}
.purchase-proto-processados .purchase-proto-search-secondary>summary::-webkit-details-marker{display:none}
.purchase-proto-processados .purchase-proto-search-secondary>summary:hover{background:var(--panel,#f8fbf9)}
.purchase-proto-processados .purchase-proto-search-secondary[open]>summary{
  color:var(--green-800,#0b6b36);
  border-color:#bfd7c6;
  background:#f3faf5;
}
.purchase-proto-processados .purchase-proto-search-secondary-body{
  width:min(420px,calc(100vw - 72px));
  margin-top:6px;
}
.purchase-proto-processados .purchase-proto-search-secondary-body label>span{display:none}
.purchase-proto-processados .purchase-proto-search-field{min-height:36px}
.purchase-proto-processados .purchase-proto-search-field input{min-height:34px;font-size:12px}

/* Linhas mais compactas e proporcionais. */
.purchase-proto-processados .purchase-proto-columns,
.purchase-proto-processados .purchase-proto-row{
  grid-template-columns:minmax(300px,2.5fr) 88px 110px minmax(220px,1.45fr) 36px;
  gap:8px;
}
.purchase-proto-processados .purchase-proto-columns{
  padding:0 8px 5px;
}
.purchase-proto-processados .purchase-proto-row{
  padding:6px 8px;
  border-radius:10px;
  background:var(--card,#fff);
}
.purchase-proto-processados .purchase-proto-row input,
.purchase-proto-processados .purchase-proto-row select{
  min-height:36px;
  height:36px;
  padding-left:9px;
  padding-right:9px;
  border-radius:8px;
  font-size:12.5px;
}
.purchase-proto-processados .purchase-proto-product-name{
  font-weight:750;
}
.purchase-proto-processados .purchase-proto-product-alias{
  border-color:#cfe0d4;
  background:#fff;
}
.purchase-proto-processados .purchase-proto-product-alias:focus{
  border-color:#55a875;
  box-shadow:0 0 0 3px rgba(11,107,54,.08);
}
.purchase-proto-processados .purchase-proto-remove{
  width:34px;
  height:36px;
  border-radius:8px;
}

@media(max-width:1100px){
  .purchase-proto-processados .purchase-proto-row{
    grid-template-columns:minmax(0,1.6fr) 92px 116px minmax(0,1.25fr) 36px;
  }
}
@media(max-width:860px){
  .purchase-proto-processados .purchase-proto-registered-picker{
    grid-template-columns:1fr;
    align-items:stretch;
  }
  .purchase-proto-processados .purchase-proto-row{
    grid-template-columns:1fr 1fr;
    padding:9px;
  }
  .purchase-proto-processados .purchase-proto-product,
  .purchase-proto-processados .purchase-proto-obs{grid-column:1/-1}
  .purchase-proto-processados .purchase-proto-row label>span{display:block}
  .purchase-proto-processados .purchase-proto-search-secondary{width:100%}
  .purchase-proto-processados .purchase-proto-search-secondary-body{width:100%}
}
@media(max-width:560px){
  .purchase-proto-processados .purchase-proto-row{grid-template-columns:1fr}
  .purchase-proto-processados .purchase-proto-product,
  .purchase-proto-processados .purchase-proto-obs{grid-column:auto}
  .purchase-proto-processados .purchase-proto-row input,
  .purchase-proto-processados .purchase-proto-row select{
    min-height:44px;
    height:44px;
    font-size:16px;
  }
  .purchase-proto-processados .purchase-proto-remove{width:44px;height:44px}
  .purchase-proto-processados .purchase-proto-registered-input input{min-height:46px;height:46px;font-size:16px}
  .purchase-proto-processados .purchase-proto-search-secondary>summary{min-height:38px}
}

/* 0.0.73 — Processados: Controle + Etapas sem perder a compactação. */
.purchase-proto-processados .purchase-proto-columns.purchase-proto-columns-control,
.purchase-proto-processados .purchase-proto-row.purchase-proto-row-control{
  grid-template-columns:minmax(260px,2fr) 82px 138px 100px minmax(200px,1.35fr) 36px;
}
@media(max-width:1100px){
  .purchase-proto-processados .purchase-proto-row.purchase-proto-row-control{grid-template-columns:minmax(0,1.5fr) 86px 132px 104px minmax(0,1.1fr) 36px}
}
@media(max-width:860px){
  .purchase-proto-processados .purchase-proto-row.purchase-proto-row-control{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .purchase-proto-processados .purchase-proto-row.purchase-proto-row-control{grid-template-columns:1fr}
}


/* purchase-history-analysis-0.0.75.css */
/* Produção Só Folhas 0.0.70
   Histórico e Análises — ajuste estritamente visual.
   Não altera cálculos, dados ou regras de negócio. */

/* Grade principal: Produto ganha prioridade; Fornecedor permanece compacto. */
.purchase-analysis-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1.65fr) minmax(340px,1fr) !important;
  gap:16px !important;
  align-items:start !important;
  width:100% !important;
  max-width:100% !important;
  overflow:visible !important;
}

.purchase-analysis-grid > .purchase-analysis-card{
  min-width:0 !important;
  max-width:100% !important;
  overflow:hidden !important;
  padding:18px !important;
  border-radius:20px !important;
}

.purchase-analysis-card > h2{
  margin:0 0 14px !important;
  font-size:18px !important;
  line-height:1.2 !important;
  letter-spacing:-.02em !important;
}

/* A rolagem, quando necessária, pertence ao card e nunca à página inteira. */
.purchase-analysis-card .table-wrap{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
  margin:0 !important;
  border-top:1px solid var(--line, #e5ebe7);
  scrollbar-width:thin;
  scrollbar-color:#b8c9be transparent;
}

.purchase-analysis-card .table-wrap::-webkit-scrollbar{height:8px}
.purchase-analysis-card .table-wrap::-webkit-scrollbar-track{background:transparent}
.purchase-analysis-card .table-wrap::-webkit-scrollbar-thumb{
  background:#c4d1c8;
  border-radius:999px;
}

.purchase-analysis-card .table{
  width:100% !important;
  border-collapse:separate !important;
  border-spacing:0 !important;
  table-layout:auto !important;
  font-size:11px !important;
}

.purchase-analysis-card-product .table{min-width:900px !important}
.purchase-analysis-card-supplier .table{min-width:660px !important}

.purchase-analysis-card .table th{
  padding:10px 10px !important;
  font-size:10px !important;
  line-height:1.18 !important;
  font-weight:800 !important;
  letter-spacing:.015em !important;
  text-transform:uppercase;
  color:var(--muted, #607066) !important;
  background:var(--panel, #fff);
  border-bottom:1px solid var(--line, #e5ebe7) !important;
  vertical-align:bottom !important;
  white-space:normal !important;
}

.purchase-analysis-card .table td{
  padding:11px 10px !important;
  font-size:11px !important;
  line-height:1.32 !important;
  border-bottom:1px solid var(--line, #e5ebe7) !important;
  vertical-align:middle !important;
  font-variant-numeric:tabular-nums;
  background:transparent;
}

.purchase-analysis-card .table tbody tr{
  transition:background-color .14s ease;
}

@media (hover:hover) and (pointer:fine){
  .purchase-analysis-card .table tbody tr:hover{
    background:rgba(22,122,63,.035) !important;
  }
}

/* Primeira coluna textual; números ganham alinhamento consistente. */
.purchase-analysis-card .table th:first-child,
.purchase-analysis-card .table td:first-child{
  text-align:left !important;
  font-weight:750;
  min-width:118px;
}

.purchase-analysis-card .table th:not(:first-child),
.purchase-analysis-card .table td:not(:first-child){
  text-align:center !important;
  white-space:nowrap;
}

.purchase-analysis-card-product .table th:first-child,
.purchase-analysis-card-product .table td:first-child{
  min-width:150px;
  max-width:190px;
  white-space:normal !important;
}

.purchase-analysis-card-supplier .table th:first-child,
.purchase-analysis-card-supplier .table td:first-child{
  min-width:150px;
  max-width:190px;
  white-space:normal !important;
}

/* Reaberturas: cabeçalho funcional, controles coerentes e estado vazio limpo. */
.purchase-reopen-panel{
  margin-top:16px !important;
  padding:20px !important;
  border-radius:20px !important;
  overflow:hidden;
}

.purchase-reopen-panel > .panel-head{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
  margin-bottom:16px !important;
  min-height:44px !important;
}

.purchase-reopen-panel > .panel-head > div:first-child{
  min-width:0;
}

.purchase-reopen-panel > .panel-head h2{
  margin:0 !important;
  font-size:18px !important;
  line-height:1.2 !important;
}

.purchase-reopen-panel > .panel-head p{
  margin:6px 0 0 !important;
  color:var(--muted, #607066) !important;
  line-height:1.4 !important;
}

.purchase-reopen-tabs{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  flex:0 0 auto;
  padding:3px;
  border-radius:13px;
  background:rgba(15,94,48,.035);
}

.purchase-reopen-tabs .btn{
  min-height:40px !important;
  height:40px !important;
  padding:0 16px !important;
  border-radius:10px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  line-height:1 !important;
  white-space:nowrap;
}

.purchase-reopen-panel .empty-sheet{
  min-height:74px;
  display:flex;
  align-items:center;
  padding:18px 20px !important;
  border-radius:14px !important;
  color:var(--muted, #607066) !important;
  background:rgba(248,251,249,.7);
  border:1px dashed var(--line, #dce6df);
}

/* Tema escuro — usa a paleta existente, sem inventar uma nova. */
html[data-theme="dark"] .purchase-analysis-card .table-wrap,
[data-theme="dark"] .purchase-analysis-card .table-wrap{
  border-color:var(--line);
}

html[data-theme="dark"] .purchase-analysis-card .table th,
[data-theme="dark"] .purchase-analysis-card .table th{
  background:var(--panel);
}

html[data-theme="dark"] .purchase-reopen-tabs,
[data-theme="dark"] .purchase-reopen-tabs{
  background:rgba(255,255,255,.035);
}

html[data-theme="dark"] .purchase-reopen-panel .empty-sheet,
[data-theme="dark"] .purchase-reopen-panel .empty-sheet{
  background:rgba(255,255,255,.025);
}

/* Tablet: empilha antes de começar a comprimir o conteúdo. */
@media (max-width:1180px){
  .purchase-analysis-grid{
    grid-template-columns:1fr !important;
  }

  .purchase-analysis-card-product .table,
  .purchase-analysis-card-supplier .table{
    min-width:760px !important;
  }
}

/* Mobile: cards em coluna e controles de reabertura sem aperto. */
@media (max-width:720px){
  .purchase-analysis-grid{
    gap:12px !important;
  }

  .purchase-analysis-grid > .purchase-analysis-card,
  .purchase-reopen-panel{
    padding:14px !important;
    border-radius:16px !important;
  }

  .purchase-analysis-card-product .table{min-width:820px !important}
  .purchase-analysis-card-supplier .table{min-width:640px !important}

  .purchase-reopen-panel > .panel-head{
    align-items:flex-start !important;
    flex-direction:column !important;
    gap:12px !important;
  }

  .purchase-reopen-tabs{
    width:100%;
    display:grid !important;
    grid-template-columns:1fr 1fr;
  }

  .purchase-reopen-tabs .btn{
    width:100%;
  }

  .purchase-reopen-panel .empty-sheet{
    min-height:68px;
    padding:16px !important;
  }
}


/* purchase-stock-0.0.102.css */
/* Produção Só Folhas 0.0.76 — Estoque simplificado */
.stock-workspace{display:flex;flex-direction:column;gap:16px;min-width:0}
.stock-workspace-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:2px 2px 0}
.stock-workspace-head h2{margin:0 0 5px;font-size:22px;letter-spacing:-.025em;color:var(--ink)}
.stock-workspace-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.stock-subtabs{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;padding:5px;border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow-x:auto}
.stock-subtab{height:34px;padding:0 13px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:11.5px;font-weight:800;white-space:nowrap;cursor:pointer}
.stock-subtab:hover{background:var(--green-50);color:var(--green-800)}
.stock-subtab.active{background:var(--green-800);color:#fff;box-shadow:0 5px 12px rgba(15,87,45,.14)}
.stock-filter-card{padding:17px 18px!important}
.stock-filter-card .panel-head{margin-bottom:15px;align-items:flex-start}
.stock-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.stock-filter-grid{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(4,minmax(120px,.75fr));gap:12px;align-items:end}
.stock-filter-grid label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:10.5px;font-weight:800;min-width:0}
.stock-filter-grid input,.stock-filter-grid select{width:100%;height:39px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--ink);padding:0 11px;font-size:12px;outline:none}
.stock-filter-grid input:focus,.stock-filter-grid select:focus{border-color:#9ac9aa;box-shadow:0 0 0 3px rgba(38,143,82,.1)}
.stock-filter-check{min-height:39px;flex-direction:row!important;align-items:center;gap:8px!important;padding:0 10px;border:1px solid var(--line);border-radius:11px;background:var(--panel);white-space:nowrap}
.stock-filter-check input{width:16px!important;height:16px!important;padding:0!important;accent-color:var(--green-700)}
.stock-filter-grid>.btn{height:39px;align-self:end}
.stock-kpis,.stock-history-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.stock-kpis>div,.stock-history-kpis>div{min-width:0;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.stock-kpis span,.stock-history-kpis span{display:block;margin-bottom:5px;color:var(--muted);font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.stock-kpis strong,.stock-history-kpis strong{display:block;color:var(--ink);font-size:15px;font-weight:850;line-height:1.3;overflow-wrap:anywhere}
.stock-kpis .neg,.stock-history-kpis .neg{color:#b83a3a}
.stock-table-card{padding:0!important;overflow:hidden}
.stock-table{min-width:1120px}
.stock-table th{font-size:9.5px;letter-spacing:.035em;text-transform:uppercase;white-space:nowrap}
.stock-table td{vertical-align:middle;font-size:11.5px}
.stock-table td:first-child{min-width:190px}
.stock-table td:last-child{min-width:160px}
.stock-current-balance{font-size:13px;color:var(--green-800)}
.stock-row-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:150px}
.stock-row-actions .btn{min-height:31px;padding:0 9px;border-radius:9px;font-size:10.5px;box-shadow:none}
.stock-conversion-note{padding:11px 13px;border:1px solid #ecd9a7;border-radius:12px;background:#fff9e7;color:#765317;font-size:11.5px;font-weight:700}
.stock-section-separator{height:1px;margin:24px 0;background:var(--line)}
.stock-all-section>h3{margin:4px 0 12px;font-size:16px;color:var(--ink)}
.stock-saldos-wrap .leftover-filter-card .panel-head h2{margin-bottom:4px}

/* Gerenciamento */
.stock-manage-modal{width:min(820px,calc(100vw - 24px))!important}
.stock-config-add{display:grid;grid-template-columns:minmax(220px,1.5fr) 100px 150px auto;gap:10px;align-items:end;margin-bottom:18px;padding:14px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2,#f8fbf9)}
.stock-config-add label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:11px;font-weight:800}
.stock-config-add select,.stock-config-add input{height:40px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);padding:0 10px}
.stock-config-add .btn{height:40px}
.stock-config-list{display:grid;gap:8px;max-height:360px;overflow:auto;padding-right:2px}
.stock-config-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.stock-config-row b{display:block;font-size:12px;color:var(--ink)}
.stock-config-row small{display:block;margin-top:3px;color:var(--muted);font-size:10.5px}

/* Histórico */
.stock-history-page{display:flex;flex-direction:column;gap:17px;min-width:0}
.stock-history-head{padding:2px 2px 4px}
.stock-history-title{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:13px 0 7px}
.stock-history-title h2{margin:0 0 4px;font-size:25px;letter-spacing:-.035em;color:var(--ink)}
.stock-history-title p{margin:0;color:var(--muted);font-size:11.5px;font-weight:700}
.stock-history-head>small{color:var(--muted);font-size:10.5px}
.stock-history-head-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.stock-history-kpis .stock-balance-kpi{background:var(--green-50);border-color:#cfe4d5}
.stock-history-kpis .stock-balance-kpi strong{color:var(--green-900);font-size:19px}
.stock-history-filter{padding:14px!important}
.stock-history-filter-grid{display:grid;grid-template-columns:130px 130px 130px 140px 150px minmax(190px,1fr) auto;gap:10px;align-items:end}
.stock-history-filter-grid label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:10px;font-weight:800}
.stock-history-filter-grid input,.stock-history-filter-grid select{height:38px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);padding:0 10px;font-size:11.5px}
.stock-history-filter-grid .btn{height:38px}
.stock-timeline{position:relative;display:flex;flex-direction:column;gap:10px;padding-left:23px}
.stock-timeline:before{content:"";position:absolute;left:7px;top:9px;bottom:10px;width:2px;border-radius:99px;background:#d8e7dd}
.stock-timeline-date{position:relative;margin:12px 0 2px;color:var(--green-800);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.stock-timeline-date:before{content:"";position:absolute;left:-20px;top:3px;width:9px;height:9px;border:3px solid var(--panel);border-radius:50%;background:var(--green-700);box-shadow:0 0 0 1px #a8c9b2}
.stock-timeline-card{position:relative;padding:14px 15px;border:1px solid var(--line);border-left:3px solid #b8c9bd;border-radius:15px;background:var(--panel);box-shadow:0 5px 16px rgba(15,38,23,.035)}
.stock-timeline-card.is-entry{border-left-color:#2f8d55}
.stock-timeline-card.is-production{border-left-color:#548b67}
.stock-timeline-card.is-breakage{border-left-color:#c65959}
.stock-timeline-card.is-adjust{border-left-color:#d4a13b}
.stock-timeline-card.is-count{border-left-color:#6681a3}
.stock-timeline-card:hover{border-color:#cadbd0;box-shadow:0 9px 24px rgba(15,38,23,.065)}
.stock-timeline-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}
.stock-timeline-title{display:flex;align-items:center;gap:9px;min-width:0}
.stock-timeline-icon{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border-radius:9px;background:var(--green-50);color:var(--green-800);font-size:13px;font-weight:900}
.stock-timeline-title h4{margin:0;color:var(--ink);font-size:14px;font-weight:850;line-height:1.2}
.stock-timeline-title small{display:block;margin-top:2px;color:var(--muted);font-size:10.5px;font-weight:700}
.stock-timeline-head time{color:var(--muted);font-size:10.5px;font-weight:800;white-space:nowrap}
.stock-timeline-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.stock-timeline-values>div{padding:9px 10px;border:1px solid #e8eee9;border-radius:10px;background:var(--surface-2,#fafcfb);min-width:0}
.stock-timeline-values span{display:block;color:var(--muted);font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.stock-timeline-values strong{display:block;margin-top:4px;color:var(--ink);font-size:15px;font-weight:850;line-height:1.2;overflow-wrap:anywhere}
.stock-timeline-values strong.neg{color:#b83a3a}
.stock-timeline-values strong.pos{color:var(--green-800)}
.stock-timeline-balance strong{color:var(--green-900)!important}
.stock-timeline-note{display:block;margin:9px 1px 0;color:var(--muted);font-size:10.5px;line-height:1.45}
.stock-timeline-card p.stock-timeline-note{padding-top:8px;border-top:1px dashed var(--line)}
.stock-timeline-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:11px;padding-top:10px;border-top:1px solid var(--line)}
.stock-timeline-foot>small{color:var(--muted);font-size:10px}
.stock-timeline-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.stock-timeline-actions .btn{height:31px;padding:0 10px;border-radius:9px;font-size:10.5px;box-shadow:none}

/* Detalhe e distribuição */
.stock-movement-detail{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.stock-movement-detail>div{padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2,#fafcfb)}
.stock-movement-detail span{display:block;color:var(--muted);font-size:9.5px;font-weight:800;text-transform:uppercase}
.stock-movement-detail b{display:block;margin-top:4px;color:var(--ink);font-size:12px;overflow-wrap:anywhere}
.stock-distribution-modal{width:min(660px,calc(100vw - 24px))!important}
.stock-dist-help{margin:0 0 13px;color:var(--muted);font-size:11.5px;line-height:1.5}
.stock-dist-list{display:grid;gap:8px;margin-bottom:10px}
.stock-dist-row{display:grid;grid-template-columns:150px minmax(120px,1fr) 42px 34px;gap:8px;align-items:center}
.stock-dist-row input{height:39px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);padding:0 10px}
.stock-dist-row>span{color:var(--muted);font-size:11px;font-weight:800}
.stock-dist-remove{width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--muted);cursor:pointer}
.stock-dist-remove:disabled{opacity:.35;cursor:not-allowed}
.stock-dist-total{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;padding:11px 12px;border-radius:11px;background:var(--green-50);color:var(--green-900)}
.stock-dist-total span{font-size:10.5px;font-weight:800;text-transform:uppercase}
.stock-dist-total strong{font-size:13px}

/* Dark */
:root[data-theme="dark"] .stock-subtabs,
:root[data-theme="dark"] .stock-filter-grid input,
:root[data-theme="dark"] .stock-filter-grid select,
:root[data-theme="dark"] .stock-filter-check,
:root[data-theme="dark"] .stock-config-row,
:root[data-theme="dark"] .stock-config-add select,
:root[data-theme="dark"] .stock-config-add input,
:root[data-theme="dark"] .stock-timeline-card,
:root[data-theme="dark"] .stock-history-filter-grid input,
:root[data-theme="dark"] .stock-history-filter-grid select,
:root[data-theme="dark"] .stock-dist-row input,
:root[data-theme="dark"] .stock-dist-remove{background:var(--panel);border-color:var(--line);color:var(--ink)}
:root[data-theme="dark"] .stock-kpis>div,
:root[data-theme="dark"] .stock-history-kpis>div,
:root[data-theme="dark"] .stock-timeline-values>div,
:root[data-theme="dark"] .stock-movement-detail>div,
:root[data-theme="dark"] .stock-config-add{background:rgba(255,255,255,.025)}
:root[data-theme="dark"] .stock-history-kpis .stock-balance-kpi,
:root[data-theme="dark"] .stock-dist-total{background:rgba(46,139,87,.13);border-color:rgba(46,139,87,.25);color:#bfe7cb}
:root[data-theme="dark"] .stock-conversion-note{background:rgba(198,151,51,.12);border-color:rgba(198,151,51,.26);color:#e7c978}

@media(max-width:1180px){
  .stock-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .stock-filter-grid label:first-child{grid-column:span 2}
  .stock-history-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .stock-history-search{grid-column:span 2}
}
@media(max-width:900px){
  .stock-kpis,.stock-history-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stock-history-kpis .stock-balance-kpi{grid-column:1/-1}
  .stock-timeline-values{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stock-config-add{grid-template-columns:1fr 110px}
  .stock-config-add label:first-child{grid-column:1/-1}
  .stock-config-add .btn{grid-column:1/-1}
}
@media(max-width:680px){
  .stock-workspace{gap:13px}
  .stock-workspace-head{display:block}
  .stock-subtabs{width:100%}
  .stock-subtab{flex:1}
  .stock-filter-card{padding:14px!important}
  .stock-filter-card .panel-head,.stock-history-title,.stock-timeline-foot{align-items:stretch;flex-direction:column}
  .stock-head-actions,.stock-history-head-actions{justify-content:stretch;width:100%}
  .stock-head-actions .btn,.stock-history-head-actions .btn{flex:1}
  .stock-filter-grid,.stock-history-filter-grid{grid-template-columns:1fr}
  .stock-filter-grid label:first-child,.stock-history-search{grid-column:auto}
  .stock-filter-grid input,.stock-filter-grid select,.stock-history-filter-grid input,.stock-history-filter-grid select{height:44px;font-size:16px}
  .stock-kpis,.stock-history-kpis{grid-template-columns:1fr 1fr}
  .stock-config-add{grid-template-columns:1fr}
  .stock-config-add label:first-child,.stock-config-add .btn{grid-column:auto}
  .stock-config-row{grid-template-columns:1fr auto}
  .stock-config-row .btn{grid-column:1/-1;width:100%}
  .stock-timeline{padding-left:18px}
  .stock-timeline:before{left:5px}
  .stock-timeline-date:before{left:-16px}
  .stock-timeline-card{padding:12px}
  .stock-timeline-values{grid-template-columns:1fr 1fr}
  .stock-timeline-actions{justify-content:stretch}
  .stock-timeline-actions .btn{flex:1}
  .stock-movement-detail{grid-template-columns:1fr}
  .stock-dist-row{grid-template-columns:1fr 1fr 36px}
  .stock-dist-row>span{display:none}
  .stock-dist-row .stock-dist-remove{width:36px;height:36px}
}
@media(max-width:430px){
  .stock-kpis,.stock-history-kpis,.stock-timeline-values{grid-template-columns:1fr}
  .stock-history-kpis .stock-balance-kpi{grid-column:auto}
  .stock-timeline-head{flex-direction:column}
  .stock-dist-row{grid-template-columns:1fr}
  .stock-dist-row .stock-dist-remove{width:100%}
}


/* 0.0.76 — interface principal enxuta do Estoque */
.stock-workspace-simple{gap:14px}
.stock-subtabs-simple{margin-top:2px}
.stock-simple-section{display:flex;flex-direction:column;gap:12px;min-width:0}
.stock-simple-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:15px;background:var(--panel)}
.stock-simple-section-head h3{margin:0 0 3px;color:var(--ink);font-size:16px;letter-spacing:-.015em}
.stock-simple-section-head p{margin:0;color:var(--muted);font-size:11.5px}
.stock-simple-list{display:grid;gap:9px}
.stock-simple-row{display:grid;grid-template-columns:minmax(220px,1.4fr) 80px 145px 145px minmax(310px,auto);gap:14px;align-items:center;padding:13px 15px;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:0 3px 10px rgba(15,38,23,.025)}
.stock-simple-row:hover{border-color:#c8dbce;box-shadow:0 6px 16px rgba(15,38,23,.045)}
.stock-simple-product{min-width:0}
.stock-simple-product b{display:block;color:var(--ink);font-size:13px;line-height:1.25;overflow-wrap:anywhere}
.stock-simple-product small{display:block;margin-top:3px;color:var(--muted);font-size:10.5px;font-weight:700}
.stock-simple-warning{color:#9a6715!important}
.stock-simple-meta,.stock-simple-balance{min-width:0}
.stock-simple-meta span,.stock-simple-balance span{display:block;margin-bottom:3px;color:var(--muted);font-size:9.5px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.stock-simple-meta strong{display:block;color:var(--ink);font-size:12px;font-weight:800;overflow-wrap:anywhere}
.stock-simple-balance strong{display:block;color:var(--green-800);font-size:15px;font-weight:900;overflow-wrap:anywhere}
.stock-simple-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.stock-simple-actions .btn{min-height:32px;padding:0 9px;border-radius:9px;font-size:10.5px;box-shadow:none}
.stock-simple-actions .stock-remove-product{color:#a43f3f}
.stock-simple-empty{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:22px!important}
.stock-simple-empty b{color:var(--ink);font-size:13px}
.stock-simple-empty span{color:var(--muted);font-size:11.5px}
.stock-simple-modal{width:min(590px,calc(100vw - 24px))!important}
.stock-simple-form{display:grid;gap:12px}
.stock-simple-form label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:11px;font-weight:800}
.stock-simple-form input,.stock-simple-form select{width:100%;height:42px;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--ink);padding:0 11px;font-size:12px;outline:none}
.stock-simple-form input:focus,.stock-simple-form select:focus{border-color:#9ac9aa;box-shadow:0 0 0 3px rgba(38,143,82,.1)}
.stock-simple-form input:disabled,.stock-simple-form select:disabled{opacity:.72;cursor:not-allowed;background:var(--surface-2,#f6f8f7)}
.stock-simple-help{margin:12px 0 0;color:var(--muted);font-size:10.8px;line-height:1.5}
:root[data-theme="dark"] .stock-simple-row,:root[data-theme="dark"] .stock-simple-section-head,:root[data-theme="dark"] .stock-simple-form input,:root[data-theme="dark"] .stock-simple-form select{background:var(--panel);border-color:var(--line);color:var(--ink)}
@media(max-width:1180px){.stock-simple-row{grid-template-columns:minmax(190px,1.25fr) 70px 130px 125px minmax(250px,auto);gap:10px}.stock-simple-actions{gap:5px}.stock-simple-actions .btn{padding:0 7px;font-size:10px}}
@media(max-width:900px){.stock-simple-row{grid-template-columns:1fr 1fr 1fr}.stock-simple-product{grid-column:1/-1}.stock-simple-actions{grid-column:1/-1;justify-content:flex-start;padding-top:4px;border-top:1px solid var(--line)}}
@media(max-width:620px){.stock-workspace-simple{gap:12px}.stock-workspace-head{padding:0}.stock-workspace-head h2{font-size:20px}.stock-subtabs-simple{width:100%}.stock-subtabs-simple .stock-subtab{flex:1}.stock-simple-section-head{align-items:stretch;flex-direction:column;padding:13px}.stock-simple-section-head .btn{width:100%;height:42px}.stock-simple-row{grid-template-columns:1fr 1fr;padding:13px}.stock-simple-product{grid-column:1/-1}.stock-simple-balance{grid-column:1/-1;padding:10px 11px;border-radius:10px;background:var(--green-50)}.stock-simple-balance strong{font-size:18px}.stock-simple-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.stock-simple-actions .btn{width:100%;min-height:40px}.stock-simple-form input,.stock-simple-form select{height:44px;font-size:16px}}
@media(max-width:390px){.stock-simple-row{grid-template-columns:1fr}.stock-simple-product,.stock-simple-balance,.stock-simple-actions{grid-column:auto}.stock-simple-actions{grid-template-columns:1fr}}

/* 0.0.78 — Compra → Conferência → Produção em estoque + quantidade pt-BR */
.stock-simple-balance small,.stock-receipt-meta small{display:block;margin-top:4px;color:var(--muted);font-size:10px;font-weight:700;line-height:1.35;text-transform:none;letter-spacing:0}
.stock-receipt-status{display:inline-flex;align-items:center;min-height:23px;padding:0 8px;border-radius:999px;font-size:9.5px;font-weight:900;line-height:1.15}
.stock-receipt-status.waiting{background:#fff4d6;color:#8a5c00;border:1px solid #f0d58e}
.stock-receipt-status.confirmed{background:#eaf7ee;color:#176b36;border:1px solid #b9dfc5}
.stock-receipt-status.manual{background:var(--surface-2,#f3f5f4);color:var(--muted);border:1px solid var(--line)}
.conference-stock-row td{background:rgba(31,126,68,.018)}
.conference-stock-destination b{display:block;color:var(--green-800);font-size:11px;font-weight:900}
.conference-stock-destination small{display:block;margin-top:3px;color:var(--muted);font-size:9.5px;font-weight:700;line-height:1.25}
:root[data-theme="dark"] .stock-receipt-status.waiting{background:rgba(164,113,10,.18);color:#f4ce75;border-color:rgba(244,206,117,.25)}
:root[data-theme="dark"] .stock-receipt-status.confirmed{background:rgba(35,130,70,.2);color:#88d6a4;border-color:rgba(136,214,164,.25)}
:root[data-theme="dark"] .conference-stock-row td{background:rgba(74,180,105,.025)}
@media(max-width:900px){.stock-receipt-meta{min-width:0}.stock-receipt-status{white-space:normal;text-align:center}}

/* 0.0.79 - garante que a aba Estoque permaneça clicável acima de camadas visuais. */
.purchase-proto-nav{position:relative;z-index:20}
.purchase-proto-nav .purchase-main-tab{pointer-events:auto;position:relative;z-index:1}

/* 0.0.80 — correção de abertura do Estoque: resolução segura de productId. */

/* 0.0.82 — Saldos de produção: alinhamento, espaçamento e densidade visual */
.stock-saldos-wrap .leftover-filter-card{
  margin-bottom:16px;
  padding:20px 22px 18px!important;
}
.stock-saldos-wrap .leftover-filter-card .panel-head{
  gap:18px;
  margin-bottom:16px;
  align-items:center;
}
.stock-saldos-wrap .leftover-filter-grid{
  width:100%;
  min-width:0;
  display:grid;
  grid-template-columns:minmax(220px,1.35fr) 145px 145px minmax(165px,.95fr) 130px 155px minmax(185px,1fr) 128px;
  column-gap:14px;
  row-gap:10px;
  align-items:end;
  box-sizing:border-box;
}
.stock-saldos-wrap .leftover-filter-grid>label{
  min-width:0;
  gap:7px;
}
.stock-saldos-wrap .leftover-filter-grid input,
.stock-saldos-wrap .leftover-filter-grid select{
  height:44px;
  min-width:0;
  box-sizing:border-box;
}
.stock-saldos-wrap .leftover-toggle{
  width:100%;
  min-width:0;
  height:44px!important;
  padding:0 12px!important;
  justify-content:flex-start;
  box-sizing:border-box;
  white-space:normal;
  line-height:1.15;
}
.stock-saldos-wrap .leftover-filter-grid>.btn{
  width:128px;
  min-width:128px;
  height:44px;
  padding:0 14px;
  justify-self:end;
  align-self:end;
  box-sizing:border-box;
}
.stock-saldos-wrap .leftover-kpis{
  gap:14px;
  margin-bottom:16px;
}
.stock-saldos-wrap .leftover-table-card{
  padding:12px!important;
  border-radius:16px;
}
.stock-saldos-wrap .leftover-table-card .table-wrap{
  max-width:100%;
  overflow-x:auto;
  padding:0 0 2px;
}
.stock-saldos-wrap .leftover-table{
  width:100%;
  min-width:1120px;
}
.stock-saldos-wrap .leftover-table th,
.stock-saldos-wrap .leftover-table td{
  padding-left:11px;
  padding-right:11px;
}
.stock-saldos-wrap .leftover-table th:first-child,
.stock-saldos-wrap .leftover-table td:first-child{
  padding-left:12px;
}
.stock-saldos-wrap .leftover-table th:last-child,
.stock-saldos-wrap .leftover-table td:last-child{
  min-width:190px;
  padding-left:12px;
  padding-right:12px;
}
.stock-saldos-wrap .leftover-actions{
  min-width:170px;
  gap:6px;
  flex-wrap:wrap;
}
.stock-saldos-wrap .leftover-actions .btn{
  min-height:32px;
  padding-left:9px;
  padding-right:9px;
}
@media(max-width:1400px){
  .stock-saldos-wrap .leftover-filter-grid{
    grid-template-columns:minmax(220px,1.4fr) 145px 145px minmax(160px,1fr);
  }
  .stock-saldos-wrap .leftover-filter-grid>label:first-child{grid-column:span 1}
  .stock-saldos-wrap .leftover-toggle{grid-column:span 2}
  .stock-saldos-wrap .leftover-filter-grid>.btn{justify-self:start}
}
@media(max-width:900px){
  .stock-saldos-wrap .leftover-filter-card{padding:16px!important}
  .stock-saldos-wrap .leftover-filter-card .panel-head{align-items:stretch;margin-bottom:14px}
  .stock-saldos-wrap .leftover-filter-grid{grid-template-columns:1fr 1fr;gap:12px}
  .stock-saldos-wrap .leftover-filter-grid>label:first-child{grid-column:1/-1}
  .stock-saldos-wrap .leftover-toggle{grid-column:auto}
  .stock-saldos-wrap .leftover-filter-grid>.btn{width:100%;min-width:0;justify-self:stretch}
  .stock-saldos-wrap .leftover-table-card{padding:8px!important}
}
@media(max-width:560px){
  .stock-saldos-wrap .leftover-filter-grid{grid-template-columns:1fr}
  .stock-saldos-wrap .leftover-filter-grid>label:first-child,
  .stock-saldos-wrap .leftover-toggle{grid-column:auto}
  .stock-saldos-wrap .leftover-filter-grid input,
  .stock-saldos-wrap .leftover-filter-grid select{height:46px;font-size:16px}
  .stock-saldos-wrap .leftover-toggle{min-height:46px}
  .stock-saldos-wrap .leftover-filter-grid>.btn{height:46px}
}


/* 0.0.83 — Saldos de produção: reorganização REAL dos filtros e tabela */
.stock-saldos-wrap .leftover-filter-card{
  padding:18px 20px 16px!important;
  margin-bottom:14px!important;
  overflow:visible!important;
}
.stock-saldos-wrap .leftover-filter-card .panel-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:14px!important;
}
.stock-saldos-wrap .leftover-filter-grid{
  display:grid!important;
  width:100%!important;
  min-width:0!important;
  grid-template-columns:minmax(260px,1.65fr) 150px 150px minmax(150px,1fr) 120px 150px!important;
  grid-auto-flow:row!important;
  column-gap:14px!important;
  row-gap:12px!important;
  align-items:end!important;
  box-sizing:border-box!important;
}
.stock-saldos-wrap .leftover-filter-grid>label{
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  gap:6px!important;
}
.stock-saldos-wrap .leftover-filter-grid>label:not(.leftover-toggle){
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
}
.stock-saldos-wrap .leftover-filter-grid input:not([type="checkbox"]),
.stock-saldos-wrap .leftover-filter-grid select{
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  padding:0 12px!important;
  box-sizing:border-box!important;
}
.stock-saldos-wrap .leftover-toggle{
  grid-column:4 / 6!important;
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  min-height:42px!important;
  margin:0!important;
  padding:0 13px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
}
.stock-saldos-wrap .leftover-toggle input[type="checkbox"]{
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  margin:0!important;
  flex:0 0 16px!important;
}
.stock-saldos-wrap #purchaseLeftoverClear{
  grid-column:6!important;
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  margin:0!important;
  padding:0 12px!important;
  align-self:end!important;
  justify-self:stretch!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
.stock-saldos-wrap .leftover-kpis{
  gap:12px!important;
  margin:0 0 14px!important;
}
.stock-saldos-wrap .leftover-kpis>div{
  min-height:72px!important;
  padding:13px 16px!important;
}
.stock-saldos-wrap .leftover-table-card{
  padding:10px 12px 8px!important;
  margin:0!important;
  border-radius:16px!important;
}
.stock-saldos-wrap .leftover-table-card .table-wrap{
  width:100%!important;
  max-width:100%!important;
  overflow-x:visible!important;
  padding:0!important;
}
.stock-saldos-wrap .leftover-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
.stock-saldos-wrap .leftover-table th,
.stock-saldos-wrap .leftover-table td{
  padding:11px 8px!important;
  font-size:11px!important;
  vertical-align:middle!important;
  overflow-wrap:anywhere!important;
}
.stock-saldos-wrap .leftover-table th{
  white-space:normal!important;
  line-height:1.2!important;
}
.stock-saldos-wrap .leftover-table th:nth-child(1),
.stock-saldos-wrap .leftover-table td:nth-child(1){width:8%!important}
.stock-saldos-wrap .leftover-table th:nth-child(2),
.stock-saldos-wrap .leftover-table td:nth-child(2){width:14%!important}
.stock-saldos-wrap .leftover-table th:nth-child(3),
.stock-saldos-wrap .leftover-table td:nth-child(3){width:8%!important}
.stock-saldos-wrap .leftover-table th:nth-child(4),
.stock-saldos-wrap .leftover-table td:nth-child(4){width:6%!important}
.stock-saldos-wrap .leftover-table th:nth-child(5),
.stock-saldos-wrap .leftover-table td:nth-child(5){width:10%!important}
.stock-saldos-wrap .leftover-table th:nth-child(6),
.stock-saldos-wrap .leftover-table td:nth-child(6){width:10%!important}
.stock-saldos-wrap .leftover-table th:nth-child(7),
.stock-saldos-wrap .leftover-table td:nth-child(7){width:8%!important}
.stock-saldos-wrap .leftover-table th:nth-child(8),
.stock-saldos-wrap .leftover-table td:nth-child(8){width:9%!important}
.stock-saldos-wrap .leftover-table th:nth-child(9),
.stock-saldos-wrap .leftover-table td:nth-child(9){width:10%!important}
.stock-saldos-wrap .leftover-table th:nth-child(10),
.stock-saldos-wrap .leftover-table td:nth-child(10){width:8%!important}
.stock-saldos-wrap .leftover-table th:nth-child(11),
.stock-saldos-wrap .leftover-table td:nth-child(11){width:15%!important}
.stock-saldos-wrap .leftover-actions{
  min-width:0!important;
  width:100%!important;
  display:flex!important;
  gap:5px!important;
  flex-wrap:wrap!important;
  align-items:center!important;
}
.stock-saldos-wrap .leftover-actions .btn{
  min-width:0!important;
  min-height:30px!important;
  padding:5px 8px!important;
  font-size:10px!important;
  white-space:normal!important;
  line-height:1.15!important;
}

@media(max-width:1280px){
  .stock-saldos-wrap .leftover-filter-grid{
    grid-template-columns:minmax(220px,1.5fr) 145px 145px minmax(150px,1fr)!important;
  }
  .stock-saldos-wrap .leftover-toggle{
    grid-column:3 / 4!important;
  }
  .stock-saldos-wrap #purchaseLeftoverClear{
    grid-column:4!important;
  }
  .stock-saldos-wrap .leftover-table-card .table-wrap{
    overflow-x:auto!important;
  }
  .stock-saldos-wrap .leftover-table{
    min-width:1120px!important;
    table-layout:auto!important;
  }
}
@media(max-width:900px){
  .stock-saldos-wrap .leftover-filter-card{padding:15px!important}
  .stock-saldos-wrap .leftover-filter-card .panel-head{
    flex-direction:column!important;
    align-items:stretch!important;
    gap:12px!important;
  }
  .stock-saldos-wrap .leftover-filter-card .panel-head>.btn{width:100%!important}
  .stock-saldos-wrap .leftover-filter-grid{
    grid-template-columns:1fr 1fr!important;
    gap:11px!important;
  }
  .stock-saldos-wrap .leftover-filter-grid>label:first-child{
    grid-column:1 / -1!important;
  }
  .stock-saldos-wrap .leftover-toggle,
  .stock-saldos-wrap #purchaseLeftoverClear{
    grid-column:auto!important;
  }
}
@media(max-width:560px){
  .stock-saldos-wrap .leftover-filter-grid{
    grid-template-columns:1fr!important;
  }
  .stock-saldos-wrap .leftover-filter-grid>label:first-child,
  .stock-saldos-wrap .leftover-toggle,
  .stock-saldos-wrap #purchaseLeftoverClear{
    grid-column:1!important;
  }
  .stock-saldos-wrap .leftover-filter-grid input:not([type="checkbox"]),
  .stock-saldos-wrap .leftover-filter-grid select,
  .stock-saldos-wrap .leftover-toggle,
  .stock-saldos-wrap #purchaseLeftoverClear{
    height:46px!important;
    min-height:46px!important;
  }
}

/* 0.0.84 — Estoque direto: resumo primeiro, detalhe sob demanda */
.stock-direct-workspace{gap:14px}
.stock-direct-tabs{display:inline-flex;width:max-content;max-width:100%;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.stock-direct-tab{height:34px;padding:0 17px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:11.5px;font-weight:850;cursor:pointer}
.stock-direct-tab.active{background:var(--green-800);color:#fff;box-shadow:0 4px 12px rgba(15,87,45,.15)}
.stock-direct-view{display:flex;flex-direction:column;gap:10px;min-width:0}
.stock-direct-toolbar{display:flex;align-items:end;justify-content:space-between;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:var(--panel)}
.stock-direct-search{display:flex;flex-direction:column;gap:5px;width:min(310px,100%);color:var(--muted);font-size:10px;font-weight:800}
.stock-direct-search input{width:100%;height:38px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);font-size:12px;outline:none;box-sizing:border-box}
.stock-direct-search input:focus{border-color:#9ac9aa;box-shadow:0 0 0 3px rgba(38,143,82,.1)}
.stock-direct-toolbar>.btn{height:38px;padding:0 13px;box-shadow:none}
.stock-list{display:grid;gap:7px}
.stock-list-item{overflow:hidden;border:1px solid var(--line);border-radius:13px;background:var(--panel);box-shadow:0 2px 8px rgba(15,38,23,.025)}
.stock-list-item.is-open{border-color:#bdd5c5;box-shadow:0 7px 20px rgba(15,38,23,.05)}
.stock-list-summary{display:grid;grid-template-columns:minmax(0,1fr) auto 20px;align-items:center;gap:16px;width:100%;min-height:54px;padding:10px 14px;border:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer}
.stock-list-summary:hover{background:var(--green-50)}
.stock-list-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px;font-weight:850}
.stock-list-summary>strong{color:var(--green-850,var(--green-800));font-size:14px;font-weight:900;white-space:nowrap}
.stock-list-chevron{color:var(--muted);font-size:16px;transition:transform .18s ease;text-align:center}
.stock-list-item.is-open .stock-list-chevron{transform:rotate(180deg)}
.stock-direct-empty{padding:24px;border:1px dashed var(--line);border-radius:13px;color:var(--muted);font-size:12px;text-align:center;background:var(--panel)}

.stock-inline-details{display:flex;flex-direction:column;gap:12px;padding:0 14px 14px;border-top:1px solid var(--line)}
.stock-detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding-top:12px}
.stock-detail-summary>div{min-width:0;padding:10px 11px;border:1px solid #e5ece7;border-radius:10px;background:var(--surface-2,#fafcfb)}
.stock-detail-summary span{display:block;margin-bottom:3px;color:var(--muted);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.035em}
.stock-detail-summary strong{display:block;color:var(--ink);font-size:14px;font-weight:900;overflow-wrap:anywhere}
.stock-detail-summary .balance{background:var(--green-50);border-color:#cde2d3}
.stock-detail-summary .balance strong{color:var(--green-900);font-size:16px}
.stock-detail-section{display:flex;flex-direction:column;gap:8px}
.stock-detail-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.stock-detail-section-head h4{margin:0;color:var(--ink);font-size:12px;font-weight:850}
.stock-link-button{padding:0;border:0;background:none;color:var(--green-800);font-size:10.5px;font-weight:850;cursor:pointer}
.stock-link-button:hover{text-decoration:underline}
.stock-detail-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding-top:2px}
.stock-detail-actions .btn{min-height:34px;padding:0 10px;font-size:10.5px;box-shadow:none}
.stock-detail-actions .stock-remove-product{margin-left:auto;color:#a33e3e}

.stock-entry-list{display:grid;gap:6px}
.stock-entry-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(110px,.7fr) minmax(110px,.7fr) auto;gap:10px;align-items:center;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.stock-entry-row>div:first-child b{display:block;color:var(--ink);font-size:11.5px}
.stock-entry-row>div:first-child small{display:block;margin-top:2px;color:var(--muted);font-size:9.5px}
.stock-entry-row>div:not(:first-child) span{display:block;color:var(--muted);font-size:8.8px;font-weight:850;text-transform:uppercase}
.stock-entry-row>div:not(:first-child) strong{display:block;margin-top:2px;color:var(--ink);font-size:11.5px;font-weight:850}
.stock-entry-zero{padding:4px 7px;border-radius:999px;background:var(--surface-2,#f1f4f2);color:var(--muted);font-size:9px;font-weight:850}

.stock-compact-history{display:grid;gap:4px}
.stock-compact-history-row{display:grid;grid-template-columns:82px minmax(0,1fr) auto;gap:10px;align-items:center;min-height:37px;padding:6px 8px;border-bottom:1px solid var(--line)}
.stock-compact-history-row:last-child{border-bottom:0}
.stock-compact-history-row time{color:var(--muted);font-size:9.5px;font-weight:800}
.stock-compact-history-row b{display:block;color:var(--ink);font-size:10.5px}
.stock-compact-history-row small{display:block;margin-top:1px;color:var(--muted);font-size:9px}
.stock-compact-history-row strong{font-size:11.5px;font-weight:900;white-space:nowrap}
.stock-compact-history-row strong.neg{color:#b33e3e}
.stock-compact-history-row strong.pos{color:var(--green-800)}
.stock-compact-empty{padding:12px;border:1px dashed var(--line);border-radius:9px;color:var(--muted);font-size:10.5px;text-align:center}

.stock-chart-card{padding:10px 10px 5px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2,#fafcfb);min-width:0}
.stock-chart-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:3px}
.stock-chart-head>b{font-size:11px;color:var(--ink)}
.stock-chart-head>div{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.stock-chart-head span{display:inline-flex;align-items:center;gap:4px;color:var(--muted);font-size:8.8px;font-weight:800}
.stock-chart-head i{width:8px;height:8px;border-radius:2px;display:inline-block;background:#6aaa80}
.stock-chart-head i.break{background:#c86161}
.stock-chart-head i.balance{width:13px;height:2px;border-radius:9px;background:#145f36}
.stock-chart-scroll{width:100%;overflow:hidden}
.stock-chart-svg{display:block;width:100%;height:auto;max-height:210px;min-height:160px}
.stock-chart-axis{stroke:#dce6df;stroke-width:1}
.stock-chart-prod{fill:#69a97d}
.stock-chart-break{fill:#c86161}
.stock-chart-line{fill:none;stroke:#145f36;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.stock-chart-point{fill:#145f36;stroke:var(--panel);stroke-width:2}
.stock-chart-label{fill:#758078;font-size:9px;font-weight:700}
.stock-chart-empty{padding:18px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);font-size:10.5px;text-align:center}

.stock-leftover-main-actions{justify-content:flex-start;padding-top:12px}
.stock-leftover-main-actions .btn{min-width:110px}
.stock-leftover-records{display:grid;gap:7px}
.stock-leftover-record{padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2,#fafcfb)}
.stock-leftover-record-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}
.stock-leftover-record-head b{display:block;color:var(--ink);font-size:11px}
.stock-leftover-record-head small{display:block;margin-top:2px;color:var(--muted);font-size:9px}
.stock-leftover-record-head strong{color:var(--green-800);font-size:12px;font-weight:900;white-space:nowrap}
.stock-leftover-audit{display:grid;gap:3px;margin:6px 0}
.stock-leftover-audit>div{display:grid;grid-template-columns:120px 80px minmax(0,1fr);gap:7px;align-items:center;padding:4px 0;border-bottom:1px dashed var(--line);font-size:9px}
.stock-leftover-audit>div:last-child{border-bottom:0}
.stock-leftover-audit time{color:var(--muted)}
.stock-leftover-audit b{color:var(--ink);font-size:9px}
.stock-leftover-audit span{color:var(--muted);overflow-wrap:anywhere}
.stock-leftover-record-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px;padding-top:7px;border-top:1px solid var(--line)}
.stock-leftover-record-actions .btn{height:30px;padding:0 9px;font-size:9.5px;box-shadow:none}
.stock-leftover-record-actions .stock-remove-leftover{margin-left:auto;color:#a33e3e}

:root[data-theme="dark"] .stock-list-summary:hover,:root[data-theme="dark"] .stock-detail-summary .balance{background:rgba(46,130,75,.12)}
:root[data-theme="dark"] .stock-chart-card,:root[data-theme="dark"] .stock-leftover-record,:root[data-theme="dark"] .stock-detail-summary>div{background:var(--panel)}

@media(max-width:760px){
  .stock-direct-tabs{width:100%}
  .stock-direct-tab{flex:1}
  .stock-direct-toolbar{align-items:stretch}
  .stock-direct-search{width:100%}
  .stock-direct-toolbar>.btn{flex:0 0 auto}
  .stock-list-summary{min-height:58px;padding:11px 12px;gap:10px}
  .stock-list-name{font-size:12.5px}
  .stock-list-summary>strong{font-size:14px}
  .stock-inline-details{padding:0 12px 12px}
  .stock-detail-summary{grid-template-columns:1fr 1fr}
  .stock-entry-row{grid-template-columns:1fr 1fr}
  .stock-entry-row>div:first-child{grid-column:1/-1}
  .stock-entry-zero{justify-self:start}
  .stock-detail-actions{display:grid;grid-template-columns:1fr 1fr}
  .stock-detail-actions .btn{width:100%;min-height:40px}
  .stock-detail-actions .stock-remove-product{margin-left:0}
  .stock-chart-head{align-items:flex-start;flex-direction:column}
  .stock-chart-head>div{justify-content:flex-start}
  .stock-compact-history-row{grid-template-columns:68px minmax(0,1fr) auto}
  .stock-leftover-audit>div{grid-template-columns:1fr}
  .stock-leftover-record-actions{display:grid;grid-template-columns:1fr 1fr}
  .stock-leftover-record-actions .btn{width:100%;height:38px}
  .stock-leftover-record-actions .stock-remove-leftover{margin-left:0}
}
@media(max-width:460px){
  .stock-workspace-head p{max-width:32ch}
  .stock-direct-toolbar{flex-direction:column}
  .stock-direct-toolbar>.btn{width:100%}
  .stock-detail-summary{grid-template-columns:1fr 1fr}
  .stock-detail-summary strong{font-size:13px}
  .stock-entry-row{grid-template-columns:1fr}
  .stock-entry-row>div:first-child{grid-column:auto}
  .stock-detail-actions{grid-template-columns:1fr}
  .stock-compact-history-row{grid-template-columns:60px minmax(0,1fr)}
  .stock-compact-history-row>strong{grid-column:2;justify-self:start}
  .stock-leftover-record-actions{grid-template-columns:1fr}
}

/* 0.0.100 — retorno da tela detalhada de Estoque no desktop */
.stock-desktop-detail{display:flex;flex-direction:column;gap:16px;min-width:0}
.stock-desktop-head{padding:2px 2px 0}
.stock-desktop-head-main{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:12px 0 6px}
.stock-desktop-head-main h2{margin:0 0 4px;color:var(--ink);font-size:26px;line-height:1.05;letter-spacing:-.035em}
.stock-desktop-head-main p{margin:0;color:var(--muted);font-size:11.5px;font-weight:750}
.stock-desktop-head>small{color:var(--muted);font-size:10.5px}
.stock-desktop-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.stock-desktop-head-actions .btn{height:42px;box-shadow:none}
.stock-desktop-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.stock-desktop-kpis>div{min-width:0;padding:14px 15px;border:1px solid var(--line);border-radius:13px;background:var(--panel);box-shadow:0 3px 10px rgba(15,38,23,.025)}
.stock-desktop-kpis span{display:block;color:var(--muted);font-size:9.5px;font-weight:850;text-transform:uppercase;letter-spacing:.045em}
.stock-desktop-kpis strong{display:block;margin-top:5px;color:var(--ink);font-size:20px;line-height:1.15;font-weight:900;overflow-wrap:anywhere}
.stock-desktop-kpis strong.neg{color:#b83a3a}
.stock-desktop-kpis .balance{background:var(--green-50);border-color:#cfe4d5}
.stock-desktop-kpis .balance strong{color:var(--green-900);font-size:22px}
.stock-desktop-overview{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(320px,.9fr);gap:12px;align-items:stretch}
.stock-desktop-chart,.stock-desktop-entries{min-width:0;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:0 3px 12px rgba(15,38,23,.025)}
.stock-desktop-chart .stock-chart-card{border:0;box-shadow:none;border-radius:14px;height:100%;margin:0}
.stock-desktop-entries{padding:13px 14px;display:flex;flex-direction:column;gap:10px}
.stock-desktop-entries .stock-detail-section-head{margin:0}
.stock-desktop-entries .stock-detail-section-head h3{margin:0;color:var(--ink);font-size:13px}
.stock-desktop-entries .stock-detail-section-head span{color:var(--muted);font-size:10px;font-weight:700}
.stock-desktop-entries .stock-entry-list{max-height:270px;overflow:auto;padding-right:2px}
.stock-desktop-filter-card{padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel);box-shadow:0 3px 12px rgba(15,38,23,.025)}
.stock-desktop-filter-title{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}
.stock-desktop-filter-title h3{margin:0 0 2px;color:var(--ink);font-size:14px}
.stock-desktop-filter-title p{margin:0;color:var(--muted);font-size:10.5px}
.stock-desktop-filter-grid{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
.stock-desktop-filter-grid label{display:flex;flex-direction:column;gap:5px;min-width:0;color:var(--muted);font-size:10px;font-weight:800;flex:0 1 170px}
.stock-desktop-filter-grid label:nth-of-type(1),.stock-desktop-filter-grid label:nth-of-type(2){flex:0 1 150px}
.stock-desktop-filter-grid .stock-desktop-history-search{flex:1 1 250px}
.stock-desktop-filter-grid input,.stock-desktop-filter-grid select{width:100%;height:48px;box-sizing:border-box;border:1px solid var(--line);border-radius:var(--sf-control-radius,12px);background:var(--panel);color:var(--ink);padding:0 12px;font-size:12px;outline:none}
.stock-desktop-filter-grid>.btn{height:48px;flex:0 0 auto}
.stock-desktop-detail .stock-timeline{padding-left:21px}
.stock-desktop-detail .stock-timeline-card{padding:13px 14px}
.stock-desktop-detail .stock-timeline-values{grid-template-columns:repeat(4,minmax(0,1fr))}
.stock-desktop-detail .stock-timeline-actions .btn{height:34px;padding:0 11px}
.stock-desktop-detail .stock-distribute-production{font-weight:850}

:root[data-theme="dark"] .stock-desktop-kpis>div,
:root[data-theme="dark"] .stock-desktop-chart,
:root[data-theme="dark"] .stock-desktop-entries,
:root[data-theme="dark"] .stock-desktop-filter-card{background:var(--panel);border-color:var(--line)}
:root[data-theme="dark"] .stock-desktop-kpis .balance{background:rgba(46,139,87,.13);border-color:rgba(46,139,87,.25)}

@media(max-width:1180px) and (min-width:1024px){
  .stock-desktop-overview{grid-template-columns:1fr}
  .stock-desktop-entries .stock-entry-list{max-height:230px}
  .stock-desktop-filter-grid label{flex:1 1 180px}
  .stock-desktop-filter-grid .stock-desktop-history-search{flex:2 1 260px}
}
@media(max-width:1023px){
  .stock-desktop-detail{display:none!important}
}

/* 0.0.102 — remoção imediata de entradas/produtos sem quebrar a lista ativa */
.stock-entry-row{
  grid-template-columns:minmax(180px,1.4fr) minmax(120px,.8fr) minmax(120px,.8fr) auto auto;
  align-items:center;
  gap:12px;
}
.stock-entry-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
.stock-entry-actions .btn{
  white-space:nowrap;
}
@media (max-width: 900px){
  .stock-entry-row{
    grid-template-columns:1fr 1fr;
  }
  .stock-entry-actions{
    grid-column:1 / -1;
    justify-content:flex-start;
  }
}
@media (max-width: 560px){
  .stock-entry-row{
    grid-template-columns:1fr;
  }
  .stock-entry-actions{
    grid-column:auto;
  }
  .stock-entry-actions .btn{
    width:100%;
  }
}


/* global-period-0.0.95.css */
/* Produção Só Folhas — componente global de período 0.0.95 — popover responsivo compacto
   Um único campo visual para início + fim. Os dois inputs nativos continuam no DOM,
   ocultos, para preservar toda a lógica existente do sistema. */
.global-period-native{display:none!important}
.global-period-pair-hidden{display:none!important}
.global-period-unified-container{min-width:0!important}
.global-period-single{display:flex;flex-direction:column;gap:6px;width:min(100%,340px);max-width:340px;min-width:0;vertical-align:top}
.global-period-caption{display:block;font:900 11px/1.15 Inter,system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.035em;text-transform:uppercase;color:#223229}
.global-period-has-external-caption .global-period-caption{display:none}
.global-period-control{position:relative;display:flex;align-items:center;width:100%;min-width:0;height:48px;border:1px solid #cfded4;border-radius:15px;background:#fff;box-shadow:0 1px 2px rgba(16,33,50,.03);overflow:hidden;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.global-period-control:focus-within{border-color:#5eb77b;box-shadow:0 0 0 3px rgba(27,135,71,.10)}
.global-period-display{width:100%!important;min-width:0!important;height:46px!important;padding:0 44px 0 14px!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;font:800 14px/1 Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;color:#102132!important;letter-spacing:.005em!important}
.global-period-display::placeholder{color:#8a9790!important;font-weight:700!important}
.global-period-display.is-invalid{color:#b42318!important;background:rgba(180,35,24,.04)!important}
.global-period-trigger{position:absolute;right:4px;top:4px;width:38px;height:38px;border:0;border-radius:11px;background:transparent;color:#0b7a3d;display:grid;place-items:center;cursor:pointer;padding:0;transition:background .15s ease,transform .15s ease}
.global-period-trigger:hover{background:#edf8f1}.global-period-trigger:active{transform:scale(.96)}
.global-period-trigger svg{width:20px;height:20px}.global-period-trigger:disabled,.global-period-display:disabled{opacity:.55;cursor:not-allowed}

/* Não deixa o campo único se esticar de forma absurda em filtros largos. */
.purchase-filter-grid .global-period-unified-container,
.purchase-filter-grid>.global-period-single,
.exec-period-fields .global-period-single,
.custom-period-row .global-period-single,
.report-range-inputs .global-period-single,
.compare-toolbar .global-period-single{min-width:220px;max-width:340px}
.refined-period-fields{display:block!important}
.refined-period-fields>.global-period-single{max-width:340px}
.exec-period-summary{display:none!important}

.global-period-popover{position:fixed;z-index:100000;width:344px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow-y:auto;padding:10px;background:#fff;border:1px solid #d9e4dd;border-radius:17px;box-shadow:0 24px 64px rgba(16,33,50,.22),0 4px 16px rgba(16,33,50,.08);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#243447}
.global-period-popover[hidden]{display:none!important}
.global-period-summary{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);gap:6px;align-items:center}
.global-period-summary-card{min-width:0;text-align:left;border:1px solid #dce5df;border-radius:12px;background:#f7faf8;padding:7px 9px;cursor:pointer;color:#2b394a}
.global-period-summary-card small{display:block;font-size:10px;line-height:1.1;font-weight:900;color:#78858f;letter-spacing:.035em;margin-bottom:3px}
.global-period-summary-card strong{display:block;white-space:nowrap;font-size:13px;line-height:1.1;font-weight:900;overflow:hidden;text-overflow:ellipsis}
.global-period-summary-card.active{border-color:#70bd8c;background:#eef8f1;box-shadow:0 0 0 2px rgba(27,135,71,.08)}
.global-period-summary-card.active small{color:#16713b}.global-period-summary-card.end.active{border-color:#8eb4ff;background:#f0f5ff;box-shadow:0 0 0 2px rgba(69,125,238,.08)}.global-period-summary-card.end.active small{color:#416dcc}
.global-period-arrow{text-align:center;color:#7c8c83;font-size:15px;font-weight:900}
.global-period-help-row{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:5px 2px 4px;min-height:32px}
.global-period-help{font-size:11px;font-weight:700;color:#6d7885}
.global-period-single-day{flex:0 0 auto;border:0;border-radius:10px;background:#eef8f1;color:#126e3a;font:800 11px/1 Inter,system-ui,sans-serif;padding:8px 10px;cursor:pointer}
.global-period-single-day:hover{background:#def1e5}
.global-period-monthbar{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:6px;margin:1px 0 5px}
.global-period-nav{height:36px;border:0;border-radius:10px;background:#f4f7f5;color:#415365;font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
.global-period-nav:hover{background:#eaf3ed;color:#126e3a}
.global-period-month-title{height:36px;border:0;background:transparent;color:#1f2d3d;font-size:17px;font-weight:900;cursor:pointer;border-radius:10px;padding:0 6px}
.global-period-month-title:hover{background:#f7faf8}
.global-period-week{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:2px}.global-period-week span{text-align:center;padding:4px 0;font-size:11px;font-weight:800;color:#7a8593}
.global-period-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:0;overflow:hidden;border-radius:10px}
.global-period-day{position:relative;height:35px;border:0;background:transparent;color:#3b4958;font-size:13px;font-weight:700;cursor:pointer;padding:0;isolation:isolate}
.global-period-day:hover{background:#edf7f0;color:#106d39}.global-period-day.is-outside{color:#bdc6cf}.global-period-day.is-range{background:#e5f2e9}.global-period-day.is-start,.global-period-day.is-end{color:#fff!important;font-weight:900}.global-period-day.is-start:before,.global-period-day.is-end:before{content:"";position:absolute;inset:4px;border-radius:10px;background:#138a46;z-index:-1;box-shadow:0 5px 12px rgba(19,138,70,.20)}.global-period-day.is-end:before{background:#4d7df1;box-shadow:0 5px 12px rgba(77,125,241,.22)}.global-period-day.is-today:not(.is-start):not(.is-end){box-shadow:inset 0 0 0 1px #7fbe94}

html[data-theme="dark"] body:not(.tv-mode) .global-period-caption{color:#dce9e0}
html[data-theme="dark"] body:not(.tv-mode) .global-period-control{background:#0f1914;border-color:#2f4638;box-shadow:none}
html[data-theme="dark"] body:not(.tv-mode) .global-period-display{color:#f2faf5!important}
html[data-theme="dark"] body:not(.tv-mode) .global-period-trigger{color:#83dda3}
html[data-theme="dark"] body:not(.tv-mode) .global-period-trigger:hover{background:#18271f}
html[data-theme="dark"] body:not(.tv-mode) .global-period-popover{background:#111b16;border-color:#2c4235;color:#eef8f1;box-shadow:0 24px 64px rgba(0,0,0,.46)}
html[data-theme="dark"] body:not(.tv-mode) .global-period-summary-card{background:#16221b;border-color:#30453a;color:#eaf6ee}
html[data-theme="dark"] body:not(.tv-mode) .global-period-summary-card small{color:#96a89d}
html[data-theme="dark"] body:not(.tv-mode) .global-period-summary-card.active{background:#163121;border-color:#397b50}
html[data-theme="dark"] body:not(.tv-mode) .global-period-summary-card.end.active{background:#18263e;border-color:#415f91}
html[data-theme="dark"] body:not(.tv-mode) .global-period-help{color:#a6b5ac}
html[data-theme="dark"] body:not(.tv-mode) .global-period-single-day{background:#163121;color:#aef0c1}
html[data-theme="dark"] body:not(.tv-mode) .global-period-nav{background:#18241e;color:#bdd0c4}
html[data-theme="dark"] body:not(.tv-mode) .global-period-month-title{color:#f0f8f3}
html[data-theme="dark"] body:not(.tv-mode) .global-period-month-title:hover,html[data-theme="dark"] body:not(.tv-mode) .global-period-nav:hover{background:#213128}
html[data-theme="dark"] body:not(.tv-mode) .global-period-week span{color:#93a69a}
html[data-theme="dark"] body:not(.tv-mode) .global-period-day{color:#d8e5dd}
html[data-theme="dark"] body:not(.tv-mode) .global-period-day.is-outside{color:#5f7166}
html[data-theme="dark"] body:not(.tv-mode) .global-period-day.is-range{background:#183322}
html[data-theme="dark"] body:not(.tv-mode) .global-period-day:hover{background:#203729;color:#aef0c1}

@media(max-width:760px){
  .global-period-single{width:100%;max-width:none!important;min-width:0!important}
  .global-period-control{height:46px}.global-period-display{height:44px!important;font-size:13px!important}
  .global-period-popover{width:min(360px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);padding:10px;border-radius:16px}
  .global-period-summary{grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);gap:5px}
  .global-period-summary-card{padding:8px 9px}.global-period-summary-card strong{font-size:13px}.global-period-summary-card small{font-size:10px}
  .global-period-help-row{min-height:34px;padding:5px 2px 4px;flex-direction:row;align-items:center}.global-period-help{font-size:10.5px}.global-period-single-day{width:auto;padding:7px 8px;font-size:10px}
  .global-period-monthbar{grid-template-columns:40px 1fr 40px;gap:6px;margin:1px 0 5px}
  .global-period-nav{height:40px;font-size:26px}.global-period-month-title{height:40px;font-size:18px}
  .global-period-week span{padding:5px 0;font-size:11px}.global-period-day{height:40px;font-size:14px}
  .global-period-day.is-start:before,.global-period-day.is-end:before{inset:4px;border-radius:10px}
  .report-range-inputs{gap:8px!important;flex-wrap:wrap}
}


/* global-date-0.0.95.css */
/* Produção Só Folhas — calendário global para datas individuais 0.0.95 — popover responsivo compacto
   Mantém o input type=date no DOM (oculto) para preservar a lógica e substitui apenas a UI nativa. */
.global-date-native{display:none!important}
.global-date-single{display:inline-flex;flex-direction:column;width:100%;min-width:0;vertical-align:top}
.global-date-control{position:relative;display:flex;align-items:center;width:100%;min-width:0;height:48px;border:1px solid #cfded4;border-radius:15px;background:#fff;box-shadow:0 1px 2px rgba(16,33,50,.03);overflow:hidden;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}
.global-date-control:focus-within{border-color:#5eb77b;box-shadow:0 0 0 3px rgba(27,135,71,.10)}
.global-date-display{width:100%!important;min-width:0!important;height:46px!important;padding:0 44px 0 14px!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;font:800 14px/1 Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;color:#102132!important;letter-spacing:.005em!important}
.global-date-display::placeholder{color:#8a9790!important;font-weight:700!important}
.global-date-display.is-invalid{color:#b42318!important;background:rgba(180,35,24,.04)!important}
.global-date-trigger{position:absolute;right:4px;top:4px;width:38px;height:38px;border:0;border-radius:11px;background:transparent;color:#0b7a3d;display:grid;place-items:center;cursor:pointer;padding:0;transition:background .15s ease,transform .15s ease}
.global-date-trigger:hover{background:#edf8f1}.global-date-trigger:active{transform:scale(.96)}
.global-date-trigger svg{width:20px;height:20px}.global-date-trigger:disabled,.global-date-display:disabled{opacity:.55;cursor:not-allowed}

.global-date-popover{position:fixed;z-index:100001;width:344px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow-y:auto;padding:10px;background:#fff;border:1px solid #d9e4dd;border-radius:17px;box-shadow:0 24px 64px rgba(16,33,50,.22),0 4px 16px rgba(16,33,50,.08);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#243447}
.global-date-popover[hidden]{display:none!important}
.global-date-summary-card{border:1px solid #70bd8c;border-radius:12px;background:#eef8f1;padding:7px 9px;color:#2b394a;box-shadow:0 0 0 2px rgba(27,135,71,.08)}
.global-date-summary-card small{display:block;font-size:10px;line-height:1.1;font-weight:900;color:#16713b;letter-spacing:.035em;margin-bottom:3px}
.global-date-summary-card strong{display:block;white-space:nowrap;font-size:13px;line-height:1.1;font-weight:900;overflow:hidden;text-overflow:ellipsis}
.global-date-actions{display:flex;justify-content:space-between;align-items:center;gap:6px;min-height:34px;padding:5px 2px 2px}
.global-date-clear,.global-date-today{border:0;border-radius:10px;background:transparent;color:#126e3a;font:800 11px/1 Inter,system-ui,sans-serif;padding:8px 10px;cursor:pointer}
.global-date-clear:hover,.global-date-today:hover{background:#eef8f1}
.global-date-monthbar{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:6px;margin:1px 0 5px}
.global-date-nav{height:36px;border:0;border-radius:10px;background:#f4f7f5;color:#415365;font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center;padding:0}
.global-date-nav:hover{background:#eaf3ed;color:#126e3a}
.global-date-month-title{text-align:center;color:#1f2d3d;font-size:17px;font-weight:900;padding:0 6px}
.global-date-week{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:2px}.global-date-week span{text-align:center;padding:4px 0;font-size:11px;font-weight:800;color:#7a8593}
.global-date-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:0;overflow:hidden;border-radius:10px}
.global-date-day{position:relative;height:35px;border:0;background:transparent;color:#3b4958;font-size:13px;font-weight:700;cursor:pointer;padding:0;isolation:isolate}
.global-date-day:hover{background:#edf7f0;color:#106d39}.global-date-day.is-outside{color:#bdc6cf}
.global-date-day.is-selected{color:#fff!important;font-weight:900}.global-date-day.is-selected:before{content:"";position:absolute;inset:4px;border-radius:10px;background:#138a46;z-index:-1;box-shadow:0 5px 12px rgba(19,138,70,.20)}
.global-date-day.is-today:not(.is-selected){box-shadow:inset 0 0 0 1px #7fbe94}
.global-date-day.is-disabled{opacity:.28;cursor:not-allowed;background:transparent!important;color:#8e9b94!important}

html[data-theme="dark"] body:not(.tv-mode) .global-date-control{background:#0f1914;border-color:#2f4638;box-shadow:none}
html[data-theme="dark"] body:not(.tv-mode) .global-date-display{color:#f2faf5!important}
html[data-theme="dark"] body:not(.tv-mode) .global-date-trigger{color:#83dda3}
html[data-theme="dark"] body:not(.tv-mode) .global-date-trigger:hover{background:#18271f}
html[data-theme="dark"] body:not(.tv-mode) .global-date-popover{background:#111b16;border-color:#2c4235;color:#eef8f1;box-shadow:0 24px 64px rgba(0,0,0,.46)}
html[data-theme="dark"] body:not(.tv-mode) .global-date-summary-card{background:#163121;border-color:#397b50;color:#eaf6ee}
html[data-theme="dark"] body:not(.tv-mode) .global-date-summary-card small{color:#aef0c1}
html[data-theme="dark"] body:not(.tv-mode) .global-date-clear,html[data-theme="dark"] body:not(.tv-mode) .global-date-today{color:#aef0c1}
html[data-theme="dark"] body:not(.tv-mode) .global-date-clear:hover,html[data-theme="dark"] body:not(.tv-mode) .global-date-today:hover{background:#163121}
html[data-theme="dark"] body:not(.tv-mode) .global-date-nav{background:#18241e;color:#bdd0c4}
html[data-theme="dark"] body:not(.tv-mode) .global-date-nav:hover{background:#213128;color:#aef0c1}
html[data-theme="dark"] body:not(.tv-mode) .global-date-month-title{color:#f0f8f3}
html[data-theme="dark"] body:not(.tv-mode) .global-date-week span{color:#93a69a}
html[data-theme="dark"] body:not(.tv-mode) .global-date-day{color:#d8e5dd}
html[data-theme="dark"] body:not(.tv-mode) .global-date-day.is-outside{color:#5f7166}
html[data-theme="dark"] body:not(.tv-mode) .global-date-day:hover{background:#203729;color:#aef0c1}

/* Painel de TV preserva a paleta própria, mas usa a mesma geometria. */
body.tv-mode .global-date-control{height:48px;border-radius:15px}

@media(max-width:760px){
  .global-date-single{width:100%;max-width:none!important;min-width:0!important}
  .global-date-control{height:46px}.global-date-display{height:44px!important;font-size:13px!important}
  .global-date-popover{width:min(360px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);padding:10px;border-radius:16px}
  .global-date-summary-card{padding:8px 9px}.global-date-summary-card strong{font-size:13px}.global-date-summary-card small{font-size:10px}
  .global-date-actions{min-height:36px;padding:5px 2px 2px}.global-date-clear,.global-date-today{padding:7px 8px;font-size:11px}
  .global-date-monthbar{grid-template-columns:40px 1fr 40px;gap:6px;margin:1px 0 5px}
  .global-date-nav{height:40px;font-size:26px}.global-date-month-title{font-size:18px}
  .global-date-week span{padding:5px 0;font-size:11px}.global-date-day{height:40px;font-size:14px}
  .global-date-day.is-selected:before{inset:4px;border-radius:10px}
}


/* global-month-0.0.95.css */
/* Produção Só Folhas — seletor global de mês 0.0.95 — popover responsivo compacto */
.global-month-native{display:none!important}
.global-month-single{display:inline-flex;flex-direction:column;width:100%;min-width:0}
.global-month-control{position:relative;display:flex;align-items:center;width:100%;height:var(--sf-control-height,48px);border:1px solid #cfded4;border-radius:var(--sf-control-radius,14px);background:#fff;overflow:hidden;box-shadow:0 1px 2px rgba(16,33,50,.03)}
.global-month-control:focus-within{border-color:#5eb77b;box-shadow:0 0 0 3px rgba(27,135,71,.10)}
.global-month-display{width:100%!important;height:calc(var(--sf-control-height,48px) - 2px)!important;padding:0 46px 0 var(--sf-control-padding-x,14px)!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;font:800 14px/1 Inter,system-ui,sans-serif!important;color:#102132!important}
.global-month-display.is-invalid{color:#b42318!important}
.global-month-trigger{position:absolute;right:4px;top:4px;width:40px;height:40px;border:0;border-radius:11px;background:transparent;color:#0b7a3d;display:grid;place-items:center;cursor:pointer}
.global-month-trigger:hover{background:#edf8f1}.global-month-trigger svg{width:20px;height:20px}
.global-month-popover{position:fixed;z-index:100002;width:360px;max-width:calc(100vw - 24px);padding:12px;background:#fff;border:1px solid #d9e4dd;border-radius:20px;box-shadow:0 24px 64px rgba(16,33,50,.22),0 4px 16px rgba(16,33,50,.08);font-family:Inter,system-ui,sans-serif}
.global-month-popover[hidden]{display:none!important}.global-month-yearbar{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;margin-bottom:10px}.global-month-yearbar button{height:42px;border:0;border-radius:12px;background:#f4f7f5;color:#415365;font-size:30px;cursor:pointer}.global-month-yearbar strong{text-align:center;font-size:20px}.global-month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.global-month-option{height:44px;border:1px solid #e2e9e4;border-radius:12px;background:#f8fbf9;color:#344054;font-weight:800;cursor:pointer}.global-month-option:hover{background:#edf7f0;color:#106d39}.global-month-option.is-selected{background:#138a46;color:#fff;border-color:#138a46}
html[data-theme="dark"] body:not(.tv-mode) .global-month-control{background:#0f1914;border-color:#2f4638}html[data-theme="dark"] body:not(.tv-mode) .global-month-display{color:#f2faf5!important}html[data-theme="dark"] body:not(.tv-mode) .global-month-trigger{color:#83dda3}html[data-theme="dark"] body:not(.tv-mode) .global-month-popover{background:#111b16;border-color:#2c4235;color:#eef8f1}html[data-theme="dark"] body:not(.tv-mode) .global-month-option{background:#16221b;border-color:#30453a;color:#d8e5dd}html[data-theme="dark"] body:not(.tv-mode) .global-month-option.is-selected{background:#138a46;color:#fff}
@media(max-width:760px){.global-month-control{height:var(--sf-control-height-mobile,46px)}.global-month-display{height:44px!important}.global-month-popover{left:12px!important;width:calc(100vw - 24px)!important}.global-month-grid{grid-template-columns:repeat(2,1fr)}}


/* Compactação responsiva global 0.0.95 */
.global-month-popover{width:320px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow-y:auto;padding:10px;border-radius:17px}
.global-month-yearbar{grid-template-columns:38px 1fr 38px!important;gap:6px!important;margin-bottom:7px!important}
.global-month-yearbar button{height:36px!important;border-radius:10px!important;font-size:24px!important}
.global-month-yearbar strong{font-size:17px!important}
.global-month-grid{grid-template-columns:repeat(3,1fr)!important;gap:6px!important}
.global-month-option{height:40px!important;border-radius:10px!important;font-size:13px!important}
@media(max-width:760px){
 .global-month-popover{width:min(360px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);padding:10px;border-radius:16px}
 .global-month-yearbar{grid-template-columns:40px 1fr 40px!important}
 .global-month-yearbar button{height:40px!important;font-size:26px!important}
 .global-month-yearbar strong{font-size:18px!important}
 .global-month-grid{grid-template-columns:repeat(3,1fr)!important;gap:6px!important}
 .global-month-option{height:42px!important;font-size:13px!important}
}
@media(max-width:760px){
 .global-month-popover{left:50%!important;transform:translateX(-50%);width:min(360px,calc(100vw - 24px))!important}
}


/* global-ui-standard-0.0.94.css */
/* Produção Só Folhas 0.0.94 — régua visual global definitiva.
   Uma única geometria para filtros, datas, períodos, formulários e modais.
   Somente camada visual/estrutural; nenhuma regra de negócio. */
:root{
  --sf-control-height:48px;
  --sf-control-height-mobile:46px;
  --sf-filter-width:300px;
  --sf-filter-gap:12px;
  --sf-control-radius:14px;
  --sf-control-padding-x:14px;
  --sf-control-label-gap:6px;
  --sf-control-label-size:11px;
}
*,*::before,*::after{box-sizing:border-box}

/* ===== Componentes globais de data/período/mês ===== */
.global-period-control,.global-date-control,.global-month-control{
  height:var(--sf-control-height)!important;
  min-height:var(--sf-control-height)!important;
  border-radius:var(--sf-control-radius)!important;
}
.global-period-display,.global-date-display,.global-month-display{
  height:calc(var(--sf-control-height) - 2px)!important;
  min-height:0!important;
  padding-left:var(--sf-control-padding-x)!important;
  font-size:14px!important;
  line-height:1!important;
}
.global-period-trigger,.global-date-trigger,.global-month-trigger{
  width:40px!important;height:40px!important;top:4px!important;right:4px!important;border-radius:11px!important;
}
.global-period-single,.global-date-single,.global-month-single{min-width:0!important}

/* ===== Barras de filtro: WRAP > ESPREMER ===== */
.sf-filter-bar{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:var(--sf-filter-gap)!important;
  grid-template-columns:none!important;
  grid-auto-flow:row!important;
  min-width:0!important;
}
.sf-filter-bar>.sf-filter-control,
.sf-filter-bar>.global-period-unified-container,
.sf-filter-bar>.global-period-single,
.sf-filter-bar>.global-date-single,
.sf-filter-bar>.global-month-single{
  width:var(--sf-filter-width)!important;
  max-width:var(--sf-filter-width)!important;
  min-width:min(100%,220px)!important;
  flex:0 1 var(--sf-filter-width)!important;
  margin:0!important;
  align-self:flex-end!important;
}
.sf-filter-bar label,.sf-filter-control{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  gap:var(--sf-control-label-gap)!important;
  color:var(--muted,#66756c)!important;
  font-size:var(--sf-control-label-size)!important;
  font-weight:800!important;
  line-height:1.15!important;
  min-width:0!important;
}
.sf-filter-bar input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.global-period-display):not(.global-date-display):not(.global-month-display),
.sf-filter-bar select,
.sf-filter-control input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.global-period-display):not(.global-date-display):not(.global-month-display),
.sf-filter-control select{
  width:100%!important;
  min-width:0!important;
  height:var(--sf-control-height)!important;
  min-height:var(--sf-control-height)!important;
  margin:0!important;
  padding:0 var(--sf-control-padding-x)!important;
  border-radius:var(--sf-control-radius)!important;
  font-size:14px!important;
  line-height:1!important;
}
.sf-filter-control .global-period-single,.sf-filter-control .global-date-single,.sf-filter-control .global-month-single,
.sf-filter-bar .global-period-unified-container .global-period-single{width:100%!important;max-width:100%!important;min-width:0!important;flex:1 1 auto!important}
.sf-filter-action{align-self:flex-end!important;display:flex!important;align-items:flex-end!important;margin:0!important}
.sf-filter-action>.btn,.sf-filter-bar>.btn,.sf-filter-bar button.btn{
  min-height:var(--sf-control-height)!important;
  height:var(--sf-control-height)!important;
  border-radius:var(--sf-control-radius)!important;
  white-space:nowrap!important;
  margin:0!important;
}
.sf-filter-bar .mini-toggle{min-height:var(--sf-control-height)!important;display:flex!important;align-items:center!important;align-self:flex-end!important}

/* Toggles e caixas booleanas ocupam a mesma régua, sem transformar o checkbox em 48px. */
.sf-filter-bar :is(.conference-divergence-toggle,.completed-modern-toggle,.leftover-toggle,.purchase-pending-break-filter,.purchase-pending-switch){
  height:var(--sf-control-height)!important;min-height:var(--sf-control-height)!important;border-radius:var(--sf-control-radius)!important;
  display:flex!important;align-items:center!important;gap:9px!important;padding:0 var(--sf-control-padding-x)!important;
}
.sf-filter-bar input[type="checkbox"],.sf-filter-bar input[type="radio"]{width:16px!important;height:16px!important;min-height:16px!important;flex:0 0 16px!important}

/* ===== Wrappers antigos: o componente global é a única caixa visível ===== */
.sf-legacy-wrapper-clean{
  border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;min-height:0!important;height:auto!important;border-radius:0!important;overflow:visible!important;
}
.exec-period-fields.sf-legacy-wrapper-clean,.pro-date-grid.sf-legacy-wrapper-clean,.refined-period-fields.sf-legacy-wrapper-clean,.compact-period-fields.sf-legacy-wrapper-clean{
  display:block!important;width:100%!important;max-width:none!important;grid-template-columns:none!important;
}
.exec-period-fields .exec-sep,.pro-date-grid .pro-date-separator,.compact-period-fields .exec-sep{display:none!important}
.exec-period-summary{display:none!important}
.completed-period-field>div.sf-legacy-wrapper-clean{width:100%!important}

/* Dashboard: Período e Setor são pares equivalentes, sem dupla caixa. */
.exec-filter-row>.exec-filter-group,.exec-filter-row>.exec-sector-group,.exec-filter-row>.refined-sector-group{
  width:var(--sf-filter-width)!important;max-width:var(--sf-filter-width)!important;min-width:220px!important;flex:0 1 var(--sf-filter-width)!important;
}
.exec-select-wrap,.refined-select-wrap{width:100%!important;min-width:0!important;border:0!important;background:transparent!important;padding:0!important;box-shadow:none!important}
.exec-select-wrap select,.refined-select-wrap select,.exec-dashboard-select,.pro-dashboard-select{
  width:100%!important;height:var(--sf-control-height)!important;min-height:var(--sf-control-height)!important;border-radius:var(--sf-control-radius)!important;padding:0 42px 0 var(--sf-control-padding-x)!important;
}

/* ===== Formulários e linhas operacionais ===== */
.sf-form-scope{align-items:end}
.sf-form-scope .sf-form-control,
.sf-form-scope input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.global-period-display):not(.global-date-display):not(.global-month-display),
.sf-form-scope select{
  height:var(--sf-control-height)!important;
  min-height:var(--sf-control-height)!important;
  border-radius:var(--sf-control-radius)!important;
  padding-top:0!important;padding-bottom:0!important;
}
.sf-form-scope .global-date-control,.sf-form-scope .global-period-control,.sf-form-scope .global-month-control{height:var(--sf-control-height)!important}

/* Nova Compra / Editar compra: Data da lista tem largura coerente e não fica perdida no canto. */
.purchase-proto-meta{grid-template-columns:minmax(280px,300px)!important;width:min(100%,300px)!important;max-width:300px!important}
.purchase-proto-meta label,.purchase-saved-edit-meta label{width:100%!important;max-width:300px!important}
.purchase-saved-edit-meta{justify-content:flex-end!important}
.purchase-saved-edit-meta label{min-width:280px!important}
.purchase-proto-row input,.purchase-proto-row select,.purchase-saved-edit-row input,.purchase-saved-edit-row select{height:var(--sf-control-height)!important;min-height:var(--sf-control-height)!important;border-radius:var(--sf-control-radius)!important}
.purchase-proto-remove{width:var(--sf-control-height)!important;height:var(--sf-control-height)!important;min-height:var(--sf-control-height)!important}

/* Estoque: modais e distribuição por data. */
.stock-dist-row{display:grid!important;grid-template-columns:minmax(230px,300px) minmax(160px,220px) auto 48px!important;gap:var(--sf-filter-gap)!important;align-items:center!important;min-height:var(--sf-control-height)!important}
.stock-dist-row .global-date-single,.stock-dist-row input,.stock-dist-row select{height:var(--sf-control-height)!important;min-height:var(--sf-control-height)!important}
.stock-dist-remove{width:48px!important;height:48px!important;min-height:48px!important;border-radius:var(--sf-control-radius)!important}

/* ===== Modais: toda a linha usa 48px, não apenas a data ===== */
.sf-modal-scope input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not(.global-period-display):not(.global-date-display):not(.global-month-display),
.sf-modal-scope select,.sf-modal-scope .sf-modal-control{
  min-height:var(--sf-control-height)!important;height:var(--sf-control-height)!important;border-radius:var(--sf-control-radius)!important;
}
.sf-modal-scope textarea{min-height:96px!important;border-radius:var(--sf-control-radius)!important}
.sf-modal-scope .modal-actions .btn,.sf-modal-scope .btn:not(.btn-mini):not(.modal-close){min-height:var(--sf-control-height)!important;border-radius:var(--sf-control-radius)!important}
.sf-modal-scope .global-period-control,.sf-modal-scope .global-date-control,.sf-modal-scope .global-month-control{height:var(--sf-control-height)!important}

/* ===== Áreas legadas explicitamente auditadas ===== */
.history-tools.sf-filter-bar{justify-content:flex-start!important;width:100%!important}
.history-tools.sf-filter-bar label{align-items:stretch!important}
.order-main-filters.sf-filter-bar,.review-fast-filters.sf-filter-bar{margin-left:0!important;margin-right:0!important}
.material-form-grid input,.material-form-grid select,.sep-batch-main input,.sep-batch-main select,.sep-form-grid input,.sep-form-grid select{
  min-height:var(--sf-control-height)!important;height:var(--sf-control-height)!important;border-radius:var(--sf-control-radius)!important;
}

/* Painel TV: mesma geometria, paleta própria. */
.tv-actions.sf-filter-bar{align-items:flex-end!important}.tv-period-pills{min-height:var(--sf-control-height)!important;display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important}.tv-period-btn{height:var(--sf-control-height)!important;min-height:var(--sf-control-height)!important;padding:0 14px!important}
body.tv-mode .global-period-control,body.tv-mode .global-date-control,body.tv-mode .global-month-control{height:var(--sf-control-height)!important}

/* Estado de foco consistente sem alterar a geometria no dark mode. */
.sf-filter-bar input:focus,.sf-filter-bar select:focus,.sf-form-scope input:focus,.sf-form-scope select:focus,.sf-modal-scope input:focus,.sf-modal-scope select:focus{
  outline:0!important;border-color:#5eb77b!important;box-shadow:0 0 0 3px rgba(27,135,71,.10)!important;
}
html[data-theme="dark"] body:not(.tv-mode) .sf-filter-bar,
html[data-theme="dark"] body:not(.tv-mode) .sf-form-scope,
html[data-theme="dark"] body:not(.tv-mode) .sf-modal-scope{--sf-control-height:48px;--sf-filter-width:300px;--sf-filter-gap:12px}

/* Notebook/tablet: quebra linha; nunca comprime Período para 130px. */
@media(max-width:1180px){
  :root{--sf-filter-width:280px}
  .sf-filter-bar>.sf-filter-control,.sf-filter-bar>.global-period-unified-container,.sf-filter-bar>.global-period-single,.sf-filter-bar>.global-date-single,.sf-filter-bar>.global-month-single{width:var(--sf-filter-width)!important;max-width:var(--sf-filter-width)!important;min-width:210px!important;flex-basis:var(--sf-filter-width)!important}
}

/* Mobile: uma coluna, 46px e zero scroll horizontal causado por filtros. */
@media(max-width:768px){
  :root{--sf-control-height:var(--sf-control-height-mobile);--sf-filter-width:100%;--sf-filter-gap:10px}
  .sf-filter-bar{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:var(--sf-filter-gap)!important}
  .sf-filter-bar>.sf-filter-control,.sf-filter-bar>.global-period-unified-container,.sf-filter-bar>.global-period-single,.sf-filter-bar>.global-date-single,.sf-filter-bar>.global-month-single,.sf-filter-action{
    width:100%!important;max-width:none!important;min-width:0!important;flex:1 1 100%!important;grid-column:auto!important;
  }
  .sf-filter-action>.btn,.sf-filter-bar>.btn{width:100%!important}
  .global-period-control,.global-date-control,.global-month-control{height:var(--sf-control-height-mobile)!important;min-height:var(--sf-control-height-mobile)!important}
  .global-period-display,.global-date-display,.global-month-display{height:44px!important}
  .sf-form-scope .sf-form-control,.sf-form-scope input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),.sf-form-scope select,.sf-modal-scope input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),.sf-modal-scope select{height:var(--sf-control-height-mobile)!important;min-height:var(--sf-control-height-mobile)!important}
  .purchase-proto-meta,.purchase-saved-edit-meta label{width:100%!important;max-width:none!important;min-width:0!important}
  .stock-dist-row{grid-template-columns:1fr!important;gap:10px!important}.stock-dist-remove{width:100%!important;height:var(--sf-control-height-mobile)!important;min-height:var(--sf-control-height-mobile)!important}
  .tv-period-btn{height:var(--sf-control-height-mobile)!important;min-height:var(--sf-control-height-mobile)!important}
}

/* Campos que são filhos diretos de barras (ex.: Relatórios Dia/Mês). */
.sf-filter-bar>.sf-filter-field{
  width:var(--sf-filter-width)!important;
  max-width:var(--sf-filter-width)!important;
  min-width:min(100%,220px)!important;
  flex:0 1 var(--sf-filter-width)!important;
  height:var(--sf-control-height)!important;
  min-height:var(--sf-control-height)!important;
  border-radius:var(--sf-control-radius)!important;
  padding:0 var(--sf-control-padding-x)!important;
  align-self:flex-end!important;
}

/* Datas individuais em cabeçalhos de cards mantêm a mesma régua sem virar barra inteira. */
.panel-head>label.sf-date-label,
.panel-head>label.sf-month-label,
.panel-head>label.sf-period-label{
  width:min(100%,300px)!important;
  max-width:300px!important;
  min-width:220px!important;
  display:flex!important;
  flex-direction:column!important;
  gap:var(--sf-control-label-gap)!important;
  font-size:var(--sf-control-label-size)!important;
  font-weight:800!important;
  color:var(--muted,#66756c)!important;
}

/* Solicitações e filtros executivos alternativos usam a mesma régua global. */
.request-filters.sf-filter-bar,.pro-filter-grid.sf-filter-bar{width:100%!important}
.request-grid.sf-form-scope{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;gap:var(--sf-filter-gap)!important;align-items:end!important}

/* Formulários comuns usam largura da coluna, mas preservam a altura global. */
.field.sf-form-scope>.global-date-single,.field.sf-form-scope>.global-month-single,.field.sf-form-scope>.global-period-single{width:100%!important;max-width:none!important}

@media(max-width:768px){
  .sf-filter-bar>.sf-filter-field{width:100%!important;max-width:none!important;min-width:0!important;flex:1 1 100%!important;height:var(--sf-control-height-mobile)!important;min-height:var(--sf-control-height-mobile)!important}
  .panel-head>label.sf-date-label,.panel-head>label.sf-month-label,.panel-head>label.sf-period-label{width:100%!important;max-width:none!important;min-width:0!important}
  .request-grid.sf-form-scope{grid-template-columns:1fr!important}
}

/* Labels que hospedam calendários globais preservam uma única hierarquia visual. */
.sf-date-label,.sf-period-label,.sf-month-label{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  gap:var(--sf-control-label-gap)!important;
  min-width:0!important;
}
.sf-date-label>.global-date-single,.sf-period-label>.global-period-single,.sf-month-label>.global-month-single{width:100%!important;max-width:100%!important;min-width:0!important}


/* ======================================================================
   0.0.94 — saneamento estrutural pós-auditoria real do DOM
   Corrige famílias inteiras: wrappers ressuscitados, pais estreitos e
   regras legadas mais específicas que a régua global.
   ====================================================================== */

/* 1) Elementos ocultos pelo componente global nunca podem ser ressuscitados
      por regras genéricas de label/input das barras. */
.sf-filter-bar .global-period-pair-hidden,
.sf-filter-bar .global-period-native,
.sf-filter-bar .global-date-native,
.sf-filter-bar .global-month-native,
.sf-form-scope .global-period-pair-hidden,
.sf-form-scope .global-period-native,
.sf-form-scope .global-date-native,
.sf-form-scope .global-month-native,
.sf-modal-scope .global-period-pair-hidden,
.sf-modal-scope .global-period-native,
.sf-modal-scope .global-date-native,
.sf-modal-scope .global-month-native{
  display:none!important;
}

/* O antigo rótulo "Datas:" deixa de disputar espaço com o novo campo Período. */
.custom-period-row.sf-filter-bar > b,
.custom-period-row.sf-filter-bar > strong:first-child{
  display:none!important;
}
.custom-period-row.sf-filter-bar{
  min-height:0!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
}
.custom-period-row.sf-filter-bar > .global-period-unified-container{
  margin:0!important;
}

/* 2) A caixa externa do componente sempre mede 48px; o input interno 46px.
      Regras antigas de Relatórios/Histórico não podem reduzir para 42px. */
html body .global-period-control > .global-period-display,
html body .global-date-control > .global-date-display,
html body .global-month-control > .global-month-display,
html body .sf-filter-bar .global-period-control > .global-period-display,
html body .sf-filter-bar .global-date-control > .global-date-display,
html body .sf-filter-bar .global-month-control > .global-month-display,
html body .sf-form-scope .global-period-control > .global-period-display,
html body .sf-form-scope .global-date-control > .global-date-display,
html body .sf-form-scope .global-month-control > .global-month-display,
html body .sf-modal-scope .global-period-control > .global-period-display,
html body .sf-modal-scope .global-date-control > .global-date-display,
html body .sf-modal-scope .global-month-control > .global-month-display{
  height:calc(var(--sf-control-height) - 2px)!important;
  min-height:calc(var(--sf-control-height) - 2px)!important;
  padding-top:0!important;
  padding-bottom:0!important;
}

/* 3) Cabeçalho da Nova Compra: o pai precisa reservar a mesma largura que
      o componente pede. Não permitir 300px dentro de uma coluna de 200px. */
.purchase-proto-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(280px,300px)!important;
  gap:16px!important;
  align-items:start!important;
}
.purchase-proto-meta{
  width:100%!important;
  min-width:0!important;
  max-width:300px!important;
  grid-template-columns:minmax(0,1fr)!important;
  justify-self:end!important;
  align-self:start!important;
}
.purchase-proto-meta > label,
.purchase-proto-meta .global-date-single{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
}

/* Editar lista: mesma geometria da Nova Compra. */
.purchase-saved-edit-meta{
  display:flex!important;
  justify-content:flex-end!important;
  width:100%!important;
  margin-bottom:12px!important;
}
.purchase-saved-edit-meta > label{
  width:min(100%,300px)!important;
  min-width:0!important;
  max-width:300px!important;
}

/* 4) Concluídos: o wrapper antigo não desenha segunda caixa nem impõe grid antigo. */
.completed-period-field > div,
.completed-period-field > div.sf-legacy-wrapper-clean{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  grid-template-columns:none!important;
}
.completed-period-field > div > i{display:none!important}
.completed-period-field .global-period-single{width:100%!important;max-width:none!important}

/* 5) Barras que escapavam da classificação global. */
.product-bonus-toolbar.sf-filter-bar,
.sep-filter-grid.sf-filter-bar,
.purchase-supplier-toolbar.sf-filter-bar,
.purchase-proto-search-field.sf-filter-bar,
.materials-history-filters.sf-filter-bar,
.attendance-filters.sf-filter-bar,
.frequency-filters.sf-filter-bar,
.banco-horas-filters.sf-filter-bar{
  width:100%!important;
}

/* Produto/Bonificações: filtros operacionais padronizados sem inflar inputs da tabela. */
.product-bonus-toolbar.sf-filter-bar > label{
  width:var(--sf-filter-width)!important;
  max-width:var(--sf-filter-width)!important;
  flex:0 1 var(--sf-filter-width)!important;
}
.product-bonus-toolbar.sf-filter-bar > .btn{
  width:auto!important;
  flex:0 0 auto!important;
}

/* 6) Formulários de materiais/erros/solicitações: data não pode ser maior
      ou menor que os controles irmãos. */
:is(.material-form-grid,.sep-batch-main,.sep-form-grid,.request-grid).sf-form-scope
  :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select){
  height:var(--sf-control-height)!important;
  min-height:var(--sf-control-height)!important;
  border-radius:var(--sf-control-radius)!important;
}

/* 7) Painel de lançamento customizado: só existe um campo visual de Período.
      Nenhum "Fim" ou label legado volta a ocupar a linha. */
.custom-period-row .global-period-unified-container{
  width:var(--sf-filter-width)!important;
  max-width:var(--sf-filter-width)!important;
  flex:0 1 var(--sf-filter-width)!important;
}
.custom-period-row .global-period-unified-container > .global-period-single{
  width:100%!important;
  max-width:none!important;
}

/* 8) Barras de filtro genéricas: filhos diretos com calendário têm exatamente
      a mesma largura. Campos booleanos continuam compactos quando apropriado. */
.sf-filter-bar > :is(.sf-date-label,.sf-period-label,.sf-month-label),
.sf-filter-bar > label:has(> .global-date-single),
.sf-filter-bar > label:has(> .global-period-single),
.sf-filter-bar > label:has(> .global-month-single){
  width:var(--sf-filter-width)!important;
  max-width:var(--sf-filter-width)!important;
  min-width:220px!important;
  flex:0 1 var(--sf-filter-width)!important;
}

/* 9) Filtros de Histórico/Relatórios que tinham regra local de 42px. */
.history-tools.sf-filter-bar :is(input,select):not([type="checkbox"]):not([type="radio"]):not(.global-date-display):not(.global-period-display):not(.global-month-display),
.report-toolbar-pro.sf-filter-bar :is(input,select):not([type="checkbox"]):not([type="radio"]):not(.global-date-display):not(.global-period-display):not(.global-month-display){
  height:var(--sf-control-height)!important;
  min-height:var(--sf-control-height)!important;
  border-radius:var(--sf-control-radius)!important;
}

/* 10) Modais e linhas dinâmicas: a data não pode ser o único campo de 48px. */
.sf-modal-scope .field,
.sf-modal-scope label{
  min-width:0!important;
}
.stock-dist-row{
  grid-template-columns:minmax(230px,300px) minmax(160px,220px) minmax(0,1fr) 48px!important;
  align-items:end!important;
}
.stock-dist-row :is(input,select,.global-date-control){
  min-height:var(--sf-control-height)!important;
  height:var(--sf-control-height)!important;
}

/* 11) Notebook: data de Nova Compra passa para baixo do título antes de estourar. */
@media(max-width:1180px){
  .purchase-proto-head{
    grid-template-columns:minmax(0,1fr) minmax(260px,280px)!important;
  }
}
@media(max-width:900px){
  .purchase-proto-head{
    grid-template-columns:1fr!important;
  }
  .purchase-proto-meta{
    justify-self:start!important;
    width:min(100%,300px)!important;
  }
}

/* 12) Mobile: ocultos continuam ocultos; componentes ocupam 100%. */
@media(max-width:768px){
  .sf-filter-bar .global-period-pair-hidden{display:none!important}
  .purchase-proto-meta,.purchase-saved-edit-meta > label{width:100%!important;max-width:none!important}
  html body .global-period-control > .global-period-display,
  html body .global-date-control > .global-date-display,
  html body .global-month-control > .global-month-display{
    height:calc(var(--sf-control-height-mobile) - 2px)!important;
    min-height:calc(var(--sf-control-height-mobile) - 2px)!important;
  }
}

/* 13) Acertos tinha display:grid !important com seletor mais específico.
       Força a barra real para flex/wrap e impede ação de escapar do card. */
.purchase-pending-filter-card .purchase-settlement-filter-grid.sf-filter-bar,
.purchase-settlement-ledger-filters .purchase-settlement-filter-grid.sf-filter-bar{
  display:flex!important;
  flex-wrap:wrap!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:var(--sf-filter-gap)!important;
  grid-template-columns:none!important;
  width:100%!important;
  min-width:0!important;
}
.purchase-pending-filter-card .purchase-settlement-filter-grid.sf-filter-bar > .sf-filter-action,
.purchase-settlement-ledger-filters .purchase-settlement-filter-grid.sf-filter-bar > .sf-filter-action{
  margin-left:0!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
}

/* 14) Faixa 721–820px: havia uma regra desktop posterior ressuscitando a sidebar
       e comprimindo o main para ~76px. Aqui o mobile estrutural vence por último. */
@media(max-width:820px){
  body:not(.tv-mode) .shell,
  body:not(.tv-mode) .shell.sidebar-collapsed{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    grid-template-columns:none!important;
  }
  body:not(.tv-mode) .shell .sidebar,
  body:not(.tv-mode) .shell.sidebar-collapsed .sidebar,
  body:not(.tv-mode) .shell .topbar,
  body:not(.tv-mode) .shell.sidebar-collapsed .topbar{
    display:none!important;
  }
  body:not(.tv-mode) .shell .main,
  body:not(.tv-mode) .shell.sidebar-collapsed .main{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    grid-column:auto!important;
    overflow-x:hidden!important;
  }
  body:not(.tv-mode) .mobile-topbar{display:flex!important}
  body:not(.tv-mode) .mobile-shell{display:flex!important}
  .content{width:100%!important;max-width:100%!important;min-width:0!important}
}


/* conference-filter-layout-0.0.96.css */
/* Produção Só Folhas 0.0.96 — Conferência: distribuição racional dos filtros.
   Somente layout visual. Nenhuma regra de negócio, evento ou cálculo. */

/* Desktop / notebook largo: primeira linha usa o espaço disponível de forma útil.
   Período = compacto, Fornecedor = intermediário, Busca = flexível. */
.conference-active-filter-grid.sf-filter-bar{
  display:grid!important;
  grid-template-columns:minmax(260px,280px) minmax(300px,360px) minmax(340px,1fr)!important;
  grid-auto-flow:row!important;
  align-items:end!important;
  column-gap:12px!important;
  row-gap:10px!important;
  width:100%!important;
  min-width:0!important;
}

/* Período */
.conference-active-filter-grid.sf-filter-bar > .global-period-unified-container,
.conference-active-filter-grid.sf-filter-bar > label:has(#purchaseConferenceFilterStart){
  grid-column:1!important;
  width:100%!important;
  max-width:280px!important;
  min-width:0!important;
  flex:none!important;
}

/* Fornecedor */
.conference-active-filter-grid.sf-filter-bar > label:has(#purchaseConferenceFilterSupplier){
  grid-column:2!important;
  width:100%!important;
  max-width:360px!important;
  min-width:0!important;
  flex:none!important;
}

/* Busca ocupa todo o restante útil da linha. */
.conference-active-filter-grid.sf-filter-bar > .conference-filter-search{
  grid-column:3!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  flex:none!important;
}

/* Segunda linha: controles compactos. O checkbox não é um campo de texto de 300px. */
.conference-active-filter-grid.sf-filter-bar > .conference-divergence-toggle{
  grid-column:1!important;
  width:max-content!important;
  min-width:210px!important;
  max-width:240px!important;
  height:var(--sf-control-height)!important;
  min-height:var(--sf-control-height)!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:9px!important;
  padding:0 14px!important;
  margin:0!important;
  white-space:nowrap!important;
  align-self:end!important;
}
.conference-active-filter-grid.sf-filter-bar > .conference-divergence-toggle > input[type="checkbox"]{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  flex:0 0 18px!important;
  margin:0!important;
}
.conference-active-filter-grid.sf-filter-bar > .conference-divergence-toggle > span{
  font-size:12px!important;
  line-height:1.2!important;
  font-weight:750!important;
  white-space:nowrap!important;
}

.conference-active-filter-grid.sf-filter-bar > #purchaseConferenceFilterClear{
  grid-column:2!important;
  width:auto!important;
  min-width:156px!important;
  max-width:max-content!important;
  justify-self:start!important;
  align-self:end!important;
  flex:none!important;
  padding-left:18px!important;
  padding-right:18px!important;
}

/* O segundo input nativo do intervalo continua existindo só para a lógica e nunca ocupa layout. */
.conference-active-filter-grid.sf-filter-bar > .global-period-pair-hidden{
  display:none!important;
}

/* Notebook/tablet: duas colunas equilibradas. A busca ganha uma linha inteira em vez de ser esmagada. */
@media (max-width:1180px) and (min-width:769px){
  .conference-active-filter-grid.sf-filter-bar{
    grid-template-columns:minmax(250px,1fr) minmax(250px,1fr)!important;
    column-gap:12px!important;
    row-gap:10px!important;
  }
  .conference-active-filter-grid.sf-filter-bar > .global-period-unified-container,
  .conference-active-filter-grid.sf-filter-bar > label:has(#purchaseConferenceFilterStart){
    grid-column:1!important;
    width:100%!important;
    max-width:none!important;
  }
  .conference-active-filter-grid.sf-filter-bar > label:has(#purchaseConferenceFilterSupplier){
    grid-column:2!important;
    width:100%!important;
    max-width:none!important;
  }
  .conference-active-filter-grid.sf-filter-bar > .conference-filter-search{
    grid-column:1 / -1!important;
    width:100%!important;
    max-width:none!important;
  }
  .conference-active-filter-grid.sf-filter-bar > .conference-divergence-toggle{
    grid-column:1!important;
  }
  .conference-active-filter-grid.sf-filter-bar > #purchaseConferenceFilterClear{
    grid-column:2!important;
    justify-self:start!important;
  }
}

/* Mobile: leitura linear, sem compressão nem scroll horizontal. */
@media (max-width:768px){
  .conference-active-filter-grid.sf-filter-bar{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    width:100%!important;
  }
  .conference-active-filter-grid.sf-filter-bar > .global-period-unified-container,
  .conference-active-filter-grid.sf-filter-bar > label:has(#purchaseConferenceFilterStart),
  .conference-active-filter-grid.sf-filter-bar > label:has(#purchaseConferenceFilterSupplier),
  .conference-active-filter-grid.sf-filter-bar > .conference-filter-search,
  .conference-active-filter-grid.sf-filter-bar > .conference-divergence-toggle,
  .conference-active-filter-grid.sf-filter-bar > #purchaseConferenceFilterClear{
    grid-column:1!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    justify-self:stretch!important;
  }
  .conference-active-filter-grid.sf-filter-bar > .conference-divergence-toggle{
    justify-content:flex-start!important;
  }
  .conference-active-filter-grid.sf-filter-bar > #purchaseConferenceFilterClear{
    min-height:var(--sf-control-height-mobile)!important;
    height:var(--sf-control-height-mobile)!important;
  }
}


/* purchase-refinement-0.0.97.css */
/* Produção Só Folhas 0.0.97 — refino visual/funcional de Compras, Conferência, Acertos e Histórico. */

/* 1) Nova Compra — lupa alinhada como parte do mesmo campo. */
.purchase-proto-search-field{
  position:relative!important;
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  align-items:center!important;
  gap:8px!important;
  padding:0 12px!important;
  overflow:hidden!important;
}
.purchase-proto-search-field>span{
  width:22px!important;
  height:22px!important;
  display:block!important;
  position:relative!important;
  font-size:0!important;
  line-height:0!important;
  color:transparent!important;
}
.purchase-proto-search-field>span::before{
  content:'';
  position:absolute;
  width:9px;height:9px;
  border:2px solid var(--muted,#607066);
  border-radius:50%;
  left:3px;top:3px;
  box-sizing:border-box;
}
.purchase-proto-search-field>span::after{
  content:'';
  position:absolute;
  width:7px;height:2px;
  border-radius:2px;
  background:var(--muted,#607066);
  transform:rotate(-45deg);
  left:11px;top:13px;
  transform-origin:left center;
}
.purchase-proto-search-field input{height:100%!important;min-height:0!important;align-self:stretch!important;}

/* 2) Nova Compra — X sempre dentro do card. */
.purchase-proto-row.purchase-proto-row-control{
  padding-right:10px!important;
  overflow:hidden!important;
}
.purchase-proto-card .purchase-proto-remove{
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  justify-self:center!important;align-self:center!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  margin:0!important;box-sizing:border-box!important;
}


@media(min-width:1181px){
  .purchase-proto-columns.purchase-proto-columns-control,
  .purchase-proto-row.purchase-proto-row-control{
    grid-template-columns:minmax(210px,1.8fr) 86px 148px 108px minmax(180px,1.2fr) 56px!important;
  }
}
@media(max-width:1180px) and (min-width:761px){
  .purchase-proto-row.purchase-proto-row-control{
    grid-template-columns:minmax(0,1.6fr) 90px 140px 110px minmax(0,1.2fr) 56px!important;
  }
}

/* 3) Necessidade / Comprado — um campo principal, diferença sob demanda. */
.purchase-completion-head-refined,.purchase-completion-row-refined{
  grid-template-columns:minmax(190px,1.35fr) 96px minmax(190px,.9fr) minmax(170px,1fr) minmax(230px,1.15fr) minmax(180px,1fr)!important;
  gap:12px!important;
}
.purchase-quantity-control{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important;}
.purchase-quantity-control>span{font-size:10px;font-weight:800;color:var(--muted,#607066);}
.purchase-quantity-control .purchase-complete-qty[readonly]{background:var(--surface-2,#f7faf8)!important;color:var(--text,#102118)!important;cursor:default;}
.purchase-qty-diff-toggle,.purchase-saved-qty-diff-toggle{
  display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;
  margin-top:2px!important;font-size:9.5px!important;font-weight:700!important;color:var(--muted,#607066)!important;
  text-transform:none!important;letter-spacing:0!important;
}
.purchase-qty-diff-toggle input,.purchase-saved-qty-diff-toggle input{width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;margin:0!important;}
.purchase-qty-need-hint{font-size:9.5px;color:var(--muted,#607066);font-weight:700;}
.purchase-saved-edit-row-refined{
  grid-template-columns:minmax(170px,1.25fr) 110px 88px 150px minmax(175px,.9fr) minmax(150px,.95fr) 110px minmax(170px,1fr)!important;
}
.purchase-saved-quantity-group{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;min-width:0!important;}
.purchase-saved-quantity-group>label:first-child{min-width:0;}
.purchase-saved-purchased-wrap{display:none!important;}
.purchase-saved-edit-row-refined.is-different .purchase-saved-purchased-wrap{display:flex!important;}
.purchase-saved-edit-row-refined.is-different .purchase-saved-quantity-group{grid-template-columns:1fr 1fr!important;column-gap:8px!important;}
.purchase-saved-edit-row-refined.is-different .purchase-saved-qty-diff-toggle{grid-column:1/-1!important;}

/* 4/5) Conferência — destino em estoque legível e coluna textual priorizada. */
.conference-stock-destination{
  min-width:155px!important;
  white-space:normal!important;
  text-align:left!important;
  vertical-align:middle!important;
  padding-left:12px!important;padding-right:12px!important;
}
.conference-stock-destination b,.conference-stock-destination small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;}
.conference-stock-destination b{font-size:11px!important;line-height:1.25!important;}
.conference-stock-destination small{font-size:9.5px!important;line-height:1.3!important;max-width:150px!important;}
.conference-stock-row .conference-number-cell{min-width:70px!important;}

/* 6/7/8) Acertos — chevrons sofisticados e cabeçalhos compactos. */
.purchase-pending-supplier>summary{grid-template-columns:minmax(220px,1fr) auto 38px!important;gap:14px!important;}
.purchase-pending-supplier>summary::after{
  content:''!important;grid-column:3!important;grid-row:1!important;width:9px!important;height:9px!important;
  border-right:2px solid var(--muted,#68776f)!important;border-bottom:2px solid var(--muted,#68776f)!important;
  transform:rotate(45deg)!important;transition:transform .18s ease!important;
  justify-self:center!important;align-self:center!important;margin:0!important;
}
.purchase-pending-supplier[open]>summary::after{transform:rotate(225deg)!important;}
.purchase-supplier-summary-metrics{gap:18px!important;padding-right:0!important;}
.purchase-pending-purchase>summary{grid-template-columns:minmax(230px,1fr) auto auto 34px!important;gap:12px!important;padding-left:14px!important;}
.purchase-pending-purchase>summary::before{
  content:''!important;position:static!important;grid-column:4!important;grid-row:1!important;
  width:8px!important;height:8px!important;border-right:2px solid var(--green-700,#0b7b45)!important;border-bottom:2px solid var(--green-700,#0b7b45)!important;
  transform:rotate(45deg)!important;transition:transform .18s ease!important;justify-self:center!important;align-self:center!important;margin:0!important;
}
.purchase-pending-purchase[open]>summary::before{transform:rotate(225deg)!important;}
.purchase-purchase-ident{padding-left:0!important;}
.purchase-purchase-summary{white-space:nowrap!important;}

/* 9) Observação x origem: 60/40; motivo, quando obrigatório, usa linha inteira. */
.purchase-settlement-pending-section .purchase-break-row>.purchase-item-extra{
  grid-template-columns:minmax(0,3fr) minmax(0,2fr)!important;
  gap:12px!important;
}
.purchase-item-extra.has-required-reason .purchase-reason-wrap{grid-column:1/-1!important;}
.purchase-item-extra.is-force-open .purchase-note-wrap{grid-column:1!important;}
.purchase-item-extra.is-force-open .purchase-origin-wrap{grid-column:2!important;}
.purchase-item-extra .purchase-note-wrap input{width:100%!important;}

/* 10) Histórico — uma linha no desktop largo, wrap apenas quando realmente faltar espaço. */
@media (min-width:1280px){
  .purchase-history-filters .purchase-filter-grid{
    display:flex!important;flex-wrap:nowrap!important;align-items:flex-end!important;gap:10px!important;width:100%!important;
  }
  .purchase-history-filters .purchase-filter-grid>.global-period-unified-container{flex:0 0 250px!important;width:250px!important;max-width:250px!important;}
  .purchase-history-filters .purchase-filter-grid>label{flex:0 1 150px!important;width:auto!important;max-width:none!important;min-width:120px!important;}
  .purchase-history-filters .purchase-filter-grid>label:has(#purchaseHistorySupplier){flex-basis:180px!important;}
  .purchase-history-filters .purchase-filter-grid>label:has(#purchaseHistoryStatus){flex-basis:175px!important;}
  .purchase-history-filters .purchase-filter-grid>.purchase-filter-search{flex:1 1 240px!important;min-width:200px!important;}
  .purchase-history-filters .purchase-filter-grid>.global-period-pair-hidden{display:none!important;}
}

/* 11) Indicadores — grade única sem buracos. */
.purchase-history-kpis-merged{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;}
.purchase-history-kpis-merged>div{min-height:78px!important;}

/* 13–16) Uma análise por vez, largura total e sem rolagem horizontal desnecessária. */
.purchase-analysis-switch{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin-top:16px!important;margin-bottom:10px!important;padding:14px 16px!important;}
.purchase-analysis-switch h2{margin:0!important;font-size:18px!important;}
.purchase-analysis-switch p{margin:3px 0 0!important;color:var(--muted,#607066)!important;font-size:11px!important;}
.purchase-analysis-switch-actions{display:flex;gap:8px;flex-wrap:wrap;}
.purchase-analysis-view-btn.active{background:var(--green-800,#0b6b36)!important;color:#fff!important;border-color:var(--green-800,#0b6b36)!important;}
.purchase-analysis-grid{display:block!important;width:100%!important;}
.purchase-analysis-grid>.purchase-analysis-card{width:100%!important;max-width:none!important;}
.purchase-analysis-grid>.purchase-analysis-card[hidden]{display:none!important;}
.purchase-analysis-card .table-wrap{overflow-x:visible!important;}
.purchase-analysis-card-product .table,.purchase-analysis-card-supplier .table{min-width:0!important;width:100%!important;table-layout:fixed!important;}
.purchase-analysis-card .table th,.purchase-analysis-card .table td{white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere!important;padding:10px 8px!important;}
.purchase-analysis-card .table th:first-child,.purchase-analysis-card .table td:first-child{width:18%!important;min-width:0!important;max-width:none!important;}

/* 17–19) Ritmo de espaço/responsividade. */
@media(max-width:1279px){
  .purchase-history-filters .purchase-filter-grid{gap:12px!important;}
  .purchase-history-kpis-merged{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:900px){
  .purchase-completion-head-refined{display:none!important;}
  .purchase-completion-row-refined{grid-template-columns:1fr 1fr!important;}
  .purchase-completion-row-refined .purchase-cell-main,.purchase-completion-row-refined .purchase-price-field{grid-column:1/-1!important;}
  .purchase-saved-edit-row-refined{grid-template-columns:1fr 1fr!important;}
  .purchase-saved-edit-row-refined>label:first-child,.purchase-saved-edit-row-refined>label:last-child{grid-column:1/-1!important;}
  .purchase-history-kpis-merged{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .purchase-analysis-switch{align-items:flex-start!important;flex-direction:column!important;}
  .purchase-analysis-card .table{font-size:10px!important;}
}
@media(max-width:560px){
  .purchase-completion-row-refined,.purchase-saved-edit-row-refined{grid-template-columns:1fr!important;}
  .purchase-completion-row-refined .purchase-cell-main,.purchase-completion-row-refined .purchase-price-field,.purchase-saved-edit-row-refined>label:first-child,.purchase-saved-edit-row-refined>label:last-child{grid-column:auto!important;}
  .purchase-saved-edit-row-refined.is-different .purchase-saved-quantity-group{grid-template-columns:1fr!important;}
  .purchase-history-kpis-merged{grid-template-columns:1fr!important;}
  .purchase-analysis-switch-actions{width:100%!important;}
  .purchase-analysis-switch-actions .btn{flex:1 1 0!important;}
  .purchase-settlement-pending-section .purchase-break-row>.purchase-item-extra{grid-template-columns:1fr!important;}
  .purchase-item-extra.has-required-reason .purchase-reason-wrap,.purchase-item-extra.is-force-open .purchase-note-wrap,.purchase-item-extra.is-force-open .purchase-origin-wrap{grid-column:1!important;}
}


/* purchase-polish-0.0.98.css */
/* Produção Só Folhas 0.0.98 — acabamento cirúrgico de Estoque/Sobras, Conferência e Nova Compra.
   Sem alteração de regra de negócio. */

/* 1–4) Estoque e Sobras: barra alinhada + chevron real em vez de caractere “V”. */
.stock-direct-toolbar{
  display:grid!important;
  grid-template-columns:minmax(260px,360px) auto minmax(0,1fr)!important;
  align-items:end!important;
  justify-content:stretch!important;
  gap:12px!important;
}
.stock-direct-search{width:100%!important;max-width:none!important;min-width:0!important;}
.stock-direct-search input{
  height:48px!important;
  min-height:48px!important;
  padding:0 14px!important;
  border-radius:12px!important;
}
.stock-direct-toolbar>.btn{
  height:48px!important;
  min-height:48px!important;
  align-self:end!important;
  justify-self:start!important;
  margin:0!important;
  padding:0 16px!important;
  border-radius:12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
}
.stock-list-summary{grid-template-columns:minmax(0,1fr) auto 38px!important;gap:14px!important;}
.stock-list-chevron{
  width:32px!important;
  height:32px!important;
  min-width:32px!important;
  border:1px solid var(--line)!important;
  border-radius:9px!important;
  background:var(--surface-2,#f8fbf9)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:end!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  transform:none!important;
  transition:background .16s ease,border-color .16s ease!important;
}
.stock-list-chevron::before{
  content:'';
  width:8px;
  height:8px;
  border-right:2px solid var(--muted,#65746b);
  border-bottom:2px solid var(--muted,#65746b);
  transform:translateY(-2px) rotate(45deg);
  transition:transform .18s ease,border-color .16s ease;
}
.stock-list-summary:hover .stock-list-chevron{background:var(--green-50)!important;border-color:#c7dccd!important;}
.stock-list-summary:hover .stock-list-chevron::before{border-color:var(--green-800,#0b6b36);}
.stock-list-item.is-open .stock-list-chevron{transform:none!important;}
.stock-list-item.is-open .stock-list-chevron::before{transform:translateY(2px) rotate(225deg)!important;}
:root[data-theme="dark"] .stock-list-chevron{background:rgba(255,255,255,.035)!important;}

/* 5–8) Conferência: uma linha útil no desktop, alinhamento real do botão e checkbox compacto. */
@media (min-width:1180px){
  .conference-active-filter-grid.sf-filter-bar{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:flex-end!important;
    gap:12px!important;
    width:100%!important;
    min-width:0!important;
  }
  .conference-active-filter-grid.sf-filter-bar>.global-period-unified-container,
  .conference-active-filter-grid.sf-filter-bar>label:has(#purchaseConferenceFilterStart){
    flex:0 0 230px!important;
    width:230px!important;
    max-width:230px!important;
    min-width:220px!important;
  }
  .conference-active-filter-grid.sf-filter-bar>label:has(#purchaseConferenceFilterSupplier){
    flex:0 1 285px!important;
    width:285px!important;
    max-width:320px!important;
    min-width:250px!important;
  }
  .conference-active-filter-grid.sf-filter-bar>.conference-filter-search{
    flex:1 1 300px!important;
    width:auto!important;
    max-width:none!important;
    min-width:220px!important;
  }
  .conference-active-filter-grid.sf-filter-bar>.conference-divergence-toggle{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:190px!important;
    max-width:none!important;
    height:48px!important;
    min-height:48px!important;
    padding:0 13px!important;
    display:inline-flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    white-space:nowrap!important;
    align-self:flex-end!important;
  }
  .conference-active-filter-grid.sf-filter-bar>#purchaseConferenceFilterClear{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:145px!important;
    max-width:none!important;
    height:48px!important;
    min-height:48px!important;
    margin:0!important;
    align-self:flex-end!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 17px!important;
  }
  .conference-active-filter-grid.sf-filter-bar>.global-period-pair-hidden{display:none!important;}
}
.conference-active-filter-grid .conference-divergence-toggle>input[type="checkbox"]{
  width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;margin:0!important;flex:0 0 18px!important;
}
.conference-active-filter-grid .conference-divergence-toggle>span{line-height:1.15!important;white-space:nowrap!important;}

/* 9–11) Destino em Estoque: informação curta, legível e profissional. */
.conference-stock-destination{
  min-width:128px!important;
  width:128px!important;
  padding:8px 10px!important;
  text-align:center!important;
  vertical-align:middle!important;
}
.conference-destination-badge{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:24px!important;
  padding:0 9px!important;
  border:1px solid #bddfc8!important;
  border-radius:999px!important;
  background:#edf8f0!important;
  color:#0b713c!important;
  font-size:9.5px!important;
  font-weight:900!important;
  letter-spacing:.035em!important;
  white-space:nowrap!important;
}
.conference-stock-destination small{
  display:block!important;
  margin-top:4px!important;
  max-width:118px!important;
  color:var(--muted,#65746b)!important;
  font-size:8.8px!important;
  line-height:1.2!important;
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
:root[data-theme="dark"] .conference-destination-badge{background:rgba(43,143,78,.13)!important;border-color:rgba(85,169,111,.35)!important;color:#9ce4b5!important;}

/* 12–13) Nova Compra: lupa dentro do input, no mesmo eixo do texto. */
.purchase-proto-search-field{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
}
.purchase-proto-search-field>span[aria-hidden="true"]{
  position:absolute!important;
  left:14px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:18px!important;
  height:18px!important;
  margin:0!important;
  padding:0!important;
  color:transparent!important;
  font-size:0!important;
  line-height:0!important;
  z-index:2!important;
  pointer-events:none!important;
}
.purchase-proto-search-field>span[aria-hidden="true"]::before{
  content:'';
  position:absolute;
  width:9px;
  height:9px;
  left:2px;
  top:2px;
  border:2px solid var(--muted,#65746b);
  border-radius:50%;
  box-sizing:border-box;
}
.purchase-proto-search-field>span[aria-hidden="true"]::after{
  content:'';
  position:absolute;
  width:7px;
  height:2px;
  left:10px;
  top:11px;
  border-radius:2px;
  background:var(--muted,#65746b);
  transform:rotate(-45deg);
  transform-origin:left center;
}
.purchase-proto-search-field>input{
  width:100%!important;
  padding-left:42px!important;
}

/* 14–18) Completar compra: remove a área do checkbox e deixa Quantidade direta. */
.purchase-completion-card-refined .purchase-qty-diff-toggle{display:none!important;}
.purchase-completion-card-refined .purchase-quantity-control{gap:5px!important;}
.purchase-completion-card-refined .purchase-complete-qty:not(:disabled){background:var(--panel)!important;cursor:text!important;}
.purchase-completion-card-refined .purchase-qty-need-hint{margin-top:1px!important;font-size:9px!important;line-height:1.2!important;}

@media (max-width:1179px) and (min-width:769px){
  .conference-active-filter-grid.sf-filter-bar{
    display:grid!important;
    grid-template-columns:minmax(230px,1fr) minmax(250px,1fr)!important;
    gap:10px 12px!important;
    align-items:end!important;
  }
  .conference-active-filter-grid.sf-filter-bar>.conference-filter-search{grid-column:1/-1!important;}
  .conference-active-filter-grid.sf-filter-bar>.conference-divergence-toggle{grid-column:1!important;width:max-content!important;}
  .conference-active-filter-grid.sf-filter-bar>#purchaseConferenceFilterClear{grid-column:2!important;width:max-content!important;justify-self:start!important;}
}

@media (max-width:768px){
  .stock-direct-toolbar{grid-template-columns:1fr!important;align-items:stretch!important;}
  .stock-direct-toolbar>.btn{width:100%!important;justify-self:stretch!important;}
  .stock-list-summary{grid-template-columns:minmax(0,1fr) auto 38px!important;}
  .conference-active-filter-grid.sf-filter-bar{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;}
  .conference-active-filter-grid.sf-filter-bar>*{grid-column:1!important;width:100%!important;max-width:none!important;min-width:0!important;justify-self:stretch!important;}
  .conference-active-filter-grid.sf-filter-bar>.conference-divergence-toggle{justify-content:flex-start!important;}
  .conference-active-filter-grid.sf-filter-bar>#purchaseConferenceFilterClear{width:100%!important;}
}


/* acertos-filter-row-0.0.99.css */
/* Produção Só Folhas 0.0.99 — Acertos: todos os filtros na mesma linha no desktop. */

/* A regra antiga de Acertos usa grid com !important em vários breakpoints.
   Esta camada final transforma somente a barra de Acertos pendentes em flex,
   preservando os mesmos inputs e eventos. */
.purchase-pending-filter-card .purchase-settlement-filter-grid,
.purchase-pending-filter-card .purchase-settlement-filter-grid.sf-filter-bar{
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:flex-end!important;
  justify-content:flex-start!important;
  gap:12px!important;
  width:100%!important;
  min-width:0!important;
  grid-template-columns:none!important;
}

/* Período: compacto, mas com espaço suficiente para dd/mm/aaaa - dd/mm/aaaa. */
.purchase-pending-filter-card .purchase-settlement-filter-grid > .global-period-single,
.purchase-pending-filter-card .purchase-settlement-filter-grid > .global-period-unified-container{
  flex:0 1 280px!important;
  width:280px!important;
  max-width:280px!important;
  min-width:250px!important;
  margin:0!important;
}
.purchase-pending-filter-card .global-period-single{
  max-width:280px!important;
}

/* Fornecedor. */
.purchase-pending-filter-card .purchase-settlement-filter-grid > label:has(#purchaseSettlementSupplier){
  flex:0 1 280px!important;
  width:280px!important;
  max-width:300px!important;
  min-width:230px!important;
  margin:0!important;
}

/* Busca usa o espaço elástico restante. */
.purchase-pending-filter-card .purchase-settlement-filter-grid > .purchase-pending-search-label{
  flex:1 1 300px!important;
  width:auto!important;
  max-width:none!important;
  min-width:250px!important;
  margin:0!important;
}

/* Checkbox: compacto e alinhado à mesma base dos campos. */
.purchase-pending-filter-card .purchase-settlement-filter-grid > .purchase-pending-break-filter{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:180px!important;
  max-width:210px!important;
  margin:0!important;
  align-self:flex-end!important;
}
.purchase-pending-filter-card .purchase-pending-break-filter > span:first-child{
  display:none!important;
}
.purchase-pending-filter-card .purchase-pending-break-filter .purchase-pending-switch{
  height:48px!important;
  min-height:48px!important;
  width:auto!important;
  min-width:180px!important;
  padding:0 14px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  box-sizing:border-box!important;
  white-space:nowrap!important;
  margin:0!important;
}
.purchase-pending-filter-card .purchase-pending-break-filter .purchase-pending-switch input{
  flex:0 0 auto!important;
  margin:0!important;
}

/* Ação final na mesma linha, sem ocupar uma coluna artificial. */
.purchase-pending-filter-card .purchase-settlement-filter-grid > .purchase-settlement-filter-action,
.purchase-pending-filter-card .purchase-settlement-filter-grid > .sf-filter-action{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  align-self:flex-end!important;
}
.purchase-pending-filter-card .purchase-settlement-filter-action .btn{
  width:auto!important;
  min-width:132px!important;
  height:48px!important;
  min-height:48px!important;
  padding:0 16px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  white-space:nowrap!important;
}

/* Os inputs nativos Data inicial/Data final seguem ocultos pelo componente global. */
.purchase-pending-filter-card .global-period-pair-hidden{
  display:none!important;
}

/* Notebook: quebra controlada somente quando realmente falta largura. */
@media (max-width:1199px){
  .purchase-pending-filter-card .purchase-settlement-filter-grid,
  .purchase-pending-filter-card .purchase-settlement-filter-grid.sf-filter-bar{
    flex-wrap:wrap!important;
  }
  .purchase-pending-filter-card .purchase-settlement-filter-grid > .global-period-single,
  .purchase-pending-filter-card .purchase-settlement-filter-grid > .global-period-unified-container,
  .purchase-pending-filter-card .purchase-settlement-filter-grid > label:has(#purchaseSettlementSupplier){
    flex:1 1 280px!important;
    width:auto!important;
    max-width:none!important;
  }
  .purchase-pending-filter-card .purchase-settlement-filter-grid > .purchase-pending-search-label{
    flex:2 1 340px!important;
  }
}

/* Mobile: uma coluna, mantendo controles confortáveis. */
@media (max-width:768px){
  .purchase-pending-filter-card .purchase-settlement-filter-grid,
  .purchase-pending-filter-card .purchase-settlement-filter-grid.sf-filter-bar{
    flex-direction:column!important;
    flex-wrap:nowrap!important;
    align-items:stretch!important;
    gap:10px!important;
  }
  .purchase-pending-filter-card .purchase-settlement-filter-grid > .global-period-single,
  .purchase-pending-filter-card .purchase-settlement-filter-grid > .global-period-unified-container,
  .purchase-pending-filter-card .purchase-settlement-filter-grid > label:has(#purchaseSettlementSupplier),
  .purchase-pending-filter-card .purchase-settlement-filter-grid > .purchase-pending-search-label,
  .purchase-pending-filter-card .purchase-settlement-filter-grid > .purchase-pending-break-filter,
  .purchase-pending-filter-card .purchase-settlement-filter-grid > .purchase-settlement-filter-action,
  .purchase-pending-filter-card .purchase-settlement-filter-grid > .sf-filter-action{
    flex:0 0 auto!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
  }
  .purchase-pending-filter-card .global-period-single,
  .purchase-pending-filter-card .purchase-pending-break-filter .purchase-pending-switch,
  .purchase-pending-filter-card .purchase-settlement-filter-action .btn{
    width:100%!important;
    max-width:none!important;
  }
}


/* purchase-edit-clean-0.0.205.css */
/* Produção Só Folhas 0.0.205 — Editar compra sem "Comprado diferente" */
.purchase-saved-editor-clean .purchase-saved-qty-diff-toggle{display:none!important;}
.purchase-saved-edit-row-clean .purchase-saved-quantity-group{grid-template-columns:1fr!important;gap:4px!important;}
.purchase-saved-edit-row-clean.is-different .purchase-saved-quantity-group{grid-template-columns:1fr 1fr!important;column-gap:8px!important;}
.purchase-saved-edit-row-clean .purchase-saved-purchased-wrap{display:none!important;}
.purchase-saved-edit-row-clean.is-different .purchase-saved-purchased-wrap{display:flex!important;}
@media (max-width:720px){
  .purchase-saved-edit-row-clean.is-different .purchase-saved-quantity-group{grid-template-columns:1fr!important;}
}


.purchase-saved-edit-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:4px 0 12px;
  padding:11px 12px;
  border:1px solid var(--border,#dce6df);
  border-radius:12px;
  background:var(--surface-2,#f7faf8);
}
.purchase-saved-edit-toolbar>div{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.purchase-saved-edit-toolbar b{
  color:var(--text,#102118);
  font-size:13px;
}
.purchase-saved-edit-toolbar small{
  color:var(--muted,#607066);
  font-size:11px;
}
.purchase-saved-edit-toolbar .btn{
  flex:0 0 auto;
  min-height:42px;
}

.purchase-saved-edit-row-new{
  position:relative;
  padding-top:14px!important;
  border-color:color-mix(in srgb,var(--green,#118345) 40%,var(--border,#dce6df))!important;
  background:color-mix(in srgb,var(--green,#118345) 3%,var(--panel,#fbfdfb))!important;
}
.purchase-saved-edit-row-new::before{
  content:"NOVO ITEM";
  position:absolute;
  top:-8px;
  left:12px;
  padding:2px 7px;
  border-radius:999px;
  background:var(--green,#118345);
  color:#fff;
  font-size:8px;
  font-weight:900;
  letter-spacing:.04em;
}
.purchase-saved-edit-remove-new{
  position:absolute;
  top:6px;
  right:7px;
  width:28px;
  height:28px;
  border:1px solid #efc6c2;
  border-radius:8px;
  background:#fff4f3;
  color:#b42318;
  font-size:18px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  z-index:2;
}
.purchase-saved-edit-remove-new:hover{
  background:#fee4e2;
}
html[data-theme='dark'] .purchase-saved-edit-toolbar,
.theme-dark .purchase-saved-edit-toolbar{
  background:var(--panel,#0c1b14);
}
html[data-theme='dark'] .purchase-saved-edit-remove-new,
.theme-dark .purchase-saved-edit-remove-new{
  background:#2a1514;
  border-color:#69302d;
  color:#ff8d86;
}

@media(max-width:720px){
  .purchase-saved-edit-toolbar{
    align-items:stretch;
    flex-direction:column;
  }
  .purchase-saved-edit-toolbar .btn{
    width:100%;
  }
}


/* launch-layout-0.0.103.css */
/* Produção Só Folhas 0.0.103
   Restaura a composição antiga da tela de Lançamento sem alterar lógica.
   O padrão global 0.0.94 usa align-items:end em .sf-form-scope; nesta tela
   isso deslocava Tipo/Produto/Quantidade para a direita. */

@media (min-width: 721px) {
  /* Identifica somente o formulário principal de Lançamento. */
  .form-grid:has(#date):has(#product):has(#qty) {
    grid-template-columns: minmax(360px, 430px) minmax(0, 1fr) !important;
    gap: 28px !important;
    align-items: start !important;
  }

  .form-grid:has(#date):has(#product):has(#qty) > div:first-child {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  /* Volta todos os campos operacionais para a margem esquerda. */
  .form-grid:has(#date):has(#product):has(#qty) > div:first-child > .field,
  .form-grid:has(#date):has(#product):has(#qty) > div:first-child > .field.sf-form-scope {
    align-items: stretch !important;
    justify-content: flex-start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .form-grid:has(#date):has(#product):has(#qty) > div:first-child > .field > label {
    width: 100% !important;
    text-align: left !important;
    align-self: flex-start !important;
  }

  /* Data compacta, como era antes da padronização global. */
  .form-grid:has(#date):has(#product):has(#qty) .field:has(#date) {
    width: 280px !important;
    max-width: 280px !important;
  }
  .form-grid:has(#date):has(#product):has(#qty) .field:has(#date) > .global-date-single {
    width: 280px !important;
    max-width: 280px !important;
    min-width: 0 !important;
  }

  /* Tipo de produção / divisão: compactos e à esquerda. */
  .form-grid:has(#date):has(#product):has(#qty) .field:has(button.mode),
  .form-grid:has(#date):has(#product):has(#qty) .field:has(button.division) {
    width: 340px !important;
    max-width: 100% !important;
  }

  /* Produto e quantidade recuperam proporções de formulário, sem esticar. */
  .form-grid:has(#date):has(#product):has(#qty) .field:has(#product) {
    width: 320px !important;
    max-width: 100% !important;
  }
  .form-grid:has(#date):has(#product):has(#qty) .field:has(#qty) {
    width: 220px !important;
    max-width: 100% !important;
  }

  .form-grid:has(#date):has(#product):has(#qty) #product,
  .form-grid:has(#date):has(#product):has(#qty) #qty,
  .form-grid:has(#date):has(#product):has(#qty) .toggle {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Colaboradores continuam usando todo o espaço útil à direita. */
  .form-grid:has(#date):has(#product):has(#qty) > div:nth-child(2) {
    min-width: 0 !important;
    width: 100% !important;
  }
  .form-grid:has(#date):has(#product):has(#qty) > div:nth-child(2) > .field,
  .form-grid:has(#date):has(#product):has(#qty) > div:nth-child(2) > .field.sf-form-scope {
    align-items: stretch !important;
  }
}

/* Notebook estreito: preserva duas áreas sem jogar os campos para a direita. */
@media (min-width: 721px) and (max-width: 1100px) {
  .form-grid:has(#date):has(#product):has(#qty) {
    grid-template-columns: minmax(310px, 360px) minmax(0, 1fr) !important;
    gap: 18px !important;
  }
  .form-grid:has(#date):has(#product):has(#qty) .field:has(#date) {
    width: 260px !important;
    max-width: 260px !important;
  }
  .form-grid:has(#date):has(#product):has(#qty) .field:has(#date) > .global-date-single {
    width: 260px !important;
    max-width: 260px !important;
  }
  .form-grid:has(#date):has(#product):has(#qty) .field:has(button.mode),
  .form-grid:has(#date):has(#product):has(#qty) .field:has(button.division),
  .form-grid:has(#date):has(#product):has(#qty) .field:has(#product) {
    width: 100% !important;
  }
}

/* Mobile mantém o fluxo vertical já aprovado, apenas alinhado à esquerda. */
@media (max-width: 720px) {
  .form-grid:has(#date):has(#product):has(#qty) > div:first-child > .field,
  .form-grid:has(#date):has(#product):has(#qty) > div:first-child > .field.sf-form-scope,
  .form-grid:has(#date):has(#product):has(#qty) > div:nth-child(2) > .field,
  .form-grid:has(#date):has(#product):has(#qty) > div:nth-child(2) > .field.sf-form-scope {
    align-items: stretch !important;
  }
  .form-grid:has(#date):has(#product):has(#qty) .field:has(#date),
  .form-grid:has(#date):has(#product):has(#qty) .field:has(#date) > .global-date-single {
    width: 100% !important;
    max-width: none !important;
  }
}


/* launch-layout-0.0.107.css */
/* Produção Só Folhas 0.0.107
   Layout exclusivo de Lançamentos.
   Desktop: Data em largura total; Tipo | Divisão; Produto | Quantidade; Salvar abaixo do Produto.
   Não altera lógica de lançamento. */

@media (min-width: 721px) {
  .form-grid:has(#date):has(#product):has(#qty) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start !important;
  }

  /* Área operacional esquerda em grade de duas colunas. */
  .form-grid:has(#date):has(#product):has(#qty) > div:first-child {
    width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(260px, 1fr) minmax(200px, .78fr) !important;
    grid-template-rows: auto auto auto auto !important;
    column-gap: 16px !important;
    row-gap: 14px !important;
    align-items: end !important;
  }

  .form-grid:has(#date):has(#product):has(#qty) > div:first-child > .field,
  .form-grid:has(#date):has(#product):has(#qty) > div:first-child > .field.sf-form-scope {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  .form-grid:has(#date):has(#product):has(#qty) > div:first-child > .field > label {
    width: 100% !important;
    text-align: left !important;
    align-self: flex-start !important;
  }

  /* Data permanece exatamente no padrão largo atual. */
  .form-grid:has(#date):has(#product):has(#qty) .field:has(#date) {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    max-width: none !important;
  }
  .form-grid:has(#date):has(#product):has(#qty) .field:has(#date) > .global-date-single {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  /* Linha 1: Tipo de produção | Divisão. */
  .form-grid:has(#date):has(#product):has(#qty) .field:has(button.mode) {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  .form-grid:has(#date):has(#product):has(#qty) .field:has(button.division) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }

  /* Linha 2: Produto | Quantidade. */
  .form-grid:has(#date):has(#product):has(#qty) .field:has(#product) {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }
  .form-grid:has(#date):has(#product):has(#qty) .field:has(#qty) {
    grid-column: 2 !important;
    grid-row: 3 !important;
  }

  /* Neutraliza larguras antigas da 0.0.103/0.0.105: cada controle ocupa sua célula, sem estourar. */
  .form-grid:has(#date):has(#product):has(#qty) .field:has(button.mode),
  .form-grid:has(#date):has(#product):has(#qty) .field:has(button.division),
  .form-grid:has(#date):has(#product):has(#qty) .field:has(#product),
  .form-grid:has(#date):has(#product):has(#qty) .field:has(#qty) {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .form-grid:has(#date):has(#product):has(#qty) #product,
  .form-grid:has(#date):has(#product):has(#qty) #qty,
  .form-grid:has(#date):has(#product):has(#qty) .toggle {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Linha 3: botão no espaço da coluna do Produto. */
  .form-grid:has(#date):has(#product):has(#qty) .launch-save-grid {
    grid-column: 1 !important;
    grid-row: 4 !important;
    justify-self: start !important;
    align-self: start !important;
    width: auto !important;
    min-width: 190px !important;
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  /* Colaboradores continuam na coluna direita. */
  .form-grid:has(#date):has(#product):has(#qty) > div:nth-child(2) {
    width: 100% !important;
    min-width: 0 !important;
  }

  .form-grid:has(#date):has(#product):has(#qty) > div:nth-child(2) > .field,
  .form-grid:has(#date):has(#product):has(#qty) > div:nth-child(2) > .field.sf-form-scope {
    align-items: stretch !important;
  }

  .form-card > .actions:empty,
  .form-card > .actions[aria-hidden="true"] {
    display: none !important;
  }
}

/* Notebook: mantém as duas colunas internas, só reduz a proporção. */
@media (min-width: 721px) and (max-width: 1100px) {
  .form-grid:has(#date):has(#product):has(#qty) {
    grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr) !important;
    gap: 16px !important;
  }

  .form-grid:has(#date):has(#product):has(#qty) > div:first-child {
    grid-template-columns: minmax(210px, 1fr) minmax(150px, .72fr) !important;
    column-gap: 12px !important;
    row-gap: 12px !important;
  }

  .form-grid:has(#date):has(#product):has(#qty) .launch-save-grid {
    min-width: 170px !important;
  }
}

/* Mobile: volta ao fluxo vertical confortável. */
@media (max-width: 720px) {
  .form-grid:has(#date):has(#product):has(#qty) > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .form-grid:has(#date):has(#product):has(#qty) > div:first-child > .field,
  .form-grid:has(#date):has(#product):has(#qty) > div:first-child > .field.sf-form-scope,
  .form-grid:has(#date):has(#product):has(#qty) .launch-save-grid {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .form-grid:has(#date):has(#product):has(#qty) .launch-save-grid {
    min-height: 46px !important;
  }
}


/* workflow-gate-0.0.109.css */
/* 0.0.109 — Fluxo Presença → Jornada → Lançamentos */
.operational-flow-settings{margin-top:16px}
.operational-flow-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;border:1px solid var(--border,#dfe6e3);border-radius:12px;background:var(--surface-soft,#f7faf8)}
.operational-flow-status b{font-size:12px;letter-spacing:.08em;padding:6px 10px;border-radius:999px}
.operational-flow-status.is-active b{background:#e8f6ec;color:#18763a}
.operational-flow-status.is-inactive b{background:#eef1f2;color:#66716d}
.operational-flow-status span{font-weight:700}
.operational-flow-status small{flex-basis:100%;color:var(--muted,#6f7c77)}
.launch-flow-gate{display:grid;gap:18px}
.launch-gate-date{max-width:300px}
.launch-flow-lock{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid #dfe8e3;border-radius:14px;background:#fbfdfc}
.launch-flow-lock-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#eef6f0;font-size:20px;flex:0 0 auto}
.launch-flow-lock h2{margin:0 0 5px;font-size:18px}
.launch-flow-lock p{margin:0 0 4px;color:var(--muted,#66716d)}
.launch-flow-lock small{color:var(--muted,#66716d)}
.launch-flow-steps{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.launch-flow-steps span{padding:8px 11px;border-radius:10px;font-size:12px;font-weight:800;border:1px solid #e1e7e4}
.launch-flow-steps .done{background:#eaf7ee;color:#176d37;border-color:#cfe8d7}
.launch-flow-steps .pending{background:#f5f7f6;color:#69746f}
.launch-flow-active-note{margin-top:14px}
button:disabled{cursor:not-allowed;opacity:.55}
@media (max-width:768px){
  .operational-flow-settings .panel-head{align-items:flex-start;gap:12px}
  .operational-flow-settings .panel-head .btn{width:100%}
  .launch-flow-lock{align-items:flex-start}
  .launch-gate-date{max-width:none}
  .launch-flow-steps{gap:7px}
}


/* report-history-0.0.115.css */
/* Produção Só Folhas 0.0.115 — Histórico de Produções
   Barra própria, isolada do normalizador global legado (.history-tools/.sf-filter-bar). */

.history-panel-112{padding:18px 20px!important}
.history-head-112{display:block!important;width:100%!important}
.history-head-112>h2{margin:0 0 16px!important;font-size:21px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:-.02em!important}

.history-filterbar-115{
  --hh:46px;
  display:grid!important;
  grid-template-columns:minmax(260px,1.25fr) minmax(180px,.82fr) minmax(180px,.82fr) 108px 138px 172px!important;
  gap:10px!important;align-items:end!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
}
.history-filterbar-115>label:not(.history-eye-toggle){display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-end!important;gap:6px!important;min-width:0!important;width:100%!important;max-width:none!important;margin:0!important}
.history-filterbar-115>label>span:first-child{display:block!important;margin:0!important;font-size:11px!important;line-height:1.15!important;font-weight:800!important;color:#667085!important;letter-spacing:.01em!important}

.history-filterbar-115 .history-period-filter,.history-filterbar-115 .history-period-filter.sf-period-label{width:100%!important;max-width:none!important;min-width:0!important}
.history-filterbar-115 .global-period-single,.history-filterbar-115 .global-period-control,.history-filterbar-115 .global-period-display{width:100%!important;max-width:none!important;min-width:0!important}
.history-filterbar-115 .history-period-filter .global-period-caption{display:none!important}
.history-filterbar-115 .global-period-control{height:var(--hh)!important;min-height:var(--hh)!important;border-radius:12px!important}
.history-filterbar-115 .global-period-display{height:44px!important;padding:0 44px 0 13px!important;font-size:14px!important;line-height:1!important;font-weight:700!important}
.history-filterbar-115 .global-period-trigger{width:36px!important;height:36px!important;top:4px!important;right:4px!important}

.history-filterbar-115 select{width:100%!important;max-width:none!important;min-width:0!important;height:var(--hh)!important;min-height:var(--hh)!important;margin:0!important;padding:0 36px 0 13px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--card,#fff)!important;color:#23342b!important;font-size:14px!important;line-height:1!important;font-weight:700!important;box-sizing:border-box!important}

.history-filterbar-115 .history-eye-toggle{height:var(--hh)!important;min-height:var(--hh)!important;width:108px!important;min-width:108px!important;margin:0!important;padding:0 11px!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:7px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--card,#fff)!important;box-sizing:border-box!important;cursor:pointer!important;white-space:nowrap!important}
.history-filterbar-115 .history-eye-toggle input{width:15px!important;height:15px!important;min-width:15px!important;min-height:15px!important;margin:0!important;flex:0 0 15px!important}
.history-filterbar-115 .history-eye-toggle span{display:none!important}
.history-filterbar-115 .history-eye-toggle b{margin:0!important;color:#4d5b53!important;font-size:12px!important;line-height:1!important;font-weight:800!important}

.history-filterbar-115>.btn{height:var(--hh)!important;min-height:var(--hh)!important;width:100%!important;min-width:0!important;margin:0!important;padding:0 12px!important;display:flex!important;align-items:center!important;justify-content:center!important;border-radius:12px!important;box-sizing:border-box!important;box-shadow:none!important;font-size:13px!important;line-height:1!important;font-weight:800!important;letter-spacing:0!important;white-space:nowrap!important}
.history-filterbar-115>.btn.btn-soft{color:#006b38!important}

.history-filter-summary{display:grid!important;grid-template-columns:minmax(0,1fr) 230px!important;gap:10px!important;align-items:stretch!important;margin:12px 0 10px!important}
.history-filter-summary>div{min-height:66px!important;padding:11px 16px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;border:1px solid var(--line)!important;border-radius:13px!important;background:#f8fbf8!important;box-sizing:border-box!important}
.history-filter-summary small{margin:0!important;font-size:10px!important;line-height:1.1!important;font-weight:800!important;text-transform:uppercase!important;letter-spacing:.025em!important;color:#667085!important}
.history-filter-summary strong{margin-top:4px!important;font-size:21px!important;line-height:1!important;font-weight:800!important;color:#006b38!important;letter-spacing:-.015em!important}
.history-filter-summary>div:last-child strong{font-size:19px!important}
.history-limit-note{margin:0 0 12px!important;padding:9px 13px!important;border:1px solid #e3ebe5!important;border-radius:11px!important;background:#f9fbfa!important;color:#667085!important;font-size:11px!important;line-height:1.25!important;font-weight:650!important}

@media (max-width:1280px){
  .history-filterbar-115{grid-template-columns:minmax(230px,1.2fr) minmax(160px,.85fr) minmax(160px,.85fr) 102px 128px 160px!important;gap:8px!important}
  .history-filterbar-115 .history-eye-toggle{width:102px!important;min-width:102px!important}
}
@media (max-width:1040px){
  .history-filterbar-115{grid-template-columns:minmax(220px,1.2fr) minmax(170px,1fr) minmax(170px,1fr)!important}
  .history-filterbar-115 .history-eye-toggle,.history-filterbar-115>.btn{width:100%!important;min-width:0!important}
  .history-filter-summary{grid-template-columns:minmax(0,1fr) 210px!important}
}
@media (max-width:720px){
  .history-panel-112{padding:15px!important}.history-head-112>h2{font-size:18px!important;margin-bottom:13px!important}
  .history-filterbar-115{grid-template-columns:1fr!important;gap:9px!important}
  .history-filterbar-115 .history-eye-toggle,.history-filterbar-115>.btn{width:100%!important}
  .history-filter-summary{grid-template-columns:1fr!important;gap:9px!important}
}

html[data-theme="dark"] body:not(.tv-mode) .history-filterbar-115 select,
html[data-theme="dark"] body:not(.tv-mode) .history-filterbar-115 .history-eye-toggle,
html[data-theme="dark"] body:not(.tv-mode) .history-filter-summary>div{background:#10261b!important;border-color:#2b4938!important;color:#e7f2eb!important}
html[data-theme="dark"] body:not(.tv-mode) .history-filterbar-115 .history-eye-toggle b{color:#d7e5db!important}
html[data-theme="dark"] body:not(.tv-mode) .history-filter-summary strong{color:#7de2a3!important}
html[data-theme="dark"] body:not(.tv-mode) .history-limit-note{background:#0f2118!important;border-color:#2b4938!important;color:#9fb3a6!important}


/* production-sheets-0.0.116.css */
/* 0.0.116 — Total por colaborador nas Fichas de Produção */
.prod-sheet-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  border-top: 1px solid #222;
  min-height: 58px;
}
.prod-sheet-signatures {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
}
.prod-sheet-footer .prod-sheet-sign {
  border-top: 0;
  display: flex;
  align-items: center;
  min-width: 0;
}
.prod-sheet-footer .prod-sheet-sign + .prod-sheet-sign {
  border-top: 1px solid #222;
}
.prod-sheet-total {
  border-left: 1px solid #222;
  background: #f1f8f3;
  color: #073f23;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px;
  text-align: center;
}
.prod-sheet-total span {
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .06em;
}
.prod-sheet-total strong {
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}
html[data-theme="dark"] body:not(.tv-mode) .prod-sheet-footer {
  border-top-color: #566a5d;
}
html[data-theme="dark"] body:not(.tv-mode) .prod-sheet-footer .prod-sheet-sign + .prod-sheet-sign,
html[data-theme="dark"] body:not(.tv-mode) .prod-sheet-total {
  border-color: #566a5d;
}
html[data-theme="dark"] body:not(.tv-mode) .prod-sheet-total {
  background: #13281c;
  color: #e7f6eb;
}
@media (max-width: 720px) {
  .prod-sheet-footer { grid-template-columns: minmax(0, 1fr) 104px; }
  .prod-sheet-total strong { font-size: 14px; }
}
@media print {
  .prod-sheet-footer { grid-template-columns: minmax(0, 1fr) 29%; border-top: 1px solid #111; min-height: 18px; }
  .prod-sheet-footer .prod-sheet-sign + .prod-sheet-sign { border-top: 1px solid #111; }
  .prod-sheet-total { background: #f2f2f2 !important; color: #000 !important; border-left: 1px solid #111 !important; }
}


/* filters-0.0.119.css */
/* 0.0.119 — posição das abas, período compacto e lupa única. */
.report-header-119{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:24px;margin-bottom:22px}
.report-heading-119{display:flex;flex-direction:column;gap:18px;min-width:0}
.report-heading-119 .page-head{margin:0}
.report-heading-119 .report-subtabs{margin:0;align-items:center}
html body .report-date-filters-118{display:flex;flex-direction:column;align-items:flex-end;gap:14px;max-width:100%;min-width:0}
html body .report-date-filters-118 .custom-period-row{display:block;width:300px;max-width:100%;min-width:0;margin:0;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html body .report-date-filters-118 .custom-period-row>.global-period-unified-container{display:block;width:100%!important;max-width:300px!important;min-width:0!important;margin:0!important;flex:0 1 300px!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
html body .report-date-filters-118 .custom-period-row .global-period-single{width:100%!important;max-width:300px!important;min-width:0!important}
html body .report-date-filters-118 .custom-period-row>b{display:none!important}
.purchase-search-icon-118{display:inline-flex;align-items:center;justify-content:center;flex:0 0 20px;line-height:1}
.purchase-search-icon-118 svg{display:block;width:20px;height:20px}
html body .purchase-proto-search-field>.purchase-search-icon-118::before,
html body .purchase-proto-search-field>.purchase-search-icon-118::after{content:none!important;display:none!important}
@media(max-width:1250px){.report-header-119{grid-template-columns:1fr;gap:18px}html body .report-date-filters-118{align-items:flex-start}}
@media(max-width:600px){.report-header-119{gap:16px}.report-heading-119{gap:14px}html body .report-date-filters-118{width:100%}html body .report-date-filters-118 .custom-period-row{width:300px;max-width:100%}}


/* product-production-0.0.120.css */
/* 0.0.120 — produção real por produto, sem alterar a distribuição individual. */
.report-heading-119 .report-tab{font-size:13px;padding:12px;white-space:nowrap}
.product-production-page{min-width:0}
.product-production-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px}
.product-production-toolbar h2{margin:0}
.product-production-toolbar p,.product-production-chart .panel-head p,.product-production-list .panel-head p{color:var(--muted);font-size:13px;line-height:1.5;margin:6px 0 0}
.product-production-search{display:flex;flex-direction:column;gap:7px;flex:0 1 340px;min-width:240px;font-size:12px;font-weight:700;color:var(--muted)}
.product-production-search input{width:100%;min-height:48px;border:1px solid var(--line);border-radius:12px;padding:12px 14px;background:var(--panel);color:var(--text,#102132);font:inherit;font-size:14px}
.product-production-search input:focus{outline:2px solid #55a777;outline-offset:2px}
.product-production-context{font-size:13px;color:var(--muted);margin:18px 2px 12px;line-height:1.5}
.product-production-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}
.product-production-summary>div{padding:20px 22px;background:var(--panel);border:1px solid var(--line);border-radius:18px;display:flex;flex-direction:column;gap:10px}
.product-production-summary span{font-size:13px;font-weight:700;color:var(--muted)}
.product-production-summary strong{font-size:28px;color:var(--green-800);line-height:1.2;overflow-wrap:anywhere}
.product-production-summary small{font-size:15px;font-weight:600}
.product-production-chart,.product-production-list{margin-top:18px;padding:22px}
.product-production-bars{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:18px}
.product-production-bar-row{display:flex;align-items:center;gap:12px}
.product-production-rank{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:8px;background:var(--green-100);color:var(--green-800);font-size:12px;font-weight:800}
.product-production-bar-detail{flex:1;min-width:0}
.product-production-bar-label{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:7px;font-size:13px}
.product-production-bar-label span{overflow-wrap:anywhere;font-weight:600}
.product-production-bar-label strong{white-space:nowrap;color:var(--green-800)}
.product-production-track{height:10px;background:var(--green-100);border-radius:20px;overflow:hidden}
.product-production-track>div{height:100%;background:linear-gradient(90deg,#0d713b,#43a467);border-radius:20px;min-width:2px}
.product-production-list .table{width:100%}
.product-production-list .table th,.product-production-list .table td{padding:15px 12px}
.product-production-list .table .product-production-number{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.product-production-position{width:70px;color:var(--muted)}
.product-production-list tfoot{background:var(--green-100);color:var(--green-800);font-weight:800}
.product-production-empty{padding:36px;text-align:center}
.product-production-empty p{color:var(--muted)}
html[data-theme="dark"] .product-production-summary strong,html[data-theme="dark"] .product-production-bar-label strong{color:#92d9aa}
html[data-theme="dark"] .product-production-rank,html[data-theme="dark"] .product-production-list tfoot{background:#173d2a;color:#b8e9ca}
html[data-theme="dark"] .product-production-track{background:#214431}
@media(max-width:720px){.product-production-toolbar{align-items:stretch;flex-direction:column;gap:16px}.product-production-search{flex:auto;min-width:0}.product-production-summary{gap:8px}.product-production-summary>div{padding:14px 10px;border-radius:12px}.product-production-summary strong{font-size:22px}.product-production-summary span{font-size:11px}.product-production-chart,.product-production-list{padding:16px}.product-production-bar-label{gap:8px;font-size:12px}.product-production-list .table{min-width:480px}}


/* participation-0.0.121.css */
/* Participação por colaborador — percentuais sobre o total real produzido. */
.participation-panel{padding:24px;min-width:0}
html body .participation-toolbar{display:flex!important;flex-wrap:wrap;align-items:flex-end;gap:14px}
html body .participation-toolbar>label{flex:1 1 220px;min-width:0}
html body .participation-toolbar>label:first-child{flex-basis:270px}
html body .participation-toolbar>.global-period-unified-container{flex:1 1 280px!important;max-width:100%!important;min-width:0!important}
.participation-toolbar select{width:100%}
.participation-context{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px;margin:22px 0 16px}
.participation-context strong{font-size:18px;color:var(--text,#102132);overflow-wrap:anywhere}
.participation-context span{font-size:13px;color:var(--muted)}
.participation-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:24px}
.participation-summary>div{display:flex;flex-direction:column;gap:12px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.participation-summary span{font-size:12px;line-height:1.4;color:var(--muted);font-weight:700}
.participation-summary strong{font-size:26px;color:var(--green-800);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.participation-summary small{font-size:14px;font-weight:600}
.participation-chart-head h3{margin:0;font-size:17px}
.participation-chart-head p{font-size:12px;color:var(--muted);line-height:1.6;margin:6px 0 20px}
.participation-bars{list-style:none;padding:0;margin:0;display:grid;gap:22px}
.participation-bar-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:9px;font-size:14px}
.participation-bar-heading>strong{overflow-wrap:anywhere}
.participation-bar-heading>span{display:flex;gap:18px;align-items:baseline;white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}
.participation-bar-heading b{min-width:68px;text-align:right;color:var(--green-800);font-size:16px}
.participation-track{height:14px;border-radius:20px;overflow:hidden;background:var(--green-100)}
.participation-track>div{height:100%;border-radius:20px;background:linear-gradient(90deg,#0b7138,#50b074)}
.participation-unassigned{border-top:1px solid var(--line);padding-top:20px;margin-top:24px}
.participation-unassigned .participation-track{background:#fff2d9}
.participation-unassigned .participation-track>div{background:#bc8a34}
.participation-unassigned .participation-bar-heading b{color:#947026}
.participation-unassigned p{color:var(--muted);font-size:12px;line-height:1.5;margin:8px 0 0}
.participation-total{display:flex;justify-content:space-between;gap:16px;padding:18px 0 0;border-top:1px solid var(--line);margin-top:24px}
.participation-warning{margin-bottom:20px}
.product-participation-open{white-space:nowrap}
html[data-theme="dark"] .participation-context strong{color:#e4efe8}
html[data-theme="dark"] .participation-summary strong,html[data-theme="dark"] .participation-bar-heading b{color:#92d9aa}
html[data-theme="dark"] .participation-track{background:#214431}
html[data-theme="dark"] .participation-unassigned .participation-track{background:#42351e}
@media(max-width:1000px){.participation-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.participation-panel{padding:16px}.participation-summary{gap:8px}.participation-summary>div{padding:12px}.participation-summary strong{font-size:22px}.participation-bar-heading{align-items:flex-start;flex-direction:column;gap:6px;font-size:13px}.participation-bar-heading>span{width:100%;justify-content:space-between}.participation-context{align-items:flex-start;flex-direction:column}.participation-total{font-size:13px}}


/* review-0.0.122.css */
/* Conferência de produção: calendário único e controles alinhados. */
.review-page-122 .review-head{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin-bottom:22px}
.review-page-122 .review-head>div:first-child{flex:1 1 440px;min-width:0}
.review-page-122 .status-flow{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;white-space:nowrap;margin-top:12px}
.review-page-122 .status-flow span{padding:8px 12px;font-size:13px}
.review-page-122 .review-toolbar{display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}
.review-page-122 .review-toolbar .btn{min-height:42px;margin:0;font-size:13px;padding:10px 13px;white-space:nowrap}
.review-page-122 .review-table td:last-child{width:260px;min-width:260px}
.review-page-122 .review-table .row-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;align-items:stretch}
.review-page-122 .review-table .row-actions .btn{margin:0;width:100%;min-height:34px;padding:8px 6px;font-size:12px;white-space:nowrap}
.review-page-122 .review-table .row-actions .btn:disabled{opacity:.45;cursor:not-allowed}
.review-edit-modal-122 .modal-card{max-height:90vh;display:flex;flex-direction:column}
.review-edit-modal-122 .modal-body{overflow-y:auto;min-height:0}
.review-edit-modal-122 .modal-actions{flex-shrink:0}
@media(max-width:720px){.review-page-122 .review-toolbar{justify-content:flex-start}.review-page-122 .status-flow{gap:4px}.review-page-122 .status-flow span{font-size:11px;padding:7px}.review-page-122 .review-head>div:first-child{flex-basis:100%}}


/* review-editor-0.0.123.css */
.review-edit-tools-123{display:flex;flex-wrap:wrap;gap:10px;grid-column:1/-1;padding:14px;border:1px solid var(--line);border-radius:12px}.review-edit-tools-123 p{width:100%;margin:4px 0 0;font-size:13px;line-height:1.5;font-weight:700}.review-edit-modal-122 .modal-actions{display:flex;flex-wrap:wrap;gap:10px}.review-edit-modal-122 input:disabled,.review-edit-modal-122 select:disabled{opacity:.5}


/* closing-period-0.0.124.css */
html body .closing-top-filters .report-date-filters-118{align-items:flex-start;gap:14px}


/* material-stock-0.0.128.css */
.ms-panel .panel-head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.ms-actions{display:flex;gap:10px;flex-wrap:wrap}.ms-filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:20px 0}.ms-filters label{display:grid;gap:6px;flex:1 1 155px;min-width:0}.ms-filters label:first-child{flex:2 1 230px}.ms-filters input,.ms-filters select{width:100%;min-height:44px}.ms-panel table{min-width:850px}.ms-note{font-size:13px;line-height:1.6;opacity:.8;margin-top:14px}.ms-audit{overflow-wrap:anywhere;max-height:55vh;overflow:auto}.ms-audit p{padding:12px;border-bottom:1px solid #dbe7df}.material-entry-panel>label{display:grid;gap:6px;max-width:420px;margin:16px 0}.ms-panel .neg{color:#b91c1c}@media(max-width:650px){.ms-actions{width:100%}.ms-actions button{flex:1}.ms-filters label{flex-basis:100%}}

/* Refinamento visual dos filtros e separação das seções. */
.ms-panel .ms-filters label{font-size:12px;font-weight:700;color:var(--muted);gap:8px}
.ms-panel .ms-filters #msSearch,.ms-panel .ms-filters #msSectorFilter{height:46px;min-height:46px;padding:0 14px;border:1px solid var(--line);border-radius:14px;background-color:var(--panel);color:var(--ink);font:inherit;font-size:14px;font-weight:500;box-shadow:0 1px 2px rgba(10,35,20,.03);transition:border-color .15s,box-shadow .15s;outline:none}
.ms-panel .ms-filters #msSearch::placeholder{color:var(--muted);opacity:.85}
.ms-panel .ms-filters #msSearch:focus,.ms-panel .ms-filters #msSectorFilter:focus{border-color:var(--green-600);box-shadow:0 0 0 3px rgba(32,130,72,.14)}
.ms-panel .ms-filters #msSectorFilter{padding-right:36px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23667085' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.ms-panel + .ms-panel{margin-top:24px}
.ms-panel > h2{margin-top:0;margin-bottom:18px}
@media(max-width:650px){.ms-panel + .ms-panel{margin-top:20px}}
.material-reports-127 .ms-report-summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(210px,1.2fr)!important;gap:12px!important}
.ms-report-pair{display:grid;grid-template-columns:minmax(430px,.95fr) minmax(0,1.05fr);gap:20px;align-items:stretch;min-width:0}
.ms-report-pair .materials-loss-donut-wrap{grid-template-columns:170px minmax(0,1fr)!important;gap:14px!important;max-width:none!important}
.ms-report-pair .materials-loss-donut-ring{width:170px!important;height:170px!important}
.ms-report-pair .materials-loss-donut-hole{inset:23px!important}
.ms-report-pair .materials-loss-donut-hole strong{font-size:20px!important}
.ms-report-pair .materials-donut-item{padding:12px 10px!important;column-gap:7px!important;min-height:76px!important}
.ms-report-pair .materials-donut-copy b{font-size:13px!important}
.ms-report-pair .materials-donut-copy small{font-size:11px!important;white-space:normal!important}
.ms-report-pair .materials-donut-metrics strong{font-size:13px!important;white-space:nowrap}
.ms-stock-chart{border:1px solid var(--line);border-radius:20px;padding:20px;background:var(--panel);min-width:0}
.ms-stock-chart h3{margin:0 0 6px;font-size:18px}.ms-stock-chart>small{color:var(--muted);font-size:12px}
.ms-stock-chart-body{max-height:360px;overflow:auto;padding-right:8px;margin-top:14px}
.ms-chart-unit h4{margin:16px 0 12px;color:var(--muted);font-size:12px;font-weight:700}.ms-chart-unit:first-child h4{margin-top:0}
.ms-stock-bar-row{margin-bottom:13px}.ms-stock-bar-label{display:flex;justify-content:space-between;gap:16px;font-size:12px;margin-bottom:6px}.ms-stock-bar-label span{overflow-wrap:anywhere}.ms-stock-bar-label strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.ms-stock-track{height:9px;background:var(--bg);border-radius:8px;overflow:hidden}.ms-stock-bar{height:100%;background:var(--green-600);border-radius:8px}.ms-stock-negative{background:#dc2626}.ms-stock-chart .ms-stock-alert{display:block;color:#b91c1c;margin-top:12px}
@media(max-width:1150px){.material-reports-127 .ms-report-summary{grid-template-columns:repeat(4,minmax(0,1fr))!important}.material-reports-127 .ms-stock-overview{grid-column:1/-1}.ms-report-pair{grid-template-columns:1fr}.ms-report-pair .materials-loss-donut-wrap{max-width:510px!important}}
@media(max-width:600px){.material-reports-127 .ms-report-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.ms-report-pair .materials-loss-donut-wrap{grid-template-columns:1fr!important}.ms-report-pair .materials-loss-donut-ring{margin:auto}.ms-stock-chart{padding:16px}}


/* journey-0.0.131.css */
.history-filters-131{display:flex;flex-wrap:wrap;align-items:end;gap:14px;padding:16px;margin:16px 0;background:var(--panel);border:1px solid var(--line);border-radius:16px}.history-filters-131 label{display:grid;gap:7px;font-size:12px;font-weight:700;color:var(--muted);flex:1 1 170px}.history-filters-131 label:first-child{flex:2 1 240px}.history-filters-131 input{width:100%;min-width:0;height:46px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);font:inherit;font-size:14px}.history-filters-131 input:focus{outline:2px solid var(--green-600);outline-offset:1px}
.bank-actions-stack{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:8px!important;width:174px!important;min-width:174px!important;max-width:none!important}.bank-actions-stack .btn{width:100%!important;min-height:38px!important;padding:8px 12px!important;margin:0!important;font-size:12px!important;line-height:1.3!important;white-space:normal!important;text-align:center!important;overflow:visible!important;justify-content:center!important}.bank-actions-stack .btn:before,.bank-actions-stack .btn:after{flex-shrink:0}.table:has(.bank-actions-stack) th:last-child,.table:has(.bank-actions-stack) td:last-child{width:202px!important;min-width:202px!important;padding-left:14px!important;padding-right:14px!important;text-align:center!important}
@media(max-width:600px){.history-filters-131 label{flex-basis:100%}}


/* people-layout-0.0.132.css */
/* Presença: quatro filtros na mesma linha, ações na linha seguinte. */
.attendance-panel .people-filters.attendance-filters{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.35fr) minmax(0,.8fr)!important;gap:14px!important;align-items:end!important}
.attendance-panel .people-filters.attendance-filters>label{grid-column:auto!important;grid-row:auto!important;min-width:0!important;max-width:none!important;width:100%!important;margin:0!important}
.attendance-panel .attendance-filters .global-date-single,.attendance-panel .attendance-filters .global-date-control{width:100%!important;min-width:0!important;max-width:none!important}
.attendance-panel .attendance-filters input:not([type=hidden]),.attendance-panel .attendance-filters select{height:48px!important;min-height:48px!important;font-size:14px!important}
.attendance-panel .attendance-filters>.jornada-global-actions{grid-column:1/-1!important;margin-top:2px!important}
/* Afastamentos: ações lado a lado. */
.attendance-period-management .attendance-period-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
.attendance-period-management .attendance-period-table th,.attendance-period-management .attendance-period-table td{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere;padding:12px 10px!important}
.attendance-period-management .attendance-period-table th:last-child,.attendance-period-management .attendance-period-table td:last-child{width:290px!important;max-width:none!important}
.attendance-period-management .attendance-period-table .row-actions.wrap{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:6px!important;width:100%!important;min-width:0!important}
.attendance-period-management .attendance-period-table .row-actions.wrap .btn{width:auto!important;min-width:0!important;margin:0!important;padding:9px 10px!important;white-space:nowrap!important;font-size:12px!important;line-height:1.3!important}
/* Resumo: distribuir as dez colunas dentro da largura disponível. */
.banco-horas-panel .table-wrap:has(>.banco-horas-table.professional){width:100%!important;max-width:100%!important;overflow:visible!important}
.banco-horas-panel .table.banco-horas-table.professional{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
.banco-horas-panel .table.banco-horas-table.professional th,.banco-horas-panel .table.banco-horas-table.professional td{min-width:0!important;max-width:none!important;padding:12px 6px!important;white-space:normal!important;overflow-wrap:anywhere;font-size:12px!important;vertical-align:middle!important}
.banco-horas-panel .banco-horas-table.professional th:nth-child(1){width:16%!important}
.banco-horas-panel .banco-horas-table.professional th:nth-child(2){width:14%!important}
.banco-horas-panel .banco-horas-table.professional th:nth-child(3){width:6%!important}
.banco-horas-panel .banco-horas-table.professional th:nth-child(n+4):nth-child(-n+8){width:8%!important}
.banco-horas-panel .banco-horas-table.professional th:nth-child(9){width:12%!important}
.banco-horas-panel .table.banco-horas-table.professional th:last-child,.banco-horas-panel .table.banco-horas-table.professional td:last-child{width:12%!important;min-width:0!important;max-width:none!important;padding:12px 6px!important}
.banco-horas-panel .banco-horas-table .name-cell{gap:7px!important;min-width:0!important}.banco-horas-panel .banco-horas-table .name-cell .initial{flex-shrink:0;width:24px;height:28px;font-size:12px}
.banco-horas-panel .banco-horas-table .bank-status-today,.banco-horas-panel .banco-horas-table .bank-rule-cell{min-width:0!important;width:100%!important}
.banco-horas-panel .banco-horas-table .bank-balance{min-width:0!important;max-width:100%!important;width:auto!important;padding:7px 6px!important;font-size:12px!important;white-space:nowrap!important}
.banco-horas-panel .banco-horas-table .bank-actions-stack{width:100%!important;min-width:0!important;max-width:100%!important;gap:6px!important}
.banco-horas-panel .banco-horas-table .bank-actions-stack .btn{width:100%!important;min-width:0!important;padding:8px 5px!important;font-size:11px!important;white-space:normal!important;overflow-wrap:normal!important}
@media(max-width:850px){.attendance-panel .people-filters.attendance-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}.attendance-period-management .attendance-period-table th:last-child,.attendance-period-management .attendance-period-table td:last-child{width:250px!important}.attendance-period-management .attendance-period-table .row-actions.wrap .btn{font-size:11px!important;padding:8px 6px!important}}
@media(max-width:700px){
.banco-horas-panel .banco-horas-table.professional thead{display:none}.banco-horas-panel .banco-horas-table.professional,.banco-horas-panel .banco-horas-table.professional tbody{display:block!important}.banco-horas-panel .banco-horas-table.professional tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid var(--line);border-radius:14px;padding:10px;margin-bottom:12px}.banco-horas-panel .table.banco-horas-table.professional td,.banco-horas-panel .table.banco-horas-table.professional td:last-child{display:block!important;width:auto!important;border:0!important}.banco-horas-panel .banco-horas-table td::before{display:block;font-size:10px;color:var(--muted);font-weight:700;margin-bottom:6px}.banco-horas-panel .banco-horas-table td:nth-child(1)::before{content:'Colaborador'}.banco-horas-panel .banco-horas-table td:nth-child(2)::before{content:'Jornada contratual'}.banco-horas-panel .banco-horas-table td:nth-child(3)::before{content:'Dias apurados'}.banco-horas-panel .banco-horas-table td:nth-child(4)::before{content:'Trabalhado'}.banco-horas-panel .banco-horas-table td:nth-child(5)::before{content:'Carga prevista'}.banco-horas-panel .banco-horas-table td:nth-child(6)::before{content:'Crédito'}.banco-horas-panel .banco-horas-table td:nth-child(7)::before{content:'Débito'}.banco-horas-panel .banco-horas-table td:nth-child(8)::before{content:'Saldo'}.banco-horas-panel .banco-horas-table td:nth-child(9)::before{content:'Situação de hoje'}.banco-horas-panel .banco-horas-table td:nth-child(10)::before{content:'Ações'}
}
@media(max-width:500px){.attendance-panel .people-filters.attendance-filters{grid-template-columns:1fr!important}}


/* launch-history-theme-0.0.134.css */
/* Produção Só Folhas 0.0.133 — ajuste visual cirúrgico
   A geometria abaixo é compartilhada pelos temas; o tema escuro altera apenas cores. */

.launch-filters-133{
  width:min(100%,760px);
  min-width:0;
  gap:12px;
  align-items:flex-end;
}
.launch-date-row-133{
  display:flex;
  justify-content:flex-end;
  width:100%;
  min-width:0;
  margin:0;
}
.launch-date-field-133{
  display:flex;
  flex-direction:column;
  gap:7px;
  width:300px;
  max-width:100%;
  min-width:0;
  margin:0;
  color:#34423a;
  font-size:12px;
  font-weight:800;
}
.launch-date-field-133>span{display:block;line-height:1.15}
.launch-date-field-133>.global-date-single,
.launch-date-field-133>.global-date-single>.global-date-control{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
}
.launch-date-field-133>.global-date-single>.global-date-control{
  height:48px!important;
  min-height:48px!important;
  border-radius:14px!important;
}
.launch-filters-133>.pill-row{
  justify-content:flex-end;
  width:100%;
  min-width:0;
}

/* Impede que a regra escura legada transforme o cabeçalho do histórico em outro grid. */
html body:not(.tv-mode) .history-head.history-head-112{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  margin-bottom:14px!important;
}
html body:not(.tv-mode) .history-head.history-head-112>h2{
  margin:0 0 16px!important;
}
html body:not(.tv-mode) .history-head.history-head-112>.history-filterbar-115{
  min-width:0!important;
}

html[data-theme="dark"] body:not(.tv-mode) .launch-date-field-133{color:#d7e5db}

@media(max-width:1100px){
  .launch-filters-133{width:100%;align-items:flex-start}
  .launch-date-row-133{justify-content:flex-start}
  .launch-filters-133>.pill-row{justify-content:flex-start}
}
@media(max-width:720px){
  .launch-date-field-133{width:100%}
}


/* participation-filters-0.0.135.css */
/* Produção Só Folhas 0.0.135 — filtros da participação em uma linha no desktop. */

@media (min-width:1181px){
  html body .participation-toolbar{
    display:grid!important;
    grid-template-columns:minmax(190px,.95fr) minmax(300px,1.75fr) minmax(190px,.95fr) minmax(210px,1fr) 156px!important;
    gap:14px!important;
    align-items:end!important;
    width:100%!important;
    min-width:0!important;
  }
  html body .participation-toolbar>label,
  html body .participation-toolbar>label:first-child,
  html body .participation-toolbar>.global-period-unified-container,
  html body .participation-toolbar>.btn{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
  }
  html body .participation-toolbar>.btn{
    align-self:end!important;
    white-space:nowrap!important;
  }
}

@media (min-width:721px) and (max-width:1180px){
  html body .participation-toolbar{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
    align-items:end!important;
  }
  html body .participation-toolbar>label,
  html body .participation-toolbar>.global-period-unified-container,
  html body .participation-toolbar>.btn{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
  }
}

@media (max-width:720px){
  html body .participation-toolbar>label,
  html body .participation-toolbar>.global-period-unified-container,
  html body .participation-toolbar>.btn{
    flex:1 1 100%!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
  }
}


/* quality-0.0.136.css */
.quality-panel{margin-top:16px;min-width:0}.quality-panel>p,.quality-receipts p,.quality-hint{color:var(--muted);line-height:1.5}
.quality-filters{display:grid;grid-template-columns:repeat(2,minmax(140px,.8fr)) minmax(180px,1.3fr) minmax(180px,1fr) auto;gap:12px;align-items:end;margin:24px 0}
.quality-panel label,.quality-modal form>label,.quality-form-grid>label{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:13px;font-weight:700}
.quality-panel input,.quality-panel select,.quality-modal input:not([type=checkbox]),.quality-modal select,.quality-modal textarea{width:100%;min-width:0;max-width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--panel);color:var(--ink)}
.quality-filters input,.quality-filters select,.quality-filters>.btn{height:48px;min-height:48px}
.quality-receipts{display:grid;gap:12px;margin:16px 0 28px}.quality-receipts article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;border:1px solid var(--line);border-radius:16px;min-width:0}.quality-receipts article>div{min-width:0;overflow-wrap:anywhere}.quality-receipts h3{margin:10px 0 6px}.quality-receipts p{margin:5px 0}.quality-receipts small{color:var(--muted)}
.quality-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.quality-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.45);z-index:10000;padding:20px}.quality-modal .modal-card{width:760px;max-width:100%;max-height:90vh;overflow:auto;background:var(--panel);color:var(--ink);border-radius:20px}.quality-modal .modal-body{padding:20px}.quality-modal form{display:grid;gap:16px}.quality-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.quality-store-list{max-height:240px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:8px;border:1px solid var(--line);padding:12px;border-radius:12px}.quality-store-list label{display:flex;align-items:center;gap:10px;padding:8px;font-size:13px}.quality-store-list input{width:17px;height:17px;flex:0 0 17px}.quality-hint{font-size:12px;margin:0}#qualityError{color:#c53932;margin:0}
@media(max-width:1200px){.quality-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.quality-filters,.quality-form-grid,.quality-store-list{grid-template-columns:1fr}.quality-receipts article{align-items:stretch;flex-direction:column}.quality-modal{padding:10px}}


/* box-control-0.0.140.css */
/* Controle de Caixas 0.0.140 */
.box-control{display:flex;flex-direction:column;gap:18px;min-width:0}
.box-control .panel-head p,.box-section-head p{margin:5px 0 0;color:var(--muted);font-size:13px}
.box-entry-card{overflow:hidden}
.box-entry-head{gap:16px}
.box-entry-toolbar{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(240px,1.2fr) minmax(150px,.55fr) minmax(150px,.55fr);gap:12px;align-items:end;margin:14px 0}
.box-entry-toolbar label,.box-filter-grid label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:12px;font-weight:800}
.box-entry-toolbar input,.box-entry-toolbar select,.box-filter-grid input,.box-filter-grid select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);padding:9px 11px;font:inherit;font-size:14px}
.box-entry-live{min-height:44px;border:1px solid var(--line);border-radius:12px;background:color-mix(in srgb,var(--panel) 88%,var(--green-100) 12%);padding:8px 11px;display:flex;flex-direction:column;justify-content:center;gap:2px}
.box-entry-live span{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}
.box-entry-live strong{font-size:17px;color:var(--green-800)}
.box-separator-progress{display:flex;gap:8px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:thin}
.box-sep-status{flex:0 0 auto;min-width:150px;border:1px solid var(--line);border-radius:12px;padding:9px 11px;background:var(--panel);display:flex;flex-direction:column;gap:3px}
.box-sep-status span{font-size:11px;font-weight:900;color:var(--ink);white-space:nowrap}.box-sep-status b{font-size:10px;color:var(--muted)}
.box-sep-status.done{border-color:#a9d5b7;background:var(--green-100)}.box-sep-status.done b{color:var(--green-800)}
.box-entry-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border-top:1px solid var(--line);padding-top:12px}
.box-entry-row{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:12px;align-items:center;border:1px solid var(--line);border-radius:13px;background:var(--panel);padding:11px 12px}
.box-entry-store{min-width:0}.box-entry-store b{display:block;font-size:13px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.box-entry-store small{display:block;margin-top:3px;color:var(--muted);font-size:11px}
.box-entry-row label{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:900;text-transform:uppercase;color:var(--muted)}
.box-entry-row input{width:74px;min-height:40px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--ink);padding:7px 8px;font:inherit;font-size:16px;font-weight:900;text-align:center}
.box-entry-row input:focus,.box-entry-toolbar input:focus,.box-entry-toolbar select:focus,.box-filter-grid input:focus,.box-filter-grid select:focus{outline:none;border-color:#58a773;box-shadow:0 0 0 3px rgba(22,163,74,.10)}
.box-entry-row input:disabled{opacity:.65;cursor:not-allowed}
.box-entry-actions{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.box-entry-actions>div:first-child small{color:var(--muted);line-height:1.45}
.box-section-head{display:flex;justify-content:space-between;align-items:end;margin-top:2px}.box-section-head h2{margin:0;font-size:21px}
.box-filter-card{border:1px solid var(--line);background:var(--panel);border-radius:16px;padding:13px}
.box-period-pills{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:11px}.box-period-pills .pill{padding:8px 12px;font-size:12px;cursor:pointer}
.box-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:end}
.box-history-filter-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.box-history-filter-action{display:flex;align-items:flex-end;min-width:0}.box-history-filter-action .btn{width:100%;min-height:44px;white-space:nowrap}.box-history-filter-meta{display:flex;align-items:center;min-height:18px;margin-top:8px;color:var(--muted);font-size:12px}
.box-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.box-kpi{padding:17px;min-height:112px;display:flex;flex-direction:column;justify-content:center}.box-kpi span{font-size:11px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.04em}.box-kpi strong{font-size:29px;line-height:1;color:var(--green-800);margin:8px 0 5px}.box-kpi small{font-size:11px;color:var(--muted)}
.box-chart-grid{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:14px}.box-chart-card{min-width:0;overflow:hidden}.box-chart-card .panel-head{margin-bottom:8px}
.box-network-bars{display:flex;flex-direction:column;gap:10px;padding:4px 0}.box-network-row{display:grid;grid-template-columns:145px minmax(0,1fr);gap:10px;align-items:center}.box-network-label{display:flex;flex-direction:column;min-width:0}.box-network-label b{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.box-network-label span{font-size:11px;color:var(--muted);margin-top:2px}.box-network-track{height:13px;border-radius:999px;background:color-mix(in srgb,var(--line) 75%,transparent);overflow:hidden}.box-network-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--green-800),#59b878)}
.box-line-wrap{width:100%;overflow-x:auto}.box-line-chart{width:100%;min-width:580px;height:270px;display:block}.box-chart-axis{stroke:var(--line);stroke-width:1.4}.box-chart-line{fill:none;stroke:#198447;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.box-chart-dot{fill:var(--panel);stroke:#198447;stroke-width:3}.box-chart-x{fill:var(--muted);font-size:12px}.box-chart-value{fill:var(--ink);font-size:11px;font-weight:800}
.box-store-analysis{overflow:hidden}.box-store-analysis .table-wrap{max-height:420px;overflow:auto}.box-store-analysis .table thead{position:sticky;top:0;background:var(--panel);z-index:1}
.box-history-panel{overflow:hidden}.box-history-panel>.panel-head{margin-bottom:10px}.box-history-list{display:flex;flex-direction:column;gap:9px;margin-top:12px}.box-history-card{border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}.box-history-main{display:grid;grid-template-columns:minmax(150px,1fr) 90px 105px auto;gap:12px;align-items:center;padding:12px}.box-history-main>div:first-child b{display:block}.box-history-main>div:first-child small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.box-history-metric{text-align:right}.box-history-metric strong{display:block;color:var(--green-800);font-size:18px}.box-history-metric small{color:var(--muted);font-size:10px}.box-history-detail{border-top:1px solid var(--line);background:color-mix(in srgb,var(--panel) 96%,var(--green-100) 4%);padding:12px}.box-history-detail .table-wrap{max-height:360px;overflow:auto}.box-audit{margin-top:14px}.box-audit h4{margin:0 0 8px;font-size:14px}.box-audit-item{border:1px solid var(--line);border-radius:11px;padding:10px;margin-top:7px;background:var(--panel)}.box-audit-item>div{display:flex;justify-content:space-between;gap:10px}.box-audit-item small{font-size:10px;color:var(--muted)}.box-audit-item p{margin:7px 0 0;font-size:12px}.box-audit-item ul{margin:7px 0 0;padding-left:18px;font-size:12px;color:var(--muted)}
[data-theme="dark"] .box-sep-status.done{background:var(--green-100);border-color:#315c40}
[data-theme="dark"] .box-network-track{background:#203128}
[data-theme="dark"] .box-chart-line{stroke:#53c777}[data-theme="dark"] .box-chart-dot{stroke:#53c777;fill:var(--panel)}
[data-theme="dark"] .box-entry-live,[data-theme="dark"] .box-history-detail{background:var(--panel)}
@media(max-width:1180px){.box-entry-toolbar{grid-template-columns:1fr 1.2fr 1fr 1fr}.box-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.box-history-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.box-chart-grid{grid-template-columns:1fr}.box-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.box-entry-toolbar{grid-template-columns:1fr 1fr}.box-entry-list{grid-template-columns:1fr}.box-entry-actions{align-items:flex-start;flex-direction:column}.box-entry-actions .row-actions{width:100%}.box-entry-actions .row-actions .btn{flex:1}.box-filter-grid,.box-history-filter-grid{grid-template-columns:1fr 1fr}.box-history-main{grid-template-columns:1fr auto}.box-history-main>.tag{justify-self:start}.box-history-main>.row-actions{grid-column:1/-1;justify-content:flex-start}.box-history-metric{align-self:start}.box-network-row{grid-template-columns:125px 1fr}}
@media(max-width:560px){.box-control{gap:14px}.box-entry-toolbar{grid-template-columns:1fr}.box-entry-list{gap:7px}.box-entry-row{grid-template-columns:minmax(0,1fr) 100px;padding:10px}.box-entry-row label{justify-content:flex-end}.box-entry-row input{width:68px}.box-filter-grid,.box-history-filter-grid{grid-template-columns:1fr}.box-kpis{grid-template-columns:1fr 1fr;gap:8px}.box-kpi{padding:13px;min-height:96px}.box-kpi strong{font-size:24px}.box-period-pills{display:grid;grid-template-columns:repeat(3,1fr)}.box-period-pills .pill{padding:8px 6px}.box-history-main{padding:11px}.box-network-row{grid-template-columns:105px 1fr}.box-entry-head{align-items:flex-start}.box-entry-head .tag{flex:0 0 auto}}

@media(max-width:820px){.box-history-filter-action .btn{width:100%}}
@media(max-width:560px){.box-history-filter-action{width:100%}.box-history-filter-action .btn{width:100%}}


/* box-control-2.0.143.css */
/* Controle de Caixas 2.0 — 0.0.142 */
.box2-tabs{display:flex;gap:8px;align-items:center;overflow-x:auto;padding:0 0 14px;margin-top:-2px;scrollbar-width:thin}.box2-tab{flex:0 0 auto;border:1px solid var(--line);background:var(--panel);color:var(--muted);border-radius:12px;padding:10px 15px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.box2-tab.active{background:var(--green-800);color:#fff;border-color:var(--green-800);box-shadow:0 8px 18px rgba(15,107,69,.15)}
.box2-content{display:flex;flex-direction:column;gap:16px;min-width:0}.box2-kicker{display:inline-block;font-size:10px;font-weight:900;letter-spacing:.09em;color:var(--green-800);margin-bottom:4px}.box2-link-card{display:flex;align-items:center;justify-content:space-between;gap:22px}.box2-link-card h2{margin:0 0 5px}.box2-link-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.45;max-width:820px}.box2-link-card code{display:block;margin-top:11px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:color-mix(in srgb,var(--panel) 88%,var(--green-100) 12%);color:var(--ink);font-size:12px;word-break:break-all}.box2-link-card .row-actions{flex:0 0 auto}
.box2-toolbar{display:grid;grid-template-columns:minmax(240px,1.3fr) repeat(2,minmax(160px,.7fr));gap:12px;align-items:end}.box2-toolbar label,.box2-promoter-top label,.box2-filter-grid label,.box2-inline-select{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:12px;font-weight:800}.box2-toolbar select,.box2-promoter-top input,.box2-promoter-top select,.box2-filter-grid input,.box2-filter-grid select,.box2-inline-select select{width:100%;min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--ink);padding:9px 11px;font:inherit;font-size:14px}.box2-live-status{min-height:44px;border:1px solid var(--line);border-radius:12px;background:var(--panel);padding:8px 11px;display:flex;flex-direction:column;justify-content:center}.box2-live-status span{font-size:10px;text-transform:uppercase;font-weight:900;color:var(--muted)}.box2-live-status b{font-size:14px;color:var(--ink);margin-top:2px}
.box2-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.box2-kpi{padding:15px;min-height:105px;display:flex;flex-direction:column;justify-content:center}.box2-kpi span{font-size:10px;text-transform:uppercase;font-weight:900;letter-spacing:.05em;color:var(--muted)}.box2-kpi strong{font-size:27px;line-height:1;color:var(--green-800);margin:8px 0 5px}.box2-kpi small{font-size:11px;color:var(--muted)}
.box2-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;align-items:end;padding:12px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--panel) 96%,var(--green-100) 4%);margin-bottom:12px}.box2-checkbox{min-height:44px!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;padding:0 4px}.box2-checkbox input{width:auto!important;min-height:auto!important}.box2-filter-clear{min-height:44px;width:100%}
.box2-history-list{display:flex;flex-direction:column;gap:9px}.box2-history-card{border:1px solid var(--line);border-radius:14px;background:var(--panel);overflow:hidden}.box2-history-main{display:grid;grid-template-columns:minmax(190px,1fr) 110px 140px auto;gap:12px;align-items:center;padding:12px}.box2-history-main>div:first-child b{display:block}.box2-history-main small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.box2-history-main strong{display:block;color:var(--green-800);font-size:19px}.box2-detail{border-top:1px solid var(--line);padding:12px;background:color-mix(in srgb,var(--panel) 95%,var(--green-100) 5%)}.box2-detail .table-wrap{max-height:420px;overflow:auto}.table td small{display:block;color:var(--muted);font-size:10px;margin-top:3px}
.box2-promoter-top{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(320px,1.3fr);gap:12px;margin:12px 0}.box2-promoter-table{max-height:620px;overflow:auto}.box2-promoter-table .table thead{position:sticky;top:0;background:var(--panel);z-index:2}.box2-diff-note{display:block;color:#b42318!important;margin-top:4px!important}
.box2-inventory-not-ready{display:flex;align-items:center;justify-content:space-between;gap:18px}.box2-inventory-not-ready h2{margin:0 0 6px}.box2-inventory-not-ready p{margin:0;color:var(--muted);max-width:780px;line-height:1.45}.box2-inventory-draft{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.box2-inventory-draft span{border:1px solid var(--line);background:var(--panel);border-radius:10px;padding:8px 10px;font-size:12px}.box2-inventory-kpis{grid-template-columns:repeat(7,minmax(0,1fr))}.box2-inline-select{min-width:240px}.box2-inline-select select{margin-top:3px}
.box2-content .panel-head{gap:12px}.box2-content .table-wrap{border-radius:12px}.box2-content .table td,.box2-content .table th{vertical-align:middle}.box2-content .muted{color:var(--muted);font-size:11px}.box2-content .row-actions{flex-wrap:wrap}
[data-theme="dark"] .box2-tab.active{background:#1b7749;border-color:#2c8e5b}.theme-dark .box2-link-card code,.theme-dark .box2-filter-grid,.theme-dark .box2-detail{background:var(--panel)}
@media(max-width:1280px){.box2-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.box2-inventory-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}.box2-filter-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:980px){.box2-link-card,.box2-inventory-not-ready{align-items:flex-start;flex-direction:column}.box2-toolbar{grid-template-columns:1fr 1fr}.box2-promoter-top{grid-template-columns:1fr}.box2-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.box2-history-main{grid-template-columns:1fr auto}.box2-history-main>.tag{justify-self:start}.box2-history-main>.btn{grid-column:1/-1;justify-self:start}.box2-inventory-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.box2-tabs{margin-left:-2px;margin-right:-2px}.box2-tab{padding:9px 12px}.box2-toolbar,.box2-filter-grid{grid-template-columns:1fr 1fr}.box2-kpis,.box2-inventory-kpis{grid-template-columns:1fr 1fr}.box2-link-card .row-actions,.box2-inventory-not-ready .row-actions{width:100%}.box2-link-card .row-actions .btn,.box2-inventory-not-ready .row-actions .btn{flex:1}.box2-history-main{grid-template-columns:1fr}.box2-history-main>.tag,.box2-history-main>.btn{grid-column:auto}.box2-inline-select{min-width:0;width:100%}.box2-content .panel-head{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.box2-toolbar,.box2-filter-grid,.box2-kpis,.box2-inventory-kpis{grid-template-columns:1fr}.box2-tab{font-size:12px}.box2-link-card{padding:14px}.box2-kpi{min-height:88px}.box2-kpi strong{font-size:24px}.box2-promoter-top{gap:9px}.box2-filter-grid{padding:10px}.box2-content{gap:13px}}
.box2-balance-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr);gap:16px}.box2-balance-grid h3{margin:2px 0 9px;font-size:14px}.box2-store-balance-table{max-height:520px;overflow:auto}.box2-store-balance-table .table thead{position:sticky;top:0;background:var(--panel);z-index:2}.box2-timeline{display:flex;flex-direction:column;gap:0}.box2-timeline-item{position:relative;display:grid;grid-template-columns:18px 1fr;gap:10px;padding:10px 0}.box2-timeline-item:not(:last-child):before{content:"";position:absolute;left:8px;top:23px;bottom:-2px;width:2px;background:var(--line)}.box2-timeline-dot{width:10px;height:10px;border-radius:50%;background:var(--green-800);margin:5px 0 0 4px;z-index:1}.box2-timeline-item b{display:block;font-size:13px}.box2-timeline-item small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.box2-timeline-item p{margin:4px 0 0;color:var(--ink);font-size:12px;line-height:1.4}
@media(max-width:1100px){.box2-balance-grid{grid-template-columns:1fr}}


.box2-deadline-note{display:block;margin-top:5px;font-size:10px;color:var(--muted);font-weight:700}.box2-deadline-note.is-overdue,.box2-overdue-text{color:#b42318;font-weight:800}.box2-deadline-alert{border:1px solid rgba(180,35,24,.28);background:rgba(180,35,24,.07);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:4px;color:var(--ink)}.box2-deadline-alert b{color:#b42318}.box2-deadline-alert span{font-size:12px;color:var(--muted);line-height:1.45}


/* purchase-saved-filters-0.0.145.css */
/* Produção Só Folhas 0.0.145
   Compras > Consulta > Listas salvas
   Ajuste cirúrgico: todos os filtros na mesma linha em desktop.
   Este arquivo é carregado por último de propósito para superar o padrão global
   .sf-filter-bar, que converte a grade em flex e estava forçando a quebra. */

@media (min-width: 900px) {
  .purchase-saved-consult .purchase-saved-filter-grid.sf-filter-bar {
    display: grid !important;
    grid-template-columns:
      minmax(150px, 0.95fr)
      minmax(190px, 1.15fr)
      minmax(190px, 1.15fr)
      minmax(315px, 1.30fr) !important;
    gap: 12px !important;
    align-items: end !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .purchase-saved-consult .purchase-saved-filter-grid.sf-filter-bar > .sf-filter-control {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    margin: 0 !important;
  }

  .purchase-saved-consult .purchase-saved-filter-tail {
    display: grid !important;
    grid-template-columns: minmax(150px, 1fr) max-content !important;
    gap: 12px !important;
    align-items: end !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .purchase-saved-consult .purchase-saved-sector-filter {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
  }

  .purchase-saved-consult .purchase-saved-filter-action {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    width: auto !important;
    grid-column: auto !important;
    margin: 0 !important;
  }

  .purchase-saved-consult .purchase-saved-filter-action .btn {
    width: auto !important;
    min-width: 150px !important;
    height: var(--sf-control-height, 48px) !important;
    min-height: var(--sf-control-height, 48px) !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }
}

/* Notebook: continua alinhado em uma única linha enquanto houver largura útil. */
@media (min-width: 900px) and (max-width: 1180px) {
  .purchase-saved-consult .purchase-saved-filter-grid.sf-filter-bar {
    grid-template-columns:
      minmax(135px, .9fr)
      minmax(165px, 1fr)
      minmax(165px, 1fr)
      minmax(285px, 1.2fr) !important;
    gap: 10px !important;
  }
  .purchase-saved-consult .purchase-saved-filter-tail {
    grid-template-columns: minmax(135px, 1fr) max-content !important;
    gap: 10px !important;
  }
  .purchase-saved-consult .purchase-saved-filter-action .btn {
    min-width: 138px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Tablet/mobile: mantém o comportamento responsivo e legível. */
@media (max-width: 899px) {
  .purchase-saved-consult .purchase-saved-filter-tail {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .purchase-saved-consult .purchase-saved-filter-action,
  .purchase-saved-consult .purchase-saved-filter-action .btn {
    width: 100% !important;
  }
}


/* period-dark-clean-0.0.154.css */
/* Produção Só Folhas 0.0.154
   Corrige somente o contorno EXTERNO do campo Período no modo escuro
   em Relatórios, Conferência de Produção e Fechamentos.
   O campo interno continua com a borda/foco verde normal. */

/* Remove a caixa externa legada que envolve legenda + campo. */
html[data-theme="dark"] body:not(.tv-mode) .report-date-filters-118 .custom-period-row label.global-period-unified-container,
html[data-theme="dark"] body:not(.tv-mode) .report-date-filters-118 .custom-period-row label.global-period-unified-container:hover,
html[data-theme="dark"] body:not(.tv-mode) .report-date-filters-118 .custom-period-row label.global-period-unified-container:focus-within,
html[data-theme="dark"] body:not(.tv-mode) .report-date-filters-118 .custom-period-row .global-period-unified-container{
  background:transparent !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  padding:0 !important;
}

/* Restaura o visual normal do campo interno. */
html[data-theme="dark"] body:not(.tv-mode) .report-date-filters-118 .global-period-control{
  background:#0f1914 !important;
  border:1px solid #2f4638 !important;
  box-shadow:none !important;
  outline:none !important;
}
html[data-theme="dark"] body:not(.tv-mode) .report-date-filters-118 .global-period-control:focus-within{
  border-color:#38b469 !important;
  box-shadow:0 0 0 3px rgba(56,180,105,.12) !important;
}


/* purchase-dark-standard-0.0.167.css */
/* Produção Só Folhas 0.0.158
   Compras: padronização visual exclusiva do modo escuro + fluxo visual P1/P2. */

/* Fluxo de etapas da Conferência — válido nos dois temas */
.purchase-module .conference-stage-flow{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 12px;
}
.purchase-module .conference-stage-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border:1px solid var(--border,#dce6df);
  border-radius:12px;
  font-weight:800;
  line-height:1.2;
  background:var(--card,#fff);
  color:var(--muted,#607066);
}
.purchase-module .conference-stage-chip.is-active{
  border-color:#86c99d;
  background:#eef8f1;
  color:#075c30;
}
.purchase-module .conference-stage-chip.is-done{
  border-color:#b9dec5;
  background:#f0f8f3;
  color:#0b6b36;
}
.purchase-module .conference-stage-chip.is-ready{
  border-color:#138143;
  background:#138143;
  color:#fff;
}
.purchase-module .conference-stage-chip.is-locked{opacity:.58}
.purchase-module .conference-stage-arrow{font-weight:900;color:var(--muted,#607066)}
.purchase-module .conference-stage-notice,
.purchase-module .conference-stages-complete{
  margin:10px 0 14px;
  padding:12px 14px;
  border:1px solid #b9dec5;
  border-radius:12px;
  background:#f2faf4;
  color:#174d2c;
}
.purchase-module .conference-stages-complete{display:flex;flex-direction:column;gap:3px}
.purchase-module .conference-stages-complete b{font-size:14px}
.purchase-module .conference-stages-complete span{font-size:12px;color:#547061}
.purchase-module .purchase-close-lot:disabled{
  opacity:.45;
  cursor:not-allowed;
  box-shadow:none!important;
}

/* ---------- Compras · modo escuro ---------- */
html[data-theme='dark'] .purchase-module,
.theme-dark .purchase-module{
  --purchase-bg:#07100c;
  --purchase-surface:#0d1914;
  --purchase-surface-2:#102019;
  --purchase-surface-3:#14271f;
  --purchase-border:#29483a;
  --purchase-border-soft:#1d352a;
  --purchase-text:#f4f8f5;
  --purchase-text-2:#c5d1ca;
  --purchase-muted:#91a59a;
  --purchase-green:#17a653;
  --purchase-green-strong:#118044;
  --purchase-green-soft:#153827;
  --purchase-blue-soft:#163746;
  --purchase-blue:#8bc9e9;
  --purchase-amber-soft:#443115;
  --purchase-amber:#f1bd61;
  --purchase-red-soft:#3d1919;
  --purchase-red:#ff9d9d;
  color:var(--purchase-text);
}

html[data-theme='dark'] .purchase-module .page-head,
.theme-dark .purchase-module .page-head{
  color:var(--purchase-text);
}
html[data-theme='dark'] .purchase-module .page-head p,
.theme-dark .purchase-module .page-head p{
  color:#9fceb1;
}

/* Navegação de Compras */
html[data-theme='dark'] .purchase-module .purchase-proto-nav,
.theme-dark .purchase-module .purchase-proto-nav{
  gap:8px;
}
html[data-theme='dark'] .purchase-module .purchase-main-tab,
.theme-dark .purchase-module .purchase-main-tab{
  background:var(--purchase-surface-2)!important;
  color:var(--purchase-text-2)!important;
  border-color:var(--purchase-border)!important;
  box-shadow:none!important;
}
html[data-theme='dark'] .purchase-module .purchase-main-tab:hover,
.theme-dark .purchase-module .purchase-main-tab:hover{
  background:var(--purchase-surface-3)!important;
  color:#fff!important;
  border-color:#3b6551!important;
}
html[data-theme='dark'] .purchase-module .purchase-main-tab.active,
.theme-dark .purchase-module .purchase-main-tab.active{
  background:var(--purchase-green-strong)!important;
  color:#fff!important;
  border-color:var(--purchase-green-strong)!important;
}

/* Cards / painéis / blocos */
html[data-theme='dark'] .purchase-module .card,
html[data-theme='dark'] .purchase-module .panel,
html[data-theme='dark'] .purchase-module .purchase-saved-consult,
html[data-theme='dark'] .purchase-module .purchase-mini-card,
html[data-theme='dark'] .purchase-module .purchase-completion-row,
html[data-theme='dark'] .purchase-module .purchase-prototype-section,
html[data-theme='dark'] .purchase-module .purchase-prototype-list-card,
.theme-dark .purchase-module .card,
.theme-dark .purchase-module .panel,
.theme-dark .purchase-module .purchase-saved-consult,
.theme-dark .purchase-module .purchase-mini-card,
.theme-dark .purchase-module .purchase-completion-row,
.theme-dark .purchase-module .purchase-prototype-section,
.theme-dark .purchase-module .purchase-prototype-list-card{
  background:var(--purchase-surface)!important;
  border-color:var(--purchase-border)!important;
  color:var(--purchase-text)!important;
  box-shadow:none!important;
}
html[data-theme='dark'] .purchase-module .panel-head,
.theme-dark .purchase-module .panel-head{
  border-color:var(--purchase-border-soft)!important;
}
html[data-theme='dark'] .purchase-module h1,
html[data-theme='dark'] .purchase-module h2,
html[data-theme='dark'] .purchase-module h3,
html[data-theme='dark'] .purchase-module h4,
html[data-theme='dark'] .purchase-module b,
html[data-theme='dark'] .purchase-module strong,
.theme-dark .purchase-module h1,
.theme-dark .purchase-module h2,
.theme-dark .purchase-module h3,
.theme-dark .purchase-module h4,
.theme-dark .purchase-module b,
.theme-dark .purchase-module strong{
  color:var(--purchase-text);
}
html[data-theme='dark'] .purchase-module p,
html[data-theme='dark'] .purchase-module small,
html[data-theme='dark'] .purchase-module .block-muted,
html[data-theme='dark'] .purchase-module .muted-action,
.theme-dark .purchase-module p,
.theme-dark .purchase-module small,
.theme-dark .purchase-module .block-muted,
.theme-dark .purchase-module .muted-action{
  color:var(--purchase-muted)!important;
}

/* Campos */
html[data-theme='dark'] .purchase-module input,
html[data-theme='dark'] .purchase-module select,
html[data-theme='dark'] .purchase-module textarea,
.theme-dark .purchase-module input,
.theme-dark .purchase-module select,
.theme-dark .purchase-module textarea{
  background:#0a1510!important;
  color:var(--purchase-text)!important;
  border-color:#345744!important;
  box-shadow:none!important;
}
html[data-theme='dark'] .purchase-module input::placeholder,
html[data-theme='dark'] .purchase-module textarea::placeholder,
.theme-dark .purchase-module input::placeholder,
.theme-dark .purchase-module textarea::placeholder{
  color:#6f8478!important;
  opacity:1;
}
html[data-theme='dark'] .purchase-module input:focus,
html[data-theme='dark'] .purchase-module select:focus,
html[data-theme='dark'] .purchase-module textarea:focus,
.theme-dark .purchase-module input:focus,
.theme-dark .purchase-module select:focus,
.theme-dark .purchase-module textarea:focus{
  border-color:#36b56a!important;
  outline:none!important;
  box-shadow:0 0 0 2px rgba(54,181,106,.12)!important;
}
html[data-theme='dark'] .purchase-module label,
html[data-theme='dark'] .purchase-module label>span,
.theme-dark .purchase-module label,
.theme-dark .purchase-module label>span{
  color:#b8c8bf;
}

/* KPIs: não deixar cartões brancos no dark */
html[data-theme='dark'] .purchase-module .purchase-kpis>div,
.theme-dark .purchase-module .purchase-kpis>div{
  background:var(--purchase-surface-2)!important;
  border:1px solid var(--purchase-border)!important;
  color:var(--purchase-text)!important;
}
html[data-theme='dark'] .purchase-module .purchase-kpis span,
.theme-dark .purchase-module .purchase-kpis span{
  color:var(--purchase-muted)!important;
}
html[data-theme='dark'] .purchase-module .purchase-kpis strong,
.theme-dark .purchase-module .purchase-kpis strong{
  color:#f8fbf9!important;
}

/* Tabelas */
html[data-theme='dark'] .purchase-module table,
.theme-dark .purchase-module table{
  color:var(--purchase-text);
}
html[data-theme='dark'] .purchase-module .table th,
html[data-theme='dark'] .purchase-module .completed-table th,
html[data-theme='dark'] .purchase-module .conference-operation-table th,
.theme-dark .purchase-module .table th,
.theme-dark .purchase-module .completed-table th,
.theme-dark .purchase-module .conference-operation-table th{
  background:#0d1b15!important;
  color:#a9d8ba!important;
  border-color:var(--purchase-border)!important;
}
html[data-theme='dark'] .purchase-module .table td,
html[data-theme='dark'] .purchase-module .completed-table td,
html[data-theme='dark'] .purchase-module .conference-operation-table td,
.theme-dark .purchase-module .table td,
.theme-dark .purchase-module .completed-table td,
.theme-dark .purchase-module .conference-operation-table td{
  background:#0a1510!important;
  color:var(--purchase-text)!important;
  border-color:#284638!important;
}
html[data-theme='dark'] .purchase-module .table tr:hover td,
html[data-theme='dark'] .purchase-module .completed-row:hover td,
.theme-dark .purchase-module .table tr:hover td,
.theme-dark .purchase-module .completed-row:hover td{
  background:#102019!important;
}

/* Conferência */
html[data-theme='dark'] .purchase-module .conference-production-heading,
html[data-theme='dark'] .purchase-module .conference-control-heading,
html[data-theme='dark'] .purchase-module .conference-lot-summary,
html[data-theme='dark'] .purchase-module .conference-summary-head,
.theme-dark .purchase-module .conference-production-heading,
.theme-dark .purchase-module .conference-control-heading,
.theme-dark .purchase-module .conference-lot-summary,
.theme-dark .purchase-module .conference-summary-head{
  background:#0d1b15!important;
  border-color:var(--purchase-border)!important;
}
html[data-theme='dark'] .purchase-module .conference-summary-grid>div,
.theme-dark .purchase-module .conference-summary-grid>div{
  background:#0b1712!important;
  border-color:#284638!important;
}
html[data-theme='dark'] .purchase-module .conference-auto-cell,
.theme-dark .purchase-module .conference-auto-cell{
  background:#0e1c16!important;
}
html[data-theme='dark'] .purchase-module .conference-stage-chip,
.theme-dark .purchase-module .conference-stage-chip{
  background:var(--purchase-surface-2);
  border-color:var(--purchase-border);
  color:var(--purchase-text-2);
}
html[data-theme='dark'] .purchase-module .conference-stage-chip.is-active,
.theme-dark .purchase-module .conference-stage-chip.is-active{
  background:#143522!important;
  border-color:#2f8552!important;
  color:#d9f3e2!important;
}
html[data-theme='dark'] .purchase-module .conference-stage-chip.is-done,
.theme-dark .purchase-module .conference-stage-chip.is-done{
  background:#102d1e!important;
  border-color:#2c6b47!important;
  color:#9fe0b6!important;
}
html[data-theme='dark'] .purchase-module .conference-stage-chip.is-ready,
.theme-dark .purchase-module .conference-stage-chip.is-ready{
  background:var(--purchase-green-strong)!important;
  border-color:var(--purchase-green)!important;
  color:#fff!important;
}
html[data-theme='dark'] .purchase-module .conference-stage-notice,
html[data-theme='dark'] .purchase-module .conference-stages-complete,
.theme-dark .purchase-module .conference-stage-notice,
.theme-dark .purchase-module .conference-stages-complete{
  background:#10291c!important;
  border-color:#2f6848!important;
  color:#c8ead4!important;
}
html[data-theme='dark'] .purchase-module .conference-stages-complete span,
.theme-dark .purchase-module .conference-stages-complete span{
  color:#94baa2!important;
}

/* Botões */
html[data-theme='dark'] .purchase-module .btn-primary,
.theme-dark .purchase-module .btn-primary{
  background:var(--purchase-green-strong)!important;
  border-color:var(--purchase-green-strong)!important;
  color:#fff!important;
  box-shadow:none!important;
}
html[data-theme='dark'] .purchase-module .btn-primary:hover,
.theme-dark .purchase-module .btn-primary:hover{
  background:#15954d!important;
  border-color:#15954d!important;
}
html[data-theme='dark'] .purchase-module .btn-soft,
.theme-dark .purchase-module .btn-soft{
  background:#14271f!important;
  border-color:#335b47!important;
  color:#bce6cb!important;
  box-shadow:none!important;
}
html[data-theme='dark'] .purchase-module .btn-ghost,
.theme-dark .purchase-module .btn-ghost{
  background:#0b1712!important;
  border-color:#345744!important;
  color:#e4ece7!important;
  box-shadow:none!important;
}
html[data-theme='dark'] .purchase-module .btn-danger,
html[data-theme='dark'] .purchase-module .purchase-delete-soft,
.theme-dark .purchase-module .btn-danger,
.theme-dark .purchase-module .purchase-delete-soft{
  background:var(--purchase-red-soft)!important;
  border-color:#714040!important;
  color:var(--purchase-red)!important;
}

/* Status / tags */
html[data-theme='dark'] .purchase-module .tag,
.theme-dark .purchase-module .tag{
  background:#183326!important;
  border-color:#315b45!important;
  color:#bfe5cc!important;
}
html[data-theme='dark'] .purchase-module .tag.blue,
.theme-dark .purchase-module .tag.blue{
  background:var(--purchase-blue-soft)!important;
  border-color:#315d70!important;
  color:var(--purchase-blue)!important;
}
html[data-theme='dark'] .purchase-module .tag.red,
.theme-dark .purchase-module .tag.red{
  background:var(--purchase-red-soft)!important;
  border-color:#714040!important;
  color:var(--purchase-red)!important;
}
html[data-theme='dark'] .purchase-module .tag.orange,
.theme-dark .purchase-module .tag.orange{
  background:var(--purchase-amber-soft)!important;
  border-color:#735524!important;
  color:var(--purchase-amber)!important;
}

/* Listas salvas, cards de compra e linhas */
html[data-theme='dark'] .purchase-module .purchase-saved-result,
html[data-theme='dark'] .purchase-module .purchase-saved-result.active,
html[data-theme='dark'] .purchase-module .purchase-mini-card,
.theme-dark .purchase-module .purchase-saved-result,
.theme-dark .purchase-module .purchase-saved-result.active,
.theme-dark .purchase-module .purchase-mini-card{
  background:var(--purchase-surface-2)!important;
  border-color:var(--purchase-border)!important;
}
html[data-theme='dark'] .purchase-module .purchase-saved-result.active,
.theme-dark .purchase-module .purchase-saved-result.active{
  border-color:#41835d!important;
  background:#122a1d!important;
}

/* Resultados importantes */
html[data-theme='dark'] .purchase-module .completed-result,
html[data-theme='dark'] .purchase-module .conference-production-output-cell b,
html[data-theme='dark'] .purchase-module .conference-yield-cell b,
.theme-dark .purchase-module .completed-result,
.theme-dark .purchase-module .conference-production-output-cell b,
.theme-dark .purchase-module .conference-yield-cell b{
  color:#55cf83!important;
}
html[data-theme='dark'] .purchase-module .neg,
html[data-theme='dark'] .purchase-module .is-negative,
.theme-dark .purchase-module .neg,
.theme-dark .purchase-module .is-negative{
  color:#ff9696!important;
}

@media(max-width:720px){
  .purchase-module .conference-stage-flow{gap:7px}
  .purchase-module .conference-stage-chip{min-height:38px;padding:0 11px;font-size:12px}
  .purchase-module .conference-stage-arrow{display:none}
}

/* Produção Só Folhas 0.0.167
   Compras · correção fina do modo escuro na Nova Compra e na prévia/listas salvas. */
html[data-theme='dark'] .purchase-module,
.theme-dark .purchase-module{
  --card:var(--purchase-surface);
  --panel:var(--purchase-surface);
  --input-bg:#0a1510;
  --text:var(--purchase-text);
  --muted:var(--purchase-muted);
  --border:var(--purchase-border);
  --line:var(--purchase-border);
}

html[data-theme='dark'] .purchase-module .purchase-proto-sector-tabs,
.theme-dark .purchase-module .purchase-proto-sector-tabs{
  border-top-color:var(--purchase-border)!important;
  border-bottom-color:var(--purchase-border)!important;
}
html[data-theme='dark'] .purchase-module .purchase-proto-sector-tab,
html[data-theme='dark'] .purchase-module .purchase-proto-nav button,
.theme-dark .purchase-module .purchase-proto-sector-tab,
.theme-dark .purchase-module .purchase-proto-nav button{
  background:var(--purchase-surface-2)!important;
  color:var(--purchase-text)!important;
  border-color:var(--purchase-border)!important;
  box-shadow:none!important;
}
html[data-theme='dark'] .purchase-module .purchase-proto-sector-tab:not(.active):hover,
html[data-theme='dark'] .purchase-module .purchase-proto-nav button:not(.active):hover,
.theme-dark .purchase-module .purchase-proto-sector-tab:not(.active):hover,
.theme-dark .purchase-module .purchase-proto-nav button:not(.active):hover{
  background:var(--purchase-surface-3)!important;
  border-color:#3b6551!important;
}

html[data-theme='dark'] .purchase-module .purchase-proto-row,
html[data-theme='dark'] .purchase-module .purchase-saved-edit-row,
html[data-theme='dark'] .purchase-module .purchase-proto-import,
html[data-theme='dark'] .purchase-module .purchase-proto-registered-picker,
html[data-theme='dark'] .purchase-module .purchase-proto-summary>div,
html[data-theme='dark'] .purchase-module .purchase-proto-summary-empty,
html[data-theme='dark'] .purchase-module .purchase-proto-search-empty,
.theme-dark .purchase-module .purchase-proto-row,
.theme-dark .purchase-module .purchase-saved-edit-row,
.theme-dark .purchase-module .purchase-proto-import,
.theme-dark .purchase-module .purchase-proto-registered-picker,
.theme-dark .purchase-module .purchase-proto-summary>div,
.theme-dark .purchase-module .purchase-proto-summary-empty,
.theme-dark .purchase-module .purchase-proto-search-empty{
  background:var(--purchase-surface-2)!important;
  border-color:var(--purchase-border)!important;
  color:var(--purchase-text)!important;
}

html[data-theme='dark'] .purchase-module .purchase-proto-search-field,
.theme-dark .purchase-module .purchase-proto-search-field{
  background:#0a1510!important;
  border-color:#345744!important;
  color:var(--purchase-muted)!important;
}
html[data-theme='dark'] .purchase-module .purchase-proto-search-field:focus-within,
.theme-dark .purchase-module .purchase-proto-search-field:focus-within{
  border-color:#36b56a!important;
  box-shadow:0 0 0 2px rgba(54,181,106,.12)!important;
}

html[data-theme='dark'] .purchase-module .purchase-preview-card,
html[data-theme='dark'] .purchase-module .purchase-preview-sheet,
.theme-dark .purchase-module .purchase-preview-card,
.theme-dark .purchase-module .purchase-preview-sheet{
  background:var(--purchase-surface)!important;
  border-color:var(--purchase-border)!important;
  color:var(--purchase-text)!important;
  box-shadow:none!important;
}
html[data-theme='dark'] .purchase-module .purchase-preview-group + .purchase-preview-group,
html[data-theme='dark'] .purchase-module .purchase-preview-row,
html[data-theme='dark'] .purchase-module .purchase-preview-footer,
.theme-dark .purchase-module .purchase-preview-group + .purchase-preview-group,
.theme-dark .purchase-module .purchase-preview-row,
.theme-dark .purchase-module .purchase-preview-footer{
  border-color:var(--purchase-border-soft)!important;
}
html[data-theme='dark'] .purchase-module .purchase-preview-head h3,
html[data-theme='dark'] .purchase-module .purchase-preview-row b,
html[data-theme='dark'] .purchase-module .purchase-preview-row strong,
html[data-theme='dark'] .purchase-module .purchase-preview-footer>div span,
.theme-dark .purchase-module .purchase-preview-head h3,
.theme-dark .purchase-module .purchase-preview-row b,
.theme-dark .purchase-module .purchase-preview-row strong,
.theme-dark .purchase-module .purchase-preview-footer>div span{
  color:var(--purchase-text)!important;
}
html[data-theme='dark'] .purchase-module .purchase-preview-head span,
html[data-theme='dark'] .purchase-module .purchase-preview-head time,
html[data-theme='dark'] .purchase-module .purchase-preview-row small,
html[data-theme='dark'] .purchase-module .purchase-preview-empty,
html[data-theme='dark'] .purchase-module .purchase-preview-footer,
.theme-dark .purchase-module .purchase-preview-head span,
.theme-dark .purchase-module .purchase-preview-head time,
.theme-dark .purchase-module .purchase-preview-row small,
.theme-dark .purchase-module .purchase-preview-empty,
.theme-dark .purchase-module .purchase-preview-footer{
  color:var(--purchase-muted)!important;
}

html[data-theme='dark'] .purchase-module .purchase-saved-filter-grid input,
html[data-theme='dark'] .purchase-module .purchase-saved-filter-grid select,
.theme-dark .purchase-module .purchase-saved-filter-grid input,
.theme-dark .purchase-module .purchase-saved-filter-grid select{
  background:#0a1510!important;
  border-color:#345744!important;
  color:var(--purchase-text)!important;
}


/* purchase-stage-tabs-0.0.162.css */
/* Produção Só Folhas 0.0.162 — abas navegáveis P1/P2 */
.purchase-module .conference-stage-flow .conference-stage-chip.purchase-production-tab{
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}
.purchase-module .conference-stage-flow .conference-stage-chip.purchase-production-tab:hover{
  transform:translateY(-1px);
}
.purchase-module .conference-stage-flow .conference-stage-chip.purchase-production-tab.active{
  box-shadow:0 0 0 2px rgba(18,133,72,.20), inset 0 0 0 1px rgba(18,133,72,.10);
}
.purchase-module .conference-stage-flow .conference-stage-chip:disabled{
  cursor:not-allowed;
  transform:none;
}
html[data-theme='dark'] .purchase-module .conference-stage-flow .conference-stage-chip.purchase-production-tab.active,
.theme-dark .purchase-module .conference-stage-flow .conference-stage-chip.purchase-production-tab.active{
  box-shadow:0 0 0 2px rgba(46,180,101,.24), inset 0 0 0 1px rgba(46,180,101,.14);
}


/* purchase-settlement-pdf-0.0.181.css */
/* Produção Só Folhas 0.0.163 — histórico e PDF de acertos */
.purchase-settlement-pdf-history{margin-top:16px}
.purchase-settlement-pdf-history .panel-head{align-items:center}
.purchase-settlement-pdf-history .table td,.purchase-settlement-pdf-history .table th{vertical-align:middle}
.purchase-settlement-pdf-history .table td:nth-child(5),
.purchase-settlement-pdf-history .table td:nth-child(6){font-variant-numeric:tabular-nums;white-space:nowrap}
.purchase-settlement-pdf-more{padding:10px 12px;color:var(--muted,#667085);font-size:12px;border-top:1px solid var(--border,#dfe7e2)}
html[data-theme='dark'] .purchase-module .purchase-settlement-pdf-history,
.theme-dark .purchase-module .purchase-settlement-pdf-history{background:#0f1d16;border-color:#244535}
html[data-theme='dark'] .purchase-module .purchase-settlement-pdf-history .table th,
.theme-dark .purchase-module .purchase-settlement-pdf-history .table th{color:#b7d9c4}
@media(max-width:760px){
  .purchase-settlement-pdf-history .table-wrap{overflow-x:auto}
  .purchase-settlement-pdf-history table{min-width:820px}
}

.purchase-settlement-pdf-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.purchase-settlement-pdf-head-actions .btn{min-height:40px}
@media(max-width:700px){
  .purchase-settlement-pdf-history .panel-head{align-items:flex-start}
  .purchase-settlement-pdf-head-actions{width:100%;justify-content:space-between}
}


/* product-management-pro-0.0.170.css */
/* Produção Só Folhas 0.0.170
   Gestão de Produtos > Sobras: resumo profissional, informações prioritárias e melhor leitura. */

.purchase-module .stock-workspace-head h2{font-size:24px;line-height:1.2}
.purchase-module .stock-workspace-head p{font-size:14px;line-height:1.45}
.purchase-module .stock-direct-tab{min-height:42px;padding:0 20px;font-size:13px}
.purchase-module .stock-direct-search{font-size:12px}
.purchase-module .stock-direct-search input{height:44px;font-size:14px}
.purchase-module .stock-direct-toolbar>.btn{height:44px;font-size:14px}
.purchase-module .stock-list-summary{min-height:64px;padding:13px 16px}
.purchase-module .stock-list-name{font-size:15px;font-weight:850}
.purchase-module .stock-list-summary>strong{font-size:17px}
.purchase-module .stock-leftover-main-actions{padding:14px 16px 4px}
.purchase-module .stock-leftover-main-actions .btn{min-height:42px;padding:0 17px;font-size:13px}
.purchase-module .stock-leftover-composition{padding-top:8px}
.purchase-module .stock-leftover-composition .stock-detail-section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin-bottom:10px}
.purchase-module .stock-leftover-composition .stock-detail-section-head h4{margin:0;font-size:16px}
.purchase-module .stock-leftover-composition .stock-detail-section-head small{font-size:11px;font-weight:750;color:var(--muted)}
.purchase-module .stock-leftover-records{gap:10px}
.purchase-module .stock-leftover-record-pro{padding:14px 15px;border-radius:12px}
.purchase-module .stock-leftover-record-pro-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid var(--line)}
.purchase-module .stock-leftover-record-pro-head>div{display:flex;flex-direction:column;gap:3px}
.purchase-module .stock-leftover-record-pro-head span,
.purchase-module .stock-leftover-facts span{color:var(--muted);font-size:10.5px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
.purchase-module .stock-leftover-record-pro-head strong{color:var(--green-800);font-size:20px;line-height:1.15;font-weight:900}
.purchase-module .stock-leftover-status{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:999px;font-size:11px;font-weight:850;white-space:nowrap}
.purchase-module .stock-leftover-status.is-ok{background:#e8f6ed;color:#0b6b36;border:1px solid #c6e6d1}
.purchase-module .stock-leftover-status.is-pending{background:#eef4f8;color:#386579;border:1px solid #d4e2e9}
.purchase-module .stock-leftover-status.is-warning{background:#fff5df;color:#956300;border:1px solid #f2ddb0}
.purchase-module .stock-leftover-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 18px;padding:13px 0 4px}
.purchase-module .stock-leftover-facts>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.purchase-module .stock-leftover-facts b{color:var(--ink);font-size:13px;line-height:1.3;overflow-wrap:anywhere}
.purchase-module .stock-leftover-record-actions{margin-top:12px;padding-top:10px}
.purchase-module .stock-leftover-record-actions .btn{height:36px;padding:0 12px;font-size:11px}
.purchase-module .stock-leftover-record-actions .stock-remove-leftover{margin-left:auto}

html[data-theme='dark'] .purchase-module .stock-leftover-status.is-ok,
.theme-dark .purchase-module .stock-leftover-status.is-ok{background:#123523;color:#a9e6bd;border-color:#2b6845}
html[data-theme='dark'] .purchase-module .stock-leftover-status.is-pending,
.theme-dark .purchase-module .stock-leftover-status.is-pending{background:#142b36;color:#a9d8ea;border-color:#315565}
html[data-theme='dark'] .purchase-module .stock-leftover-status.is-warning,
.theme-dark .purchase-module .stock-leftover-status.is-warning{background:#3a2b12;color:#f0c66c;border-color:#6d5121}

@media(max-width:760px){
  .purchase-module .stock-leftover-facts{grid-template-columns:1fr;gap:9px}
  .purchase-module .stock-leftover-record-actions{display:grid;grid-template-columns:1fr 1fr}
  .purchase-module .stock-leftover-record-actions .stock-remove-leftover{margin-left:0;grid-column:1/-1}
}


/* conference-dark-fix-0.0.171.css */
/* Produção Só Folhas 0.0.171
   Compras > Conferência: padronização visual completa do modo escuro
   para filtros, painéis e células automáticas que ainda apareciam claras. */

html[data-theme='dark'] .purchase-module,
.theme-dark .purchase-module{
  --purchase-dark-surface:#07100c;
  --purchase-dark-surface-2:#0b1712;
  --purchase-dark-surface-3:#102019;
  --purchase-dark-surface-4:#12241c;
  --purchase-dark-border:#29483a;
  --purchase-dark-border-soft:#1d352a;
  --purchase-dark-text:#f4f8f5;
  --purchase-dark-muted:#9bb0a5;
  --purchase-dark-green:#52d17f;
}

/* Caixa de filtros ativa */
html[data-theme='dark'] .purchase-module .conference-active-filters,
.theme-dark .purchase-module .conference-active-filters{
  background:var(--purchase-dark-surface-3)!important;
  border-color:var(--purchase-dark-border)!important;
  box-shadow:none!important;
}
html[data-theme='dark'] .purchase-module .conference-filter-title strong,
.theme-dark .purchase-module .conference-filter-title strong{
  color:var(--purchase-dark-text)!important;
}
html[data-theme='dark'] .purchase-module .conference-filter-title small,
.theme-dark .purchase-module .conference-filter-title small{
  color:var(--purchase-dark-muted)!important;
}
html[data-theme='dark'] .purchase-module .conference-active-filter-grid label,
html[data-theme='dark'] .purchase-module .conference-history-filters label,
.theme-dark .purchase-module .conference-active-filter-grid label,
.theme-dark .purchase-module .conference-history-filters label{
  color:#b9cabe!important;
}
html[data-theme='dark'] .purchase-module .conference-active-filter-grid input,
html[data-theme='dark'] .purchase-module .conference-active-filter-grid select,
html[data-theme='dark'] .purchase-module .conference-history-filters input,
html[data-theme='dark'] .purchase-module .conference-history-filters select,
.theme-dark .purchase-module .conference-active-filter-grid input,
.theme-dark .purchase-module .conference-active-filter-grid select,
.theme-dark .purchase-module .conference-history-filters input,
.theme-dark .purchase-module .conference-history-filters select{
  background:var(--purchase-dark-surface-2)!important;
  color:var(--purchase-dark-text)!important;
  border-color:#345744!important;
}
html[data-theme='dark'] .purchase-module .conference-divergence-toggle,
.theme-dark .purchase-module .conference-divergence-toggle{
  background:var(--purchase-dark-surface-2)!important;
  border-color:#345744!important;
}
html[data-theme='dark'] .purchase-module .conference-divergence-toggle span,
.theme-dark .purchase-module .conference-divergence-toggle span{
  color:var(--purchase-dark-text)!important;
}
html[data-theme='dark'] .purchase-module .conference-filter-empty,
.theme-dark .purchase-module .conference-filter-empty{
  background:var(--purchase-dark-surface-2)!important;
  border-color:var(--purchase-dark-border)!important;
  color:var(--purchase-dark-muted)!important;
}

/* Painéis da conferência */
html[data-theme='dark'] .purchase-module .conference-production-content,
html[data-theme='dark'] .purchase-module .conference-production-panel,
html[data-theme='dark'] .purchase-module .conference-control-group,
.theme-dark .purchase-module .conference-production-content,
.theme-dark .purchase-module .conference-production-panel,
.theme-dark .purchase-module .conference-control-group{
  background:var(--purchase-dark-surface)!important;
  border-color:var(--purchase-dark-border)!important;
}
html[data-theme='dark'] .purchase-module .conference-production-heading,
html[data-theme='dark'] .purchase-module .conference-control-heading,
.theme-dark .purchase-module .conference-production-heading,
.theme-dark .purchase-module .conference-control-heading{
  background:var(--purchase-dark-surface-3)!important;
  border-color:var(--purchase-dark-border)!important;
}
html[data-theme='dark'] .purchase-module .conference-control-heading small,
html[data-theme='dark'] .purchase-module .conference-production-heading small,
.theme-dark .purchase-module .conference-control-heading small,
.theme-dark .purchase-module .conference-production-heading small{
  color:var(--purchase-dark-muted)!important;
}
html[data-theme='dark'] .purchase-module .conference-control-group .conference-table-scroll,
.theme-dark .purchase-module .conference-control-group .conference-table-scroll{
  background:var(--purchase-dark-surface)!important;
}

/* Tabela operacional e células que ainda ficavam claras */
html[data-theme='dark'] .purchase-module .conference-operation-table,
.theme-dark .purchase-module .conference-operation-table{
  background:var(--purchase-dark-surface)!important;
}
html[data-theme='dark'] .purchase-module .conference-operation-table thead th,
.theme-dark .purchase-module .conference-operation-table thead th{
  background:#0d1b15!important;
  border-color:var(--purchase-dark-border)!important;
}
html[data-theme='dark'] .purchase-module .conference-operation-table tbody td,
.theme-dark .purchase-module .conference-operation-table tbody td{
  background:var(--purchase-dark-surface-2)!important;
  border-bottom-color:#284638!important;
}
html[data-theme='dark'] .purchase-module .conference-operation-table tbody tr:hover td,
html[data-theme='dark'] .purchase-module .conference-operation-table tbody tr:hover td:nth-child(1),
html[data-theme='dark'] .purchase-module .conference-operation-table tbody tr:hover td:nth-child(2),
.theme-dark .purchase-module .conference-operation-table tbody tr:hover td,
.theme-dark .purchase-module .conference-operation-table tbody tr:hover td:nth-child(1),
.theme-dark .purchase-module .conference-operation-table tbody tr:hover td:nth-child(2){
  background:var(--purchase-dark-surface-3)!important;
}

/* Corrige blocos/brancos automáticos */
html[data-theme='dark'] .purchase-module .conference-auto-cell,
html[data-theme='dark'] .purchase-module .conference-auto-value,
html[data-theme='dark'] .purchase-module .purchase-diff-preview,
.theme-dark .purchase-module .conference-auto-cell,
.theme-dark .purchase-module .conference-auto-value,
.theme-dark .purchase-module .purchase-diff-preview{
  background:var(--purchase-dark-surface-4)!important;
  color:#d7e6dd!important;
  border-color:#345744!important;
  box-shadow:none!important;
}
html[data-theme='dark'] .purchase-module .purchase-diff-preview.is-negative,
.theme-dark .purchase-module .purchase-diff-preview.is-negative{
  color:#ff9d9d!important;
  background:#331919!important;
}
html[data-theme='dark'] .purchase-module .conference-production-output-cell,
html[data-theme='dark'] .purchase-module .conference-yield-cell,
.theme-dark .purchase-module .conference-production-output-cell,
.theme-dark .purchase-module .conference-yield-cell{
  background:var(--purchase-dark-surface-2)!important;
}
html[data-theme='dark'] .purchase-module .conference-production-output-cell b,
html[data-theme='dark'] .purchase-module .conference-yield-cell b,
html[data-theme='dark'] .purchase-module .conference-table-p1 tbody td:nth-child(10) .conference-auto-value,
html[data-theme='dark'] .purchase-module .conference-table-p1 tbody td:nth-child(11) .conference-auto-value,
html[data-theme='dark'] .purchase-module .conference-table-p2 tbody td:nth-child(9) .conference-auto-value,
html[data-theme='dark'] .purchase-module .conference-table-p2 tbody td:nth-child(10) .conference-auto-value,
.theme-dark .purchase-module .conference-production-output-cell b,
.theme-dark .purchase-module .conference-yield-cell b,
.theme-dark .purchase-module .conference-table-p1 tbody td:nth-child(10) .conference-auto-value,
.theme-dark .purchase-module .conference-table-p1 tbody td:nth-child(11) .conference-auto-value,
.theme-dark .purchase-module .conference-table-p2 tbody td:nth-child(9) .conference-auto-value,
.theme-dark .purchase-module .conference-table-p2 tbody td:nth-child(10) .conference-auto-value{
  color:var(--purchase-dark-green)!important;
}

/* Resumo final */
html[data-theme='dark'] .purchase-module .conference-lot-summary,
html[data-theme='dark'] .purchase-module .conference-summary-head,
html[data-theme='dark'] .purchase-module .conference-summary-grid>div,
.theme-dark .purchase-module .conference-lot-summary,
.theme-dark .purchase-module .conference-summary-head,
.theme-dark .purchase-module .conference-summary-grid>div{
  background:var(--purchase-dark-surface-3)!important;
  border-color:var(--purchase-dark-border)!important;
}
html[data-theme='dark'] .purchase-module .conference-summary-grid>div,
.theme-dark .purchase-module .conference-summary-grid>div{
  background:var(--purchase-dark-surface-2)!important;
}


/* box-control-layout-fix-0.0.173.css */
/* Produção Só Folhas 0.0.173
   Controle de Caixas > Separação
   Remove a barra lateral dos cards de separador e padroniza alinhamento/espacamento. */

.box-separator-progress{
  display:grid !important;
  grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)) !important;
  gap:10px !important;
  overflow:visible !important;
  padding:2px 0 12px !important;
  scrollbar-width:none !important;
}

.box-separator-progress::-webkit-scrollbar{
  display:none !important;
}

.box-sep-status{
  min-width:0 !important;
  width:100% !important;
  min-height:58px !important;
  padding:11px 14px !important;
  justify-content:center !important;
  align-items:flex-start !important;
  gap:4px !important;
  box-sizing:border-box !important;
}

.box-sep-status span{
  display:block !important;
  width:100% !important;
  font-size:13px !important;
  line-height:1.2 !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}

.box-sep-status b{
  display:block !important;
  width:100% !important;
  font-size:12px !important;
  line-height:1.25 !important;
}

/* Mantem a leitura limpa quando houver muitos separadores */
@media (max-width: 1180px){
  .box-separator-progress{
    grid-template-columns:repeat(auto-fit, minmax(155px, 1fr)) !important;
  }
}

@media (max-width: 820px){
  .box-separator-progress{
    grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px){
  .box-separator-progress{
    grid-template-columns:1fr !important;
  }
}


/* purchase-period-table-fix-0.0.207.css */
/* Produção Só Folhas 0.0.207
   Compras > Histórico e Análises > Compras do período
   Tabela compacta sem rolagem horizontal no desktop. */

.purchase-period-card{
  overflow:hidden;
}

.purchase-period-card .table-wrap{
  width:100% !important;
  max-width:100% !important;
  overflow-x:hidden !important;
  overflow-y:visible !important;
}

.purchase-period-table{
  width:100% !important;
  min-width:0 !important;
  table-layout:fixed !important;
}

.purchase-period-table th,
.purchase-period-table td{
  vertical-align:middle !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}

.purchase-period-table th:nth-child(1),
.purchase-period-table td:nth-child(1){width:15% !important}

.purchase-period-table th:nth-child(2),
.purchase-period-table td:nth-child(2){width:18% !important}

.purchase-period-table th:nth-child(3),
.purchase-period-table td:nth-child(3){width:11% !important}

.purchase-period-table th:nth-child(4),
.purchase-period-table td:nth-child(4){width:11% !important}

.purchase-period-table th:nth-child(5),
.purchase-period-table td:nth-child(5){width:12% !important}

.purchase-period-table th:nth-child(6),
.purchase-period-table td:nth-child(6){width:15% !important}

.purchase-period-table th:nth-child(7),
.purchase-period-table td:nth-child(7){width:18% !important}

.purchase-period-table td:nth-child(1) b,
.purchase-period-table td:nth-child(1) .block-muted,
.purchase-period-table td:nth-child(2),
.purchase-period-table td:nth-child(3),
.purchase-period-table td:nth-child(4),
.purchase-period-table td:nth-child(5),
.purchase-period-table td:nth-child(6){
  white-space:nowrap !important;
}

.purchase-period-table td:nth-child(1) b{
  display:block !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

.purchase-period-table td:nth-child(1) .block-muted{
  display:block !important;
  margin-top:5px !important;
}

.purchase-period-table td:nth-child(6){
  overflow:hidden !important;
  text-align:center !important;
}

.purchase-period-table .tag{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  min-height:34px !important;
  padding:6px 8px !important;
  box-sizing:border-box !important;
  white-space:normal !important;
  text-align:center !important;
  line-height:1.1 !important;
  overflow:hidden !important;
  overflow-wrap:anywhere !important;
}

.purchase-period-table .row-actions{
  display:flex !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:6px !important;
  min-width:0 !important;
  width:100% !important;
}

.purchase-period-table .row-actions .btn{
  flex:0 1 auto !important;
  min-width:0 !important;
  min-height:34px !important;
  padding:0 9px !important;
  font-size:11px !important;
  line-height:1 !important;
  white-space:nowrap !important;
}

.purchase-period-table .purchase-show-timeline{min-width:68px !important}
.purchase-period-table .purchase-request-reopen-pick{min-width:80px !important}
.purchase-period-table .purchase-delete-purchase{min-width:54px !important}

@media(max-width:1100px){
  .purchase-period-table th,
  .purchase-period-table td{
    padding-left:7px !important;
    padding-right:7px !important;
    font-size:11px !important;
  }
  .purchase-period-table .row-actions{
    gap:4px !important;
  }
  .purchase-period-table .row-actions .btn{
    padding:0 7px !important;
    font-size:10.5px !important;
  }
  .purchase-period-table .tag{
    font-size:10.5px !important;
    padding:6px 5px !important;
  }
}

/* Em telas pequenas, preservar usabilidade sem esmagar a tabela. */
@media(max-width:820px){
  .purchase-period-card .table-wrap{
    overflow-x:auto !important;
  }
  .purchase-period-table{
    min-width:920px !important;
  }
}


/* purchase-foliage-collection-0.0.204.css */
/* Produção Só Folhas 0.0.204
   Compras > Folhagem > Lista de Coleta
   Prévia operacional agrupada por motorista, sem misturar coletas. */

.foliage-collection-preview{
  padding:18px!important;
}
.foliage-collection-sheet{
  background:#fff;
  border:1px solid #d8e4dc;
  border-radius:16px;
  padding:22px;
  color:#172019;
}
.foliage-collection-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding-bottom:16px;
  margin-bottom:18px;
  border-bottom:2px solid #177043;
}
.foliage-collection-top>div:first-child>span{
  display:block;
  margin-bottom:4px;
  color:#177043;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}
.foliage-collection-top h3{
  margin:0;
  font-size:28px;
  line-height:1.05;
  color:#0b5e35;
}
.foliage-collection-top p{
  margin:6px 0 0;
  color:#66756b;
  font-size:13px;
}
.foliage-collection-meta{
  display:grid;
  grid-template-columns:repeat(3,minmax(115px,1fr));
  gap:10px;
}
.foliage-collection-meta>div{
  min-width:0;
  padding:9px 11px;
  border:1px solid #dce8e0;
  border-radius:10px;
  background:#f7fbf8;
}
.foliage-collection-meta span{
  display:block;
  color:#7a887f;
  font-size:9px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.foliage-collection-meta b{
  display:block;
  margin-top:4px;
  color:#173c29;
  font-size:12px;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.foliage-collection-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  align-items:stretch;
}
.foliage-collection-supplier{
  min-width:0;
  overflow:hidden;
  border:1px solid #cfded4;
  border-radius:12px;
  background:#fff;
}
.foliage-collection-supplier>header{
  padding:10px 12px;
  background:#166c40;
  color:#fff;
  font-size:14px;
  font-weight:900;
  text-align:center;
  letter-spacing:.02em;
  overflow-wrap:anywhere;
}
.foliage-collection-driver{
  display:flex;
  align-items:baseline;
  gap:6px;
  padding:8px 10px;
  background:#eef6f1;
  border-bottom:1px solid #dce7df;
  font-size:11px;
}
.foliage-collection-driver span{
  color:#68776d;
  font-weight:700;
}
.foliage-collection-driver b{
  color:#20372a;
  overflow-wrap:anywhere;
}
.foliage-collection-items{
  padding:3px 9px 8px;
}
.foliage-collection-item{
  display:grid;
  grid-template-columns:minmax(64px,auto) minmax(0,1fr);
  gap:9px;
  align-items:center;
  min-height:35px;
  padding:7px 0;
  border-bottom:1px solid #e5ece7;
}
.foliage-collection-item:last-child{border-bottom:0}
.foliage-collection-item strong{
  color:#10271a;
  font-size:12px;
  text-align:right;
  white-space:nowrap;
}
.foliage-collection-item span{
  color:#1b2a21;
  font-size:12px;
  font-weight:750;
  overflow-wrap:anywhere;
}
.foliage-collection-actions{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid #e0e8e3;
}

html[data-theme='dark'] .purchase-module .foliage-collection-sheet,
.theme-dark .purchase-module .foliage-collection-sheet{
  background:#0b1712;
  border-color:#29483a;
  color:#f2f7f4;
}
html[data-theme='dark'] .purchase-module .foliage-collection-top,
.theme-dark .purchase-module .foliage-collection-top{border-bottom-color:#2d9b5e}
html[data-theme='dark'] .purchase-module .foliage-collection-top h3,
.theme-dark .purchase-module .foliage-collection-top h3{color:#dff4e6}
html[data-theme='dark'] .purchase-module .foliage-collection-top p,
.theme-dark .purchase-module .foliage-collection-top p{color:#9fb2a6}
html[data-theme='dark'] .purchase-module .foliage-collection-meta>div,
.theme-dark .purchase-module .foliage-collection-meta>div{
  background:#102019;
  border-color:#29483a;
}
html[data-theme='dark'] .purchase-module .foliage-collection-meta b,
.theme-dark .purchase-module .foliage-collection-meta b{color:#eef7f1}
html[data-theme='dark'] .purchase-module .foliage-collection-supplier,
.theme-dark .purchase-module .foliage-collection-supplier{
  background:#0d1b15;
  border-color:#29483a;
}
html[data-theme='dark'] .purchase-module .foliage-collection-driver,
.theme-dark .purchase-module .foliage-collection-driver{
  background:#12251c;
  border-bottom-color:#29483a;
}
html[data-theme='dark'] .purchase-module .foliage-collection-driver b,
.theme-dark .purchase-module .foliage-collection-driver b,
html[data-theme='dark'] .purchase-module .foliage-collection-item strong,
html[data-theme='dark'] .purchase-module .foliage-collection-item span,
.theme-dark .purchase-module .foliage-collection-item strong,
.theme-dark .purchase-module .foliage-collection-item span{color:#eef7f1}
html[data-theme='dark'] .purchase-module .foliage-collection-item,
.theme-dark .purchase-module .foliage-collection-item{border-bottom-color:#223a2f}

@media(max-width:1250px){
  .foliage-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:920px){
  .foliage-collection-top{flex-direction:column}
  .foliage-collection-meta{width:100%}
  .foliage-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .foliage-collection-preview{padding:8px!important}
  .foliage-collection-sheet{padding:14px}
  .foliage-collection-meta{grid-template-columns:1fr}
  .foliage-collection-grid{grid-template-columns:1fr}
  .foliage-collection-top h3{font-size:23px}
}


/* 0.0.204 — agrupamento por motorista */
.foliage-driver-layout{
  display:grid;
  gap:14px;
  align-items:start;
}
.foliage-driver-layout.drivers-1{grid-template-columns:1fr}
.foliage-driver-layout.drivers-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.foliage-driver-layout.drivers-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.foliage-driver-layout.drivers-4{grid-template-columns:repeat(4,minmax(0,1fr))}

.foliage-driver-lane{
  min-width:0;
  padding:0 10px 12px;
  border:1px solid #d5e3da;
  border-radius:14px;
  background:#f8fcf9;
}
.foliage-driver-layout.drivers-2>.foliage-driver-lane:first-child{
  border-right:3px solid #17834b;
}
.foliage-driver-layout.drivers-2>.foliage-driver-lane:last-child{
  border-left:3px solid #17834b;
}
.foliage-driver-title{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:8px;
  margin:0 -10px 10px;
  padding:9px 11px;
  border-radius:13px 13px 0 0;
  background:#0f6539;
  color:#fff;
}
.foliage-driver-title span{
  font-size:9px;
  font-weight:850;
  letter-spacing:.07em;
}
.foliage-driver-title strong{
  font-size:14px;
  font-weight:900;
  overflow-wrap:anywhere;
}
.foliage-driver-title.warning{background:#9a6d16}
.foliage-driver-cards{
  display:grid;
  gap:10px;
  align-items:start;
}
.foliage-driver-layout.drivers-1 .foliage-driver-cards{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.foliage-driver-layout.drivers-2 .foliage-driver-cards{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.foliage-driver-layout.drivers-3 .foliage-driver-cards,
.foliage-driver-layout.drivers-4 .foliage-driver-cards{
  grid-template-columns:1fr;
}
.foliage-driver-unassigned{
  margin-top:14px;
  padding:0 10px 12px;
  border:1px solid #e2c57d;
  border-radius:14px;
  background:#fffaf0;
}
.foliage-driver-unassigned .foliage-driver-cards{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

html[data-theme='dark'] .purchase-module .foliage-driver-lane,
.theme-dark .purchase-module .foliage-driver-lane{
  background:#0d1b15;
  border-color:#29483a;
}
html[data-theme='dark'] .purchase-module .foliage-driver-unassigned,
.theme-dark .purchase-module .foliage-driver-unassigned{
  background:#241d0e;
  border-color:#725a25;
}

@media(max-width:1250px){
  .foliage-driver-layout.drivers-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .foliage-driver-layout.drivers-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:920px){
  .foliage-driver-layout,
  .foliage-driver-layout.drivers-1,
  .foliage-driver-layout.drivers-2,
  .foliage-driver-layout.drivers-3,
  .foliage-driver-layout.drivers-4{grid-template-columns:1fr}
  .foliage-driver-layout.drivers-1 .foliage-driver-cards,
  .foliage-driver-layout.drivers-2 .foliage-driver-cards,
  .foliage-driver-unassigned .foliage-driver-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .foliage-driver-layout.drivers-2>.foliage-driver-lane:first-child,
  .foliage-driver-layout.drivers-2>.foliage-driver-lane:last-child{border-left:1px solid #d5e3da;border-right:1px solid #d5e3da}
}
@media(max-width:620px){
  .foliage-driver-layout .foliage-driver-cards,
  .foliage-driver-layout.drivers-1 .foliage-driver-cards,
  .foliage-driver-layout.drivers-2 .foliage-driver-cards,
  .foliage-driver-unassigned .foliage-driver-cards{grid-template-columns:1fr}
}


/* purchase-stock-entry-layout-0.0.185.css */
/* Produção Só Folhas 0.0.185
   Gestão de Produtos > Estoque > Entradas por data
   Remove rolagem horizontal e reorganiza o conteúdo dentro do card. */

.stock-desktop-entries{
  min-width:0 !important;
  overflow:hidden !important;
}

.stock-desktop-entries .stock-entry-list{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  padding-right:2px !important;
  box-sizing:border-box !important;
}

.stock-desktop-entries .stock-entry-row{
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  box-sizing:border-box !important;
  display:grid !important;
  grid-template-columns:minmax(0,1.15fr) minmax(72px,.8fr) minmax(72px,.8fr) !important;
  gap:8px 10px !important;
  align-items:center !important;
  overflow:hidden !important;
}

.stock-desktop-entries .stock-entry-row > div{
  min-width:0 !important;
}

.stock-desktop-entries .stock-entry-row > div:first-child b,
.stock-desktop-entries .stock-entry-row > div:first-child small,
.stock-desktop-entries .stock-entry-row > div:not(:first-child) span,
.stock-desktop-entries .stock-entry-row > div:not(:first-child) strong{
  white-space:normal !important;
  overflow-wrap:anywhere !important;
}

.stock-desktop-entries .stock-entry-zero{
  grid-column:1 / 2 !important;
  justify-self:start !important;
  max-width:100% !important;
}

.stock-desktop-entries .stock-entry-actions{
  grid-column:1 / -1 !important;
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  min-width:0 !important;
}

.stock-desktop-entries .stock-entry-actions .btn{
  max-width:100% !important;
  white-space:nowrap !important;
}

@media (max-width:1180px) and (min-width:1024px){
  .stock-desktop-entries .stock-entry-row{
    grid-template-columns:minmax(0,1fr) minmax(70px,.7fr) minmax(70px,.7fr) !important;
  }
}


/* purchase-bulk-catalog-0.0.188.css */
/* Produção Só Folhas 0.0.188
   Nova Compra: busca + seletores gerais perfeitamente alinhados. */

.purchase-proto-top-controls{
  display:grid;
  grid-template-columns:minmax(380px,1fr) minmax(160px,190px) minmax(190px,230px);
  gap:12px;
  align-items:end;
  width:100%;
  margin:8px 0 12px;
}

.purchase-proto-top-controls .purchase-proto-search{
  margin:0!important;
  max-width:none!important;
  min-width:0;
}

.purchase-proto-top-controls .purchase-proto-search label,
.purchase-proto-top-controls .purchase-proto-bulk-selectors label{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
  margin:0;
}

.purchase-proto-top-controls .purchase-proto-search label>span,
.purchase-proto-top-controls .purchase-proto-bulk-selectors label>small{
  display:block;
  min-height:14px;
  margin:0;
  color:var(--muted,#607066);
  font-size:10px!important;
  line-height:14px!important;
  font-weight:850!important;
  text-transform:uppercase;
  letter-spacing:.025em;
  white-space:nowrap;
}

.purchase-proto-top-controls .purchase-proto-search-field,
.purchase-proto-top-controls .purchase-proto-bulk-selectors select{
  width:100%!important;
  height:48px!important;
  min-height:48px!important;
  max-height:48px!important;
  box-sizing:border-box!important;
  border:1px solid var(--line,var(--border,#dce6df))!important;
  border-radius:12px!important;
  background:var(--panel,var(--input-bg,#fff))!important;
}

.purchase-proto-top-controls .purchase-proto-search-field{
  padding:0 14px!important;
  display:flex!important;
  align-items:center!important;
}

.purchase-proto-top-controls .purchase-proto-search-field>input{
  height:46px!important;
  min-height:46px!important;
  font-size:13px!important;
}

.purchase-proto-top-controls .purchase-proto-bulk-selectors{
  display:contents;
}

.purchase-proto-top-controls .purchase-proto-bulk-selectors select{
  min-width:0!important;
  padding:0 12px!important;
  color:var(--green-800);
  font-size:12px!important;
  font-weight:850!important;
  outline:none;
}

.purchase-proto-top-controls .purchase-proto-search-field:focus-within,
.purchase-proto-top-controls .purchase-proto-bulk-selectors select:focus{
  border-color:#7cc087!important;
  box-shadow:0 0 0 3px rgba(55,166,91,.10)!important;
}

:root[data-theme="dark"] .purchase-proto-top-controls .purchase-proto-search-field,
:root[data-theme="dark"] .purchase-proto-top-controls .purchase-proto-bulk-selectors select,
.theme-dark .purchase-proto-top-controls .purchase-proto-search-field,
.theme-dark .purchase-proto-top-controls .purchase-proto-bulk-selectors select{
  background:#0b1712!important;
  border-color:#29483a!important;
  color:#d8f5e1!important;
}

@media(max-width:980px){
  .purchase-proto-top-controls{grid-template-columns:1fr 1fr;}
  .purchase-proto-top-controls .purchase-proto-search{grid-column:1/-1;}
}

@media(max-width:560px){
  .purchase-proto-top-controls{grid-template-columns:1fr;}
  .purchase-proto-top-controls .purchase-proto-search{grid-column:auto;}
}


/* box-control-balance-layout-0.0.198.css */
/* Produção Só Folhas 0.0.198 — filtros do saldo patrimonial proporcionais e alinhados */

.box2-unified-balance{overflow:hidden}
.box2-balance-head{margin-bottom:0}

.box2-balance-filter-card{
  margin-top:14px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:color-mix(in srgb,var(--panel) 97%,var(--green-100) 3%);
  overflow:hidden;
}

/* Desktop: todos os filtros + ações ficam na MESMA linha. */
.box2-balance-filter-row{
  display:grid;
  grid-template-columns:
    minmax(0,1.70fr)
    minmax(0,.75fr)
    minmax(0,1.15fr)
    minmax(0,1.20fr)
    minmax(0,.90fr)
    minmax(0,.72fr)
    minmax(0,.62fr);
  gap:10px;
  align-items:end;
  width:100%;
  min-width:0;
}

.box2-balance-field,
.box2-balance-action-slot{
  min-width:0;
  width:100%;
}

.box2-balance-field{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:7px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}

/* Todos os títulos usam a mesma linha-base, altura e padrão tipográfico. */
.box2-balance-field>span,
.box2-balance-action-slot::before{
  display:block;
  min-height:16px;
  height:16px;
  line-height:16px;
  box-sizing:border-box;
  white-space:nowrap;
}

.box2-balance-field>span{
  text-transform:uppercase;
  letter-spacing:.025em;
}

.box2-balance-action-slot::before{
  content:"";
}

.box2-balance-field input,
.box2-balance-field select,
.box2-balance-action-slot .btn{
  width:100%;
  min-width:0;
  max-width:100%;
  min-height:48px;
  height:48px;
  margin:0;
  box-sizing:border-box;
}

.box2-balance-field input,
.box2-balance-field select{
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  color:var(--ink);
  padding:10px 12px;
  font:inherit;
  font-size:14px;
  font-weight:700;
  outline:none;
  transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}

.box2-balance-field select{
  appearance:auto;
  text-overflow:ellipsis;
}

.box2-balance-field input::placeholder{
  color:var(--muted);
  opacity:.82;
  font-weight:600;
}

.box2-balance-field input:focus,
.box2-balance-field select:focus{
  border-color:var(--green);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 12%,transparent);
}

.box2-balance-period-native{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:8px;
  min-width:0;
  width:100%;
}

/* O componente global transforma as duas datas em um único campo Período. */
.box2-balance-period-native>.global-period-single{
  grid-column:1/-1;
  width:100%;
  min-width:0;
}

.box2-balance-period-native .global-period-control{
  width:100%;
  min-width:0;
}

.box2-balance-period-native .global-period-display{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:48px!important;
  min-height:48px!important;
  margin:0!important;
  padding-left:12px!important;
  padding-right:42px!important;
  font-size:14px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  box-sizing:border-box!important;
}

.box2-balance-action-slot{
  display:flex;
  align-items:flex-end;
}

.box2-balance-action-slot .btn{
  padding:0 12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:14px;
}

/* Mantém uma linha em notebooks/desktop comuns, apenas comprimindo proporcionalmente. */
@media(max-width:1320px) and (min-width:1081px){
  .box2-balance-filter-row{
    grid-template-columns:
      minmax(0,1.65fr)
      minmax(0,.72fr)
      minmax(0,1.10fr)
      minmax(0,1.15fr)
      minmax(0,.85fr)
      minmax(0,.68fr)
      minmax(0,.58fr);
    gap:8px;
  }

  .box2-balance-field input,
  .box2-balance-field select,
  .box2-balance-action-slot .btn,
  .box2-balance-period-native .global-period-display{
    font-size:13px!important;
  }
}

/* Tablet: só aqui deixa de ser uma linha única. */
@media(max-width:1080px){
  .box2-balance-filter-row{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
  }

  .box2-balance-period-field,
  .box2-balance-driver-field{
    grid-column:span 2;
  }
}

@media(max-width:760px){
  .box2-balance-filter-row{
    grid-template-columns:1fr 1fr;
  }

  .box2-balance-period-field,
  .box2-balance-driver-field{
    grid-column:1/-1;
  }

  .box2-unified-balance-table .table-wrap{
    overflow-x:auto;
  }

  .box2-unified-balance-table .table{
    min-width:900px;
  }
}

@media(max-width:520px){
  .box2-balance-filter-row{
    grid-template-columns:1fr;
  }

  .box2-balance-period-field,
  .box2-balance-driver-field{
    grid-column:auto;
  }

  .box2-balance-period-native{
    grid-template-columns:1fr;
  }
}


/* box-control-promoters-0.0.228.css */
/* Produção Só Folhas 0.0.203 — Promotores em conferência rápida */

.box2-promoter-fast-panel{overflow:hidden}

.box2-promoter-fast-top{
  display:grid;
  grid-template-columns:minmax(220px,.8fr) minmax(340px,1.35fr) minmax(260px,1fr) minmax(170px,.62fr) auto;
  gap:12px;
  align-items:end;
  margin:14px 0 16px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--soft);
}

.box2-promoter-fast-top label{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}

.box2-promoter-fast-top input,
.box2-promoter-fast-top select{
  width:100%;
  min-width:0;
  height:46px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--panel);
  color:var(--ink);
  padding:9px 12px;
  font:inherit;
  font-size:13px;
  font-weight:700;
  box-sizing:border-box;
}

.box2-promoter-fast-top .btn{height:46px;white-space:nowrap}

.box2-promoter-fast-table{
  width:100%;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:15px;
}

.box2-promoter-fast-table .table{
  width:100%;
  min-width:980px;
  margin:0;
  table-layout:fixed;
}

.box2-promoter-fast-table .table th{
  background:color-mix(in srgb,var(--panel) 94%,var(--green-100) 6%);
  color:var(--ink);
  font-size:12px;
  font-weight:900;
  text-transform:none;
  padding:14px 16px;
}

.box2-promoter-fast-table .table th:nth-child(1){width:22%}
.box2-promoter-fast-table .table th:nth-child(2){width:13%}
.box2-promoter-fast-table .table th:nth-child(3){width:18%}
.box2-promoter-fast-table .table th:nth-child(4){width:31%}
.box2-promoter-fast-table .table th:nth-child(5){width:16%}

.box2-promoter-fast-table .table td{
  padding:15px 16px;
  vertical-align:middle;
}

.box2-promoter-fast-table td>b,
.box2-promoter-fast-table td>strong,
.box2-promoter-fast-table td small{
  display:block;
}

.box2-promoter-fast-table td>b{font-size:14px;color:var(--ink)}
.box2-promoter-fast-table td>strong{font-size:16px;color:var(--ink)}
.box2-promoter-fast-table td small{margin-top:4px;color:var(--muted);font-size:10px;line-height:1.25}

.box2-prom-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  min-width:0;
}

.box2-prom-actions .btn{
  min-height:44px;
  height:44px;
  padding:0 12px;
  border-radius:10px;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}

.box2-prom-divergence{
  border:1px solid #e76b34 !important;
  background:transparent !important;
  color:#c84b16 !important;
  box-shadow:none !important;
}

.box2-prom-divergence:hover{
  background:color-mix(in srgb,#e76b34 8%,transparent) !important;
}

.box2-stock-entry{display:flex;flex-direction:column;gap:5px}

.box2-stock-input-wrap{
  display:flex;
  align-items:center;
  gap:7px;
  width:100%;
  min-width:0;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel);
  padding:0 10px;
  box-sizing:border-box;
}

.box2-stock-input-wrap:focus-within{
  border-color:var(--green);
  box-shadow:0 0 0 3px color-mix(in srgb,var(--green) 10%,transparent);
}

.box2-stock-input-wrap input{
  width:100%;
  min-width:0;
  height:42px;
  border:0;
  outline:0;
  background:transparent;
  color:var(--ink);
  font-size:16px;
  font-weight:900;
  text-align:center;
}

.box2-stock-input-wrap span{color:var(--muted);font-size:11px;font-weight:900}

.box2-stock-result{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:9px 11px;
  border-radius:10px;
  background:color-mix(in srgb,var(--green-100) 58%,var(--panel));
  text-align:center;
}

.box2-stock-result strong{color:var(--green);font-size:17px}
.box2-stock-result small{margin:0!important}

.box2-prom-complete{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.box2-prom-complete small{margin:0!important}
.box2-prom-link{border:0;background:none;color:var(--green);font-size:11px;font-weight:800;cursor:pointer;padding:0}
.box2-prom-row-done{background:color-mix(in srgb,var(--green-100) 18%,transparent)}
.box2-prom-row-diff{background:color-mix(in srgb,#f97316 6%,transparent)}

.box2-promoter-fast-note{
  margin-top:12px;
  padding:10px 12px;
  border-radius:11px;
  background:var(--soft);
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}
.box2-promoter-fast-note b{color:var(--ink)}

.box2-promoter-modal-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:4px;
}
.box2-promoter-modal-summary>div{border:1px solid var(--line);border-radius:12px;background:var(--soft);padding:10px 12px;min-width:0}
.box2-promoter-modal-summary span{display:block;color:var(--muted);font-size:10px;font-weight:900;text-transform:uppercase;margin-bottom:4px}
.box2-promoter-modal-summary b{display:block;color:var(--ink);font-size:14px;overflow-wrap:anywhere}

.box2-promoter-stock-hint{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  background:var(--soft);
  font-size:12px;
  color:var(--muted);
}
.box2-promoter-stock-hint span{display:flex;flex-direction:column;gap:3px}
.box2-promoter-stock-hint b{color:var(--ink)}
.box2-promoter-stock-hint .is-diff b{color:#b42318}

.box2-promoter-return-locked{border:1px solid #f3d19c;background:#fff8e8;color:#7a4b00;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:3px}
[data-theme="dark"] .box2-promoter-return-locked,.theme-dark .box2-promoter-return-locked{background:#2b210d;border-color:#6c5323;color:#f3d19c}

@media(max-width:1180px){
  .box2-promoter-fast-top{grid-template-columns:1fr 1fr 1fr}
  .box2-promoter-name{grid-column:span 2}
}

@media(max-width:720px){
  .box2-promoter-fast-top{grid-template-columns:1fr}
  .box2-promoter-name{grid-column:auto}
  .box2-promoter-modal-summary,.box2-promoter-stock-hint{grid-template-columns:1fr}
}

/* 0.0.228 — recebimento e estoque desacoplados; fechamento explícito da etapa */
.box2-stock-input-wrap input::placeholder{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
}
.box2-stock-result.is-empty{
  background:var(--soft);
}
.box2-stock-result.is-empty strong{
  color:var(--muted);
  font-size:13px;
}
.box2-promoter-finalize{
  margin-top:14px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:color-mix(in srgb,var(--panel) 88%,var(--green-100) 12%);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.box2-promoter-finalize>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.box2-promoter-finalize b{
  color:var(--ink);
  font-size:13px;
}
.box2-promoter-finalize small{
  color:var(--muted);
  font-size:10px;
  line-height:1.35;
}
.box2-promoter-finalize .btn{
  min-height:44px;
  white-space:nowrap;
}
.box2-promoter-finalize .btn:disabled{
  opacity:.48;
  cursor:not-allowed;
  box-shadow:none;
}
.box2-promoter-finalize.is-finalized{
  border-color:color-mix(in srgb,var(--green) 28%,var(--line));
  background:color-mix(in srgb,var(--green-100) 45%,var(--panel));
}
.box2-prom-row-done .box2-stock-entry{
  opacity:1;
}
@media(max-width:720px){
  .box2-promoter-finalize{
    align-items:stretch;
    flex-direction:column;
  }
  .box2-promoter-finalize .btn{
    width:100%;
  }
}


/* box-control-traceability-0.0.200.css */

/* Produção Só Folhas 0.0.200 — rastreabilidade unificada */

.box2-trace-filters{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(160px,.75fr) minmax(220px,1fr) minmax(220px,1fr) minmax(180px,.8fr) auto;
  gap:10px;
  align-items:end;
  padding:12px;
  margin:12px 0;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--soft);
}

.box2-trace-filters label{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}

.box2-trace-filters input,
.box2-trace-filters select{
  width:100%;
  min-width:0;
  min-height:44px;
  border:1px solid var(--line);
  border-radius:11px;
  background:var(--panel);
  color:var(--ink);
  padding:9px 11px;
  font:inherit;
  font-size:13px;
}

.box2-trace-filters .btn{
  min-height:44px;
  white-space:nowrap;
}

.box2-trace-table{
  max-height:620px;
  overflow:auto;
}

.box2-trace-table .table{
  min-width:1180px;
}

.box2-trace-table .table thead{
  position:sticky;
  top:0;
  z-index:2;
  background:var(--panel);
}

@media(max-width:1100px){
  .box2-trace-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:700px){
  .box2-trace-filters{grid-template-columns:1fr}
}


/* collaborator-history-0.0.209.css */

/* Produção Só Folhas 0.0.209
   Histórico do colaborador: presença, ponto e correções. */

.collab-history-modal-card{
  width:min(1180px,96vw)!important;
  max-width:1180px!important;
}

.collab-time-history{
  min-width:0;
}

.collab-history-period-filter{
  display:grid;
  grid-template-columns:minmax(420px,1fr) auto;
  gap:12px;
  align-items:end;
  margin-bottom:14px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--soft);
}

.collab-history-period-filter>label{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
  color:var(--muted);
  font-size:11px;
  font-weight:850;
  text-transform:uppercase;
}

.collab-history-date-range{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:8px;
  align-items:center;
}

.collab-history-date-range input{
  width:100%;
  min-width:0;
  min-height:44px;
  border:1px solid var(--line);
  border-radius:11px;
  padding:8px 11px;
  background:var(--panel);
  color:var(--ink);
  font:inherit;
  font-size:13px;
  font-weight:750;
}

.collab-history-date-range>span{
  color:var(--muted);
  font-size:12px;
  text-transform:none;
  text-align:center;
}

.collab-history-period-filter .btn{
  min-height:44px;
}

.collab-history-summary-time{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
  margin-bottom:14px;
}

.collab-history-summary-time>div{
  min-width:0;
}

.collab-history-table-wrap{
  max-height:58vh;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:13px;
}

.collab-history-time-table{
  margin:0;
  min-width:940px;
}

.collab-history-time-table thead{
  position:sticky;
  top:0;
  z-index:2;
  background:var(--panel);
}

.collab-history-time-table th,
.collab-history-time-table td{
  vertical-align:middle;
}

.collab-history-time-table td small{
  display:block;
  margin-top:3px;
  color:var(--muted);
}

.collab-history-empty-row{
  opacity:.72;
}

@media(max-width:760px){
  .collab-history-period-filter{
    grid-template-columns:1fr;
  }
  .collab-history-date-range{
    grid-template-columns:1fr;
  }
  .collab-history-date-range>span{
    display:none;
  }
  .collab-history-summary-time{
    grid-template-columns:1fr 1fr!important;
  }
}


/* bank-hours-header-0.0.210.css */

/* Produção Só Folhas 0.0.210
   Banco de Horas > Resumo do Período
   Cabeçalhos proporcionais, alinhados e sem quebra de linha. */

.banco-horas-panel .table.banco-horas-table.professional{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  table-layout:fixed!important;
}

.banco-horas-panel .table.banco-horas-table.professional thead th{
  padding:11px 6px!important;
  font-size:10.5px!important;
  line-height:1.15!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  text-overflow:clip!important;
  vertical-align:middle!important;
  text-align:left!important;
}

/* Proporções fechando exatamente 100%. */
.banco-horas-panel .banco-horas-table.professional th:nth-child(1){width:15%!important}   /* Colaborador */
.banco-horas-panel .banco-horas-table.professional th:nth-child(2){width:14%!important}   /* Jornada contratual */
.banco-horas-panel .banco-horas-table.professional th:nth-child(3){width:8%!important}    /* Dias apurados */
.banco-horas-panel .banco-horas-table.professional th:nth-child(4){width:8.5%!important}  /* Trabalhado */
.banco-horas-panel .banco-horas-table.professional th:nth-child(5){width:9.5%!important}  /* Carga prevista */
.banco-horas-panel .banco-horas-table.professional th:nth-child(6){width:7%!important}    /* Crédito */
.banco-horas-panel .banco-horas-table.professional th:nth-child(7){width:7%!important}    /* Débito */
.banco-horas-panel .banco-horas-table.professional th:nth-child(8){width:7.5%!important}  /* Saldo */
.banco-horas-panel .banco-horas-table.professional th:nth-child(9){width:12.5%!important} /* Situação de hoje */
.banco-horas-panel .banco-horas-table.professional th:nth-child(10){width:11%!important}  /* Ações */

/* A largura das células acompanha o cabeçalho, sem apertar o título. */
.banco-horas-panel .table.banco-horas-table.professional th,
.banco-horas-panel .table.banco-horas-table.professional td{
  box-sizing:border-box!important;
}

.banco-horas-panel .table.banco-horas-table.professional td{
  padding-left:6px!important;
  padding-right:6px!important;
}

/* A coluna de ações respeita a largura distribuída da tabela,
   anulando mínimos antigos que empurravam as outras colunas. */
.banco-horas-panel .table.banco-horas-table.professional th:last-child,
.banco-horas-panel .table.banco-horas-table.professional td:last-child{
  min-width:0!important;
  max-width:none!important;
}

.banco-horas-panel .banco-horas-table .bank-actions-stack{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}

/* Em notebooks menores, reduz um pouco a tipografia antes de recorrer
   ao layout em cartões já existente para telas pequenas. */
@media (max-width:1180px) and (min-width:701px){
  .banco-horas-panel .table.banco-horas-table.professional thead th{
    font-size:9.5px!important;
    padding-left:4px!important;
    padding-right:4px!important;
    letter-spacing:0!important;
  }
  .banco-horas-panel .table.banco-horas-table.professional td{
    font-size:11px!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }
  .banco-horas-panel .banco-horas-table .bank-balance{
    font-size:11px!important;
    padding-left:4px!important;
    padding-right:4px!important;
  }
}

/* No mobile mantém o comportamento em cartões definido pelo sistema. */
@media (max-width:700px){
  .banco-horas-panel .table.banco-horas-table.professional thead th{
    white-space:normal!important;
  }
}


/* product-launch-selector-0.0.211.css */

/* Produção Só Folhas 0.0.211 — Produtos > seletor de Lançamento */

.product-bonus-table .product-launch-head,
.product-bonus-table .product-launch-cell{
  width:118px;
  min-width:118px;
  text-align:center;
}

.product-bonus-table .product-launch-cell{
  padding-left:8px;
  padding-right:8px;
}

.product-launch-switch{
  position:relative;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  cursor:pointer;
  user-select:none;
}

.product-bonus-table .product-launch-toggle{
  position:absolute!important;
  width:1px!important;
  height:1px!important;
  min-width:0!important;
  min-height:0!important;
  opacity:0!important;
  pointer-events:none;
}

.product-launch-track{
  position:relative;
  display:block;
  width:48px;
  height:27px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#e8edef;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;
}

.product-launch-track i{
  position:absolute;
  top:3px;
  left:3px;
  width:19px;
  height:19px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 4px rgba(0,0,0,.18);
  transition:transform .16s ease;
}

.product-launch-toggle:checked + .product-launch-track{
  background:#0f8a4b;
  border-color:#0f8a4b;
}

.product-launch-toggle:checked + .product-launch-track i{
  transform:translateX(21px);
}

.product-launch-toggle:focus-visible + .product-launch-track{
  box-shadow:0 0 0 3px color-mix(in srgb,#0f8a4b 18%,transparent);
}

.product-launch-switch small{
  font-size:9px;
  line-height:1;
  font-weight:850;
  color:var(--muted);
}

.product-launch-on{display:none}
.product-launch-toggle:checked ~ .product-launch-on{display:block;color:#08783e}
.product-launch-toggle:checked ~ .product-launch-off{display:none}

html[data-theme="dark"] .product-launch-track,
.theme-dark .product-launch-track{
  background:#24342c;
}

@media(max-width:720px){
  .product-bonus-table .product-launch-head,
  .product-bonus-table .product-launch-cell{
    width:auto;
    min-width:0;
  }
}


/* 0.0.212 — o seletor é autosave. */
.product-launch-switch::after{
  content:"salva automático";
  display:none;
}


/* dashboard-2.3.2.css */
/* Dashboard 0.0.215 — escopo isolado */
.dashboard-v215{display:flex;flex-direction:column;gap:18px;min-width:0}.dashboard-v215 .page-head{margin-bottom:0}.d215-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:stretch}.d215-period,.d215-alert-button,.d215-kpi,.d215-panel,.d215-boxes{border:1px solid var(--border,#e3e9e5);background:var(--card,#fff);border-radius:16px;box-shadow:0 3px 12px rgba(15,23,42,.035)}.d215-period{padding:14px 16px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center}.d215-kicker{font-size:10px;font-weight:800;letter-spacing:.105em;color:var(--muted,#6b7280)}.d215-period-inputs{display:flex;align-items:end;gap:10px;min-width:0}.d215-period-inputs>span{padding-bottom:10px;color:var(--muted,#6b7280);font-size:12px}.d215-period-inputs label{display:grid;gap:4px;min-width:150px}.d215-period-inputs small{font-size:10px;color:var(--muted,#6b7280)}.d215-period-inputs input{height:38px;min-width:0;border:1px solid var(--border,#dfe6e1);border-radius:10px;background:var(--surface,#fff);color:inherit;padding:0 10px}.d215-period-caption{white-space:nowrap;color:var(--muted,#6b7280);font-size:11px}.d215-alert-button{min-width:130px;padding:11px 16px;border-color:var(--border,#e3e9e5);color:inherit;display:grid;grid-template-columns:28px 30px;grid-template-rows:auto auto;align-items:center;justify-content:center;text-align:left;cursor:pointer}.d215-alert-button .d215-alert-icon{grid-row:1/3;display:grid;place-items:center;width:28px;height:28px;color:var(--green,#138a4a)}.d215-alert-button strong{font-size:20px;line-height:1}.d215-alert-button>span:last-child{font-size:10px;color:var(--muted,#6b7280);white-space:nowrap}.d215-alert-button.has-alerts strong{color:#b45309}
.d215-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.d215-kpi{min-height:126px;padding:16px;text-align:left;color:inherit;border-color:var(--border,#e3e9e5);cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:6px;min-width:0}.d215-kpi>span{font-size:10px;letter-spacing:.075em;font-weight:800;color:var(--muted,#6b7280)}.d215-kpi>strong{font-size:25px;line-height:1.1;letter-spacing:-.025em}.d215-kpi>strong small{font-size:12px;font-weight:700;color:var(--muted,#6b7280)}.d215-trend,.d215-muted{display:block;font-size:10px;line-height:1.35;color:var(--muted,#6b7280)}.d215-trend.good{color:#15803d}.d215-trend.bad{color:#b91c1c}.d215-trend.neutral{color:var(--muted,#6b7280)}.d215-hour-kpi{gap:5px}.d215-hour-breakdown{display:flex;flex-wrap:wrap;gap:5px 10px;margin-top:auto}.d215-hour-breakdown span{font-size:10px;color:var(--muted,#6b7280)}.d215-hour-breakdown b{color:var(--text,#1f2937)}
.d215-row2,.d215-row3,.d215-row5{display:grid;gap:14px;min-width:0}.d215-row2{grid-template-columns:minmax(0,1.72fr) minmax(280px,.72fr)}.d215-row3{grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr)}.d215-row5{grid-template-columns:repeat(3,minmax(0,1fr))}.d215-panel,.d215-boxes{padding:16px;min-width:0}.d215-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:13px}.d215-panel-head h2{font-size:16px;line-height:1.2;margin:2px 0 0}.d215-panel-head p{font-size:10px;color:var(--muted,#6b7280);margin:4px 0 0}.d215-legend{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.d215-legend span{font-size:10px;color:var(--muted,#6b7280);display:flex;align-items:center;gap:5px}.d215-legend i{width:14px;height:3px;border-radius:3px;background:#64748b}.d215-legend i.bandeja,.d215-line.bandeja{stroke:#d97706}.d215-legend i.folhagem,.d215-line.folhagem{stroke:#16884b}.d215-legend i.agroindustria,.d215-line.agroindustria{stroke:#6750a4}.d215-legend i.bandeja{background:#d97706}.d215-legend i.folhagem{background:#16884b}.d215-legend i.agroindustria{background:#6750a4}.d215-chart-wrap{width:100%;overflow:hidden}.d215-chart-wrap svg{display:block;width:100%;height:auto;min-height:245px}.d215-gridline{stroke:var(--border,#e6ebe7);stroke-width:1}.d215-axis-label{fill:var(--muted,#6b7280);font-size:10px}.d215-line{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.d215-dot{stroke:var(--card,#fff);stroke-width:2}.d215-dot.bandeja{fill:#d97706}.d215-dot.folhagem{fill:#16884b}.d215-dot.agroindustria{fill:#6750a4}
.d215-rank-tabs{display:flex;gap:6px;overflow:auto;padding-bottom:2px;margin-bottom:10px}.d215-rank-tab{border:1px solid var(--border,#e3e9e5);background:transparent;color:var(--muted,#6b7280);padding:7px 9px;border-radius:9px;font-size:10px;font-weight:700;white-space:nowrap;cursor:pointer}.d215-rank-tab.active{background:rgba(22,136,75,.09);border-color:rgba(22,136,75,.3);color:var(--green,#16884b)}.d215-rank-list{display:grid;gap:7px}.d215-rank-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:9px;align-items:center;padding:9px 0;border-bottom:1px solid var(--border,#edf1ee)}.d215-rank-row:last-child{border-bottom:0}.d215-rank-pos{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:var(--soft,#f4f7f5);font-weight:800;font-size:11px}.d215-rank-row b{display:block;font-size:12px}.d215-rank-row small{font-size:9px;color:var(--muted,#6b7280)}.d215-rank-row strong{font-size:15px}.d215-text-action{border:0;background:transparent;color:var(--green,#16884b);font-weight:800;font-size:10px;text-transform:uppercase;letter-spacing:.04em;cursor:pointer;padding:8px 0 0;text-align:left}
.d215-product-list{display:grid;gap:8px}.d215-product-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:9px}.d215-product-row>span{font-size:10px;color:var(--muted,#6b7280);text-align:center}.d215-product-row b{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.d215-product-row i{display:block;height:5px;border-radius:999px;background:var(--soft,#edf2ef);overflow:hidden;margin-top:4px}.d215-product-row em{display:block;height:100%;border-radius:999px;background:var(--green,#16884b)}.d215-product-row strong{font-size:11px;white-space:nowrap}.d215-product-row strong small{font-size:9px;color:var(--muted,#6b7280)}.d215-ops-stack{display:grid;gap:14px}.d215-ops-card{width:100%;text-align:left;color:inherit;border-color:var(--border,#e3e9e5);cursor:pointer}.d215-status{font-size:9px;font-weight:800;padding:5px 7px;border-radius:999px;background:var(--soft,#f1f5f2);color:var(--muted,#6b7280)}.d215-status.pending{background:#fff7ed;color:#b45309}.d215-status.ok{background:#ecfdf3;color:#15803d}.d215-ops-main{display:block;font-size:19px;margin:2px 0 10px}.d215-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.d215-mini-grid span{background:var(--soft,#f5f7f6);padding:7px;border-radius:8px;font-size:9px;color:var(--muted,#6b7280)}.d215-mini-grid b{float:right;color:var(--text,#1f2937)}.d215-count{font-size:9px;color:var(--muted,#6b7280)}.d215-stock-list{display:grid;gap:5px}.d215-stock-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border,#edf1ee);padding:5px 0;font-size:10px}.d215-stock-row:last-child{border:0}.d215-stock-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.d215-stock-row b{white-space:nowrap}
.d215-boxes{width:100%;text-align:left;color:inherit;cursor:pointer}.d215-box-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.d215-box-grid>div{padding:10px;border-radius:11px;background:var(--soft,#f5f7f6);min-width:0}.d215-box-grid>div.primary{background:rgba(22,136,75,.11);box-shadow:inset 0 0 0 1px rgba(22,136,75,.2)}.d215-box-grid>div.warn strong{color:#b45309}.d215-box-grid span{display:block;font-size:9px;color:var(--muted,#6b7280);min-height:23px}.d215-box-grid strong{display:block;font-size:20px;line-height:1.15}.d215-box-grid small{font-size:9px;color:var(--muted,#6b7280)}
.d215-error-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:8px}.d215-error-summary>div{padding:9px;border-radius:10px;background:var(--soft,#f5f7f6)}.d215-error-summary small{font-size:9px;color:var(--muted,#6b7280)}.d215-error-summary strong{display:block;font-size:20px;margin:3px 0}.d215-error-summary i{display:block;height:5px;background:var(--border,#e4e9e6);border-radius:999px;overflow:hidden}.d215-error-summary em{display:block;height:100%;background:#64748b;border-radius:999px}.d215-material-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.d215-material-grid>div{padding:10px;border-radius:10px;background:var(--soft,#f5f7f6)}.d215-material-grid span{display:block;font-size:9px;color:var(--muted,#6b7280);min-height:24px}.d215-material-grid strong{display:block;font-size:19px;margin:3px 0}.d215-material-grid strong small{font-size:9px;color:var(--muted,#6b7280)}.d215-film-main{display:block;font-size:24px;line-height:1.2;margin:12px 0}.d215-film-main small{font-size:10px;color:var(--muted,#6b7280)}.d215-film-meta{display:flex;gap:10px;flex-wrap:wrap}.d215-film-meta span{font-size:9px;color:var(--muted,#6b7280);padding:6px 8px;background:var(--soft,#f5f7f6);border-radius:8px}.d215-film-meta b{color:var(--text,#1f2937)}.d215-empty{padding:14px;border-radius:10px;background:var(--soft,#f5f7f6);color:var(--muted,#6b7280);font-size:10px;text-align:center}
.d215-modal{width:min(720px,calc(100vw - 28px));max-height:min(82vh,760px)}.d215-alert-list{display:grid;gap:8px}.d215-alert-item{width:100%;display:grid;grid-template-columns:30px minmax(0,1fr);gap:10px;text-align:left;padding:11px;border:1px solid var(--border,#e3e9e5);border-radius:11px;background:var(--card,#fff);color:inherit}.d215-alert-item>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--soft,#f5f7f6)}.d215-alert-item b,.d215-alert-item small{display:block}.d215-alert-item b{font-size:11px}.d215-alert-item small{font-size:9px;color:var(--muted,#6b7280);margin-top:3px}.d215-absence-list,.d215-full-ranking{display:grid;gap:5px}.d215-absence-list>div{display:grid;grid-template-columns:80px minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--border,#edf1ee)}.d215-absence-list span,.d215-absence-list small{font-size:9px;color:var(--muted,#6b7280)}.d215-absence-list b{font-size:11px}.d215-full-ranking>div{display:grid;grid-template-columns:34px minmax(0,1fr) auto 80px;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid var(--border,#edf1ee)}.d215-full-ranking span,.d215-full-ranking small{font-size:9px;color:var(--muted,#6b7280)}.d215-full-ranking b{font-size:11px}.d215-full-ranking strong{text-align:right}
.dashboard-v215 button.d215-kpi:hover,.dashboard-v215 button.d215-panel:hover,.dashboard-v215 button.d215-boxes:hover,.d215-alert-button:hover{border-color:rgba(22,136,75,.28);box-shadow:0 5px 18px rgba(15,23,42,.055)}.dashboard-v215 button:focus-visible{outline:2px solid rgba(22,136,75,.45);outline-offset:2px}
html[data-theme="dark"] .dashboard-v215{--card:#151c19;--surface:#111815;--soft:#1b2420;--border:#2a3630;--text:#eef5f1;--muted:#9aaaa1;--green:#48b87a}html[data-theme="dark"] .d215-period,html[data-theme="dark"] .d215-alert-button,html[data-theme="dark"] .d215-kpi,html[data-theme="dark"] .d215-panel,html[data-theme="dark"] .d215-boxes,html[data-theme="dark"] .d215-alert-item{background:var(--card);border-color:var(--border);box-shadow:none}html[data-theme="dark"] .d215-status.pending{background:rgba(180,83,9,.18);color:#f2b16f}html[data-theme="dark"] .d215-status.ok{background:rgba(21,128,61,.2);color:#77d399}html[data-theme="dark"] .d215-gridline{stroke:#2a3630}html[data-theme="dark"] .d215-dot{stroke:#151c19}html[data-theme="dark"] .d215-product-row em{background:#48b87a}html[data-theme="dark"] .d215-rank-tab.active{background:rgba(72,184,122,.12);border-color:rgba(72,184,122,.35);color:#77d399}
@media(max-width:1180px){.d215-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.d215-row2,.d215-row3{grid-template-columns:1fr}.d215-ops-stack{grid-template-columns:1fr 1fr}.d215-box-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.d215-row5{grid-template-columns:1fr 1fr}.d215-film{grid-column:1/-1}}
@media(max-width:780px){.dashboard-v215{gap:12px}.d215-toolbar{grid-template-columns:1fr}.d215-period{grid-template-columns:1fr}.d215-period-inputs{width:100%}.d215-period-inputs label{flex:1;min-width:0}.d215-period-caption{white-space:normal}.d215-alert-button{width:100%;min-height:54px;grid-template-columns:30px 30px auto;grid-template-rows:1fr;justify-content:flex-start}.d215-alert-button .d215-alert-icon{grid-row:auto}.d215-kpis{gap:10px}.d215-kpi{min-height:118px;padding:13px}.d215-row5{grid-template-columns:1fr}.d215-film{grid-column:auto}.d215-ops-stack{grid-template-columns:1fr}.d215-box-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.d215-panel,.d215-boxes{padding:13px}.d215-panel-head{flex-direction:column;gap:6px}.d215-legend{justify-content:flex-start}.d215-chart-wrap svg{min-width:0}.d215-chart-wrap{overflow:hidden}.d215-product-row{grid-template-columns:22px minmax(0,1fr) auto}}
@media(max-width:520px){.d215-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.d215-kpi{min-height:110px}.d215-kpi>strong{font-size:20px}.d215-hour-breakdown{display:none}.d215-period-inputs{display:grid;grid-template-columns:1fr;gap:6px}.d215-period-inputs>span{display:none}.d215-period-inputs input{width:100%}.d215-material-grid{grid-template-columns:1fr}.d215-mini-grid{grid-template-columns:1fr 1fr}.d215-full-ranking>div{grid-template-columns:28px minmax(0,1fr) 62px}.d215-full-ranking small{display:none}.d215-absence-list>div{grid-template-columns:62px minmax(0,1fr)}.d215-absence-list small{grid-column:2}.d215-box-grid strong{font-size:18px}}
@media(max-width:370px){.d215-kpis{grid-template-columns:1fr}.d215-kpi{min-height:98px}.d215-box-grid{grid-template-columns:1fr 1fr}}

/* 0.0.216 — refinamento visual dos KPIs e compactação do filtro/alertas.
   Mantém as mesmas fontes e cálculos da 0.0.215. */
.dashboard-v215 .d215-toolbar{
  display:flex;
  align-items:stretch;
  justify-content:flex-start;
  gap:12px;
  min-width:0;
}
.dashboard-v215 .d215-period{
  flex:0 1 620px;
  width:min(620px,100%);
  min-height:76px;
  padding:10px 14px;
  display:flex;
  align-items:center;
  gap:12px;
  border-radius:20px;
  box-shadow:0 8px 24px rgba(15,23,42,.045);
}
.dashboard-v215 .d215-period-icon{
  flex:0 0 44px;
  width:44px;
  height:44px;
  border-radius:15px;
  display:grid;
  place-items:center;
  color:var(--green,#16884b);
  background:rgba(22,136,75,.09);
  box-shadow:inset 0 0 0 1px rgba(22,136,75,.08);
}
.dashboard-v215 .d215-period-icon svg{width:22px;height:22px}
.dashboard-v215 .d215-period-main{display:grid;gap:5px;min-width:0;flex:1}
.dashboard-v215 .d215-period-inputs{align-items:center;gap:8px}
.dashboard-v215 .d215-period-inputs>span{padding:0 1px;font-size:11px}
.dashboard-v215 .d215-period-inputs label{display:block;min-width:0;flex:1}
.dashboard-v215 .d215-period-inputs label small{display:none}
.dashboard-v215 .d215-period-inputs input{
  width:100%;
  height:36px;
  border-radius:11px;
  font-weight:700;
  font-size:12px;
  padding:0 9px;
}
.dashboard-v215 .d215-period-caption{display:none!important}
.dashboard-v215 .d215-alert-button{
  flex:0 0 auto;
  min-width:196px;
  min-height:76px;
  padding:10px 12px;
  border-radius:20px;
  display:grid;
  grid-template-columns:40px minmax(0,1fr) 34px;
  grid-template-rows:1fr;
  gap:9px;
  align-items:center;
  justify-content:stretch;
  text-align:left;
  box-shadow:0 8px 24px rgba(15,23,42,.045);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease;
}
.dashboard-v215 .d215-alert-button:hover{
  border-color:rgba(22,136,75,.30);
  box-shadow:0 10px 28px rgba(15,23,42,.07);
  transform:translateY(-1px);
}
.dashboard-v215 .d215-alert-button .d215-alert-icon{
  grid-row:auto;
  width:40px;
  height:40px;
  border-radius:14px;
  background:rgba(22,136,75,.09);
  box-shadow:inset 0 0 0 1px rgba(22,136,75,.08);
}
.dashboard-v215 .d215-alert-button .d215-alert-icon svg{width:21px;height:21px}
.dashboard-v215 .d215-alert-copy{display:grid;gap:2px;min-width:0}
.dashboard-v215 .d215-alert-copy b{font-size:12px;line-height:1.15;color:var(--text,#1f2937)}
.dashboard-v215 .d215-alert-copy small{font-size:9px;line-height:1.2;color:var(--muted,#6b7280);white-space:nowrap}
.dashboard-v215 .d215-alert-count{
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:999px;
  background:var(--soft,#f4f7f5);
  color:var(--green,#16884b);
  font-size:15px!important;
  line-height:1!important;
}
.dashboard-v215 .d215-alert-button.has-alerts .d215-alert-count{
  background:#fff7ed;
  color:#b45309;
}

.dashboard-v215 .d215-kpis{gap:16px}
.dashboard-v215 .d215-kpi{
  position:relative;
  min-height:158px;
  padding:20px 20px;
  border-radius:28px;
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:16px;
  align-items:center;
  align-content:center;
  overflow:hidden;
  box-shadow:0 9px 28px rgba(15,23,42,.055);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.dashboard-v215 .d215-kpi:hover{
  transform:translateY(-2px);
  box-shadow:0 13px 34px rgba(15,23,42,.08);
  border-color:rgba(22,136,75,.18);
}
.dashboard-v215 .d215-kpi-icon{
  width:54px;
  height:54px;
  border-radius:999px;
  display:grid;
  place-items:center;
  color:#16884b;
  background:#edf8f1;
  box-shadow:inset 0 0 0 1px rgba(22,136,75,.05);
}
.dashboard-v215 .d215-kpi-icon svg{width:28px;height:28px;stroke-width:1.85}
.dashboard-v215 .d215-kpi-body{display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:5px}
.dashboard-v215 .d215-kpi-label{
  display:block;
  font-size:13px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:0;
  text-transform:none;
  color:var(--text,#18211d);
}
.dashboard-v215 .d215-kpi>span:not(.d215-kpi-icon):not(.d215-kpi-body){font-size:inherit;letter-spacing:normal}
.dashboard-v215 .d215-kpi strong{
  display:block;
  max-width:100%;
  font-size:31px;
  line-height:1.02;
  font-weight:900;
  letter-spacing:-.035em;
  color:#004f2d;
  white-space:nowrap;
}
.dashboard-v215 .d215-kpi strong small{
  font-size:12px;
  font-weight:800;
  color:#566b61;
  letter-spacing:0;
}
.dashboard-v215 .d215-kpi .d215-trend,
.dashboard-v215 .d215-kpi .d215-muted{
  font-size:11px;
  line-height:1.3;
  font-weight:700;
}
.dashboard-v215 .d215-kpi .d215-trend.good{color:#137a43}
.dashboard-v215 .d215-kpi .d215-trend.bad{color:#dc2626}
.dashboard-v215 .d215-kpi-absence{
  border-color:rgba(220,38,38,.16);
}
.dashboard-v215 .d215-kpi-absence .d215-kpi-icon{
  color:#14834a;
  background:#fbecee;
  box-shadow:none;
}
.dashboard-v215 .d215-kpi-absence strong{color:#c81e1e}
.dashboard-v215 .d215-hour-breakdown{
  display:flex;
  flex-wrap:wrap;
  gap:4px 10px;
  margin-top:3px;
}
.dashboard-v215 .d215-hour-breakdown span{font-size:9px;line-height:1.25;color:var(--muted,#6b7280);white-space:nowrap}
.dashboard-v215 .d215-hour-breakdown b{font-size:9px;color:var(--text,#1f2937)}

html[data-theme="dark"] .dashboard-v215 .d215-period-icon,
html[data-theme="dark"] .dashboard-v215 .d215-alert-button .d215-alert-icon,
html[data-theme="dark"] .dashboard-v215 .d215-kpi-icon{
  background:rgba(72,184,122,.12);
  color:#69cd93;
  box-shadow:inset 0 0 0 1px rgba(72,184,122,.12);
}
html[data-theme="dark"] .dashboard-v215 .d215-kpi strong{color:#77d399}
html[data-theme="dark"] .dashboard-v215 .d215-kpi strong small{color:#a9bbb1}
html[data-theme="dark"] .dashboard-v215 .d215-kpi-absence{border-color:rgba(248,113,113,.20)}
html[data-theme="dark"] .dashboard-v215 .d215-kpi-absence .d215-kpi-icon{background:rgba(248,113,113,.10);color:#77d399}
html[data-theme="dark"] .dashboard-v215 .d215-kpi-absence strong{color:#f87171}
html[data-theme="dark"] .dashboard-v215 .d215-alert-copy b{color:var(--text)}
html[data-theme="dark"] .dashboard-v215 .d215-alert-button.has-alerts .d215-alert-count{background:rgba(180,83,9,.20);color:#f2b16f}

@media(max-width:1180px){
  .dashboard-v215 .d215-toolbar{flex-wrap:wrap}
  .dashboard-v215 .d215-period{flex:1 1 520px}
  .dashboard-v215 .d215-alert-button{flex:0 0 190px}
}
@media(max-width:780px){
  .dashboard-v215 .d215-toolbar{display:flex;flex-direction:column;gap:10px}
  .dashboard-v215 .d215-period{width:100%;flex:0 0 auto;min-height:70px;padding:10px 12px}
  .dashboard-v215 .d215-alert-button{width:100%;min-width:0;min-height:58px;flex:0 0 auto;grid-template-columns:38px minmax(0,1fr) 32px;border-radius:16px}
  .dashboard-v215 .d215-alert-button .d215-alert-icon{width:38px;height:38px;border-radius:12px}
  .dashboard-v215 .d215-kpi{min-height:142px;padding:17px 15px;grid-template-columns:48px minmax(0,1fr);gap:12px;border-radius:23px}
  .dashboard-v215 .d215-kpi-icon{width:48px;height:48px}
  .dashboard-v215 .d215-kpi-icon svg{width:25px;height:25px}
  .dashboard-v215 .d215-kpi strong{font-size:27px}
}
@media(max-width:520px){
  .dashboard-v215 .d215-period{align-items:flex-start}
  .dashboard-v215 .d215-period-icon{width:40px;height:40px;flex-basis:40px;border-radius:13px;margin-top:1px}
  .dashboard-v215 .d215-period-main{gap:4px}
  .dashboard-v215 .d215-period-inputs{display:grid;grid-template-columns:1fr 14px 1fr;gap:5px;align-items:center}
  .dashboard-v215 .d215-period-inputs>span{display:block;text-align:center;font-size:10px}
  .dashboard-v215 .d215-period-inputs input{height:34px;padding:0 6px;font-size:10px}
  .dashboard-v215 .d215-kpis{gap:10px}
  .dashboard-v215 .d215-kpi{min-height:132px;padding:14px 11px;grid-template-columns:38px minmax(0,1fr);gap:9px;border-radius:20px}
  .dashboard-v215 .d215-kpi-icon{width:38px;height:38px}
  .dashboard-v215 .d215-kpi-icon svg{width:21px;height:21px}
  .dashboard-v215 .d215-kpi-label{font-size:10px}
  .dashboard-v215 .d215-kpi strong{font-size:21px;letter-spacing:-.03em}
  .dashboard-v215 .d215-kpi strong small{font-size:9px}
  .dashboard-v215 .d215-kpi .d215-trend,.dashboard-v215 .d215-kpi .d215-muted{font-size:9px}
  .dashboard-v215 .d215-hour-breakdown{display:flex;gap:2px 7px}
  .dashboard-v215 .d215-hour-breakdown span,.dashboard-v215 .d215-hour-breakdown b{font-size:8px}
}
@media(max-width:370px){
  .dashboard-v215 .d215-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-v215 .d215-kpi{min-height:128px;grid-template-columns:34px minmax(0,1fr);gap:7px;padding:12px 9px}
  .dashboard-v215 .d215-kpi-icon{width:34px;height:34px}
  .dashboard-v215 .d215-kpi-icon svg{width:19px;height:19px}
  .dashboard-v215 .d215-kpi strong{font-size:19px}
}

/* 0.0.217 — rótulos numéricos no gráfico e reforço visual do ranking / painéis */
.dashboard-v215 .d215-panel,
.dashboard-v215 .d215-boxes{
  background:linear-gradient(180deg,#ffffff 0%,#fbfdfb 100%);
  border-color:#dce7e0;
  box-shadow:0 10px 28px rgba(15,23,42,.05);
}
.dashboard-v215 .d215-panel-head h2{
  font-size:17px;
  color:#0f1f17;
}
.dashboard-v215 .d215-panel-head p{font-size:11px;line-height:1.35}
.dashboard-v215 .d215-hour-panel{
  background:linear-gradient(180deg,rgba(236,248,240,.82) 0%,#ffffff 26%,#fbfdfb 100%);
}
.dashboard-v215 .d215-ranking{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,rgba(240,249,244,.95) 0%,#ffffff 38%,#fbfdfb 100%);
}
.dashboard-v215 .d215-ranking::after{
  content:'';
  position:absolute;
  inset:auto -68px -78px auto;
  width:180px;
  height:180px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(22,136,75,.08) 0%,rgba(22,136,75,0) 70%);
  pointer-events:none;
}
.dashboard-v215 .d217-rank-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(22,136,75,.10);
  color:#167947;
  font-size:11px;
  font-weight:800;
  letter-spacing:.02em;
}
.dashboard-v215 .d217-series-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:-2px 0 12px;
}
.dashboard-v215 .d217-series-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border,#dce7e0);
  background:rgba(255,255,255,.86);
  box-shadow:0 5px 14px rgba(15,23,42,.035);
}
.dashboard-v215 .d217-series-badge .d217-series-dot{
  width:18px;
  height:4px;
  border-radius:999px;
  background:#64748b;
}
.dashboard-v215 .d217-series-badge b{
  font-size:11px;
  color:#193126;
}
.dashboard-v215 .d217-series-badge strong{
  font-size:12px;
  color:#0c6a3f;
  line-height:1;
}
.dashboard-v215 .d217-series-badge strong small{
  font-size:10px;
  color:#587163;
}
.dashboard-v215 .d217-series-badge.bandeja .d217-series-dot{background:#d97706}
.dashboard-v215 .d217-series-badge.folhagem .d217-series-dot{background:#16884b}
.dashboard-v215 .d217-series-badge.agroindustria .d217-series-dot{background:#7c3aed}
.dashboard-v215 .d215-chart-wrap svg{min-height:295px}
.dashboard-v215 .d215-line{stroke-width:3.2}
.dashboard-v215 .d215-dot{stroke-width:2.5}
.dashboard-v215 .d217-value-pill rect{
  fill:rgba(255,255,255,.97);
  stroke:#d7e4dc;
  stroke-width:1;
  filter:drop-shadow(0 2px 5px rgba(15,23,42,.06));
}
.dashboard-v215 .d217-value-pill text{
  fill:#0f172a;
  font-size:10px;
  font-weight:800;
  letter-spacing:.01em;
}
.dashboard-v215 .d217-value-pill.bandeja rect{stroke:rgba(217,119,6,.22)}
.dashboard-v215 .d217-value-pill.folhagem rect{stroke:rgba(22,136,75,.22)}
.dashboard-v215 .d217-value-pill.agroindustria rect{stroke:rgba(124,58,237,.22)}

.dashboard-v215 .d215-rank-tabs{gap:8px;margin-bottom:14px;padding-bottom:4px}
.dashboard-v215 .d215-rank-tab{
  padding:9px 12px;
  border-radius:999px;
  font-size:11px;
  background:rgba(255,255,255,.75);
  box-shadow:0 3px 10px rgba(15,23,42,.02);
}
.dashboard-v215 .d215-rank-tab.active{
  background:linear-gradient(180deg,rgba(22,136,75,.14) 0%,rgba(22,136,75,.08) 100%);
  border-color:rgba(22,136,75,.28);
  color:#167947;
  box-shadow:inset 0 0 0 1px rgba(22,136,75,.06);
}
.dashboard-v215 .d215-rank-list{gap:10px}
.dashboard-v215 .d215-rank-row{
  grid-template-columns:40px 42px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:12px;
  border:1px solid rgba(22,136,75,.08);
  border-radius:18px;
  background:rgba(255,255,255,.82);
  box-shadow:0 7px 18px rgba(15,23,42,.035);
}
.dashboard-v215 .d215-rank-pos{
  width:40px;
  height:40px;
  border-radius:14px;
  font-size:13px;
  background:rgba(22,136,75,.08);
  color:#0f5f39;
}
.dashboard-v215 .d215-rank-row.rank-1 .d215-rank-pos{background:#fff7d6;color:#a16207}
.dashboard-v215 .d215-rank-row.rank-2 .d215-rank-pos{background:#eef2f7;color:#475569}
.dashboard-v215 .d215-rank-row.rank-3 .d215-rank-pos{background:#fce9dd;color:#b45309}
.dashboard-v215 .d217-rank-avatar{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
  letter-spacing:.03em;
  color:#0f5f39;
  background:linear-gradient(180deg,rgba(22,136,75,.18) 0%,rgba(22,136,75,.08) 100%);
}
.dashboard-v215 .d217-rank-copy{display:grid;gap:3px;min-width:0}
.dashboard-v215 .d217-rank-copy b{
  display:block;
  font-size:13px;
  line-height:1.2;
  color:#0d2017;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dashboard-v215 .d217-rank-copy small{
  font-size:10px;
  color:#5e7468;
}
.dashboard-v215 .d217-rank-score{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:84px;
  min-height:38px;
  padding:0 12px;
  border-radius:14px;
  background:rgba(22,136,75,.09);
  color:#0b5c36;
  font-size:21px;
  font-weight:900;
  letter-spacing:-.03em;
}
.dashboard-v215 .d215-ranking .d215-text-action{
  margin-top:8px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(22,136,75,.08);
}
.dashboard-v215 .d215-products,
.dashboard-v215 .d215-ops-card,
.dashboard-v215 .d215-errors,
.dashboard-v215 .d215-material,
.dashboard-v215 .d215-film,
.dashboard-v215 .d215-boxes{
  background:linear-gradient(180deg,#ffffff 0%,#fbfcfb 100%);
}
html[data-theme="dark"] .dashboard-v215 .d215-panel,
html[data-theme="dark"] .dashboard-v215 .d215-boxes{
  background:linear-gradient(180deg,#16201b 0%,#131a17 100%);
  border-color:#2a3630;
  box-shadow:none;
}
html[data-theme="dark"] .dashboard-v215 .d215-hour-panel{
  background:linear-gradient(180deg,rgba(34,58,45,.72) 0%,#151d19 28%,#131917 100%);
}
html[data-theme="dark"] .dashboard-v215 .d215-ranking{
  background:linear-gradient(180deg,rgba(33,55,44,.9) 0%,#151d19 35%,#131917 100%);
}
html[data-theme="dark"] .dashboard-v215 .d217-rank-chip,
html[data-theme="dark"] .dashboard-v215 .d215-ranking .d215-text-action,
html[data-theme="dark"] .dashboard-v215 .d217-rank-score,
html[data-theme="dark"] .dashboard-v215 .d215-rank-tab.active{
  background:rgba(72,184,122,.14);
  color:#7bd39a;
}
html[data-theme="dark"] .dashboard-v215 .d215-rank-tab{background:rgba(17,24,21,.64)}
html[data-theme="dark"] .dashboard-v215 .d215-rank-row{
  background:rgba(18,27,23,.84);
  border-color:rgba(72,184,122,.10);
  box-shadow:none;
}
html[data-theme="dark"] .dashboard-v215 .d215-rank-pos{background:rgba(72,184,122,.14);color:#7bd39a}
html[data-theme="dark"] .dashboard-v215 .d215-rank-row.rank-1 .d215-rank-pos{background:rgba(245,158,11,.17);color:#f4c56c}
html[data-theme="dark"] .dashboard-v215 .d215-rank-row.rank-2 .d215-rank-pos{background:rgba(148,163,184,.18);color:#cbd5e1}
html[data-theme="dark"] .dashboard-v215 .d215-rank-row.rank-3 .d215-rank-pos{background:rgba(251,146,60,.16);color:#fdba74}
html[data-theme="dark"] .dashboard-v215 .d217-rank-avatar{background:rgba(72,184,122,.18);color:#8dddaa}
html[data-theme="dark"] .dashboard-v215 .d217-rank-copy b,
html[data-theme="dark"] .dashboard-v215 .d217-series-badge b,
html[data-theme="dark"] .dashboard-v215 .d215-panel-head h2{color:#eef5f1}
html[data-theme="dark"] .dashboard-v215 .d217-rank-copy small,
html[data-theme="dark"] .dashboard-v215 .d217-series-badge strong small{color:#a9bbb1}
html[data-theme="dark"] .dashboard-v215 .d217-series-badge{
  background:rgba(18,27,23,.82);
  border-color:#2a3630;
  box-shadow:none;
}
html[data-theme="dark"] .dashboard-v215 .d217-series-badge strong{color:#7bd39a}
html[data-theme="dark"] .dashboard-v215 .d217-value-pill rect{fill:#16201b;stroke:#324038;filter:none}
html[data-theme="dark"] .dashboard-v215 .d217-value-pill text{fill:#eef5f1}
@media(max-width:780px){
  .dashboard-v215 .d217-series-badges{gap:8px;margin-bottom:10px}
  .dashboard-v215 .d217-series-badge{padding:8px 11px}
  .dashboard-v215 .d215-chart-wrap svg{min-height:270px}
  .dashboard-v215 .d215-rank-row{grid-template-columns:36px 36px minmax(0,1fr);}
  .dashboard-v215 .d217-rank-score{grid-column:2 / 4;justify-self:start;min-width:74px;min-height:34px;font-size:18px}
}
@media(max-width:520px){
  .dashboard-v215 .d217-series-badges{display:grid;grid-template-columns:1fr;gap:7px}
  .dashboard-v215 .d217-series-badge{justify-content:flex-start}
  .dashboard-v215 .d215-chart-wrap svg{min-height:245px}
  .dashboard-v215 .d215-rank-row{padding:10px;gap:8px;border-radius:15px}
  .dashboard-v215 .d215-rank-pos,.dashboard-v215 .d217-rank-avatar{width:34px;height:34px;border-radius:12px}
  .dashboard-v215 .d217-rank-copy b{font-size:12px}
}

/* 0.0.218 — toolbar com setor, alertas expandidos e KPI de filme no topo */
.dashboard-v215 .d218-toolbar{
  display:grid;
  grid-template-columns:minmax(380px,430px) minmax(220px,250px) minmax(300px,1fr);
  gap:14px;
  align-items:stretch;
}
.dashboard-v215 .d218-toolbar .d215-period{
  width:100%;
  min-height:72px;
  flex:none;
  padding:10px 14px;
  border-radius:18px;
}
.dashboard-v215 .d218-toolbar .d215-period-inputs label{flex:1;min-width:0}
.dashboard-v215 .d218-toolbar .d215-period-inputs input{font-size:11px;padding:0 8px}
.dashboard-v215 .d218-toolbar .d215-period-inputs>span{font-size:10px}
.dashboard-v215 .d218-sector,
.dashboard-v215 .d218-toolbar .d215-alert-button{
  border:1px solid var(--border,#dce7e0);
  background:linear-gradient(180deg,#fff 0%,#fbfdfb 100%);
  border-radius:20px;
  box-shadow:0 8px 24px rgba(15,23,42,.045);
}
.dashboard-v215 .d218-sector{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  min-width:0;
}
.dashboard-v215 .d218-sector-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(22,136,75,.09);
  color:var(--green,#16884b);
  box-shadow:inset 0 0 0 1px rgba(22,136,75,.08);
}
.dashboard-v215 .d218-sector-icon svg{width:21px;height:21px}
.dashboard-v215 .d218-sector-main{display:grid;gap:5px;min-width:0;flex:1}
.dashboard-v215 .d218-sector select,
.dashboard-v215 .d218-sector-fixed{
  width:100%;
  height:36px;
  border-radius:11px;
  border:1px solid var(--border,#dfe6e1);
  background:var(--surface,#fff);
  color:inherit;
  padding:0 10px;
  font-size:12px;
  font-weight:700;
}
.dashboard-v215 .d218-sector-fixed{display:flex;align-items:center}
.dashboard-v215 .d218-toolbar .d215-alert-button{
  width:100%;
  min-width:0;
  min-height:72px;
  grid-template-columns:42px minmax(0,1fr) 36px;
  padding:10px 14px;
  justify-content:stretch;
}
.dashboard-v215 .d218-toolbar .d215-alert-copy b{font-size:13px}
.dashboard-v215 .d218-toolbar .d215-alert-copy small{font-size:10px;white-space:normal}
.dashboard-v215 .d218-kpi-film .d215-kpi-icon{
  background:#eef8f1;
  color:#16884b;
}
.dashboard-v215 .d218-film-breakdown{
  display:flex;
  flex-wrap:wrap;
  gap:4px 10px;
  margin-top:2px;
}
.dashboard-v215 .d218-film-breakdown span{
  font-size:9px;
  line-height:1.25;
  color:var(--muted,#6b7280);
  white-space:nowrap;
}
.dashboard-v215 .d218-film-breakdown b{font-size:9px;color:var(--text,#1f2937)}
.dashboard-v215 .d218-film-modal .modal-card{width:min(1120px,calc(100vw - 24px))}
.dashboard-v215 .d218-film-modal .modal-body{padding-top:8px}
.dashboard-v215 .d218-film-modal .daily-production-line-card{margin:0;border:0;box-shadow:none;padding:0;background:transparent}
html[data-theme="dark"] .dashboard-v215 .d218-sector,
html[data-theme="dark"] .dashboard-v215 .d218-toolbar .d215-alert-button{
  background:linear-gradient(180deg,#16201b 0%,#131917 100%);
  border-color:#2a3630;
  box-shadow:none;
}
html[data-theme="dark"] .dashboard-v215 .d218-sector-icon{background:rgba(72,184,122,.12);color:#7bd39a;box-shadow:inset 0 0 0 1px rgba(72,184,122,.12)}
html[data-theme="dark"] .dashboard-v215 .d218-sector select,
html[data-theme="dark"] .dashboard-v215 .d218-sector-fixed{background:#111815;border-color:#2a3630;color:#eef5f1}
html[data-theme="dark"] .dashboard-v215 .d218-film-breakdown b{color:#eef5f1}
html[data-theme="dark"] .dashboard-v215 .d218-kpi-film .d215-kpi-icon{background:rgba(72,184,122,.12);color:#7bd39a}
@media(max-width:1180px){
  .dashboard-v215 .d218-toolbar{grid-template-columns:minmax(300px,1fr) minmax(220px,260px);}
  .dashboard-v215 .d218-toolbar .d215-alert-button{grid-column:1 / -1}
}
@media(max-width:780px){
  .dashboard-v215 .d218-toolbar{grid-template-columns:1fr;gap:10px}
  .dashboard-v215 .d218-toolbar .d215-period,
  .dashboard-v215 .d218-sector,
  .dashboard-v215 .d218-toolbar .d215-alert-button{min-height:unset}
}
.d218-film-modal .modal-card{width:min(1120px,calc(100vw - 24px))}
.d218-film-modal .modal-body{padding-top:8px}
.d218-film-modal .daily-production-line-card{margin:0;border:0;box-shadow:none;padding:0;background:transparent}
html[data-theme="dark"] .d218-film-modal .daily-production-line-card{background:transparent}

/* 0.0.219 — Desempenho da Produção: Produção total | Produção por hora */
.dashboard-v215 .d219-performance-panel{
  background:linear-gradient(180deg,rgba(237,248,241,.92) 0%,#ffffff 22%,#fbfdfb 100%);
}
.dashboard-v215 .d219-performance-head{
  align-items:center;
  margin-bottom:14px;
}
.dashboard-v215 .d219-performance-tabs{
  display:inline-flex;
  gap:4px;
  padding:4px;
  border-radius:14px;
  background:rgba(15,23,42,.045);
  border:1px solid rgba(15,23,42,.045);
}
.dashboard-v215 .d219-performance-tab{
  min-height:34px;
  padding:0 13px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--muted,#64748b);
  font-size:10px;
  font-weight:800;
  cursor:pointer;
  white-space:nowrap;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease;
}
.dashboard-v215 .d219-performance-tab:hover{color:var(--green,#16884b)}
.dashboard-v215 .d219-performance-tab.active{
  background:#fff;
  color:#0f6a3e;
  box-shadow:0 3px 10px rgba(15,23,42,.08);
}
.dashboard-v215 .d219-production-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:0 0 12px;
}
.dashboard-v215 .d219-production-summary>div{
  min-width:0;
  padding:11px 13px;
  border:1px solid rgba(22,136,75,.10);
  border-radius:14px;
  background:rgba(255,255,255,.78);
  box-shadow:0 4px 14px rgba(15,23,42,.025);
}
.dashboard-v215 .d219-production-summary span,
.dashboard-v215 .d219-production-summary>div>small{
  display:block;
  font-size:9px;
  line-height:1.25;
  color:var(--muted,#64748b);
}
.dashboard-v215 .d219-production-summary strong{
  display:block;
  margin-top:3px;
  font-size:18px;
  line-height:1.1;
  color:#0f5f39;
  letter-spacing:-.025em;
}
.dashboard-v215 .d219-production-summary strong small{
  font-size:9px;
  font-weight:700;
  color:var(--muted,#64748b);
  letter-spacing:0;
}
.dashboard-v215 .d219-production-summary>div>small{margin-top:3px}
.dashboard-v215 .d219-production-legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 8px;
}
.dashboard-v215 .d219-production-legend span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:30px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid var(--border,#dfe7e2);
  background:rgba(255,255,255,.84);
  color:var(--muted,#64748b);
  font-size:9px;
}
.dashboard-v215 .d219-production-legend i{
  width:11px;
  height:11px;
  border-radius:4px;
  flex:0 0 11px;
}
.dashboard-v215 .d219-production-legend b{color:var(--text,#17211c)}
.dashboard-v215 .d219-production-legend strong{color:#0f6a3e;font-size:10px}
.dashboard-v215 .d219-total-chart svg{min-height:295px}
.dashboard-v215 .d219-total-label{
  fill:#15251d;
  font-size:9px;
  font-weight:900;
  paint-order:stroke;
  stroke:rgba(255,255,255,.92);
  stroke-width:3px;
  stroke-linejoin:round;
}
html[data-theme="dark"] .dashboard-v215 .d219-performance-panel{
  background:linear-gradient(180deg,rgba(33,55,44,.9) 0%,#151d19 22%,#131917 100%);
}
html[data-theme="dark"] .dashboard-v215 .d219-performance-tabs{
  background:rgba(0,0,0,.18);
  border-color:#2b3932;
}
html[data-theme="dark"] .dashboard-v215 .d219-performance-tab.active{
  background:#202b25;
  color:#80dca0;
  box-shadow:none;
}
html[data-theme="dark"] .dashboard-v215 .d219-production-summary>div,
html[data-theme="dark"] .dashboard-v215 .d219-production-legend span{
  background:rgba(18,27,23,.84);
  border-color:#2a3630;
  box-shadow:none;
}
html[data-theme="dark"] .dashboard-v215 .d219-production-summary strong,
html[data-theme="dark"] .dashboard-v215 .d219-production-legend strong{color:#7bd39a}
html[data-theme="dark"] .dashboard-v215 .d219-production-legend b{color:#eef5f1}
html[data-theme="dark"] .dashboard-v215 .d219-total-label{
  fill:#eef5f1;
  stroke:#151d19;
}
@media(max-width:780px){
  .dashboard-v215 .d219-performance-head{align-items:flex-start}
  .dashboard-v215 .d219-performance-tabs{width:100%;display:grid;grid-template-columns:1fr 1fr}
  .dashboard-v215 .d219-performance-tab{width:100%}
  .dashboard-v215 .d219-production-summary{grid-template-columns:1fr 1fr}
  .dashboard-v215 .d219-production-summary>div:last-child{grid-column:1/-1}
}
@media(max-width:520px){
  .dashboard-v215 .d219-production-summary{grid-template-columns:1fr}
  .dashboard-v215 .d219-production-summary>div:last-child{grid-column:auto}
  .dashboard-v215 .d219-production-legend{display:grid;grid-template-columns:1fr}
  .dashboard-v215 .d219-production-legend span{justify-content:flex-start}
  .dashboard-v215 .d219-total-chart svg{min-height:250px}
}

/* 0.0.220 — top 5, remoção da conferência do dia e destaque maior para estoque */
.dashboard-v215 .d220-row3{
  grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);
  align-items:stretch;
}
.dashboard-v215 .d220-row3 .d215-products,
.dashboard-v215 .d220-row3 .d220-stock-card{height:100%}
.dashboard-v215 .d220-row3 .d215-products{
  padding-right:14px;
}
.dashboard-v215 .d220-stock-card{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-height:100%;
  background:linear-gradient(180deg,rgba(240,249,244,.96) 0%,#ffffff 42%,#fbfcfb 100%);
}
.dashboard-v215 .d220-stock-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  background:rgba(22,136,75,.10);
  color:#167947;
  font-size:11px;
  font-weight:800;
  letter-spacing:.02em;
  white-space:nowrap;
}
.dashboard-v215 .d220-stock-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:0 0 12px;
}
.dashboard-v215 .d220-stock-summary > div{
  padding:12px 13px;
  border-radius:16px;
  border:1px solid rgba(22,136,75,.10);
  background:rgba(255,255,255,.82);
  box-shadow:0 7px 18px rgba(15,23,42,.03);
}
.dashboard-v215 .d220-stock-summary span{
  display:block;
  font-size:10px;
  color:var(--muted,#6b7280);
  margin-bottom:5px;
}
.dashboard-v215 .d220-stock-summary strong{
  display:block;
  font-size:26px;
  line-height:1;
  color:#0b5c36;
  font-weight:900;
  letter-spacing:-.03em;
}
.dashboard-v215 .d220-stock-summary small{
  display:block;
  margin-top:5px;
  font-size:10px;
  color:#5e7468;
}
.dashboard-v215 .d220-stock-list{
  display:grid;
  gap:9px;
  margin-top:2px;
}
.dashboard-v215 .d220-stock-row{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:11px 12px;
  border:1px solid rgba(22,136,75,.08);
  border-radius:16px;
  background:rgba(255,255,255,.84);
  box-shadow:0 6px 16px rgba(15,23,42,.03);
}
.dashboard-v215 .d220-stock-pos{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(22,136,75,.08);
  color:#0f5f39;
  font-size:12px;
  font-weight:800;
}
.dashboard-v215 .d220-stock-copy{display:grid;gap:3px;min-width:0}
.dashboard-v215 .d220-stock-copy b{
  font-size:12px;
  line-height:1.2;
  color:#0d2017;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dashboard-v215 .d220-stock-copy small{
  font-size:10px;
  color:#5e7468;
}
.dashboard-v215 .d220-stock-row strong{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:0 12px;
  border-radius:14px;
  background:rgba(22,136,75,.09);
  color:#0b5c36;
  font-size:18px;
  font-weight:900;
  letter-spacing:-.02em;
  white-space:nowrap;
}
.dashboard-v215 .d220-stock-row strong small{
  font-size:10px;
  color:#5e7468;
  margin-left:4px;
  font-weight:700;
}
.dashboard-v215 .d220-stock-card .d215-text-action{
  margin-top:auto;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(22,136,75,.08);
}
html[data-theme="dark"] .dashboard-v215 .d220-stock-card{
  background:linear-gradient(180deg,rgba(33,55,44,.9) 0%,#151d19 35%,#131917 100%);
}
html[data-theme="dark"] .dashboard-v215 .d220-stock-chip,
html[data-theme="dark"] .dashboard-v215 .d220-stock-card .d215-text-action,
html[data-theme="dark"] .dashboard-v215 .d220-stock-row strong{
  background:rgba(72,184,122,.14);
  color:#7bd39a;
}
html[data-theme="dark"] .dashboard-v215 .d220-stock-summary > div,
html[data-theme="dark"] .dashboard-v215 .d220-stock-row{
  background:rgba(18,27,23,.84);
  border-color:rgba(72,184,122,.10);
  box-shadow:none;
}
html[data-theme="dark"] .dashboard-v215 .d220-stock-pos{background:rgba(72,184,122,.14);color:#8dddaa}
html[data-theme="dark"] .dashboard-v215 .d220-stock-copy b,
html[data-theme="dark"] .dashboard-v215 .d220-stock-summary strong{color:#eef5f1}
html[data-theme="dark"] .dashboard-v215 .d220-stock-copy small,
html[data-theme="dark"] .dashboard-v215 .d220-stock-summary small,
html[data-theme="dark"] .dashboard-v215 .d220-stock-row strong small{color:#a9bbb1}
@media(max-width:1180px){
  .dashboard-v215 .d220-row3{grid-template-columns:1fr}
}
@media(max-width:780px){
  .dashboard-v215 .d220-stock-summary{grid-template-columns:1fr}
  .dashboard-v215 .d220-stock-row{grid-template-columns:30px minmax(0,1fr)}
  .dashboard-v215 .d220-stock-row strong{grid-column:2 / 3;justify-self:start;min-height:32px;font-size:16px}
  .dashboard-v215 .d220-stock-pos{width:30px;height:30px;border-radius:10px}
}

/* 0.0.221 — controle de caixas refinado + desperdício em donut + linha de erros */
.dashboard-v215 .d221-row5{
  grid-template-columns:minmax(320px,.9fr) minmax(0,1.1fr);
  align-items:stretch;
}
.dashboard-v215 .d221-row5 > *{height:100%}
.dashboard-v215 .d221-boxes{
  background:linear-gradient(180deg,rgba(240,249,244,.96) 0%,#ffffff 42%,#fbfcfb 100%);
}
.dashboard-v215 .d221-boxes .d215-panel-head{align-items:flex-start}
.dashboard-v215 .d221-boxes .d215-panel-head > .d215-text-action{margin-left:auto}
.dashboard-v215 .d221-box-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.02em;
  white-space:nowrap;
}
.dashboard-v215 .d221-box-status.ok{background:rgba(22,136,75,.10);color:#167947}
.dashboard-v215 .d221-box-status.warn{background:rgba(180,83,9,.12);color:#b45309}
.dashboard-v215 .d221-box-layout{
  display:grid;
  grid-template-columns:minmax(260px,.95fr) minmax(0,1.35fr);
  gap:12px;
  align-items:stretch;
}
.dashboard-v215 .d221-box-hero{display:grid;gap:12px}
.dashboard-v215 .d221-box-big,
.dashboard-v215 .d221-box-highlight,
.dashboard-v215 .d221-box-mini-grid > div{
  border:1px solid rgba(22,136,75,.08);
  border-radius:18px;
  background:rgba(255,255,255,.84);
  box-shadow:0 8px 20px rgba(15,23,42,.03);
}
.dashboard-v215 .d221-box-big{
  padding:16px;
  min-height:132px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.dashboard-v215 .d221-box-big span,
.dashboard-v215 .d221-box-highlight span,
.dashboard-v215 .d221-box-mini-grid span{display:block;font-size:10px;color:var(--muted,#6b7280)}
.dashboard-v215 .d221-box-big strong{display:block;font-size:40px;line-height:1;color:#0b5c36;font-weight:900;letter-spacing:-.04em;margin:8px 0 6px}
.dashboard-v215 .d221-box-big small,
.dashboard-v215 .d221-box-highlight small,
.dashboard-v215 .d221-box-mini-grid small{font-size:10px;color:#5e7468}
.dashboard-v215 .d221-box-highlight{
  padding:15px 16px;
  background:linear-gradient(180deg,rgba(22,136,75,.12) 0%,rgba(22,136,75,.05) 100%);
  box-shadow:inset 0 0 0 1px rgba(22,136,75,.07);
}
.dashboard-v215 .d221-box-highlight strong{display:block;font-size:34px;line-height:1;color:#0b5c36;font-weight:900;letter-spacing:-.04em;margin:7px 0 5px}
.dashboard-v215 .d221-box-mini-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.dashboard-v215 .d221-box-mini-grid > div{padding:14px 12px;min-width:0}
.dashboard-v215 .d221-box-mini-grid > div.warn{border-color:rgba(180,83,9,.12);background:rgba(255,247,237,.9)}
.dashboard-v215 .d221-box-mini-grid > div.warn strong{color:#b45309}
.dashboard-v215 .d221-box-mini-grid strong{display:block;font-size:28px;line-height:1.05;color:#102132;font-weight:900;letter-spacing:-.03em;margin:10px 0 6px}
.dashboard-v215 .d221-errors{
  background:linear-gradient(180deg,#ffffff 0%,#fbfcfb 100%);
}
.dashboard-v215 .d221-error-top{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
.dashboard-v215 .d221-error-top > div{
  padding:11px 12px;
  border-radius:15px;
  background:var(--soft,#f5f7f6);
  border:1px solid rgba(100,116,139,.08);
}
.dashboard-v215 .d221-error-top span{display:block;font-size:10px;color:var(--muted,#6b7280)}
.dashboard-v215 .d221-error-top strong{display:block;font-size:28px;line-height:1.05;color:#102132;font-weight:900;letter-spacing:-.03em;margin-top:7px}
.dashboard-v215 .d221-error-top small{display:block;margin-top:4px;font-size:10px;color:#5e7468}
.dashboard-v215 .d221-error-chart{
  width:100%;
  min-height:176px;
  border-radius:16px;
  background:linear-gradient(180deg,rgba(248,250,252,.9) 0%,rgba(255,255,255,.9) 100%);
  border:1px solid rgba(100,116,139,.08);
  padding:6px 10px 4px;
  margin-bottom:10px;
}
.dashboard-v215 .d221-error-chart svg{display:block;width:100%;height:170px}
.dashboard-v215 .d221-error-axis{stroke:#d8e0e7;stroke-width:1}
.dashboard-v215 .d221-error-area{fill:url(#d221ErrorFill)}
.dashboard-v215 .d221-error-line{fill:none;stroke:#64748b;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.dashboard-v215 .d221-error-dot{fill:#64748b;stroke:#fff;stroke-width:2}
.dashboard-v215 .d221-error-label{fill:#334155;font-size:10px;font-weight:800}
.dashboard-v215 .d221-error-x{fill:#6b7280;font-size:10px}
.dashboard-v215 .d221-waste-card{padding:0;overflow:hidden;background:linear-gradient(180deg,#ffffff 0%,#fbfcfb 100%)}
.dashboard-v215 .d221-waste-card .materials-loss-donut-card{
  border:0;
  border-radius:16px;
  box-shadow:none;
  background:transparent;
  padding:18px;
  min-height:100%;
}
.dashboard-v215 .d221-waste-card .materials-loss-donut-head h3{font-size:34px}
.dashboard-v215 .d221-waste-card .materials-loss-donut-head small{font-size:12px}
.dashboard-v215 .d221-waste-card .materials-loss-donut-wrap{grid-template-columns:180px minmax(0,1fr);gap:18px}
.dashboard-v215 .d221-waste-card .materials-loss-donut-ring{width:180px;height:180px}
.dashboard-v215 .d221-waste-card .materials-loss-donut-hole{inset:22px}
.dashboard-v215 .d221-waste-card .materials-donut-item{
  border:1px solid rgba(22,136,75,.08);
  border-radius:16px;
  background:rgba(255,255,255,.84);
  box-shadow:0 6px 16px rgba(15,23,42,.03);
}
html[data-theme="dark"] .dashboard-v215 .d221-boxes,
html[data-theme="dark"] .dashboard-v215 .d221-errors,
html[data-theme="dark"] .dashboard-v215 .d221-waste-card{
  background:linear-gradient(180deg,#16201b 0%,#131917 100%);
}
html[data-theme="dark"] .dashboard-v215 .d221-box-status.ok{background:rgba(72,184,122,.14);color:#7bd39a}
html[data-theme="dark"] .dashboard-v215 .d221-box-status.warn{background:rgba(180,83,9,.18);color:#f2b16f}
html[data-theme="dark"] .dashboard-v215 .d221-box-big,
html[data-theme="dark"] .dashboard-v215 .d221-box-highlight,
html[data-theme="dark"] .dashboard-v215 .d221-box-mini-grid > div,
html[data-theme="dark"] .dashboard-v215 .d221-error-top > div,
html[data-theme="dark"] .dashboard-v215 .d221-error-chart,
html[data-theme="dark"] .dashboard-v215 .d221-waste-card .materials-donut-item{
  background:rgba(18,27,23,.84);
  border-color:rgba(72,184,122,.10);
  box-shadow:none;
}
html[data-theme="dark"] .dashboard-v215 .d221-box-highlight{background:rgba(72,184,122,.12)}
html[data-theme="dark"] .dashboard-v215 .d221-box-big strong,
html[data-theme="dark"] .dashboard-v215 .d221-box-highlight strong,
html[data-theme="dark"] .dashboard-v215 .d221-box-mini-grid strong,
html[data-theme="dark"] .dashboard-v215 .d221-error-top strong{color:#eef5f1}
html[data-theme="dark"] .dashboard-v215 .d221-box-big small,
html[data-theme="dark"] .dashboard-v215 .d221-box-highlight small,
html[data-theme="dark"] .dashboard-v215 .d221-box-mini-grid small,
html[data-theme="dark"] .dashboard-v215 .d221-error-top small,
html[data-theme="dark"] .dashboard-v215 .d221-error-x,
html[data-theme="dark"] .dashboard-v215 .d221-error-label{color:#a9bbb1;fill:#a9bbb1}
html[data-theme="dark"] .dashboard-v215 .d221-error-axis{stroke:#2a3630}
html[data-theme="dark"] .dashboard-v215 .d221-error-line{stroke:#94a3b8}
html[data-theme="dark"] .dashboard-v215 .d221-error-dot{fill:#94a3b8;stroke:#16201b}
html[data-theme="dark"] .dashboard-v215 .d221-waste-card .materials-loss-donut-card{background:transparent}
@media(max-width:1180px){
  .dashboard-v215 .d221-row5{grid-template-columns:1fr}
  .dashboard-v215 .d221-box-layout{grid-template-columns:1fr}
  .dashboard-v215 .d221-box-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:780px){
  .dashboard-v215 .d221-error-top{grid-template-columns:1fr}
  .dashboard-v215 .d221-box-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-v215 .d221-waste-card .materials-loss-donut-wrap{grid-template-columns:1fr}
  .dashboard-v215 .d221-waste-card .materials-loss-donut-ring{margin:auto}
}
@media(max-width:520px){
  .dashboard-v215 .d221-box-big strong{font-size:34px}
  .dashboard-v215 .d221-box-highlight strong,
  .dashboard-v215 .d221-box-mini-grid strong{font-size:24px}
  .dashboard-v215 .d221-error-chart svg{height:154px}
}

/* 0.0.222 — refinamentos visuais finais do dashboard */
.dashboard-v215 .d218-toolbar .d215-alert-button{
  align-items:center;
}
.dashboard-v215 .d218-toolbar .d215-alert-copy{
  align-content:center;
  gap:4px;
}
.dashboard-v215 .d218-toolbar .d215-alert-copy b{
  font-size:14px;
  line-height:1.12;
}
.dashboard-v215 .d218-toolbar .d215-alert-copy small{
  font-size:10.5px;
  line-height:1.25;
}
.dashboard-v215 .d218-toolbar .d215-alert-count{
  width:34px;
  height:34px;
  font-size:16px !important;
}

.dashboard-v215 .d218-kpi-film .d215-kpi-icon{
  background:linear-gradient(180deg,#ecfbf3 0%,#e5f6eb 100%);
  color:#0f7f48;
}
.dashboard-v215 .d218-kpi-film .d215-kpi-label{
  font-size:13.5px;
}
.dashboard-v215 .d218-kpi-film strong small{
  font-size:12.5px;
}
.dashboard-v215 .d222-kpi-trendline{
  display:block;
  font-size:11.5px;
  line-height:1.3;
  font-weight:700;
}
.dashboard-v215 .d222-kpi-trendline .d215-muted,
.dashboard-v215 .d222-kpi-trendline .d215-trend{
  font-size:inherit;
  line-height:inherit;
  font-weight:inherit;
}
.dashboard-v215 .d218-film-breakdown{
  gap:5px 12px;
  margin-top:3px;
}
.dashboard-v215 .d218-film-breakdown span,
.dashboard-v215 .d218-film-breakdown b{
  font-size:10px;
}

.dashboard-v215 .d222-top10-total{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(22,136,75,.08);
  color:#0f5f39;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.dashboard-v215 .d222-top10-total b{
  font-size:13px;
  color:#0b5c36;
}

.dashboard-v215 .d220-stock-list{
  margin-bottom:14px;
}
.dashboard-v215 .d220-stock-card .d215-text-action{
  margin-top:14px;
  align-self:flex-start;
}

.dashboard-v215 .d221-box-layout{
  grid-template-columns:minmax(240px,.88fr) minmax(0,1.12fr);
  align-items:start;
}
.dashboard-v215 .d221-box-hero{gap:10px}
.dashboard-v215 .d221-box-big{
  min-height:118px;
  padding:15px;
}
.dashboard-v215 .d221-box-big strong{
  font-size:36px;
}
.dashboard-v215 .d221-box-highlight{
  padding:13px 15px;
}
.dashboard-v215 .d221-box-highlight strong{
  font-size:30px;
}
.dashboard-v215 .d221-box-mini-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  align-content:start;
}
.dashboard-v215 .d221-box-mini-grid > div{
  padding:12px 11px;
}
.dashboard-v215 .d221-box-mini-grid strong{
  font-size:24px;
  margin:8px 0 5px;
}

.dashboard-v215 .d221-row5{
  grid-template-columns:minmax(320px,1fr) minmax(320px,.96fr);
}
.dashboard-v215 .d221-waste-card .materials-loss-donut-card{
  padding:16px;
}
.dashboard-v215 .d221-waste-card .materials-loss-donut-head h3{
  font-size:28px;
  line-height:1.05;
}
.dashboard-v215 .d221-waste-card .materials-loss-donut-head small{
  font-size:11px;
}
.dashboard-v215 .d221-waste-card .materials-loss-donut-wrap{
  grid-template-columns:165px minmax(0,1fr);
  gap:16px;
}
.dashboard-v215 .d221-waste-card .materials-loss-donut-ring{
  width:165px;
  height:165px;
}
.dashboard-v215 .d221-waste-card .materials-loss-donut-hole{
  inset:20px;
}
.dashboard-v215 .d221-waste-card .materials-donut-item{
  padding:14px 16px;
}

html[data-theme="dark"] .dashboard-v215 .d218-toolbar .d215-alert-copy b,
html[data-theme="dark"] .dashboard-v215 .d222-top10-total,
html[data-theme="dark"] .dashboard-v215 .d220-stock-card .d215-text-action{
  color:#7bd39a;
}
html[data-theme="dark"] .dashboard-v215 .d218-kpi-film .d215-kpi-icon{
  background:linear-gradient(180deg,rgba(72,184,122,.16) 0%,rgba(72,184,122,.10) 100%);
  color:#7bd39a;
}
html[data-theme="dark"] .dashboard-v215 .d222-top10-total{
  background:rgba(72,184,122,.10);
}

@media(max-width:1180px){
  .dashboard-v215 .d221-box-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:780px){
  .dashboard-v215 .d218-toolbar .d215-alert-copy b{font-size:13.5px}
  .dashboard-v215 .d221-row5{grid-template-columns:1fr}
  .dashboard-v215 .d221-box-layout{grid-template-columns:1fr}
  .dashboard-v215 .d221-waste-card .materials-loss-donut-wrap{grid-template-columns:1fr}
}
@media(max-width:520px){
  .dashboard-v215 .d222-top10-total{font-size:11px;padding:7px 10px}
  .dashboard-v215 .d221-box-mini-grid{grid-template-columns:1fr 1fr}
  .dashboard-v215 .d221-waste-card .materials-loss-donut-head h3{font-size:24px}
}

/* 0.0.223 — centralização do cabeçalho de Evolução dos Erros */
.dashboard-v215 .d221-errors .d215-panel-head{
  position:relative;
  display:block;
  min-height:64px;
  margin-bottom:14px;
}
.dashboard-v215 .d221-errors .d215-panel-head > div{
  max-width:430px;
  margin:0 auto;
  text-align:center;
}
.dashboard-v215 .d221-errors .d215-panel-head > .d215-trend{
  position:absolute;
  top:0;
  right:0;
}
@media(max-width:780px){
  .dashboard-v215 .d221-errors .d215-panel-head{
    min-height:unset;
    padding-top:0;
  }
  .dashboard-v215 .d221-errors .d215-panel-head > .d215-trend{
    position:static;
    display:inline-flex;
    margin-top:8px;
    justify-self:center;
  }
}

/* 0.0.231 — dashboard cards e ícones refinados */
.dashboard-v215 .d215-kpi{
  background:linear-gradient(180deg,#ffffff 0%,#fbfdfc 100%);
  border:1px solid rgba(15,78,45,.08);
  box-shadow:0 10px 26px rgba(15,23,42,.05), inset 0 1px 0 rgba(255,255,255,.7);
}
.dashboard-v215 .d215-kpi::before{
  content:"";
  position:absolute;
  left:18px;
  right:18px;
  top:0;
  height:4px;
  border-radius:0 0 999px 999px;
  background:linear-gradient(90deg,#18a558 0%,#57c785 100%);
  opacity:.95;
}
.dashboard-v215 .d215-kpi::after{
  content:"";
  position:absolute;
  inset:auto -22px -34px auto;
  width:130px;
  height:130px;
  border-radius:999px;
  background:radial-gradient(circle at center, rgba(24,165,88,.08) 0%, rgba(24,165,88,0) 70%);
  pointer-events:none;
}
.dashboard-v215 .d215-kpi:hover{
  border-color:rgba(24,165,88,.18);
  box-shadow:0 16px 36px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.78);
}
.dashboard-v215 .d215-kpi-icon{
  position:relative;
  background:linear-gradient(180deg,#f1fbf5 0%,#e7f6ee 100%);
  color:#128349;
  box-shadow:0 10px 22px rgba(20,131,73,.10), inset 0 0 0 1px rgba(18,131,73,.08);
}
.dashboard-v215 .d215-kpi-icon::after{
  content:"";
  position:absolute;
  inset:7px;
  border-radius:inherit;
  border:1px solid rgba(255,255,255,.55);
}
.dashboard-v215 .d215-kpi-icon svg{stroke-width:1.9}
.dashboard-v215 .d215-kpi-body{gap:6px}
.dashboard-v215 .d215-kpi-label{
  font-size:14px;
  font-weight:900;
  color:#112019;
}
.dashboard-v215 .d215-kpi strong{
  color:#035e36;
}
.dashboard-v215 .d215-kpi strong small{
  color:#5f7368;
}
.dashboard-v215 .d215-kpi .d215-trend,
.dashboard-v215 .d215-kpi .d215-muted,
.dashboard-v215 .d222-kpi-trendline{
  color:#61736a;
}
.dashboard-v215 .d215-kpi-production::before{
  background:linear-gradient(90deg,#149552 0%,#59c989 100%);
}
.dashboard-v215 .d215-kpi-value::before{
  background:linear-gradient(90deg,#0f7f48 0%,#38b978 100%);
}
.dashboard-v215 .d215-kpi-absence::before{
  background:linear-gradient(90deg,#e07b39 0%,#f3b65b 100%);
}
.dashboard-v215 .d218-kpi-film::before{
  background:linear-gradient(90deg,#0d8f57 0%,#44c07b 100%);
}
.dashboard-v215 .d215-kpi-production .d215-kpi-icon{
  background:linear-gradient(180deg,#ebf9f0 0%,#e3f5eb 100%);
  color:#0f7b45;
}
.dashboard-v215 .d215-kpi-value .d215-kpi-icon{
  background:linear-gradient(180deg,#eefaf2 0%,#e4f4eb 100%);
  color:#11824a;
}
.dashboard-v215 .d215-kpi-absence{
  border-color:rgba(224,123,57,.18);
  background:linear-gradient(180deg,#fffefd 0%,#fff9f5 100%);
}
.dashboard-v215 .d215-kpi-absence .d215-kpi-icon{
  background:linear-gradient(180deg,#fff4ea 0%,#fde9d9 100%);
  color:#d46f32;
  box-shadow:0 10px 22px rgba(212,111,50,.10), inset 0 0 0 1px rgba(212,111,50,.08);
}
.dashboard-v215 .d215-kpi-absence strong{color:#c24b12}
.dashboard-v215 .d218-kpi-film{
  background:linear-gradient(180deg,#ffffff 0%,#f7fbf8 100%);
}
.dashboard-v215 .d218-kpi-film .d215-kpi-icon{
  background:linear-gradient(180deg,#ecfbf3 0%,#e4f6eb 100%);
  color:#0f7f48;
  box-shadow:0 10px 22px rgba(15,127,72,.10), inset 0 0 0 1px rgba(15,127,72,.08);
}
.dashboard-v215 .d218-kpi-film .d215-kpi-label{font-size:13.5px}
html[data-theme="dark"] .dashboard-v215 .d215-kpi{
  background:linear-gradient(180deg,#151d1a 0%,#111815 100%);
  border-color:#2a3630;
  box-shadow:0 10px 26px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.02);
}
html[data-theme="dark"] .dashboard-v215 .d215-kpi::after{
  background:radial-gradient(circle at center, rgba(72,184,122,.12) 0%, rgba(72,184,122,0) 72%);
}
html[data-theme="dark"] .dashboard-v215 .d215-kpi:hover{
  border-color:rgba(72,184,122,.28);
  box-shadow:0 14px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.03);
}
html[data-theme="dark"] .dashboard-v215 .d215-kpi-icon{
  background:linear-gradient(180deg,rgba(72,184,122,.18) 0%,rgba(72,184,122,.12) 100%);
  color:#84dba6;
  box-shadow:0 10px 20px rgba(0,0,0,.18), inset 0 0 0 1px rgba(72,184,122,.14);
}
html[data-theme="dark"] .dashboard-v215 .d215-kpi-icon::after{
  border-color:rgba(255,255,255,.06);
}
html[data-theme="dark"] .dashboard-v215 .d215-kpi-label{color:#eef5f1}
html[data-theme="dark"] .dashboard-v215 .d215-kpi strong{color:#8ae0ab}
html[data-theme="dark"] .dashboard-v215 .d215-kpi strong small{color:#b6c8be}
html[data-theme="dark"] .dashboard-v215 .d215-kpi .d215-trend,
html[data-theme="dark"] .dashboard-v215 .d215-kpi .d215-muted,
html[data-theme="dark"] .dashboard-v215 .d222-kpi-trendline{color:#afc0b7}
html[data-theme="dark"] .dashboard-v215 .d215-kpi-absence{
  border-color:rgba(243,182,91,.20);
  background:linear-gradient(180deg,#1b1916 0%,#171513 100%);
}
html[data-theme="dark"] .dashboard-v215 .d215-kpi-absence .d215-kpi-icon{
  background:linear-gradient(180deg,rgba(224,123,57,.20) 0%,rgba(224,123,57,.12) 100%);
  color:#ffc088;
  box-shadow:0 10px 20px rgba(0,0,0,.18), inset 0 0 0 1px rgba(224,123,57,.12);
}
html[data-theme="dark"] .dashboard-v215 .d215-kpi-absence strong{color:#ffb68a}


/* settings-2.3.4.css */
/* Configurações 0.0.225 — organização visual, manual e créditos */
.settings225{
  --cfg-card:#ffffff;
  --cfg-soft:#f5f9f6;
  --cfg-border:#dce8df;
  --cfg-text:#102132;
  --cfg-muted:#667085;
  --cfg-green:#0d7d43;
  --cfg-green-soft:#edf8f1;
  display:flex;
  flex-direction:column;
  gap:22px;
}
.settings225-nav{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  padding:12px;
  border:1px solid var(--cfg-border);
  border-radius:22px;
  background:linear-gradient(180deg,#ffffff,#f8fbf9);
  box-shadow:0 10px 30px rgba(16,33,50,.045);
}
.settings225-nav a{
  min-width:0;
  min-height:84px;
  padding:12px;
  border:1px solid transparent;
  border-radius:16px;
  color:var(--cfg-text);
  text-decoration:none;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:10px;
  align-items:center;
  transition:.18s ease;
}
.settings225-nav a:hover{
  background:var(--cfg-green-soft);
  border-color:rgba(13,125,67,.16);
  transform:translateY(-1px);
}
.settings225-nav a>span{
  grid-row:1/3;
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:var(--cfg-green-soft);
  color:var(--cfg-green);
}
.settings225-nav svg{width:20px;height:20px}
.settings225-nav b{font-size:12px;line-height:1.2}
.settings225-nav small{font-size:9px;line-height:1.25;color:var(--cfg-muted)}

.settings225-section{
  scroll-margin-top:100px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.settings225-section-head{
  padding:0 2px;
}
.settings225-section-head>span,
.settings225-eyebrow{
  display:block;
  font-size:10px;
  line-height:1.2;
  letter-spacing:.12em;
  font-weight:900;
  color:#4d7c62;
}
.settings225-section-head h2{
  margin:4px 0 2px;
  font-size:20px;
  line-height:1.15;
  letter-spacing:-.02em;
  color:var(--cfg-text);
}
.settings225-section-head p{
  margin:0;
  font-size:11px;
  color:var(--cfg-muted);
}
.settings225 .card.form-card,
.settings225 .card.panel{
  border:1px solid var(--cfg-border);
  border-radius:22px;
  background:linear-gradient(180deg,#fff,#fbfdfc);
  box-shadow:0 9px 28px rgba(16,33,50,.04);
}
.settings225-system-card .firebase-card{
  margin:0!important;
}
.settings225-system-card .firebase-card h2{
  font-size:18px;
}
.settings225-system-card .firebase-status-line{
  border-radius:14px;
  padding:12px 14px;
}
.settings225-operation-grid{
  display:grid;
  gap:14px;
}
.settings225-operation-grid>.card{
  margin:0!important;
}
.settings225 .operational-flow-settings .panel-head,
.settings225 .jornada-alert-settings .panel-head{
  align-items:center;
}
.settings225 .operational-flow-settings h2,
.settings225 .jornada-alert-settings h2{
  font-size:18px;
}
.settings225 .operational-flow-status{
  border-radius:14px;
  padding:12px 14px;
}
.settings225 .jornada-alert-settings{
  overflow:hidden;
}
.settings225 .jornada-alert-settings .internal-alert-notice{
  border-radius:14px;
  padding:11px 12px;
}
.settings225 .jornada-alert-settings .table-wrap{
  border:1px solid #e5ece7;
  border-radius:14px;
  overflow:auto;
}
.settings225 .jornada-alert-settings table{
  min-width:980px;
}
.settings225 .jornada-alert-settings th{
  background:#f7faf8;
}
.settings225-card-head{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-bottom:16px;
}
.settings225-card-head h2{
  margin:3px 0 2px;
  font-size:18px;
  line-height:1.15;
  letter-spacing:-.02em;
  color:var(--cfg-text);
}
.settings225-card-head p{
  margin:0;
  font-size:11px;
  color:var(--cfg-muted);
}
.settings225-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:var(--cfg-green-soft);
  color:var(--cfg-green);
}
.settings225-icon svg{width:21px;height:21px}
.settings225-icon.danger{
  background:#fff1f0;
  color:#c92b1d;
}
.settings225-theme-card{
  margin:0!important;
}
.settings225-theme-card .theme-options{
  gap:12px;
}
.settings225-theme-card .theme-option-btn{
  min-height:76px;
  border-radius:16px;
}
.settings225-data-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:14px;
}
.settings225-data-grid>.card{
  margin:0!important;
  min-height:100%;
}
.settings225-actions{
  display:flex;
  gap:9px;
  align-items:center;
  flex-wrap:wrap;
}
.settings225-danger-card{
  border-color:#f1d4d0!important;
  background:linear-gradient(180deg,#fff,#fffafa)!important;
}
.settings225-danger-note{
  margin:0 0 14px;
  padding:10px 12px;
  border-radius:12px;
  background:#fff6f4;
  border:1px solid #f2ddd9;
  color:#8f3c32;
  font-size:10px;
  line-height:1.35;
}

.settings225-manual-card{
  margin:0!important;
}
.settings225-manual-list{
  display:grid;
  gap:8px;
}
.settings225-manual-list details{
  border:1px solid #e1e9e4;
  border-radius:15px;
  background:#fff;
  overflow:hidden;
}
.settings225-manual-list summary{
  list-style:none;
  cursor:pointer;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  padding:12px 14px;
  user-select:none;
}
.settings225-manual-list summary::-webkit-details-marker{display:none}
.settings225-manual-list summary>span{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:var(--cfg-green-soft);
  color:var(--cfg-green);
  grid-row:1/3;
}
.settings225-manual-list summary svg{width:18px;height:18px}
.settings225-manual-list summary b{
  font-size:12px;
  color:var(--cfg-text);
}
.settings225-manual-list summary small{
  grid-column:2;
  font-size:9px;
  color:var(--cfg-muted);
}
.settings225-manual-list summary::after{
  content:'+';
  grid-column:3;
  grid-row:1/3;
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#f4f7f5;
  color:#547062;
  font-weight:900;
}
.settings225-manual-list details[open] summary{
  background:#f7fbf8;
  border-bottom:1px solid #e4ece6;
}
.settings225-manual-list details[open] summary::after{content:'−'}
.settings225-manual-body{
  padding:13px 16px 15px 58px;
  font-size:11px;
  line-height:1.55;
  color:#34463d;
}
.settings225-manual-body p{margin:0 0 8px}
.settings225-manual-body ol{margin:0;padding-left:18px}
.settings225-manual-body li+li{margin-top:4px}
.settings225-note{
  margin-top:10px!important;
  padding:9px 11px;
  border-radius:11px;
  background:#f2f7f4;
  color:#587165;
}

.settings225-about-card{
  margin:0!important;
  overflow:hidden;
  position:relative;
}
.settings225-about-card::after{
  content:'';
  position:absolute;
  right:-70px;
  bottom:-90px;
  width:240px;
  height:240px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(13,125,67,.10),rgba(13,125,67,0) 70%);
  pointer-events:none;
}
.settings225-about-brand{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:16px;
}
.settings225-about-mark{
  width:52px;
  height:52px;
  flex:0 0 52px;
  display:grid;
  place-items:center;
  border-radius:17px;
  background:linear-gradient(180deg,#e9f8ef,#def1e6);
  color:var(--cfg-green);
}
.settings225-about-mark svg{width:26px;height:26px}
.settings225-about-brand h2{
  margin:3px 0 2px;
  font-size:21px;
  letter-spacing:-.03em;
  color:var(--cfg-text);
}
.settings225-about-brand p{
  margin:0;
  font-size:11px;
  color:var(--cfg-muted);
}
.settings225-about-grid{
  display:grid;
  grid-template-columns:.55fr 1.25fr .7fr;
  gap:10px;
  margin-bottom:14px;
}
.settings225-about-grid>div{
  padding:12px 13px;
  border-radius:14px;
  border:1px solid #e1e9e4;
  background:rgba(255,255,255,.82);
}
.settings225-about-grid span{
  display:block;
  font-size:9px;
  color:var(--cfg-muted);
  margin-bottom:4px;
}
.settings225-about-grid strong{
  display:block;
  font-size:12px;
  color:var(--cfg-text);
}
.settings225-credit{
  padding:11px 13px;
  border-left:3px solid #39b86f;
  background:#f2f8f4;
  border-radius:0 12px 12px 0;
  max-width:430px;
}
.settings225-credit span{
  display:block;
  font-size:9px;
  letter-spacing:.08em;
  font-weight:900;
  color:#678275;
}
.settings225-credit b{
  display:block;
  margin-top:3px;
  font-size:12px;
  color:#244a36;
}

html[data-theme="dark"] .settings225{
  --cfg-card:#151c19;
  --cfg-soft:#1b2420;
  --cfg-border:#2a3630;
  --cfg-text:#eef5f1;
  --cfg-muted:#9aaaa1;
  --cfg-green:#77d399;
  --cfg-green-soft:rgba(72,184,122,.12);
}
html[data-theme="dark"] .settings225-nav,
html[data-theme="dark"] .settings225 .card.form-card,
html[data-theme="dark"] .settings225 .card.panel,
html[data-theme="dark"] .settings225-manual-list details,
html[data-theme="dark"] .settings225-about-grid>div{
  background:linear-gradient(180deg,#16201b,#131917);
  border-color:#2a3630;
  box-shadow:none;
}
html[data-theme="dark"] .settings225-manual-list details[open] summary,
html[data-theme="dark"] .settings225-manual-list summary::after,
html[data-theme="dark"] .settings225-note,
html[data-theme="dark"] .settings225-credit{
  background:#1b2420;
}
html[data-theme="dark"] .settings225-manual-body{color:#c8d5ce}
html[data-theme="dark"] .settings225-danger-card{background:linear-gradient(180deg,#201817,#181312)!important;border-color:#4a2b28!important}
html[data-theme="dark"] .settings225-danger-note{background:#251917;border-color:#4a2b28;color:#e5a49b}
html[data-theme="dark"] .settings225-credit b{color:#d9eee1}
html[data-theme="dark"] .settings225 .jornada-alert-settings th{background:#18211d}

@media(max-width:1180px){
  .settings225-nav{grid-template-columns:repeat(3,minmax(0,1fr))}
  .settings225-data-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .settings225{gap:16px}
  .settings225-nav{grid-template-columns:repeat(2,minmax(0,1fr));padding:9px}
  .settings225-nav a{min-height:72px;padding:10px}
  .settings225 .card.form-card,
  .settings225 .card.panel{border-radius:18px}
  .settings225 .panel-head{align-items:flex-start}
  .settings225 .jornada-alert-settings .panel-head,
  .settings225 .operational-flow-settings .panel-head{flex-direction:column}
  .settings225-card-head{margin-bottom:12px}
  .settings225-about-grid{grid-template-columns:1fr}
  .settings225-manual-body{padding-left:16px}
}
@media(max-width:440px){
  .settings225-nav{grid-template-columns:1fr 1fr}
  .settings225-nav a{grid-template-columns:32px minmax(0,1fr);column-gap:8px}
  .settings225-nav a>span{width:32px;height:32px;border-radius:10px}
  .settings225-section-head h2{font-size:18px}
  .settings225-about-brand{align-items:flex-start}
}

/* 0.0.227 — Central de Configurações por categorias reais */
.settings227{
  --cfg227-bg:#f7faf8;
  --cfg227-card:#ffffff;
  --cfg227-border:#dbe8df;
  --cfg227-text:#102132;
  --cfg227-muted:#667085;
  --cfg227-green:#0d7d43;
  --cfg227-green-2:#16884b;
  --cfg227-soft:#edf8f1;
  --cfg227-shadow:0 12px 34px rgba(16,33,50,.05);
}
.settings227-shell{
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:18px;
  align-items:start;
  min-width:0;
}
.settings227-menu{
  position:sticky;
  top:92px;
  border:1px solid var(--cfg227-border);
  border-radius:22px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbf9 100%);
  box-shadow:var(--cfg227-shadow);
  overflow:hidden;
}
.settings227-menu-head{
  padding:18px 18px 15px;
  border-bottom:1px solid #e6eee8;
}
.settings227-menu-head>span{
  display:block;
  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
  color:#5d7a6b;
}
.settings227-menu-head>b{
  display:block;
  margin-top:4px;
  font-size:17px;
  line-height:1.15;
  color:var(--cfg227-text);
  letter-spacing:-.02em;
}
.settings227-menu-head>small{
  display:block;
  margin-top:4px;
  color:var(--cfg227-muted);
  font-size:10px;
}
.settings227-menu nav{
  display:grid;
  gap:4px;
  padding:9px;
}
.settings227-tab{
  width:100%;
  min-height:58px;
  border:1px solid transparent;
  border-radius:14px;
  background:transparent;
  color:var(--cfg227-text);
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 16px;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  text-align:left;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.settings227-tab:hover{
  background:#f2f8f4;
  border-color:#e2ece5;
}
.settings227-tab.active{
  background:linear-gradient(180deg,#eaf7ef 0%,#e3f3e9 100%);
  border-color:rgba(13,125,67,.18);
  box-shadow:inset 3px 0 0 #24a25c;
}
.settings227-tab>span:first-child{
  width:34px;
  height:34px;
  border-radius:11px;
  display:grid;
  place-items:center;
  background:#f0f7f2;
  color:#257b4d;
}
.settings227-tab.active>span:first-child{
  background:#d8f0e1;
  color:#0d7d43;
}
.settings227-tab svg{width:18px;height:18px}
.settings227-tab-copy{display:grid;gap:2px;min-width:0}
.settings227-tab-copy b{
  font-size:11px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.settings227-tab-copy small{
  font-size:9px;
  line-height:1.2;
  color:var(--cfg227-muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.settings227-tab>i{
  font-style:normal;
  color:#91a49a;
  font-size:18px;
  text-align:center;
}
.settings227-tab.active>i{color:#0d7d43}

.settings227-content{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.settings227-view-head{
  min-height:90px;
  padding:17px 18px;
  border:1px solid var(--cfg227-border);
  border-radius:22px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbf9 100%);
  box-shadow:var(--cfg227-shadow);
  display:flex;
  align-items:center;
  gap:14px;
}
.settings227-view-icon{
  width:48px;
  height:48px;
  flex:0 0 48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  color:var(--cfg227-green);
  background:linear-gradient(180deg,#eaf8ef,#e1f2e7);
  box-shadow:inset 0 0 0 1px rgba(13,125,67,.06);
}
.settings227-view-icon svg{width:24px;height:24px}
.settings227-view-head span{
  display:block;
  font-size:9px;
  line-height:1.2;
  letter-spacing:.12em;
  font-weight:900;
  color:#4d7c62;
}
.settings227-view-head h2{
  margin:3px 0 2px;
  color:var(--cfg227-text);
  font-size:22px;
  line-height:1.1;
  letter-spacing:-.03em;
}
.settings227-view-head p{
  margin:0;
  color:var(--cfg227-muted);
  font-size:11px;
  line-height:1.35;
}

.settings227-summary-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.settings227-summary-grid.settings227-summary-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.settings227-summary-grid>div{
  padding:14px 15px;
  border:1px solid var(--cfg227-border);
  border-radius:17px;
  background:linear-gradient(180deg,#fff,#fbfdfc);
  box-shadow:0 7px 20px rgba(16,33,50,.035);
}
.settings227-summary-grid span{
  display:block;
  font-size:9px;
  color:var(--cfg227-muted);
}
.settings227-summary-grid strong{
  display:block;
  margin-top:6px;
  font-size:25px;
  line-height:1;
  letter-spacing:-.035em;
  color:#0a6337;
}
.settings227-summary-grid small{
  display:block;
  margin-top:5px;
  font-size:9px;
  color:#718078;
}

.settings227 .settings227-card{
  margin:0!important;
  padding:18px!important;
}
.settings227-card-title{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}
.settings227-card-title h3,
.settings227-link-card h3,
.settings227-install-card h3{
  margin:2px 0 3px;
  font-size:16px;
  line-height:1.15;
  color:var(--cfg227-text);
  letter-spacing:-.02em;
}
.settings227-card-title p,
.settings227-link-card p{
  margin:0;
  font-size:10px;
  color:var(--cfg227-muted);
  line-height:1.4;
}
.settings227-info-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.settings227-info-list>div{
  padding:11px 12px;
  border-radius:13px;
  background:#f6f9f7;
  border:1px solid #e8eee9;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.settings227-info-list span{font-size:10px;color:var(--cfg227-muted)}
.settings227-info-list b{font-size:11px;color:var(--cfg227-text)}
.settings227-link-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.settings227-link-card>div{min-width:0}
.settings227-link-card .btn{flex:0 0 auto}

.settings227-callout,
.settings227-note-card,
.settings227-integration-status,
.settings227-app-status{
  border:1px solid #dce8df;
  border-radius:17px;
  background:linear-gradient(180deg,#f5fbf7,#f0f8f3);
}
.settings227-callout{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:13px 14px;
}
.settings227-callout>span{
  width:34px;height:34px;flex:0 0 34px;border-radius:11px;display:grid;place-items:center;background:#e0f3e7;color:#0d7d43;
}
.settings227-callout svg{width:18px;height:18px}
.settings227-callout b{font-size:11px;color:#0e5d36}
.settings227-callout p{margin:3px 0 0;font-size:10px;line-height:1.4;color:#5e7468}
.settings227-integration-status{
  padding:13px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.settings227-integration-status>div{display:flex;align-items:center;gap:10px;min-width:0}
.settings227-status-dot{width:11px;height:11px;border-radius:50%;background:#1dad5d;box-shadow:0 0 0 5px rgba(29,173,93,.10)}
.settings227-integration-status b{display:block;font-size:12px;color:var(--cfg227-text)}
.settings227-integration-status small{display:block;margin-top:2px;font-size:9px;color:var(--cfg227-muted)}
.settings227-status-chip{
  padding:7px 10px;border-radius:999px;background:#dff3e6;color:#0d7540;font-size:9px;font-weight:800;white-space:nowrap;
}
.settings227-note-card{padding:12px 14px}
.settings227-note-card b{font-size:10px;color:#244a36}
.settings227-note-card p{margin:3px 0 0;font-size:10px;line-height:1.4;color:#61756b}

.settings227-two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.settings227-session{
  padding:12px 13px;
  border:1px solid #e2ebe5;
  border-radius:14px;
  background:#f7faf8;
}
.settings227-session span,.settings227-session small{display:block;font-size:9px;color:var(--cfg227-muted)}
.settings227-session b{display:block;margin:4px 0 3px;font-size:13px;color:var(--cfg227-text)}

.settings227-app-status{
  padding:13px 14px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.settings227-app-status>div{
  min-height:54px;
  padding:9px 11px;
  border-radius:13px;
  background:rgba(255,255,255,.75);
  display:flex;
  align-items:center;
  gap:10px;
}
.settings227-app-status>div>span{
  width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#e6f5eb;color:#0d7d43;
}
.settings227-app-status svg{width:17px;height:17px}
.settings227-app-status small{display:block;font-size:9px;color:var(--cfg227-muted)}
.settings227-app-status b{display:block;margin-top:2px;font-size:11px;color:var(--cfg227-text)}
.settings227-install-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.settings227-install-card{margin:0!important;padding:18px!important}
.settings227-step-os{
  display:inline-flex;
  padding:5px 8px;
  border-radius:999px;
  background:#e7f5ec;
  color:#0d7d43;
  font-size:8px;
  font-weight:900;
  letter-spacing:.08em;
}
.settings227-install-card ol{margin:12px 0 9px;padding-left:19px;color:#405249;font-size:10px;line-height:1.55}
.settings227-install-card li+li{margin-top:4px}
.settings227-install-card>small{font-size:9px;line-height:1.35;color:var(--cfg227-muted)}

.settings227-help-search{
  height:46px;
  border:1px solid #dce8df;
  border-radius:15px;
  background:#fff;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 13px;
  box-shadow:0 6px 18px rgba(16,33,50,.03);
}
.settings227-help-search>span{color:#5d7a6b;display:grid;place-items:center}
.settings227-help-search svg{width:18px;height:18px}
.settings227-help-search input{
  flex:1;
  min-width:0;
  height:100%;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:var(--cfg227-text);
  font-size:11px;
  box-shadow:none!important;
}
.settings227-help-list{gap:9px}
.settings227-help-item[hidden]{display:none!important}
.settings227-help-empty{
  padding:18px;
  border:1px dashed #cfdcd4;
  border-radius:15px;
  text-align:center;
  color:var(--cfg227-muted);
  font-size:10px;
  background:#f8fbf9;
}
.settings227-about-note{
  margin:0 0 14px;
  padding:11px 13px;
  border:1px solid #e2eae5;
  border-radius:13px;
  background:#f7faf8;
}
.settings227-about-note span{display:block;font-size:8px;font-weight:900;letter-spacing:.1em;color:#718078}
.settings227-about-note b{display:block;margin-top:3px;font-size:10px;color:#34463d}

/* Ajustes das funções antigas quando renderizadas dentro da nova central */
.settings227-content>.settings225-operation-grid,
.settings227-content>.settings225-system-card,
.settings227-content>.settings225-data-grid,
.settings227-content>.settings225-theme-card{margin:0}
.settings227-content .firebase-card,
.settings227-content .operational-flow-settings,
.settings227-content .jornada-alert-settings{margin:0!important}
.settings227-content .firebase-card,
.settings227-content .operational-flow-settings,
.settings227-content .jornada-alert-settings,
.settings227-content .settings225-theme-card,
.settings227-content .settings225-data-card,
.settings227-content .settings225-about-card{
  border-radius:18px!important;
}
.settings227-content .jornada-alert-settings .table-wrap{max-width:100%}

html[data-theme="dark"] .settings227{
  --cfg227-bg:#111815;
  --cfg227-card:#151c19;
  --cfg227-border:#2a3630;
  --cfg227-text:#eef5f1;
  --cfg227-muted:#9aaaa1;
  --cfg227-green:#77d399;
  --cfg227-green-2:#48b87a;
  --cfg227-soft:rgba(72,184,122,.12);
  --cfg227-shadow:none;
}
html[data-theme="dark"] .settings227-menu,
html[data-theme="dark"] .settings227-view-head,
html[data-theme="dark"] .settings227-summary-grid>div,
html[data-theme="dark"] .settings227-help-search{
  background:linear-gradient(180deg,#16201b,#131917);
  border-color:#2a3630;
  box-shadow:none;
}
html[data-theme="dark"] .settings227-menu-head{border-color:#2a3630}
html[data-theme="dark"] .settings227-tab{color:#eef5f1}
html[data-theme="dark"] .settings227-tab:hover{background:#1b2420;border-color:#2f3c35}
html[data-theme="dark"] .settings227-tab.active{background:rgba(72,184,122,.13);border-color:rgba(72,184,122,.18);box-shadow:inset 3px 0 0 #48b87a}
html[data-theme="dark"] .settings227-tab>span:first-child,
html[data-theme="dark"] .settings227-app-status>div>span{background:rgba(72,184,122,.12);color:#77d399}
html[data-theme="dark"] .settings227-info-list>div,
html[data-theme="dark"] .settings227-session,
html[data-theme="dark"] .settings227-app-status>div,
html[data-theme="dark"] .settings227-about-note,
html[data-theme="dark"] .settings227-help-empty{
  background:#1b2420;
  border-color:#2a3630;
}
html[data-theme="dark"] .settings227-callout,
html[data-theme="dark"] .settings227-note-card,
html[data-theme="dark"] .settings227-integration-status,
html[data-theme="dark"] .settings227-app-status{
  background:linear-gradient(180deg,#17231d,#141d19);
  border-color:#2a3630;
}
html[data-theme="dark"] .settings227-status-chip,
html[data-theme="dark"] .settings227-step-os{background:rgba(72,184,122,.13);color:#77d399}
html[data-theme="dark"] .settings227-callout>span{background:rgba(72,184,122,.12);color:#77d399}
html[data-theme="dark"] .settings227-callout b,
html[data-theme="dark"] .settings227-note-card b,
html[data-theme="dark"] .settings227-about-note b{color:#d7e8de}
html[data-theme="dark"] .settings227-callout p,
html[data-theme="dark"] .settings227-note-card p,
html[data-theme="dark"] .settings227-install-card ol{color:#c8d5ce}

@media(max-width:1100px){
  .settings227-shell{grid-template-columns:220px minmax(0,1fr)}
  .settings227-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .settings227-shell{grid-template-columns:1fr;gap:12px}
  .settings227-menu{position:static;border-radius:18px;overflow:visible}
  .settings227-menu-head{padding:13px 14px 10px}
  .settings227-menu nav{
    display:flex;
    overflow-x:auto;
    gap:7px;
    padding:8px;
    scrollbar-width:none;
  }
  .settings227-menu nav::-webkit-scrollbar{display:none}
  .settings227-tab{
    flex:0 0 auto;
    width:auto;
    min-width:132px;
    min-height:52px;
    grid-template-columns:30px minmax(0,1fr);
    padding:7px 9px;
  }
  .settings227-tab>i{display:none}
  .settings227-tab>span:first-child{width:30px;height:30px;border-radius:10px}
  .settings227-view-head{border-radius:18px;padding:14px}
  .settings227-two-col,
  .settings227-install-grid{grid-template-columns:1fr}
}
@media(max-width:560px){
  .settings227-summary-grid,
  .settings227-summary-grid.settings227-summary-3,
  .settings227-info-list,
  .settings227-app-status{grid-template-columns:1fr}
  .settings227-link-card{align-items:flex-start;flex-direction:column}
  .settings227-view-head{align-items:flex-start}
  .settings227-view-icon{width:42px;height:42px;flex-basis:42px;border-radius:14px}
  .settings227-view-head h2{font-size:19px}
  .settings227-content .jornada-alert-settings{overflow:hidden}
}

/* 0.0.229 — Alertas de jornada em cards e manual operacional ampliado */
.settings229-jornada-alerts{
  overflow:visible!important;
  padding:18px!important;
}
.settings229-alert-main-head{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:18px!important;
  margin-bottom:14px!important;
}
.settings229-alert-main-head>div{min-width:0}
.settings229-alert-main-head h2{
  margin:3px 0 4px!important;
  font-size:20px!important;
  line-height:1.12!important;
  color:var(--cfg227-text,#102132)!important;
  letter-spacing:-.025em;
}
.settings229-alert-main-head p{
  margin:0!important;
  max-width:720px;
  font-size:11px!important;
  line-height:1.45!important;
  color:var(--cfg227-muted,#667085)!important;
}
.settings229-alert-notice{
  display:flex!important;
  align-items:flex-start!important;
  gap:11px!important;
  margin-bottom:14px;
  padding:12px 13px!important;
  border:1px solid #d9e9df!important;
  background:linear-gradient(180deg,#f3faf6,#eef7f2)!important;
}
.settings229-alert-notice>span{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#dff3e6;
  color:#0d7d43;
}
.settings229-alert-notice svg{width:18px;height:18px}
.settings229-alert-notice b{display:block;font-size:11px;color:#0d5d35}
.settings229-alert-notice p{margin:3px 0 0;font-size:10px;line-height:1.4;color:#5f7469}

.settings229-alert-cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.settings229-alert-card{
  min-width:0;
  padding:15px;
  border:1px solid #dfe9e2;
  border-radius:17px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdfc 100%);
  box-shadow:0 7px 20px rgba(16,33,50,.035);
}
.settings229-alert-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-bottom:12px;
  margin-bottom:12px;
  border-bottom:1px solid #edf2ee;
}
.settings229-alert-card-head>div{min-width:0}
.settings229-alert-card-head>div>span{
  display:block;
  font-size:8px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.12em;
  color:#789083;
}
.settings229-alert-card-head h3{
  margin:3px 0 3px;
  font-size:16px;
  line-height:1.1;
  color:#102132;
}
.settings229-alert-card-head small{
  display:block;
  font-size:9px;
  color:#728279;
}
.settings229-alert-toggle{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:32px;
  padding:0 10px;
  border-radius:999px;
  background:#edf8f1;
  border:1px solid #d9ebdf;
  color:#0d6f3e;
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.settings229-alert-toggle input{width:15px;height:15px;margin:0}
.settings229-alert-fields{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.settings229-alert-field{
  display:grid;
  grid-template-rows:auto auto 38px;
  gap:3px;
  min-width:0;
}
.settings229-alert-field>span{
  font-size:10px;
  font-weight:800;
  color:#24382e;
}
.settings229-alert-field>small{
  min-height:24px;
  font-size:8.5px;
  line-height:1.35;
  color:#7a8981;
}
.settings229-alert-field input{
  width:100%;
  min-width:0;
  height:38px;
  border:1px solid #d9e4dd;
  border-radius:10px;
  background:#fff;
  color:#102132;
  padding:0 10px;
  font-size:11px;
  box-sizing:border-box;
}
.settings229-number-input{
  position:relative;
  min-width:0;
}
.settings229-number-input input{padding-right:44px}
.settings229-number-input b{
  position:absolute;
  top:50%;right:10px;
  transform:translateY(-50%);
  font-size:9px;
  color:#77877f;
  pointer-events:none;
}
.settings229-alert-days{
  display:grid;
  gap:8px;
  margin-top:12px;
  padding-top:11px;
  border-top:1px solid #edf2ee;
}
.settings229-alert-days>div:first-child{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}
.settings229-alert-days>div:first-child b{font-size:10px;color:#24382e}
.settings229-alert-days>div:first-child small{font-size:8.5px;color:#7a8981}
.settings229-alert-days .alert-weekdays{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:5px;
}
.settings229-alert-days .alert-weekdays label{
  min-width:0;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0 6px;
  border:1px solid #dfe8e2;
  border-radius:9px;
  background:#f8faf9;
  color:#455a4e;
  font-size:9px;
  font-weight:700;
  cursor:pointer;
}
.settings229-alert-days .alert-weekdays input{width:13px;height:13px;margin:0}
.settings229-alert-days .alert-weekdays label:has(input:checked){
  background:#eaf7ef;
  border-color:#bfe1cb;
  color:#0d6f3e;
}
.settings229-alert-foot{
  display:flex;
  align-items:flex-start;
  gap:9px;
  margin-top:12px;
  padding:10px 12px;
  border-radius:13px;
  background:#f5f8f6;
  color:#61756b;
}
.settings229-alert-foot>span{display:grid;place-items:center;color:#5f7c6d;flex:0 0 18px}
.settings229-alert-foot svg{width:16px;height:16px}
.settings229-alert-foot p{margin:0;font-size:9.5px;line-height:1.45}
.settings229-alert-foot b{color:#344b3e}

.settings229-manual-intro{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:13px 14px;
  border:1px solid #dce8df;
  border-radius:17px;
  background:linear-gradient(180deg,#f5fbf7,#f0f8f3);
}
.settings229-manual-intro>div:first-child{display:flex;align-items:flex-start;gap:11px;min-width:0}
.settings229-manual-intro>div:first-child>span{
  width:34px;height:34px;flex:0 0 34px;border-radius:11px;display:grid;place-items:center;background:#dff3e6;color:#0d7d43;
}
.settings229-manual-intro svg{width:18px;height:18px}
.settings229-manual-intro b{display:block;font-size:11px;color:#0d5d35}
.settings229-manual-intro p{margin:3px 0 0;font-size:10px;line-height:1.4;color:#5f7469}
.settings229-manual-badge{
  flex:0 0 auto;
  padding:7px 10px;
  border-radius:999px;
  background:#dff3e6;
  color:#0d7540;
  font-size:9px;
  font-weight:900;
  white-space:nowrap;
}
.settings229-help-list{gap:10px!important}
.settings229-help-topic{
  border-radius:17px!important;
  box-shadow:0 5px 16px rgba(16,33,50,.025);
}
.settings229-help-topic summary{
  grid-template-columns:38px minmax(0,1fr) auto!important;
  min-height:66px;
  padding:13px 15px!important;
}
.settings229-help-topic summary>span{
  width:38px!important;
  height:38px!important;
  border-radius:12px!important;
  grid-row:auto!important;
}
.settings229-help-topic summary>div{
  display:grid;
  gap:3px;
  min-width:0;
}
.settings229-help-topic summary>div>b{
  font-size:12.5px;
  line-height:1.2;
  color:var(--cfg227-text,#102132);
}
.settings229-help-topic summary>div>small{
  font-size:9px;
  line-height:1.3;
  color:var(--cfg227-muted,#667085);
}
.settings229-help-topic summary::after{
  grid-column:3!important;
  grid-row:auto!important;
}
.settings229-manual-body{
  padding:15px 18px 18px!important;
  display:grid;
  gap:12px;
  background:linear-gradient(180deg,#fbfdfc,#ffffff);
}
.settings229-manual-section{
  padding:0;
}
.settings229-manual-section h4{
  margin:0 0 6px;
  font-size:10px;
  line-height:1.2;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#4d7c62;
}
.settings229-manual-section p{
  margin:0!important;
  font-size:10.5px;
  line-height:1.6;
  color:#405249;
}
.settings229-manual-steps{
  margin:0!important;
  padding:0!important;
  list-style:none;
  counter-reset:manualstep;
  display:grid;
  gap:7px;
}
.settings229-manual-steps li{
  position:relative;
  counter-increment:manualstep;
  min-height:30px;
  padding:7px 10px 7px 39px;
  border:1px solid #e8eee9;
  border-radius:11px;
  background:#f8faf9;
  font-size:10px;
  line-height:1.45;
  color:#405249;
}
.settings229-manual-steps li::before{
  content:counter(manualstep);
  position:absolute;
  left:9px;
  top:7px;
  width:21px;
  height:21px;
  border-radius:7px;
  display:grid;
  place-items:center;
  background:#e3f3e9;
  color:#0d7540;
  font-size:9px;
  font-weight:900;
}
.settings229-manual-tip,
.settings229-manual-warning{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px;
  align-items:start;
  padding:10px 11px;
  border-radius:11px;
  border:1px solid #deebe3;
  background:#f2f8f4;
}
.settings229-manual-tip b,
.settings229-manual-warning b{
  font-size:9px;
  color:#0d6f3e;
  white-space:nowrap;
}
.settings229-manual-tip span,
.settings229-manual-warning span{
  font-size:9.5px;
  line-height:1.45;
  color:#53685d;
}
.settings229-manual-warning{
  border-color:#f0d8d3;
  background:#fff7f5;
}
.settings229-manual-warning b{color:#b43b2e}
.settings229-manual-warning span{color:#76534e}

html[data-theme="dark"] .settings229-alert-card,
html[data-theme="dark"] .settings229-manual-body{
  background:linear-gradient(180deg,#16201b,#131917);
  border-color:#2a3630;
}
html[data-theme="dark"] .settings229-alert-card-head,
html[data-theme="dark"] .settings229-alert-days{border-color:#2a3630}
html[data-theme="dark"] .settings229-alert-card-head h3,
html[data-theme="dark"] .settings229-alert-field>span,
html[data-theme="dark"] .settings229-alert-days>div:first-child b{color:#eef5f1}
html[data-theme="dark"] .settings229-alert-toggle,
html[data-theme="dark"] .settings229-alert-notice,
html[data-theme="dark"] .settings229-manual-intro{
  background:rgba(72,184,122,.11)!important;
  border-color:rgba(72,184,122,.18)!important;
  color:#7bd39a;
}
html[data-theme="dark"] .settings229-alert-field input{
  background:#111815;
  border-color:#2a3630;
  color:#eef5f1;
}
html[data-theme="dark"] .settings229-alert-days .alert-weekdays label,
html[data-theme="dark"] .settings229-alert-foot,
html[data-theme="dark"] .settings229-manual-steps li{
  background:#1b2420;
  border-color:#2a3630;
  color:#c8d5ce;
}
html[data-theme="dark"] .settings229-alert-days .alert-weekdays label:has(input:checked){
  background:rgba(72,184,122,.14);
  border-color:rgba(72,184,122,.28);
  color:#7bd39a;
}
html[data-theme="dark"] .settings229-manual-section p,
html[data-theme="dark"] .settings229-manual-steps li{color:#c8d5ce}
html[data-theme="dark"] .settings229-manual-tip{background:rgba(72,184,122,.09);border-color:rgba(72,184,122,.16)}
html[data-theme="dark"] .settings229-manual-warning{background:rgba(196,70,55,.10);border-color:rgba(196,70,55,.20)}
html[data-theme="dark"] .settings229-manual-intro p,
html[data-theme="dark"] .settings229-alert-notice p{color:#b7c8be}

@media(max-width:1180px){
  .settings229-alert-cards{grid-template-columns:1fr}
}
@media(max-width:760px){
  .settings229-alert-main-head{flex-direction:column!important;align-items:stretch!important}
  .settings229-alert-main-head .btn{align-self:flex-start}
  .settings229-alert-fields{grid-template-columns:1fr 1fr}
  .settings229-alert-days .alert-weekdays{grid-template-columns:repeat(4,minmax(0,1fr))}
  .settings229-manual-intro{align-items:flex-start}
}
@media(max-width:520px){
  .settings229-jornada-alerts{padding:13px!important}
  .settings229-alert-fields{grid-template-columns:1fr}
  .settings229-alert-days .alert-weekdays{grid-template-columns:repeat(2,minmax(0,1fr))}
  .settings229-alert-days>div:first-child{display:grid;gap:3px}
  .settings229-manual-intro{display:grid}
  .settings229-manual-badge{justify-self:start}
  .settings229-help-topic summary{grid-template-columns:34px minmax(0,1fr) auto!important;padding:11px 12px!important}
  .settings229-help-topic summary>span{width:34px!important;height:34px!important}
  .settings229-manual-body{padding:13px!important}
  .settings229-manual-tip,
  .settings229-manual-warning{grid-template-columns:1fr}
}

/* 0.0.230 — alinhamento do Manual e contraste profissional dos temas */
.settings229-help-topic summary>div{
  display:grid!important;
  grid-template-columns:minmax(260px,360px) minmax(0,1fr);
  align-items:center;
  gap:22px;
  width:100%;
}
.settings229-help-topic summary>div>b,
.settings229-help-topic summary>div>small{
  text-align:left!important;
  margin:0!important;
  min-width:0;
}
.settings229-help-topic summary>div>small{
  grid-column:2!important;
  font-size:9.5px;
  line-height:1.35;
}
.settings225-theme-card .theme-option-btn{
  color:#17231d!important;
}
.settings225-theme-card .theme-option-copy strong{
  color:#17231d!important;
  opacity:1!important;
}
.settings225-theme-card .theme-option-copy small{
  color:#66756d!important;
  opacity:1!important;
}
.settings225-theme-card .theme-option-icon{
  color:#11834b;
}
.settings225-theme-card .theme-option-icon .theme-professional-icon{
  width:23px;
  height:23px;
  display:block;
}
html[data-theme="dark"] .settings225-theme-card .theme-option-btn,
html[data-theme="dark"] .settings225-theme-card .theme-option-copy strong{
  color:#eef5f1!important;
}
html[data-theme="dark"] .settings225-theme-card .theme-option-copy small{
  color:#9fb1a4!important;
}
@media(max-width:900px){
  .settings229-help-topic summary>div{
    grid-template-columns:1fr;
    gap:4px;
  }
  .settings229-help-topic summary>div>small{grid-column:1!important}
}

/* 0.0.231 — contraste do fluxo operacional */
.settings225 .operational-flow-status{
  display:flex;
  align-items:flex-start;
  gap:12px;
  flex-wrap:wrap;
  border:1px solid #dfe8e2;
  background:linear-gradient(180deg,#f9fcfa 0%,#f4f8f5 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}
.settings225 .operational-flow-status b{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  font-size:11px;
  letter-spacing:.08em;
  font-weight:900;
}
.settings225 .operational-flow-status span{
  align-self:center;
  font-size:16px;
  line-height:1.35;
  font-weight:800;
  color:#14211b;
}
.settings225 .operational-flow-status small{
  flex-basis:100%;
  margin-top:2px;
  font-size:13px;
  line-height:1.5;
  color:#607167;
}
.settings225 .operational-flow-status.is-active b{
  background:#eaf8ef;
  color:#157a41;
}
.settings225 .operational-flow-status.is-active span{color:#0f6d3a}
.settings225 .operational-flow-status.is-inactive b{
  background:#eef2ef;
  color:#5f6f66;
}
.settings225 .operational-flow-status.is-inactive span{color:#203028}
html[data-theme="dark"] .settings225 .operational-flow-status{
  border-color:#2b3932;
  background:linear-gradient(180deg,#171f1b 0%,#141a18 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
html[data-theme="dark"] .settings225 .operational-flow-status b{
  color:#eef5f1;
}
html[data-theme="dark"] .settings225 .operational-flow-status span{
  color:#eef5f1;
}
html[data-theme="dark"] .settings225 .operational-flow-status small{
  color:#adc0b5;
}
html[data-theme="dark"] .settings225 .operational-flow-status.is-active b{
  background:rgba(72,184,122,.18);
  color:#7ddb9f;
}
html[data-theme="dark"] .settings225 .operational-flow-status.is-active span{color:#7ddb9f}
html[data-theme="dark"] .settings225 .operational-flow-status.is-inactive b{
  background:#232d29;
  color:#c8d4cd;
}
html[data-theme="dark"] .settings225 .operational-flow-status.is-inactive span{
  color:#e8f1ec;
}

/* 2.3.4 — Perfil profissional de autoria na página Sobre */
.settings233-author-card{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:104px minmax(0,1fr);
  gap:18px;
  align-items:center;
  margin:0 0 14px;
  padding:15px;
  border:1px solid #dfe9e2;
  border-radius:17px;
  background:linear-gradient(135deg,#fbfdfc 0%,#f2f8f4 100%);
  box-shadow:0 8px 24px rgba(16,33,50,.035);
}
.settings233-author-photo-wrap{
  width:104px;
  height:104px;
  padding:3px;
  border-radius:24px;
  background:linear-gradient(145deg,#2aa962,#0d7d43);
  box-shadow:0 8px 20px rgba(13,125,67,.16);
}
.settings233-author-photo{
  display:block;
  width:100%;
  height:100%;
  border-radius:21px;
  object-fit:cover;
  object-position:center center;
  background:#e9efeb;
}
.settings233-author-copy{min-width:0}
.settings233-author-kicker{
  display:block;
  margin-bottom:4px;
  font-size:8px;
  line-height:1.2;
  font-weight:900;
  letter-spacing:.12em;
  color:#5c7869;
}
.settings233-author-copy h3{
  margin:0;
  font-size:18px;
  line-height:1.15;
  letter-spacing:-.025em;
  color:var(--cfg227-text,#102132);
}
.settings233-author-copy p{
  margin:6px 0 9px;
  font-size:10px;
  line-height:1.45;
  color:var(--cfg227-muted,#667085);
}
.settings233-author-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:7px;
  font-size:9px;
  font-weight:750;
  color:#3e6450;
}
.settings233-author-meta i{
  width:4px;
  height:4px;
  border-radius:50%;
  background:#56aa78;
}
html[data-theme="dark"] .settings233-author-card{
  background:linear-gradient(135deg,#18211d 0%,#151c19 100%);
  border-color:#2a3630;
  box-shadow:none;
}
html[data-theme="dark"] .settings233-author-kicker{color:#8fb4a0}
html[data-theme="dark"] .settings233-author-meta{color:#a9c9b8}
html[data-theme="dark"] .settings233-author-photo{background:#111815}
@media(max-width:560px){
  .settings233-author-card{
    grid-template-columns:82px minmax(0,1fr);
    gap:13px;
    padding:13px;
  }
  .settings233-author-photo-wrap{width:82px;height:82px;border-radius:20px}
  .settings233-author-photo{border-radius:17px}
  .settings233-author-copy h3{font-size:16px}
  .settings233-author-copy p{margin:5px 0 8px}
}
@media(max-width:390px){
  .settings233-author-card{grid-template-columns:72px minmax(0,1fr);gap:11px}
  .settings233-author-photo-wrap{width:72px;height:72px;border-radius:18px}
  .settings233-author-photo{border-radius:15px}
  .settings233-author-meta{gap:5px}
}


/* ui-polish-0.0.230.css */
/* 0.0.230 — avatar, tema e conferente responsável */
.theme-professional-icon{width:18px;height:18px;display:block}
.theme-switch-icon{display:grid;place-items:center;width:20px;height:20px;color:#11834b}
.theme-switch-icon .theme-professional-icon{width:18px;height:18px}
.theme-switch-label{color:#243b2f!important;opacity:1!important;font-weight:800}
html[data-theme="dark"] .theme-switch-icon{color:#8dddaa}
html[data-theme="dark"] .theme-switch-label{color:#eef5f0!important}
.avatar.avatar-priority{background:#e9f5ed}
.avatar.avatar-priority img{display:block;width:100%;height:100%;object-fit:cover;image-rendering:auto}

.conference-responsible-card{
  display:grid;
  grid-template-columns:46px minmax(260px,1fr) minmax(300px,420px);
  gap:14px;
  align-items:center;
  margin:0 0 14px;
  padding:14px 16px;
  border:1px solid #d9e7de;
  border-radius:18px;
  background:linear-gradient(180deg,#f8fcf9 0%,#f3f9f5 100%);
}
.conference-responsible-card.is-defined{grid-template-columns:46px minmax(0,1fr) auto}
.conference-responsible-icon{
  width:46px;height:46px;border-radius:14px;display:grid;place-items:center;
  background:#e3f5e9;color:#0c7b42;box-shadow:inset 0 0 0 1px rgba(12,123,66,.07)
}
.conference-responsible-icon svg{width:23px;height:23px}
.conference-responsible-copy{display:grid;gap:3px;min-width:0}
.conference-responsible-copy>span{font-size:9px;font-weight:900;letter-spacing:.09em;color:#64766c}
.conference-responsible-copy>strong{font-size:15px;line-height:1.25;color:#102319}
.conference-responsible-copy>small{font-size:10px;line-height:1.35;color:#64766c}
.conference-responsible-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.conference-responsible-form input{
  width:100%;height:42px;border:1px solid #cfdcd4;border-radius:12px;background:#fff;color:#17231d;
  padding:0 12px;font-size:12px;font-weight:700;outline:none
}
.conference-responsible-form input:focus{border-color:#4ca86c;box-shadow:0 0 0 3px rgba(41,142,79,.10)}
.conference-responsible-change{white-space:nowrap}
html[data-theme="dark"] .conference-responsible-card{background:linear-gradient(180deg,#16201b,#131a17);border-color:#2a3b31}
html[data-theme="dark"] .conference-responsible-icon{background:rgba(72,184,122,.13);color:#7bd39a}
html[data-theme="dark"] .conference-responsible-copy>strong{color:#eef5f1}
html[data-theme="dark"] .conference-responsible-copy>span,
html[data-theme="dark"] .conference-responsible-copy>small{color:#9fb1a4}
html[data-theme="dark"] .conference-responsible-form input{background:#0f1713;border-color:#314238;color:#eef5f1}
@media(max-width:900px){
  .conference-responsible-card,.conference-responsible-card.is-defined{grid-template-columns:42px minmax(0,1fr)}
  .conference-responsible-form,.conference-responsible-change{grid-column:1/-1}
  .conference-responsible-form{grid-template-columns:1fr}
}
@media(min-width:721px){.professional-topbar .theme-switch-label{display:inline!important}}

