:root{
  --navy:#061a32;--navy-2:#08213f;--blue:#0b66c3;--silver:#d7dde7;--text:#152033;--muted:#667085;--bg:#f5f7fb;--card:#ffffff;--line:#e6ebf2;--danger:#b42318;--success:#027a48;--warning:#b54708;--radius:22px;--shadow:0 18px 45px rgba(6,26,50,.13)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:var(--bg)}a{color:inherit;text-decoration:none}img{max-width:100%}.btn,button.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border:0;border-radius:999px;background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff;padding:.82rem 1.15rem;font-weight:800;cursor:pointer;box-shadow:0 10px 24px rgba(8,33,63,.2);transition:.2s}.btn:hover{transform:translateY(-1px);filter:brightness(1.07)}.btn.ghost{background:#fff;color:var(--navy);border:1px solid var(--line);box-shadow:none}.btn.danger{background:linear-gradient(135deg,#b42318,#d92d20)}.btn.small{padding:.48rem .8rem;font-size:.86rem}.btn.wide{width:100%}.badge{display:inline-flex;padding:.25rem .58rem;border-radius:999px;font-size:.78rem;font-weight:800;background:#eef4ff;color:#1849a9}.badge.zero{background:#fff1f3;color:#c01048}.badge.ok{background:#ecfdf3;color:#027a48}.badge.warn{background:#fffaeb;color:#b54708}.alert{margin:1rem 0;padding:1rem 1.2rem;border-radius:18px;font-weight:700}.alert.sucesso{background:#ecfdf3;color:#027a48}.alert.erro{background:#fff1f3;color:#b42318}.alert.info{background:#eef4ff;color:#1849a9}.public-alert{position:fixed;z-index:20;left:50%;top:20px;transform:translateX(-50%);box-shadow:var(--shadow)}
/* Vitrine */
.hero{min-height:92vh;background:radial-gradient(circle at 75% 20%,rgba(11,102,195,.35),transparent 30%),linear-gradient(135deg,#020b16 0%,#061a32 55%,#0a315f 100%);color:#fff;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;inset:auto -10% -40% -10%;height:70%;background:linear-gradient(180deg,transparent,rgba(255,255,255,.08));transform:skewY(-6deg)}.public-nav{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;max-width:1180px;margin:0 auto;padding:1.1rem 1rem}.public-brand{display:flex;align-items:center;gap:.8rem;font-weight:900;font-size:1.2rem}.public-brand img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(0,0,0,.35))}.public-links{display:flex;align-items:center;gap:1rem}.public-links a{color:#dbeafe;font-weight:700}.hero-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.05fr .95fr;gap:3rem;max-width:1180px;margin:0 auto;padding:5.5rem 1rem 7rem}.eyebrow{text-transform:uppercase;letter-spacing:.18em;color:#93c5fd;font-weight:900;font-size:.78rem}.hero h1{font-size:clamp(2.4rem,5vw,5.5rem);line-height:.98;margin:.8rem 0 1.2rem}.hero p{font-size:1.14rem;line-height:1.7;color:#dbeafe;max-width:670px}.hero-actions{display:flex;gap:1rem;flex-wrap:wrap;margin-top:2rem}.hero-card{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:32px;padding:2rem;backdrop-filter:blur(16px);box-shadow:0 30px 80px rgba(0,0,0,.25)}.hero-card img{display:block;margin:0 auto 1rem;max-height:320px;object-fit:contain}.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:.8rem;margin-top:1rem}.hero-stats div{background:rgba(255,255,255,.1);border-radius:18px;padding:1rem}.hero-stats strong{font-size:1.55rem;display:block}.section{max-width:1180px;margin:0 auto;padding:4rem 1rem}.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1.4rem}.section-title h2{font-size:2.1rem;margin:0}.section-title p{color:var(--muted);margin:.35rem 0 0}.searchbar{display:flex;gap:.7rem;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:20px;padding:.7rem;box-shadow:var(--shadow)}.searchbar input,.searchbar select{border:1px solid var(--line);border-radius:999px;padding:.8rem 1rem;min-width:220px}.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;margin-top:1.4rem}.product-card{background:#fff;border:1px solid var(--line);border-radius:28px;overflow:hidden;box-shadow:0 10px 30px rgba(8,33,63,.06);display:flex;flex-direction:column;min-height:310px}.product-media{height:145px;background:linear-gradient(135deg,#f8fafc,#e6ebf2);display:flex;align-items:center;justify-content:center}.product-media img{max-height:110px;opacity:.9}.product-body{padding:1.15rem;display:flex;flex-direction:column;gap:.75rem;flex:1}.product-body h3{margin:0;font-size:1.05rem}.product-meta{color:var(--muted);font-size:.88rem}.product-price{font-size:1.45rem;font-weight:900;color:var(--navy)}.info-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:1rem}.info-card,.panel,.stat-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 10px 30px rgba(8,33,63,.06);padding:1.25rem}.info-card h3{margin-top:0}.whatsapp-float{position:fixed;right:22px;bottom:22px;width:62px;height:62px;border-radius:50%;background:#22c55e;color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 18px 35px rgba(34,197,94,.38);z-index:10}.whatsapp-float img{width:62px;height:62px;display:block}.modal{display:none;position:fixed;inset:0;background:rgba(2,11,22,.72);z-index:30;align-items:center;justify-content:center;padding:1rem}.modal.open{display:flex}.login-card{background:#fff;border-radius:30px;padding:2rem;max-width:420px;width:100%;box-shadow:0 25px 80px rgba(0,0,0,.38)}.login-card h2{margin-top:0}.form-row{display:grid;gap:.35rem;margin:.8rem 0}.form-row input,.form-row select,.form-row textarea,.grid-form input,.grid-form select,.grid-form textarea{border:1px solid var(--line);border-radius:16px;padding:.85rem 1rem;font:inherit;background:#fff}.form-row textarea{min-height:110px}.inline-check{display:flex;align-items:center;gap:.5rem;color:var(--muted)}
/* Área interna */
body.internal{display:grid;grid-template-columns:280px 1fr;min-height:100vh;background:#f3f6fb}.sidebar{position:sticky;top:0;height:100vh;background:linear-gradient(180deg,#041020,#08213f);padding:1rem;color:#fff;overflow-y:auto}.brand{display:flex;align-items:center;gap:.7rem;font-weight:900;font-size:1.2rem;margin-bottom:1.3rem}.brand img{width:54px;height:54px;object-fit:contain}.sidebar nav{display:grid;gap:.25rem}.sidebar a:not(.brand){padding:.85rem 1rem;border-radius:16px;color:#dbeafe;font-weight:750}.sidebar a.active,.sidebar a:hover{background:rgba(255,255,255,.12);color:#fff}.workspace{padding:1.2rem;min-width:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;background:#fff;border:1px solid var(--line);border-radius:24px;padding:1rem 1.2rem;margin-bottom:1rem;box-shadow:0 8px 25px rgba(8,33,63,.06)}.topbar small{display:block;color:var(--muted);margin-top:.2rem}.topbar-actions{display:flex;gap:.5rem;flex-wrap:wrap}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1rem}.stat-card span{color:var(--muted);font-weight:750}.stat-card strong{display:block;font-size:2rem;margin-top:.35rem}.dashboard-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:1rem}.table-wrap{overflow:auto;border-radius:18px;border:1px solid var(--line)}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:.85rem;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}th{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:#667085;background:#f8fafc}.actions{display:flex;gap:.45rem;flex-wrap:wrap}.grid-form{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}.grid-form h2,.grid-form .full{grid-column:1/-1}.grid-form label{display:grid;gap:.35rem;font-weight:750}.panel h1,.panel h2{margin-top:0}.split{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.filters{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin-bottom:1rem}.filters input,.filters select{border:1px solid var(--line);border-radius:999px;padding:.72rem 1rem}.print-label{width:80mm;min-height:45mm;padding:5mm;background:#fff;color:#000;font-family:Arial,sans-serif}.receipt{width:80mm;max-width:100%;background:#fff;padding:5mm;color:#000;font-family:Consolas,monospace}.receipt h2{text-align:center;margin:.2rem 0}.receipt table td,.receipt table th{padding:.2rem;border-bottom:1px dashed #999}.installer{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem;background:radial-gradient(circle at 70% 20%,rgba(11,102,195,.22),transparent 35%),#f3f6fb}.install-card{background:#fff;border:1px solid var(--line);border-radius:32px;padding:2rem;max-width:760px;width:100%;box-shadow:var(--shadow)}.install-logo{width:130px;display:block;margin:0 auto 1rem}
@media(max-width:980px){.hero-grid,.dashboard-grid,.split{grid-template-columns:1fr}.products-grid,.info-grid,.stats-grid{grid-template-columns:1fr 1fr}body.internal{grid-template-columns:1fr}.sidebar{position:relative;height:auto}.workspace{padding:.8rem}.grid-form{grid-template-columns:1fr}.public-links{display:none}}
@media(max-width:620px){.products-grid,.info-grid,.stats-grid{grid-template-columns:1fr}.hero-stats{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.section-title{display:block}}
@media print{body{background:#fff}.sidebar,.topbar,.no-print,.alert{display:none!important}.workspace{padding:0}.panel{box-shadow:none;border:0;padding:0}.receipt,.print-label{margin:0}.receipt .btn{display:none}}

/* Padrão visual único para modais, confirmações e feedbacks do sistema */
:root{--brand-primary:var(--navy);--brand-accent:var(--blue)}
.modal-card{position:relative;background:var(--card);border:1px solid var(--line);border-radius:30px;padding:2rem;max-width:460px;width:100%;box-shadow:0 25px 80px rgba(0,0,0,.38);animation:modalIn .18s ease-out}
.login-card{position:relative;border:1px solid var(--line);animation:modalIn .18s ease-out}
.modal-card h2,.login-card h2{margin:0 0 .5rem}.modal-card p,.login-card p{color:var(--muted);line-height:1.55}.modal-close{position:absolute;top:1rem;right:1rem;width:38px;height:38px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--navy);font-size:1.35rem;line-height:1;cursor:pointer}.modal-icon{width:52px;height:52px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:#fff1f3;color:var(--danger);font-weight:950;font-size:1.4rem;margin-bottom:1rem}.modal-actions{display:flex;justify-content:flex-end;gap:.7rem;margin-top:1.4rem;flex-wrap:wrap}.system-toast-region{position:fixed;top:18px;right:18px;z-index:60;display:grid;gap:.7rem;width:min(390px,calc(100vw - 36px))}.system-toast{display:grid;grid-template-columns:1fr auto;gap:.15rem .75rem;align-items:start;background:#fff;border:1px solid var(--line);border-left:6px solid var(--blue);border-radius:20px;padding:1rem 1rem 1rem 1.05rem;box-shadow:var(--shadow);opacity:0;transform:translateY(-10px);transition:.22s}.system-toast.show{opacity:1;transform:translateY(0)}.system-toast strong{font-size:.82rem;text-transform:uppercase;letter-spacing:.06em;color:var(--navy)}.system-toast span{grid-column:1;color:var(--text);font-weight:700}.system-toast button{grid-row:1/3;grid-column:2;border:0;background:transparent;font-size:1.25rem;cursor:pointer;color:var(--muted)}.system-toast.erro{border-left-color:var(--danger)}.system-toast.sucesso{border-left-color:var(--success)}.system-toast.info{border-left-color:var(--blue)}.field-error{border-color:var(--danger)!important;box-shadow:0 0 0 4px rgba(180,35,24,.12)!important}.brand-preview{display:flex;align-items:center;gap:1rem;border:1px dashed var(--line);border-radius:20px;padding:1rem;background:#f8fafc}.brand-preview img{width:88px;height:88px;object-fit:contain;border-radius:18px;background:#fff;border:1px solid var(--line);padding:.35rem}.form-help{font-size:.84rem;color:var(--muted);font-weight:600}.color-row{display:flex;align-items:center;gap:.8rem}.color-row input[type=color]{width:68px;height:44px;padding:3px;border-radius:14px}.settings-grid{align-items:start}@keyframes modalIn{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}

/* Vendas, recibo térmico e configurações fiscais/marketplace */
.inline-form{display:inline-flex;margin:0}.settings-box{border:1px solid var(--line);border-radius:20px;background:#f8fafc;padding:1rem;display:grid;gap:.8rem}.settings-box h3{margin:.1rem 0}.grid-form.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.receipt-panel{display:flex;flex-direction:column;align-items:flex-start}.thermal-receipt{width:80mm;max-width:80mm;background:#fff;color:#111;padding:4mm;font-family:"Courier New",Consolas,monospace;font-size:10.5px;line-height:1.25;border:1px solid #ddd;box-shadow:0 10px 30px rgba(0,0,0,.07);overflow:hidden}.thermal-receipt .r-head{font-size:11px}.thermal-receipt .r-center{text-align:center}.thermal-receipt .r-line{border-top:1px dashed #111;margin:3px 0}.thermal-receipt .r-row{display:flex;justify-content:space-between;gap:6px}.thermal-receipt table{font-family:inherit;font-size:10px;background:#fff}.thermal-receipt th,.thermal-receipt td{padding:2px 1px;border-bottom:0;text-align:left;vertical-align:top}.thermal-receipt th{background:#fff;color:#111;letter-spacing:0;text-transform:none;border-bottom:1px dashed #111}.thermal-receipt .receipt-items td:nth-child(1),.thermal-receipt .receipt-items th:nth-child(1){width:8mm;text-align:center}.thermal-receipt .receipt-items td:nth-child(3),.thermal-receipt .receipt-items th:nth-child(3){width:7mm;text-align:center}.thermal-receipt .receipt-items td:nth-child(4),.thermal-receipt .receipt-items th:nth-child(4),.thermal-receipt .receipt-items td:nth-child(5),.thermal-receipt .receipt-items th:nth-child(5),.thermal-receipt .receipt-items td:nth-child(6),.thermal-receipt .receipt-items th:nth-child(6){text-align:right}.receipt-totals{text-align:right;margin:2px 0}.receipt-totals strong{display:block}.r-signatures{display:grid;grid-template-columns:1fr 1fr;gap:10mm;margin-top:16mm;text-align:center}.r-signatures span{border-top:1px dashed #111;padding-top:2px}.r-canceled{margin:6px 0;padding:4px;border:1px dashed #111;text-align:center;font-weight:900}.badge.zero{background:#fff1f3;color:#c01048}
@media print{@page{size:80mm auto;margin:0}body.internal{display:block;background:#fff}.workspace{display:block;padding:0!important}.receipt-panel{padding:0!important;margin:0!important}.thermal-receipt{width:80mm;max-width:80mm;border:0;box-shadow:none;padding:3mm;margin:0;font-size:10px}.thermal-receipt table{page-break-inside:auto}.thermal-receipt tr{page-break-inside:avoid;page-break-after:auto}}
@media(max-width:620px){.grid-form.compact{grid-template-columns:1fr}.thermal-receipt{max-width:100%;width:100%}}

/* Dashboard profissional e interativo */
.dashboard-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--brand-primary),var(--navy-2));color:#fff;border-radius:32px;padding:1.5rem 1.6rem;margin-bottom:1rem;display:flex;justify-content:space-between;gap:1rem;align-items:center;box-shadow:var(--shadow)}
.dashboard-hero:after{content:"";position:absolute;right:-80px;top:-120px;width:280px;height:280px;border-radius:50%;background:rgba(255,255,255,.14)}
.dashboard-hero h1{margin:.2rem 0;font-size:clamp(1.6rem,3vw,2.7rem)}.dashboard-hero p{max-width:720px;color:#dbeafe;margin:0}.dashboard-hero-actions{position:relative;z-index:1;display:flex;gap:.6rem;flex-wrap:wrap}.dashboard-hero .btn.ghost{border-color:rgba(255,255,255,.35);color:#fff}.dashboard-hero .eyebrow{color:#bfdbfe}
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;margin-bottom:1rem}.kpi-card{background:#fff;border:1px solid var(--line);border-radius:26px;padding:1.15rem;box-shadow:0 10px 28px rgba(8,33,63,.06);position:relative;overflow:hidden}.kpi-card:before{content:"";position:absolute;inset:auto -40px -60px auto;width:130px;height:130px;border-radius:50%;background:rgba(11,102,195,.08)}.kpi-card span{font-weight:850;color:var(--muted);font-size:.88rem}.kpi-card strong{display:block;margin:.45rem 0 .25rem;font-size:clamp(1.35rem,2.5vw,2.15rem);letter-spacing:-.03em}.kpi-card small{color:var(--muted);font-weight:650}.kpi-card.primary{background:linear-gradient(135deg,var(--brand-accent),var(--brand-primary));color:#fff}.kpi-card.primary span,.kpi-card.primary small{color:#eaf3ff}.kpi-card.alert strong{color:var(--danger)}
.dashboard-pro-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:1rem}.dash-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:1.15rem;box-shadow:0 10px 28px rgba(8,33,63,.06);min-width:0}.dash-card.wide{grid-column:1/-1}.dash-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.8rem;margin-bottom:.8rem}.dash-card h2{margin:0;font-size:1.15rem}.dash-card h3{margin:.1rem 0 .7rem}.dash-card p,.muted{color:var(--muted);margin:.15rem 0}.chart-range{display:flex;gap:.35rem;background:#f1f5f9;border-radius:999px;padding:.25rem}.chart-range button{border:0;background:transparent;border-radius:999px;padding:.45rem .7rem;font-weight:850;color:var(--muted);cursor:pointer}.chart-range button.active{background:#fff;color:var(--brand-primary);box-shadow:0 4px 12px rgba(8,33,63,.08)}.alert-stack{display:grid;gap:.65rem}.smart-alert{border:1px solid var(--line);border-left:6px solid var(--brand-accent);border-radius:18px;padding:.85rem;background:#f8fafc;display:grid;gap:.2rem}.smart-alert strong{color:var(--navy)}.smart-alert span{color:var(--muted);font-weight:650}.smart-alert.warn{border-left-color:#f59e0b}.smart-alert.zero{border-left-color:var(--danger)}.smart-alert.ok{border-left-color:var(--success)}.ranking-list{display:grid;gap:.65rem}.ranking-list div{display:grid;grid-template-columns:42px 1fr;gap:.65rem;align-items:start;border-bottom:1px solid var(--line);padding-bottom:.65rem}.ranking-list b{background:#eef6ff;color:var(--brand-primary);border-radius:14px;text-align:center;padding:.45rem .2rem}.ranking-list span{font-weight:850}.ranking-list small{display:block;color:var(--muted);font-weight:650;margin-top:.15rem}.ops-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.mini-table{display:grid;gap:.5rem}.mini-table>div{display:flex;justify-content:space-between;gap:.8rem;align-items:flex-start;border:1px solid var(--line);border-radius:18px;padding:.7rem;background:#fbfdff}.mini-table span{font-weight:750}.mini-table small{display:block;color:var(--muted);font-weight:600}.mini-table b{white-space:nowrap;color:var(--brand-primary)}

/* Venda com leitor e lista de estoque */
.sale-product-preview{border:1px dashed var(--line);border-radius:20px;background:#f8fafc;padding:1rem;color:var(--muted);display:grid;gap:.25rem}.sale-product-preview.active{border-style:solid;background:#eef6ff;color:var(--text)}.sale-product-preview strong{font-size:1rem;color:var(--navy)}.sale-product-preview span{font-weight:650;color:var(--muted)}.sale-product-preview b{color:var(--brand-primary)}

/* Assistente IA de estoque */
.ai-capture-box{display:grid;grid-template-columns:1.2fr .8fr;gap:1rem;align-items:stretch;border:1px solid var(--line);border-radius:28px;background:linear-gradient(135deg,#f8fafc,#eef6ff);padding:1rem;margin-bottom:1rem}.ai-capture-box h2{margin:.1rem 0}.ai-capture-box p{color:var(--muted);max-width:760px}.ai-file-btn{cursor:pointer}.ai-preview{border:1px solid var(--line);border-radius:22px;background:#fff;display:flex;align-items:center;justify-content:center;min-height:190px;overflow:hidden}.ai-preview img{width:100%;height:100%;object-fit:contain;max-height:260px}.ai-result{margin-top:.8rem;border:1px dashed var(--line);border-radius:18px;padding:.8rem;color:var(--muted);background:#fff}.ai-result.active{border-style:solid;color:var(--text)}.ai-result ul{margin:.45rem 0 0;padding-left:1.2rem}.ai-filled{border-color:var(--brand-accent)!important;box-shadow:0 0 0 4px rgba(11,102,195,.13)!important;transition:.2s}
@media(max-width:1100px){.kpi-grid,.ops-grid{grid-template-columns:1fr 1fr}.dashboard-pro-grid{grid-template-columns:1fr}.ai-capture-box{grid-template-columns:1fr}.dashboard-hero{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.kpi-grid,.ops-grid{grid-template-columns:1fr}.dash-card-head{display:block}.chart-range{margin-top:.6rem;width:max-content}.dashboard-hero{border-radius:24px}.kpi-card,.dash-card{border-radius:22px}}

/* Consulta por etiqueta, foto do produto e etiqueta profissional */
.quick-scan-panel{border:1px solid rgba(11,102,195,.18);background:linear-gradient(135deg,#fff,#f4f8ff)}
.quick-scan-form{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:.75rem;align-items:end}.quick-scan-form .full{grid-column:1/-1}.scan-field{display:grid;gap:.35rem;font-weight:850}.scan-field input{border:2px solid var(--brand-accent);border-radius:18px;padding:1rem 1.05rem;font-size:1.05rem;font-weight:800;background:#fff}.scan-video{width:100%;max-height:360px;object-fit:cover;border-radius:22px;border:1px solid var(--line);margin-top:1rem;background:#000}.scan-status{margin-top:.65rem;color:var(--muted);font-weight:750}.scan-status.erro{color:var(--danger)}.scan-status.info{color:var(--brand-primary)}.compact-title{align-items:center}.table-product-photo{width:58px;height:58px;object-fit:cover;border:1px solid var(--line);border-radius:14px;background:#f8fafc;padding:2px}.product-photo-upload input{padding:.8rem;background:#f8fafc}.product-image-preview{display:flex;align-items:center;gap:1rem;border:1px dashed var(--line);border-radius:22px;background:#f8fafc;padding:1rem}.product-image-preview.active{border-style:solid;background:#eef6ff}.product-image-preview img{width:132px;height:96px;object-fit:contain;border-radius:18px;border:1px solid var(--line);background:#fff}.product-image-preview span{font-weight:750;color:var(--muted)}
.product-consult-card{display:grid;grid-template-columns:340px 1fr;gap:1rem;background:#fff;border:1px solid var(--line);border-radius:30px;padding:1.1rem;box-shadow:0 10px 30px rgba(8,33,63,.07);margin-bottom:1rem}.product-consult-media{border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,#f8fafc,#eef2f7);display:flex;align-items:center;justify-content:center;min-height:280px;overflow:hidden}.product-consult-media img{width:100%;height:100%;max-height:330px;object-fit:contain}.product-consult-info h2{font-size:clamp(1.55rem,3vw,2.4rem);margin:.55rem 0 1rem}.consult-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-bottom:1rem}.consult-meta-grid div{border:1px solid var(--line);border-radius:18px;background:#f8fafc;padding:.8rem;min-width:0}.consult-meta-grid small{display:block;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-size:.72rem;font-weight:900}.consult-meta-grid strong{display:block;color:var(--navy);overflow-wrap:anywhere;margin-top:.18rem}.label-screen{display:grid;gap:1rem;align-items:start}.label-preview-note{color:var(--muted);font-weight:750}.professional-label{width:80mm;min-height:52mm;padding:3.5mm;border:1px solid #111;background:#fff;color:#000;font-family:Arial,Helvetica,sans-serif;display:grid;gap:2mm}.label-top{display:grid;grid-template-columns:12mm 1fr;gap:2mm;align-items:center;border-bottom:1px solid #111;padding-bottom:1.5mm}.label-top img{width:11mm;height:11mm;object-fit:contain}.label-top strong{display:block;font-size:11px;line-height:1.1}.label-top small{display:block;font-size:8px}.label-name{font-size:10px;font-weight:900;line-height:1.1;text-transform:uppercase;min-height:8mm}.label-grid{display:grid;grid-template-columns:1fr 1fr;gap:1mm 3mm;font-size:8px}.label-grid small{display:block;color:#444;text-transform:uppercase}.label-grid b{font-size:9px;overflow-wrap:anywhere}.label-barcode{width:100%;height:16mm}.label-bottom{display:grid;grid-template-columns:24mm 1fr;gap:2.5mm;align-items:center}.label-qrcode{width:24mm;height:24mm}.label-bottom-info small{display:block;font-size:8px;color:#333}.label-bottom-info strong{display:block;font-size:15px;margin:1mm 0}.label-bottom-info span{display:block;font-size:9px;font-weight:800}.label-code-line{text-align:center;font-size:7.5px;border-top:1px solid #111;padding-top:1mm;letter-spacing:.03em}
@media(max-width:980px){.quick-scan-form{grid-template-columns:1fr}.product-consult-card{grid-template-columns:1fr}.consult-meta-grid{grid-template-columns:1fr 1fr}.product-consult-media{min-height:220px}.table-product-photo{width:48px;height:48px}}
@media(max-width:720px){body.internal{display:block}.sidebar{position:sticky;top:0;z-index:25;border-radius:0 0 22px 22px;padding:.75rem;max-height:42vh}.brand{margin-bottom:.6rem}.brand img{width:42px;height:42px}.sidebar nav{display:flex;overflow-x:auto;gap:.35rem;padding-bottom:.2rem}.sidebar a:not(.brand){white-space:nowrap;padding:.7rem .85rem}.workspace{padding:.75rem}.topbar{border-radius:20px}.topbar-actions{width:100%}.topbar-actions .btn{flex:1}.panel{padding:1rem;border-radius:20px}.filters{display:grid;grid-template-columns:1fr;align-items:stretch}.filters input,.filters select,.filters .btn{width:100%}.actions .btn,.actions button.btn{min-height:42px}.grid-form input,.grid-form select,.grid-form textarea,.form-row input,.form-row select,.form-row textarea{font-size:16px}.table-wrap{border-radius:16px;overflow-x:auto;-webkit-overflow-scrolling:touch}table{min-width:760px}.public-nav{align-items:flex-start}.hero-grid{padding-top:3rem}.searchbar{display:grid}.searchbar input,.searchbar select,.searchbar button{width:100%;min-width:0}.consult-meta-grid{grid-template-columns:1fr}.product-image-preview{align-items:flex-start;flex-direction:column}.product-image-preview img{width:100%;height:180px}.whatsapp-float{right:16px;bottom:16px;width:56px;height:56px}.whatsapp-float img{width:56px;height:56px}}
@media(max-width:420px){.btn,button.btn{width:100%;padding:.9rem 1rem}.quick-scan-form{gap:.55rem}.professional-label{width:76mm}.thermal-receipt{font-size:9.5px}.system-toast-region{left:12px;right:12px;top:12px;width:auto}.modal-card,.login-card{border-radius:22px;padding:1.2rem}}
@media print{.label-screen{padding:0!important}.professional-label{width:80mm;min-height:52mm;border:0;box-shadow:none;margin:0;padding:3mm;page-break-after:always}.professional-label *{color:#000!important}.label-preview-note{display:none!important}}

/* Vendas v6: terminal de balcão com carrinho e consulta de valor */
.sale-terminal-panel{background:linear-gradient(180deg,#fff,#f8fbff)}
.sale-cart-form{align-items:start}.sale-scan-box{border:1px solid rgba(11,102,195,.18);border-radius:26px;background:linear-gradient(135deg,#eef6ff,#fff);padding:1rem;box-shadow:0 14px 34px rgba(8,33,63,.06)}
.sale-scan-grid{display:grid;grid-template-columns:minmax(260px,1fr) 110px auto auto auto;gap:.75rem;align-items:end}.sale-scan-grid .btn{min-height:52px}.sale-qty-field input{text-align:center}.sale-preview-row{display:flex;align-items:center;gap:.85rem}.sale-preview-row img{width:76px;height:58px;object-fit:contain;border-radius:14px;border:1px solid var(--line);background:#fff}.sale-preview-row div{display:grid;gap:.18rem}.sale-price-consult{display:flex;align-items:center;gap:1rem;border:1px solid rgba(11,102,195,.2);border-radius:24px;background:#fff;padding:1rem;box-shadow:0 12px 30px rgba(8,33,63,.06)}.sale-price-consult img{width:126px;height:96px;object-fit:contain;border-radius:18px;border:1px solid var(--line);background:#f8fafc}.sale-price-consult h3{margin:.4rem 0}.sale-price-consult p{margin:.25rem 0;color:var(--muted);font-weight:700}.sale-price-consult strong{display:block;margin-top:.3rem;color:var(--brand-primary);font-size:1.8rem}.sale-cart-box{border:1px solid var(--line);border-radius:26px;background:#fff;padding:1rem}.sale-cart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:.7rem}.sale-cart-head h2{margin:0}.sale-cart-head p{margin:.2rem 0 0;color:var(--muted)}.sale-cart-empty{border:1px dashed var(--line);border-radius:20px;background:#f8fafc;padding:1.1rem;color:var(--muted);font-weight:800;text-align:center}.sale-cart-items{display:grid;gap:.65rem}.sale-cart-item{display:grid;grid-template-columns:72px minmax(180px,1fr) auto auto auto;gap:.8rem;align-items:center;border:1px solid var(--line);border-radius:20px;padding:.7rem;background:#fbfdff}.sale-cart-item>img{width:72px;height:58px;object-fit:contain;border:1px solid var(--line);border-radius:14px;background:#fff}.sale-cart-info{display:grid;gap:.14rem}.sale-cart-info strong{color:var(--navy)}.sale-cart-info span,.sale-cart-info small{color:var(--muted);font-weight:700}.sale-cart-controls{display:flex;align-items:center;gap:.28rem}.sale-cart-controls input{width:72px;text-align:center;border:1px solid var(--line);border-radius:12px;padding:.55rem .35rem;font-weight:900}.btn.tiny{padding:.5rem .65rem;min-height:34px;border-radius:12px;font-size:.82rem}.sale-cart-line-total{font-size:1.05rem;color:var(--brand-primary);white-space:nowrap}.sale-cart-total{display:flex;align-items:center;justify-content:flex-end;gap:1rem;margin-top:1rem;padding-top:1rem;border-top:1px dashed var(--line)}.sale-cart-total span{color:var(--muted);font-weight:800}.sale-cart-total strong{font-size:1.45rem;color:var(--navy)}.sale-final-actions{justify-content:flex-end}
@media(max-width:1120px){.sale-scan-grid{grid-template-columns:1fr 110px}.sale-scan-grid .btn{width:100%}.sale-cart-item{grid-template-columns:64px 1fr;align-items:start}.sale-cart-controls,.sale-cart-line-total,.sale-cart-item .btn.danger{grid-column:2}.sale-cart-controls{justify-content:flex-start}.sale-cart-line-total{font-size:1.2rem}}
@media(max-width:720px){.sale-terminal-panel .section-title{display:block}.sale-scan-box,.sale-cart-box{border-radius:22px;padding:.85rem}.sale-scan-grid{grid-template-columns:1fr}.sale-scan-grid .btn{min-height:48px}.sale-price-consult{align-items:flex-start;flex-direction:column}.sale-price-consult img{width:100%;height:180px}.sale-cart-head{display:grid}.sale-cart-head .btn{width:100%}.sale-cart-item{grid-template-columns:1fr;border-radius:18px}.sale-cart-item>img{width:100%;height:160px}.sale-cart-controls,.sale-cart-line-total,.sale-cart-item .btn.danger{grid-column:auto;width:100%}.sale-cart-controls input{flex:1}.sale-cart-total{align-items:stretch;flex-direction:column;text-align:right}.sale-final-actions{display:grid}.sale-preview-row{align-items:flex-start;flex-direction:column}.sale-preview-row img{width:100%;height:140px}}

/* Vendas v7: PDV profissional, atalhos e correção da quantidade */
kbd{display:inline-flex;align-items:center;justify-content:center;min-width:2.15rem;padding:.18rem .42rem;border-radius:9px;border:1px solid rgba(6,26,50,.18);background:#f8fafc;color:var(--navy);font-size:.72rem;font-weight:950;line-height:1;box-shadow:inset 0 -1px 0 rgba(6,26,50,.14)}
.btn kbd{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.32);color:inherit}.btn.ghost kbd{background:#eef6ff;border-color:#d3e6ff;color:var(--brand-primary)}
.pdv-panel{background:radial-gradient(circle at 95% 0,rgba(11,102,195,.12),transparent 30%),linear-gradient(180deg,#fff,#f8fbff)}
.pdv-title h1{letter-spacing:-.03em}.pdv-form{gap:.85rem}.pdv-shortcut-bar{display:flex;flex-wrap:wrap;gap:.45rem;border:1px solid rgba(11,102,195,.14);border-radius:20px;background:#f8fbff;padding:.65rem}.pdv-shortcut-bar span{display:inline-flex;align-items:center;gap:.42rem;border:1px solid var(--line);border-radius:999px;background:#fff;padding:.48rem .7rem;color:var(--muted);font-size:.82rem;font-weight:850;white-space:nowrap}.pdv-shortcut-bar kbd{color:var(--brand-primary)}
.pdv-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem}.pdv-summary div{border:1px solid var(--line);border-radius:20px;background:linear-gradient(180deg,#fff,#f8fafc);padding:.9rem 1rem;box-shadow:0 8px 22px rgba(8,33,63,.04)}.pdv-summary small{display:block;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:.72rem;font-weight:950}.pdv-summary strong{display:block;margin-top:.28rem;color:var(--navy);font-size:clamp(1.15rem,2vw,1.7rem);line-height:1.05;overflow-wrap:anywhere}.pdv-summary div:nth-child(3){border-color:rgba(11,102,195,.22);background:linear-gradient(135deg,#eef6ff,#fff)}.pdv-summary div:nth-child(3) strong{color:var(--brand-primary);font-size:clamp(1.45rem,2.4vw,2.05rem)}
.sale-scan-box{padding:1.1rem}.sale-scan-grid{display:grid!important;grid-template-columns:minmax(280px,1fr) 130px!important;gap:.85rem!important;align-items:end!important}.sale-code-field{min-width:0}.sale-qty-field input{height:56px;text-align:center;font-size:1.15rem;font-weight:950}.sale-scan-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.sale-scan-actions .btn{width:100%;min-height:50px;white-space:normal;text-align:center;box-shadow:none}.sale-scan-actions .btn:first-child{box-shadow:0 10px 24px rgba(8,33,63,.16)}
.sale-cart-box{box-shadow:0 14px 36px rgba(8,33,63,.05)}.sale-cart-head{border-bottom:1px dashed var(--line);padding-bottom:.75rem}.sale-cart-item{transition:.18s}.sale-cart-item:hover{border-color:rgba(11,102,195,.22);box-shadow:0 10px 24px rgba(8,33,63,.05);transform:translateY(-1px)}.sale-final-actions{position:sticky;bottom:.75rem;z-index:8;background:rgba(248,251,255,.88);backdrop-filter:blur(12px);padding:.75rem;border:1px solid rgba(11,102,195,.12);border-radius:22px}.sale-final-actions .btn{min-height:52px}
@media(max-width:980px){.pdv-summary{grid-template-columns:repeat(2,1fr)}.sale-scan-grid{grid-template-columns:1fr 120px!important}.sale-scan-actions{grid-template-columns:1fr}.sale-scan-actions .btn{justify-content:flex-start}}
@media(max-width:720px){.pdv-title .btn{width:100%;margin-top:.75rem}.pdv-shortcut-bar{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.pdv-shortcut-bar span{justify-content:flex-start}.pdv-summary{grid-template-columns:1fr}.sale-scan-grid{grid-template-columns:1fr!important}.sale-scan-actions .btn{justify-content:center}.sale-final-actions{position:static;display:grid}.sale-final-actions .btn,.sale-final-actions a{width:100%}}
@media(max-width:420px){.pdv-shortcut-bar{grid-template-columns:1fr}.sale-scan-actions{gap:.55rem}.sale-scan-box{padding:.8rem}.pdv-summary div{padding:.85rem}.sale-qty-field input{height:52px}}

/* Vendas v8: correção definitiva do campo Qtd. e responsividade geral */
html,body{max-width:100%;overflow-x:hidden}
.workspace,.panel,.grid-form,.grid-form>*,.sale-terminal-panel,.sale-cart-form,.sale-scan-box,.sale-scan-grid,.sale-scan-actions{min-width:0;max-width:100%}
.grid-form input,.grid-form select,.grid-form textarea,.form-row input,.form-row select,.form-row textarea,.scan-field input{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.sale-scan-box{overflow:hidden}
.sale-scan-grid{width:100%;grid-template-columns:minmax(0,1fr) minmax(92px,118px)!important;column-gap:.85rem!important;row-gap:.85rem!important;align-items:end!important}
.sale-code-field,.sale-qty-field{width:100%;min-width:0;max-width:100%}
.sale-qty-field{justify-self:stretch;align-self:end}
.sale-qty-field input{width:100%;height:56px;padding-left:.55rem!important;padding-right:.55rem!important;text-align:center;font-size:1.12rem;font-weight:950}
.sale-code-field input{width:100%}
.sale-scan-actions{grid-column:1/-1;width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}
.sale-scan-actions .btn{min-width:0;width:100%;padding-left:.7rem;padding-right:.7rem;overflow:hidden;text-overflow:ellipsis}
select{max-width:100%}
img,video{max-width:100%}
.table-wrap{max-width:100%}

@media(max-width:980px){
  .sale-scan-grid{grid-template-columns:minmax(0,1fr) minmax(88px,110px)!important}
  .sale-scan-actions{grid-template-columns:1fr!important}
}
@media(max-width:720px){
  body.internal{overflow-x:hidden}
  .workspace{width:100%;padding:.65rem}
  .panel{width:100%;overflow:hidden}
  .grid-form{grid-template-columns:1fr!important;width:100%}
  .sale-scan-grid{grid-template-columns:1fr!important}
  .sale-qty-field{max-width:100%}
  .sale-qty-field input{height:54px;font-size:1.1rem}
  .sale-scan-actions{grid-template-columns:1fr!important}
  .sale-scan-actions .btn{justify-content:center;white-space:normal}
  .pdv-shortcut-bar{grid-template-columns:1fr 1fr}
  .pdv-summary{grid-template-columns:1fr!important}
  .sale-cart-item{grid-template-columns:1fr!important}
  .sale-cart-controls,.sale-cart-line-total,.sale-cart-item .btn.danger{grid-column:auto!important;width:100%}
}
@media(max-width:420px){
  .workspace{padding:.5rem}
  .panel{padding:.85rem;border-radius:18px}
  .sale-scan-box,.sale-cart-box{padding:.75rem;border-radius:18px}
  .pdv-shortcut-bar{grid-template-columns:1fr!important}
  .btn,button.btn{min-height:48px}
}


/* Vendas v9: alinhamento harmonico SKU + quantidade */
@media(min-width:721px){
  .sale-scan-grid{
    grid-template-columns:minmax(0,calc(100% - 170px)) 150px!important;
    column-gap:1rem!important;
    align-items:start!important;
  }
  .sale-code-field input,
  .sale-qty-field input{
    height:56px;
    margin-top:.35rem;
  }
  .sale-code-field{max-width:100%;}
  .sale-qty-field{width:150px;max-width:150px;justify-self:end;align-self:start;}
  .sale-qty-field input{width:100%;}
  .sale-scan-actions{grid-column:1/-1;margin-top:.1rem;}
}
@media(max-width:900px) and (min-width:721px){
  .sale-scan-grid{
    grid-template-columns:minmax(0,calc(100% - 150px)) 132px!important;
    column-gap:.8rem!important;
  }
  .sale-qty-field{width:132px;max-width:132px;}
}
@media(max-width:720px){
  .sale-code-field input,
  .sale-qty-field input{margin-top:.35rem;}
  .sale-qty-field{width:100%;max-width:100%;justify-self:stretch;}
}

/* v10: E-mail interno + responsividade da nova aba */
.email-panel{overflow:hidden}
.email-command-grid{display:grid;grid-template-columns:1.15fr .85fr .85fr;gap:1rem;margin:1rem 0}
.email-card{border:1px solid var(--line);border-radius:24px;background:linear-gradient(180deg,#fff,#f8fafc);padding:1rem;box-shadow:0 10px 26px rgba(8,33,63,.05);min-width:0}
.email-card.primary{border-color:rgba(11,102,195,.22);background:linear-gradient(135deg,#eef6ff,#fff)}
.email-card span{display:block;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-size:.72rem;font-weight:950}
.email-card strong{display:block;margin:.35rem 0;color:var(--navy);font-size:clamp(1.05rem,2vw,1.45rem);overflow-wrap:anywhere}
.email-card small{display:block;color:var(--muted);font-weight:700;line-height:1.45;overflow-wrap:anywhere}
.email-actions{display:flex;gap:.65rem;flex-wrap:wrap;margin:1rem 0}
.email-frame-wrap{border:1px solid var(--line);border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 10px 26px rgba(8,33,63,.05);min-height:70vh}
.email-frame{display:block;width:100%;min-height:70vh;border:0;background:#fff}
@media(max-width:980px){.email-command-grid{grid-template-columns:1fr}.email-actions .btn{flex:1 1 220px}.email-frame-wrap,.email-frame{min-height:68vh}}
@media(max-width:620px){.email-actions{display:grid}.email-actions .btn{width:100%}.email-card{border-radius:18px;padding:.9rem}.email-frame-wrap,.email-frame{min-height:65vh}}

/* v11: botão Área Interna visível no celular + WhatsApp inteligente */
.public-mobile-access{display:none}
@media(max-width:980px){
  .public-nav{gap:.75rem;align-items:center}
  .public-brand span{font-size:1rem;line-height:1.15}
  .public-mobile-access{display:inline-flex;min-height:44px;padding:.7rem .95rem;white-space:nowrap;background:#fff;color:var(--navy)}
}
@media(max-width:420px){
  .public-nav{padding:.85rem .75rem}
  .public-brand img{width:46px;height:46px}
  .public-mobile-access{font-size:.86rem;padding:.64rem .8rem}
}
.settings-box .endpoint-note,.endpoint-note{border:1px dashed rgba(11,102,195,.28);border-radius:18px;background:#f8fbff;padding:.85rem 1rem;color:var(--muted);line-height:1.65;overflow-wrap:anywhere}
.whatsapp-panel{overflow:hidden}.whatsapp-kpis{margin-bottom:1rem}.whatsapp-endpoints{display:grid;grid-template-columns:1.2fr 1.2fr .7fr;gap:.75rem;margin:1rem 0}.whatsapp-endpoints>div{border:1px solid var(--line);background:linear-gradient(180deg,#fff,#f8fafc);border-radius:20px;padding:.9rem;min-width:0}.whatsapp-endpoints small{display:block;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:950;font-size:.72rem}.whatsapp-endpoints strong{display:block;margin-top:.28rem;color:var(--navy);overflow-wrap:anywhere;font-size:.92rem}.whatsapp-dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-bottom:.9rem}.whatsapp-dashboard-card .dash-card-head{align-items:center}.whatsapp-mini-table{border-top:1px dashed var(--line);padding-top:.5rem}
@media(max-width:980px){.whatsapp-endpoints,.whatsapp-dashboard-grid{grid-template-columns:1fr}.whatsapp-dashboard-card .dash-card-head{display:grid}.whatsapp-dashboard-card .dash-card-head .btn{width:100%}}
@media(max-width:620px){.whatsapp-endpoints>div{border-radius:16px;padding:.8rem}.whatsapp-endpoints strong{font-size:.84rem}.whatsapp-dashboard-grid .kpi-card{border-radius:18px}}

/* v12: vitrine com apenas um botão Área Interna, sidebar recolhível e e-mail interno */
.public-mobile-access{display:none!important}
.public-access-btn{display:inline-flex!important}
@media(max-width:980px){
  .public-links{display:flex!important;align-items:center;gap:.5rem;margin-left:auto}
  .public-links>a{display:none!important}
  .public-access-btn{min-height:44px;padding:.7rem .95rem;white-space:nowrap;background:#fff!important;color:var(--navy)!important}
}
@media(max-width:420px){.public-access-btn{font-size:.86rem;padding:.64rem .8rem}.public-brand span{max-width:120px}}

.sidebar{width:280px;transition:transform .22s ease, margin-left .22s ease, padding .22s ease;z-index:70}.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:1rem}.sidebar-head .brand{margin-bottom:0;min-width:0}.sidebar-toggle{border:1px solid var(--line);background:#fff;color:var(--navy);border-radius:999px;font-weight:950;padding:.62rem .86rem;cursor:pointer;box-shadow:0 8px 20px rgba(8,33,63,.08);display:inline-flex;align-items:center;gap:.4rem;white-space:nowrap}.sidebar-toggle-close{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.25);color:#fff;box-shadow:none}.topbar{justify-content:flex-start}.topbar-title{min-width:0;flex:1}.topbar-actions{margin-left:auto}body.internal.sidebar-collapsed{grid-template-columns:0 minmax(0,1fr)}body.internal.sidebar-collapsed .sidebar{transform:translateX(-110%);margin-left:-280px;pointer-events:none}body.internal.sidebar-collapsed .workspace{grid-column:2}.sidebar nav a{transition:background .16s ease,color .16s ease,transform .16s ease}.sidebar nav a:active{transform:scale(.98)}
@media(max-width:980px){
  body.internal{display:block;min-height:100vh}
  .sidebar{position:fixed!important;top:0;left:0;bottom:0;height:100vh!important;max-height:none!important;width:min(320px,88vw);border-radius:0 26px 26px 0;padding:1rem;box-shadow:22px 0 60px rgba(6,26,50,.25)}
  .sidebar nav{display:grid!important;overflow:visible!important;gap:.35rem!important;padding-bottom:2rem}.sidebar a:not(.brand){white-space:normal!important}.workspace{padding:.8rem!important}.topbar{position:sticky;top:.5rem;z-index:55;align-items:center!important;flex-direction:row!important;flex-wrap:wrap}.topbar-actions{width:auto!important}.topbar-actions .btn{flex:0 0 auto!important}.topbar-title{order:2;flex:1 1 230px}.topbar-menu{order:1}.topbar-actions{order:3;margin-left:0}.internal:not(.sidebar-collapsed)::before{content:"";position:fixed;inset:0;background:rgba(2,11,22,.46);z-index:60;backdrop-filter:blur(2px)}
}
@media(max-width:620px){.topbar{border-radius:20px;padding:.75rem}.topbar-actions{display:grid;grid-template-columns:1fr 1fr;width:100%!important}.topbar-actions .btn{width:100%}.sidebar-toggle{min-height:42px}.topbar-title small{font-size:.8rem}.brand span{font-size:1.02rem}}

.email-client-panel{overflow:hidden}.email-connect-box{border:1px dashed rgba(11,102,195,.25);background:#f8fbff;border-radius:24px;padding:1rem;margin-top:1rem}.email-workspace{display:grid;grid-template-columns:minmax(260px,360px) minmax(0,1fr);gap:1rem;align-items:start}.email-inbox,.email-compose,.email-reader{background:#fff;border:1px solid var(--line);border-radius:24px;padding:1rem;box-shadow:0 10px 26px rgba(8,33,63,.05)}.email-inbox{max-height:76vh;overflow:auto;position:sticky;top:100px}.email-inbox-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}.email-inbox-head h2,.email-compose h2,.email-reader h2{margin:0}.email-message{display:grid;gap:.28rem;border:1px solid var(--line);border-radius:18px;padding:.85rem;margin-bottom:.6rem;background:#fff;color:var(--text)}.email-message:hover,.email-message.active{border-color:rgba(11,102,195,.35);background:#f7fbff}.email-message.unread{box-shadow:inset 4px 0 0 var(--blue);font-weight:900}.email-message strong{overflow-wrap:anywhere}.email-message span,.email-message small{color:var(--muted);overflow-wrap:anywhere}.email-reader-compose{display:grid;gap:1rem;min-width:0}.email-reader-head{display:flex;gap:1rem;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:1rem;margin-bottom:1rem}.email-body{white-space:pre-wrap;word-wrap:break-word;background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:1rem;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;max-height:58vh;overflow:auto}.empty-state{border:1px dashed var(--line);border-radius:20px;padding:2rem;text-align:center;color:var(--muted);background:#f8fafc}.inline-check input{width:auto!important}
@media(max-width:1100px){.email-workspace{grid-template-columns:1fr}.email-inbox{position:relative;top:auto;max-height:420px}.email-reader-head{display:grid}.email-reader-head .btn{width:100%}}
@media(max-width:620px){.email-workspace{gap:.75rem}.email-inbox,.email-compose,.email-reader,.email-connect-box{border-radius:18px;padding:.85rem}.email-command-grid{gap:.75rem}.email-body{font-size:.88rem;max-height:52vh}.email-reader-head form,.email-reader-head button{width:100%}}

/* E-mail v13: webmail profissional integrado */
.email-pro-panel{padding:0!important;overflow:hidden;background:linear-gradient(180deg,#ffffff,#f8fafc);border-radius:28px;min-width:0}
.email-pro-topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.2rem 1.35rem;border-bottom:1px solid var(--line);background:radial-gradient(circle at 10% 0%,rgba(11,102,195,.14),transparent 34%),linear-gradient(135deg,#fff,#f7fbff)}
.email-pro-title{display:flex;align-items:center;gap:.9rem;min-width:0}.email-pro-title h1{margin:0;color:var(--navy);font-size:clamp(1.35rem,2.4vw,2rem)}.email-pro-title p{margin:.25rem 0 0;color:var(--muted);font-weight:700}.email-pro-mark{width:50px;height:50px;border-radius:18px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,var(--navy),var(--blue));box-shadow:0 14px 30px rgba(11,102,195,.22);font-size:1.3rem;flex:0 0 auto}.email-account-pill{display:flex;align-items:center;gap:.75rem;border:1px solid var(--line);background:#fff;border-radius:999px;padding:.5rem .85rem;box-shadow:0 10px 24px rgba(8,33,63,.06);min-width:0}.email-account-pill>span,.email-avatar{width:38px;height:38px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e0efff,#f7fbff);color:var(--blue);font-weight:950;letter-spacing:-.04em;flex:0 0 auto}.email-account-pill strong,.email-account-pill small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.email-account-pill small{color:var(--muted);font-weight:700}.email-app-shell{display:grid;grid-template-columns:230px minmax(310px,410px) minmax(0,1fr);gap:0;min-height:76vh;border-top:0;background:#fff}.email-folder-rail{background:#f8fafc;border-right:1px solid var(--line);padding:1rem;display:flex;flex-direction:column;gap:1rem;min-width:0}.email-compose-main{box-shadow:0 12px 24px rgba(11,102,195,.22)}.email-folders{display:grid;gap:.4rem}.email-folders a{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.82rem .9rem;border-radius:16px;color:var(--text);font-weight:850}.email-folders a.active{background:#fff;border:1px solid rgba(11,102,195,.22);color:var(--navy);box-shadow:0 8px 20px rgba(8,33,63,.06)}.email-folders a.disabled{opacity:.6;cursor:not-allowed}.email-folders span{display:inline-flex;gap:.5rem;align-items:center}.email-folders strong{font-size:.8rem;background:#eef4ff;color:#1849a9;border-radius:999px;padding:.18rem .5rem}.email-server-card{margin-top:auto;border:1px solid var(--line);border-radius:20px;background:#fff;padding:1rem;box-shadow:0 10px 26px rgba(8,33,63,.05);min-width:0}.email-server-card span{display:block;color:var(--muted);font-size:.74rem;font-weight:950;letter-spacing:.06em;text-transform:uppercase}.email-server-card strong{display:block;margin:.3rem 0;color:var(--navy);overflow-wrap:anywhere}.email-server-card small{display:block;color:var(--muted);font-weight:700;overflow-wrap:anywhere}.email-folder-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.85rem}.email-folder-actions form{display:inline}.email-list-pane{border-right:1px solid var(--line);background:#fff;min-width:0;display:flex;flex-direction:column}.email-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:.8rem;padding:1rem;border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:2}.email-toolbar h2{margin:0;color:var(--navy);font-size:1.15rem}.email-toolbar p{margin:.2rem 0 0;color:var(--muted);font-weight:750}.email-toolbar-actions{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap;justify-content:flex-end}.email-search{display:flex;align-items:center;gap:.45rem;border:1px solid var(--line);background:#f8fafc;border-radius:999px;padding:.2rem .72rem;min-width:210px}.email-search span{color:var(--muted);font-weight:900}.email-search input{border:0!important;background:transparent!important;padding:.55rem .2rem!important;outline:0;width:100%;min-width:0}.email-message-list{overflow:auto;max-height:calc(76vh - 86px);padding:.6rem}.email-row{position:relative;display:flex;align-items:flex-start;gap:.75rem;padding:.85rem;border:1px solid transparent;border-radius:20px;color:var(--text);margin-bottom:.35rem;transition:.18s;min-width:0}.email-row:hover{background:#f8fbff;border-color:var(--line)}.email-row.active{background:linear-gradient(135deg,#eef6ff,#fff);border-color:rgba(11,102,195,.28);box-shadow:0 10px 25px rgba(8,33,63,.06)}.email-row.unread .email-row-subject,.email-row.unread .email-row-meta strong{font-weight:950;color:var(--navy)}.email-row-main{display:grid;gap:.22rem;min-width:0;flex:1}.email-row-meta{display:flex;justify-content:space-between;gap:.55rem;align-items:center;min-width:0}.email-row-meta strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.email-row-meta small{color:var(--muted);font-size:.74rem;font-weight:750;white-space:nowrap}.email-row-subject{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text);font-weight:750}.email-row-from{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:.8rem;font-weight:700}.email-dot{position:absolute;right:.68rem;bottom:.75rem;width:9px;height:9px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 4px rgba(11,102,195,.12)}.email-read-pane{background:linear-gradient(180deg,#fff,#f8fafc);min-width:0;padding:1rem;display:flex;flex-direction:column;gap:1rem;max-height:76vh;overflow:auto}.email-read-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;position:sticky;top:0;z-index:3;background:rgba(248,250,252,.92);backdrop-filter:blur(10px);padding:.35rem 0 .8rem;border-bottom:1px solid var(--line)}.email-read-subtitle{font-size:.78rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:950}.email-read-actions{display:flex;gap:.45rem;flex-wrap:wrap;justify-content:flex-end}.email-read-actions form{display:inline-flex}.email-open-card{background:#fff;border:1px solid var(--line);border-radius:26px;box-shadow:0 14px 35px rgba(8,33,63,.07);overflow:hidden}.email-open-card header{padding:1.25rem;border-bottom:1px solid var(--line)}.email-open-card h2{font-size:clamp(1.25rem,2.2vw,2rem);line-height:1.15;margin:0 0 1rem;color:var(--navy);overflow-wrap:anywhere}.email-open-meta{display:flex;align-items:center;gap:.85rem;min-width:0}.email-avatar.large{width:50px;height:50px;font-size:1.05rem}.email-open-meta strong,.email-open-meta small{display:block}.email-open-meta small{color:var(--muted);font-weight:700;overflow-wrap:anywhere}.email-body-pro{padding:1.35rem;font-size:1rem;line-height:1.72;color:#28364a;overflow-wrap:anywhere;white-space:normal;background:linear-gradient(180deg,#fff,#fbfcff)}.email-empty-read,.email-empty-mini{border:1px dashed var(--line);border-radius:24px;background:#fff;display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;gap:.6rem;color:var(--muted);min-height:280px;padding:2rem}.email-empty-mini{min-height:160px;margin:.5rem}.email-empty-mini strong{color:var(--navy)}.email-empty-icon{width:74px;height:74px;border-radius:26px;background:#eef6ff;color:var(--blue);display:flex;align-items:center;justify-content:center;font-size:2rem}.email-login-layout{display:grid;grid-template-columns:1fr minmax(300px,430px);gap:1.2rem;padding:1.2rem}.email-login-hero{border-radius:28px;padding:2rem;min-height:420px;background:radial-gradient(circle at 90% 10%,rgba(255,255,255,.26),transparent 28%),linear-gradient(135deg,var(--navy),var(--blue));color:#fff;box-shadow:0 18px 45px rgba(8,33,63,.16);display:flex;flex-direction:column;justify-content:center}.email-login-icon{width:74px;height:74px;border-radius:26px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.24);display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:950}.email-login-hero h2{font-size:clamp(1.8rem,4vw,3rem);line-height:1;margin:1.1rem 0}.email-login-hero p{line-height:1.7;color:#e6f0ff}.email-login-features{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1rem}.email-login-features span{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);border-radius:999px;padding:.46rem .7rem;font-weight:850}.email-login-card{background:#fff;border:1px solid var(--line);border-radius:28px;box-shadow:0 14px 35px rgba(8,33,63,.08);padding:1.25rem;display:grid;gap:1rem;align-content:start}.email-login-card h3{margin:0;color:var(--navy)}.email-login-card label,.email-compose-pro-form label{display:grid;gap:.35rem;font-weight:850}.email-login-card input,.email-compose-pro-form input,.email-compose-pro-form textarea{border:1px solid var(--line);border-radius:16px;padding:.86rem 1rem;font:inherit;background:#fff;min-width:0}.email-compose-modal{z-index:60}.email-compose-card{max-width:760px;padding:0!important;overflow:hidden}.email-compose-head{padding:1.1rem 1.25rem;background:linear-gradient(135deg,var(--navy),var(--blue));color:#fff}.email-compose-head h2{margin:0}.email-compose-head p{margin:.25rem 0 0;color:#dbeafe;font-weight:700}.email-compose-pro-form{display:grid;gap:.85rem;padding:1.2rem}.email-compose-pro-form textarea{resize:vertical;min-height:260px;line-height:1.55}.email-compose-footer{display:flex;justify-content:flex-end;gap:.65rem;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:1rem}
@media(max-width:1280px){.email-app-shell{grid-template-columns:190px minmax(290px,360px) minmax(0,1fr)}.email-toolbar{display:grid}.email-toolbar-actions{justify-content:stretch}.email-search{min-width:0;width:100%}}
@media(max-width:1060px){.email-app-shell{grid-template-columns:1fr}.email-folder-rail{border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr;gap:.8rem}.email-folders{grid-template-columns:repeat(4,minmax(0,1fr))}.email-server-card{margin-top:0}.email-list-pane{border-right:0;border-bottom:1px solid var(--line)}.email-message-list{max-height:360px}.email-read-pane{max-height:none}.email-login-layout{grid-template-columns:1fr}.email-login-hero{min-height:280px}}
@media(max-width:720px){.email-pro-topbar{display:grid;padding:1rem}.email-account-pill{border-radius:18px;width:100%;justify-content:flex-start}.email-folder-rail{padding:.8rem}.email-folders{grid-template-columns:1fr 1fr}.email-folders a{padding:.75rem}.email-toolbar{padding:.8rem}.email-toolbar-actions{display:grid}.email-message-list{padding:.45rem;max-height:330px}.email-row{border-color:var(--line);border-radius:16px;padding:.75rem}.email-row-meta{display:grid;gap:.15rem}.email-row-meta small{white-space:normal}.email-read-pane{padding:.8rem}.email-read-toolbar{display:grid}.email-read-actions{display:grid;grid-template-columns:1fr;justify-content:stretch}.email-read-actions .btn,.email-read-actions form,.email-read-actions button{width:100%}.email-open-card{border-radius:20px}.email-open-card header,.email-body-pro{padding:1rem}.email-open-meta{align-items:flex-start}.email-login-layout{padding:.8rem}.email-login-hero,.email-login-card{border-radius:22px;padding:1rem}.email-compose-card{max-width:calc(100vw - 1rem);border-radius:22px}.email-compose-pro-form textarea{min-height:220px}.email-compose-footer{display:grid}.email-compose-footer .btn{width:100%}}
@media(max-width:420px){.email-folders{grid-template-columns:1fr}.email-row{gap:.55rem}.email-avatar{width:34px;height:34px}.email-pro-mark{width:44px;height:44px;border-radius:15px}.email-pro-title{align-items:flex-start}.email-account-pill strong,.email-account-pill small{max-width:250px}.email-body-pro{font-size:.95rem}}

/* v14 - Roundcube integrado */
.roundcube-panel{padding:0!important;overflow:hidden;min-width:0;background:linear-gradient(180deg,#fff,#f8fafc)}
.roundcube-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.15rem;border-bottom:1px solid var(--line);background:radial-gradient(circle at 0% 0%,rgba(11,102,195,.12),transparent 34%),linear-gradient(135deg,#fff,#f7fbff)}
.roundcube-title{display:flex;align-items:center;gap:.85rem;min-width:0}.roundcube-title h1{margin:0;color:var(--navy);font-size:clamp(1.25rem,2.4vw,1.9rem)}.roundcube-title p{margin:.2rem 0 0;color:var(--muted);font-weight:750}.roundcube-icon{width:48px;height:48px;border-radius:18px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,var(--navy),var(--blue));box-shadow:0 14px 30px rgba(11,102,195,.22);font-size:1.25rem;flex:0 0 auto}.roundcube-actions{display:flex;align-items:center;justify-content:flex-end;gap:.65rem;flex-wrap:wrap;min-width:0}.roundcube-account{border:1px solid var(--line);background:#fff;border-radius:999px;padding:.55rem .8rem;color:var(--muted);font-weight:750;max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.roundcube-account strong{color:var(--navy)}.roundcube-info{margin:1rem 1rem 0}.roundcube-frame-wrap{margin:1rem;border:1px solid var(--line);border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 14px 35px rgba(8,33,63,.08);height:calc(100vh - 250px);min-height:680px}.roundcube-frame{display:block;width:100%;height:100%;border:0;background:#fff}.roundcube-footnote{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;padding:0 1rem 1rem;color:var(--muted);font-size:.82rem;font-weight:700}.roundcube-footnote span{border:1px solid var(--line);background:#fff;border-radius:999px;padding:.38rem .6rem}.roundcube-footnote code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--navy)}
@media(max-width:900px){.roundcube-head{display:grid}.roundcube-actions{justify-content:stretch}.roundcube-actions .btn,.roundcube-account{width:100%;max-width:none;text-align:center}.roundcube-frame-wrap{height:calc(100vh - 300px);min-height:620px;margin:.8rem;border-radius:18px}.roundcube-footnote{padding:0 .8rem .8rem}.roundcube-footnote span{width:100%;border-radius:14px}}
@media(max-width:520px){.roundcube-title{align-items:flex-start}.roundcube-icon{width:42px;height:42px;border-radius:15px}.roundcube-head{padding:.85rem}.roundcube-frame-wrap{height:calc(100vh - 310px);min-height:560px;margin:.6rem;border-radius:16px}.roundcube-info{margin:.75rem .75rem 0}.roundcube-title p{font-size:.9rem}}


/* v16 - Chamados TI */
.ticket-page-title{align-items:center}.compact-title{align-items:center;margin-bottom:.8rem}.ticket-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.tickets-layout{grid-template-columns:1.35fr .65fr}.ticket-list{display:grid;gap:.85rem}.ticket-card{border:1px solid var(--line);border-radius:22px;background:linear-gradient(180deg,#fff,#fbfcff);padding:1rem;box-shadow:0 10px 25px rgba(8,33,63,.05)}.ticket-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:.8rem}.ticket-card-head strong{display:block;color:var(--navy);font-size:1.02rem}.ticket-card-head small,.ticket-meta{display:block;color:var(--muted);font-weight:700;font-size:.82rem;margin-top:.18rem}.ticket-badges{display:flex;gap:.4rem;flex-wrap:wrap;justify-content:flex-end}.ticket-note{border:1px dashed var(--line);border-radius:16px;background:#f8fafc;padding:.85rem;margin:.75rem 0;color:#344054}.ticket-admin-form{border-top:1px solid var(--line);padding-top:.85rem;margin-top:.85rem}.form-help{color:var(--muted);font-size:.9rem;font-weight:700;line-height:1.45}
@media(max-width:1080px){.tickets-layout{grid-template-columns:1fr}.ticket-stats{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.ticket-card-head{display:grid}.ticket-badges{justify-content:flex-start}.ticket-stats{grid-template-columns:1fr}.ticket-admin-form.grid-form.compact{grid-template-columns:1fr}.ticket-page-title{display:block}}

/* v17 - Notificações internas e sincronização silenciosa */
.notification-center{position:relative;display:inline-flex;align-items:center;justify-content:center;z-index:30}.notification-bell{position:relative;border:1px solid var(--line);background:#fff;color:var(--navy);border-radius:16px;min-width:44px;height:44px;padding:0 .75rem;display:inline-flex;align-items:center;justify-content:center;font-size:1.08rem;box-shadow:0 8px 18px rgba(8,33,63,.06);cursor:pointer;transition:.18s ease}.notification-bell:hover{transform:translateY(-1px);box-shadow:0 12px 25px rgba(8,33,63,.1)}.notification-bell b{position:absolute;right:-6px;top:-8px;min-width:22px;height:22px;border-radius:999px;background:#ef4444;color:#fff;font-size:.72rem;line-height:22px;text-align:center;border:2px solid #fff;box-shadow:0 7px 16px rgba(239,68,68,.28)}.notification-bell b.is-zero{display:none}.notification-panel{position:absolute;right:0;top:calc(100% + .65rem);width:min(380px,calc(100vw - 1.5rem));background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 22px 70px rgba(8,33,63,.18);overflow:hidden;opacity:0;pointer-events:none;transform:translateY(-8px) scale(.98);transition:.18s ease}.notification-panel.open{opacity:1;pointer-events:auto;transform:translateY(0) scale(1)}.notification-panel-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.95rem 1rem;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#fff,#f6faff)}.notification-panel-head strong{color:var(--navy);font-size:1rem}.notification-list{max-height:390px;overflow:auto;padding:.5rem}.notification-item{display:grid;gap:.22rem;text-decoration:none;color:#1f2937;border:1px solid transparent;border-radius:16px;padding:.75rem .8rem;transition:.16s ease}.notification-item:hover{background:#f8fbff;border-color:var(--line)}.notification-item strong{color:var(--navy);font-size:.94rem}.notification-item span{color:#475569;font-size:.86rem;line-height:1.35}.notification-item small{color:var(--muted);font-size:.75rem;font-weight:750}.notification-item:not(.is-read){background:#eff6ff;border-color:#bfdbfe}.notification-empty{padding:1.2rem;text-align:center;color:var(--muted);font-weight:750}.topbar-ticket-alert{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:999px;padding:.62rem .85rem;font-weight:950;white-space:nowrap;box-shadow:0 8px 20px rgba(234,88,12,.1)}#live-content{min-width:0}.workspace{min-width:0}
@media(max-width:760px){.notification-center{order:-2}.topbar-ticket-alert{width:100%;border-radius:16px}.notification-panel{right:auto;left:50%;transform:translate(-50%,-8px) scale(.98)}.notification-panel.open{transform:translate(-50%,0) scale(1)}}
.sidebar nav a{position:relative}.menu-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:999px;background:#ef4444;color:#fff;font-size:.74rem;font-weight:950;margin-left:auto;padding:0 .38rem;box-shadow:0 6px 14px rgba(239,68,68,.24)}

/* v19 - atualizações silenciosas e reservas/disputas de venda */
.live-updated { animation: livePulse .9s ease; }
.live-updated-soft { animation: livePulseSoft .9s ease; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(14,165,233,.45); transform: scale(1); } 45% { box-shadow: 0 0 0 5px rgba(14,165,233,.12); transform: scale(1.03); } 100% { box-shadow: none; transform: scale(1); } }
@keyframes livePulseSoft { 0% { background: rgba(14,165,233,.10); } 100% { background: transparent; } }
.reservation-line { display:block; margin-top:.25rem; font-size:.72rem; color:var(--muted); font-weight:700; }
.reservation-line.warn { color:#b45309; }
.reservation-line.danger { color:#b91c1c; }
.sale-reservation-watch { display:grid; gap:.75rem; }
.reservation-card { border:1px solid var(--border); border-radius:16px; padding:.85rem 1rem; background:#f8fafc; display:grid; gap:.35rem; }
.reservation-card.warn { border-color:#f59e0b; background:#fffbeb; }
.reservation-card.danger { border-color:#ef4444; background:#fef2f2; }
.reservation-card.ok { border-color:#22c55e; background:#f0fdf4; }
.reservation-card strong { color:var(--navy); }
.reservation-card span { color:var(--muted); font-size:.9rem; }
.reservation-card b { color:#b91c1c; font-size:.88rem; }
.reservation-card ul { margin:.25rem 0 0 1rem; padding:0; color:#334155; font-size:.84rem; }
@media (max-width: 720px) { .reservation-card { padding:.75rem; border-radius:14px; } .reservation-card ul { margin-left:.75rem; } }

/* v20 - status visual para vendas pendentes de aprovação de desconto */
.sale-pending-approvals{border:1px solid rgba(245,158,11,.35);background:linear-gradient(135deg,rgba(255,251,235,.92),rgba(255,255,255,.96));border-radius:22px;padding:14px;display:grid;gap:10px}
.sale-pending-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sale-pending-head strong{display:block;color:#7c2d12;font-size:1rem}
.sale-pending-head span{display:block;color:#92400e;font-size:.9rem;margin-top:2px}
.sale-pending-card{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:18px;padding:12px 14px;border:1px solid #e5e7eb;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.06)}
.sale-pending-card>div{display:grid;gap:4px;min-width:0}.sale-pending-card strong{color:#0f172a}.sale-pending-card small{color:#64748b}.sale-pending-card.warn{border-color:rgba(245,158,11,.55);background:#fffbeb}.sale-pending-card.ok{border-color:rgba(34,197,94,.45);background:#f0fdf4}.sale-pending-card.zero{border-color:rgba(239,68,68,.35);background:#fef2f2}
@media (max-width:720px){.sale-pending-card{align-items:flex-start;flex-direction:column}.sale-pending-card .btn{width:100%;justify-content:center}}


/* Checklist v27 */
.checklist-page .table-wrap td{vertical-align:middle}.checklist-editor .checklist-items{display:grid;gap:14px}.checklist-item-row{border:1px solid var(--border,#e5e7eb);border-radius:18px;padding:14px;background:#fff;display:grid;gap:10px}.checklist-item-row.done{background:#f8fafc}.checklist-item-row .checkline{display:flex;gap:10px;align-items:flex-start;font-weight:700}.checklist-item-row.done .checkline span,.client-checklist-item.done p,.checklist-print-item.done{text-decoration:line-through;color:#64748b}.checklist-item-row textarea{min-height:74px;width:100%}.checklist-item-row img,.client-checklist-item img{max-width:150px;max-height:110px;border-radius:14px;border:1px solid var(--border,#e5e7eb);object-fit:cover}.client-checklist-card{margin-top:20px}.client-checklist-items{display:grid;gap:12px;margin:18px 0}.client-checklist-item{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--border,#e5e7eb);border-radius:16px;background:#fff}.client-checklist-item span{font-size:22px}.printable-checklist .receipt{max-width:820px}.checklist-print-item{padding:12px 0;border-bottom:1px dashed #cbd5e1}.checklist-print-item img{display:block;max-width:280px;margin-top:8px;border-radius:10px}@media(max-width:720px){.client-checklist-item{grid-template-columns:1fr}.checklist-item-row img,.client-checklist-item img{max-width:100%;width:100%;height:auto}.checklist-form-page .section-title,.checklist-page .section-title{align-items:stretch}.checklist-form-page .actions{display:grid;grid-template-columns:1fr;gap:8px}.public-checklist .searchbar{grid-template-columns:1fr}.public-checklist .searchbar input,.public-checklist .searchbar button{width:100%}}@media print{.no-print,.topbar,.sidebar{display:none!important}.workspace{margin:0!important}.panel{box-shadow:none!important;border:0!important}}

/* Checklist v28 - visual profissional, responsivo e impressão 10x15 */
.checklist-pro .section-title{align-items:flex-start}.checklist-share{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.checklist-share input{flex:1;min-width:260px;border:1px solid var(--border,#dbe3ef);border-radius:14px;padding:10px 12px;background:#fff}.checklist-items-head{display:flex;justify-content:space-between;align-items:center;gap:14px;border-radius:22px;padding:16px 18px;background:linear-gradient(135deg,rgba(15,23,42,.04),rgba(255,255,255,.9));border:1px solid var(--border,#e5e7eb)}.checklist-items-head h2{margin:0}.checklist-items-head p{margin:4px 0 0;color:#64748b}.checklist-editor .checklist-items{display:grid;gap:16px}.checklist-item-row{border:1px solid rgba(148,163,184,.45);border-radius:24px;padding:16px;background:#fff;display:grid;gap:12px;box-shadow:0 14px 34px rgba(15,23,42,.06);position:relative;overflow:hidden}.checklist-item-row:before{content:'';position:absolute;left:0;top:0;bottom:0;width:6px;background:var(--primary,#9a7200)}.checklist-item-row.done{background:linear-gradient(135deg,#f8fafc,#fff)}.checklist-item-row.done:before{background:#16a34a}.checklist-item-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.checklist-item-row .checkline{display:flex;gap:12px;align-items:flex-start;font-weight:800;color:#0f172a}.checklist-item-row .checkline input{margin-top:4px;transform:scale(1.2)}.checklist-item-row.done .checkline span,.client-checklist-item.done p,.checklist-print-item.done{text-decoration:line-through;color:#64748b}.checklist-item-row textarea{min-height:92px;width:100%;border:1px solid var(--border,#dbe3ef);border-radius:18px;padding:13px 15px;font-size:1rem;resize:vertical}.file-clean{width:100%;border:1px dashed #cbd5e1;border-radius:16px;padding:12px;background:#f8fafc}.remove-check{font-weight:700;color:#64748b;white-space:nowrap}.checklist-item-row img,.client-checklist-item img{max-width:180px;max-height:130px;border-radius:16px;border:1px solid var(--border,#e5e7eb);object-fit:cover;box-shadow:0 10px 20px rgba(15,23,42,.08)}.public-checklist-pro{background:linear-gradient(135deg,#f8fafc,#eef4ff);min-height:100vh;padding:28px 0}.public-checklist-pro .panel{max-width:1180px;margin:auto}.public-checklist-hero{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.eyebrow{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;background:rgba(154,114,0,.10);color:var(--primary,#9a7200);font-weight:800;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em}.public-checklist-hero h1{margin:8px 0 8px;font-size:clamp(2rem,5vw,3.4rem)}.client-checklist-card{margin-top:22px;display:grid;gap:18px}.client-checklist-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border-radius:24px;padding:18px;background:#fff;border:1px solid rgba(148,163,184,.35);box-shadow:0 18px 45px rgba(15,23,42,.06)}.client-checklist-head h2{font-size:clamp(1.4rem,4vw,2rem);margin:6px 0}.live-pill{border-radius:999px;background:#ecfdf5;color:#047857;font-weight:800;padding:8px 12px;white-space:nowrap}.client-checklist-items{display:grid;gap:14px;margin:0}.client-checklist-item{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:16px;border:1px solid rgba(148,163,184,.4);border-radius:22px;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.05)}.client-checklist-item span{font-size:24px}.client-checklist-item p{font-weight:700;margin:0}.client-checklist-item.done{background:linear-gradient(135deg,#f0fdf4,#fff)}.client-confirm-form{border-radius:24px;padding:18px;background:#fff;border:1px solid rgba(148,163,184,.4)}.confirm-methods{display:grid;grid-template-columns:1.2fr .8fr;gap:18px}.confirm-methods>div{border:1px solid #e5e7eb;border-radius:20px;padding:14px;background:#f8fafc}.confirm-methods h3{margin-top:0}#signaturePad{width:100%;height:220px;background:#fff;border:2px dashed #cbd5e1;border-radius:18px;touch-action:none}.printable-checklist .receipt{max-width:860px}.checklist-print-item{padding:12px 0;border-bottom:1px dashed #cbd5e1}.checklist-print-item img{display:block;max-width:280px;margin-top:8px;border-radius:10px}.label-10x15-page{max-width:780px;margin:20px auto}.label-10x15-page form{display:flex;gap:10px;align-items:end;flex-wrap:wrap}.label-10x15-page input{border:1px solid #dbe3ef;border-radius:14px;padding:10px;width:130px}.stickers-10x15{display:grid;gap:12px}.sticker-10x15{width:10cm;height:15cm;background:#fff;color:#0f172a;border:1px dashed #94a3b8;border-radius:8px;padding:8mm;display:flex;flex-direction:column;justify-content:space-between;page-break-after:always}.sticker-10x15>div:first-child{display:flex;align-items:center;gap:8px}.sticker-10x15 img{width:28px;height:28px;object-fit:contain}.sticker-10x15 h1{font-size:26px;margin:8px 0}.sticker-10x15 p{font-size:14px;line-height:1.35}.label-qr{width:120px;height:120px;margin:auto}.sticker-10x15 small{text-align:center;color:#475569;font-weight:700}@media(max-width:720px){.checklist-items-head,.checklist-item-top,.client-checklist-head{flex-direction:column;align-items:stretch}.checklist-items-head .btn,.client-confirm-form .btn{width:100%;justify-content:center}.client-checklist-item{grid-template-columns:1fr}.checklist-item-row img,.client-checklist-item img{max-width:100%;width:100%;height:auto}.checklist-form-page .section-title,.checklist-page .section-title{align-items:stretch}.checklist-form-page .actions{display:grid;grid-template-columns:1fr;gap:8px}.public-checklist .searchbar{grid-template-columns:1fr}.public-checklist .searchbar input,.public-checklist .searchbar button{width:100%}.confirm-methods{grid-template-columns:1fr}.public-checklist-pro{padding:12px}.client-checklist-head{padding:14px}.sticker-10x15{width:100%;height:auto;min-height:15cm}}@media print{.no-print,.topbar,.sidebar,.label-10x15-page{display:none!important}.workspace{margin:0!important}.panel{box-shadow:none!important;border:0!important}@page{size:10cm 15cm;margin:0}.stickers-10x15{display:block}.sticker-10x15{border:0;border-radius:0;margin:0;width:10cm;height:15cm;box-sizing:border-box}}

/* v29 - galeria de fotos do produto */
.product-gallery-card{
  border:1px solid var(--border, #dfe7f3);
  border-radius:24px;
  padding:1rem;
  background:linear-gradient(180deg,#fff,#f8fbff);
  display:grid;
  gap:1rem;
}
.product-gallery-grid,.product-gallery-preview{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
  gap:.85rem;
}
.product-gallery-item,.product-gallery-preview-item{
  border:1px solid var(--border,#dfe7f3);
  border-radius:18px;
  padding:.6rem;
  background:#fff;
  display:grid;
  gap:.4rem;
  min-width:0;
}
.product-gallery-item img,.product-gallery-preview-item img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:14px;
  background:#eef3fb;
}
.product-gallery-item span{font-weight:800;font-size:.85rem;color:var(--text,#14213d)}
.product-gallery-item small{font-size:.8rem;color:var(--muted,#61708a)}
@media (max-width: 700px){
  .product-gallery-card{padding:.8rem;border-radius:18px}
  .product-gallery-grid,.product-gallery-preview{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
}

/* Loja online v30 */
.product-actions{display:flex;gap:.65rem;align-items:center;flex-wrap:wrap;margin-top:.75rem}.inline-cart-form{display:inline-flex;margin:0}.shop-panel{max-width:1180px;margin:0 auto}.checkout-summary{margin-top:1rem;display:flex;gap:1rem;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:1rem;border:1px solid var(--line,#dfe7f1);border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff)}.shipping-box{display:flex;gap:.8rem;align-items:center;flex-wrap:wrap;padding:1rem;border:1px dashed var(--line,#dfe7f1);border-radius:18px;background:#f8fbff}.shop-panel table input{padding:.65rem;border-radius:12px;border:1px solid var(--line,#dfe7f1)}@media (max-width:760px){.product-actions,.checkout-summary,.shipping-box{display:grid;grid-template-columns:1fr}.product-actions .btn,.inline-cart-form .btn,.checkout-summary .btn{width:100%}.shop-panel .table-wrap table{min-width:680px}.public-links a[href="/carrinho"]{display:inline-flex}}
