:root{--ink:#151515;--paper:#f4f1ea;--panel:#fffdf8;--line:#d8d2c8;--muted:#736f68;--accent:#8b5e34;--accent2:#d6c2a8;--dark:#20201e;--danger:#9b2f2f}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:var(--paper);color:var(--ink)}a{color:inherit;text-decoration:none}.shell{min-height:100vh;display:grid;grid-template-columns:220px minmax(0,1fr)}.rail{position:sticky;top:0;height:100vh;background:#181816;color:#f4efe7;padding:24px 16px 16px;display:flex;flex-direction:column;border-right:1px solid #2e2d29}.brand{display:flex;align-items:baseline;gap:8px;padding:0 8px 24px;font-family:Georgia,serif;font-size:25px}.brand-md{font:800 12px/1 Inter,sans-serif;letter-spacing:.12em;border:1px solid #8b5e34;padding:5px 6px;color:#d8b789}.rail nav{display:flex;flex-direction:column;gap:2px}.nav-link{padding:9px 10px;border-left:2px solid transparent;color:#c9c5bd;font-size:13px}.nav-link:hover{color:#fff;background:#ffffff07}.nav-link.active{border-left-color:#d8b789;color:#fff;background:#ffffff08}.rail-foot{margin-top:auto;padding:14px 8px 2px;border-top:1px solid #34332f;font-size:12px;color:#aaa59d;display:grid;gap:8px}.unit{color:#e5dfd4}.workspace{min-width:0;padding:30px 34px 60px}.topline{display:flex;justify-content:space-between;align-items:flex-end;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}.topline h1{font:500 34px/1.05 Georgia,serif;margin:0}.userbox{text-align:right}.userbox strong,.userbox small{display:block}.userbox small{color:var(--muted);margin-top:2px}.attention{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,.8fr);gap:22px}.attention-main{background:var(--dark);color:#f5efe6;padding:26px 28px;min-height:220px}.attention-main h2{font:500 26px/1.1 Georgia,serif;margin:0 0 18px}.attention-list{display:grid;gap:1px;background:#34332f}.attention-item{display:flex;justify-content:space-between;align-items:center;background:#222220;padding:12px 14px;font-size:13px}.attention-item b{font-size:12px;color:#ddb889}.numbers{display:grid;grid-template-columns:1fr 1fr;gap:10px}.metric{background:transparent;border-top:2px solid var(--ink);padding:12px 0 16px}.metric span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em}.metric strong{display:block;font:500 26px/1.1 Georgia,serif;margin-top:5px}.section{margin-top:34px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:13px}.section-head h2{font:500 22px Georgia,serif;margin:0}.section-head p{margin:0;color:var(--muted);font-size:12px}.flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.flow div{padding:18px 14px;border-right:1px solid var(--line)}.flow div:last-child{border-right:0}.flow strong{font:500 23px Georgia,serif}.flow span{display:block;font-size:11px;color:var(--muted);margin-top:4px}.table-wrap{overflow:auto;background:var(--panel);border:1px solid var(--line)}table{width:100%;border-collapse:collapse;font-size:12px}th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);padding:11px 12px;border-bottom:1px solid var(--line)}td{padding:12px;border-bottom:1px solid #ebe6dc}.btn{display:inline-flex;align-items:center;justify-content:center;padding:9px 13px;border:1px solid #1c1c1a;background:#1c1c1a;color:#fff;font-size:12px;cursor:pointer}.btn.secondary{background:transparent;color:var(--ink);border-color:var(--line)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}.field label{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin-bottom:6px}.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);background:#fff;padding:10px 11px;font:inherit;font-size:13px}.field.full{grid-column:1/-1}.panel{background:var(--panel);border:1px solid var(--line);padding:20px}.empty{padding:40px 20px;text-align:center;color:var(--muted);border:1px dashed #cfc8bb;background:#ffffff66}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(300px,430px) 1fr}.login-form{padding:54px 48px;background:#f7f3ea}.login-form h1{font:500 42px Georgia,serif;margin:70px 0 10px}.login-form p{color:var(--muted);font-size:13px;line-height:1.6}.login-art{background:#1b1b19;position:relative;overflow:hidden}.login-art:after{content:"";position:absolute;inset:12% 10%;border:1px solid #8b5e34;transform:skewY(-6deg)}.login-art:before{content:"DA RECEITA À ENTREGA";position:absolute;left:12%;bottom:16%;color:#e7ddcf;font:500 46px/1.05 Georgia,serif;max-width:550px;z-index:2}.error{background:#f7e5e5;border:1px solid #e1bebe;color:#7c2626;padding:10px 12px;font-size:12px;margin:12px 0}.hint{font-size:11px;color:var(--muted);margin-top:18px}.wizard{display:grid;grid-template-columns:210px 1fr;border:1px solid var(--line);background:var(--panel)}.wizard-steps{background:#ebe5da;padding:18px}.wizard-step{padding:10px 8px;border-bottom:1px solid #d9d1c5;font-size:12px}.wizard-step strong{display:block;font:500 16px Georgia,serif}.wizard-body{padding:26px}.kanban{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:12px;overflow:auto}.kanban-col{border-top:2px solid #222;background:#eee9df;min-height:250px;padding:10px}.kanban-col h3{font:500 16px Georgia,serif;margin:4px 4px 10px}.os-card{background:#fff;border:1px solid #d8d2c8;padding:11px;margin-bottom:8px;font-size:12px}.os-card b{display:block;margin-bottom:4px}
@media(max-width:900px){.shell{grid-template-columns:1fr}.rail{position:static;height:auto;display:block;padding:12px}.rail nav{flex-direction:row;overflow:auto}.nav-link{white-space:nowrap;border-left:0;border-bottom:2px solid transparent}.nav-link.active{border-bottom-color:#d8b789}.rail-foot{display:none}.workspace{padding:20px 14px 50px}.attention{grid-template-columns:1fr}.flow{grid-template-columns:1fr 1fr}.login-page{grid-template-columns:1fr}.login-art{display:none}.login-form{padding:30px 22px}.wizard{grid-template-columns:1fr}.wizard-steps{display:flex;overflow:auto;gap:6px}.wizard-step{min-width:140px;border:1px solid #d9d1c5}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}}


/* V0.2 — ficha 360 e catálogo óptico */
.top-actions{display:flex;align-items:flex-end;gap:18px}.global-search{display:flex;border-bottom:1px solid var(--line);min-width:300px}.global-search input{border:0;background:transparent;padding:8px 4px;width:100%;outline:none;font-size:12px}.global-search button{border:0;background:transparent;color:var(--accent);font-weight:700;cursor:pointer;font-size:11px}.tabs{display:flex;gap:18px;border-bottom:1px solid var(--line);margin:4px 0 22px;overflow:auto}.tabs a{padding:9px 0;border-bottom:2px solid transparent;font-size:12px;white-space:nowrap;color:var(--muted)}.tabs a.active{color:var(--ink);border-color:var(--accent)}.profile-strip{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:22px}.profile-main{background:#1c1c1a;color:#f5efe6;padding:24px}.profile-main h2{font:500 28px Georgia,serif;margin:0 0 6px}.profile-main p{color:#c9c2b7;font-size:12px;line-height:1.5}.profile-facts{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.profile-facts span{border:1px solid #4b4944;padding:7px 9px;font-size:11px}.summary-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.summary-box{border-top:2px solid var(--ink);padding:10px 0}.summary-box span{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.08em}.summary-box strong{display:block;font:500 20px Georgia,serif;margin-top:4px}.timeline{position:relative;padding-left:18px}.timeline:before{content:"";position:absolute;left:4px;top:5px;bottom:5px;width:1px;background:var(--line)}.timeline-item{position:relative;padding:0 0 18px 15px}.timeline-item:before{content:"";position:absolute;left:-18px;top:4px;width:8px;height:8px;background:var(--accent);border-radius:50%}.timeline-item time{display:block;color:var(--muted);font-size:10px}.timeline-item strong{display:block;margin:3px 0;font-size:12px}.timeline-item p{margin:0;color:var(--muted);font-size:11px}.family-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.family-person{border:1px solid var(--line);padding:13px;background:#fff}.family-person strong,.family-person small{display:block}.family-person small{color:var(--muted);margin-top:3px}.rx-compare{overflow:auto}.rx-compare table td:first-child,.rx-compare table th:first-child{position:sticky;left:0;background:var(--panel)}.rx-eye{font-weight:700}.catalog-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:end;margin-bottom:18px}.catalog-toolbar form{display:flex;gap:8px;flex-wrap:wrap}.catalog-toolbar input,.catalog-toolbar select{border:1px solid var(--line);background:#fff;padding:9px 10px;font-size:12px}.catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.frame-card{border:1px solid var(--line);background:var(--panel);min-width:0}.frame-visual{aspect-ratio:1.55;background:#ebe6dd;display:grid;place-items:center;overflow:hidden;border-bottom:1px solid var(--line)}.frame-visual img{width:100%;height:100%;object-fit:cover}.frame-placeholder{font:500 28px Georgia,serif;color:#9b8b77}.frame-body{padding:14px}.frame-body .brandline{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);font-weight:800}.frame-body h3{font:500 19px Georgia,serif;margin:5px 0}.frame-meta{font-size:11px;color:var(--muted);line-height:1.5}.stock-line{display:flex;justify-content:space-between;border-top:1px solid var(--line);margin-top:12px;padding-top:10px;font-size:11px}.stock-ok{color:#3d6d4f}.stock-low{color:#9b2f2f}.unit-list{display:grid;gap:7px;margin-top:12px}.unit-row{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;border-top:1px solid #ebe6dc;padding-top:8px;font-size:11px}.badge{display:inline-flex;padding:4px 7px;border:1px solid var(--line);font-size:9px;text-transform:uppercase;letter-spacing:.05em}.badge.disponivel{color:#356249;border-color:#afcbbb}.badge.reservada{color:#7d5c14;border-color:#dbc98b}.badge.vendida{color:#777}.lens-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.lens-card{border-top:3px solid var(--ink);background:var(--panel);padding:16px;border-bottom:1px solid var(--line)}.lens-card h3{font:500 20px Georgia,serif;margin:4px 0 8px}.lens-kicker{font-size:9px;text-transform:uppercase;letter-spacing:.09em;color:var(--accent);font-weight:800}.treatment-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.treatment-chips span{font-size:9px;border:1px solid var(--line);padding:4px 6px}.split-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:20px}.mini-form{background:#eee8de;border:1px solid var(--line);padding:16px}.mini-form h3{font:500 18px Georgia,serif;margin:0 0 13px}.search-results{display:grid;gap:16px}.result-group h2{font:500 19px Georgia,serif;border-bottom:1px solid var(--line);padding-bottom:8px}.result-row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #e7e1d7;font-size:12px}.result-row small{color:var(--muted)}
@media(max-width:1200px){.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.lens-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.topline{align-items:flex-start}.top-actions{flex-direction:column;align-items:flex-end}.global-search{min-width:220px}.profile-strip,.split-layout{grid-template-columns:1fr}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.family-list{grid-template-columns:1fr}}
@media(max-width:560px){.topline{display:block}.top-actions{align-items:stretch;margin-top:12px}.global-search{min-width:0}.userbox{text-align:left}.catalog-grid,.lens-grid{grid-template-columns:1fr}.catalog-toolbar{display:block}.catalog-toolbar form{margin-top:10px}.summary-grid{grid-template-columns:1fr 1fr}.profile-main{padding:18px}.tabs{gap:14px}.unit-row{grid-template-columns:1fr auto}.unit-row span:nth-child(2){display:none}}

/* V0.3 — operação real: estoque, orçamento, venda e produção */
.flash{margin:0 0 18px;padding:11px 13px;border-left:3px solid var(--accent);background:#efe9df;font-size:12px}.flash.success{border-color:#48765b;background:#e9f1eb}.flash.error{border-color:#a33b32;background:#f5e8e5}.subnav{display:flex;gap:10px;margin:0 0 22px;border-bottom:1px solid var(--line);overflow:auto}.subnav a{padding:9px 2px;border-bottom:2px solid transparent;font-size:11px;white-space:nowrap;color:var(--muted)}.subnav a.active{color:var(--ink);border-color:var(--accent)}
.ops-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:20px}.stock-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);margin-bottom:18px}.stock-summary div{background:var(--panel);padding:14px}.stock-summary span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);display:block}.stock-summary strong{font:500 22px Georgia,serif;display:block;margin-top:4px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:6px;background:#777}.status-dot.disponivel{background:#48765b}.status-dot.reservada{background:#b78a27}.status-dot.vendida{background:#777}.status-dot.transferencia{background:#4d6586}.inline-actions{display:flex;gap:6px;flex-wrap:wrap}.link-btn{border:0;background:none;padding:0;color:var(--accent);font-size:11px;cursor:pointer;text-decoration:underline;text-underline-offset:2px}.compact-form{display:grid;gap:9px}.compact-form .field input,.compact-form .field select{padding:8px 9px}.quote-list{display:grid;gap:10px}.quote-row{display:grid;grid-template-columns:90px 1fr auto;gap:14px;align-items:center;border-bottom:1px solid var(--line);padding:12px 0}.quote-id{font:500 20px Georgia,serif}.quote-row h3{margin:0;font-size:13px}.quote-row p{margin:4px 0 0;color:var(--muted);font-size:11px}.quote-total{text-align:right}.quote-total strong{display:block;font:500 18px Georgia,serif}.status-pill{display:inline-flex;padding:4px 7px;border:1px solid var(--line);font-size:8px;text-transform:uppercase;letter-spacing:.06em}.status-pill.aprovado,.status-pill.convertido,.status-pill.pronto{border-color:#9fc0aa;color:#356249}.status-pill.perdido,.status-pill.cancelada{border-color:#deb0aa;color:#8e3228}.status-pill.negociacao,.status-pill.cliente_analisando{border-color:#d9c589;color:#765d19}.quote-sheet{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:22px}.quote-block{border-top:2px solid var(--ink);padding-top:12px;margin-bottom:22px}.quote-block h3{font:500 18px Georgia,serif;margin:0 0 9px}.quote-line{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #ebe5dc;padding:8px 0;font-size:12px}.quote-line.total{font-weight:800;border-top:1px solid var(--ink);border-bottom:0;font-size:14px;margin-top:6px}.rx-mini{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.rx-mini div{border:1px solid var(--line);padding:9px;font-size:11px}.rx-mini strong{display:block;margin-bottom:3px}.conversion-box{background:#1c1c1a;color:#f4eee4;padding:18px}.conversion-box h3{font:500 20px Georgia,serif;margin:0 0 6px}.conversion-box p{color:#c5beb2;font-size:11px;line-height:1.5}.conversion-box .field label{color:#c5beb2}.conversion-box .field input,.conversion-box .field select{background:#2d2c29;border-color:#55514b;color:#fff}.production-board{display:grid;grid-template-columns:repeat(5,minmax(210px,1fr));gap:10px;overflow:auto;padding-bottom:8px}.production-col{background:#eee8de;border-top:2px solid var(--ink);min-height:240px;padding:9px}.production-col h3{font:500 15px Georgia,serif;margin:4px}.production-col small{color:var(--muted)}.production-card{display:block;background:#fff;border:1px solid #d9d2c7;padding:10px;margin-top:8px;color:inherit}.production-card strong{display:block;font-size:12px}.production-card span{display:block;color:var(--muted);font-size:10px;margin-top:4px}.order-timeline{display:grid;gap:0}.order-event{display:grid;grid-template-columns:110px 1fr;gap:12px;border-left:1px solid var(--line);padding:0 0 16px 16px;margin-left:4px;position:relative}.order-event:before{content:"";position:absolute;width:7px;height:7px;border-radius:50%;background:var(--accent);left:-4px;top:3px}.order-event time{font-size:9px;color:var(--muted)}.order-event strong{font-size:11px}.inventory-list{display:grid;gap:8px}.inventory-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:10px;border-bottom:1px solid var(--line);font-size:11px}.inventory-row strong{display:block}.inventory-row small{color:var(--muted)}
@media(max-width:1050px){.ops-grid,.quote-sheet{grid-template-columns:1fr}.stock-summary{grid-template-columns:1fr 1fr}.production-board{grid-template-columns:repeat(5,210px)}}
@media(max-width:620px){.stock-summary{grid-template-columns:1fr 1fr}.quote-row{grid-template-columns:65px 1fr}.quote-total{grid-column:2;text-align:left}.rx-mini{grid-template-columns:1fr}.order-event{grid-template-columns:80px 1fr}}

/* V0.5 — sistema visual próprio / personalização por ótica */
:root{--rail-bg:#171816;--navw:232px;--radius:2px;--shadow:0 14px 40px rgba(24,22,18,.06)}
body{background:var(--paper);background-image:linear-gradient(90deg,rgba(120,100,76,.025) 1px,transparent 1px);background-size:48px 48px}.shell{grid-template-columns:var(--navw) minmax(0,1fr)}.rail{background:var(--rail-bg);padding:26px 16px 18px;border-right:0}.brand{padding:0 8px 20px;font-size:23px;align-items:center}.brand-md{border-color:var(--accent);color:var(--accent2);min-width:34px;text-align:center}.rail-context{margin:0 8px 24px;padding:13px 0;border-top:1px solid #ffffff16;border-bottom:1px solid #ffffff16}.rail-context span,.rail-context strong{display:block}.rail-context span{font-size:8px;text-transform:uppercase;letter-spacing:.15em;color:#8c8c83}.rail-context strong{font-size:11px;margin-top:5px;color:#e7e4dc;font-weight:600}.nav-group{margin:0 0 18px}.nav-caption{padding:0 10px 5px;font-size:8px;letter-spacing:.14em;text-transform:uppercase;color:#686962}.nav-link{position:relative;display:flex;align-items:center;justify-content:space-between;padding:7px 10px;border:0;color:#b9bab3}.nav-link i{width:12px;height:1px;background:transparent}.nav-link.active{background:transparent;border:0;color:#fff;font-weight:650}.nav-link.active:before{content:"";position:absolute;left:-16px;width:2px;height:18px;background:var(--accent)}.nav-link.active i{background:var(--accent)}.rail-foot strong,.rail-foot small{display:block}.rail-foot small{color:#777970;margin-top:3px}.rail-foot{gap:13px}.rail-foot>a{font-size:10px;color:#8e9088}.workspace{padding:26px clamp(22px,3vw,54px) 70px}.topline{min-height:76px;align-items:center;padding-bottom:16px;margin-bottom:26px}.title-block{display:flex;align-items:baseline;gap:18px}.title-block .eyebrow{order:2;margin:0}.topline h1{font-size:31px;letter-spacing:-.025em}.top-actions{align-items:center}.global-search{min-width:330px;background:#fff8;padding:0 8px;border:1px solid color-mix(in srgb,var(--accent) 16%,var(--line));border-radius:999px}.global-search input{padding:9px 7px}.global-search button{padding-right:5px}.userbox{display:flex;align-items:center;gap:9px;text-align:left}.user-initial{width:34px;height:34px;border:1px solid var(--line);display:grid;place-items:center;border-radius:50%;font:600 12px Georgia,serif;background:#fff}.userbox strong{font-size:11px}.userbox small{font-size:9px}.attention{gap:28px}.attention-main{position:relative;background:var(--rail-bg);padding:30px 32px;box-shadow:var(--shadow);border-radius:var(--radius);overflow:hidden}.attention-main:after{content:"";position:absolute;right:-40px;top:-90px;width:230px;height:230px;border:1px solid color-mix(in srgb,var(--accent) 48%,transparent);border-radius:50%}.attention-main h2{font-size:28px}.attention-list{background:transparent;gap:0}.attention-item{background:transparent;border-bottom:1px solid #ffffff13;padding:12px 0}.numbers{gap:18px 22px}.metric{padding:13px 0 22px;border-top:1px solid var(--ink)}.metric strong{font-size:28px}.flow{background:#fff8;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:var(--radius);overflow:hidden}.flow div{padding:20px}.family-list{gap:12px}.family-person{position:relative;background:#fff9;border:1px solid var(--line);padding:16px 17px;border-radius:var(--radius);transition:.18s}.family-person:after{content:"↗";position:absolute;right:15px;top:15px;color:var(--accent)}.family-person:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:color-mix(in srgb,var(--accent) 40%,var(--line))}.panel,.table-wrap,.mini-form,.frame-card,.lens-card,.production-card,.production-col{border-radius:var(--radius)}.empty{min-height:128px;display:grid;place-items:center;background:rgba(255,255,255,.38);border-style:solid;color:#8a8175}.catalog-grid{gap:18px}.frame-card{box-shadow:0 10px 28px rgba(24,22,18,.035);overflow:hidden}.frame-visual{background:linear-gradient(145deg,#ece5d9,#f8f5ef)}.lens-card{box-shadow:var(--shadow);border:1px solid var(--line);border-top:3px solid var(--accent)}.production-col{background:color-mix(in srgb,var(--accent2) 22%,#f4f1ea);border-top-color:var(--accent)}
.section-kicker{display:block;font-size:8px;letter-spacing:.16em;text-transform:uppercase;color:var(--accent);font-weight:800}.settings-intro{display:flex;justify-content:space-between;align-items:end;padding:8px 0 26px;border-bottom:1px solid var(--line)}.settings-intro h2{font:500 30px Georgia,serif;margin:7px 0}.settings-intro p{margin:0;color:var(--muted);font-size:12px}.settings-swatch{width:58px;height:58px;border-radius:50%;box-shadow:inset 0 0 0 8px var(--paper),0 0 0 1px var(--line)}.settings-layout{max-width:1180px}.settings-section{display:grid;grid-template-columns:280px 1fr;gap:50px;padding:32px 0;border-bottom:1px solid var(--line)}.settings-copy>span{font:italic 18px Georgia,serif;color:var(--accent)}.settings-copy h3{font:500 22px Georgia,serif;margin:7px 0}.settings-copy p{font-size:11px;color:var(--muted);line-height:1.6}.settings-fields{display:grid;grid-template-columns:1fr 180px;gap:14px}.preset-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.preset-card{position:relative;border:1px solid var(--line);background:#fff9;padding:18px;min-height:115px;cursor:pointer}.preset-card input{position:absolute;right:14px;top:14px;accent-color:var(--accent)}.preset-card strong,.preset-card small{display:block}.preset-card strong{font:500 17px Georgia,serif}.preset-card small{font-size:10px;color:var(--muted);margin-top:7px;line-height:1.45}.preset-card:has(input:checked){border-color:var(--accent);box-shadow:inset 0 -3px var(--accent)}.color-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.color-field{border:1px solid var(--line);background:#fff9;padding:12px}.color-field span,.color-field code{display:block;font-size:9px}.color-field span{text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.color-field input{width:100%;height:58px;border:0;padding:0;background:transparent;margin:8px 0}.color-field code{color:var(--muted)}.settings-save{position:sticky;bottom:14px;margin-top:22px;padding:14px 16px;background:var(--rail-bg);color:#fff;display:flex;justify-content:space-between;align-items:center;box-shadow:0 16px 45px #0002;border-radius:var(--radius)}.settings-save strong,.settings-save small{display:block}.settings-save small{color:#aaa;font-size:9px;margin-top:3px}.settings-save .btn{background:var(--accent);border-color:var(--accent)}
.login-premium{grid-template-columns:minmax(360px,510px) 1fr}.login-premium .login-form{padding:42px 48px;display:flex;flex-direction:column;background:var(--paper)}.login-top{display:flex;align-items:center;justify-content:space-between}.login-top .brand{padding:0}.login-edition{font-size:8px;letter-spacing:.16em;color:var(--muted)}.login-copy{margin:auto 0 28px;max-width:390px}.login-premium .login-copy h1{font:500 48px/1 Georgia,serif;letter-spacing:-.03em;margin:10px 0 15px}.login-premium .login-copy p{max-width:340px}.login-fields{display:grid;gap:13px}.login-fields .btn{margin-top:3px;width:100%;padding:12px}.login-premium .hint{margin-top:16px}.login-premium .login-art{display:block;background:var(--rail-bg)}.login-art-content{height:100%;padding:44px 54px;color:#f2ede5;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.art-index{font-size:9px;letter-spacing:.18em;color:#888}.login-art-content h2{font:500 clamp(42px,4.2vw,76px)/.98 Georgia,serif;letter-spacing:-.04em;margin:12px 0;max-width:800px}.login-art-content h2 em{color:var(--accent2);font-weight:400}.lens-outline{position:absolute;right:-6%;top:12%;width:72%;height:42%;display:flex;gap:3%;transform:rotate(-5deg);opacity:.55}.lens-outline i{display:block;width:48%;border:1px solid var(--accent);border-radius:45% 45% 48% 48%}.lens-outline:after{content:"";position:absolute;left:47%;top:46%;width:7%;border-top:1px solid var(--accent)}.art-foot{display:flex;gap:26px;border-top:1px solid #ffffff1a;padding-top:17px;font-size:8px;letter-spacing:.13em;color:#999}
.title-modern .topline h1,.title-modern .section-head h2,.title-modern .attention-main h2,.title-modern .settings-copy h3{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-weight:650;letter-spacing:-.03em}.preset-editorial .workspace{max-width:1660px}.preset-editorial .topline{border-bottom-color:var(--ink)}.preset-editorial .panel,.preset-editorial .table-wrap{background:transparent}.preset-compact .workspace{padding-top:20px}.preset-compact .topline{min-height:58px;margin-bottom:18px}.preset-compact .section{margin-top:24px}.density-compact .table-wrap td{padding:8px 10px}.density-compact .nav-link{padding-top:5px;padding-bottom:5px}.density-compact .attention-main{padding:22px 25px}.density-compact .family-person{padding:12px 14px}
@media(max-width:900px){.shell{grid-template-columns:1fr}.rail-context,.nav-caption{display:none}.nav-group{display:contents}.settings-section{grid-template-columns:1fr;gap:18px}.preset-grid,.color-grid{grid-template-columns:1fr 1fr}.title-block{display:block}.title-block .eyebrow{margin-top:4px}.login-premium{grid-template-columns:1fr}.login-premium .login-art{display:none}}
@media(max-width:560px){.workspace{padding:16px 14px 50px}.global-search{min-width:0}.settings-fields,.preset-grid,.color-grid{grid-template-columns:1fr}.settings-save{position:static;gap:15px}.settings-save small{display:none}.login-premium .login-form{padding:28px 22px}.login-premium .login-copy h1{font-size:40px}.attention-main{padding:22px}.numbers{gap:8px 14px}}

/* V0.6 — financeiro ampliado, compras, equipe, garantias e site */
.compact-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.compact-inline input,.compact-inline select{border:1px solid var(--line);background:#fff;padding:8px 9px;font-size:12px;max-width:150px}.compact-form label{display:flex;gap:8px;align-items:flex-start;font-size:12px;margin-bottom:8px;color:var(--ink)}.field-help{font-size:11px;color:var(--muted);line-height:1.45;margin:0 0 10px}.quote-row form label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}

/* V0.6.2 — arquitetura baseada nas referências operacionais de ótica */
body.md-ref-ui{margin:0;background:#edf1f5;background-image:none;color:#111827;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}.ref-shell{min-height:100vh;display:grid;grid-template-columns:198px minmax(0,1fr)}.ref-rail{background:#183154;min-height:100vh;color:#fff;position:sticky;top:0;height:100vh;overflow:auto}.ref-brand{height:66px;padding:12px 14px;display:flex;align-items:center;gap:10px;color:#fff;background:#183154;border-bottom:1px solid rgba(255,255,255,.08)}.ref-brand-icon{width:38px;height:38px;border-radius:9px;background:#0879da;box-shadow:0 7px 18px rgba(0,111,214,.35);display:grid;place-items:center;font-weight:900;font-size:12px}.ref-brand strong,.ref-brand small{display:block}.ref-brand strong{font-size:15px}.ref-brand small{font-size:9px;font-weight:500;color:#c8d6e8;margin-top:2px}.desktop-rail-content{padding:10px 8px 14px}.hub-stack,.submodule-stack{display:grid;gap:7px}.hub-tile,.submodule-tile{position:relative;background:var(--hub);border-radius:10px;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:157px;padding:16px 10px;box-shadow:inset 0 -14px 28px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.12);transition:transform .12s,filter .12s}.hub-tile:hover,.submodule-tile:hover{transform:translateY(-1px);filter:brightness(1.03)}.hub-tile .hub-key,.submodule-tile .hub-key{position:absolute;right:7px;top:6px;font-size:10px;font-weight:800;color:#fff}.hub-icon,.submodule-icon{font-size:34px;line-height:1;margin-bottom:12px;color:#fff}.hub-tile strong,.submodule-tile strong{font-size:13px;line-height:1.2}.rail-area-title{display:flex;align-items:center;gap:8px;padding:10px 8px 13px;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:9px}.rail-area-title span{width:34px;height:34px;border-radius:8px;background:var(--hub);display:grid;place-items:center}.rail-area-title strong{font-size:13px}.submodule-tile{min-height:145px;background:linear-gradient(145deg,color-mix(in srgb,var(--hub) 88%,#000),var(--hub))}.submodule-tile.active{outline:2px solid rgba(255,255,255,.8);outline-offset:-3px}.rail-home{margin-top:10px;display:block;text-align:center;background:#2b4165;color:#fff;border-radius:7px;padding:10px;font-size:11px;font-weight:700}.ref-main{min-width:0;background:#edf1f5;padding-bottom:60px}.ref-topbar{height:66px;background:#fff;box-shadow:0 2px 10px rgba(15,23,42,.08);display:flex;align-items:center;justify-content:space-between;padding:7px 20px;position:sticky;top:0;z-index:20}.license-block small,.license-block strong,.license-block span{display:block}.license-block small{font-size:9px;color:#7b8797}.license-block strong{font-size:17px;color:#111827;line-height:1.15}.license-block span{font-size:9px;color:#617082;margin-top:2px}.topbar-actions{display:flex;gap:8px;align-items:center}.ref-search{display:flex;border:1px solid #d4dbe4;border-radius:7px;overflow:hidden;background:#fff}.ref-search input{border:0;padding:9px 11px;width:290px;outline:none;font-size:11px}.ref-search button,.top-home,.top-exit{border:0;border-radius:7px;padding:9px 13px;font-size:11px;font-weight:800;color:#fff}.ref-search button,.top-home{background:#0d71c8}.top-exit{background:#e33434}.page-title-card{margin:15px 18px 12px;background:#fff;border-radius:10px;box-shadow:0 4px 15px rgba(15,23,42,.09);padding:15px 18px}.page-title-card>div{display:flex;align-items:center;gap:12px}.page-title-mark{width:36px;height:36px;border-radius:8px;background:#e7f1fb;color:#1172c9;display:grid;place-items:center;font-size:21px}.page-title-card h1{font-size:18px;margin:0;font-weight:800;line-height:1.15}.page-title-card small{font-size:11px;color:#758092}.ref-main>.section,.ref-main>.attention,.ref-main>.ops-grid,.ref-main>.quote-sheet,.ref-main>.profile-strip,.ref-main>.catalog-toolbar,.ref-main>.catalog-grid,.ref-main>.stock-summary,.ref-main>.subnav,.ref-main>.settings-intro,.ref-main>.settings-layout,.ref-main>.home-shortcuts,.ref-main>.dashboard-cards,.ref-main>.ref-panel,.ref-main>.ref-content-grid,.ref-main>.tabs{margin-left:18px;margin-right:18px}.ref-main>.subnav{background:#fff;border:1px solid #dbe1e8;border-radius:9px;padding:8px 12px;margin-top:10px}.ref-main>.subnav a{display:inline-flex;padding:6px 11px;border:1px solid #d7dee7;border-radius:999px;margin-right:6px;font-size:11px;color:#152033}.ref-main>.subnav a.active{background:#0d71c8;color:#fff;border-color:#0d71c8}.section-head{background:#fff;border-radius:9px;padding:12px 14px;box-shadow:0 3px 12px rgba(15,23,42,.06);margin-bottom:10px;align-items:center}.section-head h2{font-family:Inter,system-ui,sans-serif;font-weight:800;font-size:18px}.section-head p{font-size:10px;color:#7b8797}.btn{border:0;border-radius:7px;background:#0d71c8;color:#fff;font-weight:800;padding:9px 13px;box-shadow:none}.btn.secondary{border:1px solid #cdd6e0;background:#fff;color:#1d2a3a}.panel,.table-wrap,.mini-form,.conversion-box,.quote-block,.frame-card,.lens-card{border:1px solid #dce2e8;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.05);border-radius:9px}.table-wrap{overflow:auto}.table-wrap table{font-size:11px}.table-wrap th{background:#f6f8fb;color:#576477;font-weight:800;padding:10px}.table-wrap td{padding:10px;border-bottom:1px solid #edf0f4}.field input,.field select,.field textarea,.catalog-toolbar input,.catalog-toolbar select{border:1px solid #d0d8e2;border-radius:6px;background:#fff;padding:9px 10px}.field label{color:#627083;font-weight:800}.empty,.ref-empty{min-height:150px;border:0;background:#fff;display:grid;place-items:center;color:#a1a9b4;font-size:12px}.flash{margin:0 18px 12px;border-radius:7px;padding:10px 12px}.home-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}.home-module{min-height:108px;border-radius:9px;color:#fff;padding:14px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;box-shadow:0 4px 12px rgba(0,0,0,.1)}.home-module.green,.dash-card.green,.ref-stat.green{background:linear-gradient(135deg,#48b458,#2f963c)}.home-module.purple,.dash-card.purple,.ref-stat.purple{background:linear-gradient(135deg,#a630bb,#741d9b)}.home-module.blue,.dash-card.blue,.ref-stat.blue{background:linear-gradient(135deg,#2696df,#0e6fc9)}.home-module.orange,.dash-card.orange,.ref-stat.orange{background:linear-gradient(135deg,#ffad27,#ff7d16)}.home-module .module-icon{font-size:26px;margin-bottom:7px}.home-module strong{font-size:14px}.home-module small{font-size:9px;opacity:.85;margin-top:3px}.dashboard-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}.dash-card{position:relative;overflow:hidden;color:#fff;border-radius:10px;padding:14px 16px;min-height:145px;box-shadow:0 5px 12px rgba(0,0,0,.12)}.dash-card h2{font-size:13px;margin:0 0 12px;text-align:center}.dash-card dl{margin:0 0 0 35%}.dash-card dl div{display:flex;justify-content:space-between;gap:8px;margin:5px 0;font-size:10px}.dash-card dt{font-weight:700}.dash-card dd{margin:0;font-weight:900;white-space:nowrap}.dash-watermark{position:absolute;left:13px;top:48px;font-size:55px;opacity:.22}.ref-panel{margin-top:12px;background:#fff;border:1px solid #d9e0e8;border-radius:9px;box-shadow:0 3px 12px rgba(15,23,42,.06);overflow:hidden}.ref-panel-head{min-height:46px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;color:#fff}.ref-panel-head.navy{background:#183154}.ref-panel-head.orange{background:#ee4b12}.ref-panel-head.green{background:#2f913e}.ref-panel-head.blue{background:#0e72c8}.ref-panel-head.purple{background:#7a279f}.ref-panel-head strong,.ref-panel-head small{display:block}.ref-panel-head strong{font-size:13px}.ref-panel-head small{font-size:9px;opacity:.85;margin-top:2px}.alerts-panel{margin-bottom:20px}.alert-grid{display:grid;grid-template-columns:repeat(4,1fr);padding:14px}.alert-grid a{padding:16px;border-right:1px solid #e8edf2;text-align:center}.alert-grid a:last-child{border-right:0}.alert-grid strong{display:block;font-size:24px;color:#173052}.alert-grid span{font-size:10px;color:#788497}.ref-summary-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0 18px 12px}.ref-stat{color:#fff;border-radius:9px;padding:12px 14px;min-height:86px}.ref-stat span,.ref-stat strong,.ref-stat small{display:block}.ref-stat span{font-size:10px;font-weight:800}.ref-stat strong{font-size:26px;margin:3px 0}.ref-stat small{font-size:9px}.ref-content-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px}.ref-form-pad{padding:14px}.table-note{display:block;color:#8390a0;margin-top:2px}.quote-row{background:#fff;border-bottom:1px solid #edf0f4}.stock-summary{background:#fff;border-radius:9px;box-shadow:0 3px 12px rgba(15,23,42,.06);overflow:hidden}.stock-summary>div{background:#fff}.production-col{background:#fff}.settings-section{background:#fff;padding:22px;border-radius:9px;margin-bottom:10px;box-shadow:0 3px 12px rgba(15,23,42,.05)}.mobile-license,.mobile-hubs{display:none}

@media(max-width:900px){body.md-ref-ui{background:#eef1f5}.ref-shell{display:block}.ref-rail{display:none}.ref-main{padding-bottom:30px}.ref-topbar{display:none}.mobile-license{display:flex;height:84px;background:#fff;padding:12px 14px;align-items:center;justify-content:space-between;border-bottom:1px solid #dce2e8}.mobile-license small,.mobile-license strong{display:block}.mobile-license small{font-size:9px;color:#7c8795}.mobile-license strong{font-size:17px}.mobile-actions{display:flex;gap:6px}.mobile-actions a{padding:8px 10px;border-radius:7px;background:#0d71c8;color:#fff;font-size:11px;font-weight:800}.mobile-actions a:last-child{background:#7c279e}.mobile-hubs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px 9px;background:#183154}.mobile-hubs .hub-tile{min-height:64px;padding:8px 4px;border-radius:7px;box-shadow:none}.mobile-hubs .hub-icon{font-size:20px;margin-bottom:4px}.mobile-hubs .hub-tile strong{font-size:8px}.mobile-hubs .hub-key{font-size:7px;right:4px;top:3px}.page-title-card{display:none}.ref-main>.section,.ref-main>.attention,.ref-main>.ops-grid,.ref-main>.quote-sheet,.ref-main>.profile-strip,.ref-main>.catalog-toolbar,.ref-main>.catalog-grid,.ref-main>.stock-summary,.ref-main>.subnav,.ref-main>.settings-intro,.ref-main>.settings-layout,.ref-main>.home-shortcuts,.ref-main>.dashboard-cards,.ref-main>.ref-panel,.ref-main>.ref-content-grid,.ref-main>.tabs{margin-left:9px;margin-right:9px}.desktop-home-shortcuts{display:none}.dashboard-cards{grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}.dash-card{min-height:138px;padding:13px 14px;border-radius:9px}.dash-card h2{font-size:14px;margin-bottom:13px;letter-spacing:.01em}.dash-card dl{margin:0 0 0 30px;position:relative;z-index:2}.dash-card dl div{font-size:10.5px;line-height:1.35;margin:6px 0;align-items:baseline}.dash-card dt{font-weight:750}.dash-card dd{font-size:11px}.dash-watermark{font-size:38px;left:8px;top:auto;bottom:8px;opacity:.18}.alerts-panel{margin-top:9px}.alert-grid{grid-template-columns:1fr 1fr;padding:8px}.alert-grid a{border-bottom:1px solid #e8edf2}.alert-grid strong{font-size:20px}.ref-content-grid{grid-template-columns:1fr}.ref-summary-row{margin:9px;grid-template-columns:repeat(3,1fr);gap:6px}.ref-stat{padding:9px;min-height:72px}.ref-stat strong{font-size:20px}.section-head{margin-top:9px;padding:10px}.section-head h2{font-size:15px}.ops-grid,.quote-sheet,.profile-strip{grid-template-columns:1fr}.catalog-grid{grid-template-columns:1fr 1fr}.stock-summary{grid-template-columns:1fr 1fr}.global-search{display:none}.settings-section{grid-template-columns:1fr}.table-wrap{max-width:100vw}.compact-inline{align-items:stretch}.compact-inline input,.compact-inline select{max-width:none}.wizard{grid-template-columns:1fr}.wizard-steps{display:flex;overflow:auto}}
@media(max-width:520px){.mobile-license{height:72px}.mobile-hubs{padding:6px;gap:4px}.mobile-hubs .hub-tile{min-height:56px}.mobile-hubs .hub-icon{font-size:17px}.dashboard-cards{gap:7px}.dash-card{min-height:112px;padding:10px}.dash-watermark{font-size:38px;top:43px}.dash-card dl{margin-left:28%}.dash-card dl div{font-size:7.8px}.alert-grid{grid-template-columns:1fr 1fr}.catalog-grid{grid-template-columns:1fr}.ref-summary-row{grid-template-columns:1fr 1fr}.ref-summary-row .ref-stat:last-child{grid-column:1/-1}}

/* V0.7 — estação de venda inspirada no fluxo operacional das referências */
.sale-station{display:grid;grid-template-columns:360px minmax(0,1fr);min-height:calc(100vh - 210px);background:#fff;border:1px solid #dce2e9;border-radius:10px;overflow:hidden;box-shadow:0 7px 22px rgba(17,39,66,.05)}
.sale-cart{display:flex;flex-direction:column;border-right:1px solid #dce2e9;background:#fff;min-width:0}.sale-cart-head{background:linear-gradient(90deg,#2c8a38,#228033);color:#fff;padding:14px 16px;display:flex;justify-content:space-between;align-items:center}.sale-cart-head span{font-size:12px;font-weight:800}.sale-cart-head strong{font-size:25px}.sale-client-box{padding:15px;border-bottom:1px solid #e2e6ec}.sale-client-box label,.sale-cart-note label{display:block;font-size:10px;font-weight:800;text-transform:uppercase;color:#6e7887;margin-bottom:6px}.sale-client-box select,.sale-cart-note textarea{width:100%;border:1px solid #d7dde5;border-radius:6px;padding:10px;background:#fff}.sale-summary-list{padding:8px 15px;display:grid;gap:0}.sale-summary-list>div{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid #edf0f3}.sale-summary-list span{font-size:11px;color:#717b89}.sale-summary-list strong{font-size:12px;text-align:right}.sale-cart-note{padding:15px;margin-top:auto}.sale-cart-actions{display:grid;grid-template-columns:1fr 1.65fr;gap:8px;padding:12px 15px 15px;border-top:1px solid #e3e7ed}.sale-catalog{min-width:0;background:#f3f6f9}.sale-band{height:42px;padding:0 14px;color:#fff;display:flex;align-items:center;justify-content:space-between}.sale-band strong{font-size:13px}.sale-band span{font-size:10px;opacity:.88}.sale-band.blue{background:linear-gradient(90deg,#126bc2,#1f78cd)}.sale-band.green{background:linear-gradient(90deg,#267d31,#318e3d)}.sale-band.purple{background:linear-gradient(90deg,#6f259f,#7f28ad)}.sale-fields-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:14px;background:#fff;border-bottom:1px solid #dce2e9}.sale-fields-grid .full{grid-column:1/-1}.sale-search-row{padding:10px 12px;background:#fff;border-bottom:1px solid #e2e6ec}.sale-search-row input{width:100%;border:2px solid #3aa14a;border-radius:7px;padding:9px 11px;font-size:12px}.product-choice-grid{padding:12px;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:9px;max-height:300px;overflow:auto}.choice-card{position:relative;background:#fff;border:1px solid #d8dee6;border-radius:8px;padding:12px;display:grid;gap:4px;cursor:pointer}.choice-card input{position:absolute;right:10px;top:10px;accent-color:#2d9540}.choice-card:has(input:checked){border:2px solid #2e9b40;background:#f7fff8}.choice-card strong{font-size:12px;padding-right:20px}.choice-card small{font-size:10px;color:#717d8d}.choice-card b{font-size:13px;color:#1f7731;margin-top:4px}.reserve-line{display:flex;align-items:center;gap:7px;padding:8px 14px 14px;background:#fff;font-size:11px;color:#667384}.pdv-treatments{padding:12px;background:#fff;min-height:90px}.pdv-treatments label{border:1px solid #d6dce5;border-radius:7px;padding:9px 10px;background:#fafcff;font-size:11px}.pdv-treatments label:has(input:checked){border-color:#7c28aa;background:#fbf4ff}.pdv-treatments b{color:#70269d}
@media(max-width:980px){.sale-station{grid-template-columns:1fr}.sale-cart{border-right:0;border-bottom:1px solid #dce2e9}.sale-summary-list{grid-template-columns:1fr 1fr;column-gap:16px}.sale-cart-note{margin-top:0}.sale-fields-grid{grid-template-columns:1fr 1fr}.sale-fields-grid .full{grid-column:1/-1}.product-choice-grid{max-height:none}}
@media(max-width:620px){.sale-cart-head strong{font-size:21px}.sale-summary-list{grid-template-columns:1fr}.sale-fields-grid{grid-template-columns:1fr}.sale-fields-grid .full{grid-column:auto}.product-choice-grid{grid-template-columns:1fr}.sale-band span{display:none}}
/* V1 — acabamento dos módulos de gestão */
.training-hero,.message-preview,.aging-strip,.insight-band{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;border:1px solid #dce3ea;padding:24px;margin-bottom:20px;border-radius:var(--radius)}
.training-hero>strong{font-size:42px;color:var(--accent)}.lesson-grid,.template-grid,.permission-grid,.backup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.lesson-card,.template-card,.permission-card,.action-panel{background:#fff;border:1px solid #dce3ea;border-radius:var(--radius);padding:20px}.lesson-card{display:grid;grid-template-columns:42px 1fr;gap:14px}.lesson-card>span{font-size:24px;color:#94a3b8}.lesson-card.complete{border-color:#9bd3a1;background:#f7fff8}.lesson-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.permission-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.permission-card{display:grid;gap:7px}.template-card{display:grid;gap:10px}.backup-grid{margin-bottom:20px}.danger-soft{border-color:#f4c7c7}.aging-strip,.insight-band{background:#172f4f;color:#fff}.insight-band>div{min-width:130px}.insight-band span{display:block;font-size:12px;opacity:.72}.insight-band strong{font-size:25px}.insight-band p{max-width:380px;margin:0}.report-filter{display:flex;justify-content:flex-end;margin:-4px 0 14px}.report-filter select{margin-left:8px}.report-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.user-pop{padding:12px;background:#fff;box-shadow:0 12px 30px #18304d22;position:absolute;z-index:3}.message-preview{border-left:5px solid #25d366}
.aging-strip{display:grid;grid-template-columns:1.35fr repeat(3,minmax(135px,1fr)) 1.5fr;gap:12px;padding:16px;background:linear-gradient(125deg,#122944,#1d426a);border:0;box-shadow:0 12px 28px #1029431d}.aging-title{display:flex;align-items:center;gap:11px;padding:4px 8px}.aging-title-icon{display:grid!important;place-items:center;width:38px;height:38px;border-radius:12px;background:#ffffff18;font-size:20px!important;opacity:1!important}.aging-title strong{display:block;font-size:16px!important}.aging-title small{display:block;margin-top:3px;color:#bfd0df;line-height:1.25}.aging-level{position:relative;min-width:0;padding:12px 14px;border:1px solid #ffffff21;border-radius:12px;background:#ffffff0d}.aging-level>span{display:flex;align-items:center;gap:7px;color:#dbe8f3;font-size:11px;font-weight:800;opacity:1}.aging-level i{width:7px;height:7px;border-radius:50%;background:#ffc04a;box-shadow:0 0 0 4px #ffc04a20}.aging-level strong{display:block;margin-top:8px;font-size:22px!important;line-height:1}.aging-level strong small{font-size:10px;color:#b8cadb;font-weight:700}.aging-level b{display:block;margin-top:6px;color:#fff;font-size:12px}.aging-180 i{background:#ff8b35;box-shadow:0 0 0 4px #ff8b3520}.aging-365 i{background:#ff5c5c;box-shadow:0 0 0 4px #ff5c5c20}.aging-strip>p{align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:4px;margin:0;padding:10px 14px;border-left:2px solid #ff8b35;color:#d9e6f0;font-size:11px;line-height:1.4}.aging-strip>p strong{color:#fff;font-size:12px!important}
@media(max-width:900px){.aging-strip{grid-template-columns:repeat(3,1fr);gap:8px;padding:12px}.aging-title,.aging-strip>p{grid-column:1/-1}.aging-title{padding:2px}.aging-title small{font-size:11px}.aging-level{padding:11px 8px;text-align:center}.aging-level>span{justify-content:center;font-size:10px}.aging-level strong{font-size:21px!important}.aging-level b{font-size:10.5px}.aging-strip>p{padding:10px 12px;background:#ffffff0a;border-left:0;border-top:2px solid #ff8b35;border-radius:8px}}

/* Contenção global e assinatura institucional */
html,body{max-width:100%;overflow-x:hidden}.ref-shell,.ref-main,.ref-main>*{min-width:0}.ref-shell{align-items:stretch;background:linear-gradient(90deg,#183154 0,#183154 198px,#edf1f5 198px)}.ref-rail{position:relative;top:auto;height:auto;min-height:100vh;align-self:stretch;overflow:visible}.ref-main{display:flex;flex-direction:column;min-height:100vh}.ref-main>*,.ref-main form,.ref-main section,.ref-main div{max-width:100%}img,svg,video,canvas{max-width:100%;height:auto}.ref-main>.production-board,.ref-main>.aging-strip,.ref-main>.insight-band,.ref-main>.report-columns,.ref-main>.lesson-grid,.ref-main>.template-grid,.ref-main>.permission-grid,.ref-main>.backup-grid{margin-left:18px;margin-right:18px}.production-board{grid-template-columns:repeat(5,minmax(0,1fr));overflow:visible}.production-col{min-width:0}.production-card strong,.production-card span,.data-board-head strong,.module-command h2{overflow-wrap:anywhere}.md-footer{margin:28px 18px -60px;margin-top:auto;padding:8px 14px;border-top:2px solid #1976c9;background:#fff;color:#657386;display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:16px;box-shadow:0 -2px 10px #0f172a08;font-size:9px;min-height:42px}.md-footer div{display:flex;align-items:center;gap:9px}.md-footer div strong,.md-footer div span{display:block}.md-footer div strong{font-size:10px;letter-spacing:.08em;color:#183154}.md-footer p{margin:0}.md-footer a{border-radius:999px;padding:6px 9px;background:#edf7f0;color:#18743a;font-weight:800;white-space:nowrap}
@media(max-width:1100px){.production-board{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.ref-shell{background:#edf1f5}.ref-main>.production-board,.ref-main>.aging-strip,.ref-main>.insight-band,.ref-main>.report-columns,.ref-main>.lesson-grid,.ref-main>.template-grid,.ref-main>.permission-grid,.ref-main>.backup-grid{margin-left:9px;margin-right:9px}.production-board{grid-template-columns:1fr;overflow:visible}.production-col{min-height:0;padding:12px}.production-empty{min-height:90px}.md-footer{margin:24px 9px -60px;margin-top:auto;grid-template-columns:1fr auto;gap:5px 10px;padding:8px 10px;text-align:left}.md-footer div{gap:6px}.md-footer div span{display:none}.md-footer p{grid-column:1/-1;font-size:8px}.md-footer a{justify-self:end;white-space:nowrap;padding:5px 8px}.status-dock{max-width:calc(100vw - 18px)}}
@media(max-width:900px){.lesson-grid,.template-grid,.permission-grid,.backup-grid,.report-columns{grid-template-columns:1fr}.training-hero,.message-preview,.insight-band{align-items:flex-start;flex-direction:column}.insight-band>div{width:100%;display:flex;justify-content:space-between}.user-pop{position:static}.permission-card{grid-template-columns:1fr 1fr}.permission-card h3,.permission-card button{grid-column:1/-1}}
/* Referências originais — comando compacto, filtros, barras e totais operacionais */
.module-command,.filter-deck,.data-board,.status-dock{margin-left:18px;margin-right:18px}.module-command{background:#fff;border:1px solid #dce2e8;border-radius:10px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 3px 12px #0f172a0b}.module-command>div{display:flex;align-items:center;gap:12px}.module-command h2{font-size:18px;margin:0}.module-command small{color:#7b8797}.command-icon{font-size:26px;color:#1172c9}.filter-deck{display:flex;align-items:end;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #dce2e8;border-radius:10px;padding:13px 16px;margin-top:12px}.filter-deck label{display:grid;gap:5px;color:#657284;text-transform:uppercase;font-size:9px;font-weight:800;min-width:140px}.filter-deck input,.filter-deck select{border:1px solid #ced7e1;border-radius:6px;padding:9px;background:#fff;min-width:0}.data-board{margin-top:12px;border-radius:10px;overflow:hidden;background:#fff;border:1px solid #d7dfe8;box-shadow:0 3px 12px #0f172a0b}.data-board-head{height:48px;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;background:#183154}.blue-board .data-board-head{background:linear-gradient(90deg,#0d71c8,#185aa7)}.green-board .data-board-head{background:linear-gradient(90deg,#2d923c,#216e2d)}.purple-board .data-board-head{background:linear-gradient(90deg,#842caf,#5d1984)}.data-board .table-wrap{border:0;border-radius:0;box-shadow:none}.data-board table thead th{background:#183154;color:#fff;border:0}.status-dock{display:flex;background:#183154;color:#fff;position:sticky;bottom:0;z-index:12;margin-top:14px;border-radius:8px 8px 0 0;overflow:auto}.status-dock div{min-width:130px;padding:9px 16px;border-right:1px solid #ffffff24;text-align:center}.status-dock span,.status-dock strong{display:block}.status-dock span{text-transform:uppercase;font-size:8px;color:#aac0dc}.status-dock strong{font-size:17px;margin-top:2px}
@media(max-width:900px){.module-command,.filter-deck,.data-board,.status-dock{margin-left:9px;margin-right:9px}.filter-deck{display:grid;grid-template-columns:1fr 1fr}.filter-deck label{min-width:0}.module-command h2{font-size:15px}.status-dock{position:static}.data-board-head span{display:none}}@media(max-width:520px){.module-command{align-items:flex-start}.module-command .btn{padding:8px;font-size:9px}.filter-deck{grid-template-columns:1fr}.filter-deck .btn{width:100%}}
.finance-pills{display:flex!important;gap:8px!important}.finance-pills span{border-left:3px solid #7b27a8;background:#f6f3f8;padding:7px 12px;font-size:9px;text-transform:uppercase;color:#677285}.finance-pills b{display:block;color:#111827;font-size:14px;margin-top:2px}.section-financeiro .stock-summary{border-top:4px solid #7b27a8}.section-financeiro .finance-table table thead th{background:#5e1a83;color:#fff}.section-financeiro .finance-ledger{border-top:42px solid #7b27a8;position:relative}.section-financeiro .finance-ledger:before{content:'CONTAS A RECEBER';position:absolute;top:-29px;left:14px;color:#fff;font-size:11px;font-weight:900}.finance-dock{background:#35134d}
.section-financeiro .finance-ledger{padding:12px;background:#f7f8fb}.finance-ledger .quote-row{grid-template-columns:52px minmax(210px,1fr) 105px minmax(300px,auto);gap:14px;padding:14px 16px;margin-bottom:9px;border:1px solid #dce2e9;border-radius:9px;box-shadow:0 3px 10px #17243a0b}.finance-ledger .quote-row:last-child{margin-bottom:0}.finance-ledger .quote-id{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#eee5f4;color:#6d258d;font:800 13px Inter,system-ui,sans-serif}.finance-ledger .quote-row h3{font-size:13px;color:#152238}.finance-ledger .quote-row p{font-size:10px;color:#718096}.finance-ledger .quote-total{padding-right:4px}.finance-ledger .quote-total strong{font:850 17px Inter,system-ui,sans-serif;color:#152238}.finance-ledger .quote-total small{display:inline-flex;margin-top:5px;padding:3px 7px;border-radius:999px;background:#fff1d6;color:#8a5a00;font-size:8px;font-weight:850;text-transform:uppercase}.finance-ledger .compact-inline{display:grid;grid-template-columns:100px 110px auto;gap:7px;flex-wrap:nowrap}.finance-ledger .compact-inline input,.finance-ledger .compact-inline select{width:100%;max-width:none;min-width:0;height:36px;border-radius:6px}.finance-ledger .compact-inline .btn{height:36px;white-space:nowrap;background:#7b27a8;color:#fff;border-color:#7b27a8}
.production-empty{margin-top:18px;padding:34px 8px;text-align:center;border:1px dashed #cad4df;border-radius:8px;color:#8b96a3;background:#f8fafc}.production-empty span{font-size:10px}.text-danger{color:#d53232!important;font-weight:800}
.orange-board .data-board-head{background:linear-gradient(90deg,#e94c12,#c83a0b)}.aging-board{margin-bottom:18px}.aging-badge{display:inline-flex;border-radius:16px;padding:4px 8px;background:#fff2e8;color:#a43c0c;font-size:9px;font-weight:900}.aging-badge.band-365\+{background:#ffe5e5;color:#a82020}
.crm-summary{display:grid;grid-template-columns:repeat(6,1fr);gap:1px;background:#dfe5eb;margin:12px 18px;border:1px solid #dfe5eb;border-radius:9px;overflow:hidden}.crm-summary>div{background:#fff;padding:13px}.crm-summary span{display:block;color:#738094;text-transform:uppercase;font-size:8px;font-weight:800}.crm-summary strong{display:block;color:#183154;font-size:23px;margin-top:4px}@media(max-width:1000px){.crm-summary{grid-template-columns:repeat(3,1fr)}}@media(max-width:520px){.crm-summary{grid-template-columns:repeat(2,1fr);margin:9px}}
.notice-all{color:#fff;font-size:10px;font-weight:800}.notice-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 18px}.notice-summary>div{background:#fff;border-radius:9px;padding:16px;border-left:5px solid #a5afbb}.notice-summary .high{border-color:#dc3434}.notice-summary .medium{border-color:#ee8b22}.notice-summary .low{border-color:#2678bf}.notice-summary span{display:block;color:#758194;text-transform:uppercase;font-size:9px;font-weight:800}.notice-summary strong{display:block;font-size:26px;margin-top:4px}.notice-list{margin:12px 18px;background:#fff;border:1px solid #dce2e8;border-radius:10px;overflow:hidden}.notice-row{display:grid;grid-template-columns:12px 1fr auto;gap:14px;align-items:center;padding:15px 17px;border-bottom:1px solid #edf0f4;color:#142033}.notice-row:last-child{border-bottom:0}.notice-dot{width:9px;height:9px;border-radius:50%;background:#2678bf}.notice-row.alta .notice-dot{background:#dc3434}.notice-row.media .notice-dot{background:#ee8b22}.notice-row small,.notice-row strong{display:block}.notice-row small{font-size:8px;color:#7a8797;font-weight:900}.notice-row strong{font-size:13px;margin-top:2px}.notice-row p{margin:3px 0 0;color:#697789;font-size:10px}.notice-row>b{color:#126ebd;font-size:10px}@media(max-width:600px){.notice-summary{grid-template-columns:1fr 1fr;margin:9px}.notice-summary>div:last-child{grid-column:1/-1}.notice-list{margin:9px}.notice-row{grid-template-columns:10px 1fr}.notice-row>b{grid-column:2}}
.payment-part{display:grid;grid-template-columns:minmax(0,1fr) 100px 74px 28px;gap:6px;margin-bottom:7px}.payment-part select,.payment-part input{min-width:0;border:1px solid #55514b;border-radius:5px;background:#2d2c29;color:#fff;padding:8px}.payment-remove{border:0;border-radius:5px;background:#7f2c2c;color:#fff;font-weight:900}.payment-total{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #ffffff2b;border-bottom:1px solid #ffffff2b;padding:10px 0}.payment-total span{font-size:10px;color:#c5beb2}.payment-total strong{font-size:18px}
.agenda-view{display:flex;align-items:center;gap:5px}.agenda-view input,.agenda-view button{border:1px solid #d2dbe5;background:#fff;border-radius:6px;padding:8px;font-size:10px}.agenda-view button{font-weight:800;cursor:pointer}.agenda-view button.active{background:#ed4c12;border-color:#ed4c12;color:#fff}.payable-ledger{border-top-color:#a52d44!important}.payable-ledger:before{content:'CONTAS A PAGAR'!important;background:#a52d44}@media(max-width:600px){.agenda-view{width:100%;flex-wrap:wrap}.agenda-view input{width:100%}.module-command:has(.agenda-view){flex-direction:column}.payment-part{grid-template-columns:minmax(0,1fr) 88px 58px 28px}}
.account-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:12px 18px}.account-grid article{background:#fff;border:1px solid #dce3ea;border-top:4px solid #1774c6;border-radius:9px;padding:18px}.account-grid span,.account-grid strong,.account-grid small{display:block}.account-grid span{font-size:9px;color:#738094;text-transform:uppercase;font-weight:800}.account-grid strong{font-size:24px;margin:5px 0}.account-grid small{color:#7a8796}@media(max-width:800px){.account-grid{grid-template-columns:1fr 1fr;margin:9px}}@media(max-width:480px){.account-grid{grid-template-columns:1fr}}
@media(max-width:620px){.finance-pills{display:none!important}}

/* Auditoria visual V1 — acabamento consistente desktop/mobile */
.ref-main .empty,.ref-main .ref-empty{min-height:112px;padding:28px 18px;color:#8c97a6}
.data-board-head strong,.ref-panel-head strong{letter-spacing:-.01em}
.table-wrap{scrollbar-width:thin;scrollbar-color:#8d9bad #eef2f6}
.table-wrap::-webkit-scrollbar{height:7px}.table-wrap::-webkit-scrollbar-track{background:#eef2f6}.table-wrap::-webkit-scrollbar-thumb{background:#8d9bad;border-radius:8px}
.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.ops-grid>.section>.panel{overflow:hidden}
body.md-ref-ui .conversion-box{background:#fff;color:#111827}
body.md-ref-ui .conversion-box h3{color:#111827}
body.md-ref-ui .conversion-box p,body.md-ref-ui .conversion-box .field label{color:#627083}
body.md-ref-ui .conversion-box .field input,body.md-ref-ui .conversion-box .field select,body.md-ref-ui .conversion-box .field textarea{background:#fff;border-color:#d0d8e2;color:#111827}
body.md-ref-ui .mini-form h3,body.md-ref-ui .conversion-box h3{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-weight:750;letter-spacing:-.02em}
body.md-ref-ui h1,body.md-ref-ui h2,body.md-ref-ui h3,body.md-ref-ui .quote-id,body.md-ref-ui .quote-total strong,body.md-ref-ui .metric strong,body.md-ref-ui .summary-box strong,body.md-ref-ui .stock-summary strong{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
body.md-ref-ui .quote-block h3{font-weight:800;letter-spacing:-.02em}
@media(max-width:520px){body.md-ref-ui .quote-line{align-items:flex-start;gap:10px}body.md-ref-ui .quote-line strong{text-align:right;overflow-wrap:anywhere;max-width:62%}.order-event{grid-template-columns:72px minmax(0,1fr)}}
@media(max-width:520px){
 .finance-ledger{padding:8px;background:transparent;border:0;box-shadow:none}.finance-ledger .quote-row{grid-template-columns:42px minmax(0,1fr) auto;gap:8px 10px;padding:14px;border:1px solid #d8e0e9;border-radius:10px;margin-bottom:8px;box-shadow:0 3px 10px rgba(15,23,42,.05)}.finance-ledger .quote-id{font-size:13px;background:#eef4fa;color:#17385f;width:34px;height:34px;border-radius:50%;display:grid;place-items:center}.finance-ledger .quote-row h3{font-size:13px;line-height:1.2}.finance-ledger .quote-row p{font-size:9px;line-height:1.45}.finance-ledger .quote-total strong{font-size:16px;white-space:nowrap}.finance-ledger .quote-total small{display:block;text-align:right;font-size:9px;color:#64748b}.finance-ledger .compact-inline{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:7px;padding-top:9px;border-top:1px solid #e7edf3}.finance-ledger .compact-inline input,.finance-ledger .compact-inline select,.finance-ledger .compact-inline .btn{width:100%;min-width:0;height:38px;margin:0}.finance-ledger .compact-inline .btn{padding:8px 12px}
 .finance-table{overflow:visible;border:0;box-shadow:none;background:transparent}.finance-table table,.finance-table tbody,.finance-table tr,.finance-table td{display:block;width:100%}.finance-table thead{display:none}.finance-table tr{background:#fff;border:1px solid #d8e0e9;border-radius:10px;padding:8px 12px;margin-bottom:8px;box-shadow:0 3px 10px rgba(15,23,42,.05)}.finance-table td{display:grid;grid-template-columns:82px minmax(0,1fr);gap:10px;padding:6px 0;border:0;font-size:11px;overflow-wrap:anywhere}.finance-table td:before{content:attr(data-label);font-size:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#718096}.finance-table td[data-label="Valor"]{font-weight:800;color:#17385f}.finance-table td[colspan]{display:block}.finance-table td[colspan]:before{display:none}
}
@media(max-width:520px){.finance-tabs{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;overflow:visible!important;padding:8px!important}.finance-tabs a{justify-content:center;text-align:center;margin:0!important;white-space:normal!important}.status-dock,.finance-dock{display:grid;grid-template-columns:1fr 1fr;overflow:visible}.status-dock div,.finance-dock div{min-width:0;padding:9px 6px}.finance-dock div:last-child{grid-column:1/-1}}
body.md-ref-ui .mini-form input:not([type=checkbox]):not([type=radio]),body.md-ref-ui .mini-form select,body.md-ref-ui .mini-form textarea{width:100%;border:1px solid #d0d8e2;border-radius:6px;background:#fff;color:#111827;padding:9px 10px;font:inherit;font-size:12px}
body.md-ref-ui .mini-form form{display:grid;gap:8px}
@media(max-width:900px){
 .ref-main{overflow-x:hidden}
 .module-command{flex-wrap:wrap}
 .module-command>div{min-width:0}.module-command h2,.section-head h2{line-height:1.2}
 .table-wrap{position:relative;width:100%;max-width:calc(100vw - 18px);overscroll-behavior-inline:contain}
 .table-wrap table{min-width:680px}
 .table-wrap th:first-child,.table-wrap td:first-child{position:sticky;left:0;z-index:2;background:#fff}
 .table-wrap thead th:first-child{background:#183154;color:#fff}
 .data-board .table-wrap thead th:first-child{background:#183154}
 .section-head{align-items:flex-start;gap:10px}.section-head>div{min-width:0}
 .quote-row{padding:12px}.row-actions{grid-column:2;justify-content:flex-start}
 .ref-main .empty,.ref-main .ref-empty{min-height:96px;padding:24px 14px}
 .production-col{min-height:190px}.production-empty{min-height:104px;padding:25px 8px}
}
@media(max-width:520px){
 .mobile-license strong{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .module-command{padding:13px 14px}.module-command>div{gap:9px}.command-icon{font-size:22px}
 .module-command .btn{white-space:normal;text-align:center;min-height:34px}
 .filter-deck{padding:12px}.filter-deck label{width:100%}
 .data-board-head,.ref-panel-head{min-height:46px;height:auto;padding:10px 12px}
 .status-dock div{min-width:112px;padding:9px 12px}
 .crm-summary>div{min-height:66px}
 .quote-row{grid-template-columns:52px minmax(0,1fr);gap:9px}.quote-id{font-size:16px}
 .panel{padding:14px}.mini-form{padding:14px}
}
@media(max-width:520px){.status-dock div,.finance-dock div{min-width:0!important}}
@media(max-width:520px){.mobile-cards{overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}.mobile-cards table,.mobile-cards tbody,.mobile-cards tr,.mobile-cards td{display:block;width:100%;min-width:0!important}.mobile-cards thead{display:none}.mobile-cards tr{background:#fff;border:1px solid #d8e0e9;border-radius:9px;padding:9px 12px;margin:8px;max-width:calc(100% - 16px);box-shadow:0 3px 9px rgba(15,23,42,.05)}.mobile-cards td,.mobile-cards td:first-child{position:static!important;left:auto!important;display:grid;grid-template-columns:78px minmax(0,1fr);gap:9px;padding:6px 0;border:0!important;font-size:11px;overflow-wrap:anywhere;background:transparent!important}.mobile-cards td:before{content:attr(data-label);font-size:8px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#718096}.mobile-cards td[data-label="Cliente"],.mobile-cards td[data-label="Total"],.mobile-cards td[data-label="Saldo"]{font-weight:800}.mobile-cards td[colspan]{display:block}.mobile-cards td[colspan]:before{display:none}.mobile-cards .compact-inline{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.mobile-cards .compact-inline input,.mobile-cards .compact-inline select,.mobile-cards .compact-inline .btn{min-width:0;width:100%}}
@media(max-width:520px){.report-filter{margin:9px!important;padding:12px 14px;background:#fff;border:1px solid #dce2e8;border-radius:9px;box-shadow:0 3px 10px rgba(15,23,42,.05);justify-content:stretch}.report-filter label{display:grid;grid-template-columns:1fr 130px;align-items:center;width:100%;font-size:10px;font-weight:800;text-transform:uppercase;color:#64748b}.report-filter select{width:100%;margin:0;padding:9px;border:1px solid #d0d8e2;border-radius:6px;background:#fff}}
@media(max-width:520px){body.section-configuracoes .ref-main>.subnav{display:grid;grid-template-columns:1fr 1fr;gap:6px;overflow:visible}body.section-configuracoes .ref-main>.subnav a{justify-content:center;text-align:center;margin:0;white-space:normal}body.section-configuracoes .ref-main>.subnav a:last-child:nth-child(odd){grid-column:1/-1}}

/* Financeiro mobile: mantém cada parcela como cartão operacional sem rolagem lateral. */
@media(max-width:520px){
 .section-financeiro .finance-ledger{padding:8px;border-top-width:38px;overflow:hidden}
 .section-financeiro .finance-ledger .quote-row{grid-template-columns:36px minmax(0,1fr) auto;gap:8px 9px;padding:12px 10px;max-width:100%;overflow:hidden}
 .section-financeiro .finance-ledger .quote-id{width:32px;height:32px;font-size:12px}
 .section-financeiro .finance-ledger .quote-total{grid-column:auto;text-align:right;padding:0}
 .section-financeiro .finance-ledger .quote-total strong{font-size:15px}
 .section-financeiro .finance-ledger .compact-inline{grid-column:1/-1;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;width:100%;min-width:0}
 .section-financeiro .finance-ledger .compact-inline input,.section-financeiro .finance-ledger .compact-inline select{font-size:11px;padding:7px}
 .section-financeiro .finance-ledger .compact-inline .btn{font-size:10px;padding:7px 10px}
}
@media(max-width:360px){
 .section-financeiro .finance-ledger .quote-row{grid-template-columns:34px minmax(0,1fr)}
 .section-financeiro .finance-ledger .quote-total{grid-column:2;text-align:left}
 .section-financeiro .finance-ledger .quote-total small{display:inline-flex;margin-left:5px}
 .section-financeiro .finance-ledger .compact-inline{grid-template-columns:1fr 1fr}
 .section-financeiro .finance-ledger .compact-inline .btn{grid-column:1/-1}
}

/* Painel: leitura confortável para uso contínuo no balcão. */
.dashboard-cards .dash-card{min-height:168px;padding:17px 18px}
.dashboard-cards .dash-card h2{font-size:15px;margin-bottom:15px;letter-spacing:.015em}
.dashboard-cards .dash-card dl{margin-left:28%;display:grid;gap:9px}
.dashboard-cards .dash-card dl div{margin:0;font-size:13px;line-height:1.35;align-items:center}
.dashboard-cards .dash-card dt{font-weight:750}
.dashboard-cards .dash-card dd{font-size:14px;font-weight:900}
.dashboard-cards .dash-watermark{font-size:62px;top:auto;bottom:18px;left:18px}
.home-shortcuts .home-module strong{font-size:15px}
.home-shortcuts .home-module small{font-size:11px;line-height:1.35}
@media(max-width:900px){
 .dashboard-cards .dash-card{min-height:150px;padding:15px}
 .dashboard-cards .dash-card h2{font-size:15px;margin-bottom:14px}
 .dashboard-cards .dash-card dl{margin-left:34px;gap:7px}
 .dashboard-cards .dash-card dl div{font-size:12px}
 .dashboard-cards .dash-card dd{font-size:13px}
 .dashboard-cards .dash-watermark{font-size:46px;left:10px;bottom:11px}
}
@media(max-width:520px){
 .dashboard-cards{grid-template-columns:1fr 1fr;gap:8px}
 .dashboard-cards .dash-card{min-height:154px;padding:13px 12px}
 .dashboard-cards .dash-card h2{font-size:14px;margin-bottom:13px}
 .dashboard-cards .dash-card dl{margin-left:0;gap:7px}
 .dashboard-cards .dash-card dl div{font-size:11px;gap:5px}
 .dashboard-cards .dash-card dd{font-size:12px}
 .dashboard-cards .dash-watermark{font-size:38px;opacity:.12;left:10px;bottom:8px}
}
@media(max-width:360px){
 .dashboard-cards{grid-template-columns:1fr}
 .dashboard-cards .dash-card{min-height:140px}
 .dashboard-cards .dash-card dl div{font-size:12px}
 .dashboard-cards .dash-card dd{font-size:13px}
}

/* Login operacional — mesma linguagem visual do sistema */
.section-ordens .quote-sheet{gap:14px;align-items:start}
.section-ordens .quote-sheet>section{display:grid;gap:14px;min-width:0}
.section-ordens .quote-sheet>aside{display:grid;gap:14px;align-content:start}
.section-ordens .quote-sheet>aside>.mini-form,.section-ordens .quote-sheet>aside>.conversion-box,.section-ordens .quote-sheet>aside>.panel{margin:0;padding:18px;border-radius:10px}
.section-ordens .quote-sheet>aside h3{margin:0 0 15px;font-size:18px}
.section-ordens .quote-block{margin:0;padding:0;border:1px solid #d9e1e9;border-top:0;border-radius:10px;overflow:hidden;background:#fff;box-shadow:0 4px 14px rgba(15,23,42,.055)}
.section-ordens .quote-block>h3{display:flex;align-items:center;gap:9px;margin:0;padding:15px 17px;border-bottom:1px solid #e5eaf0;background:#f8fafc;color:#17243a;font-size:17px}
.section-ordens .quote-block>h3>span{width:27px;height:27px;border-radius:7px;display:grid;place-items:center;background:#e8f3fc;color:#1678c6;font-size:13px}
.section-ordens .os-block-help{margin:0;padding:12px 17px 0;color:#718096;font-size:10px}
.section-ordens .os-product-grid{display:grid;grid-template-columns:1fr 1fr;padding:7px 17px 15px;gap:0 24px}
.section-ordens .os-product-grid .quote-line{min-width:0;display:grid;grid-template-columns:112px minmax(0,1fr);align-items:start;gap:12px;padding:12px 0;border-color:#e8edf2}
.section-ordens .os-product-grid .quote-line span{color:#6d7888;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.section-ordens .os-product-grid .quote-line strong{text-align:left;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.section-ordens .delivery-checklist{padding:15px 17px 17px;gap:14px}
.section-ordens .check-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.section-ordens .delivery-checklist .check-grid label{min-width:0;min-height:44px;margin:0;padding:10px 11px;display:flex;align-items:center;gap:9px;border:1px solid #dde4eb;border-radius:8px;background:#fbfcfd;color:#28384d;font-size:11px;font-weight:700}
.section-ordens .delivery-checklist .check-grid label:has(input:checked){border-color:#8bc5a0;background:#effaf2;color:#21683b}
.section-ordens .delivery-checklist input[type=checkbox]{width:17px;height:17px;flex:0 0 17px;accent-color:#2c9b4a}
.section-ordens .checklist-foot{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;padding-top:3px}
.section-ordens .checklist-foot .field label{display:block;margin-bottom:6px}
.section-ordens .checklist-foot textarea{min-height:62px;resize:vertical}
.section-ordens .checklist-foot .btn{height:39px;margin-bottom:0;white-space:nowrap}
.section-ordens .os-history-block .order-timeline{padding:17px 20px 5px}
.section-ordens .os-history-block .order-event{grid-template-columns:100px minmax(0,1fr);padding-bottom:17px;margin-left:3px}
.section-ordens .os-history-block .order-event time{font-size:10px;color:#607086}
.section-ordens .os-history-block .order-event strong{font-size:12px;color:#17243a}
.section-ordens .os-history-block .frame-meta{margin-top:4px;font-size:10px;line-height:1.4;color:#738095;overflow-wrap:anywhere}
@media(max-width:900px){.section-ordens .os-product-grid{grid-template-columns:1fr}.section-ordens .quote-sheet>aside{grid-row:auto}}
@media(max-width:520px){.section-ordens .quote-block>h3{padding:13px 14px;font-size:15px}.section-ordens .os-product-grid{padding:5px 14px 12px}.section-ordens .os-product-grid .quote-line{grid-template-columns:92px minmax(0,1fr);gap:8px}.section-ordens .check-grid{grid-template-columns:1fr}.section-ordens .delivery-checklist{padding:13px 14px}.section-ordens .checklist-foot{grid-template-columns:1fr}.section-ordens .checklist-foot .btn{width:100%}.section-ordens .os-history-block .order-timeline{padding:15px 16px 2px}.section-ordens .os-history-block .order-event{grid-template-columns:72px minmax(0,1fr)}}
.client-quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 18px}.quick-action{min-width:0;background:#fff;border:1px solid #dbe2e9;border-radius:9px;padding:13px 14px;display:flex;align-items:center;gap:11px;box-shadow:0 3px 10px rgba(15,23,42,.05)}.quick-action>span{width:36px;height:36px;flex:0 0 36px;border-radius:8px;display:grid;place-items:center;color:#fff;font-size:18px}.quick-action strong,.quick-action small{display:block}.quick-action strong{font-size:12px;color:#17243a}.quick-action small{font-size:9px;color:#758195;margin-top:3px}.quick-action.rx>span{background:#1680d5}.quick-action.sale>span{background:#38a14a}.quick-action.agenda>span{background:#f18323}.quick-action.whatsapp>span{background:#24a765}@media(max-width:900px){.client-quick-actions{grid-template-columns:1fr 1fr;margin:9px}}@media(max-width:420px){.client-quick-actions{grid-template-columns:1fr}}
.login-operational{background:#edf1f5;background-image:none}.login-shell{min-height:100vh;display:grid;grid-template-columns:210px minmax(0,1fr)}.login-rail{background:#183154;color:#fff;padding:15px 10px;display:flex;flex-direction:column;gap:8px}.login-rail-brand{height:54px;display:flex;align-items:center;gap:10px;padding:0 18px;margin-bottom:6px}.login-rail-brand strong,.login-rail-brand small{display:block}.login-rail-brand strong{font-size:15px}.login-rail-brand small{font-size:9px;color:#b8c7d8;margin-top:2px}.login-rail-logo{width:38px;height:38px;border-radius:9px;background:#1680d5;display:grid;place-items:center;font-weight:900}.login-area{min-height:130px;border-radius:10px;padding:19px 15px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:inset 0 0 0 1px #ffffff20}.login-area span{font-size:30px;margin-bottom:10px}.login-area strong{font-size:13px}.login-area small{font-size:9px;margin-top:5px;color:#ffffffc9}.login-area.green{background:#3da84b}.login-area.purple{background:#7c25a5}.login-area.blue{background:#1c70bd}.login-area.orange{background:#e94a13}.login-main{min-width:0;min-height:100vh;display:flex;flex-direction:column}.login-header{height:70px;background:#fff;box-shadow:0 4px 14px #172a4018;padding:10px 22px;display:flex;align-items:center;justify-content:space-between}.login-header small,.login-header strong{display:block}.login-header small{font-size:9px;color:#788494}.login-header strong{font-size:18px}.login-header>span{font-size:9px;color:#718096;font-weight:800;letter-spacing:.08em}.login-center{flex:1;display:grid;place-items:center;padding:40px 24px}.login-center>div{width:min(430px,100%)}.login-welcome{text-align:center;margin-bottom:18px}.login-kicker{font-size:9px;font-weight:900;letter-spacing:.14em;color:#1774c6}.login-welcome h1{font:800 clamp(28px,4vw,42px)/1.05 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.04em;color:#183154;margin:9px 0}.login-welcome p{font-size:12px;line-height:1.55;color:#68778a;margin:0 auto;max-width:360px}.login-card{background:#fff;border:1px solid #d9e1e9;border-top:4px solid #1774c6;border-radius:10px;padding:25px;box-shadow:0 16px 38px #17304c16}.login-card .login-fields{display:grid;gap:14px}.login-card .field label{color:#536276;font-weight:850}.login-card .field input{border-radius:6px;border-color:#cfd8e2;padding:12px}.login-card .btn{border:0;border-radius:6px;background:#1774c6;padding:12px;font-weight:850}.login-support{display:block;text-align:center;color:#8290a1;font-size:9px;margin-top:14px}.login-footer{min-height:42px;background:#fff;border-top:1px solid #dce3ea;padding:9px 20px;display:flex;align-items:center;justify-content:space-between;color:#738094;font-size:9px}.login-footer strong{color:#183154;letter-spacing:.08em}
/* Nenhum módulo é exposto antes da autenticação. */
.login-operational .login-area{display:none}.login-rail:after{content:"ACESSO EXCLUSIVO\A Usuários autorizados";white-space:pre;display:block;margin:auto 18px;color:#d7e4f2;font-size:11px;font-weight:800;line-height:1.7;letter-spacing:.05em}.login-rail:before{content:"MD SISTEMAS · SOFTWARE ORIGINAL";order:9;margin:0 18px 8px;color:#8fa8c4;font-size:8px;font-weight:800;letter-spacing:.1em}
@media(max-width:760px){.login-shell{grid-template-columns:1fr}.login-rail{display:flex;min-height:60px;padding:8px}.login-rail-brand{height:44px;margin:0;padding:0 6px}.login-rail:after,.login-rail:before{display:none}.login-header{height:58px;padding:8px 14px}.login-header>span{display:none}.login-center{padding:25px 14px}.login-card{padding:20px}.login-footer{justify-content:center;text-align:center}.login-footer strong{display:none}}
.ref-brand-icon.has-logo{padding:3px;background:#fff}.ref-brand-icon.has-logo img{width:100%;height:100%;object-fit:contain;border-radius:6px}
.install-page{margin:0;background:#edf1f5;color:#17243a}.install-shell{width:min(920px,calc(100% - 28px));margin:34px auto}.install-shell>header{background:#183154;color:#fff;padding:30px;border-radius:14px 14px 0 0}.install-shell>header span{font-size:10px;font-weight:900;letter-spacing:.12em;color:#9fc2e5}.install-shell>header h1{font-size:32px;letter-spacing:-.03em;margin:9px 0}.install-shell>header p{max-width:650px;color:#d7e4f2;margin:0;line-height:1.55}.install-form{display:grid;gap:14px;background:#f7f9fb;padding:20px;border:1px solid #d6dee7;border-top:0;border-radius:0 0 14px 14px}.install-form section{position:relative;background:#fff;border:1px solid #dbe2e9;border-radius:10px;padding:20px}.install-form h2{margin:0 0 17px 42px;font-size:18px}.install-step{position:absolute;top:15px;left:18px;width:28px;height:28px;border-radius:8px;background:#1976d2;color:#fff;display:grid;place-items:center;font-weight:900}.install-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.install-grid .full{grid-column:1/-1}.install-submit{width:100%;min-height:46px;border-radius:8px;background:#1976d2;border-color:#1976d2;font-weight:900}.install-note{text-align:center;color:#718096}.install-form input[type=color]{min-height:43px;padding:4px}@media(max-width:620px){.install-shell{margin:0;width:100%}.install-shell>header{border-radius:0;padding:24px 18px}.install-shell>header h1{font-size:26px}.install-form{padding:10px;border-radius:0}.install-form section{padding:17px 14px}.install-form h2{margin-left:38px}.install-grid{grid-template-columns:1fr}.install-grid .full{grid-column:auto}}

/* Balcão mobile: textos e ações permanecem confortáveis durante uso prolongado. */
@media(max-width:520px){
 body.md-ref-ui .field label,body.md-ref-ui .mobile-cards td:before{font-size:9px;line-height:1.35}
 body.md-ref-ui .mobile-cards td{font-size:12px;line-height:1.45;grid-template-columns:92px minmax(0,1fr)}
 body.md-ref-ui .mobile-cards tr{padding:11px 13px;margin:9px;max-width:calc(100% - 18px)}
 body.md-ref-ui .status-pill{font-size:9px;padding:5px 8px}
 body.md-ref-ui .table-note{display:block;margin-top:4px;font-size:10px;line-height:1.4;color:#6f7d8e}
 .agenda-table .compact-inline{grid-template-columns:minmax(0,1fr) auto}
 .agenda-table .compact-inline select,.agenda-table .compact-inline .btn{height:38px;font-size:11px}
}
.section-financeiro .ops-grid>section,.section-financeiro .ops-grid>aside{min-width:0}
@media(max-width:520px){.section-financeiro .ops-grid,.section-financeiro .ops-grid>section,.section-financeiro .ops-grid>aside{min-width:0;width:100%}.section-financeiro .finance-ledger{width:100%;max-width:100%}.section-financeiro .finance-ledger .quote-row>div{min-width:0}.section-financeiro .finance-ledger .quote-row h3,.section-financeiro .finance-ledger .quote-row p{overflow-wrap:anywhere}}
.money-control{height:36px;display:flex;align-items:center;border:1px solid #cdd6e0;border-radius:6px;background:#fff;overflow:hidden}.money-control span{height:100%;display:flex;align-items:center;padding:0 8px;background:#eef4fa;color:#17385f;font-size:10px;font-weight:900;border-right:1px solid #dbe3eb}.finance-ledger .money-control input{border:0!important;border-radius:0!important;height:100%!important;font-weight:900;font-size:13px;color:#17385f;padding:7px 8px!important;outline:0}
@media(max-width:520px){.section-financeiro .finance-ledger{overflow:visible}.section-financeiro .finance-ledger .quote-row{width:100%;grid-template-columns:38px minmax(0,1fr) auto;overflow:visible}.section-financeiro .finance-ledger .receivable-customer{padding-right:3px}.section-financeiro .finance-ledger .compact-inline{grid-template-columns:minmax(0,1fr) 88px!important}.section-financeiro .finance-ledger .compact-inline .money-control{min-width:0;width:100%;height:40px}.section-financeiro .finance-ledger .compact-inline select{width:88px;height:40px}.section-financeiro .finance-ledger .compact-inline .btn{grid-column:1/-1;width:100%;height:40px;font-size:11px}.section-financeiro .finance-ledger .quote-total strong{font-size:16px;color:#6c248e}.section-financeiro .finance-ledger .quote-total small{font-size:8px}}
@media(max-width:520px){.payments-table tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:'client value' 'date value' 'meta meta';gap:3px 12px;padding:14px!important}.payments-table td{display:block!important;width:auto!important;padding:0!important}.payments-table td:before{display:none!important}.payments-table td:nth-child(3){grid-area:client;font-size:13px!important;font-weight:850;color:#17243a}.payments-table td:nth-child(6){grid-area:value;align-self:center;font-size:17px!important;font-weight:900;color:#15763a;white-space:nowrap}.payments-table td:nth-child(1){grid-area:date;font-size:9px!important;color:#758195}.payments-table td:nth-child(2),.payments-table td:nth-child(4),.payments-table td:nth-child(5){grid-area:meta;display:inline-flex!important;width:max-content!important;margin-top:7px;padding:5px 8px!important;border-radius:999px!important;background:#eef3f8!important;color:#43546a;font-size:9px!important;font-weight:800}.payments-table td:nth-child(2){justify-self:start}.payments-table td:nth-child(4){justify-self:center}.payments-table td:nth-child(5){justify-self:end}.payments-table tr{grid-template-columns:1fr auto auto!important}.payments-table td:nth-child(3){grid-column:1/3}.payments-table td:nth-child(6){grid-column:3;grid-row:1/3}.payments-table td:nth-child(1){grid-column:1/3}.payments-table td:nth-child(2){grid-column:1;grid-row:3}.payments-table td:nth-child(4){grid-column:2;grid-row:3}.payments-table td:nth-child(5){grid-column:3;grid-row:3}}
@media(max-width:520px){.payments-table table,.payments-table tbody,.movements-table table,.movements-table tbody{min-width:0!important;width:100%!important}.payments-table tr,.movements-table tr{min-width:0!important;width:100%!important;max-width:100%!important;margin:0 0 8px!important}.movements-table tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:3px 10px;padding:13px 14px!important}.movements-table td{display:block!important;width:auto!important;padding:0!important}.movements-table td:before{display:none!important}.movements-table td:nth-child(2){grid-column:1;font-size:12px!important;font-weight:800;color:#17243a}.movements-table td:nth-child(4){grid-column:2;grid-row:1/3;align-self:center;font-size:15px!important;font-weight:900;color:#15763a;white-space:nowrap}.movements-table td:nth-child(1){grid-column:1;font-size:9px!important;color:#758195}.movements-table td:nth-child(3){grid-column:1/-1;width:max-content!important;margin-top:6px;padding:4px 8px!important;border-radius:999px!important;background:#eef3f8!important;color:#43546a;font-size:9px!important;font-weight:800}}
@media(max-width:520px){body.md-ref-ui .ref-main{overflow-x:hidden;padding-left:0!important;padding-right:0!important}body.md-ref-ui .ref-main>.ops-grid,body.md-ref-ui .ref-main>.ref-content-grid,body.md-ref-ui .ref-main>.quote-sheet,body.md-ref-ui .ref-main>.data-board,body.md-ref-ui .ref-main>.section{width:auto!important;max-width:calc(100vw - 18px)!important;margin-left:9px!important;margin-right:9px!important}body.md-ref-ui .ops-grid>section,body.md-ref-ui .ops-grid>aside,body.md-ref-ui .ref-content-grid>section,body.md-ref-ui .ref-content-grid>aside{min-width:0!important;width:100%!important}body.md-ref-ui .mini-form,body.md-ref-ui .conversion-box,body.md-ref-ui .panel,body.md-ref-ui .table-wrap{max-width:100%;min-width:0}body.md-ref-ui input,body.md-ref-ui select,body.md-ref-ui textarea,body.md-ref-ui button{max-width:100%}body.md-ref-ui .status-dock,body.md-ref-ui .finance-dock{width:auto!important;max-width:calc(100vw - 18px)!important;margin-left:9px!important;margin-right:9px!important;border-radius:9px 9px 0 0;overflow:hidden!important}body.md-ref-ui .md-footer{width:auto!important;max-width:calc(100vw - 18px)!important;margin-left:9px!important;margin-right:9px!important}}

/* Venda de balcão: controles sempre contidos no card, inclusive em telas estreitas. */
.retail-sale-box,.retail-sale-form{min-width:0;overflow:hidden}.retail-sale-form>*{min-width:0;width:100%;box-sizing:border-box}.retail-cash-field{display:grid!important;gap:5px;margin:0!important}.retail-cash-field[hidden]{display:none!important}
@media(max-width:520px){.retail-sale-box{padding:16px!important;margin-left:0!important;margin-right:0!important}.retail-sale-form select,.retail-sale-form input,.retail-sale-form button{display:block;width:100%!important;max-width:100%!important;min-width:0!important}}

/* O.S. — leitura operacional clara, sem conteúdo colado nas bordas. */
.section-ordens .os-client-head{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:14px;margin:0;padding:15px 17px;border:1px solid #d9e3ed;border-left:4px solid #1678c6;border-radius:11px;background:linear-gradient(115deg,#fff 0%,#f4f9fd 100%);box-shadow:0 4px 14px rgba(15,23,42,.05)}
.section-ordens .os-client-avatar{width:48px;height:48px;display:grid;place-items:center;border-radius:12px;background:#1678c6;color:#fff;font-size:20px;font-weight:900}
.section-ordens .os-client-copy{min-width:0}.section-ordens .os-client-copy small{display:block;margin-bottom:3px;color:#6d7d90;font-size:9px;font-weight:850;letter-spacing:.09em}.section-ordens .os-client-copy h2{margin:0;color:#14243a;font-size:19px;line-height:1.2;overflow-wrap:anywhere}.section-ordens .os-client-copy p{margin:6px 0 0;color:#69788a;font-size:10px}.section-ordens .os-client-copy .status-pill{margin-left:6px;background:#fff}
.section-ordens .os-phone{display:inline-flex;align-items:center;min-height:38px;padding:0 12px;border:1px solid #c9d8e6;border-radius:999px;background:#fff;color:#145f9d;font-size:11px;font-weight:850;white-space:nowrap}
.section-ordens .os-product-block>h3{background:linear-gradient(90deg,#f5faff,#f8fafc)}
.section-ordens .os-product-grid{gap:10px;padding:14px 17px 17px;background:#fbfcfe}
.section-ordens .os-product-grid .quote-line{display:block;min-height:76px;padding:13px 14px;border:1px solid #e1e8ef;border-radius:9px;background:#fff}
.section-ordens .os-product-grid .quote-line span{display:block;margin-bottom:8px}.section-ordens .os-product-grid .quote-line strong{display:block;color:#17243a;font-size:13px}
.section-ordens .flash.success{border:1px solid #b9ddc5;border-left:4px solid #2e8b50;border-radius:9px;background:#eef8f1;color:#195a31;line-height:1.45}
.promotion-list{display:grid;gap:10px}.promotion-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:15px;border:1px solid #dce4eb;border-radius:10px;background:#fff}.promotion-card h3{margin:8px 0 3px;font-size:15px}.promotion-card p{margin:0;color:#6d7888;font-size:10px}.promotion-card>strong{color:#15763a;font-size:17px;white-space:nowrap}
@media(max-width:520px){.section-ordens .os-client-head{grid-template-columns:44px minmax(0,1fr);padding:13px}.section-ordens .os-client-avatar{width:42px;height:42px;border-radius:10px}.section-ordens .os-client-copy h2{font-size:16px}.section-ordens .os-client-copy .status-pill{display:inline-flex;margin:6px 0 0}.section-ordens .os-phone{grid-column:1/-1;justify-content:center;width:100%;border-radius:8px}.section-ordens .os-product-grid{grid-template-columns:1fr 1fr!important;gap:8px;padding:11px!important}.section-ordens .os-product-grid .quote-line{min-height:83px;padding:11px}.section-ordens .os-product-grid .quote-line span{font-size:8px}.section-ordens .os-product-grid .quote-line strong{font-size:11px}.promotion-card{grid-template-columns:minmax(0,1fr) auto;padding:13px}.promotion-card form{grid-column:1/-1}.promotion-card form .btn{width:100%}}

/* Recebimentos no celular — oito colunas viram um cartão, sem rolagem lateral. */
@media(max-width:520px){.payments-table tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:5px 7px!important;padding:14px!important}.payments-table td{display:block!important;grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;width:auto!important;padding:0!important;min-width:0}.payments-table td:before{display:none!important}.payments-table td:nth-child(3){grid-column:1/3!important;grid-row:1!important;font-size:13px!important;font-weight:850!important;color:#17243a!important}.payments-table td:nth-child(6){grid-column:3!important;grid-row:1/3!important;align-self:center!important;font-size:17px!important;font-weight:900!important;color:#15763a!important;white-space:nowrap}.payments-table td:nth-child(1){grid-column:1/3!important;grid-row:2!important;font-size:9px!important;color:#758195!important}.payments-table td:nth-child(2),.payments-table td:nth-child(4),.payments-table td:nth-child(5){grid-row:3!important;justify-self:start!important;margin-top:5px!important;padding:5px 7px!important;border-radius:999px!important;background:#eef3f8!important;color:#43546a!important;font-size:9px!important;font-weight:800!important}.payments-table td:nth-child(2){grid-column:1!important}.payments-table td:nth-child(4){grid-column:2!important}.payments-table td:nth-child(5){grid-column:3!important}.payments-table td:nth-child(7),.payments-table td:nth-child(8){grid-row:4!important;margin-top:5px!important;padding-top:7px!important;border-top:1px solid #e5ebf1!important;font-size:9px!important;color:#526276!important}.payments-table td:nth-child(7){grid-column:1/3!important}.payments-table td:nth-child(7):before{content:'Recebido: ';display:inline!important;font-weight:800}.payments-table td:nth-child(8){grid-column:3!important;text-align:right}.payments-table td:nth-child(8):before{content:'Troco: ';display:inline!important;font-weight:800}}


/* V1.2 — venda assistida / mobile-first para o vendedor */
.digital-hero,.integration-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:0 0 16px;padding:24px 26px;border:1px solid #d8e3ec;border-radius:14px;background:linear-gradient(135deg,#ffffff 0%,#f2f8fd 100%);box-shadow:0 8px 24px rgba(15,35,60,.06)}.digital-hero h2,.integration-head h2{max-width:760px;margin:4px 0 7px;color:#12243a;font-size:25px;line-height:1.18}.digital-hero p,.integration-head p{max-width:760px;margin:0;color:#607086;font-size:12px;line-height:1.6}.eyebrow{font-size:9px;font-weight:900;letter-spacing:.12em;color:#1976c9}.digital-primary{white-space:nowrap}.digital-tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.digital-tool-card{display:grid;grid-template-columns:46px 1fr;grid-template-rows:1fr auto;gap:10px 12px;min-height:190px;padding:18px;border:1px solid #dce5ed;border-radius:13px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 5px 18px rgba(15,35,60,.05);transition:.18s}.digital-tool-card:hover{transform:translateY(-2px);border-color:#b9d7ed;box-shadow:0 10px 25px rgba(15,35,60,.09)}.tool-icon{grid-row:1/3;width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#eaf4fc;color:#176fae;font-size:21px;font-weight:900}.digital-tool-card small{font-size:8px;font-weight:900;letter-spacing:.1em;color:#77879a}.digital-tool-card h3{margin:5px 0 7px;font-size:15px;color:#17273d}.digital-tool-card p{margin:0;font-size:10px;line-height:1.5;color:#6c7a8c}.digital-tool-card>b{grid-column:2;color:#176fae;font-size:10px}.digital-workbench{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.65fr);gap:14px}.camera-card,.measure-panel,.tryon-stage-card,.tryon-picker{padding:18px;border:1px solid #dce5ed;border-radius:13px;background:#fff}.camera-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.camera-head small,.panel-head small{font-size:8px;font-weight:900;letter-spacing:.1em;color:#75869a}.camera-head h2{margin:4px 0 0;font-size:18px;color:#17273d}.secure-chip{padding:6px 9px;border-radius:999px;background:#edf8f1;color:#287543;font-size:8px;font-weight:900}.guide-note{margin-bottom:12px;padding:10px 12px;border-radius:9px;background:#f5f8fb;color:#556579;font-size:10px;line-height:1.5}.capture-box,.tryon-stage{position:relative;min-height:440px;display:grid;place-items:center;overflow:hidden;border-radius:11px;background:#101820}.capture-box video,.capture-box canvas,.tryon-stage video,.tryon-stage canvas{display:none;max-width:100%;max-height:70vh;width:auto;height:auto}.capture-empty{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:#d9e4ed;padding:24px}.capture-empty strong{font-size:16px}.capture-empty span{margin-top:5px;font-size:10px;color:#97a9b7}.mark-layer{position:absolute;inset:0;cursor:crosshair}.measure-dot{position:absolute;width:26px;height:26px;display:grid;place-items:center;transform:translate(-50%,-50%);border:2px solid #fff;border-radius:50%;background:#1976d2;color:#fff;font-size:10px;font-weight:900;box-shadow:0 2px 8px #0008}.camera-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.file-btn{position:relative;overflow:hidden;cursor:pointer}.file-btn input{position:absolute;inset:0;opacity:0;cursor:pointer}.step-list{display:grid;gap:8px;margin-bottom:14px}.step{display:flex;gap:10px;padding:10px;border-radius:9px;background:#f6f8fa}.step>b{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#1976d2;color:#fff;font-size:10px}.step span{display:grid}.step strong{font-size:10px}.step small{font-size:8px;color:#728196}.measure-result{padding:14px;border-radius:11px;background:#14283e;color:#fff;margin-bottom:14px}.measure-result>small{font-size:8px;font-weight:900;letter-spacing:.12em;color:#9db6ca}.measure-result>div{display:flex;justify-content:space-between;align-items:end;padding:9px 0;border-bottom:1px solid #ffffff18}.measure-result>div:last-child{border-bottom:0}.measure-result span{font-size:9px;color:#b9c9d7}.measure-result strong{font-size:19px}.measure-panel form{display:grid;gap:8px}.digital-save{width:100%;min-height:44px;margin-top:4px}.accuracy-note{margin:11px 0 0;color:#77869a;font-size:8px;line-height:1.45}.digital-split,.integration-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.rx-upload{display:grid;place-items:center;min-height:180px;margin:10px 0;padding:20px;border:2px dashed #bfd0de;border-radius:11px;background:#f8fbfd;text-align:center;cursor:pointer}.rx-upload input{display:none}.rx-upload span{font-size:28px;color:#1976c9}.rx-upload strong{margin-top:8px;font-size:13px}.rx-upload small{margin-top:5px;color:#75869a}.rx-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:10px 0}.rx-grid label span{display:block;margin-bottom:4px;font-size:8px;font-weight:800;color:#66778b}.digital-empty{min-height:300px;display:grid;place-content:center;text-align:center}.digital-empty span{display:block;max-width:330px;margin-top:5px;color:#77869a;font-size:10px}.tryon-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.55fr);gap:14px}.tryon-stage{min-height:520px}.tryon-stage #frame-overlay{position:absolute;display:none;z-index:3;pointer-events:none;max-width:none}.try-controls{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin-top:12px}.try-controls label{display:grid;gap:5px;font-size:9px;font-weight:800;color:#5c6b7e}.try-frame-list{display:grid;gap:7px;max-height:520px;overflow:auto;margin:10px 0}.try-frame{display:grid;grid-template-columns:60px 1fr;gap:10px;align-items:center;width:100%;padding:8px;border:1px solid #dce5ed;border-radius:9px;background:#fff;text-align:left;cursor:pointer}.try-frame.active{border-color:#1976d2;background:#f0f7fd}.try-frame>span{height:46px;display:grid;place-items:center;border-radius:7px;background:#f4f6f8;overflow:hidden}.try-frame img{max-width:100%;max-height:100%}.try-frame strong{display:block;font-size:10px}.try-frame small{font-size:8px;color:#738398}.tryon-picker form{display:grid;gap:8px}.check-row{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.check-row label{padding:8px 10px;border:1px solid #dce5ed;border-radius:8px;font-size:9px}.connection-list{display:grid;gap:8px}.connection-card{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px;border:1px solid #dce5ed;border-radius:10px}.connection-card h3{margin:5px 0 2px;font-size:13px}.connection-card p,.connection-card small{margin:0;color:#758497;font-size:9px}.integration-info{display:flex;gap:10px;margin-top:14px;padding:12px 14px;border:1px solid #f0d7ad;border-radius:10px;background:#fff9ef;color:#765522;font-size:9px;line-height:1.5}.seller-quickbar{display:flex;align-items:center;gap:8px;margin:10px 0 13px;padding:9px 10px;border:1px solid #d9e5ee;border-radius:10px;background:#f8fbfd}.seller-quickbar>span{display:grid;margin-right:auto}.seller-quickbar b{font-size:10px}.seller-quickbar small{font-size:8px;color:#78899c}.seller-quickbar a{padding:8px 10px;border-radius:8px;background:#fff;border:1px solid #d7e2eb;color:#1b659a;text-decoration:none;font-size:9px;font-weight:850;white-space:nowrap}
@media(max-width:900px){.digital-tool-grid{grid-template-columns:1fr 1fr}.digital-workbench,.tryon-layout{grid-template-columns:1fr}.digital-split,.integration-grid{grid-template-columns:1fr}.rx-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.digital-hero,.integration-head{align-items:stretch;flex-direction:column;padding:16px;margin-left:9px!important;margin-right:9px!important}.digital-hero h2,.integration-head h2{font-size:19px}.digital-hero .btn{width:100%}.digital-tool-grid{grid-template-columns:1fr;gap:8px;margin-left:9px;margin-right:9px}.digital-tool-card{min-height:0;grid-template-columns:42px 1fr auto;grid-template-rows:auto;padding:13px}.digital-tool-card .tool-icon{grid-row:1;width:40px;height:40px}.digital-tool-card>b{grid-column:3;align-self:center}.digital-tool-card p{display:none}.digital-workbench,.digital-split,.tryon-layout,.integration-grid{display:block;margin:0 9px}.measure-panel,.rx-review,.tryon-picker,.integration-grid>.panel{margin-top:10px}.camera-card,.measure-panel,.tryon-stage-card,.tryon-picker{padding:12px}.capture-box,.tryon-stage{min-height:330px;border-radius:9px}.camera-actions{display:grid;grid-template-columns:1fr 1fr}.camera-actions .btn{width:100%;min-height:44px}.step-list{grid-template-columns:repeat(3,1fr)}.step{display:grid;padding:8px}.step small{display:none}.measure-result{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.measure-result>small{grid-column:1/-1}.measure-result>div{display:grid;border:0;padding:5px}.measure-result strong{font-size:16px}.rx-grid{grid-template-columns:1fr 1fr}.try-controls{grid-template-columns:1fr 1fr}.try-frame-list{max-height:360px}.connection-card{align-items:stretch;flex-direction:column}.connection-card form,.connection-card button{width:100%}.integration-info{margin:10px 9px;display:grid}.seller-quickbar{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:repeat(3,1fr);margin:8px 9px 12px;padding:8px;background:#f4f9fd;box-shadow:0 4px 12px #17305218}.seller-quickbar>span{grid-column:1/-1}.seller-quickbar a{display:grid;place-items:center;min-height:42px;padding:6px;text-align:center;white-space:normal}.digital-recent{margin-left:9px!important;margin-right:9px!important}.digital-recent .table-wrap{overflow-x:auto}}

.connection-actions{display:flex;gap:7px;flex-wrap:wrap}.connection-actions form{margin:0}@media(max-width:520px){.connection-actions,.connection-actions form,.connection-actions .btn{width:100%}}

/* V1.3 — acabamento de entrega, acessibilidade e operação móvel */
:focus-visible{outline:3px solid color-mix(in srgb,var(--accent,#1976d2) 55%,white);outline-offset:2px}
button,.btn,.link-btn,summary,a{touch-action:manipulation}
img{max-width:100%}
.panel,.action-panel,.mini-form,.conversion-box,.data-board,.camera-card,.measure-panel,.tryon-stage-card,.tryon-picker{overflow-wrap:anywhere}
.seller-mobile-dock{display:none}
@media(max-width:760px){
 input,select,textarea,button{font-size:16px}
 .btn,.link-btn,button{min-height:44px}
 .subnav{scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
 .subnav>a{scroll-snap-align:start;min-height:42px;display:inline-flex;align-items:center}
 .seller-quickbar{position:sticky;top:0;z-index:24;box-shadow:0 8px 22px rgba(15,23,42,.10)}
 .section-vendas #sale-form{padding-bottom:84px}
 .section-vendas .sale-station{display:flex;flex-direction:column;gap:10px}
 .section-vendas .sale-cart{display:contents}
 .section-vendas .sale-cart-head{order:0;position:sticky;top:59px;z-index:20;border-radius:10px;box-shadow:0 8px 22px rgba(15,23,42,.10)}
 .section-vendas .sale-client-box{order:1}
 .section-vendas .sale-catalog{order:2}
 .section-vendas .sale-summary-list{order:3}
 .section-vendas .sale-cart-note{order:4}
 .section-vendas .sale-cart-actions{order:5}
 .section-vendas .product-choice-grid{grid-template-columns:1fr 1fr;gap:8px}
 .section-vendas .choice-card{min-height:94px;padding:12px}
 .section-vendas .sale-fields-grid{grid-template-columns:1fr 1fr;gap:9px}
 .seller-mobile-dock{display:flex;position:fixed;left:8px;right:8px;bottom:max(8px,env(safe-area-inset-bottom));z-index:70;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px 9px 14px;background:#fff;border:1px solid #d8e1ea;border-radius:14px;box-shadow:0 16px 40px rgba(15,23,42,.22)}
 .seller-mobile-dock small,.seller-mobile-dock strong{display:block}.seller-mobile-dock small{font-size:10px;color:#68778a}.seller-mobile-dock strong{font-size:18px;color:#15263b}.seller-mobile-dock .btn{min-width:148px}
 .camera-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.camera-actions>*{width:100%;justify-content:center}
 .digital-workbench,.digital-split,.tryon-layout{gap:10px}
 .md-footer{padding-bottom:max(16px,env(safe-area-inset-bottom))}
}
@media(max-width:420px){
 .section-vendas .product-choice-grid,.section-vendas .sale-fields-grid{grid-template-columns:1fr}
 .seller-quickbar span{width:100%}
 .seller-mobile-dock .btn{min-width:136px;padding-inline:12px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
\n.login-back-public{font-size:9px;color:#607286;text-decoration:none;margin-left:12px}.login-demo-strip{margin-top:16px;padding-top:13px;border-top:1px solid #e0e6eb;display:flex;gap:7px;align-items:center;flex-wrap:wrap}.login-demo-strip span{font-size:9px;color:#78889a;margin-right:auto}.login-demo-strip a{font-size:8px;font-weight:800;text-decoration:none;padding:7px 9px;border:1px solid #d8e3eb;border-radius:8px;color:#1b659a;background:#f8fbfd}.demo-system-bar{position:sticky;top:0;z-index:120;min-height:34px;padding:6px 14px;display:flex;align-items:center;justify-content:center;gap:10px;background:#0d7f72;color:white;font-size:9px}.demo-system-bar strong{text-transform:uppercase;letter-spacing:.08em}.demo-system-bar span{color:#d8f3ed}.demo-system-bar a{color:white;font-weight:800;margin-left:8px}.is-demo .ref-shell{min-height:calc(100vh - 34px)}@media(max-width:700px){.demo-system-bar{justify-content:flex-start;overflow:auto;white-space:nowrap}.demo-system-bar span{display:none}.login-back-public{display:none}.login-demo-strip{display:grid;grid-template-columns:1fr 1fr}.login-demo-strip span{grid-column:1/-1}}\n
/* V1.5 — direção visual de entrega: painel e estação do vendedor */
body.md-ref-ui{background:#f3f4f2;color:#16202a}.ref-main{background:#f3f4f2}.ref-topbar{height:72px;border-bottom:1px solid #e3e7e4;box-shadow:none}.page-title-card{box-shadow:none;border:1px solid #e2e6e3;border-radius:14px;margin-top:18px;padding:13px 16px}.page-title-mark{border-radius:11px}.ref-rail{background:#132d4e}.hub-tile,.submodule-tile{box-shadow:none;border-radius:12px}.desktop-home-shortcuts,.dashboard-cards,.alerts-panel{display:none!important}
.ops-hero,.ops-kpis,.ops-layout,.ops-navigation{margin-left:18px;margin-right:18px}.ops-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:18px 4px 20px}.ops-welcome small,.ops-section-head small{font-size:8px;font-weight:900;letter-spacing:.16em;color:#78847f}.ops-welcome h2{font-family:Georgia,serif;font-size:34px;font-weight:400;letter-spacing:-.035em;margin:5px 0}.ops-welcome p{font-size:11px;color:#76817d;margin:0}.ops-actions{display:flex;gap:8px;align-items:center}.ops-actions>a{min-height:44px;padding:0 14px;border:1px solid #d5dcd8;background:#fff;border-radius:11px;display:flex;align-items:center;text-decoration:none;color:#33413c;font-size:9px;font-weight:850}.ops-actions .ops-primary{min-width:190px;background:#112f31;color:#fff;border-color:#112f31;gap:12px;padding:9px 15px}.ops-primary>span{font-size:24px;color:#7cd1b9}.ops-primary small,.ops-primary b{display:block}.ops-primary small{font-size:7px;color:#9cb8b0;letter-spacing:.12em}.ops-primary b{font-size:12px;margin-top:2px}.ops-kpis{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid #dfe4e1;border-radius:16px;overflow:hidden;background:#fff}.ops-kpis>a{padding:19px 20px;text-decoration:none;border-right:1px solid #e6eae7;min-height:108px}.ops-kpis>a:last-child{border-right:0}.ops-kpis small,.ops-kpis strong,.ops-kpis span{display:block}.ops-kpis small{font-size:8px;font-weight:900;letter-spacing:.12em;color:#79857f}.ops-kpis strong{font-family:Georgia,serif;font-size:29px;font-weight:400;color:#172520;margin:8px 0 4px}.ops-kpis span{font-size:9px;color:#708079}.ops-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px;margin-top:12px}.ops-main,.ops-attention,.ops-navigation{background:#fff;border:1px solid #dfe4e1;border-radius:16px;overflow:hidden}.ops-section-head{min-height:62px;padding:14px 17px;border-bottom:1px solid #e7ebe8;display:flex;align-items:center;justify-content:space-between}.ops-section-head h3{font-size:14px;margin:3px 0 0}.ops-section-head>span,.ops-section-head>a{font-size:8px;color:#7a8781;text-decoration:none}.ops-modules{display:grid;grid-template-columns:1fr 1fr}.ops-module{display:grid;grid-template-columns:42px 1fr 28px;align-items:center;gap:10px;padding:22px 18px;text-decoration:none;border-right:1px solid #e7ebe8;border-bottom:1px solid #e7ebe8}.ops-module:nth-child(even){border-right:0}.ops-module:nth-last-child(-n+2){border-bottom:0}.ops-module>span{font-family:Georgia,serif;font-size:28px;color:#aab4af}.ops-module b,.ops-module small{display:block}.ops-module b{font-size:11px;color:#1a2823}.ops-module small{font-size:8px;color:#7b8782;margin-top:4px}.ops-module em{font-style:normal;font-size:18px;color:#0a7f6e}.attention-list{padding:6px 16px 12px}.attention-list>a{display:grid;grid-template-columns:45px 1fr;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid #edf0ee;text-decoration:none}.attention-list>a:last-child{border:0}.attention-list strong{font-family:Georgia,serif;font-size:27px;font-weight:400;color:#173052}.attention-list b,.attention-list small{display:block}.attention-list b{font-size:10px;color:#1d2925}.attention-list small{font-size:8px;color:#84908b;margin-top:3px}.ops-navigation{margin-top:12px;margin-bottom:22px}.ops-area-grid{display:grid;grid-template-columns:repeat(4,1fr)}.ops-area-grid>a{padding:20px;text-decoration:none;border-right:1px solid #e7ebe8}.ops-area-grid>a:last-child{border:0}.ops-area-grid i{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#eef5f2;color:#0a7f6e;font-style:normal;margin-bottom:13px}.ops-area-grid b,.ops-area-grid span{display:block}.ops-area-grid b{font-size:11px;color:#1d2925}.ops-area-grid span{font-size:8px;color:#818c87;margin-top:4px}
/* Nova venda — mais densa, clara e orientada ao vendedor */
.section-vendas .page-title-card{margin-bottom:9px}.section-vendas .subnav{border:0;background:transparent;padding:0;margin-top:0}.section-vendas .subnav a{background:#fff}.seller-quickbar{margin-top:8px;border:0;border-radius:13px;background:#e8f1ee;padding:9px 12px}.seller-quickbar>span b{color:#183831}.seller-quickbar a{border:0;border-radius:999px;background:#fff;color:#176856}.sale-station{display:grid;grid-template-columns:minmax(0,1fr) 310px!important;gap:12px!important;align-items:start}.sale-cart{grid-column:2;position:sticky;top:84px!important;border-radius:16px!important;border:1px solid #dce3df!important;background:#fff!important;box-shadow:none!important;overflow:hidden}.sale-catalog{grid-column:1;grid-row:1;background:#fff;border:1px solid #dce3df;border-radius:16px;padding:0 16px 16px;overflow:hidden}.sale-cart-head{background:#112f31!important;padding:17px 18px!important}.sale-cart-head span{font-size:8px!important;letter-spacing:.12em;color:#9fc0b7!important;text-transform:uppercase}.sale-cart-head strong{font-family:Georgia,serif!important;font-weight:400!important;font-size:28px!important}.sale-client-box{padding:16px 16px 14px!important;border-bottom:1px solid #edf0ee}.sale-client-box label{font-size:8px!important;letter-spacing:.1em;color:#78857f}.sale-client-box select{margin-top:6px;min-height:42px}.sale-summary-list{padding:8px 16px!important}.sale-summary-list>div{padding:10px 0!important;border-bottom:1px solid #eef1ef}.sale-summary-list span{font-size:8px!important;color:#7b8782}.sale-summary-list strong{font-size:9px!important;text-align:right;max-width:170px}.sale-cart-note{padding:12px 16px!important}.sale-cart-actions{padding:12px 16px 16px!important;display:grid!important;grid-template-columns:.75fr 1.25fr!important;gap:8px!important}.sale-cart-actions .btn{min-height:43px}.sale-band{margin:16px 0 12px!important;border-radius:0!important;padding:0 0 9px!important;background:transparent!important;border-bottom:1px solid #e2e7e4;color:#1a2924!important;display:flex;justify-content:space-between;align-items:end}.sale-band strong{font-family:Georgia,serif!important;font-size:19px!important;font-weight:400!important}.sale-band span{font-size:8px!important;color:#7d8984!important}.sale-fields-grid{gap:9px!important}.sale-fields-grid .field{margin:0}.sale-fields-grid input,.sale-fields-grid select{min-height:42px;background:#fafbf9}.sale-search-row input{min-height:44px!important;border-radius:10px!important;background:#f8faf8!important}.product-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}.choice-card{min-height:104px!important;padding:13px!important;border-radius:12px!important;border-color:#dde4e0!important;box-shadow:none!important;background:#fbfcfa!important}.choice-card:hover{border-color:#89b9aa!important;background:#f5faf8!important}.choice-card:has(input:checked){border-color:#0a7f6e!important;background:#eaf5f1!important;box-shadow:inset 0 0 0 1px #0a7f6e!important}.choice-card strong{font-size:10px!important}.choice-card small{font-size:8px!important;line-height:1.45}.choice-card b{font-size:11px!important;color:#183831}.reserve-line{font-size:9px!important;margin:10px 0 2px!important}.treatment-chips{gap:6px!important}.treatment-chips label{border-radius:999px!important;padding:9px 11px!important;background:#f8faf8!important}.section-vendas #sale-form{margin:0 18px 22px}
@media(max-width:1050px){.ops-layout{grid-template-columns:1fr}.ops-kpis{grid-template-columns:1fr 1fr}.ops-kpis>a:nth-child(2){border-right:0}.ops-kpis>a:nth-child(-n+2){border-bottom:1px solid #e6eae7}.sale-station{grid-template-columns:minmax(0,1fr) 280px!important}.product-choice-grid{grid-template-columns:1fr 1fr!important}}
@media(max-width:760px){.ops-hero{align-items:stretch;flex-direction:column}.ops-actions{display:grid;grid-template-columns:1fr 1fr}.ops-actions .ops-primary{grid-column:1/-1}.ops-kpis{grid-template-columns:1fr 1fr}.ops-kpis>a{padding:15px;min-height:95px}.ops-kpis strong{font-size:24px}.ops-modules{grid-template-columns:1fr}.ops-module,.ops-module:nth-child(even),.ops-module:nth-last-child(-n+2){border-right:0;border-bottom:1px solid #e7ebe8}.ops-module:last-child{border-bottom:0}.ops-area-grid{grid-template-columns:1fr 1fr}.ops-area-grid>a:nth-child(2){border-right:0}.ops-area-grid>a:nth-child(-n+2){border-bottom:1px solid #e7ebe8}.section-vendas #sale-form{margin:0 9px 90px}.section-vendas .sale-station{display:flex!important}.section-vendas .sale-cart{position:static!important;display:contents!important}.section-vendas .sale-cart-head{position:sticky!important;top:0!important;border-radius:12px!important;order:0!important}.section-vendas .sale-client-box{order:1!important;background:#fff;border:1px solid #dce3df;border-radius:12px;padding:13px!important}.section-vendas .sale-catalog{order:2!important;padding:0 12px 12px;border-radius:13px}.section-vendas .sale-summary-list{order:3!important;background:#fff;border:1px solid #dce3df;border-radius:12px}.section-vendas .sale-cart-note{order:4!important;background:#fff;border:1px solid #dce3df;border-radius:12px}.section-vendas .sale-cart-actions{display:none!important}.product-choice-grid{grid-template-columns:1fr 1fr!important}.seller-quickbar{top:0!important;margin-left:9px!important;margin-right:9px!important}.seller-quickbar>span{display:none!important}}
@media(max-width:430px){.ops-kpis,.ops-area-grid,.product-choice-grid{grid-template-columns:1fr!important}.ops-kpis>a,.ops-area-grid>a{border-right:0!important;border-bottom:1px solid #e6eae7!important}.ops-kpis>a:last-child,.ops-area-grid>a:last-child{border-bottom:0!important}}


/* V1.6 — escala tipográfica unificada + uploads de catálogo */
:root{--fs-xs:11px;--fs-sm:13px;--fs-base:15px;--fs-md:16px;--fs-lg:18px;--fs-xl:22px;--fs-2xl:28px}
body.md-ref-ui{font-size:var(--fs-base);line-height:1.5}
.ref-brand strong{font-size:16px}.ref-brand small,.license-block small,.license-block span,.page-title-card small,.hint,.brandline,.frame-meta,.stock-line strong{font-size:12px}
.page-title-card h1{font-size:20px;line-height:1.18}.module-command h2,.section-head h2,.digital-hero h2,.integration-head h2{font-size:25px;line-height:1.15}
.module-command small,.section-head p,.digital-hero p,.integration-head p{font-size:14px;line-height:1.55}
label,.field label,.compact-form label,.panel label{font-size:13px;font-weight:750}input,select,textarea{font-size:15px;min-height:42px}textarea{min-height:96px}
.btn,.link-btn,button{font-size:14px;font-weight:800}table{font-size:14px}th{font-size:12px;letter-spacing:.04em}td{font-size:14px}
.frame-card h3,.connection-card h3,.mini-form h3,.panel h3{font-size:17px}.frame-meta,.connection-card p,.connection-card small,.guide-note,.accuracy-note{font-size:12px}
.submodule-tile strong,.hub-tile strong{font-size:14px}.ref-search input{font-size:14px}.ref-search button,.top-home,.top-exit{font-size:13px}
.integration-grid>.panel{padding:22px}.integration-grid .compact-form{gap:12px}.integration-grid input,.integration-grid select{min-height:44px}
.product-thumb{height:160px;background:#f7f9fb}.product-thumb img{width:100%;height:100%;object-fit:contain;padding:14px}
.upload-field{display:grid;gap:7px;padding:12px;border:1px dashed #b9c9d7;border-radius:10px;background:#f8fbfd}.upload-field>span{font-size:13px;font-weight:800}.upload-field small{font-size:11px;color:#708195}
.upload-card{display:flex;align-items:center;gap:14px;padding:16px;border:1.5px dashed #b9c9d7;border-radius:12px;background:#f8fbfd}.upload-card input{min-height:auto;flex:0 0 auto}.upload-card strong{display:block;font-size:15px}.upload-card small{display:block;margin-top:3px;font-size:12px;color:#6d7d90}.legacy-image{margin-top:9px}.legacy-image summary{font-size:12px;color:#54708d;cursor:pointer}
@media(max-width:760px){:root{--fs-base:16px}.page-title-card h1{font-size:21px}.module-command h2,.section-head h2,.digital-hero h2,.integration-head h2{font-size:22px}label,.field label,.compact-form label,.panel label{font-size:14px}table{font-size:15px}.upload-card{align-items:flex-start;flex-direction:column}}

/* V1.6 — Integrações: interface de entrega */
.integration-command{margin:0 0 14px;padding:25px 26px;background:linear-gradient(120deg,#f7fbfe,#eef7fd);border:1px solid #d9e6f0;border-radius:14px;display:flex;align-items:end;justify-content:space-between;gap:28px}.integration-command h2{font-size:26px;margin:7px 0 8px}.integration-command p{margin:0;max-width:760px;font-size:14px;color:#627487}.integration-summary{display:flex;gap:8px}.integration-summary span{min-width:92px;padding:12px 14px;border-radius:10px;background:#fff;border:1px solid #dbe7ef;font-size:11px;color:#708195}.integration-summary b{display:block;font-size:21px;color:#153b62}.integration-layout{display:grid;grid-template-columns:.85fr 1.15fr;gap:14px}.integration-card{background:#fff;border:1px solid #dbe4eb;border-radius:14px;padding:21px}.integration-card-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}.integration-card-head>div:nth-child(2){flex:1}.integration-card-head small{font-size:10px;font-weight:900;letter-spacing:.1em;color:#718397}.integration-card-head h3{font-size:19px;margin:3px 0}.integration-card-head p{font-size:12px;color:#728396;margin:0}.integration-icon{width:43px;height:43px;border-radius:10px;background:#e9f4fc;color:#0d74c7;display:grid;place-items:center;font-size:19px;font-weight:900}.integration-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}.integration-form .field{display:grid;gap:6px}.integration-form .field.full,.integration-form .form-actions,.integration-options{grid-column:1/-1}.integration-form .field small{font-size:11px;color:#7b8998}.integration-options{display:flex;gap:8px;flex-wrap:wrap}.integration-options label{display:flex;align-items:center;gap:7px;padding:9px 11px;border:1px solid #dce5ec;border-radius:9px;background:#fafcfd;font-size:12px}.integration-options input{min-height:auto;width:auto}.form-actions{display:flex;justify-content:flex-start}.connections-board{margin-top:14px;background:#fff;border:1px solid #dbe4eb;border-radius:14px;padding:21px}.connections-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:14px}.connections-head h3{font-size:19px;margin:4px 0 0}.connections-head>small{font-size:11px;color:#7b8998}.modern-list{gap:8px}.connection-card.modern{display:grid;grid-template-columns:1.1fr 1.3fr .7fr auto;align-items:center;gap:18px;padding:14px 15px;border:1px solid #e0e7ed;border-radius:11px}.connection-main{display:flex;align-items:center;gap:11px}.connection-type{padding:7px 9px;border-radius:8px;background:#edf6fd;color:#0d74c7;font-size:10px;font-weight:900;text-transform:uppercase}.connection-main h3{font-size:14px;margin:0}.connection-main p{font-size:11px;margin:3px 0 0;color:#758596}.connection-endpoint small,.connection-endpoint span{display:block}.connection-endpoint small{font-size:9px;font-weight:900;color:#8291a0}.connection-endpoint span{font-size:11px;color:#5d6f80;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.connection-state{display:flex;align-items:center;gap:9px}.status-dot{width:9px;height:9px;border-radius:50%;background:#aab6c1}.status-dot.on{background:#24a268}.connection-state b,.connection-state small{display:block}.connection-state b{font-size:12px}.connection-state small{font-size:9px;color:#7c8a98;margin-top:2px}.integration-note{display:flex;gap:8px;margin-top:12px;padding:12px 15px;border-radius:10px;background:#fff9ef;border:1px solid #f0dfbf;font-size:11px;color:#725c35}.integration-empty{min-height:150px}.integration-empty strong,.integration-empty span{display:block}.integration-empty span{margin-top:6px;font-size:12px;color:#7a8997}@media(max-width:980px){.integration-layout{grid-template-columns:1fr}.connection-card.modern{grid-template-columns:1fr 1fr}.connection-actions{justify-content:flex-start}}@media(max-width:620px){.integration-command{align-items:flex-start;flex-direction:column;padding:18px}.integration-command h2{font-size:22px}.integration-summary{width:100%}.integration-summary span{flex:1}.integration-card,.connections-board{padding:15px}.integration-form{grid-template-columns:1fr}.integration-form .field.full,.integration-form .form-actions,.integration-options{grid-column:auto}.connection-card.modern{grid-template-columns:1fr}.connections-head{align-items:flex-start;flex-direction:column;gap:4px}.integration-note{display:grid}.connection-actions,.connection-actions form,.connection-actions button{width:100%}}

/* V1.6.1 — fotos na escolha de armações da venda */
.choice-card-photo{display:grid!important;grid-template-columns:86px minmax(0,1fr);align-items:center;gap:12px;min-height:118px!important;padding:12px!important}.choice-card-photo .choice-main{min-width:0;display:grid;gap:5px}.choice-thumb{width:86px;height:86px;border-radius:12px;background:linear-gradient(180deg,#f8faf9,#edf3ef);border:1px solid #e0e6e3;display:grid;place-items:center;overflow:hidden}.choice-thumb img{width:100%;height:100%;object-fit:contain;padding:8px}.choice-thumb-placeholder span{font-size:22px;font-weight:800;color:#7a8f87}.choice-card-photo strong{font-size:13px!important;line-height:1.25;padding-right:18px}.choice-card-photo small{font-size:11px!important;line-height:1.45}.choice-card-photo b{font-size:15px!important;margin-top:6px}.choice-card-photo input{top:12px!important;right:12px!important}@media(max-width:760px){.choice-card-photo{grid-template-columns:72px minmax(0,1fr)!important;gap:10px;min-height:98px!important}.choice-thumb{width:72px;height:72px;border-radius:10px}.choice-card-photo strong{font-size:12px!important}.choice-card-photo small{font-size:10px!important}.choice-card-photo b{font-size:14px!important}}

/* V1.7 — tipografia global, largura de leitura e mobile consolidado */
:root{--md-text:15px;--md-small:12px;--md-label:12px;--md-title:22px;--md-radius:12px;--md-content:1440px}
body.md-ref-ui{font-size:var(--md-text);line-height:1.48;-webkit-text-size-adjust:100%;text-rendering:optimizeLegibility}
.ref-main{overflow-x:clip}
.ref-main>:where(.page-title-card,.subnav,.section,.attention,.ops-grid,.quote-sheet,.profile-strip,.catalog-toolbar,.catalog-grid,.stock-summary,.settings-intro,.settings-layout,.home-shortcuts,.dashboard-cards,.ref-panel,.ref-content-grid,.tabs,.production-board,.aging-strip,.insight-band,.report-columns,.lesson-grid,.template-grid,.permission-grid,.backup-grid,.ops-hero,.ops-kpis,.ops-layout,.ops-navigation,.seller-quickbar,.digital-hero,.digital-tool-grid,.digital-workbench,.digital-split,.digital-recent,.tryon-layout,.integration-command,.integration-layout,.connections-board,.integration-note,#sale-form){width:min(var(--md-content),calc(100% - 36px));margin-left:auto!important;margin-right:auto!important}
.page-title-card{min-height:70px;display:flex;align-items:center}.page-title-card h1{font-size:22px!important}.page-title-card small{font-size:12px!important}.page-title-mark{width:40px;height:40px;font-size:20px}
.license-block small,.license-block span,.ref-brand small{font-size:11px!important}.license-block strong{font-size:17px!important}.ref-brand strong{font-size:16px!important}
.ref-search input{font-size:14px!important}.ref-search button,.top-home,.top-exit{font-size:13px!important;min-height:40px}
.ref-main :where(.eyebrow,.brandline,.table-note,.hint,.guide-note,.accuracy-note,.stock-line strong){font-size:12px!important;line-height:1.45}
.ref-main :where(.field label,.compact-form label,.panel label,.sale-client-box label,.sale-cart-note label){font-size:12px!important;line-height:1.3;letter-spacing:.02em}
.ref-main :where(input,select,textarea){font-size:15px;line-height:1.35}.ref-main :where(input,select){min-height:43px}.ref-main textarea{min-height:96px}
.ref-main :where(.btn,.link-btn,button){font-size:14px!important;line-height:1.2;min-height:42px}
.ref-main :where(table){font-size:14px!important}.ref-main :where(th){font-size:12px!important}.ref-main :where(td){font-size:14px!important}
.ref-main :where(.section-head h2,.module-command h2,.digital-hero h2,.integration-head h2,.integration-command h2){font-size:24px!important;line-height:1.18}.ref-main :where(.section-head p,.module-command p,.digital-hero p,.integration-head p,.integration-command p){font-size:14px!important;line-height:1.55}
.ref-main :where(.panel h3,.mini-form h3,.connection-card h3,.frame-card h3,.lens-card h3){font-size:17px!important;line-height:1.3}.ref-main :where(.frame-meta,.connection-card p,.connection-card small){font-size:12px!important}
.subnav a,.ref-main>.subnav a{font-size:13px!important;min-height:38px;align-items:center}
.md-footer{font-size:12px!important}.md-footer div strong{font-size:12px!important}.md-footer p,.md-footer a{font-size:11px!important}
/* navegação desktop menos pesada */
.ref-shell{grid-template-columns:190px minmax(0,1fr);background:linear-gradient(90deg,#132d4e 0,#132d4e 190px,#f3f4f2 190px)}.ref-rail{width:190px}.hub-tile,.submodule-tile{min-height:112px!important;padding:13px 9px!important}.hub-icon,.submodule-icon{font-size:28px!important;margin-bottom:9px!important}.hub-tile strong,.submodule-tile strong{font-size:13px!important}.hub-key,.submodule-tile .hub-key{font-size:10px!important}.rail-area-title strong{font-size:13px!important}.rail-home{font-size:12px!important}
/* dashboard */
.ops-welcome small,.ops-section-head small{font-size:11px!important;letter-spacing:.12em}.ops-welcome h2{font-size:35px!important}.ops-welcome p{font-size:14px!important}.ops-actions>a{font-size:13px!important}.ops-primary small{font-size:10px!important}.ops-primary b{font-size:13px!important}.ops-kpis small{font-size:11px!important}.ops-kpis span{font-size:12px!important}.ops-section-head h3{font-size:16px!important}.ops-section-head>span,.ops-section-head>a{font-size:11px!important}.ops-module b{font-size:14px!important}.ops-module small{font-size:12px!important;line-height:1.4}.attention-list b{font-size:14px!important}.attention-list small{font-size:11px!important}
/* venda */
.seller-quickbar{font-size:13px}.seller-quickbar>span small{font-size:11px!important}.seller-quickbar a{font-size:13px!important}.sale-cart-head span{font-size:11px!important}.sale-cart-head strong{font-size:28px!important}.sale-summary-list span{font-size:12px!important}.sale-summary-list strong{font-size:13px!important}.sale-band strong{font-size:20px!important}.sale-band span{font-size:12px!important}.choice-card strong,.choice-card-photo strong{font-size:13px!important}.choice-card small,.choice-card-photo small{font-size:11px!important}.choice-card b,.choice-card-photo b{font-size:15px!important}.reserve-line{font-size:12px!important}.pdv-treatments label{font-size:12px!important}
/* integrações */
.integration-summary span{font-size:12px!important}.integration-card-head small{font-size:11px!important}.integration-card-head h3{font-size:19px!important}.integration-card-head p,.integration-form .field small{font-size:12px!important}.integration-options label{font-size:13px!important}.connections-head>small,.connection-main p,.connection-endpoint span{font-size:12px!important}.connection-type,.connection-endpoint small,.connection-state small{font-size:11px!important}.connection-main h3{font-size:15px!important}.connection-state b{font-size:13px!important}.integration-note{font-size:12px!important}
/* login/demo auxiliares */
.login-back-public,.login-demo-strip span,.login-demo-strip a,.demo-system-bar{font-size:11px!important}.demo-system-bar{min-height:38px}
/* mobile: arquitetura própria, sem espremer o desktop */
@media(max-width:900px){
 :root{--md-text:16px;--md-content:100%}
 body.md-ref-ui{background:#f4f6f5}
 .ref-shell{display:block;background:#f4f6f5}.ref-rail{display:none}.ref-main{padding-bottom:78px}
 .ref-topbar{display:none}
 .mobile-license{display:flex!important;height:64px!important;padding:9px 12px!important;position:sticky;top:0;z-index:80;background:#fff;box-shadow:0 2px 12px rgba(19,45,78,.08)}
 .mobile-license small{font-size:11px!important}.mobile-license strong{font-size:16px!important;max-width:62vw}.mobile-actions a{font-size:13px!important;min-height:40px;display:grid;place-items:center}
 .mobile-hubs{display:flex!important;gap:7px!important;padding:8px 10px!important;overflow-x:auto!important;overscroll-behavior-x:contain;scroll-snap-type:x proximity;background:#132d4e;scrollbar-width:none}.mobile-hubs::-webkit-scrollbar{display:none}
 .mobile-hubs .hub-tile{flex:0 0 auto;min-width:108px!important;min-height:48px!important;padding:8px 10px!important;display:flex!important;flex-direction:row!important;justify-content:flex-start!important;gap:8px!important;border-radius:10px!important;scroll-snap-align:start}
 .mobile-hubs .hub-icon{font-size:18px!important;margin:0!important}.mobile-hubs .hub-tile strong{font-size:12px!important;text-align:left}.mobile-hubs .hub-key{display:none!important}
 .page-title-card{display:flex!important;width:calc(100% - 18px)!important;margin:10px auto!important;padding:11px 12px!important;min-height:62px!important;border-radius:12px!important}.page-title-card h1{font-size:19px!important}.page-title-card small{font-size:11px!important}.page-title-mark{width:36px;height:36px}
 .ref-main>:where(.subnav,.section,.attention,.ops-grid,.quote-sheet,.profile-strip,.catalog-toolbar,.catalog-grid,.stock-summary,.settings-intro,.settings-layout,.home-shortcuts,.dashboard-cards,.ref-panel,.ref-content-grid,.tabs,.production-board,.aging-strip,.insight-band,.report-columns,.lesson-grid,.template-grid,.permission-grid,.backup-grid,.ops-hero,.ops-kpis,.ops-layout,.ops-navigation,.seller-quickbar,.digital-hero,.digital-tool-grid,.digital-workbench,.digital-split,.digital-recent,.tryon-layout,.integration-command,.integration-layout,.connections-board,.integration-note,#sale-form){width:calc(100% - 18px)!important;margin-left:auto!important;margin-right:auto!important}
 .subnav{display:flex;overflow-x:auto;white-space:nowrap;scrollbar-width:none}.subnav::-webkit-scrollbar{display:none}.subnav a{flex:0 0 auto}
 .ops-hero{padding:10px 2px 14px!important}.ops-welcome h2{font-size:30px!important;margin:3px 0 6px}.ops-welcome p{font-size:13px!important}.ops-actions{width:100%;display:grid!important;grid-template-columns:1fr 1fr}.ops-actions .ops-primary{grid-column:1/-1;min-width:0}.ops-kpis{grid-template-columns:1fr 1fr!important}.ops-kpis>a{min-height:94px!important;padding:14px!important}.ops-kpis strong{font-size:25px!important}.ops-layout{grid-template-columns:1fr!important}.ops-modules{grid-template-columns:1fr!important}.ops-module{grid-template-columns:34px minmax(0,1fr) 24px!important;padding:16px 14px!important;border-right:0!important;border-bottom:1px solid #e7ebe8!important}.ops-module:last-child{border-bottom:0!important}.ops-module>span{font-size:23px!important}
 .catalog-grid{grid-template-columns:1fr 1fr}.ops-grid,.profile-strip,.settings-layout,.ref-content-grid{grid-template-columns:1fr!important}
 .table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-wrap table{min-width:660px}
 .compact-form,.integration-form{min-width:0}.integration-layout{grid-template-columns:1fr!important}.integration-command{align-items:flex-start!important;flex-direction:column!important;padding:17px!important}.integration-summary{width:100%;display:grid;grid-template-columns:1fr 1fr}.integration-summary span{min-width:0}.connection-card.modern{grid-template-columns:1fr!important}
 .section-vendas #sale-form{width:calc(100% - 18px)!important;margin-bottom:90px!important}.section-vendas .sale-station{display:flex!important;flex-direction:column!important;gap:10px!important}.section-vendas .sale-cart{display:contents!important}.section-vendas .sale-cart-head{position:sticky!important;top:0!important;z-index:30!important}.section-vendas .sale-catalog{padding:0 12px 12px!important}.section-vendas .sale-fields-grid{grid-template-columns:1fr 1fr!important}.product-choice-grid{grid-template-columns:1fr 1fr!important}.seller-mobile-dock{left:8px!important;right:8px!important}
 .md-footer{width:calc(100% - 18px);margin-left:auto!important;margin-right:auto!important;font-size:11px!important}
}
@media(max-width:620px){
 .catalog-grid,.product-choice-grid,.section-vendas .sale-fields-grid,.ref-summary-row,.ops-kpis{grid-template-columns:1fr!important}
 .ops-kpis>a{border-right:0!important;border-bottom:1px solid #e7ebe8}.ops-kpis>a:last-child{border-bottom:0}
 .seller-quickbar{grid-template-columns:1fr 1fr 1fr!important}.seller-quickbar a{font-size:12px!important;min-height:46px}.seller-quickbar>span{display:none!important}
 .choice-card-photo{grid-template-columns:78px minmax(0,1fr)!important;min-height:102px!important}.choice-thumb{width:78px!important;height:78px!important}
 .integration-form{grid-template-columns:1fr!important}.integration-options{grid-column:auto!important}.integration-options label{flex:1 1 45%}
 .seller-mobile-dock{padding:9px 10px!important}.seller-mobile-dock .btn{min-width:130px!important}
 .demo-system-bar{font-size:10px!important;padding-inline:10px}.demo-system-bar span{display:none}
}
@media(max-width:390px){.mobile-hubs .hub-tile{min-width:100px!important}.page-title-card h1{font-size:18px!important}.seller-mobile-dock .btn{min-width:118px!important;padding-inline:10px!important}}


/* V1.7.1 — padronização geral de larguras do sistema */
:root{--md-content:1380px;--md-gutter:32px;--md-gutter-mobile:18px;--md-card-radius:16px}
.ref-main{--md-content-current:min(var(--md-content),calc(100% - var(--md-gutter)))}
.ref-main>:where(*):not(.ref-topbar):not(.mobile-license):not(.mobile-hubs):not(.seller-mobile-dock):not(script):not(style){max-width:var(--md-content);width:calc(100% - var(--md-gutter));margin-left:auto!important;margin-right:auto!important}
.ref-main>.page-title-card,.ref-main>.subnav,.ref-main>.section,.ref-main>.attention,.ref-main>.ops-grid,.ref-main>.quote-sheet,.ref-main>.profile-strip,.ref-main>.catalog-toolbar,.ref-main>.catalog-grid,.ref-main>.stock-summary,.ref-main>.settings-intro,.ref-main>.settings-layout,.ref-main>.home-shortcuts,.ref-main>.dashboard-cards,.ref-main>.ref-panel,.ref-main>.ref-content-grid,.ref-main>.tabs,.ref-main>.production-board,.ref-main>.aging-strip,.ref-main>.insight-band,.ref-main>.report-columns,.ref-main>.lesson-grid,.ref-main>.template-grid,.ref-main>.permission-grid,.ref-main>.backup-grid,.ref-main>.ops-hero,.ref-main>.ops-kpis,.ref-main>.ops-layout,.ref-main>.ops-navigation,.ref-main>.seller-quickbar,.ref-main>.digital-hero,.ref-main>.digital-tool-grid,.ref-main>.digital-workbench,.ref-main>.digital-split,.ref-main>.digital-recent,.ref-main>.tryon-layout,.ref-main>.integration-command,.ref-main>.integration-layout,.ref-main>.connections-board,.ref-main>.integration-note,.ref-main>#sale-form{width:calc(100% - var(--md-gutter))!important;max-width:var(--md-content)!important}
.ref-main .page-title-card,.ref-main .section,.ref-main .panel,.ref-main .ref-panel,.ref-main .table-wrap,.ref-main .integration-card,.ref-main .connections-board,.ref-main .ops-card,.ref-main .mini-form{border-radius:var(--md-card-radius)}
.ref-main :where(.table-wrap,.catalog-grid,.production-board,.kanban,.split-layout,.quote-sheet,.profile-strip,.settings-layout,.home-shortcuts,.dashboard-cards,.ref-content-grid,.ops-grid,.ops-layout,.digital-tool-grid,.digital-workbench,.digital-split,.digital-recent,.tryon-layout,.integration-layout,.connections-board,.permission-grid,.backup-grid,.report-columns,.lesson-grid,.template-grid,.aging-strip,.insight-band,.stock-summary){width:100%!important;max-width:100%!important;min-width:0}
.ref-main :where(.section>.section-head,.section>.table-wrap,.section>.catalog-grid,.section>.production-board,.section>.split-layout,.section>.ops-layout,.section>.report-columns,.section>.dashboard-cards,.section>.kanban,.section>.integration-layout,.section>.connections-board,.section>.digital-tool-grid,.section>.digital-recent,.section>.digital-workbench,.section>.tryon-layout,.section>.quote-sheet,.section>.profile-strip,.section>.stock-summary,.section>.filter-deck,.section>.catalog-toolbar,.section>.panel){width:100%!important;max-width:100%!important}
.ref-main .section{padding:0;background:transparent;border:0;margin-top:14px}
.ref-main .section> :where(.section-head,.panel,.table-wrap,.catalog-grid,.split-layout,.ops-layout,.report-columns,.dashboard-cards,.kanban,.production-board,.integration-layout,.connections-board,.digital-tool-grid,.digital-recent,.digital-workbench,.tryon-layout,.quote-sheet,.profile-strip,.stock-summary,.filter-deck,.catalog-toolbar){margin-top:0}
.ref-main .section+.section{margin-top:16px}
.ref-main .filter-deck,.ref-main .catalog-toolbar,.ref-main .search-results>.panel:first-child{padding:14px 16px;border:1px solid #dce3df;border-radius:16px;background:#fff}
.ref-main .filter-deck{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.ref-main .filter-deck>*{min-width:0}.ref-main .filter-deck>label{flex:1 1 160px}.ref-main .filter-deck>label:first-child{flex:1.6 1 260px}
.ref-main .table-wrap{overflow:auto}.ref-main .table-wrap table{min-width:100%}
.ref-main .production-board{display:grid;grid-template-columns:repeat(5,minmax(220px,1fr));gap:12px;overflow:auto;padding-bottom:4px}.ref-main .production-board>*{min-width:220px}
.ref-main .catalog-grid{align-items:start}
.ref-main .connection-card.modern,.ref-main .ops-module,.ref-main .hub-tile,.ref-main .digital-tool-card,.ref-main .frame-card,.ref-main .lens-card,.ref-main .choice-card{max-width:100%}
.ref-main .page-title-card,.ref-main .module-command,.ref-main .ops-hero,.ref-main .digital-hero,.ref-main .integration-command{padding-left:18px!important;padding-right:18px!important}
.ref-main .section-head{padding:0 0 10px!important;margin-bottom:10px!important}
.ref-main .section-head.with-actions,.ref-main .section-head.has-actions{align-items:center}
@media(max-width:900px){
  .ref-main>:where(*):not(.ref-topbar):not(.mobile-license):not(.mobile-hubs):not(.seller-mobile-dock):not(script):not(style){width:calc(100% - var(--md-gutter-mobile))!important}
  .ref-main>.page-title-card,.ref-main>.subnav,.ref-main>.section,.ref-main>.attention,.ref-main>.ops-grid,.ref-main>.quote-sheet,.ref-main>.profile-strip,.ref-main>.catalog-toolbar,.ref-main>.catalog-grid,.ref-main>.stock-summary,.ref-main>.settings-intro,.ref-main>.settings-layout,.ref-main>.home-shortcuts,.ref-main>.dashboard-cards,.ref-main>.ref-panel,.ref-main>.ref-content-grid,.ref-main>.tabs,.ref-main>.production-board,.ref-main>.aging-strip,.ref-main>.insight-band,.ref-main>.report-columns,.ref-main>.lesson-grid,.ref-main>.template-grid,.ref-main>.permission-grid,.ref-main>.backup-grid,.ref-main>.ops-hero,.ref-main>.ops-kpis,.ref-main>.ops-layout,.ref-main>.ops-navigation,.ref-main>.seller-quickbar,.ref-main>.digital-hero,.ref-main>.digital-tool-grid,.ref-main>.digital-workbench,.ref-main>.digital-split,.ref-main>.digital-recent,.ref-main>.tryon-layout,.ref-main>.integration-command,.ref-main>.integration-layout,.ref-main>.connections-board,.ref-main>.integration-note,.ref-main>#sale-form{width:calc(100% - var(--md-gutter-mobile))!important}
  .ref-main .production-board{grid-template-columns:repeat(5,210px)!important}
}
@media(max-width:620px){
  .ref-main .filter-deck,.ref-main .catalog-toolbar{padding:12px}.ref-main .filter-deck>label,.ref-main .filter-deck>label:first-child{flex:1 1 100%}
  .ref-main .section-head{padding-bottom:8px!important;margin-bottom:8px!important}
}


/* V1.7.2 — refinamento visual: largura maior, Produtos, CRM e Venda Assistida */
@media(min-width:1100px){
  .section-produtos .ops-grid{grid-template-columns:minmax(0,1fr) 350px!important;gap:16px!important;align-items:start}
  .section-produtos .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important}
  .section-produtos .ops-grid>aside{position:sticky;top:84px;align-self:start}
  .section-crm .ops-grid{grid-template-columns:minmax(0,1.55fr) minmax(330px,.65fr)!important;gap:16px!important;align-items:start}
  .section-crm .ops-grid>aside{position:sticky;top:84px;align-self:start}
  .section-digital .digital-tool-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
.section-produtos .frame-card{background:#fff;border-color:#dce4e0;box-shadow:0 8px 22px rgba(20,45,40,.045)}
.section-produtos .frame-card .frame-visual{aspect-ratio:1.7;background:linear-gradient(145deg,#edf5f1,#f9fbfa);border-bottom-color:#e3e9e6}
.section-produtos .frame-card .frame-placeholder{font-family:Inter,system-ui,sans-serif;font-size:22px;font-weight:900;letter-spacing:.08em;color:#6e857d}
.section-produtos .frame-body{padding:15px}.section-produtos .frame-body h3{font-family:Inter,system-ui,sans-serif!important;font-size:16px!important;font-weight:800!important;margin:5px 0 6px!important}
.section-produtos .frame-body .brandline{font-size:11px!important}.section-produtos .frame-meta{font-size:12px!important}.section-produtos .stock-line{font-size:12px!important}
.section-produtos .mini-form{background:#fff!important;border:1px solid #dce4e0!important;padding:18px!important;box-shadow:0 8px 22px rgba(20,45,40,.04)}
.section-produtos .mini-form h3{font-family:Inter,system-ui,sans-serif!important;font-size:18px!important;font-weight:850!important}
.section-produtos .retail-sale-box{border-radius:16px!important;margin-top:12px!important}
.section-crm .module-command{background:linear-gradient(90deg,#ffffff,#f4faf7)!important}
.section-crm .crm-summary{border-radius:16px!important;overflow:hidden;box-shadow:0 7px 22px rgba(22,49,43,.04)}
.section-crm .crm-summary>div{padding:15px 16px!important}.section-crm .crm-summary span{font-size:11px!important}.section-crm .crm-summary strong{font-size:24px!important}
.section-crm .ops-grid>section>.section-head{background:#fff!important;border:1px solid #dce4e0!important;border-radius:16px!important;padding:16px 18px!important;margin-bottom:10px!important;box-shadow:0 6px 18px rgba(20,45,40,.035)}
.section-crm .ops-grid>section>.section-head h2{font-size:21px!important}.section-crm .ops-grid>section>.section-head p{font-size:13px!important}
.section-crm .ops-grid>section>.panel{padding:18px!important}.section-crm .quote-row{grid-template-columns:72px 1fr auto!important;gap:14px!important;padding:13px 0!important}
.section-crm .quote-row .quote-id{font-size:18px!important}.section-crm .quote-row h3{font-size:15px!important}.section-crm .quote-row p{font-size:12px!important}
.section-crm .ops-grid>aside .panel,.section-crm .ops-grid>aside .mini-form{padding:18px!important;background:#fff!important;border:1px solid #dce4e0!important;box-shadow:0 8px 22px rgba(20,45,40,.04)}
.section-digital .digital-hero{background:linear-gradient(135deg,#f5fbf8 0%,#edf6fb 100%)!important;border-color:#d6e6e0!important;min-height:138px;align-items:center}
.section-digital .digital-hero h2{max-width:780px}.section-digital .digital-tool-card{min-height:190px!important;padding:20px!important;border-radius:16px!important;background:#fff!important;box-shadow:0 8px 24px rgba(20,45,40,.045)}
.section-digital .digital-tool-card p{font-size:13px!important;line-height:1.5!important}.section-digital .digital-tool-card strong{font-size:16px!important}
.section-digital .digital-recent{margin-top:14px!important}.section-digital .digital-recent .section-head{background:#fff!important;border:1px solid #dce4e0!important;border-radius:16px!important;padding:16px 18px!important}
@media(max-width:1099px){.section-produtos .ops-grid,.section-crm .ops-grid{grid-template-columns:1fr!important}.section-produtos .ops-grid>aside,.section-crm .ops-grid>aside{position:static}}
@media(max-width:760px){
 .section-produtos .catalog-grid{grid-template-columns:1fr 1fr!important}.section-produtos .ops-grid>aside{display:grid;gap:10px}.section-produtos .mini-form{order:2}.section-produtos .retail-sale-box{order:1}
 .section-crm .crm-summary{display:grid!important;grid-template-columns:1fr 1fr!important}.section-crm .crm-summary>div{border-bottom:1px solid #e6ebe8!important}.section-crm .quote-row{grid-template-columns:58px minmax(0,1fr)!important}.section-crm .quote-row>div:last-child{grid-column:2}
 .section-digital .digital-tool-grid{grid-template-columns:1fr 1fr!important}
}
@media(max-width:430px){.section-produtos .catalog-grid,.section-digital .digital-tool-grid{grid-template-columns:1fr!important}.section-crm .crm-summary{grid-template-columns:1fr!important}}


/* V1.7.3 — miolo amplo + linguagem séria/moderna */
:root{
  --md-content:1680px;
  --md-gutter:18px;
  --md-gutter-mobile:18px;
  --md-card-radius:8px;
}
/* O conteúdo à direita do menu passa a usar praticamente toda a área disponível */
.ref-main>:where(*):not(.ref-topbar):not(.mobile-license):not(.mobile-hubs):not(.seller-mobile-dock):not(script):not(style){
  width:calc(100% - var(--md-gutter))!important;
  max-width:var(--md-content)!important;
}
.ref-main>.page-title-card,
.ref-main>.subnav,
.ref-main>.section,
.ref-main>.attention,
.ref-main>.ops-grid,
.ref-main>.quote-sheet,
.ref-main>.profile-strip,
.ref-main>.catalog-toolbar,
.ref-main>.catalog-grid,
.ref-main>.stock-summary,
.ref-main>.settings-intro,
.ref-main>.settings-layout,
.ref-main>.home-shortcuts,
.ref-main>.dashboard-cards,
.ref-main>.ref-panel,
.ref-main>.ref-content-grid,
.ref-main>.tabs,
.ref-main>.production-board,
.ref-main>.aging-strip,
.ref-main>.insight-band,
.ref-main>.report-columns,
.ref-main>.lesson-grid,
.ref-main>.template-grid,
.ref-main>.permission-grid,
.ref-main>.backup-grid,
.ref-main>.ops-hero,
.ref-main>.ops-kpis,
.ref-main>.ops-layout,
.ref-main>.ops-navigation,
.ref-main>.seller-quickbar,
.ref-main>.digital-hero,
.ref-main>.digital-tool-grid,
.ref-main>.digital-workbench,
.ref-main>.digital-split,
.ref-main>.digital-recent,
.ref-main>.tryon-layout,
.ref-main>.integration-command,
.ref-main>.integration-layout,
.ref-main>.connections-board,
.ref-main>.integration-note,
.ref-main>#sale-form{
  width:calc(100% - var(--md-gutter))!important;
  max-width:var(--md-content)!important;
}

/* Menos aparência de "cápsulas" e cards fofos; mais produto corporativo */
.ref-main :where(.page-title-card,.module-command,.panel,.ref-panel,.table-wrap,.mini-form,.conversion-box,.quote-block,.frame-card,.lens-card,.integration-card,.connections-board,.digital-tool-card,.digital-hero,.ops-card,.filter-deck,.catalog-toolbar,.data-board,.stock-summary,.crm-summary,.template-card,.choice-card,.production-col){
  border-radius:8px!important;
  box-shadow:0 2px 8px rgba(20,36,51,.045)!important;
}
.ref-main :where(input,select,textarea){border-radius:6px!important}
.ref-main :where(.btn,.link-btn,button,.top-home,.top-exit,.ref-search button){border-radius:6px!important}
.ref-main .ref-search{border-radius:6px!important}
.ref-main .subnav a{border-radius:6px!important}
.ref-main .page-title-mark,.ref-main .integration-icon{border-radius:7px!important}

/* Cabeçalhos de subseção deixam de ser um card extra */
.ref-main .section-head{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:3px 2px 11px!important;
  margin:0 0 12px!important;
  min-height:auto!important;
}
.ref-main .section-head h2{margin:0!important}
.ref-main .section-head p{margin:3px 0 0!important}
.ref-main .section{margin-top:18px!important}
.ref-main .section+.section{margin-top:24px!important}
.ref-main .ops-grid{gap:18px!important;align-items:start}
.ref-main .split-layout{gap:18px!important;align-items:start}
.ref-main .template-grid{gap:16px!important}

/* Títulos principais com menos arredondamento e menos sombra */
.ref-main .page-title-card{
  border:1px solid #d9e0e5!important;
  box-shadow:none!important;
  padding:14px 17px!important;
  min-height:66px!important;
}
.ref-main .module-command{
  border:1px solid #d9e0e5!important;
  box-shadow:none!important;
  padding:15px 17px!important;
}
.ref-main .filter-deck,.ref-main .catalog-toolbar{
  border-radius:8px!important;
  box-shadow:none!important;
  padding:14px 15px!important;
}
.ref-main .panel,.ref-main .mini-form,.ref-main .table-wrap{
  border-color:#d9e0e5!important;
}
.ref-main .table-wrap{box-shadow:none!important}

/* Mais respiro vertical em formulários laterais */
.ref-main .mini-form,.ref-main .conversion-box{padding:18px!important}
.ref-main .compact-form{gap:11px!important}
.ref-main .compact-form .field{display:grid;gap:6px}
.ref-main .compact-form button.btn{margin-top:3px}

/* Garantias / remakes */
@media(min-width:1080px){
  .section-garantias .ops-grid{grid-template-columns:minmax(0,1fr) minmax(350px,430px)!important;gap:20px!important}
  .section-whatsapp .ops-grid{grid-template-columns:minmax(0,1.7fr) minmax(350px,.7fr)!important;gap:20px!important}
}
.section-garantias .stock-summary{margin-bottom:22px!important;border-radius:8px!important;overflow:hidden}
.section-garantias .ops-grid>section>.panel{min-height:180px;padding:18px!important}
.section-garantias .conversion-box.section{
  margin:0!important;
  background:#fff!important;
  color:#17212b!important;
  border:1px solid #d9e0e5!important;
  box-shadow:none!important;
}
.section-garantias .conversion-box h3{font-family:Inter,system-ui,sans-serif!important;font-size:19px!important;font-weight:800!important;color:#17212b!important}
.section-garantias .conversion-box .field label{color:#5d6a78!important}
.section-garantias .conversion-box .field input,
.section-garantias .conversion-box .field select,
.section-garantias .conversion-box .field textarea{background:#fff!important;color:#17212b!important;border-color:#cfd8e1!important}

/* WhatsApp */
.section-whatsapp .ops-grid{margin-top:18px!important}
.section-whatsapp .ops-grid>section,.section-whatsapp .ops-grid>aside{min-width:0}
.section-whatsapp .ops-grid>section>.table-wrap{min-height:170px}
.section-whatsapp .ops-grid>aside .mini-form{padding:18px!important}
.section-whatsapp>.section{margin-top:28px!important}
.section-whatsapp .template-card{
  padding:18px!important;
  border:1px solid #d9e0e5!important;
  background:#fff!important;
  box-shadow:none!important;
}
.section-whatsapp .template-card textarea{margin-top:10px!important;min-height:120px!important}
.section-whatsapp .template-card label{margin:10px 0!important}

/* Estoque: título + tabela com separação clara */
.section-estoque .ops-grid>section>.section-head{padding-top:0!important}
.section-estoque .ops-grid>section>.table-wrap{margin-top:0!important}
.section-estoque .ops-grid{gap:20px!important}

/* Produtos e CRM mais largos e menos "card dentro de card" */
@media(min-width:1180px){
  .section-produtos .ops-grid{grid-template-columns:minmax(0,1fr) 380px!important;gap:20px!important}
  .section-crm .ops-grid{grid-template-columns:minmax(0,1.75fr) minmax(360px,.65fr)!important;gap:20px!important}
}
.section-produtos .mini-form,.section-crm .ops-grid>aside .mini-form{border-radius:8px!important;box-shadow:none!important}
.section-crm .ops-grid>section>.section-head{background:transparent!important;border:0!important;border-radius:0!important;padding:2px 1px 11px!important;box-shadow:none!important;margin-bottom:10px!important}
.section-crm .crm-summary{border-radius:8px!important;box-shadow:none!important}

/* Venda assistida: menos caixas arredondadas */
.section-digital .digital-hero,.section-digital .digital-tool-card,.section-digital .digital-recent{border-radius:8px!important}
.section-digital .digital-recent .section-head{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:3px 1px 10px!important}
.section-vendas .sale-cart,.section-vendas .sale-catalog{border-radius:8px!important}
.section-vendas .choice-card{border-radius:7px!important}

@media(max-width:900px){
  :root{--md-gutter-mobile:18px}
  .ref-main>:where(*):not(.ref-topbar):not(.mobile-license):not(.mobile-hubs):not(.seller-mobile-dock):not(script):not(style){width:calc(100% - var(--md-gutter-mobile))!important}
  .ref-main .page-title-card{border-radius:8px!important}
  .section-garantias .ops-grid,.section-whatsapp .ops-grid{grid-template-columns:1fr!important}
  .section-whatsapp>.section{margin-top:20px!important}
}


/* V1.7.4 — fechamento/resumo das páginas */
.status-dock,.finance-dock{
  position:static!important;
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  width:calc(100% - 24px)!important;
  max-width:none!important;
  margin:18px 12px 24px!important;
  background:#fff!important;
  color:#17263a!important;
  border:1px solid #d8e0e7!important;
  border-top:3px solid #17395f!important;
  border-radius:8px!important;
  overflow:hidden!important;
  box-shadow:0 5px 18px rgba(21,42,66,.055)!important;
}
.status-dock div,.finance-dock div{
  min-width:0!important;
  padding:14px 18px!important;
  border-right:1px solid #e7edf1!important;
  text-align:left!important;
  background:transparent!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  min-height:72px!important;
}
.status-dock div:last-child,.finance-dock div:last-child{border-right:0!important}
.status-dock span,.finance-dock span{
  display:block!important;
  text-transform:uppercase!important;
  font-size:10px!important;
  line-height:1.2!important;
  letter-spacing:.075em!important;
  color:#718093!important;
  font-weight:800!important;
}
.status-dock strong,.finance-dock strong{
  display:block!important;
  font-size:19px!important;
  line-height:1.15!important;
  margin-top:6px!important;
  color:#15263d!important;
  font-weight:850!important;
}
.status-dock strong a,.finance-dock strong a{color:#0d6d61!important;text-decoration:none}
.status-dock div:first-child,.finance-dock div:first-child{background:#f7fafb!important}
.finance-dock{border-top-color:#0c7b6d!important}
@media(max-width:900px){
  .status-dock,.finance-dock{width:calc(100% - 18px)!important;margin:14px 9px 20px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .status-dock div,.finance-dock div{min-height:66px!important;padding:12px 13px!important;border-bottom:1px solid #e7edf1!important}
  .status-dock div:nth-child(2n),.finance-dock div:nth-child(2n){border-right:0!important}
  .status-dock strong,.finance-dock strong{font-size:17px!important}
}
@media(max-width:430px){
  .status-dock span,.finance-dock span{font-size:9px!important}.status-dock strong,.finance-dock strong{font-size:16px!important}
}


/* V1.7.5 — Financeiro desktop + mobile operacional de verdade */
/* Financeiro desktop: menos blocos concorrendo, mais leitura executiva */
.section-financeiro .module-command{padding:18px 20px!important;border-top:3px solid #7b27a8!important;background:#fff!important}
.section-financeiro .module-command h2{font-size:25px!important}.section-financeiro .module-command small{font-size:13px!important}
.section-financeiro .finance-pills{display:flex;gap:8px;align-items:center}.section-financeiro .finance-pills span{min-width:106px;padding:10px 12px;border-left:3px solid #7b27a8;background:#f8f5fa;font-size:10px!important;text-transform:uppercase;letter-spacing:.06em}.section-financeiro .finance-pills b{display:block;margin-top:3px;font-size:15px;color:#1f2937}
.section-financeiro>.stock-summary{margin-top:10px!important;margin-bottom:14px!important;border:1px solid #dfe4e8!important;border-top:0!important;background:#fff!important;gap:0!important}.section-financeiro>.stock-summary>div{padding:17px 18px!important;background:#fff!important;border-right:1px solid #e4e8ec}.section-financeiro>.stock-summary>div:last-child{border-right:0}.section-financeiro>.stock-summary span{font-size:10px!important;color:#687786!important}.section-financeiro>.stock-summary strong{font-family:Inter,system-ui,sans-serif!important;font-size:22px!important;font-weight:780!important;margin-top:5px!important}
.section-financeiro .finance-tabs{padding:6px!important;border:1px solid #dfe4e8!important;background:#fff!important;gap:4px!important;margin-top:0!important;margin-bottom:18px!important}.section-financeiro .finance-tabs a{border:0!important;border-radius:5px!important;padding:10px 14px!important;margin:0!important;background:transparent!important}.section-financeiro .finance-tabs a.active{background:#7b27a8!important;color:#fff!important}
@media(min-width:1080px){.section-financeiro>.ops-grid{grid-template-columns:minmax(0,1fr) 360px!important;gap:22px!important}.section-financeiro>.ops-grid>aside{position:sticky;top:84px}.section-financeiro .finance-ledger{padding:10px!important;background:#f8fafb!important}.section-financeiro .finance-ledger .quote-row{background:#fff;border:1px solid #e0e5e9!important;border-radius:6px!important;padding:12px 14px!important;margin:0 0 8px!important;grid-template-columns:48px minmax(220px,1fr) 120px minmax(390px,auto)!important;gap:12px!important}.section-financeiro .receivable-payment-form{display:grid!important;grid-template-columns:92px 120px minmax(150px,1fr)!important;gap:7px!important;align-items:center}.section-financeiro .receivable-payment-form .btn{white-space:nowrap!important}.section-financeiro .mini-form{padding:20px!important}.section-financeiro .mini-form h3{font-size:19px!important;margin:0 0 14px!important}}

/* Base mobile: menos altura, ações mais próximas e leitura mais densa */
@media(max-width:760px){
 body.md-ref-ui{background:#f4f6f5!important}
 .demo-strip{min-height:32px!important;padding:6px 10px!important;font-size:10px!important;gap:10px!important}
 .mobile-license{padding:9px 12px!important;min-height:62px!important}.mobile-license small{font-size:9px!important}.mobile-license strong{font-size:16px!important}.mobile-actions{gap:6px!important}.mobile-actions a{min-width:42px!important;min-height:40px!important;padding:7px 10px!important}
 .mobile-hubs{padding:7px 8px!important;gap:6px!important;background:#15304f!important}.mobile-hubs .hub-tile{min-width:auto!important;flex:1 0 auto!important;min-height:48px!important;padding:8px 10px!important;border-radius:7px!important;display:flex!important;flex-direction:row!important;gap:7px!important}.mobile-hubs .hub-icon{font-size:14px!important;margin:0!important}.mobile-hubs .hub-tile strong{font-size:12px!important;white-space:nowrap}.mobile-hubs .hub-key{display:none!important}
 .page-title-card{min-height:58px!important;padding:11px 13px!important;margin-top:10px!important;margin-bottom:10px!important}.page-title-mark{width:34px!important;height:34px!important}.page-title-card h1{font-size:20px!important}.page-title-card small{font-size:11px!important}
 .module-command{padding:13px 14px!important;margin-bottom:10px!important}.module-command h2{font-size:22px!important}.module-command small{font-size:12px!important}
 .ref-main .section{margin-top:12px!important}.ref-main .section+.section{margin-top:16px!important}
 .ref-main .panel,.ref-main .ref-panel,.ref-main .mini-form,.ref-main .table-wrap,.ref-main .data-board{border-radius:7px!important}
 .ref-main .section-head h2{font-size:20px!important}.ref-main .section-head p{font-size:12px!important}
 .ops-welcome{padding:17px 18px!important}.ops-welcome h2{font-size:29px!important;line-height:1.05!important}.ops-welcome p{font-size:13px!important;margin-bottom:0!important}.ops-actions{margin-top:14px!important;gap:7px!important}.ops-actions>a{min-height:44px!important}
 .ops-kpis{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0!important;border:1px solid #dfe5e1!important;background:#fff!important}.ops-kpis>a{min-height:94px!important;padding:14px!important;border-radius:0!important;border-right:1px solid #e5eae7!important;border-bottom:1px solid #e5eae7!important}.ops-kpis>a:nth-child(2n){border-right:0!important}.ops-kpis>a:nth-last-child(-n+2){border-bottom:0!important}.ops-kpis strong{font-size:24px!important}.ops-kpis span{font-size:10px!important}.ops-kpis small{font-size:10px!important}
 .ops-module{padding:13px 14px!important;min-height:0!important}.ops-module b{font-size:13px!important}.ops-module small{font-size:11px!important}.ops-module .ops-num{font-size:23px!important}
 .ops-attention .attention-list>a,.attention-list>a{padding:13px 14px!important;min-height:0!important}.attention-list b{font-size:13px!important}.attention-list small{font-size:10px!important}
 .ops-area-grid{grid-template-columns:1fr 1fr!important}.ops-area-grid>a{min-height:80px!important;padding:13px!important}.ops-area-grid b{font-size:12px!important}.ops-area-grid small{font-size:10px!important}
 .ref-summary-row{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:7px!important}.ref-stat{min-height:78px!important;padding:11px 12px!important}.ref-stat strong{font-size:22px!important}.ref-stat span{font-size:9px!important}.ref-stat small{font-size:9px!important}
 .ref-content-grid{gap:12px!important}.ref-panel-head{min-height:40px!important;padding:9px 12px!important}.ref-panel-head strong{font-size:13px!important}.ref-panel-head small{font-size:9px!important}
 /* tabelas mobile viram linhas compactas, não formulários-cartaz */
 .mobile-cards table,.mobile-cards tbody,.mobile-cards tr,.mobile-cards td{display:block!important;width:100%!important}.mobile-cards thead{display:none!important}.mobile-cards tr{position:relative;padding:13px 14px!important;margin:0!important;border:0!important;border-bottom:1px solid #e5eaed!important;background:#fff!important;border-radius:0!important}.mobile-cards tr:last-child{border-bottom:0!important}.mobile-cards td{display:grid!important;grid-template-columns:96px minmax(0,1fr)!important;gap:8px!important;padding:5px 0!important;border:0!important;min-height:0!important;font-size:13px!important}.mobile-cards td:before{content:attr(data-label);font-size:9px!important;font-weight:850!important;letter-spacing:.05em!important;text-transform:uppercase;color:#718195!important}.mobile-cards td strong{font-size:13px!important}.mobile-cards .table-note{font-size:10px!important}.mobile-cards .compact-inline{display:grid!important;grid-template-columns:1fr auto!important;gap:6px!important;width:100%!important}.mobile-cards .compact-inline select{min-height:39px!important}.mobile-cards .compact-inline .btn{min-height:39px!important;padding:8px 11px!important}
 /* Clientes: prioriza nome, contato e ação */
 .section-clientes .data-board .mobile-cards td:nth-child(3),.section-clientes .data-board .mobile-cards td:nth-child(5){display:none!important}.section-clientes .data-board .mobile-cards td{grid-template-columns:86px minmax(0,1fr)!important}.section-clientes .data-board .mobile-cards td:first-child strong{font-size:15px!important}.section-clientes .data-board .link-btn{font-size:13px!important;font-weight:800!important}
 /* Agenda: cartões curtos, ação em linha */
 .section-agenda .agenda-view{display:grid!important;grid-template-columns:1fr repeat(3,auto)!important;gap:5px!important;width:100%!important;margin-top:10px!important}.section-agenda .agenda-view input{grid-column:1/-1!important}.section-agenda .ref-summary-row{grid-template-columns:repeat(3,1fr)!important}.section-agenda .agenda-table td:nth-child(3){display:none!important}.section-agenda .agenda-table td{grid-template-columns:82px minmax(0,1fr)!important}.section-agenda .agenda-table td[data-label="Ação"]{grid-template-columns:82px minmax(0,1fr)!important}.section-agenda .agenda-table tr{padding:12px!important}
 /* Financeiro mobile */
 .section-financeiro .module-command{padding:13px 14px!important}.section-financeiro .finance-pills{width:100%;margin-top:10px}.section-financeiro .finance-pills span{flex:1;min-width:0;padding:8px 10px!important}.section-financeiro>.stock-summary{grid-template-columns:1fr 1fr!important;margin-bottom:10px!important}.section-financeiro>.stock-summary>div{padding:12px!important;border-bottom:1px solid #e5e9ed!important}.section-financeiro>.stock-summary strong{font-size:18px!important}.section-financeiro .finance-tabs{display:flex!important;overflow-x:auto!important;white-space:nowrap!important;padding:5px!important;margin-bottom:12px!important}.section-financeiro .finance-tabs a{flex:0 0 auto!important;padding:9px 11px!important;font-size:12px!important}.section-financeiro .finance-ledger{padding:0!important;background:#fff!important}.section-financeiro .finance-ledger .quote-row{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;gap:8px!important;padding:13px 12px!important;margin:0!important;border:0!important;border-bottom:1px solid #e6eaed!important;border-radius:0!important}.section-financeiro .receivable-customer h3{font-size:14px!important}.section-financeiro .receivable-customer p{font-size:10px!important}.section-financeiro .finance-ledger .quote-total strong{font-size:15px!important}.section-financeiro .receivable-payment-form{grid-column:2/-1!important;display:grid!important;grid-template-columns:88px 1fr!important;gap:6px!important}.section-financeiro .receivable-payment-form .receivable-method{grid-column:2!important}.section-financeiro .receivable-payment-form .btn{grid-column:1/-1!important;min-height:40px!important}.section-financeiro>.ops-grid>aside{order:-1!important}.section-financeiro>.ops-grid>aside .mini-form{padding:14px!important}.section-financeiro>.ops-grid>aside .mini-form h3{margin-top:0!important}
 .status-dock,.finance-dock{grid-template-columns:repeat(2,1fr)!important}.status-dock div,.finance-dock div{min-height:60px!important;padding:10px 12px!important}.status-dock span,.finance-dock span{font-size:9px!important}.status-dock strong,.finance-dock strong{font-size:16px!important}
}
@media(max-width:430px){
 .mobile-hubs{overflow-x:auto!important}.mobile-hubs .hub-tile{flex:0 0 auto!important;min-width:110px!important}
 .ops-kpis,.ref-summary-row{grid-template-columns:1fr 1fr!important}.ref-summary-row .ref-stat:last-child{grid-column:1/-1!important}
 .mobile-cards td{grid-template-columns:78px minmax(0,1fr)!important}
 .section-financeiro>.stock-summary{grid-template-columns:1fr 1fr!important}
}


/* V1.7.6 — mobile vendedor: balcão rápido, compacto e sem desktop empilhado */
@media(max-width:620px){
  /* topo: menos área morta antes do trabalho */
  .demo-bar{min-height:30px!important;padding:6px 10px!important;font-size:10px!important}
  .mobile-license{min-height:58px!important;padding:8px 12px!important}
  .mobile-hubs{padding:7px 8px!important;gap:6px!important}
  .mobile-hubs .hub-tile{min-height:44px!important;min-width:112px!important;padding:8px 10px!important;border-radius:7px!important}
  .mobile-hubs .hub-icon{font-size:14px!important;margin:0 6px 0 0!important}
  .mobile-hubs .hub-tile strong{font-size:12px!important}
  .page-title-card{min-height:58px!important;padding:10px 12px!important;margin-top:10px!important;margin-bottom:9px!important;border-radius:8px!important}
  .page-title-mark{width:34px!important;height:34px!important}
  .page-title-card h1{font-size:19px!important}
  .page-title-card small{font-size:11px!important}

  /* nova venda: remover redundância e usar toda a largura */
  .section-vendas .subnav{gap:6px!important;margin-bottom:8px!important}
  .section-vendas .subnav a{min-height:38px!important;padding:8px 11px!important}
  .section-vendas .seller-quickbar{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:6px!important;padding:7px!important;margin-top:6px!important;margin-bottom:8px!important;background:#eef5f2!important;border-radius:8px!important}
  .section-vendas .seller-quickbar>a{min-width:0!important;padding:9px 5px!important;font-size:11px!important;text-align:center!important;white-space:nowrap!important}
  .section-vendas .sale-cart-head{display:none!important}
  .section-vendas .sale-client-box{width:100%!important;max-width:none!important;border-radius:8px!important;padding:11px!important;margin:0!important}
  .section-vendas .sale-client-box select{min-height:44px!important}
  .section-vendas .sale-catalog{width:100%!important;max-width:none!important;border-radius:8px!important;padding:0 10px 10px!important;margin:0!important}
  .section-vendas .sale-band{margin:10px 0 8px!important;padding-bottom:7px!important}
  .section-vendas .sale-band strong{font-size:18px!important}
  .section-vendas .sale-fields-grid{grid-template-columns:1fr 1fr!important;gap:8px!important;padding:0!important}
  .section-vendas .sale-fields-grid .full{grid-column:1/-1!important}
  .section-vendas .sale-fields-grid .field{min-width:0!important}
  .section-vendas .sale-fields-grid input,.section-vendas .sale-fields-grid select{min-height:42px!important;padding:9px 10px!important}
  .section-vendas .sale-search-row{padding:8px 0!important}
  .section-vendas .sale-search-row input{min-height:42px!important}
  .section-vendas .product-choice-grid{grid-template-columns:1fr!important;gap:7px!important;max-height:365px!important;overflow-y:auto!important;padding:4px 2px 7px!important;scrollbar-width:thin}
  .section-vendas .choice-card-photo{grid-template-columns:64px minmax(0,1fr)!important;min-height:82px!important;padding:8px!important;gap:9px!important;border-radius:7px!important}
  .section-vendas .choice-thumb{width:64px!important;height:64px!important;border-radius:7px!important}
  .section-vendas .choice-card-photo strong{font-size:12px!important}
  .section-vendas .choice-card-photo small{font-size:9.5px!important}
  .section-vendas .choice-card-photo b{font-size:14px!important;margin-top:2px!important}
  .section-vendas .reserve-line{padding:8px 2px 5px!important;margin:0!important;font-size:11px!important}
  .section-vendas .pdv-treatments{min-height:0!important;padding:7px 0!important}
  .section-vendas .sale-summary-list{width:100%!important;max-width:none!important;display:grid!important;grid-template-columns:1fr 1fr!important;column-gap:14px!important;padding:8px 12px!important;margin:0!important;border-radius:8px!important}
  .section-vendas .sale-summary-list>div{padding:8px 0!important}
  .section-vendas .sale-summary-list span{font-size:11px!important}
  .section-vendas .sale-summary-list strong{font-size:12px!important}
  .section-vendas .sale-cart-note{width:100%!important;max-width:none!important;border-radius:8px!important;padding:10px 12px!important;margin:0!important}
  .section-vendas .sale-cart-note textarea{min-height:76px!important}
  .section-vendas .seller-mobile-dock{border-radius:8px!important;left:6px!important;right:6px!important;bottom:max(6px,env(safe-area-inset-bottom))!important;padding:7px 8px 7px 11px!important}
  .section-vendas .seller-mobile-dock strong{font-size:17px!important}
  .section-vendas .seller-mobile-dock .btn{min-height:42px!important;font-size:13px!important}

  /* agenda: compromisso em linha operacional, sem card-formulário gigante */
  .section-agenda .module-command{gap:9px!important;padding:11px!important}
  .section-agenda .agenda-view{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:5px!important;width:100%!important}
  .section-agenda .agenda-view input{grid-column:1/-1!important;min-height:40px!important}
  .section-agenda .agenda-view button{min-height:38px!important;padding:7px!important}
  .section-agenda .ref-summary-row{grid-template-columns:repeat(3,1fr)!important;gap:6px!important}
  .section-agenda .ref-stat{min-height:78px!important;padding:10px!important;border-radius:7px!important}
  .section-agenda .ref-stat strong{font-size:21px!important}
  .section-agenda .ref-stat span{font-size:9px!important}
  .section-agenda .ref-stat small{font-size:9px!important}
  .section-agenda .ref-content-grid{display:block!important}
  .section-agenda .ref-content-grid>aside{margin-top:10px!important}
  .section-agenda .agenda-table tr{display:grid!important;grid-template-columns:84px minmax(0,1fr)!important;gap:2px 10px!important;padding:11px 12px!important}
  .section-agenda .agenda-table td{display:block!important;padding:2px 0!important;min-height:0!important;font-size:12px!important}
  .section-agenda .agenda-table td:before{display:none!important}
  .section-agenda .agenda-table td:nth-child(1){grid-column:1;grid-row:1 / span 2;color:#546578;font-weight:750;font-size:11px!important}
  .section-agenda .agenda-table td:nth-child(2){grid-column:2;grid-row:1;font-weight:850;font-size:13px!important}
  .section-agenda .agenda-table td:nth-child(3){display:none!important}
  .section-agenda .agenda-table td:nth-child(4){grid-column:2;grid-row:2;color:#334155}
  .section-agenda .agenda-table td:nth-child(5){grid-column:1;grid-row:3;align-self:center}
  .section-agenda .agenda-table td:nth-child(6){grid-column:2;grid-row:3}
  .section-agenda .agenda-table .compact-inline{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:5px!important}
  .section-agenda .agenda-table select,.section-agenda .agenda-table button{min-height:36px!important;font-size:11px!important}
  .section-agenda .agenda-table .status-pill{font-size:9px!important;padding:4px 6px!important}

  /* clientes: vendedor precisa localizar, chamar e abrir ficha; o resto não ocupa a tela */
  .section-clientes .module-command{padding:11px!important}
  .section-clientes .filter-deck{gap:7px!important}
  .section-clientes .data-board-head{min-height:42px!important;padding:9px 11px!important}
  .section-clientes .data-board-head span{display:none!important}
  .section-clientes .mobile-cards tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:4px 10px!important;padding:11px 12px!important}
  .section-clientes .mobile-cards td{display:block!important;padding:0!important;min-height:0!important;font-size:12px!important}
  .section-clientes .mobile-cards td:before{display:none!important}
  .section-clientes .mobile-cards td:nth-child(1){grid-column:1;grid-row:1}
  .section-clientes .mobile-cards td:nth-child(1) strong{font-size:14px!important}
  .section-clientes .mobile-cards td:nth-child(1) .table-note{font-size:9px!important;color:#748295!important;margin-top:1px!important}
  .section-clientes .mobile-cards td:nth-child(2){grid-column:1;grid-row:2;color:#334155}
  .section-clientes .mobile-cards td:nth-child(2) .table-note{display:none!important}
  .section-clientes .mobile-cards td:nth-child(3),
  .section-clientes .mobile-cards td:nth-child(5),
  .section-clientes .mobile-cards td:nth-child(6){display:none!important}
  .section-clientes .mobile-cards td:nth-child(4){grid-column:1;grid-row:3;color:#667789;font-size:10px!important}
  .section-clientes .mobile-cards td:nth-child(4):not(:empty):before{content:'Última receita: ';display:inline!important;font-size:10px!important;color:#8090a0!important;text-transform:none!important;letter-spacing:0!important}
  .section-clientes .mobile-cards td:nth-child(7){grid-column:2;grid-row:1 / span 3;align-self:center!important}
  .section-clientes .mobile-cards .link-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;padding:7px 9px!important;border:1px solid #ccd8d3!important;border-radius:6px!important;text-decoration:none!important;font-size:11px!important;white-space:nowrap!important}
  .section-clientes .status-dock{grid-template-columns:repeat(2,1fr)!important}
}

@media(max-width:390px){
  .section-vendas .seller-quickbar>a{font-size:10px!important;padding-inline:3px!important}
  .section-vendas .sale-fields-grid{grid-template-columns:1fr 1fr!important}
  .section-clientes .mobile-cards tr{grid-template-columns:1fr!important}
  .section-clientes .mobile-cards td:nth-child(7){grid-column:1!important;grid-row:auto!important;margin-top:5px!important}
  .section-clientes .mobile-cards .link-btn{width:100%!important}
}

/* V1.7.7 — mais cor, menos área morta e mobile vendedor mais vivo */

/* Financeiro desktop: leitura mais viva, sem perder seriedade */
.section-financeiro>.stock-summary>div:nth-child(1){background:linear-gradient(180deg,#f6f1fb 0%,#ffffff 100%)!important;box-shadow:inset 0 3px 0 #7b27a8}
.section-financeiro>.stock-summary>div:nth-child(2){background:linear-gradient(180deg,#f0f7ff 0%,#ffffff 100%)!important;box-shadow:inset 0 3px 0 #0d71c8}
.section-financeiro>.stock-summary>div:nth-child(3){background:linear-gradient(180deg,#f4fbf7 0%,#ffffff 100%)!important;box-shadow:inset 0 3px 0 #2f9a4b}
.section-financeiro>.stock-summary>div:nth-child(4){background:linear-gradient(180deg,#fff5ef 0%,#ffffff 100%)!important;box-shadow:inset 0 3px 0 #ef6b1f}
.section-financeiro .finance-ledger{background:linear-gradient(180deg,#f8fafc 0%,#f2f6f9 100%)!important}
.section-financeiro .finance-ledger .quote-row:hover{border-color:#cfd9e2!important;box-shadow:0 8px 18px rgba(15,23,42,.06)}

@media(max-width:620px){
  body.md-ref-ui{background:#eff3f1!important}
  .ref-main{padding-bottom:74px!important}

  /* mais presença visual no topo */
  .page-title-card{background:linear-gradient(180deg,#ffffff 0%,#f8fbfa 100%)!important;box-shadow:0 8px 20px rgba(16,42,36,.06)!important;border:1px solid #dbe5e1!important}
  .page-title-card>div{align-items:flex-start!important}
  .page-title-mark{background:linear-gradient(135deg,#e7f2fb,#edf7f3)!important;border:1px solid #d6e1eb!important}
  .section-vendas .subnav{background:#f8fbfb!important;padding:7px!important;border-radius:10px!important;border:1px solid #dce7e2!important}
  .section-vendas .subnav a{border-radius:8px!important;padding:9px 11px!important;font-weight:750!important;background:#fff!important}
  .section-vendas .subnav a.active{background:linear-gradient(135deg,#1673c8,#0d71c8)!important;color:#fff!important;box-shadow:0 8px 16px rgba(13,113,200,.18)!important}

  /* nova venda com mais cor e menos sensação de vazio */
  .section-vendas .seller-quickbar{background:linear-gradient(135deg,#edf7f3 0%,#f6fbf9 100%)!important;border:1px solid #dbe8e2!important;box-shadow:0 8px 18px rgba(13,53,45,.05)!important}
  .section-vendas .seller-quickbar>a{border-radius:999px!important;font-weight:800!important;background:#fff!important;border:1px solid #d7e4de!important;color:#0d5f5e!important;box-shadow:0 1px 0 rgba(255,255,255,.7) inset!important}
  .section-vendas .seller-quickbar>a:nth-of-type(1){background:linear-gradient(135deg,#ebf7f4,#ffffff)!important;color:#0b7c66!important}
  .section-vendas .seller-quickbar>a:nth-of-type(2){background:linear-gradient(135deg,#eef5ff,#ffffff)!important;color:#1264a3!important}
  .section-vendas .seller-quickbar>a:nth-of-type(3){background:linear-gradient(135deg,#f3f0ff,#ffffff)!important;color:#6d3cc1!important}
  .section-vendas .sale-client-box,.section-vendas .sale-summary-list,.section-vendas .sale-cart-note,.section-vendas .sale-catalog{box-shadow:0 8px 20px rgba(15,23,42,.045)!important}
  .section-vendas .sale-client-box{padding:10px 11px!important}
  .section-vendas .sale-client-box label{font-size:10px!important;color:#667789!important;letter-spacing:.12em!important}
  .section-vendas .sale-catalog{padding:0 12px 12px!important}
  .section-vendas .sale-band{display:flex!important;align-items:center!important;justify-content:space-between!important;padding:11px 12px!important;border-radius:10px!important;border:1px solid #dce7e2!important;margin:11px 0 10px!important;background:#fff!important}
  .section-vendas .sale-band strong{font-size:17px!important;line-height:1.1!important}
  .section-vendas .sale-band span{font-size:10px!important;color:#6b7d7a!important}
  .section-vendas .sale-band.blue{background:linear-gradient(135deg,#eff7ff,#ffffff)!important;border-color:#d7e6f6!important}
  .section-vendas .sale-band.blue strong{color:#165d96!important}
  .section-vendas .sale-band.green{background:linear-gradient(135deg,#eef8f2,#ffffff)!important;border-color:#d8eadf!important}
  .section-vendas .sale-band.green strong{color:#216f44!important}
  .section-vendas .sale-band.purple{background:linear-gradient(135deg,#f5f1ff,#ffffff)!important;border-color:#e1d9f8!important}
  .section-vendas .sale-band.purple strong{color:#6a38b5!important}
  .section-vendas .sale-fields-grid{gap:9px!important}
  .section-vendas .sale-search-row{padding:6px 0 8px!important}
  .section-vendas .sale-search-row input{border-width:2px!important;background:#fcfffe!important}
  .section-vendas .product-choice-grid{max-height:330px!important;padding-right:4px!important}
  .section-vendas .choice-card-photo{background:linear-gradient(180deg,#ffffff 0%,#fbfcfc 100%)!important;border:1px solid #dce6e2!important;box-shadow:0 4px 12px rgba(15,23,42,.035)!important}
  .section-vendas .choice-main{display:grid!important;align-content:center!important}
  .section-vendas .choice-card-photo small{line-height:1.35!important}
  .section-vendas .choice-card-photo b{color:#0d5345!important}
  .section-vendas .reserve-line{display:flex!important;align-items:flex-start!important;gap:8px!important;padding:10px 4px 6px!important;color:#516576!important}
  .section-vendas .sale-summary-list{grid-template-columns:1fr 1fr!important;gap:8px!important;padding:10px!important;background:linear-gradient(180deg,#fbfcfc,#f6faf8)!important}
  .section-vendas .sale-summary-list>div{padding:10px 11px!important;border:1px solid #dde7e3!important;border-radius:8px!important;background:#fff!important;min-height:66px!important}
  .section-vendas .sale-summary-list>div:nth-child(1){background:linear-gradient(180deg,#eef8f2,#ffffff)!important}
  .section-vendas .sale-summary-list>div:nth-child(2){background:linear-gradient(180deg,#eff7ff,#ffffff)!important}
  .section-vendas .sale-summary-list>div:nth-child(3){background:linear-gradient(180deg,#fff8ee,#ffffff)!important}
  .section-vendas .sale-summary-list>div:nth-child(4){background:linear-gradient(180deg,#f6f2ff,#ffffff)!important}
  .section-vendas .sale-summary-list span{font-size:10px!important;text-transform:uppercase!important;letter-spacing:.06em!important;color:#70808f!important}
  .section-vendas .sale-summary-list strong{font-size:12px!important;line-height:1.35!important;color:#142436!important}
  .section-vendas .sale-cart-note{margin-top:8px!important;padding:10px 11px!important;background:linear-gradient(180deg,#ffffff,#fafcfc)!important}
  .section-vendas .sale-cart-note textarea{min-height:84px!important;background:#fff!important}
  .section-vendas .seller-mobile-dock{background:linear-gradient(135deg,#ffffff,#f6faf8)!important;border:1px solid #d9e5df!important;box-shadow:0 -6px 18px rgba(13,24,34,.08)!important}
  .section-vendas .seller-mobile-dock small{font-size:10px!important;color:#70808d!important;text-transform:uppercase!important;letter-spacing:.08em!important}
  .section-vendas .seller-mobile-dock strong{color:#113049!important}

  /* painel mobile mais vivo */
  .ops-hero{padding:8px 0 12px!important}
  .ops-actions a{box-shadow:0 8px 18px rgba(15,23,42,.05)!important}
  .ops-actions .ops-primary{background:linear-gradient(135deg,#0e3c40,#123e3a)!important}
  .ops-kpis{gap:8px!important;border:0!important;background:transparent!important}
  .ops-kpis>a{border:1px solid #d9e4df!important;border-radius:12px!important;min-height:86px!important;box-shadow:0 8px 18px rgba(15,23,42,.045)!important}
  .ops-kpis>a:nth-child(1){background:linear-gradient(135deg,#ffffff,#eef8f3)!important}
  .ops-kpis>a:nth-child(2){background:linear-gradient(135deg,#ffffff,#eff7ff)!important}
  .ops-kpis>a:nth-child(3){background:linear-gradient(135deg,#ffffff,#fff7eb)!important}
  .ops-kpis>a:nth-child(4){background:linear-gradient(135deg,#ffffff,#f5f1ff)!important}
  .ops-kpis>a strong{color:#102a41!important}
  .ops-kpis>a:nth-child(1) small{color:#20734a!important}.ops-kpis>a:nth-child(2) small{color:#1566ab!important}.ops-kpis>a:nth-child(3) small{color:#dc7c12!important}.ops-kpis>a:nth-child(4) small{color:#7a31b2!important}
  .ops-section-head{padding-bottom:0!important}
  .ops-modules,.ops-attention,.ops-navigation{box-shadow:0 8px 18px rgba(15,23,42,.045)!important}
  .ops-module{background:#fff!important}
  .ops-module.sales{background:linear-gradient(90deg,#f1faf4 0,#ffffff 24%)!important}
  .ops-module.production{background:linear-gradient(90deg,#fff8ef 0,#ffffff 24%)!important}
  .ops-module.stock{background:linear-gradient(90deg,#eef8f2 0,#ffffff 24%)!important}
  .ops-module.finance{background:linear-gradient(90deg,#f5f1ff 0,#ffffff 24%)!important}
  .ops-module em{font-size:20px!important;font-weight:900!important}
  .attention-list{padding-top:4px!important}
  .attention-list>a{padding:11px 0!important}
  .attention-list strong{width:48px!important;height:48px!important;display:grid!important;place-items:center!important;border-radius:12px!important;font-size:22px!important;background:#edf7f3!important;color:#0f6e61!important}
  .attention-list>a:nth-child(2) strong{background:#eef6ff!important;color:#155fa0!important}
  .attention-list>a:nth-child(3) strong{background:#fff6eb!important;color:#d27411!important}
  .attention-list>a:nth-child(4) strong{background:#f5f1ff!important;color:#7932b1!important}
  .ops-area-grid>a{padding:14px 12px!important}
  .ops-area-grid>a:nth-child(1){background:linear-gradient(180deg,#f3fbf6,#fff)!important}
  .ops-area-grid>a:nth-child(2){background:linear-gradient(180deg,#f1f7ff,#fff)!important}
  .ops-area-grid>a:nth-child(3){background:linear-gradient(180deg,#f8fbff,#fff)!important}
  .ops-area-grid>a:nth-child(4){background:linear-gradient(180deg,#fff7ef,#fff)!important}

  /* agenda mais compacta e melhor aproveitada */
  .section-agenda .ref-summary-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
  .section-agenda .ref-stat{min-height:74px!important;padding:9px 10px!important;box-shadow:0 8px 18px rgba(15,23,42,.04)!important}
  .section-agenda .agenda-table tr{padding:10px 11px!important}
  .section-agenda .agenda-table td:nth-child(2){font-size:12.5px!important}

  /* clientes mais densos */
  .section-clientes .mobile-cards tr{padding:10px 11px!important;background:linear-gradient(180deg,#ffffff,#fbfcfc)!important}
  .section-clientes .mobile-cards td:nth-child(1) strong{font-size:13px!important}
  .section-clientes .mobile-cards .link-btn{background:#f5fbf8!important;color:#0c7562!important;font-weight:800!important}
}

@media(max-width:520px){
  .section-agenda .ref-summary-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .section-agenda .ref-stat strong{font-size:20px!important}
}

@media(max-width:430px){
  .ops-kpis{grid-template-columns:1fr 1fr!important}.ops-kpis>a{min-height:82px!important;padding:12px!important}
  .section-vendas .sale-summary-list{grid-template-columns:1fr 1fr!important}
}

/* V1.7.8 — mais vida no vendedor, financeiro e agenda mobile 3x */
.section-vendas .seller-quickbar{
  display:grid!important;
  grid-template-columns:minmax(0,1.25fr) repeat(3,auto)!important;
  align-items:center!important;
  gap:10px!important;
  padding:12px 14px!important;
  border-radius:16px!important;
  background:linear-gradient(135deg,#eff8f4 0%,#f8fbfd 46%,#f2f7ff 100%)!important;
  border:1px solid #d9e7e0!important;
  box-shadow:0 12px 28px rgba(15,23,42,.045)!important;
}
.section-vendas .seller-quickbar>span{display:block!important;min-width:0!important}
.section-vendas .seller-quickbar>span b{display:block;font-size:15px;color:#123e3a;line-height:1.15}
.section-vendas .seller-quickbar>span small{display:block;margin-top:5px;font-size:11px;color:#60727e;line-height:1.45}
.section-vendas .seller-quickbar>a{
  min-height:44px!important;
  padding:0 16px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:999px!important;
  font-size:12px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
.section-vendas .sale-mode-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:12px auto 10px;
  width:min(var(--md-content),calc(100% - 36px));
}
.section-vendas .sale-mode-card{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:16px 18px;
  border-radius:18px;
  text-decoration:none;
  color:#113345;
  border:1px solid #dce7e2;
  background:linear-gradient(180deg,#ffffff 0%,#f5fbf8 100%);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
}
.section-vendas .sale-mode-card small{font-size:10px;font-weight:900;letter-spacing:.14em;color:#0c7b66}
.section-vendas .sale-mode-card strong{font-size:20px;line-height:1.05;color:#13293c}
.section-vendas .sale-mode-card span{font-size:12px;line-height:1.5;color:#647483}
.section-vendas .sale-mode-card.accent-blue{background:linear-gradient(180deg,#ffffff 0%,#f2f8ff 100%)}
.section-vendas .sale-mode-card.accent-blue small{color:#1566ab}
.section-vendas .sale-mode-card.accent-amber{background:linear-gradient(180deg,#fffdfa 0%,#fff4dc 100%)}
.section-vendas .sale-mode-card.accent-amber small{color:#c77410}
.section-vendas .sale-mode-card.active{
  border-color:#123e3a;
  box-shadow:0 14px 28px rgba(18,62,58,.12);
  transform:translateY(-1px);
}
.section-vendas .sale-mode-note{
  width:min(var(--md-content),calc(100% - 36px));
  margin:0 auto 12px;
  padding:11px 14px;
  border-radius:14px;
  background:linear-gradient(135deg,#123e3a,#0f5752);
  color:#e7f5f1;
  font-size:12px;
  line-height:1.55;
  box-shadow:0 10px 24px rgba(18,62,58,.12);
}
.section-vendas .sale-mode-note strong{color:#fff}
.section-vendas #sale-form{margin-top:0!important}
.section-vendas .sale-station{grid-template-columns:minmax(0,1fr) 334px!important;gap:16px!important}
.section-vendas .sale-cart,
.section-vendas .sale-catalog{
  border-radius:18px!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid #dbe5e0!important;
  box-shadow:0 14px 28px rgba(15,23,42,.05)!important;
}
.section-vendas .sale-cart-head{
  background:linear-gradient(135deg,#123e3a,#0d5f5e)!important;
  color:#fff!important;
  padding:18px 18px!important;
}
.section-vendas .sale-cart-head span{color:#cfe8df!important}
.section-vendas .sale-client-box,.section-vendas .sale-summary-list,.section-vendas .sale-cart-note{margin:12px!important}
.section-vendas .sale-mixed-tip{
  margin:0 12px 12px;
  padding:12px 13px;
  border-radius:12px;
  background:linear-gradient(180deg,#fff7ea,#ffffff);
  border:1px solid #f0d8a7;
}
.section-vendas .sale-mixed-tip strong,.section-vendas .sale-mixed-tip span{display:block}
.section-vendas .sale-mixed-tip strong{font-size:12px;color:#8a5810;margin-bottom:4px}
.section-vendas .sale-mixed-tip span{font-size:11px;color:#6a5d45;line-height:1.45}
.section-vendas .sale-catalog{padding:14px 16px 16px!important}
.section-vendas .sale-band{border:1px solid #dbe6e1!important;border-radius:14px!important;padding:14px 15px!important}
.section-vendas .sale-search-row input{background:#fbfffd!important}
.section-vendas .product-choice-grid{padding-right:6px!important}
.section-vendas .choice-card-photo{border-radius:12px!important}
.section-financeiro>.stock-summary{
  gap:12px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.section-financeiro>.stock-summary>div{
  border:1px solid #dfe7e8!important;
  border-radius:16px!important;
  box-shadow:0 12px 26px rgba(15,23,42,.045)!important;
  overflow:hidden!important;
}
.section-financeiro .finance-pills span{
  border-radius:999px!important;
  border:1px solid #dcdfe7!important;
  background:#fff!important;
  box-shadow:0 6px 18px rgba(15,23,42,.04)!important;
}
.section-financeiro .finance-ledger{
  padding:10px!important;
  background:linear-gradient(180deg,#fafbfd,#ffffff)!important;
}
.section-financeiro .finance-ledger .quote-row{
  margin:0 0 10px!important;
  padding:15px 14px!important;
  border-radius:14px!important;
  border:1px solid #e4eaf0!important;
  box-shadow:0 8px 18px rgba(15,23,42,.035)!important;
}
.section-financeiro .finance-ledger .quote-row:last-child{margin-bottom:0!important}
@media(max-width:900px){
  .section-vendas .sale-mode-strip,.section-vendas .sale-mode-note{width:calc(100% - 18px)!important}
}
@media(max-width:760px){
  .section-vendas .sale-mode-strip{grid-template-columns:1fr!important;gap:8px!important}
  .section-vendas .sale-mode-card{padding:14px 15px!important;border-radius:14px!important}
  .section-vendas .sale-mode-card strong{font-size:17px!important}
  .section-vendas .sale-mode-card span{font-size:11px!important}
  .section-vendas .sale-mode-note{font-size:11px!important;padding:10px 12px!important;border-radius:12px!important}
}
@media(max-width:560px){
  .section-agenda .ref-summary-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  .section-agenda .ref-summary-row .ref-stat:last-child{grid-column:auto!important}
  .section-agenda .ref-stat{min-height:80px!important;padding:10px 8px!important}
  .section-agenda .ref-stat strong{font-size:19px!important}
  .section-agenda .ref-stat span,.section-agenda .ref-stat small{font-size:8.5px!important;line-height:1.25!important}
}

/* V1.7.8 — remove cabeçalho redundante e novo CRM */
.md-screen-title{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.ref-main>.module-command,.ref-main>.crm-command{margin-top:16px!important}
.crm-command{width:min(var(--md-content),calc(100% - 36px));margin-left:auto!important;margin-right:auto!important;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:18px 20px;border:1px solid #dce5e1;background:linear-gradient(135deg,#ffffff,#f4faf7);box-shadow:0 10px 24px rgba(15,23,42,.045);border-radius:14px}
.crm-command small{font-size:10px;font-weight:900;letter-spacing:.14em;color:#0b7b68}.crm-command h2{font-size:24px;margin:3px 0 4px;color:#122b2b}.crm-command p{margin:0;color:#6a7a76;font-size:13px}
.crm-summary-modern{width:min(var(--md-content),calc(100% - 36px));margin:12px auto!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;background:transparent!important;border:0!important;box-shadow:none!important}
.crm-summary-modern>a{display:block;text-decoration:none;padding:15px 16px;border-radius:14px;border:1px solid #dce6e2;background:#fff;box-shadow:0 8px 18px rgba(15,23,42,.04);min-height:94px}
.crm-summary-modern>a:nth-child(1){background:linear-gradient(180deg,#f1f7ff,#fff)}.crm-summary-modern>a:nth-child(2){background:linear-gradient(180deg,#eef9f3,#fff)}.crm-summary-modern>a:nth-child(3){background:linear-gradient(180deg,#fff7e9,#fff)}.crm-summary-modern>a:nth-child(4){background:linear-gradient(180deg,#f7f1ff,#fff)}
.crm-summary-modern span,.crm-summary-modern strong,.crm-summary-modern small{display:block}.crm-summary-modern span{font-size:9px;font-weight:900;letter-spacing:.11em;color:#6b7b85}.crm-summary-modern strong{font:500 27px Georgia,serif;color:#163147;margin:7px 0 2px}.crm-summary-modern small{font-size:10px;color:#7a888d}
.crm-workspace{width:min(var(--md-content),calc(100% - 36px));margin:0 auto 24px;display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:14px;align-items:start}
.crm-priority-column{display:grid;gap:14px}.crm-block,.crm-mini-block,.crm-contact-card,.crm-history-card{background:#fff;border:1px solid #dce5e1;box-shadow:0 10px 22px rgba(15,23,42,.04);border-radius:14px;overflow:hidden}.crm-block>header,.crm-contact-card>header,.crm-history-card>header{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:15px 17px;border-bottom:1px solid #e8eeeb}.crm-block>header small,.crm-contact-card>header small,.crm-history-card>header small{font-size:9px;font-weight:900;letter-spacing:.13em;color:#0a7b68}.crm-block>header h3,.crm-contact-card>header h3,.crm-history-card>header h3{margin:3px 0 0;font-size:17px;color:#142d2c}.crm-block>header>span{font-size:10px;color:#7b8885}.crm-contact-card>header{display:block}.crm-contact-card>header p{margin:5px 0 0;font-size:11px;color:#778581;line-height:1.45}.crm-list{padding:0 16px}.crm-row{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid #edf1ef}.crm-row:last-child{border-bottom:0}.crm-row-code{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;font-weight:900;background:#eef5ff;color:#1766a7}.crm-row-post .crm-row-code{background:#eef8f2;color:#267249}.crm-row-main strong,.crm-row-main span,.crm-row-main small{display:block}.crm-row-main strong{font-size:13px;color:#142a31}.crm-row-main span{font-size:11px;color:#52636b;margin-top:3px}.crm-row-main small{font-size:10px;color:#899590;margin-top:3px}.crm-action,.crm-done{border:0;background:none;color:#0b7564;font-weight:850;font-size:11px;cursor:pointer;padding:8px}.crm-done{border:1px solid #d7e2dd;background:#fff;border-radius:8px;color:#33453f}.crm-row-actions{display:flex;align-items:center;gap:4px}.crm-row-actions form{margin:0}.crm-empty{padding:24px 18px;text-align:center}.crm-empty strong,.crm-empty span{display:block}.crm-empty strong{font-size:13px;color:#324641}.crm-empty span{font-size:11px;color:#8a9692;margin-top:4px}.crm-empty.compact{padding:20px 16px}
.crm-secondary-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.crm-mini-block{padding:15px}.crm-mini-block header{display:grid;grid-template-columns:1fr auto;align-items:end;margin-bottom:8px}.crm-mini-block header small{grid-column:1;font-size:9px;font-weight:900;color:#74827d;letter-spacing:.12em}.crm-mini-block header h3{grid-column:1;margin:3px 0 0;font-size:15px}.crm-mini-block header b{grid-column:2;grid-row:1/3;font:500 28px Georgia,serif;color:#17334b}.crm-mini-row{width:100%;display:block;text-align:left;border:0;border-top:1px solid #edf1ef;padding:10px 0;background:transparent;cursor:pointer}.crm-mini-row span,.crm-mini-row small{display:block}.crm-mini-row span{font-size:12px;font-weight:800;color:#17302f}.crm-mini-row small{font-size:10px;color:#84908c;margin-top:2px}.crm-mini-block>p{font-size:11px;color:#89948f;margin:12px 0 0}.crm-side-column{display:grid;gap:12px;position:sticky;top:80px}.crm-contact-card form{padding:14px;display:grid;gap:10px}.crm-contact-card.has-selection{box-shadow:0 0 0 2px #72b9a8,0 12px 28px rgba(18,62,58,.08)}.crm-history-list{padding:0 14px}.crm-history-list article{display:grid;grid-template-columns:1fr auto;gap:10px;padding:12px 0;border-bottom:1px solid #edf1ef}.crm-history-list article:last-child{border-bottom:0}.crm-history-list strong,.crm-history-list span{display:block}.crm-history-list strong{font-size:12px}.crm-history-list span{font-size:10px;color:#71807b;margin-top:3px;line-height:1.4}.crm-history-list>article>small{font-size:9px;color:#8a9591;white-space:nowrap}
@media(max-width:1000px){.crm-workspace{grid-template-columns:1fr}.crm-side-column{position:static;grid-template-columns:1fr 1fr}.crm-summary-modern{grid-template-columns:1fr 1fr!important}}
@media(max-width:700px){.ref-main>.module-command,.ref-main>.crm-command{margin-top:10px!important}.crm-command,.crm-summary-modern,.crm-workspace{width:calc(100% - 18px)!important}.crm-command{padding:14px;display:grid;grid-template-columns:1fr auto}.crm-command h2{font-size:20px}.crm-command p{font-size:11px}.crm-command .btn{font-size:11px;padding:9px 10px}.crm-summary-modern{grid-template-columns:1fr 1fr!important;gap:7px!important}.crm-summary-modern>a{min-height:82px;padding:12px;border-radius:11px}.crm-summary-modern strong{font-size:23px}.crm-workspace{gap:10px}.crm-block,.crm-mini-block,.crm-contact-card,.crm-history-card{border-radius:10px}.crm-block>header,.crm-contact-card>header,.crm-history-card>header{padding:12px 13px}.crm-list{padding:0 12px}.crm-row{grid-template-columns:42px minmax(0,1fr);gap:8px;padding:11px 0}.crm-row-code{width:34px;height:34px;border-radius:9px;font-size:11px}.crm-row-main strong{font-size:12px}.crm-row-main span{font-size:10px}.crm-row-main small{font-size:9px}.crm-row>.crm-action,.crm-row>.crm-row-actions{grid-column:2;justify-self:start;padding:0 0 3px}.crm-row-actions{gap:8px}.crm-secondary-grid{grid-template-columns:1fr 1fr;gap:8px}.crm-mini-block{padding:12px}.crm-side-column{grid-template-columns:1fr}.crm-history-list{padding:0 12px}}
@media(max-width:430px){.crm-command{grid-template-columns:1fr}.crm-command .btn{justify-self:start}.crm-secondary-grid{grid-template-columns:1fr}.crm-summary-modern{grid-template-columns:1fr 1fr!important}}

/* V1.7.9 — mais vida nas vendas, agenda mobile 3x e CRM mais limpo */
.section-vendas .seller-quickbar{
  display:grid!important;
  grid-template-columns:minmax(260px,1.2fr) repeat(3,auto)!important;
  align-items:center!important;
  gap:10px!important;
  margin-top:10px!important;
  padding:12px 14px!important;
  border:1px solid #d8e7e1!important;
  border-radius:16px!important;
  background:
    radial-gradient(circle at 8% 20%,rgba(244,203,93,.18),transparent 26%),
    linear-gradient(135deg,#ecf8f3 0%,#f7fbfa 52%,#eff6ff 100%)!important;
  box-shadow:0 12px 28px rgba(13,53,45,.06)!important;
}
.section-vendas .seller-quickbar>span b{font-size:16px!important;color:#133a36!important}
.section-vendas .seller-quickbar>span small{font-size:11px!important;color:#647782!important}
.section-vendas .seller-quickbar>a{
  min-height:44px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 14px!important;
  border-radius:999px!important;
  border:1px solid #d6e3de!important;
  box-shadow:0 6px 14px rgba(18,62,58,.06)!important;
}
.section-vendas .seller-quickbar>a:nth-of-type(1){background:linear-gradient(135deg,#ecfbf7,#ffffff)!important;color:#0c7c67!important}
.section-vendas .seller-quickbar>a:nth-of-type(2){background:linear-gradient(135deg,#eef5ff,#ffffff)!important;color:#175e9d!important}
.section-vendas .seller-quickbar>a:nth-of-type(3){background:linear-gradient(135deg,#f7f2ff,#ffffff)!important;color:#6a39b2!important}
.section-vendas .sale-mode-strip{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  margin-top:12px!important;
  margin-bottom:10px!important;
}
.section-vendas .sale-mode-card{
  position:relative;
  overflow:hidden;
  min-height:138px!important;
  padding:18px 18px 16px!important;
  border:1px solid #dce7e2!important;
  border-radius:16px!important;
  box-shadow:0 10px 22px rgba(15,23,42,.04)!important;
  background:linear-gradient(180deg,#ffffff 0%,#f1faf5 100%)!important;
}
.section-vendas .sale-mode-card::after{content:"";position:absolute;inset:auto -16px -18px auto;width:96px;height:96px;border-radius:50%;background:rgba(12,123,102,.08)}
.section-vendas .sale-mode-card small{font-size:10px!important;letter-spacing:.14em!important}
.section-vendas .sale-mode-card strong{font-size:21px!important}
.section-vendas .sale-mode-card span{font-size:12px!important;max-width:32ch!important}
.section-vendas .sale-mode-card.accent-blue{background:linear-gradient(180deg,#ffffff 0%,#eef6ff 100%)!important}
.section-vendas .sale-mode-card.accent-amber{background:linear-gradient(180deg,#fffdf8 0%,#fff2d5 100%)!important}
.section-vendas .sale-mode-card.active{border-color:#0d7d68!important;background:linear-gradient(135deg,#133f3a 0%,#0f5f59 100%)!important;box-shadow:0 14px 28px rgba(18,62,58,.14)!important}
.section-vendas .sale-mode-card.active::after{background:rgba(255,255,255,.08)}
.section-vendas .sale-mode-card.active small{color:#8de2c6!important}
.section-vendas .sale-mode-card.active strong,.section-vendas .sale-mode-card.active span{color:#fff!important}
.section-vendas .sale-mode-note{border-radius:14px!important;border:1px solid #d8e6e1!important;background:linear-gradient(135deg,#143c38 0%,#0f5a55 100%)!important;color:#deece6!important;box-shadow:0 10px 22px rgba(18,62,58,.10)!important}
.section-vendas .sale-mode-note strong{color:#fff!important}
.section-vendas .sale-station{grid-template-columns:minmax(0,1fr) 344px!important;gap:18px!important}
.section-vendas .sale-catalog{border-radius:18px!important;border-color:#dce7e2!important;box-shadow:0 14px 34px rgba(15,23,42,.04)!important;background:linear-gradient(180deg,#ffffff 0%,#fdfefe 100%)!important}
.section-vendas .sale-cart{border-radius:18px!important;border-color:#dce7e2!important;box-shadow:0 16px 32px rgba(15,23,42,.05)!important}
.section-vendas .sale-cart-head{background:linear-gradient(135deg,#133f3a 0%,#0f5f59 100%)!important}
.section-vendas .sale-cart-head strong{color:#fff!important}
.section-vendas .sale-client-box,.section-vendas .sale-summary-list,.section-vendas .sale-cart-note{background:#fff}
.section-vendas .sale-summary-list>div:nth-child(3),.section-vendas .sale-summary-list>div:nth-child(4){background:#fbfcfb}
.section-vendas .choice-card{background:linear-gradient(180deg,#ffffff 0%,#fafcfb 100%)!important}
.section-vendas .choice-card b{color:#124d45!important}
.section-vendas .choice-card:has(input:checked){background:linear-gradient(180deg,#edf8f3 0%,#f9fffc 100%)!important}
.section-vendas .reserve-line{padding-top:12px!important}
.section-vendas .seller-mobile-dock{box-shadow:0 -10px 24px rgba(15,23,42,.08)!important;border-top:1px solid #d9e5e0!important}
.section-vendas .seller-mobile-dock .btn{background:linear-gradient(135deg,#1376d3,#1d8ef3)!important}

.crm-command{background:linear-gradient(135deg,#ffffff 0%,#f4faf7 58%,#eef6ff 100%)!important}
.crm-summary-modern>a{box-shadow:0 12px 24px rgba(15,23,42,.045)!important}
.crm-summary-modern>a:nth-child(1){background:linear-gradient(180deg,#edf6ff,#ffffff)!important}
.crm-summary-modern>a:nth-child(2){background:linear-gradient(180deg,#eef9f3,#ffffff)!important}
.crm-summary-modern>a:nth-child(3){background:linear-gradient(180deg,#fff8eb,#ffffff)!important}
.crm-summary-modern>a:nth-child(4){background:linear-gradient(180deg,#f6f1ff,#ffffff)!important}
.crm-workspace{grid-template-columns:minmax(0,1fr) 330px!important}
.crm-block,.crm-mini-block,.crm-contact-card,.crm-history-card{box-shadow:0 12px 26px rgba(15,23,42,.05)!important}
.crm-contact-card{background:linear-gradient(180deg,#ffffff 0%,#fbfcfb 100%)!important}
.crm-contact-card header{background:linear-gradient(135deg,#f6fbf8,#ffffff)!important}
.crm-contact-card .btn{background:linear-gradient(135deg,#1377d4,#1a8ef0)!important}
.crm-history-card:has(.crm-empty.compact){display:none!important}
.crm-history-card{max-height:420px;overflow:auto}

.section-agenda .ref-summary-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
.section-agenda .ref-summary-row .ref-stat{min-height:88px!important;border-radius:12px!important;box-shadow:0 8px 18px rgba(15,23,42,.05)!important}
.section-agenda .ref-summary-row .ref-stat:last-child{grid-column:auto!important}

@media(max-width:900px){
  .section-vendas .seller-quickbar{grid-template-columns:1fr repeat(3,minmax(0,1fr))!important}
  .section-vendas .sale-mode-strip{grid-template-columns:1fr!important}
  .section-vendas .sale-mode-card{min-height:0!important}
}
@media(max-width:700px){
  .section-agenda .ref-summary-row{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  .section-agenda .ref-summary-row .ref-stat{min-height:74px!important;padding:10px 11px!important}
  .section-agenda .ref-summary-row .ref-stat strong{font-size:22px!important}
  .section-agenda .ref-summary-row .ref-stat span{font-size:9px!important}
  .section-agenda .ref-summary-row .ref-stat small{font-size:9px!important;line-height:1.2!important}
  .section-vendas .seller-quickbar{grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:8px!important}
  .section-vendas .seller-quickbar>span{display:none!important}
  .section-vendas .seller-quickbar>a{min-height:42px!important;padding:0 6px!important;font-size:11px!important}
  .section-vendas .sale-mode-strip{gap:8px!important}
  .section-vendas .sale-mode-note{font-size:11px!important;line-height:1.45!important}
}
@media(max-width:430px){
  .section-agenda .ref-summary-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .section-agenda .ref-summary-row .ref-stat{padding:9px 10px!important}
  .section-agenda .ref-summary-row .ref-stat strong{font-size:20px!important}
  .section-vendas .seller-quickbar>a{font-size:10px!important}
}

/* V1.8.0 — venda rápida com categorias visuais */
.category-palette{display:grid;gap:8px;margin-bottom:8px}
.category-palette>span{font-size:11px;font-weight:800;letter-spacing:.12em;color:#5c6f82;text-transform:uppercase}
.category-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.category-chip{appearance:none;border:1px solid #d9e3ea;background:linear-gradient(180deg,#fff,#f8fbfd);border-radius:12px;padding:10px 12px;display:flex;align-items:center;gap:10px;justify-content:flex-start;cursor:pointer;box-shadow:0 6px 14px rgba(15,23,42,.04);transition:.18s ease}
.category-chip b{width:32px;height:32px;flex:0 0 32px;border-radius:9px;display:grid;place-items:center;background:#edf5ff;color:#1768c4;font-size:16px}
.category-chip small{display:block;font-size:11px;font-weight:800;line-height:1.2;color:#17324d;text-align:left}
.category-chip:hover{transform:translateY(-1px);border-color:#bcd1e3}
.category-chip.active{border-color:#0f7d69;background:linear-gradient(135deg,#e8f8f1,#ffffff);box-shadow:0 8px 18px rgba(16,107,90,.12)}
.category-chip.active b{background:#0f5f59;color:#fff}
.category-select-helper{display:none}
.retail-sale-box{background:linear-gradient(180deg,#ffffff 0%,#f7fbfb 100%);box-shadow:0 14px 30px rgba(15,23,42,.05)}
.retail-sale-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:10px}
.retail-sale-head h3{margin-bottom:4px}
.retail-sale-head p{margin:0;color:#627485;line-height:1.5}
.retail-sale-badge{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;background:linear-gradient(135deg,#143d39,#0f5a55);color:#fff;font-size:11px;font-weight:800;white-space:nowrap}
.retail-product-form{margin-top:14px;background:linear-gradient(180deg,#fff 0%,#fbfcfd 100%)}
.retail-product-form .mini-form-head{margin-bottom:12px}
.retail-product-form .mini-form-head h3{margin-bottom:3px}
.retail-product-form .mini-form-head small{color:#708092}
.section-produtos .ops-grid aside{display:grid;gap:14px}
.section-produtos .catalog-grid .frame-card{box-shadow:0 12px 22px rgba(15,23,42,.04)}
@media(min-width:921px){
 .category-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
 .category-chips{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .category-chip{padding:9px 10px;border-radius:11px;gap:8px}
 .category-chip b{width:28px;height:28px;flex-basis:28px;font-size:14px}
 .category-chip small{font-size:10px}
 .retail-sale-head{display:block}
 .retail-sale-badge{margin-top:8px}
}
.billing-notice{width:calc(100% - 36px);max-width:1680px;margin:10px auto 0;padding:12px 14px;border:1px solid #f0d28e;background:linear-gradient(135deg,#fff8e8,#fffdf8);display:flex;align-items:center;justify-content:space-between;gap:14px;border-radius:10px;box-shadow:0 8px 20px rgba(90,62,13,.05)}.billing-notice strong,.billing-notice span{display:block}.billing-notice strong{font-size:13px;color:#7b5010}.billing-notice span{font-size:11px;color:#826f4d;margin-top:2px}.billing-notice a{background:#123e3a;color:#fff;text-decoration:none;font-size:11px;font-weight:850;padding:9px 13px;border-radius:8px;white-space:nowrap}.billing-notice.overdue{border-color:#efb3aa;background:linear-gradient(135deg,#fff0ed,#fff8f6)}.billing-notice.overdue strong{color:#a73827}@media(max-width:700px){.billing-notice{width:calc(100% - 18px);align-items:stretch;flex-direction:column}.billing-notice a{text-align:center}}

/* V2.0 — login do cliente mais comercial e sem informações técnicas */
.login-operational{background:linear-gradient(135deg,var(--login-rail) 0%,var(--login-rail) 36%,var(--login-paper) 36%,color-mix(in srgb,var(--login-paper) 72%,#fff) 100%)!important}
.login-operational .login-shell{grid-template-columns:minmax(300px,36vw) minmax(0,1fr)!important;min-height:100vh!important}
.login-operational .login-rail{position:relative;overflow:hidden;background:linear-gradient(165deg,var(--login-rail) 0%,color-mix(in srgb,var(--login-rail) 82%,var(--login-accent)) 100%)!important;padding:26px!important}
.login-operational .login-rail:before{content:"SEU SISTEMA. SUA ÓTICA."!important;display:block!important;order:2;margin:auto 0 0!important;color:color-mix(in srgb,var(--login-accent) 58%,#fff)!important;font-size:10px!important;letter-spacing:.14em!important;font-weight:900!important}
.login-operational .login-rail:after{content:"Atendimento, venda, produção e gestão conectados em um só lugar."!important;display:block!important;order:3;margin:10px 0 auto!important;white-space:normal!important;max-width:360px;color:#fff!important;font:500 34px/1.05 Georgia,serif!important;letter-spacing:-.02em!important}
.login-operational .login-rail-brand{padding:0!important;margin:0!important}.login-operational .login-rail-logo{background:#fff!important;color:var(--login-rail)!important;width:46px!important;height:46px!important}.login-operational .login-rail-brand strong{font-size:17px!important}.login-operational .login-rail-brand small{font-size:10px!important;color:color-mix(in srgb,var(--login-rail) 18%,#fff)!important}
.login-operational .login-main{background:transparent!important}.login-operational .login-header{height:72px!important;background:rgba(255,255,255,.88)!important;box-shadow:none!important;border-bottom:1px solid #dfe7e3!important}.login-operational .login-header>span{display:none!important}.login-operational .login-center{padding:40px!important;display:grid!important;place-items:center!important}.login-operational .login-center>div{width:min(500px,100%)!important}.login-operational .login-welcome{text-align:left!important;margin-bottom:20px!important}.login-operational .login-kicker{color:var(--login-accent)!important}.login-operational .login-welcome h1{font:500 46px/1 Georgia,serif!important;color:var(--login-rail)!important;letter-spacing:-.03em!important}.login-operational .login-welcome p{max-width:460px!important;margin:0!important;font-size:13px!important}.login-operational .login-card{border:1px solid color-mix(in srgb,var(--login-rail) 15%,#fff)!important;border-top:0!important;border-radius:18px!important;padding:26px!important;box-shadow:0 22px 60px color-mix(in srgb,var(--login-rail) 14%,transparent)!important}.login-operational .login-card .field label{font-size:11px!important;color:color-mix(in srgb,var(--login-rail) 70%,#667085)!important}.login-operational .login-card .field input{min-height:48px!important;border-radius:10px!important;background:color-mix(in srgb,var(--login-paper) 30%,#fff)!important}.login-operational .login-card .btn{min-height:48px!important;border-radius:10px!important;background:linear-gradient(135deg,var(--login-rail),var(--login-accent))!important}.login-operational .login-support{font-size:9px!important}.login-operational .login-footer{background:transparent!important;border:0!important;padding:12px 22px!important}.login-operational .login-back-public{font-size:11px!important;font-weight:800!important;color:var(--login-accent)!important;text-decoration:none!important}
@media(max-width:760px){.login-operational{background:var(--login-paper)!important}.login-operational .login-shell{grid-template-columns:1fr!important}.login-operational .login-rail{min-height:106px!important;padding:14px!important}.login-operational .login-rail:before,.login-operational .login-rail:after{display:none!important}.login-operational .login-header{height:58px!important}.login-operational .login-center{padding:24px 14px!important}.login-operational .login-welcome h1{font-size:34px!important}.login-operational .login-card{padding:20px!important;border-radius:14px!important}}


/* V2.0.4 — dashboard visual vivo, inspirado no painel de referência */
body.section-dashboard .ref-main{background:linear-gradient(180deg,#f3f7fb 0%,#eef3f7 100%)}
body.section-dashboard .ref-topbar{height:64px;padding:7px 24px;background:rgba(255,255,255,.96);box-shadow:0 2px 12px rgba(15,45,75,.08)}
body.section-dashboard .ref-search{border-color:#d7e0ea;border-radius:9px;box-shadow:0 2px 8px rgba(15,45,75,.04)}
body.section-dashboard .ref-search input{width:330px;color:#23334a}
body.section-dashboard .ref-search button{background:#0d71c8}
body.section-dashboard .top-exit{background:#e13b3b}
body.section-dashboard .md-screen-title{display:none}
body.section-dashboard .ops-hero{padding-top:28px;padding-bottom:18px}
body.section-dashboard .ops-welcome small{color:#58708e;font-weight:950;letter-spacing:.15em}
body.section-dashboard .ops-welcome h2{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-weight:850;letter-spacing:-.035em;color:#122449}
body.section-dashboard .ops-welcome p{color:#627692}
body.section-dashboard .ops-actions>a{border-color:#d5e0eb;background:#fff;border-radius:9px;box-shadow:0 4px 12px rgba(15,45,75,.04);color:#182b49}
body.section-dashboard .ops-actions .ops-primary{background:linear-gradient(135deg,#087a69,#12665d);border-color:#12665d;box-shadow:0 8px 18px rgba(13,105,92,.18)}
body.section-dashboard .ops-kpis{gap:12px;border:0;background:transparent;border-radius:0;overflow:visible}
body.section-dashboard .ops-kpis>a{position:relative;min-height:126px;padding:19px 22px 17px 82px;border:1px solid #dbe5ef!important;border-radius:13px;background:#fff;box-shadow:0 8px 24px rgba(23,48,82,.06);overflow:hidden}
body.section-dashboard .ops-kpis>a::before{content:'';position:absolute;left:20px;top:20px;width:43px;height:43px;border-radius:12px;display:grid;place-items:center;font-weight:900;font-size:20px}
body.section-dashboard .ops-kpis>a:nth-child(1){background:linear-gradient(135deg,#f4fffa,#fff)}
body.section-dashboard .ops-kpis>a:nth-child(1)::before{content:'↗';background:#ddf8ec;color:#12845e}
body.section-dashboard .ops-kpis>a:nth-child(2){background:linear-gradient(135deg,#f3f8ff,#fff)}
body.section-dashboard .ops-kpis>a:nth-child(2)::before{content:'$';background:#e2efff;color:#1469c5}
body.section-dashboard .ops-kpis>a:nth-child(3){background:linear-gradient(135deg,#fff9f0,#fff)}
body.section-dashboard .ops-kpis>a:nth-child(3)::before{content:'◌';background:#fff0dc;color:#d46b12}
body.section-dashboard .ops-kpis>a:nth-child(4){background:linear-gradient(135deg,#fbf5ff,#fff)}
body.section-dashboard .ops-kpis>a:nth-child(4)::before{content:'▣';background:#f0e5ff;color:#7040d8}
body.section-dashboard .ops-kpis small{color:#47607e;font-size:9px}
body.section-dashboard .ops-kpis strong{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-weight:850;color:#122449;font-size:29px}
body.section-dashboard .ops-kpis span{color:#71839b}
body.section-dashboard .ops-layout{grid-template-columns:minmax(0,1.55fr) 350px;gap:14px}
body.section-dashboard .ops-main,body.section-dashboard .ops-attention,body.section-dashboard .ops-navigation{border-color:#dce5ee;border-radius:13px;box-shadow:0 8px 24px rgba(23,48,82,.05)}
body.section-dashboard .ops-section-head{min-height:66px;padding:15px 20px;background:#fff}
body.section-dashboard .ops-section-head small{color:#58708e}
body.section-dashboard .ops-section-head h3{color:#142849;font-weight:850}
body.section-dashboard .ops-modules{background:#fff}
body.section-dashboard .ops-module{min-height:112px;padding:20px 18px;transition:.15s ease;background:#fff}
body.section-dashboard .ops-module:hover{background:#f8fbff}
body.section-dashboard .ops-module>span{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-weight:850;font-size:24px;color:#7f93ad}
body.section-dashboard .ops-module b{font-size:13px;color:#172946}
body.section-dashboard .ops-module small{font-size:10px;color:#71829a}
body.section-dashboard .ops-module em{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#f0f7ff;color:#1472c7;font-size:14px}
body.section-dashboard .ops-module.sales>span{color:#1d9b72}
body.section-dashboard .ops-module.production>span{color:#2376cc}
body.section-dashboard .ops-module.stock>span{color:#d67b1b}
body.section-dashboard .ops-module.finance>span{color:#7141d5}
body.section-dashboard .attention-list{padding:5px 16px 11px;background:#fff}
body.section-dashboard .attention-list>a{min-height:72px;padding:10px 0}
body.section-dashboard .attention-list>a strong{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-weight:850;color:#152a4c}
body.section-dashboard .attention-list>a div{position:relative;padding-left:12px}
body.section-dashboard .attention-list>a div::before{content:'';position:absolute;left:-2px;top:3px;width:6px;height:6px;border-radius:50%;background:#1c7fd1}
body.section-dashboard .attention-list small{color:#73849b}
body.section-dashboard .ops-navigation{background:#fff}
body.section-dashboard .ops-area-grid>a{min-height:128px;padding:19px 20px;background:#fff}
body.section-dashboard .ops-area-grid>a:nth-child(1) i{background:#e1f8ef;color:#138362}
body.section-dashboard .ops-area-grid>a:nth-child(2) i{background:#e5f0ff;color:#176bc5}
body.section-dashboard .ops-area-grid>a:nth-child(3) i{background:#fff0df;color:#c96b13}
body.section-dashboard .ops-area-grid>a:nth-child(4) i{background:#f0e5ff;color:#7041d4}
body.section-dashboard .ops-area-grid i{width:38px;height:38px;border-radius:11px;font-size:17px}
body.section-dashboard .ops-area-grid b{font-size:12px;color:#172946}
body.section-dashboard .ops-area-grid span{font-size:9px;color:#75869c}
body.section-dashboard .md-footer{background:#fff;border-top:1px solid #dce5ee}
@media(max-width:520px){
 body.section-agenda .ref-summary-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 body.section-agenda .ref-summary-row .ref-stat{min-width:0!important;min-height:78px!important;padding:10px 9px!important;border-radius:10px!important}
 body.section-agenda .ref-summary-row .ref-stat strong{font-size:20px!important}
 body.section-agenda .ref-summary-row .ref-stat span,body.section-agenda .ref-summary-row .ref-stat small{font-size:8px!important;line-height:1.15!important}
 body.section-agenda .ref-summary-row .ref-stat:last-child{grid-column:auto!important}
 body.section-dashboard .ops-kpis{gap:7px}
 body.section-dashboard .ops-kpis>a{padding:14px 10px 13px 57px;min-height:98px}
 body.section-dashboard .ops-kpis>a::before{left:11px;top:14px;width:36px;height:36px;border-radius:10px;font-size:16px}
 body.section-dashboard .ops-kpis strong{font-size:23px}
 body.section-dashboard .ops-kpis small{font-size:8px}
 body.section-dashboard .ops-kpis span{font-size:8px;line-height:1.2}
}
/* Login do cliente: mais limpo e acolhedor, sem aparência técnica */
body.login-operational .login-main{background:linear-gradient(180deg,color-mix(in srgb,var(--login-paper) 58%,#fff),var(--login-paper))}
body.login-operational .login-header{background:rgba(255,255,255,.96);border-bottom:1px solid color-mix(in srgb,var(--login-rail) 12%,#fff)}
body.login-operational .login-card{border-color:color-mix(in srgb,var(--login-rail) 14%,#fff);border-radius:15px;box-shadow:0 22px 55px color-mix(in srgb,var(--login-rail) 12%,transparent)}
body.login-operational .login-card .btn{background:linear-gradient(135deg,var(--login-rail),var(--login-accent));border-radius:9px}
body.login-operational .login-welcome h1{color:var(--login-rail)}
body.login-operational .login-welcome p{color:color-mix(in srgb,var(--login-rail) 62%,#7c8796)}

/* V2.0.5 — acabamento final do dashboard mobile */
@media (max-width: 620px){
  body.section-dashboard .mobile-license{
    height:58px!important; min-height:58px!important; padding:7px 10px!important;
  }
  body.section-dashboard .mobile-license small{font-size:9px!important;line-height:1.1!important;color:#71829a!important}
  body.section-dashboard .mobile-license strong{font-size:14px!important;line-height:1.15!important;display:block;max-width:68vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#122449!important}
  body.section-dashboard .mobile-actions{gap:6px!important}
  body.section-dashboard .mobile-actions a{min-width:40px!important;height:40px!important;min-height:40px!important;padding:0 10px!important;border-radius:8px!important}
  body.section-dashboard .mobile-actions a:first-child{background:#0874c9!important;color:#fff!important;border:0!important}
  body.section-dashboard .mobile-actions a:last-child{background:#7b27a8!important;color:#fff!important;border:0!important}

  body.section-dashboard .mobile-hubs{padding:6px 8px!important;gap:6px!important}
  body.section-dashboard .mobile-hubs .hub-tile{
    min-width:calc((100vw - 28px)/4)!important; width:calc((100vw - 28px)/4)!important;
    min-height:44px!important;height:44px!important;padding:6px 7px!important;
    justify-content:center!important;border-radius:8px!important;
  }
  body.section-dashboard .mobile-hubs .hub-icon{font-size:15px!important}
  body.section-dashboard .mobile-hubs .hub-tile strong{font-size:10px!important;line-height:1!important;text-align:center!important}

  body.section-dashboard .ops-hero{padding:18px 2px 12px!important;display:block!important}
  body.section-dashboard .ops-welcome small{font-size:9px!important;letter-spacing:.15em!important}
  body.section-dashboard .ops-welcome h2{font-size:25px!important;line-height:1.06!important;margin:5px 0 5px!important;letter-spacing:-.045em!important}
  body.section-dashboard .ops-welcome p{font-size:11px!important;line-height:1.35!important}
  body.section-dashboard .ops-actions{margin-top:13px!important;gap:7px!important;grid-template-columns:1fr 1fr!important}
  body.section-dashboard .ops-actions .ops-primary{grid-column:1/-1!important;min-height:50px!important;height:50px!important;padding:7px 13px!important;border-radius:9px!important}
  body.section-dashboard .ops-primary>span{font-size:21px!important}
  body.section-dashboard .ops-primary small{font-size:8px!important}
  body.section-dashboard .ops-primary b{font-size:12px!important}
  body.section-dashboard .ops-actions>a:not(.ops-primary){min-height:42px!important;height:42px!important;justify-content:center!important;font-size:12px!important;border-radius:8px!important}

  /* KPIs: nunca deixar ícone invadir título/valor */
  body.section-dashboard .ops-kpis{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;
    width:calc(100% - 18px)!important;margin:0 auto!important;
  }
  body.section-dashboard .ops-kpis>a{
    box-sizing:border-box!important;display:block!important;position:relative!important;
    min-width:0!important;min-height:102px!important;height:102px!important;
    padding:13px 10px 11px 58px!important;border:1px solid #d9e4df!important;
    border-radius:11px!important;overflow:hidden!important;
  }
  body.section-dashboard .ops-kpis>a::before{
    left:10px!important;top:12px!important;width:36px!important;height:36px!important;
    border-radius:10px!important;font-size:15px!important;z-index:0!important;
  }
  body.section-dashboard .ops-kpis>a>small,
  body.section-dashboard .ops-kpis>a>strong,
  body.section-dashboard .ops-kpis>a>span{
    position:relative!important;z-index:2!important;display:block!important;min-width:0!important;
  }
  body.section-dashboard .ops-kpis>a>small{
    font-size:8px!important;line-height:1.1!important;white-space:nowrap!important;
    overflow:hidden!important;text-overflow:ellipsis!important;margin:0!important;
  }
  body.section-dashboard .ops-kpis>a>strong{
    font-size:21px!important;line-height:1.05!important;margin:7px 0 5px!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
  body.section-dashboard .ops-kpis>a>span{
    font-size:8px!important;line-height:1.2!important;max-width:100%!important;
    display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important;
  }

  body.section-dashboard .ops-layout{width:calc(100% - 18px)!important;margin:10px auto 0!important;gap:10px!important}
  body.section-dashboard .ops-main,body.section-dashboard .ops-attention,body.section-dashboard .ops-navigation{
    border-radius:11px!important;box-shadow:0 5px 16px rgba(23,48,82,.05)!important;
  }
  body.section-dashboard .ops-section-head{min-height:58px!important;padding:12px 13px!important}
  body.section-dashboard .ops-section-head small{font-size:8px!important}
  body.section-dashboard .ops-section-head h3{font-size:14px!important;line-height:1.15!important}
  body.section-dashboard .ops-section-head>span,body.section-dashboard .ops-section-head>a{font-size:9px!important}
  body.section-dashboard .ops-module{min-height:78px!important;padding:12px 11px!important;grid-template-columns:31px minmax(0,1fr) 25px!important;gap:8px!important}
  body.section-dashboard .ops-module>span{font-size:20px!important}
  body.section-dashboard .ops-module b{font-size:12px!important;line-height:1.15!important}
  body.section-dashboard .ops-module small{font-size:9px!important;line-height:1.25!important;margin-top:3px!important}
  body.section-dashboard .ops-module em{width:25px!important;height:25px!important;font-size:13px!important}

  body.section-dashboard .ops-navigation{margin-top:10px!important;margin-bottom:15px!important}
  body.section-dashboard .ops-area-grid{grid-template-columns:1fr 1fr!important}
  body.section-dashboard .ops-area-grid>a{min-height:90px!important;padding:12px!important}
  body.section-dashboard .ops-area-grid i{width:30px!important;height:30px!important;border-radius:8px!important;font-size:14px!important;margin-bottom:8px!important}
  body.section-dashboard .ops-area-grid b{font-size:11px!important}
  body.section-dashboard .ops-area-grid span{font-size:8px!important;line-height:1.2!important}
}

@media (max-width:390px){
  body.section-dashboard .mobile-hubs .hub-tile{min-width:calc((100vw - 26px)/4)!important;width:calc((100vw - 26px)/4)!important;padding-inline:4px!important}
  body.section-dashboard .mobile-hubs .hub-tile strong{font-size:9px!important}
  body.section-dashboard .ops-kpis>a{padding-left:55px!important}
  body.section-dashboard .ops-kpis>a::before{left:9px!important}
  body.section-dashboard .ops-kpis>a>strong{font-size:19px!important}
}

/* ==========================================================
   V2.0.13 — MOBILE OPERACIONAL CONSOLIDADO
   Corrige a nova venda/orçamento para uso real em celular:
   menos altura, menos cartões empilhados e hierarquia de app.
   ========================================================== */
@media(max-width:620px){
  body.section-vendas{background:#f2f5f4!important}
  body.section-vendas .ref-main{padding-bottom:72px!important}
  body.section-vendas .md-screen-title{display:none!important}
  body.section-vendas .md-footer{display:none!important}

  body.section-vendas .subnav{display:grid!important;grid-template-columns:1.2fr .9fr .8fr!important;gap:6px!important;margin:7px 9px 8px!important;padding:5px!important;border-radius:10px!important}
  body.section-vendas .subnav a{min-height:38px!important;padding:7px 6px!important;border-radius:8px!important;font-size:11px!important;display:grid!important;place-items:center!important;text-align:center!important}

  body.section-vendas .seller-quickbar{width:calc(100% - 18px)!important;margin:0 9px 8px!important;padding:6px!important;gap:5px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;border-radius:10px!important;box-shadow:none!important}
  body.section-vendas .seller-quickbar>span{display:none!important}
  body.section-vendas .seller-quickbar>a{min-height:38px!important;padding:6px 4px!important;border-radius:8px!important;font-size:9.5px!important;line-height:1.15!important;white-space:normal!important}

  body.section-vendas .sale-mode-strip{width:calc(100% - 18px)!important;margin:0 9px 7px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
  body.section-vendas .sale-mode-card{min-height:76px!important;padding:10px 9px!important;border-radius:11px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;box-shadow:none!important}
  body.section-vendas .sale-mode-card small{font-size:7px!important;letter-spacing:.12em!important}
  body.section-vendas .sale-mode-card strong{font-size:13px!important;line-height:1.1!important}
  body.section-vendas .sale-mode-card span{display:none!important}
  body.section-vendas .sale-mode-note{width:calc(100% - 18px)!important;margin:0 9px 8px!important;padding:7px 9px!important;border-radius:8px!important;font-size:9.5px!important;line-height:1.35!important}

  body.section-vendas #sale-form{width:calc(100% - 18px)!important;margin:0 9px!important}
  body.section-vendas .sale-station{display:flex!important;flex-direction:column!important;min-height:0!important;border:0!important;border-radius:0!important;overflow:visible!important;box-shadow:none!important;background:transparent!important;gap:8px!important}
  body.section-vendas .sale-cart{display:contents!important}
  body.section-vendas .sale-cart-head,body.section-vendas .sale-cart-actions{display:none!important}
  body.section-vendas .sale-client-box{order:1!important;margin:0!important;padding:10px!important;border:1px solid #dce5e1!important;border-radius:11px!important;background:#fff!important;box-shadow:none!important}
  body.section-vendas .sale-client-box label{margin-bottom:4px!important;font-size:8px!important}
  body.section-vendas .sale-client-box select{min-height:40px!important;height:40px!important;padding:7px 9px!important;border-radius:8px!important;font-size:12px!important}
  body.section-vendas .sale-catalog{order:2!important;margin:0!important;padding:9px!important;border:1px solid #dce5e1!important;border-radius:11px!important;background:#fff!important;box-shadow:none!important}
  body.section-vendas .sale-summary-list{order:3!important;margin:0!important;padding:0!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;background:transparent!important;box-shadow:none!important}
  body.section-vendas .sale-summary-list>div{min-height:54px!important;margin:0!important;padding:8px 9px!important;border:1px solid #dce5e1!important;border-radius:9px!important;background:#fff!important;display:block!important}
  body.section-vendas .sale-summary-list span{display:block!important;font-size:8px!important;line-height:1!important;margin-bottom:6px!important}
  body.section-vendas .sale-summary-list strong{display:block!important;font-size:11px!important;line-height:1.25!important;text-align:left!important}
  body.section-vendas .sale-cart-note{order:4!important;margin:0!important;padding:10px!important;border:1px solid #dce5e1!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important}
  body.section-vendas .sale-cart-note textarea{min-height:66px!important;padding:9px!important;border-radius:8px!important;font-size:12px!important}
  body.section-vendas .sale-mixed-tip{order:5!important}

  body.section-vendas .sale-band{min-height:0!important;margin:4px 0 7px!important;padding:8px 10px!important;border-radius:9px!important;box-shadow:none!important}
  body.section-vendas .sale-band strong{font-size:14px!important;line-height:1.1!important}
  body.section-vendas .sale-band span{display:none!important}
  body.section-vendas .sale-fields-grid{grid-template-columns:1fr 1fr!important;gap:6px!important;padding:0!important;border:0!important}
  body.section-vendas .sale-fields-grid .field{margin:0!important}
  body.section-vendas .sale-fields-grid .field.full{grid-column:1/-1!important}
  body.section-vendas .sale-fields-grid label{font-size:8px!important;line-height:1.1!important;margin-bottom:4px!important;letter-spacing:.06em!important}
  body.section-vendas .sale-fields-grid input,body.section-vendas .sale-fields-grid select{min-height:38px!important;height:38px!important;padding:7px 9px!important;border-radius:7px!important;font-size:11px!important}
  body.section-vendas .sale-fields-grid .field.full small{font-size:8px!important;margin-top:3px!important}
  body.section-vendas .sale-search-row{padding:6px 0!important;border:0!important}
  body.section-vendas .sale-search-row input{min-height:38px!important;height:38px!important;padding:7px 9px!important;border-radius:8px!important;font-size:11px!important}

  body.section-vendas .product-choice-grid{max-height:250px!important;overflow-y:auto!important;display:grid!important;grid-template-columns:1fr!important;gap:6px!important;padding:0 2px 4px 0!important}
  body.section-vendas .choice-card-photo{grid-template-columns:52px minmax(0,1fr)!important;min-height:66px!important;padding:7px!important;gap:8px!important;border-radius:9px!important;box-shadow:none!important}
  body.section-vendas .choice-thumb{width:52px!important;height:52px!important;border-radius:7px!important}
  body.section-vendas .choice-card input{right:9px!important;top:9px!important}
  body.section-vendas .choice-main{padding-right:20px!important}
  body.section-vendas .choice-card-photo strong{font-size:11px!important;line-height:1.18!important}
  body.section-vendas .choice-card-photo small{font-size:8px!important;line-height:1.25!important;margin-top:2px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.section-vendas .choice-card-photo b{font-size:12px!important;line-height:1.1!important;margin-top:4px!important}
  body.section-vendas .reserve-line{padding:7px 2px 3px!important;font-size:9.5px!important;line-height:1.25!important}
  body.section-vendas .pdv-treatments{min-height:0!important;padding:5px 0 0!important;gap:5px!important}
  body.section-vendas .pdv-treatments label{padding:7px 8px!important;border-radius:7px!important;font-size:9.5px!important}

  body.section-vendas .seller-mobile-dock{left:7px!important;right:7px!important;bottom:max(6px,env(safe-area-inset-bottom))!important;min-height:54px!important;padding:6px 7px 6px 10px!important;border-radius:11px!important;background:#fff!important;box-shadow:0 -8px 22px rgba(17,36,52,.12)!important}
  body.section-vendas .seller-mobile-dock small{font-size:7.5px!important}
  body.section-vendas .seller-mobile-dock strong{font-size:15px!important}
  body.section-vendas .seller-mobile-dock .btn{min-height:40px!important;height:40px!important;padding:7px 12px!important;border-radius:8px!important;font-size:11px!important}
}

@media(max-width:390px){
  body.section-vendas .sale-mode-card{min-height:70px!important;padding:8px 6px!important}
  body.section-vendas .sale-mode-card strong{font-size:11.5px!important}
  body.section-vendas .seller-quickbar>a{font-size:8.8px!important}
  body.section-vendas .sale-fields-grid{gap:5px!important}
}


/* V2.0.15 — polimento final desktop + mobile (nova venda, cliente, agenda e listas) */
body.md-ref-ui .md-footer{margin:20px 18px 0!important;min-height:0!important;padding:10px 14px!important;border-top:1px solid #dbe4ec!important;border-radius:12px 12px 0 0!important;background:linear-gradient(180deg,#ffffff 0%,#fbfcfd 100%)!important;box-shadow:0 -1px 0 rgba(15,23,42,.03)!important}
body.md-ref-ui .md-footer a{box-shadow:none!important}
@media(max-width:900px){body.md-ref-ui .md-footer{margin:18px 9px 0!important;padding:10px 11px!important;border-radius:10px 10px 0 0!important}}
.section-vendas .seller-quickbar{display:grid!important;grid-template-columns:minmax(0,1.2fr) repeat(3,auto)!important;gap:10px!important;align-items:center!important;padding:12px 14px!important;border:1px solid #dbe5e0!important;background:linear-gradient(180deg,#edf5f1 0%,#e6f1ed 100%)!important;box-shadow:0 10px 24px rgba(15,23,42,.04)!important}
.section-vendas .seller-quickbar>span{min-width:0!important}
.section-vendas .seller-quickbar a{min-height:42px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0 14px!important;font-weight:800!important;box-shadow:0 1px 0 rgba(15,23,42,.04)!important}
.section-vendas .sale-mode-strip{gap:12px!important}.section-vendas .sale-mode-card{min-height:156px!important}.section-vendas .sale-mode-note{line-height:1.55!important}
.section-vendas .sale-station{grid-template-columns:minmax(0,1fr) 340px!important;gap:16px!important;align-items:start!important}
.section-vendas .sale-catalog,.section-vendas .sale-cart{border-radius:18px!important;border:1px solid #dbe4df!important;background:#fff!important;box-shadow:0 12px 28px rgba(15,23,42,.04)!important}
.section-vendas .sale-catalog{padding:0 18px 18px!important}.section-vendas .sale-cart{top:84px!important;overflow:hidden!important}
.section-vendas .sale-cart-head{padding:18px 20px!important;background:linear-gradient(135deg,#133b39 0%,#0d5c56 100%)!important}
.section-vendas .sale-client-box{padding:16px 18px 14px!important}
.section-vendas .sale-client-box select,.section-vendas .sale-cart-note textarea,.section-vendas .sale-fields-grid input,.section-vendas .sale-fields-grid select,.section-vendas .sale-search-row input{border-radius:12px!important;border:1px solid #d7e1dc!important;background:#fbfcfb!important;box-shadow:none!important}
.section-vendas .sale-summary-list{padding:10px 18px!important}.section-vendas .sale-summary-list>div{padding:12px 0!important}.section-vendas .sale-cart-note{padding:12px 18px 14px!important}
.section-vendas .sale-cart-actions{padding:14px 18px 18px!important;grid-template-columns:1fr 1.3fr!important}.section-vendas .sale-cart-actions .btn{border-radius:12px!important}
.section-vendas .sale-band{margin:18px 0 12px!important;padding:0 0 11px!important;border-bottom:1px solid #e3e9e5!important}.section-vendas .sale-band strong{font-size:22px!important}.section-vendas .sale-band span{font-size:11px!important}
.section-vendas .sale-fields-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important;padding:4px 0 0!important;border-bottom:0!important;background:transparent!important}
.section-vendas .sale-fields-grid .field{background:#f8fbf9!important;border:1px solid #e2e8e4!important;border-radius:14px!important;padding:10px 12px 12px!important;min-width:0!important}.section-vendas .sale-fields-grid .full{grid-column:1/-1!important}
.section-vendas .sale-fields-grid .field label{display:block!important;margin-bottom:6px!important}.section-vendas .sale-fields-grid small{display:block!important;margin-top:7px!important}
.section-vendas .sale-search-row{padding:8px 0 10px!important;background:transparent!important;border-bottom:0!important}.section-vendas .sale-search-row input{min-height:46px!important;padding:0 14px!important;background:#fcfffd!important}
.section-vendas .product-choice-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;max-height:370px!important;padding:4px 2px 8px!important;border-top:1px solid #edf2ef!important;border-bottom:1px solid #edf2ef!important}
.section-vendas .choice-card-photo{min-height:96px!important;padding:10px!important;gap:10px!important;background:linear-gradient(180deg,#ffffff 0%,#fbfcfc 100%)!important;border:1px solid #dce5e1!important;box-shadow:0 4px 12px rgba(15,23,42,.035)!important}
.section-vendas .choice-thumb{width:74px!important;height:74px!important;border-radius:10px!important}.section-vendas .choice-card-photo strong{font-size:12px!important}.section-vendas .choice-card-photo small{font-size:10px!important;line-height:1.35!important}.section-vendas .choice-card-photo b{font-size:14px!important;color:#0d5345!important}
.section-vendas .reserve-line{margin:12px 0 2px!important;padding:10px 2px 6px!important;border-top:1px dashed #dce4df!important}
.section-vendas .pdv-treatments{min-height:0!important;padding:10px 0 2px!important;background:transparent!important}.section-vendas .treatment-chips label{background:#f8faf9!important;border:1px solid #dbe4df!important;padding:9px 12px!important}
.section-vendas .sale-inline-tip{margin-top:10px!important;padding:10px 12px!important;border:1px dashed #dbe5e0!important;border-radius:12px!important;background:#f8fbf9!important;color:#64737c!important;font-size:11px!important;line-height:1.45!important}
.section-vendas .sale-mixed-tip{margin:0 18px 12px!important;padding:10px 12px!important;border-radius:12px!important;background:#f6fbf8!important;border:1px solid #dce7e2!important}.section-vendas .sale-mixed-tip strong{display:block!important;margin-bottom:4px!important;color:#173a36!important}
@media(max-width:1220px){.section-vendas .sale-station{grid-template-columns:minmax(0,1fr) 320px!important}.section-vendas .product-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:760px){.section-vendas .seller-quickbar{grid-template-columns:repeat(3,1fr)!important;padding:8px!important}.section-vendas .seller-quickbar>span{display:none!important}.section-vendas .seller-quickbar a{min-height:40px!important;padding:0 6px!important;font-size:11px!important}.section-vendas .sale-catalog,.section-vendas .sale-cart{border-radius:12px!important;box-shadow:none!important}.section-vendas .sale-fields-grid{grid-template-columns:1fr 1fr!important}.section-vendas .sale-fields-grid .field{border-radius:10px!important;padding:9px 10px 10px!important}.section-vendas .product-choice-grid{grid-template-columns:1fr!important;max-height:360px!important;padding:4px 1px 7px!important}.section-vendas .reserve-line{font-size:11px!important;padding:8px 2px 4px!important}.section-vendas .sale-inline-tip{font-size:10.5px!important;padding:8px 10px!important}}
.section-clientes .client-quick-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px!important;margin:14px 18px 0!important}
.section-clientes .quick-action{background:linear-gradient(180deg,#ffffff 0%,#fbfcfc 100%)!important;border:1px solid #dbe4df!important;border-radius:16px!important;padding:14px!important;box-shadow:0 10px 22px rgba(15,23,42,.04)!important}
.section-clientes .quick-action span{width:40px!important;height:40px!important;border-radius:12px!important;display:grid!important;place-items:center!important;color:#fff!important}.section-clientes .quick-action div strong{font-size:14px!important}.section-clientes .quick-action div small{font-size:11px!important;color:#6b7885!important}
.section-clientes .quick-action.rx span{background:#2686e5!important}.section-clientes .quick-action.sale span{background:#33a451!important}.section-clientes .quick-action.agenda span{background:#f28b2e!important}.section-clientes .quick-action.whatsapp span{background:#1fa463!important}
.section-clientes .section.split-layout{align-items:start!important}.section-clientes .section.split-layout .panel,.section-clientes .section.split-layout .mini-form{border:1px solid #dbe4df!important;border-radius:16px!important;background:#fff!important;box-shadow:0 10px 24px rgba(15,23,42,.04)!important}.section-clientes .section.split-layout .panel{padding:16px!important}.section-clientes .section.split-layout .mini-form{padding:16px!important}
.section-clientes .timeline .empty{min-height:138px!important;border:1px dashed #d8e2dd!important;border-radius:14px!important;background:#f8fbf9!important;display:grid!important;place-items:center!important;color:#72808d!important}
@media(max-width:760px){.section-clientes .client-quick-actions{grid-template-columns:1fr 1fr!important;gap:9px!important;margin:12px 9px 0!important}.section-clientes .quick-action{padding:12px!important;border-radius:12px!important;box-shadow:none!important}.section-clientes .quick-action div strong{font-size:13px!important}.section-clientes .section.split-layout .mini-form p{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;align-items:start!important}.section-clientes .section.split-layout .mini-form p strong{grid-column:1/-1!important;margin-bottom:-2px!important}}
.section-agenda .agenda-table tr,.section-agenda .mobile-cards tr{background:linear-gradient(180deg,#ffffff 0%,#fbfcfc 100%)!important;border:1px solid #dbe4df!important;border-radius:14px!important;box-shadow:0 8px 18px rgba(15,23,42,.035)!important;margin:0 0 8px!important}.section-agenda .agenda-table td,.section-agenda .mobile-cards td{border-bottom:0!important}.section-agenda .compact-inline select,.section-agenda .compact-inline .btn{border-radius:10px!important}@media(max-width:760px){.section-agenda .agenda-table tr{box-shadow:none!important;border-radius:10px!important;margin-bottom:7px!important}}
.section-vendas .data-board,.section-clientes .data-board{border:1px solid #dbe4df!important;border-radius:16px!important;overflow:hidden!important;box-shadow:0 10px 24px rgba(15,23,42,.04)!important}.section-vendas .data-board-head,.section-clientes .data-board-head{min-height:54px!important;padding:12px 16px!important}.section-vendas .status-pill,.section-clientes .status-pill,.section-agenda .status-pill{border-radius:999px!important;padding:6px 9px!important;font-weight:800!important}.section-vendas .mobile-cards tr,.section-clientes .mobile-cards tr{background:linear-gradient(180deg,#ffffff 0%,#fbfcfc 100%)!important}.section-vendas .mobile-cards .link-btn,.section-clientes .mobile-cards .link-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;padding:7px 10px!important;border:1px solid #cfddd6!important;border-radius:10px!important;background:#f5fbf8!important;color:#0c7562!important;font-weight:800!important;text-decoration:none!important}@media(max-width:520px){.section-vendas .data-board,.section-clientes .data-board{border-radius:12px!important;box-shadow:none!important}}

/* V2.0.16 — mobile nativo/premium: Produção, Vendas, Venda Assistida e Relacionamento */
@media (max-width: 760px){
  /* topo mobile: mais compacto e com menos cara de desktop empilhado */
  body.md-ref-ui .mobile-license{
    min-height:56px!important;
    padding:8px 10px!important;
    background:#fff!important;
    border-bottom:1px solid #dfe6ea!important;
  }
  body.md-ref-ui .mobile-license small{font-size:8px!important;color:#7b8792!important}
  body.md-ref-ui .mobile-license strong{font-size:15px!important;line-height:1.15!important}
  body.md-ref-ui .mobile-actions a{
    width:40px!important;height:40px!important;min-height:40px!important;
    border-radius:10px!important;display:grid!important;place-items:center!important;
  }
  body.md-ref-ui .mobile-hubs{
    gap:5px!important;padding:6px!important;background:#173052!important;
    overflow-x:auto!important;scrollbar-width:none!important;
  }
  body.md-ref-ui .mobile-hubs::-webkit-scrollbar{display:none}
  body.md-ref-ui .mobile-hubs .hub-tile{
    min-width:112px!important;min-height:44px!important;padding:7px 9px!important;
    border-radius:9px!important;box-shadow:none!important;
  }
  body.md-ref-ui .mobile-hubs .hub-key{font-size:7px!important}
  body.md-ref-ui .mobile-hubs .hub-icon{font-size:12px!important}
  body.md-ref-ui .mobile-hubs .hub-tile strong{font-size:11px!important}

  /* PRODUÇÃO — elimina kanban desktop horizontal no celular */
  body.section-ordens .production-board{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:8px!important;
    overflow:visible!important;
    width:calc(100% - 18px)!important;
    margin:10px 9px 0!important;
    padding:0!important;
  }
  body.section-ordens .production-col{
    min-height:0!important;
    width:100%!important;
    padding:12px!important;
    border:1px solid #dbe4df!important;
    border-top:3px solid #0c7b68!important;
    border-radius:12px!important;
    background:linear-gradient(180deg,#fff 0%,#fbfcfc 100%)!important;
    box-shadow:0 7px 18px rgba(15,23,42,.035)!important;
  }
  body.section-ordens .production-col h3{
    display:inline-block!important;margin:0 6px 0 0!important;
    font-size:15px!important;color:#172b31!important;
  }
  body.section-ordens .production-col>small{
    display:inline-block!important;font-size:9px!important;color:#7c8990!important;
  }
  body.section-ordens .production-empty{
    min-height:0!important;margin-top:9px!important;padding:13px 10px!important;
    border:1px dashed #d6e0dc!important;border-radius:10px!important;
    background:#f8fbf9!important;text-align:left!important;font-size:11px!important;
  }
  body.section-ordens .production-empty span{font-size:9px!important}
  body.section-ordens .production-card{
    position:relative!important;margin-top:8px!important;padding:11px 12px!important;
    border-radius:10px!important;border:1px solid #dce5e1!important;
    background:#fff!important;box-shadow:none!important;
  }
  body.section-ordens .production-card strong{font-size:12px!important;padding-right:16px!important}
  body.section-ordens .production-card span{font-size:9.5px!important;margin-top:3px!important}
  body.section-ordens .production-card:after{
    content:'›';position:absolute;right:11px;top:50%;transform:translateY(-50%);
    color:#94a39d;font-size:20px;font-weight:500;
  }

  /* VENDA ASSISTIDA — 2x2 compacto, sem cartões gigantes */
  body.section-digital .digital-hero{
    min-height:0!important;padding:16px!important;margin-top:10px!important;
    border-radius:12px!important;display:block!important;
  }
  body.section-digital .digital-hero h2{font-size:22px!important;line-height:1.12!important;margin:6px 0 8px!important}
  body.section-digital .digital-hero p{font-size:11px!important;line-height:1.5!important;margin:0!important}
  body.section-digital .digital-primary{width:100%!important;margin-top:12px!important;min-height:42px!important;border-radius:9px!important}
  body.section-digital .digital-tool-grid{
    grid-template-columns:1fr 1fr!important;gap:8px!important;
    width:calc(100% - 18px)!important;margin:10px 9px!important;
  }
  body.section-digital .digital-tool-card{
    min-height:132px!important;padding:12px!important;border-radius:12px!important;
    display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;gap:8px 9px!important;align-items:start!important;
    box-shadow:0 6px 16px rgba(15,23,42,.035)!important;
  }
  body.section-digital .digital-tool-card .tool-icon{
    width:34px!important;height:34px!important;border-radius:9px!important;font-size:16px!important;
  }
  body.section-digital .digital-tool-card>div{min-width:0!important}
  body.section-digital .digital-tool-card small{font-size:7px!important;letter-spacing:.1em!important}
  body.section-digital .digital-tool-card h3{font-size:14px!important;line-height:1.22!important;margin:4px 0 0!important}
  body.section-digital .digital-tool-card p{display:none!important}
  body.section-digital .digital-tool-card>b{
    grid-column:2!important;align-self:end!important;font-size:9px!important;
    color:#0b7564!important;white-space:normal!important;
  }
  body.section-digital .digital-recent{border-radius:12px!important;margin-top:10px!important}

  /* RELACIONAMENTO — corrige coluna de 130px + vazio gigante */
  body.section-crm .crm-command,
  body.section-crm .crm-summary-modern,
  body.section-crm .crm-workspace{
    width:calc(100% - 18px)!important;
    max-width:none!important;
    margin-left:9px!important;margin-right:9px!important;
  }
  body.section-crm .crm-command{
    grid-template-columns:1fr!important;gap:10px!important;padding:14px!important;border-radius:12px!important;
  }
  body.section-crm .crm-command .btn{justify-self:stretch!important;width:100%!important;text-align:center!important}
  body.section-crm .crm-summary-modern{grid-template-columns:1fr 1fr!important;gap:7px!important}
  body.section-crm .crm-summary-modern>a{min-height:80px!important;padding:11px!important;border-radius:11px!important}
  body.section-crm .crm-summary-modern strong{font-size:22px!important}
  body.section-crm .crm-workspace{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:9px!important;
  }
  body.section-crm .crm-priority-column,
  body.section-crm .crm-side-column,
  body.section-crm .crm-block,
  body.section-crm .crm-contact-card,
  body.section-crm .crm-history-card,
  body.section-crm .crm-mini-block{
    width:100%!important;min-width:0!important;max-width:none!important;
  }
  body.section-crm .crm-side-column{
    position:static!important;display:grid!important;grid-template-columns:1fr!important;gap:9px!important;
  }
  body.section-crm .crm-block{border-radius:12px!important;overflow:hidden!important}
  body.section-crm .crm-block>header,
  body.section-crm .crm-contact-card>header,
  body.section-crm .crm-history-card>header{padding:12px!important}
  body.section-crm .crm-list{padding:0 11px!important}
  body.section-crm .crm-row{
    grid-template-columns:38px minmax(0,1fr)!important;
    gap:8px!important;padding:10px 0!important;
  }
  body.section-crm .crm-row-code{width:32px!important;height:32px!important;border-radius:9px!important;font-size:10px!important}
  body.section-crm .crm-row-main strong{font-size:12px!important}
  body.section-crm .crm-row-main span{font-size:10px!important}
  body.section-crm .crm-row-main small{font-size:9px!important}
  body.section-crm .crm-row>.crm-action,
  body.section-crm .crm-row>.crm-row-actions{
    grid-column:2!important;justify-self:start!important;width:auto!important;
  }
  body.section-crm .crm-secondary-grid{grid-template-columns:1fr 1fr!important;gap:7px!important}
  body.section-crm .crm-mini-block{padding:11px!important;border-radius:11px!important}
  body.section-crm .crm-mini-block header h3{font-size:13px!important}
  body.section-crm .crm-mini-block header b{font-size:22px!important}
  body.section-crm .crm-contact-card form{padding:12px!important;gap:8px!important}
  body.section-crm .crm-contact-card input,
  body.section-crm .crm-contact-card select,
  body.section-crm .crm-contact-card textarea{min-height:42px!important;border-radius:9px!important}

  /* VENDAS E ORÇAMENTOS — cartões nativos em vez de tabela espremida */
  body.section-vendas>.data-board{
    width:calc(100% - 18px)!important;margin-left:9px!important;margin-right:9px!important;
    border-radius:12px!important;overflow:hidden!important;
  }
  body.section-vendas>.data-board .mobile-cards{overflow:visible!important}
  body.section-vendas>.data-board .mobile-cards table,
  body.section-vendas>.data-board .mobile-cards tbody{display:block!important;width:100%!important}
  body.section-vendas>.data-board .mobile-cards tr{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    gap:4px 10px!important;padding:12px!important;margin:0!important;
    border:0!important;border-bottom:1px solid #e7ece9!important;border-radius:0!important;
    box-shadow:none!important;background:#fff!important;
  }
  body.section-vendas>.data-board .mobile-cards tr:last-child{border-bottom:0!important}
  body.section-vendas>.data-board .mobile-cards td{
    display:block!important;padding:0!important;border:0!important;min-height:0!important;
    font-size:11px!important;grid-template-columns:none!important;
  }
  body.section-vendas>.data-board .mobile-cards td:before{display:none!important}
  /* orçamentos */
  body.section-vendas>.green-board .mobile-cards td:nth-child(1){grid-column:1;grid-row:1;font-size:10px!important;color:#60717a!important}
  body.section-vendas>.green-board .mobile-cards td:nth-child(2){grid-column:2;grid-row:1;font-size:9px!important;color:#7d8991!important;text-align:right}
  body.section-vendas>.green-board .mobile-cards td:nth-child(3){grid-column:1/-1;grid-row:2;font-size:13px!important;font-weight:850!important;color:#152b34!important}
  body.section-vendas>.green-board .mobile-cards td:nth-child(4){grid-column:1/-1;grid-row:3;color:#5f7078!important}
  body.section-vendas>.green-board .mobile-cards td:nth-child(5){grid-column:1;grid-row:4;margin-top:5px!important}
  body.section-vendas>.green-board .mobile-cards td:nth-child(6){grid-column:2;grid-row:4;margin-top:5px!important;text-align:right;font-size:14px!important}
  body.section-vendas>.green-board .mobile-cards td:nth-child(7){grid-column:1/-1;grid-row:5;margin-top:7px!important}
  body.section-vendas>.green-board .mobile-cards .link-btn{width:100%!important;min-height:38px!important;border-radius:9px!important}
  /* vendas confirmadas */
  body.section-vendas>.purple-board .mobile-cards td:nth-child(1){grid-column:1;grid-row:1}
  body.section-vendas>.purple-board .mobile-cards td:nth-child(2){grid-column:2;grid-row:1;text-align:right;font-size:9px!important;color:#7d8991!important}
  body.section-vendas>.purple-board .mobile-cards td:nth-child(3){grid-column:1/-1;grid-row:2;font-size:13px!important;font-weight:850!important;margin-top:3px!important}
  body.section-vendas>.purple-board .mobile-cards td:nth-child(4){grid-column:1;grid-row:3;margin-top:7px!important;font-size:13px!important;font-weight:850!important}
  body.section-vendas>.purple-board .mobile-cards td:nth-child(5){grid-column:2;grid-row:3;margin-top:7px!important;text-align:right!important}
  body.section-vendas>.purple-board .mobile-cards td:nth-child(6){grid-column:1;grid-row:4;color:#5c6c73!important}
  body.section-vendas>.purple-board .mobile-cards td:nth-child(7){grid-column:2;grid-row:4;text-align:right!important;color:#0b7564!important;font-weight:800!important}
  /* balcão */
  body.section-vendas>.blue-board .mobile-cards td:nth-child(1){grid-column:1;grid-row:1}
  body.section-vendas>.blue-board .mobile-cards td:nth-child(2){grid-column:2;grid-row:1;text-align:right;font-size:9px!important;color:#7d8991!important}
  body.section-vendas>.blue-board .mobile-cards td:nth-child(3){grid-column:1/-1;grid-row:2;font-size:13px!important;font-weight:850!important;margin-top:3px!important}
  body.section-vendas>.blue-board .mobile-cards td:nth-child(4){grid-column:1;grid-row:3;color:#66757d!important}
  body.section-vendas>.blue-board .mobile-cards td:nth-child(5){grid-column:2;grid-row:3;text-align:right;color:#66757d!important}
  body.section-vendas>.blue-board .mobile-cards td:nth-child(6){grid-column:1/-1;grid-row:4;margin-top:6px!important;font-size:14px!important;font-weight:850!important;color:#0d5345!important}
  body.section-vendas>.blue-board .ref-empty{
    min-height:0!important;padding:18px 12px!important;text-align:center!important;
    color:#74838b!important;background:#f8fbfa!important;border-radius:9px!important;
  }
  body.section-vendas>.status-dock{margin-top:10px!important}
}

@media (max-width: 430px){
  body.section-digital .digital-tool-grid{grid-template-columns:1fr 1fr!important}
  body.section-digital .digital-tool-card{min-height:124px!important;padding:10px!important}
  body.section-digital .digital-tool-card h3{font-size:13px!important}
  body.section-crm .crm-secondary-grid{grid-template-columns:1fr!important}
}


/* V2.0.17 — mobile premium v2 + catálogo desktop mais denso */

/* ===== CRM / relacionamento: pós-venda compacto e realmente mobile ===== */
@media(max-width:700px){
  body.section-crm .crm-block#pos-venda{border-radius:12px!important}
  body.section-crm .crm-block#pos-venda>header{align-items:center!important;padding:12px!important}
  body.section-crm .crm-block#pos-venda>header h3{font-size:15px!important;line-height:1.2!important}
  body.section-crm .crm-block#pos-venda>header>span{font-size:9px!important;white-space:nowrap!important}
  body.section-crm .crm-block#pos-venda .crm-list{padding:0 10px!important}
  body.section-crm .crm-row-post{
    grid-template-columns:34px minmax(0,1fr) auto!important;
    gap:8px!important;padding:10px 0!important;align-items:center!important;
  }
  body.section-crm .crm-row-post .crm-row-code{
    width:32px!important;height:32px!important;border-radius:9px!important;
    font-size:8px!important;letter-spacing:.03em!important;
  }
  body.section-crm .crm-row-post .crm-row-main strong{font-size:11.5px!important;line-height:1.25!important}
  body.section-crm .crm-row-post .crm-row-main span{font-size:9.5px!important;line-height:1.3!important;margin-top:2px!important}
  body.section-crm .crm-row-post .crm-row-main small{font-size:8.5px!important;margin-top:2px!important}
  body.section-crm .crm-row-post .crm-row-actions{
    grid-column:3!important;grid-row:1!important;display:grid!important;gap:5px!important;
    justify-self:end!important;align-self:center!important;
  }
  body.section-crm .crm-row-post .crm-action,
  body.section-crm .crm-row-post .crm-done{
    min-height:30px!important;padding:5px 8px!important;border-radius:8px!important;
    font-size:9.5px!important;line-height:1!important;white-space:nowrap!important;
  }
  body.section-crm .crm-row-post .crm-action{background:#edf8f4!important;border:1px solid #d7e9e2!important}
  body.section-crm .crm-row-post .crm-done{background:#fff!important}
  body.section-crm .crm-secondary-grid{margin-top:0!important}
  body.section-crm .crm-mini-block{min-height:0!important}
  body.section-crm .crm-mini-row{padding:9px 0!important}
  body.section-crm .crm-mini-row span{font-size:11px!important}
  body.section-crm .crm-mini-row small{font-size:9px!important}
}
@media(max-width:390px){
  body.section-crm .crm-row-post{grid-template-columns:32px minmax(0,1fr)!important}
  body.section-crm .crm-row-post .crm-row-actions{grid-column:2!important;grid-row:auto!important;display:flex!important;justify-self:start!important}
}

/* ===== Garantias / refações ===== */
.section-garantias .stock-summary>div{background:#fff!important}
.section-garantias .ops-grid>section>.panel{border:1px solid #dbe4df!important;border-radius:14px!important;background:#fff!important}
.section-garantias .conversion-box.section{border-radius:14px!important;border:1px solid #dbe4df!important;background:#fff!important;box-shadow:0 10px 24px rgba(15,23,42,.04)!important}
.section-garantias .conversion-box.section .compact-form{gap:10px!important}
@media(max-width:700px){
  body.section-garantias .stock-summary{
    display:grid!important;grid-template-columns:1fr 1fr!important;gap:0!important;
    margin:8px 9px 14px!important;width:calc(100% - 18px)!important;
    border:1px solid #dbe4df!important;border-radius:12px!important;background:#fff!important;
  }
  body.section-garantias .stock-summary>div{
    min-height:74px!important;padding:11px 12px!important;border:0!important;
    border-right:1px solid #e6ebe8!important;border-bottom:1px solid #e6ebe8!important;
  }
  body.section-garantias .stock-summary>div:nth-child(2n){border-right:0!important}
  body.section-garantias .stock-summary>div:nth-last-child(-n+2){border-bottom:0!important}
  body.section-garantias .stock-summary span{font-size:8px!important}
  body.section-garantias .stock-summary strong{font-size:19px!important;margin-top:5px!important}
  body.section-garantias .section-head{margin:0 9px 8px!important;width:calc(100% - 18px)!important}
  body.section-garantias .section-head h2{font-size:18px!important}
  body.section-garantias .section-head p{font-size:10.5px!important;line-height:1.4!important}
  body.section-garantias .ops-grid{
    display:flex!important;flex-direction:column!important;gap:9px!important;
    width:calc(100% - 18px)!important;margin:0 9px!important;
  }
  body.section-garantias .ops-grid>section>.panel{
    min-height:0!important;padding:10px!important;border-radius:11px!important;
  }
  body.section-garantias .ops-grid>section>.panel .empty{
    min-height:96px!important;padding:18px 12px!important;border:1px dashed #d8e2dd!important;
    border-radius:9px!important;background:#f9fbfa!important;display:grid!important;place-items:center!important;
  }
  body.section-garantias .conversion-box.section{
    padding:14px!important;border-radius:11px!important;box-shadow:none!important;
  }
  body.section-garantias .conversion-box h3{font-size:17px!important;margin-bottom:10px!important}
  body.section-garantias .conversion-box input,
  body.section-garantias .conversion-box select,
  body.section-garantias .conversion-box textarea{min-height:42px!important;border-radius:9px!important}
}

/* ===== Estoque: cards compactos no celular ===== */
@media(max-width:700px){
  body.section-estoque .ops-grid{
    display:flex!important;flex-direction:column!important;gap:10px!important;
    width:calc(100% - 18px)!important;margin-left:9px!important;margin-right:9px!important;
  }
  body.section-estoque .ops-grid>section,
  body.section-estoque .ops-grid>aside{width:100%!important;min-width:0!important}
  body.section-estoque .ops-grid>section>.section-head{padding:0 2px 7px!important}
  body.section-estoque .ops-grid>section>.section-head h2{font-size:18px!important}
  body.section-estoque .ops-grid>section>.section-head p{font-size:10px!important}
  body.section-estoque .ops-grid>section>.table-wrap{overflow:visible!important;border:0!important;background:transparent!important}
  body.section-estoque .ops-grid>section>.table-wrap table,
  body.section-estoque .ops-grid>section>.table-wrap tbody{display:block!important;width:100%!important}
  body.section-estoque .ops-grid>section>.table-wrap tr{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
    gap:3px 10px!important;padding:11px 12px!important;margin:0 0 7px!important;
    border:1px solid #dce5e1!important;border-radius:11px!important;background:#fff!important;
    box-shadow:none!important;
  }
  body.section-estoque .ops-grid>section>.table-wrap td{
    display:block!important;padding:0!important;border:0!important;min-height:0!important;
    font-size:10.5px!important;grid-template-columns:none!important;
  }
  body.section-estoque .ops-grid>section>.table-wrap td:before{display:none!important}
  body.section-estoque .ops-grid>section>.table-wrap td:nth-child(1){grid-column:1;grid-row:1;color:#173052!important}
  body.section-estoque .ops-grid>section>.table-wrap td:nth-child(1) strong{font-size:12px!important}
  body.section-estoque .ops-grid>section>.table-wrap td:nth-child(2){grid-column:1/-1;grid-row:2;font-size:12px!important;color:#162832!important;margin-top:2px!important}
  body.section-estoque .ops-grid>section>.table-wrap td:nth-child(2) small{display:inline!important;margin-left:5px!important;font-size:9px!important;color:#6f7d84!important}
  body.section-estoque .ops-grid>section>.table-wrap td:nth-child(3){grid-column:1;grid-row:3;color:#66767e!important;font-size:9.5px!important;margin-top:3px!important}
  body.section-estoque .ops-grid>section>.table-wrap td:nth-child(4){grid-column:2;grid-row:1 / span 2;justify-self:end!important;text-align:right!important;font-size:9.5px!important;color:#345c4e!important}
  body.section-estoque .ops-grid>section>.table-wrap td:nth-child(5){grid-column:2;grid-row:3;justify-self:end!important;text-align:right!important}
  body.section-estoque .ops-grid>section>.table-wrap .link-btn{min-height:30px!important;padding:5px 8px!important;border-radius:7px!important;font-size:9px!important}
  body.section-estoque .ops-grid>aside .mini-form,
  body.section-estoque .ops-grid>aside .section{border-radius:11px!important;padding:12px!important}
}

/* ===== Produção: um pouco mais densa ===== */
@media(max-width:700px){
  body.section-ordens .production-col{padding:11px!important;border-radius:11px!important;margin-bottom:7px!important}
  body.section-ordens .production-col h3{font-size:14px!important}
  body.section-ordens .production-card{padding:10px 32px 10px 11px!important;border-radius:9px!important}
  body.section-ordens .production-card strong{font-size:11.5px!important}
  body.section-ordens .production-card span{font-size:9px!important}
  body.section-ordens .production-empty{min-height:60px!important;padding:14px 10px!important;border-radius:9px!important}
}

/* ===== PRODUTOS DE BALCÃO — desktop: menos gigantismo, mais cara de ERP premium ===== */
@media(min-width:1100px){
  body.section-produtos .ops-grid{
    grid-template-columns:minmax(0,1fr) 330px!important;
    gap:14px!important;align-items:start!important;
  }
  body.section-produtos .catalog-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body.section-produtos .frame-card{
    border-radius:13px!important;overflow:hidden!important;
    box-shadow:0 8px 18px rgba(15,23,42,.035)!important;
  }
  body.section-produtos .frame-card .frame-visual{
    aspect-ratio:auto!important;height:138px!important;min-height:138px!important;
    background:linear-gradient(145deg,#edf4f1,#fafcfb)!important;
  }
  body.section-produtos .frame-card .frame-placeholder{font-size:20px!important}
  body.section-produtos .frame-body{padding:12px!important}
  body.section-produtos .frame-body .brandline{font-size:8px!important;letter-spacing:.11em!important}
  body.section-produtos .frame-body h3{font-size:13px!important;line-height:1.25!important;margin:4px 0!important}
  body.section-produtos .frame-meta{font-size:9px!important;line-height:1.35!important}
  body.section-produtos .stock-line{font-size:10px!important;margin-top:9px!important;padding-top:8px!important}
  body.section-produtos .frame-body .link-btn{font-size:9px!important}
  body.section-produtos .frame-body details{margin-top:8px!important}
  body.section-produtos .ops-grid>aside{top:76px!important}
  body.section-produtos .retail-sale-box{
    margin-top:0!important;padding:14px!important;border-radius:14px!important;
    box-shadow:0 10px 22px rgba(15,23,42,.04)!important;
  }
  body.section-produtos .retail-sale-head{margin-bottom:9px!important}
  body.section-produtos .retail-sale-head h3{font-size:16px!important;line-height:1.2!important}
  body.section-produtos .retail-sale-head p{font-size:9px!important;line-height:1.35!important}
  body.section-produtos .retail-sale-badge{padding:6px 9px!important;font-size:8px!important}
  body.section-produtos .category-palette>span{font-size:8px!important}
  body.section-produtos .category-chips{grid-template-columns:1fr 1fr!important;gap:6px!important}
  body.section-produtos .category-chip{min-height:44px!important;padding:7px 8px!important;border-radius:9px!important}
  body.section-produtos .category-chip b{width:26px!important;height:26px!important;font-size:12px!important}
  body.section-produtos .category-chip small{font-size:9px!important;line-height:1.15!important}
  body.section-produtos .field-help{font-size:8px!important;line-height:1.3!important}
  body.section-produtos .retail-sale-form{gap:7px!important}
  body.section-produtos .retail-sale-form select,
  body.section-produtos .retail-sale-form input{min-height:38px!important;border-radius:8px!important;font-size:10px!important}
  body.section-produtos .retail-sale-form .btn{min-height:40px!important;border-radius:9px!important;font-size:10px!important}
  body.section-produtos .mini-form{padding:14px!important;border-radius:14px!important}
}
@media(min-width:1450px){
  body.section-produtos .catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

/* Produtos no mobile: cards menores e painel de venda acima do cadastro */
@media(max-width:700px){
  body.section-produtos .catalog-grid{grid-template-columns:1fr 1fr!important;gap:8px!important}
  body.section-produtos .frame-card{border-radius:11px!important;overflow:hidden!important}
  body.section-produtos .frame-card .frame-visual{height:102px!important;aspect-ratio:auto!important}
  body.section-produtos .frame-body{padding:10px!important}
  body.section-produtos .frame-body h3{font-size:12px!important}
  body.section-produtos .frame-body .brandline{font-size:8px!important}
  body.section-produtos .frame-meta{font-size:9px!important}
  body.section-produtos .stock-line{display:grid!important;gap:3px!important;font-size:9px!important}
  body.section-produtos .ops-grid>aside{gap:9px!important}
  body.section-produtos .retail-sale-box{padding:12px!important;border-radius:11px!important}
}
@media(max-width:390px){body.section-produtos .catalog-grid{grid-template-columns:1fr!important}}

/* V2.0.18.1 — cumulativo: preserva V2.0.17 + venda rápida + menu mobile inferior */
:root{
  --md-ui-xs:10px;
  --md-ui-sm:11px;
  --md-ui-label:12px;
  --md-ui-body:14px;
  --md-ui-control:14px;
  --md-ui-card-title:16px;
  --md-ui-section-title:20px;
}
body.md-ref-ui{font-size:var(--md-ui-body);line-height:1.48}
.ref-main :where(input,select,textarea){font-size:var(--md-ui-control)!important}
.ref-main :where(.field label,.compact-form label,.panel label,.sale-client-box label,.sale-cart-note label){font-size:var(--md-ui-label)!important;line-height:1.3!important}
.ref-main :where(.field-help,.table-note,.hint,.frame-meta){font-size:var(--md-ui-sm)!important;line-height:1.4!important}
.ref-main :where(.btn,.link-btn,button){font-size:13px!important;line-height:1.2}
.ref-main :where(.panel h3,.mini-form h3){font-size:var(--md-ui-card-title)!important;line-height:1.25!important}
.ref-main :where(.section-head h2){font-size:var(--md-ui-section-title)!important;line-height:1.2!important}

/* venda rápida — fluxo orientado à tarefa */
body.section-produtos .retail-sale-box{
  padding:16px!important;
  border:1px solid #d9e4ea!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#fff 0%,#f8fbfc 100%)!important;
  color:#17324a!important;
  box-shadow:0 12px 28px rgba(15,23,42,.06)!important;
}
body.section-produtos .retail-sale-head{
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
  gap:10px!important;margin-bottom:12px!important;padding-bottom:11px!important;border-bottom:1px solid #e6edf2!important;
}
body.section-produtos .retail-sale-head h3{font-size:17px!important;margin:0 0 4px!important;color:#102b43!important}
body.section-produtos .retail-sale-head p{font-size:11px!important;line-height:1.4!important;margin:0!important;color:#627689!important}
body.section-produtos .retail-sale-badge{font-size:10px!important;padding:7px 10px!important}
body.section-produtos .retail-sale-form{display:grid!important;gap:11px!important}
body.section-produtos .retail-step{display:grid!important;gap:7px!important}
body.section-produtos .retail-field{display:grid!important;gap:6px!important}
body.section-produtos .retail-field>span,
body.section-produtos .category-palette>span{
  font-size:10px!important;font-weight:850!important;letter-spacing:.09em!important;text-transform:uppercase!important;color:#5d7385!important;
}
body.section-produtos .retail-sale-form select,
body.section-produtos .retail-sale-form input{
  min-height:44px!important;border:1px solid #ced9e1!important;border-radius:10px!important;background:#fff!important;color:#132b3f!important;
  padding:0 12px!important;font-size:13px!important;
}
body.section-produtos .retail-sale-form select:focus,
body.section-produtos .retail-sale-form input:focus{outline:none!important;border-color:#1478cf!important;box-shadow:0 0 0 3px rgba(20,120,207,.10)!important}
body.section-produtos .retail-inline{display:grid!important;grid-template-columns:110px minmax(0,1fr)!important;gap:8px!important}
body.section-produtos .retail-kpis{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}
body.section-produtos .retail-kpi{min-height:64px!important;padding:9px 10px!important;border:1px solid #dce6ec!important;border-radius:11px!important;background:#fff!important}
body.section-produtos .retail-kpi small{display:block!important;font-size:9px!important;font-weight:850!important;letter-spacing:.05em!important;text-transform:uppercase!important;color:#718393!important}
body.section-produtos .retail-kpi strong{display:block!important;margin-top:5px!important;font-size:14px!important;line-height:1.1!important;color:#15314a!important}
body.section-produtos .retail-kpi.is-accent{background:linear-gradient(135deg,#0f5d57,#167069)!important;border-color:#0f5d57!important}
body.section-produtos .retail-kpi.is-accent small,body.section-produtos .retail-kpi.is-accent strong{color:#fff!important}
body.section-produtos .retail-submit{min-height:44px!important;border-radius:10px!important;font-size:12px!important;background:linear-gradient(135deg,#1376d3,#1d8ef3)!important;border-color:#1376d3!important;box-shadow:0 9px 18px rgba(19,118,211,.16)!important}
body.section-produtos .retail-footnote{margin:0!important;font-size:10px!important;line-height:1.4!important;color:#718393!important}
body.section-produtos .field-help{font-size:9px!important}

/* MENU MOBILE NATIVO — os 4 módulos vão para baixo, não ficam mais como faixa no topo */
@media(max-width:900px){
  body.md-ref-ui .ref-main{padding-bottom:94px!important}
  body.md-ref-ui .mobile-license{min-height:60px!important;height:auto!important;padding:8px 12px!important}
  body.md-ref-ui .mobile-hubs{
    position:fixed!important;
    left:7px!important;right:7px!important;bottom:max(7px,env(safe-area-inset-bottom))!important;
    z-index:140!important;
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:3px!important;padding:6px!important;
    width:auto!important;max-width:none!important;
    overflow:visible!important;
    background:rgba(255,255,255,.96)!important;
    border:1px solid #d8e2e8!important;border-radius:16px!important;
    box-shadow:0 14px 36px rgba(15,23,42,.18)!important;
    backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  }
  body.md-ref-ui .mobile-hubs .hub-tile{
    min-width:0!important;width:auto!important;min-height:54px!important;
    padding:6px 3px!important;border-radius:11px!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;
    background:transparent!important;box-shadow:none!important;color:#657789!important;
  }
  body.md-ref-ui .mobile-hubs .hub-icon{font-size:17px!important;line-height:1!important;margin:0!important;color:var(--hub)!important}
  body.md-ref-ui .mobile-hubs .hub-tile strong{font-size:9px!important;line-height:1.05!important;text-align:center!important;color:#536474!important;white-space:normal!important}
  body.md-ref-ui .mobile-hubs .hub-key{display:none!important}
  body.md-ref-ui .mobile-hubs .hub-tile.active{
    background:color-mix(in srgb,var(--hub) 12%,#fff)!important;
    box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--hub) 24%,#fff)!important;
  }
  body.md-ref-ui .mobile-hubs .hub-tile.active strong{color:#172a3a!important}
  body.section-vendas .seller-mobile-dock{bottom:max(76px,calc(env(safe-area-inset-bottom) + 76px))!important;z-index:130!important}
  body.md-ref-ui .md-footer{margin-bottom:12px!important}
  body.section-produtos .retail-sale-head{display:block!important}
  body.section-produtos .retail-sale-badge{margin-top:7px!important}
}
@media(max-width:520px){
  body.section-produtos .retail-sale-box{padding:13px!important;border-radius:13px!important}
  body.section-produtos .retail-kpis{grid-template-columns:1fr 1fr 1fr!important}
  body.section-produtos .retail-kpi{padding:8px!important;min-height:60px!important}
  body.section-produtos .retail-kpi strong{font-size:12px!important}
  body.section-produtos .retail-inline{grid-template-columns:92px minmax(0,1fr)!important}
  body.section-produtos .category-chip{min-height:50px!important}
}
@media(max-width:390px){
  body.md-ref-ui .mobile-hubs{left:5px!important;right:5px!important;padding:5px!important}
  body.md-ref-ui .mobile-hubs .hub-tile strong{font-size:8.5px!important}
  body.section-produtos .retail-kpis{grid-template-columns:1fr!important}
  body.section-produtos .retail-inline{grid-template-columns:1fr!important}
}


/* ==========================================================================
   V2.0.19 — NÚCLEO TIPOGRÁFICO ÚNICO
   Objetivo: impedir que patches antigos mudem o tamanho das fontes por tela.
   Esta camada só padroniza tipografia; não altera grids, fluxos ou regras.
   ========================================================================== */
:root{
  --md-type-micro:10px;
  --md-type-caption:11px;
  --md-type-meta:12px;
  --md-type-label:12px;
  --md-type-action:13px;
  --md-type-body:14px;
  --md-type-control:14px;
  --md-type-card:15px;
  --md-type-card-strong:16px;
  --md-type-section:20px;
  --md-type-page:22px;
  --md-type-hero:28px;
  --md-type-kpi:20px;
}

/* base */
body.md-ref-ui{
  font-size:var(--md-type-body)!important;
  line-height:1.48!important;
}
body.md-ref-ui .ref-main{
  font-size:var(--md-type-body)!important;
}

/* texto comum */
body.md-ref-ui .ref-main :where(
  p,li,dd,.frame-meta,.connection-card p,.integration-card p,
  .digital-tool-card p,.production-card span,.order-event strong,
  .crm-row-main span,.crm-mini-row span,.timeline-item p
){
  font-size:var(--md-type-meta)!important;
  line-height:1.45!important;
}

/* microcopy / legendas */
body.md-ref-ui .ref-main :where(
  small,.eyebrow,.brandline,.table-note,.hint,.guide-note,.accuracy-note,
  .field-help,.nav-caption,.section-kicker,.lens-kicker,.retail-footnote,
  .production-empty span,.connection-state small,.connection-endpoint small,
  .crm-row-main small,.crm-mini-row small,.timeline-item time,.order-event time
){
  font-size:var(--md-type-caption)!important;
  line-height:1.35!important;
}

/* labels */
body.md-ref-ui .ref-main :where(
  label,.field label,.compact-form label,.panel label,
  .sale-client-box label,.sale-cart-note label,.filter-deck label,
  .report-filter label,.retail-field>span,.category-palette>span
){
  font-size:var(--md-type-label)!important;
  line-height:1.3!important;
}

/* controles */
body.md-ref-ui .ref-main :where(input,select,textarea){
  font-size:var(--md-type-control)!important;
  line-height:1.35!important;
}
body.md-ref-ui .ref-main :where(.btn,.link-btn,button){
  font-size:var(--md-type-action)!important;
  line-height:1.2!important;
}

/* tabelas */
body.md-ref-ui .ref-main table{font-size:var(--md-type-body)!important}
body.md-ref-ui .ref-main th{font-size:var(--md-type-caption)!important}
body.md-ref-ui .ref-main td{font-size:var(--md-type-body)!important}
body.md-ref-ui .ref-main .mobile-cards td:before{font-size:var(--md-type-micro)!important}

/* títulos */
body.md-ref-ui .ref-main :where(
  .panel h3,.mini-form h3,.connection-card h3,.frame-card h3,.lens-card h3,
  .crm-block h3,.crm-contact-card h3,.production-col h3,.retail-sale-head h3
){
  font-size:var(--md-type-card)!important;
  line-height:1.25!important;
}
body.md-ref-ui .ref-main :where(
  .section-head h2,.module-command h2,.digital-hero h2,.integration-head h2,
  .integration-command h2
){
  font-size:var(--md-type-section)!important;
  line-height:1.18!important;
}
body.md-ref-ui .ref-main :where(.page-title-card h1,.md-screen-title){
  font-size:var(--md-type-page)!important;
  line-height:1.12!important;
}

/* KPIs / números */
body.md-ref-ui .ref-main :where(
  .ref-stat strong,.ops-kpis strong,.stock-summary strong,.summary-box strong,
  .metric strong,.status-dock strong,.finance-dock strong,.retail-kpi strong
){
  font-size:var(--md-type-kpi)!important;
  line-height:1.1!important;
  font-variant-numeric:tabular-nums;
}
body.md-ref-ui .ref-main :where(
  .ref-stat span,.ref-stat small,.ops-kpis small,.ops-kpis span,
  .stock-summary span,.summary-box span,.status-dock span,.finance-dock span
){
  font-size:var(--md-type-caption)!important;
}

/* navegação desktop */
body.md-ref-ui .ref-rail :where(.hub-tile strong,.submodule-tile strong,.rail-area-title strong){
  font-size:13px!important;
}
body.md-ref-ui .ref-rail :where(.hub-key,.submodule-tile .hub-key,.ref-brand small,.rail-home){
  font-size:11px!important;
}
body.md-ref-ui .license-block small,
body.md-ref-ui .license-block span{font-size:11px!important}
body.md-ref-ui .license-block strong{font-size:16px!important}
body.md-ref-ui .ref-brand strong{font-size:15px!important}

/* dashboard */
body.section-dashboard .ops-welcome small,
body.section-dashboard .ops-section-head small{font-size:11px!important}
body.section-dashboard .ops-welcome h2{font-size:28px!important;line-height:1.08!important}
body.section-dashboard .ops-welcome p{font-size:14px!important}
body.section-dashboard .ops-actions>a{font-size:13px!important}
body.section-dashboard .ops-primary small{font-size:10px!important}
body.section-dashboard .ops-primary b{font-size:13px!important}
body.section-dashboard .ops-module b{font-size:14px!important}
body.section-dashboard .ops-module small{font-size:11px!important}
body.section-dashboard .attention-list b{font-size:13px!important}
body.section-dashboard .attention-list small{font-size:11px!important}
body.section-dashboard .ops-area-grid b{font-size:13px!important}
body.section-dashboard .ops-area-grid span{font-size:11px!important}

/* vendas / orçamento */
body.section-vendas .seller-quickbar b{font-size:13px!important}
body.section-vendas .seller-quickbar small{font-size:11px!important}
body.section-vendas .seller-quickbar>a{font-size:12px!important}
body.section-vendas .sale-mode-card small{font-size:10px!important}
body.section-vendas .sale-mode-card strong{font-size:17px!important}
body.section-vendas .sale-mode-card span{font-size:12px!important}
body.section-vendas .sale-mode-note{font-size:12px!important}
body.section-vendas .sale-cart-head span{font-size:11px!important}
body.section-vendas .sale-cart-head strong{font-size:24px!important}
body.section-vendas .sale-summary-list span{font-size:12px!important}
body.section-vendas .sale-summary-list strong{font-size:13px!important}
body.section-vendas .sale-band strong{font-size:18px!important}
body.section-vendas .sale-band span{font-size:11px!important}
body.section-vendas .choice-card strong,
body.section-vendas .choice-card-photo strong{font-size:13px!important}
body.section-vendas .choice-card small,
body.section-vendas .choice-card-photo small{font-size:11px!important}
body.section-vendas .choice-card b,
body.section-vendas .choice-card-photo b{font-size:14px!important}
body.section-vendas .reserve-line,
body.section-vendas .pdv-treatments label{font-size:12px!important}
body.section-vendas .seller-mobile-dock small{font-size:10px!important}
body.section-vendas .seller-mobile-dock strong{font-size:17px!important}

/* produtos / balcão */
body.section-produtos .frame-body .brandline{font-size:10px!important}
body.section-produtos .frame-body h3{font-size:14px!important;line-height:1.25!important}
body.section-produtos .frame-meta{font-size:11px!important}
body.section-produtos .stock-line{font-size:11px!important}
body.section-produtos .frame-body .link-btn{font-size:11px!important}
body.section-produtos .retail-sale-head h3{font-size:16px!important}
body.section-produtos .retail-sale-head p{font-size:12px!important}
body.section-produtos .retail-sale-badge{font-size:10px!important}
body.section-produtos .category-palette>span,
body.section-produtos .retail-field>span{font-size:11px!important}
body.section-produtos .category-chip small{font-size:11px!important}
body.section-produtos .field-help{font-size:11px!important}
body.section-produtos .retail-sale-form select,
body.section-produtos .retail-sale-form input{font-size:14px!important}
body.section-produtos .retail-sale-form .btn{font-size:13px!important}
body.section-produtos .retail-kpi small{font-size:10px!important}
body.section-produtos .retail-kpi strong{font-size:15px!important}
body.section-produtos .retail-footnote{font-size:11px!important}

/* produção */
body.section-ordens .production-col h3{font-size:15px!important}
body.section-ordens .production-col>small{font-size:11px!important}
body.section-ordens .production-card strong{font-size:13px!important}
body.section-ordens .production-card span{font-size:11px!important}
body.section-ordens .production-empty{font-size:13px!important}
body.section-ordens .production-empty span{font-size:11px!important}

/* estoque */
body.section-estoque .ops-grid>section>.section-head h2{font-size:19px!important}
body.section-estoque .ops-grid>section>.section-head p{font-size:12px!important}
body.section-estoque .ops-grid>section>.table-wrap td{font-size:12px!important}
body.section-estoque .ops-grid>section>.table-wrap td:nth-child(1) strong{font-size:13px!important}
body.section-estoque .ops-grid>section>.table-wrap td:nth-child(2){font-size:13px!important}
body.section-estoque .ops-grid>section>.table-wrap td:nth-child(2) small{font-size:11px!important}
body.section-estoque .ops-grid>section>.table-wrap td:nth-child(3),
body.section-estoque .ops-grid>section>.table-wrap td:nth-child(4){font-size:11px!important}
body.section-estoque .ops-grid>section>.table-wrap .link-btn{font-size:11px!important}

/* relacionamento / pós-venda */
body.section-crm .crm-command small{font-size:11px!important}
body.section-crm .crm-summary-modern span{font-size:11px!important}
body.section-crm .crm-summary-modern small{font-size:11px!important}
body.section-crm .crm-block>header small,
body.section-crm .crm-contact-card>header small,
body.section-crm .crm-history-card>header small{font-size:11px!important}
body.section-crm .crm-block>header>span{font-size:11px!important}
body.section-crm .crm-row-code{font-size:11px!important}
body.section-crm .crm-row-main strong{font-size:13px!important}
body.section-crm .crm-row-main span{font-size:11px!important}
body.section-crm .crm-row-main small{font-size:11px!important}
body.section-crm .crm-row-post .crm-action,
body.section-crm .crm-row-post .crm-done{font-size:12px!important}

/* financeiro */
body.section-financeiro .finance-pills span{font-size:11px!important}
body.section-financeiro>.stock-summary span{font-size:11px!important}
body.section-financeiro .finance-ledger .quote-row p{font-size:11px!important}
body.section-financeiro .finance-ledger .quote-total small{font-size:10px!important}

/* garantias */
body.section-garantias .stock-summary span{font-size:11px!important}
body.section-garantias .section-head p{font-size:12px!important}

/* digital */
body.section-digital .digital-tool-card small{font-size:10px!important}
body.section-digital .digital-tool-card p{font-size:12px!important}
body.section-digital .digital-tool-card>b{font-size:11px!important}

/* rodapé */
body.md-ref-ui .md-footer{font-size:11px!important}
body.md-ref-ui .md-footer div strong{font-size:12px!important}
body.md-ref-ui .md-footer p,
body.md-ref-ui .md-footer a{font-size:11px!important}

/* mobile: preserva a mesma escala sem miniaturizar páginas isoladas */
@media(max-width:900px){
  body.md-ref-ui{font-size:14px!important}
  body.md-ref-ui .mobile-license small{font-size:10px!important}
  body.md-ref-ui .mobile-license strong{font-size:15px!important}

  body.md-ref-ui .mobile-hubs .hub-tile strong{font-size:10px!important}
  body.md-ref-ui .mobile-hubs .hub-icon{font-size:17px!important}

  body.md-ref-ui .ref-main :where(input,select,textarea){font-size:14px!important}
  body.md-ref-ui .ref-main :where(.btn,.link-btn,button){font-size:13px!important}

  body.md-ref-ui .ref-main :where(
    .section-head h2,.module-command h2,.digital-hero h2,.integration-head h2
  ){font-size:19px!important}

  body.md-ref-ui .ref-main :where(
    .panel h3,.mini-form h3,.frame-card h3,.lens-card h3,.production-col h3
  ){font-size:15px!important}

  body.md-ref-ui .ref-main .mobile-cards td{font-size:13px!important}
  body.md-ref-ui .ref-main .mobile-cards td:before{font-size:10px!important}

  body.section-produtos .frame-body h3{font-size:13px!important}
  body.section-produtos .frame-meta,
  body.section-produtos .stock-line,
  body.section-produtos .frame-body .link-btn{font-size:11px!important}
  body.section-produtos .retail-sale-head p{font-size:11px!important}
  body.section-produtos .category-chip small{font-size:10.5px!important}

  body.section-ordens .production-card strong{font-size:12px!important}
  body.section-ordens .production-card span{font-size:11px!important}

  body.section-crm .crm-row-main strong{font-size:13px!important}
  body.section-crm .crm-row-main span,
  body.section-crm .crm-row-main small{font-size:11px!important}
}


/* V2.0.20 — busca de cliente por nome ou CPF na venda rápida */
.section-produtos .retail-client-picker{
  display:grid!important;
  gap:7px!important;
}
.section-produtos .retail-client-search-wrap{
  position:relative!important;
}
.section-produtos .retail-client-search-wrap .retail-client-search-icon{
  position:absolute!important;
  left:13px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  color:#6e8090!important;
  font-size:15px!important;
  pointer-events:none!important;
  z-index:1!important;
}
.section-produtos #retail-client-search{
  width:100%!important;
  padding-left:38px!important;
  min-height:46px!important;
  border:1px solid #ced8e1!important;
  border-radius:12px!important;
  background:#fff!important;
  font-size:14px!important;
}
.section-produtos #retail-client-search:focus{
  outline:none!important;
  border-color:#1673c7!important;
  box-shadow:0 0 0 3px rgba(22,115,199,.10)!important;
}
.section-produtos #retail-client-select{
  width:100%!important;
}
.section-produtos .retail-client-result{
  display:block!important;
  min-height:16px!important;
  margin:0!important;
  color:#718396!important;
  font-size:11px!important;
  line-height:1.35!important;
}
@media(max-width:760px){
  .section-produtos #retail-client-search{min-height:44px!important}
}
