:root{
  --navy:#0f2347;--blue:#2563eb;--blue2:#3b82f6;--cyan:#06b6d4;--green:#16a56a;
  --purple:#7c5ce7;--orange:#f59e0b;--ink:#13213d;--muted:#6f7f9c;--line:#e4ebf5;
  --bg:#f5f8fc;--surface:#fff;--danger:#d84b5f;--warning:#b87500;--shadow:0 12px 35px rgba(38,71,120,.08)
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}.appShell{min-height:100vh}.topbar{height:92px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;position:sticky;top:0;z-index:7;backdrop-filter:blur(10px)}.brandButton{border:0;background:transparent;display:flex;align-items:center;gap:13px;cursor:pointer;padding:6px}.brandMark{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#1d4ed8,#38bdf8);color:white;font-weight:900;letter-spacing:-1px;box-shadow:0 8px 20px rgba(37,99,235,.25)}.brandText{display:flex;flex-direction:column;align-items:flex-start;line-height:1.05}.brandText strong{font-size:25px;color:#0d1e42}.brandText small{color:var(--muted);margin-top:5px;font-size:12px}.topbarRight{display:flex;align-items:center;gap:20px}.dateBox{padding-right:20px;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:flex-end;color:var(--muted);font-size:12px}.dateBox strong{font-size:18px;color:var(--ink);margin-top:2px}.cashBadge{padding:12px 16px;border-radius:14px;background:#eef2f7;color:var(--muted);font-size:13px;font-weight:700}.cashBadge.open{background:#e9fbf2;color:#147348}.cashBadge.closed{background:#fff1f3;color:#b7364d}.content{max-width:1450px;margin:0 auto;padding:34px 42px 55px}.moduleHeader{display:flex;align-items:center;gap:18px;margin-bottom:22px}.moduleHeader.hidden{display:none}.moduleHeader h1{margin:0;font-size:28px}.moduleHeader p{margin:5px 0 0;color:var(--muted)}.backHome{border:1px solid var(--line);background:#fff;border-radius:12px;padding:10px 14px;cursor:pointer;color:var(--navy);font-weight:700}.backHome:hover{border-color:#b9c8df;background:#f9fbff}
.homeHero{padding:18px 6px 26px}.homeHero .eyebrow{color:#7990b4;font-size:15px}.homeHero h1{font-size:44px;line-height:1;margin:7px 0 12px;color:#0d1e42}.homeHero p{margin:0;color:var(--muted);font-size:17px}.moduleGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.moduleCard{min-height:132px;border:1px solid var(--line);background:var(--surface);border-radius:19px;padding:22px;display:flex;align-items:center;gap:18px;cursor:pointer;box-shadow:var(--shadow);transition:.18s}.moduleCard:hover{transform:translateY(-2px);border-color:#c8d7ec;box-shadow:0 16px 40px rgba(38,71,120,.12)}.moduleIcon{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;font-size:29px;font-weight:800;color:#fff;flex:0 0 auto}.iBlue{background:linear-gradient(135deg,#2563eb,#38bdf8)}.iGreen{background:linear-gradient(135deg,#13a96a,#3dd5a1)}.iPurple{background:linear-gradient(135deg,#6d5ce8,#9f7aea)}.iOrange{background:linear-gradient(135deg,#f59e0b,#fb923c)}.iCyan{background:linear-gradient(135deg,#06b6d4,#2dd4bf)}.iIndigo{background:linear-gradient(135deg,#4f46e5,#60a5fa)}.moduleCopy{min-width:0}.moduleCopy b{display:block;font-size:20px;margin-bottom:7px}.moduleCopy span{color:var(--muted);font-size:14px}.arrow{margin-left:auto;font-size:28px;color:#627493}.secondaryActions{display:flex;justify-content:center;gap:18px;margin:22px 0}.smallModule{width:280px;min-height:78px;border:1px solid var(--line);background:#fff;border-radius:16px;padding:16px 18px;display:flex;align-items:center;gap:14px;cursor:pointer;box-shadow:0 8px 26px rgba(38,71,120,.05)}.smallModule:hover{border-color:#c8d7ec}.smallIcon{width:44px;height:44px;border-radius:13px;background:#eef3fb;display:grid;place-items:center;color:#34537f;font-size:21px}.daySummary{margin-top:26px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:22px 24px;box-shadow:var(--shadow)}.summaryHead{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.summaryHead h3{margin:0;font-size:19px}.summaryHead span{color:var(--muted);font-size:13px}.summaryGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:0}.summaryItem{padding:4px 22px;border-right:1px solid var(--line)}.summaryItem:first-child{padding-left:0}.summaryItem:last-child{border-right:0}.summaryItem small{color:var(--muted);display:block;margin-bottom:7px}.summaryItem strong{font-size:25px;color:#173d7a}
.grid{display:grid;gap:16px}.grid4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:20px;box-shadow:0 8px 30px rgba(38,71,120,.05)}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:16px;flex-wrap:wrap}.toolbar input[type=search]{flex:1;min-width:260px}.field{display:flex;flex-direction:column;gap:7px}.field label,label{font-size:12px;font-weight:700;color:#5f6f8b}input,select,textarea{border:1px solid #dce5f2;border-radius:11px;padding:11px 12px;background:#fff;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#7aa7ef;box-shadow:0 0 0 3px rgba(37,99,235,.08)}textarea{width:100%;min-height:100px;resize:vertical}.btn{border:1px solid transparent;border-radius:11px;padding:10px 14px;cursor:pointer;background:#eef2f7;color:var(--ink);font-weight:600}.btn:hover{filter:brightness(.98)}.btn.primary{background:linear-gradient(135deg,#2563eb,#3388ff);color:white;box-shadow:0 6px 18px rgba(37,99,235,.18)}.btn.danger{background:#fff0f2;color:var(--danger)}.btn.outline{background:#fff;border-color:var(--line)}.row{display:flex;gap:10px;align-items:center}.grow{flex:1}.muted{color:var(--muted)}.kpi strong{font-size:25px}.kpi small{display:block;color:var(--muted);margin-top:6px}table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}th,td{text-align:left;padding:12px 13px;border-bottom:1px solid var(--line);font-size:13px}th{background:#f7f9fd;color:#60718d;font-weight:700}tr:last-child td{border-bottom:0}.right{text-align:right}.status{display:inline-block;border-radius:999px;padding:5px 9px;font-size:11px;background:#eef2f7}.status.bad{background:#fff0f2;color:var(--danger)}.status.good{background:#e9fbf2;color:#147348}.status.warn{background:#fff6df;color:var(--warning)}.empty{padding:36px;text-align:center;color:var(--muted)}.modal{position:fixed;inset:0;background:rgba(10,24,50,.42);display:flex;align-items:center;justify-content:center;padding:25px;z-index:20;backdrop-filter:blur(3px)}.modal>div{background:#fff;width:min(930px,95vw);max-height:90vh;overflow:auto;border-radius:22px;padding:25px;box-shadow:0 25px 70px rgba(10,24,50,.2)}.modal h3{margin-top:0;font-size:22px}.cart{margin-top:14px}.linkBtn{border:0;background:transparent;padding:0;color:#2563eb;text-decoration:none;cursor:pointer;font:inherit;font-weight:700}.saleTotals{display:grid;grid-template-columns:1fr 220px 1fr auto;gap:14px;align-items:end}.saleTotals>div{display:flex;flex-direction:column;gap:6px}.saleTotals>div:last-child{flex-direction:row;align-items:center}.saleTotals strong{font-size:22px}.installmentPreview{margin:16px 0;padding:15px;border-radius:13px;background:#f4f7fb;display:flex;gap:12px;flex-direction:column}.installmentPreview b{font-size:20px}.installmentPreview span{color:var(--muted)}#toast{position:fixed;right:25px;bottom:25px;background:#102344;color:#fff;padding:12px 16px;border-radius:11px;opacity:0;pointer-events:none;transition:.2s;z-index:30;box-shadow:0 10px 30px rgba(10,24,50,.2)}#toast.show{opacity:1}
.reportStats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:16px 0}.reportStat{background:#f7f9fd;border:1px solid var(--line);border-radius:14px;padding:14px}.reportStat small{display:block;color:var(--muted);margin-bottom:7px}.reportStat b{font-size:18px}.reportStat.in b{color:#147348}.reportStat.out b{color:var(--danger)}
@media(max-width:1000px){.moduleGrid{grid-template-columns:repeat(2,1fr)}.grid4,.grid3{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}.summaryGrid{grid-template-columns:1fr}.summaryItem{border-right:0;border-bottom:1px solid var(--line);padding:14px 0}.summaryItem:last-child{border-bottom:0}.saleTotals{grid-template-columns:1fr 1fr}.saleTotals>div:last-child{grid-column:1/-1}.reportStats{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.topbar{padding:0 18px;height:80px}.brandText small,.dateBox{display:none}.brandText strong{font-size:21px}.content{padding:24px 18px}.moduleGrid{grid-template-columns:1fr}.homeHero h1{font-size:35px}.secondaryActions{flex-direction:column}.smallModule{width:100%}.reportStats{grid-template-columns:1fr 1fr}}
/* v0.8 - home compacta e fluxo de vendas separado */
.topbar{height:76px;padding:0 30px}.brandMark{width:42px;height:42px;border-radius:13px}.brandText strong{font-size:23px}.content{padding:22px 28px 30px}.homeCompact{display:flex;flex-direction:column;gap:14px}.compactGrid{gap:12px}.compactGrid .moduleCard{min-height:94px;padding:16px 18px;border-radius:16px}.compactGrid .moduleIcon{width:52px;height:52px;border-radius:15px;font-size:23px}.compactGrid .moduleCopy b{font-size:18px;margin-bottom:4px}.compactGrid .moduleCopy span{font-size:13px}.compactSecondary{margin:0;gap:12px}.compactSecondary .smallModule{min-height:58px;padding:10px 14px;width:240px}.compactSecondary .smallIcon{width:38px;height:38px}.compactSummary{margin-top:0;padding:14px 18px;border-radius:16px}.compactSummary .summaryHead{margin-bottom:10px}.compactSummary .summaryHead h3{font-size:17px}.compactSummary .summaryGrid{min-height:48px}.compactSummary .summaryItem{padding:0 18px}.compactSummary .summaryItem strong{font-size:21px}.moduleHeader{margin-bottom:18px}.salesToolbar{justify-content:flex-end}.saleWorkspace{display:flex;flex-direction:column;gap:14px}.saleClientCard,.saleProductCard{display:flex;align-items:center;justify-content:space-between;gap:18px}.saleClientCard>div,.saleProductCard>div{display:flex;flex-direction:column;gap:5px}.saleProductCard{align-items:flex-start;flex-wrap:wrap}.saleProductCard #cart{width:100%}.sectionLabel{font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.saleClientCard strong,.saleProductCard strong{font-size:20px}.saleActions{display:flex;justify-content:space-between;gap:10px}.pickerList{margin-top:12px;border:1px solid var(--line);border-radius:14px;overflow:hidden;max-height:430px;overflow-y:auto}.pickerRow{width:100%;border:0;border-bottom:1px solid var(--line);background:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;cursor:pointer;color:var(--ink)}.pickerRow:last-child{border-bottom:0}.pickerRow:hover{background:#f6f9ff}.pickerRow span:first-child{display:flex;flex-direction:column;gap:4px}.pickerRow small{color:var(--muted);font-size:12px}.pickerRow span:last-child{color:var(--blue);font-weight:700;font-size:13px}
@media(min-width:900px) and (min-height:700px){body{overflow-y:auto}.homeCompact{min-height:calc(100vh - 128px);justify-content:flex-start}.compactSummary{margin-bottom:0}}

/* v0.9 — fidelidade visual ao layout aprovado */
:root{
  --navy:#10244c;--ink:#11244a;--muted:#7383a2;--line:#dce7f5;--bg:#f4f8fe;
  --shadow:0 10px 28px rgba(30,72,130,.075)
}
body{background:radial-gradient(circle at 78% 8%,rgba(123,183,255,.13),transparent 28%),linear-gradient(180deg,#f8fbff 0%,#f3f8ff 100%)}
.topbar{height:74px;padding:0 34px;background:rgba(255,255,255,.94);box-shadow:0 2px 16px rgba(32,72,125,.035)}
.brandButton{gap:11px}.brandMark{width:45px;height:45px;border-radius:14px;background:linear-gradient(135deg,#1d65ed 0%,#32b9ee 100%);box-shadow:0 8px 22px rgba(36,116,238,.22)}
.brandText strong{font-size:24px;letter-spacing:-.45px}.brandText small{font-size:11px;margin-top:4px}
.dateBox strong{font-size:17px}.cashBadge{padding:11px 16px;border-radius:13px}
.content{max-width:1400px;padding:18px 28px 24px}.homeV09{gap:12px}
.compactGrid{gap:12px}.compactGrid .moduleCard{min-height:96px;padding:15px 18px;border-radius:17px;background:rgba(255,255,255,.94);border:1px solid #dce7f4;box-shadow:0 8px 24px rgba(36,75,128,.055)}
.compactGrid .moduleCard:hover{transform:translateY(-2px);box-shadow:0 13px 30px rgba(36,75,128,.10);border-color:#c8d9ef}
.compactGrid .moduleIcon{width:58px;height:58px;border-radius:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 7px 16px rgba(31,82,160,.14)}
.moduleIcon svg{width:31px;height:31px}.moduleCopy b{color:#10244c;letter-spacing:-.2px}.compactGrid .moduleCopy b{font-size:19px}.compactGrid .moduleCopy span{font-size:12.5px;color:#70809c}.arrow{font-size:25px;color:#4f6282}
.iBlue{background:linear-gradient(135deg,#2879f3,#249df3)}.iGreen{background:linear-gradient(135deg,#18b66f,#2bd19c)}.iPurple{background:linear-gradient(135deg,#7857e9,#966bf1)}.iOrange{background:linear-gradient(135deg,#ff9419,#ffb23f)}.iCyan{background:linear-gradient(135deg,#11b9ce,#24ced0)}.iIndigo{background:linear-gradient(135deg,#5054e9,#5e85f5)}
.compactSecondary{margin:0;gap:12px}.compactSecondary .smallModule{width:240px;min-height:60px;border-radius:15px;background:rgba(255,255,255,.92);box-shadow:0 6px 18px rgba(36,75,128,.045);padding:9px 14px}.compactSecondary .smallIcon{width:40px;height:40px;border-radius:12px;background:#edf3fc;color:#355486}.smallIcon svg{width:22px;height:22px}.compactSecondary .moduleCopy b{font-size:16px;margin-bottom:2px}.compactSecondary .moduleCopy span{font-size:11.5px}
.compactSummary{margin-top:0;padding:14px 18px 13px;border-radius:17px;background:rgba(255,255,255,.94);box-shadow:0 8px 24px rgba(36,75,128,.055)}.compactSummary .summaryHead{margin-bottom:10px}.compactSummary .summaryHead h3{font-size:17px;color:#10244c}.compactSummary .summaryHead span{font-size:11.5px}.compactSummary .summaryGrid{min-height:58px}.compactSummary .summaryItem{display:flex;align-items:center;gap:13px;padding:0 22px}.compactSummary .summaryItem:first-child{padding-left:0}.compactSummary .summaryItem small{font-size:11.5px;margin-bottom:4px}.compactSummary .summaryItem strong{font-size:23px;letter-spacing:-.3px;color:#1b67df}.summaryIcon{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto}.summaryIcon svg{width:22px;height:22px}.sBlue{background:#e8f2ff;color:#176de7}.sGreen{background:#e5faf0;color:#15945b}.sPurple{background:#efeaff;color:#674adf}.summaryItem:nth-child(2) strong{color:#10244c}.summaryItem:nth-child(3) strong{color:#6647df}
.moduleHeader{margin-bottom:16px}.moduleHeader h1{font-size:27px}.backHome{border-radius:12px;box-shadow:0 3px 10px rgba(31,66,110,.04)}
.card{border-color:#dce7f4;border-radius:18px;box-shadow:0 7px 22px rgba(36,75,128,.045)}
.modal{background:rgba(13,30,61,.36)}.modal>div{border:1px solid #dce7f4;box-shadow:0 24px 70px rgba(22,48,92,.20)}
.pickerRow{border:1px solid #e0e8f4;background:#fff;border-radius:13px;padding:13px 14px;margin-top:8px;width:100%;display:flex;justify-content:space-between;align-items:center;cursor:pointer;color:#10244c}.pickerRow:hover{border-color:#b9d0ee;background:#f8fbff}.pickerRow span:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:3px}.pickerRow small{color:#7887a3}
@media(min-width:1050px) and (min-height:650px){.homeV09{min-height:calc(100vh - 116px);justify-content:center}.compactGrid{grid-template-columns:repeat(3,1fr)}}
@media(max-height:760px) and (min-width:1000px){.topbar{height:68px}.content{padding-top:12px}.compactGrid .moduleCard{min-height:84px;padding:12px 16px}.compactGrid .moduleIcon{width:50px;height:50px}.moduleIcon svg{width:27px;height:27px}.compactSecondary .smallModule{min-height:52px}.compactSummary{padding:11px 16px}.compactSummary .summaryGrid{min-height:50px}}

/* v0.10 — aproximação visual fiel ao mockup aprovado */
:root{
  --bg:#f5f9ff;
  --surface:#ffffff;
  --line:#cfe0f4;
  --line-strong:#bcd3ef;
  --ink:#0d2149;
  --muted:#6f82a4;
  --blue:#2678f3;
}
body{
  background:
    radial-gradient(ellipse at 72% 6%,rgba(87,166,255,.17),transparent 34%),
    radial-gradient(ellipse at 22% 72%,rgba(113,191,255,.10),transparent 31%),
    linear-gradient(180deg,#fbfdff 0%,#f3f8ff 100%);
}
.topbar{
  height:80px;
  padding:0 38px;
  border-bottom:1.5px solid #d7e5f5;
  background:rgba(255,255,255,.96);
  box-shadow:0 3px 18px rgba(28,77,135,.045);
}
.brandButton{gap:14px}
.brandMark.rhinoMark{
  width:58px;height:46px;border-radius:0;background:transparent;box-shadow:none;
  color:#2778ef;display:grid;place-items:center;overflow:visible;
}
.rhinoMark svg{width:58px;height:44px;filter:drop-shadow(0 7px 12px rgba(36,118,238,.18))}
.brandText strong{font-size:26px;letter-spacing:-.6px}.brandText small{font-size:12px;color:#7183a1}
.content{max-width:1500px;padding:20px 40px 28px}
.homeV10{position:relative;gap:16px}
.homeV10:before{
  content:"";position:absolute;left:-40px;right:-40px;top:-20px;height:290px;pointer-events:none;z-index:-1;
  background:linear-gradient(155deg,transparent 36%,rgba(81,163,255,.055) 36%,rgba(81,163,255,.055) 58%,transparent 58%);
}
.homeWelcome{
  font-size:18px;color:#6f85aa;line-height:1;font-weight:500;margin:0 0 2px 24px;
}
.compactGrid{gap:16px}
.compactGrid .moduleCard{
  min-height:112px;padding:18px 22px;border-radius:18px;
  border:1.6px solid var(--line-strong);
  background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(255,255,255,.94));
  box-shadow:0 10px 27px rgba(48,91,145,.065),inset 0 1px 0 rgba(255,255,255,.9);
}
.compactGrid .moduleCard:hover{border-color:#9fc3ef;box-shadow:0 16px 34px rgba(37,95,168,.11)}
.compactGrid .moduleIcon{
  width:68px;height:68px;border-radius:18px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 9px 20px rgba(31,82,160,.17);
}
.moduleIcon svg{width:37px;height:37px;stroke-width:1.75}
.compactGrid .moduleCopy b{font-size:22px;letter-spacing:-.45px;margin-bottom:6px}
.compactGrid .moduleCopy span{font-size:14px;color:#7484a1}
.arrow{font-size:32px;color:#294a7b;font-weight:300}
.compactSecondary{gap:16px;margin-top:0}
.compactSecondary .smallModule{
  width:310px;min-height:70px;border:1.5px solid var(--line-strong);border-radius:17px;
  box-shadow:0 8px 22px rgba(48,91,145,.05);background:rgba(255,255,255,.96);padding:12px 17px;
}
.compactSecondary .smallIcon{width:46px;height:46px;border-radius:14px;background:#edf4fd;color:#355789}
.compactSecondary .smallIcon svg{width:25px;height:25px}
.compactSecondary .moduleCopy b{font-size:17px}.compactSecondary .moduleCopy span{font-size:12.5px}
.compactSummary{
  border:1.6px solid var(--line-strong);border-radius:20px;padding:20px 24px 18px;
  box-shadow:0 10px 28px rgba(48,91,145,.06);background:rgba(255,255,255,.97);
}
.compactSummary .summaryHead{margin-bottom:15px}.compactSummary .summaryHead h3{font-size:21px;letter-spacing:-.3px}.compactSummary .summaryHead span{font-size:12.5px}
.compactSummary .summaryGrid{min-height:72px}
.compactSummary .summaryItem{gap:17px;padding:0 32px}
.summaryIcon{width:58px;height:58px}.summaryIcon svg{width:28px;height:28px;stroke-width:1.75}
.compactSummary .summaryItem small{font-size:13px;margin-bottom:5px}.compactSummary .summaryItem strong{font-size:29px}
.moduleHeader{margin-bottom:18px}.backHome{border:1.5px solid var(--line-strong);background:#fff}
.card,table,.modal>div{border-color:var(--line-strong)}
input,select,textarea{border:1.35px solid #cfdff1}
.btn.outline{border-color:var(--line-strong)}
@media(min-width:1050px) and (min-height:700px){
  .homeV10{min-height:calc(100vh - 128px);justify-content:center}
}
@media(max-height:760px) and (min-width:1000px){
  .topbar{height:72px}.content{padding:14px 24px 20px}.homeWelcome{font-size:15px;margin-left:10px}
  .compactGrid{gap:11px}.compactGrid .moduleCard{min-height:89px;padding:12px 16px}
  .compactGrid .moduleIcon{width:52px;height:52px}.moduleIcon svg{width:28px;height:28px}
  .compactGrid .moduleCopy b{font-size:18px;margin-bottom:3px}.compactGrid .moduleCopy span{font-size:12px}
  .compactSecondary .smallModule{min-height:54px;width:250px}.compactSecondary .smallIcon{width:38px;height:38px}
  .compactSummary{padding:12px 18px}.compactSummary .summaryHead{margin-bottom:8px}.summaryIcon{width:42px;height:42px}.summaryIcon svg{width:22px;height:22px}.compactSummary .summaryItem strong{font-size:22px}
}

/* v0.11 — venda: desconto flexível, pagamento obrigatório e crediário detalhado */
.saleTotalsV11{grid-template-columns:minmax(150px,.7fr) minmax(270px,1.2fr) minmax(150px,.7fr) minmax(320px,1.35fr);align-items:end}
.discountBlock small{color:#6f82a4;font-size:12px;margin-top:2px}.discountControls{display:grid!important;grid-template-columns:82px 1fr;gap:8px}.discountControls select,.discountControls input{width:100%}
.paymentBlock{padding:12px 14px;border:1.6px solid #9fc3ef;border-radius:15px;background:linear-gradient(180deg,#f8fbff,#edf5ff);display:grid!important;grid-template-columns:1fr auto;gap:8px 10px;align-items:end!important;box-shadow:0 6px 18px rgba(37,99,235,.07)}
.paymentBlock label{grid-column:1/-1;color:#234b82;font-size:13px}.paymentSelect{min-width:190px;border:1.7px solid #85afea;background:#fff;font-weight:700;color:#53647e}.paymentSelect.selected{border-color:#2678f3;color:#0d2149;box-shadow:0 0 0 3px rgba(38,120,243,.10)}
.installmentSchedule{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}.installmentSchedule>div{display:flex;flex-direction:column;gap:3px;border:1px solid #d9e5f3;background:#fff;border-radius:10px;padding:9px 10px}.installmentSchedule>div span{font-size:11px;color:#7183a1}.installmentSchedule>div b{font-size:14px;color:#10244c}.installmentSchedule>div small{font-size:11px;color:#60718d}
@media(max-width:1100px){.saleTotalsV11{grid-template-columns:1fr 1fr}.paymentBlock{grid-column:1/-1}.installmentSchedule{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.12 — pagamento misto, recebimento parcial e reparcelamento */
.paymentChoiceRow{display:grid;grid-template-columns:1fr 44px;gap:8px;align-items:end}
.paymentPlus{width:44px;height:44px;padding:0;font-size:24px;font-weight:800;border:1.6px solid #8db7ee;background:#fff;color:#1768df;border-radius:12px}
.paymentPlus:hover{background:#eef6ff;border-color:#4d91e8}
.splitPayRow{display:grid;grid-template-columns:1.25fr 1fr .75fr 1fr auto;gap:10px;align-items:end;padding:12px 0;border-bottom:1px solid #e0e9f5}
.splitPayRow:last-child{border-bottom:0}.splitPayRow .btn{margin-bottom:2px}
.splitSummary{display:flex;justify-content:flex-end;gap:28px;padding:14px 0;font-size:14px}.splitOk{color:#07804e}.splitBad{color:#c83545}
.paymentBreakdown{display:flex;gap:10px;flex-wrap:wrap;align-items:center;background:#f5f9ff;border:1px solid #d7e5f5;border-radius:12px;padding:10px 12px;margin:10px 0}.paymentBreakdown span{background:#fff;border:1px solid #d9e6f4;border-radius:9px;padding:7px 10px}
.receivePreview{margin-top:14px;padding:12px 14px;border-radius:12px;background:#f4f8fd;border:1px solid #d8e5f3;color:#40526e}
.repTotals{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:10px}.repTotals span{background:#fff;border:1px solid #dbe7f3;border-radius:10px;padding:8px 10px}
@media(max-width:1000px){.splitPayRow{grid-template-columns:1fr 1fr}.splitPayRow .splitRemove{grid-column:1/-1}.paymentChoiceRow{grid-template-columns:1fr 44px}}

.debtGroup,.repHistory{border:1px solid #c8dcff;border-radius:16px;padding:14px;margin:12px 0;background:#fff}.debtGroupHead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.debtGroupHead small{display:block;color:var(--muted);margin-top:4px}.repHistory{background:#fbfdff}.miniList{display:grid;gap:7px;margin:8px 0 14px}.miniList span{display:block;padding:9px 11px;border:1px solid #dce8fb;border-radius:10px;background:#fff}.repHistory h4{margin:14px 0 6px}
/* v0.15 — Contas a Receber simplificado */
.receivableTableWrap{max-height:62vh;overflow:auto;border:1px solid var(--line,#cbdcf8);border-radius:18px;background:#fff}
.receivableTableWrap table{margin:0;border:0;border-radius:0}
.receivableTable th{position:sticky;top:0;z-index:2;background:#f5f8fd}
.sortHead{border:0;background:transparent;font:inherit;font-weight:700;color:inherit;cursor:pointer;padding:0;white-space:nowrap}
.sortHead:hover{color:#216cf3}
.cellSub{display:block;margin-top:4px;color:#7183a6;font-size:11px;font-weight:500;line-height:1.2}
.recRow.hasHistory{cursor:pointer}
.recRow.hasHistory:hover td{background:#f7faff}
.selectionBar{display:flex;align-items:center;gap:14px;padding:12px 14px;margin:12px 0;border:1px solid #cbdcf8;border-radius:14px;background:#f8fbff}
.selectionBar span{color:#607395}
.selectionBar strong{margin-left:auto;color:#0f2854;font-size:18px}
.selectionBar .btn:disabled{opacity:.45;cursor:not-allowed}
.receivableModalHead h3{margin-bottom:4px}
.salesTop{display:grid;grid-template-columns:minmax(260px,360px) 1fr;gap:22px;align-items:stretch;margin-bottom:22px}.salesSummaryCard{background:linear-gradient(135deg,#eef6ff,#fff);border:1px solid #a9ccff;border-radius:20px;padding:24px 28px;cursor:pointer;box-shadow:0 14px 32px rgba(35,104,210,.08);display:flex;flex-direction:column;gap:5px}.salesSummaryCard span,.salesSummaryCard small{color:#64789b}.salesSummaryCard strong{font-size:32px;color:#156ee8}.salesSummaryCard em{font-size:12px;color:#7890b4;font-style:normal;margin-top:5px}.salesActions{display:flex;justify-content:flex-end;align-items:center;gap:18px}.field.compact{min-width:210px}.newSaleHero{font-size:18px;padding:16px 24px;box-shadow:0 10px 24px rgba(30,111,240,.25)}.sectionTitle{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.segmented{display:flex;background:#edf3fb;border-radius:12px;padding:4px}.segmented button{border:0;background:transparent;padding:9px 14px;border-radius:9px;font-weight:700;color:#60708d;cursor:pointer}.segmented button.active{background:#fff;color:#126bea;box-shadow:0 3px 10px rgba(0,0,0,.07)}.selectionActions{display:flex;gap:8px}.btn.danger{background:#fff0f1;color:#d94154;border-color:#ffd3d9}.btn.danger:hover{background:#ffe4e8}@media(max-width:800px){.salesTop{grid-template-columns:1fr}.salesActions{justify-content:space-between;flex-wrap:wrap}}

/* v0.17 - fluxo de vendas */
.salesLanding{display:grid;grid-template-columns:minmax(320px,1fr) minmax(320px,1fr);gap:26px;max-width:980px;margin:34px auto 30px}
.salesActionCard{min-height:185px;border:1.5px solid #a9ccff;border-radius:24px;background:linear-gradient(145deg,#fff,#f6faff);box-shadow:0 16px 38px rgba(31,96,196,.09);display:flex;align-items:center;position:relative;padding:28px 32px;cursor:pointer;transition:.18s ease}
.salesActionCard:hover{transform:translateY(-2px);box-shadow:0 20px 46px rgba(31,96,196,.14)}
.salesActionCard span{display:block;color:#6980a3;font-size:14px;margin-bottom:8px}
.salesActionCard strong{display:block;color:#0d2145;font-size:31px;line-height:1.05}
.salesActionCard small{display:block;color:#7084a3;font-size:14px;margin-top:10px}
.salesActionCard em{display:block;color:#6d87ad;font-style:normal;font-size:12px;margin-top:7px}
.salesNewCard{background:linear-gradient(145deg,#edf6ff,#fff)}
.salesNewCard .salesActionIcon{width:74px;height:74px;border-radius:20px;display:grid;place-items:center;background:linear-gradient(145deg,#1b79ff,#2c9ef0);margin-right:23px;box-shadow:0 10px 24px rgba(31,119,239,.22)}
.salesNewCard .salesActionIcon svg{width:38px;height:38px;color:#fff}
.salesTodayCard{justify-content:flex-start;background:linear-gradient(145deg,#fff,#f8fbff)}
.salesTodayCard strong{font-size:38px;color:#176ee8}
.salesArrow{position:absolute;right:26px;top:50%;transform:translateY(-50%);font-size:32px;color:#4f6d98}
.salesConsult{max-width:1180px;margin:0 auto 40px;border:1.5px solid #b8d5ff}
.salesConsultHeader{gap:20px}
.salesPeriod{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:18px 0}
.salesPeriod .field.compact{min-width:190px}
.salesConsultSummary{display:flex;align-items:center;gap:18px;padding:14px 18px;margin-bottom:16px;border:1px solid #d5e5fb;background:#f7faff;border-radius:14px}
.salesConsultSummary span{color:#60789d}.salesConsultSummary strong{font-size:22px;color:#156ee8}.salesConsultSummary small{color:#7185a5}
@media(max-width:850px){.salesLanding{grid-template-columns:1fr;max-width:none}.salesActionCard{min-height:150px}.salesActionCard strong{font-size:26px}}

/* v0.18 - linguagem visual comercial / PDV */
.moduleActionBar{display:flex;justify-content:space-between;align-items:center;margin:6px 0 22px}.moduleActionBar h2{margin:0;font-size:30px}.moduleActionBar p{margin:4px 0 0;color:#6f82a2}.bigAction{padding:14px 22px;font-size:15px}
.moduleStats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 22px}.cashStats{grid-template-columns:repeat(5,minmax(0,1fr))}
.metricCard{background:#fff;border:1.5px solid #c5ddff;border-radius:20px;padding:20px;display:flex;gap:15px;align-items:center;box-shadow:0 10px 28px rgba(31,96,196,.07)}.metricCardIcon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:#eaf3ff}.metricCardIcon svg{width:25px;height:25px}.metricCard span{display:block;color:#6f82a2;font-size:13px}.metricCard strong{display:block;color:#0d2145;font-size:24px;margin-top:4px}.metricCard.green .metricCardIcon{background:#e3f9ef}.metricCard.purple .metricCardIcon{background:#efe9ff}.metricCard.orange .metricCardIcon{background:#fff0df}.metricCard.cyan .metricCardIcon{background:#e3f9fb}
.modulePanel{border:1.5px solid #c5ddff}.rowActions{white-space:nowrap}.emptyState{text-align:center;padding:38px;color:#7588a6}.emptyState.prominent{padding:65px 20px}.emptyState.prominent svg{width:46px;height:46px;color:#2581f4;margin-bottom:10px}.emptyState h3{margin:6px 0;color:#11274a}
.statusChip{display:inline-flex;padding:5px 10px;border-radius:999px;font-size:12px}.statusChip.success{background:#e6f8ef;color:#128252}.statusChip.danger{background:#ffe9ec;color:#d63a4b}.statusChip.warning{background:#fff4dc;color:#ad7300}
.cashOpenHero{background:linear-gradient(145deg,#fff,#f3f8ff);border:1.5px solid #b9d8ff;border-radius:24px;padding:28px;display:grid;grid-template-columns:auto 1fr auto;gap:22px;align-items:center}.cashOpenIcon{width:68px;height:68px;border-radius:18px;background:linear-gradient(145deg,#1c79ff,#26a0ef);display:grid;place-items:center}.cashOpenIcon svg{width:34px;height:34px;color:#fff}.cashOpenForm label{display:block;font-size:12px;color:#7184a3;margin-bottom:6px}.cashOpenControls{display:flex;gap:10px}.cashTopActions{display:flex;gap:10px}.closingSummary{padding:18px;border-radius:16px;background:#f5f9ff;border:1px solid #d2e3fb;margin-bottom:14px}.closingSummary span{display:block;color:#6d80a0}.closingSummary strong{font-size:28px;color:#176ee8}
.conditionalLanding{margin-top:12px;margin-bottom:22px}
.formSection{border:1px solid #d5e5fb;background:#f9fbff;border-radius:16px;padding:18px}.formSection h4{margin:0 0 15px}
.pdvHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.pdvHeader span{color:#6f82a2}.pdvHeader h2{font-size:32px;margin:2px 0}.pdvStatus{background:#e8f8ef;color:#168255;border-radius:999px;padding:9px 14px;font-weight:700;font-size:13px}.statusDot{display:inline-block;width:8px;height:8px;background:#1ab66c;border-radius:50%;margin-right:7px}
.pdvMetrics{display:grid;grid-template-columns:1.45fr .7fr 1fr 1fr 1.15fr;gap:14px;margin-bottom:18px}.pdvMetric{min-height:92px;background:#fff;border:1.5px solid #c5ddff;border-radius:18px;padding:16px 18px;display:flex;flex-direction:column;justify-content:center}.pdvMetric span{font-size:12px;color:#6c81a2}.pdvMetric strong{font-size:23px;color:#11274a;margin-top:5px}.pdvMetric.customerMetric{flex-direction:row;justify-content:flex-start;gap:12px;align-items:center}.pdvMetric.customerMetric .metricIcon{width:48px;height:48px;border-radius:14px;background:#eaf3ff;display:grid;place-items:center}.pdvMetric.customerMetric .metricIcon svg{width:25px;height:25px;color:#237bf1}.pdvMetric.discountMetric{background:#fffaf4}.pdvMetric.discountMetric strong{color:#e87818}.pdvMetric.totalMetric{border-color:#4f98ff;background:linear-gradient(145deg,#f8fbff,#eef6ff)}.pdvMetric.totalMetric strong{font-size:29px;color:#156ee8}
.pdvGrid{display:grid;grid-template-columns:minmax(0,2fr) minmax(320px,.85fr);gap:18px}.pdvMain,.pdvSide{display:flex;flex-direction:column;gap:16px}.pdvClient{display:flex;justify-content:space-between;align-items:center;border:1.5px solid #c5ddff}.pdvClient h3{margin:4px 0}.pdvProducts{border:1.5px solid #c5ddff;min-height:390px}.pdvCart{margin-top:14px}.pdvSummary{border:1.5px solid #c5ddff;position:sticky;top:18px}.summaryLine,.summaryTotal{display:flex;justify-content:space-between;align-items:center;padding:14px 0;border-bottom:1px solid #e4edf9}.summaryLine span{color:#6f82a2}.summaryTotal{border-bottom:0;padding-top:20px}.summaryTotal span{font-weight:700}.summaryTotal strong{font-size:28px;color:#156ee8}.pdvSummary .paymentBlock{margin-top:18px;padding-top:18px;border-top:1px solid #dbe8f8}.pdvSummary .paymentBlock #finish{width:100%;margin-top:12px;padding:15px;font-size:16px}.pdvClear{width:100%}.emptyCartIcon svg{width:54px;height:54px;color:#2a82ef}
@media(max-width:1050px){.moduleStats,.cashStats{grid-template-columns:repeat(2,1fr)}.pdvMetrics{grid-template-columns:repeat(2,1fr)}.pdvGrid{grid-template-columns:1fr}.pdvSummary{position:static}}

/* v0.19 - Caixa compacto */
.compactCashHead{margin-bottom:14px}
.cashCompactStats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:12px}
.cashCompactStats .metricCard{padding:14px 16px;min-height:78px}
.cashCompactStats .metricCardIcon{width:42px;height:42px}
.cashCompactStats .metricCard strong{font-size:22px}
.paymentTotalsBar{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#cfe0f7;border:1px solid #c5ddff;border-radius:15px;overflow:hidden;margin-bottom:14px}
.paymentTotalsBar>div{background:#fff;padding:12px 16px;display:flex;justify-content:space-between;align-items:center}
.paymentTotalsBar span{font-size:12px;color:#6f82a2}.paymentTotalsBar strong{font-size:17px;color:#10274b}
.cashMovPanel{padding:16px 18px}.cashMovPanel .sectionTitle{margin-bottom:10px}.cashMovWrap{max-height:315px;overflow:auto;border:1px solid #d7e5f8;border-radius:14px}
.cashMovWrap table{margin:0}.cashMovWrap thead{position:sticky;top:0;z-index:2;background:#f7faff}
.compactCashOpen{padding:20px 24px}.compactCashOpen .cashOpenIcon{width:58px;height:58px}.compactCashOpen h2{margin:2px 0}
@media(max-width:900px){.cashCompactStats,.paymentTotalsBar{grid-template-columns:repeat(2,1fr)}}

/* v0.20 - Nova Venda compacta */
.compactPdvHeader{margin-bottom:10px}
.compactPdvHeader h2{font-size:27px;margin:0}
.compactPdvHeader>div>span{font-size:12px}
.compactPdvMetrics{grid-template-columns:1.35fr .6fr .9fr .9fr 1fr;gap:10px;margin-bottom:12px}
.compactPdvMetrics .pdvMetric{min-height:72px;padding:11px 14px;border-radius:15px}
.compactPdvMetrics .pdvMetric span{font-size:11px}
.compactPdvMetrics .pdvMetric strong{font-size:19px;margin-top:2px}
.compactPdvMetrics .totalMetric strong{font-size:24px}
.compactPdvMetrics .customerMetric .metricIcon{width:38px;height:38px;border-radius:11px}
.compactPdvMetrics .customerMetric .metricIcon svg{width:21px;height:21px}
.compactPdvGrid{grid-template-columns:minmax(0,2.15fr) minmax(295px,.78fr);gap:12px}
.compactPdvClient{padding:14px 16px;min-height:74px}
.compactPdvClient .sectionLabel{font-size:10px}
.compactPdvClient h3{font-size:19px;margin:2px 0}
.compactPdvClient .btn{padding:10px 14px}
.compactPdvProducts{padding:14px 16px;min-height:310px}
.compactSectionTitle{margin-bottom:8px}
.compactSectionTitle h3{font-size:18px;margin:2px 0}
.compactSectionTitle .btn{padding:10px 14px}
.compactPdvSummary{padding:15px 16px}
.compactPdvSummary h3{font-size:18px}
.compactPdvSummary .summaryLine{padding:10px 0}
.compactPdvSummary .summaryTotal{padding:13px 0 7px}
.compactPdvSummary .summaryTotal strong{font-size:25px}
.compactPdvSummary .paymentBlock{margin-top:10px;padding-top:10px}
.compactPdvSummary .paymentBlock label{font-size:12px}
.compactPdvSummary .paymentChoiceRow{gap:8px}
.compactPdvSummary .paymentSelect{min-height:42px}
.compactPdvSummary .paymentPlus{width:44px;min-width:44px;height:42px;padding:0}
.compactPdvSummary .paymentBlock #finish{margin-top:8px;padding:12px;font-size:15px}
.compactClear{padding:10px}
.pdvCart table th,.pdvCart table td{padding-top:10px;padding-bottom:10px}
.pdvCart .saleTotals{margin-top:10px}
@media(max-width:1050px){.compactPdvMetrics{grid-template-columns:repeat(3,1fr)}.compactPdvGrid{grid-template-columns:1fr}.compactPdvSummary{position:static}}

/* v0.21 - ajustes consolidados */
.compactPdvMetrics .customerMetric{gap:9px;padding-left:11px}
.compactPdvMetrics .customerMetric .metricIcon{flex:0 0 34px;width:34px;height:34px}
.compactPdvMetrics .customerMetric>div:last-child{min-width:0;display:flex;align-items:baseline;gap:8px}
.compactPdvMetrics .customerMetric span{flex:0 0 auto;margin:0}
.compactPdvMetrics .customerMetric strong{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.compactPdvSummary .paymentBlock{display:block}
.compactPdvSummary .paymentChoiceRow{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px}
.compactPdvSummary .paymentBlock #finish{display:block;width:100%;min-height:42px;white-space:nowrap;margin-top:8px;padding:10px 14px;line-height:1.15}
.compactPdvSummary .paymentSelect{width:100%}
.receivableStats{grid-template-columns:repeat(4,minmax(0,1fr))}
.clickableMetric{cursor:pointer;transition:.18s ease}
.clickableMetric:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(31,96,196,.12)}
.clickableMetric small{display:block;color:#7588a6;font-size:11px;margin-top:3px}
.todayReceiptTotal{font-size:28px;color:#1670e8;align-self:center}
@media(max-width:900px){.receivableStats{grid-template-columns:repeat(2,1fr)}}

/* v0.21.1 - Resumo de venda e Contas a Receber */
.compactPdvSummary .paymentBlock{display:block!important}
.compactPdvSummary .paymentChoiceRow{display:block!important}
.compactPdvSummary .paymentSelect{display:block;width:100%!important;min-width:0!important}
.compactPdvSummary .paymentPlus{display:block;width:30px!important;min-width:30px!important;height:30px!important;margin:6px 0 0 auto;padding:0!important;font-size:18px!important;border-radius:9px}
.compactPdvSummary .paymentBlock #finish{display:block!important;width:100%!important;min-height:40px!important;margin-top:8px!important;padding:9px 12px!important;white-space:nowrap!important}
.compactPdvSummary .paymentBlock label{display:block;margin-bottom:7px}

/* consolidado pós-auditoria */
.modal>div.modalPanel{position:relative}
.modalClose{position:sticky;float:right;top:0;z-index:20;width:34px;height:34px;border:1px solid #d5e2f5;background:#fff;border-radius:10px;font-size:25px;line-height:28px;color:#61738e;cursor:pointer;margin:-6px -4px 6px 12px;box-shadow:0 4px 12px rgba(21,55,100,.08)}
.modalClose:hover{background:#eef5ff;color:#0c61d8}
.compactPdvSummary .paymentBlock{display:block}
.compactPdvSummary .paymentSelect{width:100%;min-height:42px}
.compactPdvSummary .paymentAuxRow{display:flex;justify-content:flex-end;margin-top:6px}
.compactPdvSummary .paymentPlus{width:auto!important;min-width:0!important;height:31px!important;padding:0 9px!important;font-size:12px!important;border-radius:9px}
.compactPdvSummary .paymentBlock #finish{display:block;width:100%;min-height:40px;margin-top:8px;padding:9px 12px;white-space:nowrap}

/* v0.23 - controles operacionais e histórico */
.quickCustomerBtn{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding:14px 16px;border:1px solid #b9d5fb;background:#f5f9ff;border-radius:14px;color:#10264b;cursor:pointer;text-align:left}.quickCustomerBtn:hover{background:#edf5ff;border-color:#7fb0f3}.quickCustomerBtn b{font-size:16px}.quickCustomerBtn small{color:#6f82a2}.modalDivider{display:flex;align-items:center;gap:10px;margin:14px 0;color:#8292ab;font-size:12px}.modalDivider:before,.modalDivider:after{content:"";height:1px;background:#dde8f6;flex:1}
.modernInstallmentPreview{margin:14px 0}.installmentPreviewHead{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;padding:12px 14px;background:#f5f8fc;border-radius:12px}.installmentPreviewHead span{color:#7183a1}.installmentPreviewHead strong{font-size:21px;color:#10264b}.cardInstallmentSchedule{grid-template-columns:repeat(4,minmax(0,1fr))}.cardInstallmentSchedule>div{min-height:68px;justify-content:center}
.cashBreakdown{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0}.cashBreakdown>div{background:#f7faff;border:1px solid #d7e5f8;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}.cashBreakdown span{font-size:11px;color:#7083a2}.cashBreakdown b{font-size:16px;color:#10264b}.cashBreakdown .receivableBreak{background:#f5f0ff;border-color:#dfd2ff}.closingBreakdown{margin-top:12px}
.customerReportStats{grid-template-columns:repeat(4,minmax(0,1fr))}.historySection{margin-top:18px}.historySection h4{margin:0 0 8px}.historySection table{font-size:12px}.productHistoryStats{grid-template-columns:repeat(3,minmax(0,1fr))}
.conditionalReturnHead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:8px 0 14px}.conditionalReturnHead>div:first-child{display:flex;flex-direction:column;gap:3px}.conditionalReturnHead small{color:#7183a1}.conditionalCheckCount{display:flex;align-items:baseline;gap:5px;background:#f3f8ff;border:1px solid #cfe2fb;border-radius:12px;padding:9px 12px}.conditionalCheckCount strong{font-size:20px;color:#1670e8}.conditionalCheckCount span{font-size:12px;color:#6e82a2}
.reversalNotice{background:#fff1f2;border:1px solid #fecdd3;border-radius:12px;padding:12px 14px;margin:12px 0;color:#9f1239}.reversalNotice{display:grid;grid-template-columns:1fr auto;gap:4px 12px}.reversalNotice p{grid-column:1/-1;margin:4px 0 0}.reversedRow{opacity:.72;background:#fffafa}.reversedRow td{text-decoration:none}
.modalPanel{position:relative}.modalClose{position:sticky;top:0;float:right;right:0;z-index:50}
@media(max-width:1000px){.cashBreakdown{grid-template-columns:repeat(2,1fr)}.customerReportStats{grid-template-columns:repeat(2,1fr)}.cardInstallmentSchedule{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.24 - contas a receber / histórico financeiro */
.textDanger{color:#d94a55}
.reversedPaymentRow{background:rgba(217,74,85,.035)}
.reversalMeta{display:flex;flex-direction:column;gap:3px;max-width:240px}
.reversalMeta b{font-size:12px;color:#8b3d46}
.reversalMeta span{font-size:12px;line-height:1.25;color:#6f7f99;white-space:normal}
.paymentHistoryTable td{vertical-align:top}
.repHistoryHeader{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:16px;padding-right:32px}
.repHistoryHeader h3{margin:3px 0 4px}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:.08em;color:#5873a1}
.repOrigin{min-width:220px;max-width:45%;padding:12px 14px;border:1px solid #d9e7fb;border-radius:12px;background:#f7faff;display:flex;flex-direction:column;gap:4px}
.repOrigin span{font-size:11px;color:#6e82a5}
.repOrigin b{font-size:13px;line-height:1.3}
.repHistoryStats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
.repHistoryStats>div{border:1px solid #d9e7fb;border-radius:14px;padding:14px;background:#fff;display:flex;flex-direction:column;gap:4px}
.repHistoryStats span{font-size:12px;color:#6e82a5}
.repHistoryStats strong{font-size:19px;color:#10274d}
.repHistoryStats small{font-size:11px;color:#7c8daa}
.repHistoryGrid{display:grid;grid-template-columns:1fr;gap:14px}
.repHistoryGrid section{border:1px solid #d9e7fb;border-radius:16px;padding:14px;background:#fff}
.repSectionHead{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.repSectionHead h4{margin:3px 0 0}
.countBadge{min-width:28px;height:28px;border-radius:999px;background:#edf5ff;color:#2676e8;display:inline-flex;align-items:center;justify-content:center;font-weight:800}
.modalFooterSticky{position:sticky;bottom:0;background:linear-gradient(to top,#fff 78%,rgba(255,255,255,0));padding-top:18px;margin-top:4px}
@media(max-width:900px){.repHistoryStats{grid-template-columns:repeat(2,1fr)}.repHistoryHeader{flex-direction:column}.repOrigin{max-width:none;width:100%}}

/* v0.25 — identidade visual premium grafite/prata */
:root{
  --navy:#17202d;--blue:#2f7df6;--blue2:#5aa8ff;--cyan:#18b9c7;--green:#1fbf78;
  --purple:#795cf4;--orange:#ff9b37;--ink:#172033;--muted:#778196;--line:#e6e9ef;
  --bg:#f4f5f7;--surface:#fff;--danger:#d94c5f;--warning:#b77500;--shadow:0 12px 34px rgba(27,35,49,.08)
}
html,body{background:#f3f4f6;color:#182033}
.premiumShell{display:grid;grid-template-columns:190px minmax(0,1fr);min-height:100vh;background:#f3f4f6}
.sideNav{position:fixed;left:0;top:0;bottom:0;width:190px;padding:18px 14px 16px;background:linear-gradient(180deg,#1c222b 0%,#11161d 100%);color:#fff;display:flex;flex-direction:column;z-index:15;box-shadow:14px 0 38px rgba(15,20,28,.14)}
.sideBrand{width:100%;border:0;background:transparent;color:#fff;display:flex;align-items:center;gap:10px;padding:5px 5px 18px;cursor:pointer;text-align:left}
.sideBrandMark{width:46px;height:40px;display:grid;place-items:center;color:#dfe5ec}.sideBrandMark svg{width:44px;height:34px;filter:drop-shadow(0 4px 10px rgba(255,255,255,.08))}
.sideBrand strong{display:block;font-size:16px}.sideBrand small{display:block;color:#9ca6b5;font-size:10px;margin-top:3px}
.sideNavMain,.sideNavFooter{display:flex;flex-direction:column;gap:5px}.sideNavMain{flex:1}.sideNavFooter{padding-top:12px;border-top:1px solid rgba(255,255,255,.1)}
.sideNav button[data-page]{width:100%;border:1px solid transparent;background:transparent;color:#c7ced8;border-radius:11px;padding:10px 11px;display:flex;align-items:center;gap:10px;cursor:pointer;text-align:left;transition:.16s}
.sideNav button[data-page] span{width:20px;text-align:center;color:#aeb7c4;font-size:16px}.sideNav button[data-page] b{font-size:12px;font-weight:600}
.sideNav button[data-page]:hover{background:rgba(255,255,255,.06);color:#fff}.sideNav button[data-page].active{background:linear-gradient(90deg,rgba(255,255,255,.15),rgba(255,255,255,.05));border-color:rgba(255,255,255,.16);color:#fff;box-shadow:inset 3px 0 0 #c7a35d}.sideNav button[data-page].active span{color:#e4c783}
.workspace{grid-column:2;min-width:0;min-height:100vh}.premiumTopbar{height:68px;padding:0 28px;background:rgba(255,255,255,.95);border-bottom:1px solid #e5e7eb;box-shadow:0 4px 18px rgba(20,27,39,.03)}
.mobileBrand{display:none}.premiumTopbar .topbarRight{margin-left:auto}.premiumTopbar .cashBadge{border-radius:999px;padding:9px 14px}.premiumContent{max-width:none;margin:0;padding:22px 28px 34px;background:radial-gradient(circle at 76% 0,#fff 0,#f7f8fa 34%,#f2f3f5 72%);min-height:calc(100vh - 68px)}
.moduleHeader{margin-bottom:18px;padding-bottom:3px}.moduleHeader h1{font-size:25px;letter-spacing:-.5px}.moduleHeader p{font-size:13px}.backHome{display:none}
.homePremium{max-width:1180px;margin:0 auto}.homeHero{min-height:112px;padding:12px 18px 8px;display:flex;justify-content:space-between;align-items:center;position:relative;overflow:hidden}.homeHero:after{content:"";position:absolute;right:3%;top:-70px;width:390px;height:200px;background:radial-gradient(ellipse,rgba(160,169,181,.17),transparent 66%);transform:rotate(-10deg)}
.homeEyebrow{display:block;font-size:10px;letter-spacing:2.6px;color:#8a93a1;font-weight:700}.homeHero h1{margin:7px 0 1px;font-size:37px;letter-spacing:-1.4px;color:#171e2a}.homeHero h1 em{font-style:normal;color:#4b5565}.homeHero p{margin:0;color:#9098a5;font-size:16px}.homeRhino{width:150px;height:96px;display:grid;place-items:center;color:#8d96a3;opacity:.72;position:relative;z-index:1}.homeRhino svg{width:132px;height:98px;filter:drop-shadow(0 15px 22px rgba(29,36,48,.11))}
.premiumSummary{margin:0 0 18px;border:1px solid #e2e5ea;border-radius:16px;padding:15px 18px;background:rgba(255,255,255,.97);box-shadow:0 10px 26px rgba(28,35,47,.055)}.premiumSummary .summaryHead{margin-bottom:11px}.premiumSummary .summaryHead h3{font-size:15px;margin:2px 0 0}.premiumSummary .summaryHead small{color:#8b94a3;font-size:11px}.premiumSummary .summaryGrid{min-height:58px}.premiumSummary .summaryItem{display:flex;align-items:center;gap:12px;padding:0 22px}.premiumSummary .summaryIcon{width:43px;height:43px;border-radius:50%}.premiumSummary .summaryIcon svg{width:21px;height:21px}.premiumSummary .summaryItem small{font-size:11px;margin-bottom:3px}.premiumSummary .summaryItem strong{font-size:21px;color:#192236}
.homeSectionTitle{margin:14px 8px 10px}.homeSectionTitle h2{font-size:20px;margin:4px 0 0;letter-spacing:-.45px}.premiumModuleGrid{gap:10px}.premiumModuleGrid .moduleCard{min-height:82px;padding:12px 14px;border:1px solid #e1e5ea;border-radius:14px;box-shadow:0 7px 20px rgba(30,37,50,.045);background:rgba(255,255,255,.96)}.premiumModuleGrid .moduleCard:hover{transform:translateY(-1px);border-color:#cfd5dd;box-shadow:0 10px 24px rgba(30,37,50,.08)}.premiumModuleGrid .moduleIcon{width:48px;height:48px;border-radius:12px;box-shadow:0 8px 16px rgba(28,35,48,.1)}.premiumModuleGrid .moduleIcon svg{width:25px;height:25px}.premiumModuleGrid .moduleCopy b{font-size:15px;margin-bottom:3px}.premiumModuleGrid .moduleCopy span{font-size:11px;color:#858e9d}.premiumModuleGrid .arrow{font-size:22px;color:#7c8593}.iPink{background:linear-gradient(135deg,#fa526e,#f72d88)}
.card,.modulePanel,.metricCard,.pdvMetric,.salesActionCard,.cashOpenHero,.debtGroup,.repHistory{border-color:#e0e4e9!important;box-shadow:0 9px 26px rgba(29,36,49,.055)!important}.card{border-radius:15px}.moduleActionBar h2{font-size:26px}.moduleActionBar p{font-size:13px}.metricCard{border-radius:16px;padding:16px}.metricCard strong{font-size:21px}.metricCardIcon{border-radius:12px}.moduleStats{gap:11px}
table{border-color:#e1e5ea;border-radius:12px}th{background:#f4f5f7;color:#657083;font-size:12px}td{font-size:12.5px}th,td{border-bottom-color:#eceef2}.btn{border-radius:10px}.btn.primary{background:#252c36;color:#fff;box-shadow:0 6px 16px rgba(24,30,39,.16)}.btn.primary:hover{background:#151a21}.btn.danger{background:#fff3f4}.cashBadge.open{background:#e8f8ef;color:#147548}.cashBadge.closed{background:#fff0f2;color:#b83d50}
input,select,textarea{border-color:#d9dde4;border-radius:10px;background:#fff}input:focus,select:focus,textarea:focus{border-color:#929baa;box-shadow:0 0 0 3px rgba(78,88,103,.09)}
.modal{background:rgba(12,16,22,.5);backdrop-filter:blur(5px)}.modal>div{border-radius:18px;border:1px solid #e3e6ea;box-shadow:0 28px 75px rgba(8,12,18,.22)}
.cashCompactStats{gap:10px}.paymentTotalsBar{background:#e2e5e9;border-color:#dfe3e8;border-radius:12px}.paymentTotalsBar>div{background:#fff}.cashMovWrap,.receivableTableWrap{border-color:#e0e4e9;border-radius:12px}.cashMovWrap thead,.receivableTable th{background:#f4f5f7}
.pdvMetric.totalMetric{border-color:#9fa7b3;background:linear-gradient(145deg,#fff,#f2f4f6)}.pdvMetric.totalMetric strong,.summaryTotal strong{color:#222a36}.pdvMetric.discountMetric{background:#fbfaf8}.pdvMetric.discountMetric strong{color:#a96a23}.pdvSummary .paymentBlock,.paymentBlock{border-color:#d7dce3;background:linear-gradient(180deg,#fff,#f4f5f7);box-shadow:none}.paymentSelect{border-color:#cfd5dd}.paymentSelect.selected{border-color:#555f6e;box-shadow:0 0 0 3px rgba(40,48,59,.07)}
.salesActionCard{border-color:#d9dde3;background:linear-gradient(145deg,#fff,#f5f6f8)}.salesNewCard{background:linear-gradient(145deg,#f7f8fa,#fff)}.salesNewCard .salesActionIcon{background:linear-gradient(145deg,#303945,#171d25)}.salesTodayCard strong{color:#222a36}.salesConsult{border-color:#dfe3e8}.salesConsultSummary{border-color:#e0e4e9;background:#f7f8f9}.salesConsultSummary strong{color:#222a36}
.repHistoryStats>div,.repHistoryGrid section{border-color:#e0e4e9!important;background:#fff!important}.repHistoryStats strong{color:#202835!important}.countBadge{background:#eef0f2!important;color:#4a5360!important}.eyebrow{color:#8a93a1!important}
#toast{background:#161c24;border:1px solid #2a323d}
@media(max-width:1050px){.premiumShell{grid-template-columns:74px minmax(0,1fr)}.sideNav{width:74px;padding:14px 9px}.sideBrand{justify-content:center}.sideBrand>span:last-child,.sideNav button[data-page] b{display:none}.sideBrandMark{width:44px}.sideNav button[data-page]{justify-content:center;padding:11px}.sideNav button[data-page] span{font-size:18px}.workspace{grid-column:2}.premiumContent{padding:20px}.homePremium{max-width:none}}
@media(max-width:720px){.premiumShell{display:block}.sideNav{display:none}.workspace{display:block}.premiumTopbar{height:64px;padding:0 14px}.mobileBrand{border:0;background:transparent;display:flex;align-items:center;gap:8px;color:#1c2430}.mobileBrand .brandMark{width:36px;height:36px;border-radius:10px;background:#2d3540}.mobileBrand strong{display:block;font-size:15px}.mobileBrand small{display:block;font-size:9px;color:#8b94a2}.premiumContent{padding:16px 12px}.backHome{display:block}.dateBox{display:none}.homeHero{min-height:86px;padding:4px}.homeHero h1{font-size:29px}.homeRhino{width:92px}.homeRhino svg{width:84px}.premiumModuleGrid{grid-template-columns:1fr}.premiumSummary .summaryGrid{grid-template-columns:1fr}.premiumSummary .summaryItem{border-right:0;border-bottom:1px solid #eceef2;padding:10px 0}.premiumSummary .summaryItem:last-child{border-bottom:0}}


/* v0.26 - Relatórios */
.reportsTop{display:flex;justify-content:space-between;align-items:end;margin:4px 0 16px}.reportsTop h2{margin:2px 0 4px;font-size:30px}.reportsTop p,.reportIntro p{margin:0;color:#788292}.reportTabs{display:flex;gap:7px;overflow:auto;padding:5px;background:#e9ecf0;border:1px solid #d8dde4;border-radius:15px;margin-bottom:18px}.reportTabs button{border:0;background:transparent;color:#5f6875;padding:10px 14px;border-radius:11px;font-weight:800;white-space:nowrap;cursor:pointer}.reportTabs button.active{background:#20242a;color:#fff;box-shadow:0 6px 16px rgba(22,25,29,.17)}
.reportIntro{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.reportIntro h3{margin:0 0 4px;font-size:23px;color:#20242a}.reportFilters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;background:#f6f7f9;border:1px solid #e0e3e8;border-radius:16px;padding:14px;margin-bottom:16px}.reportFilters .field{margin:0}.reportFilters .field.compact{min-width:145px}.reportFilters .field.grow{flex:1;min-width:220px}.reportMetrics{display:grid;gap:12px;margin-bottom:16px}.reportMetrics.three{grid-template-columns:repeat(3,1fr)}.reportMetrics.four{grid-template-columns:repeat(4,1fr)}.reportMetrics.five{grid-template-columns:repeat(5,1fr)}.reportMetric{background:#fff;border:1px solid #e0e3e8;border-radius:16px;padding:15px 17px;border-top:3px solid #8f98a5}.reportMetric span{display:block;color:#737d89;font-size:12px}.reportMetric strong{display:block;color:#20242a;font-size:22px;margin-top:4px}.reportMetric small{display:block;color:#8a929d;font-size:11px;margin-top:4px}.reportMetric.green{border-top-color:#35a36f}.reportMetric.blue{border-top-color:#4d83c7}.reportMetric.purple{border-top-color:#826bb8}.reportMetric.orange{border-top-color:#d98b42}.reportMetric.cyan{border-top-color:#4e9da7}.reportMetric.dark{border-top-color:#20242a}.reportTableWrap{overflow:auto;max-width:100%}.reportTableWrap table{min-width:900px}.reportTableWrap th{white-space:nowrap}.tableSub{display:block;color:#8a929d;font-size:11px;font-weight:500;margin-top:3px}.dangerText{color:#c44646}.priorityRow{background:#fff9f4}.btn.small{padding:7px 10px;font-size:12px;white-space:nowrap}
@media(max-width:1050px){.reportMetrics.five,.reportMetrics.four{grid-template-columns:repeat(2,1fr)}.reportMetrics.three{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.reportMetrics.five,.reportMetrics.four,.reportMetrics.three{grid-template-columns:1fr}.reportIntro{align-items:flex-start;gap:10px;flex-direction:column}.reportFilters{align-items:stretch}.reportFilters .field,.reportFilters .field.compact,.reportFilters .field.grow{width:100%;min-width:0}.reportFilters .btn{width:100%}}
.reportIntroActions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.exportExcelBtn{background:#fff;border-color:#cfd5dc}.exportExcelBtn:hover{background:#f1f3f5}
@media(max-width:700px){.reportIntroActions{width:100%}.reportIntroActions .btn{flex:1}}

/* v0.28 — cobrança rápida / cartão */
.whatsappBtn{display:inline-flex;align-items:center;gap:6px;border-color:#b9dac6;color:#18794e;background:#f0fbf4;white-space:nowrap}
.whatsappBtn:hover:not(:disabled){background:#e0f7e8;border-color:#89caa1}
.whatsappBtn svg{width:15px;height:15px}
.whatsappBtn.disabled{opacity:.45;cursor:not-allowed}
.tableActions,.receivableHeadActions{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.cardInstallmentInline{margin-top:10px;padding:10px 12px;border-radius:10px;background:#f5f7f9;border:1px solid #e1e5e9;display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:#66707a}
.cardInstallmentInline:empty{display:none}
.cardInstallmentInline b{color:#252a30;font-weight:700}
@media(max-width:780px){.receivableHeadActions{width:100%;justify-content:space-between;flex-wrap:wrap}.tableActions{justify-content:flex-start;flex-wrap:wrap}.whatsappBtn span{display:inline}}


/* v0.29 — mobile responsivo */
.mobileBottomNav{display:none}
@media(max-width:720px){
  html,body{max-width:100%;overflow-x:hidden;background:#f3f4f6}
  body{padding-bottom:74px}
  .workspace{min-width:0}
  .premiumTopbar{position:sticky;top:0;z-index:12;background:rgba(255,255,255,.97);border-bottom:1px solid #e3e6ea;backdrop-filter:blur(12px)}
  .premiumTopbar .topbarRight{gap:8px}
  .cashBadge{padding:8px 10px;border-radius:10px;font-size:11px;white-space:nowrap}
  .premiumContent{padding:13px 10px 18px}
  .moduleHeader{gap:10px;align-items:flex-start;margin:0 0 14px}
  .moduleHeader>div{min-width:0}
  .moduleHeader h1{font-size:22px;line-height:1.1}
  .moduleHeader p{font-size:12px;line-height:1.35}
  .backHome{padding:9px 10px;font-size:12px;white-space:nowrap}

  .mobileBottomNav{position:fixed;left:0;right:0;bottom:0;height:66px;display:grid;grid-template-columns:repeat(5,1fr);z-index:40;background:rgba(24,29,36,.98);border-top:1px solid #343b45;padding:5px max(5px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));box-shadow:0 -10px 28px rgba(9,13,18,.18);backdrop-filter:blur(14px)}
  .mobileBottomNav button{border:0;background:transparent;color:#aeb5bf;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;border-radius:10px;padding:4px 2px;cursor:pointer}
  .mobileBottomNav button span{font-size:19px;line-height:1}
  .mobileBottomNav button b{font-size:9px;line-height:1.1;white-space:nowrap;font-weight:700}
  .mobileBottomNav button.active{background:#f0f1f3;color:#1e252e}

  .homePremium{padding-bottom:4px}
  .homeHero{min-height:auto;padding:5px 4px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}
  .homeHero h1{font-size:27px;letter-spacing:-.8px}
  .homeHero p{font-size:12px;line-height:1.35;max-width:230px}
  .homeRhino{width:75px;height:68px;flex:0 0 75px}
  .homeRhino svg{width:70px;height:58px}
  .premiumSummary{padding:12px 14px;margin-bottom:12px}
  .premiumSummary .summaryGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:0}
  .premiumSummary .summaryItem{border-right:1px solid #eceef2;border-bottom:0;padding:5px 9px;gap:7px;min-width:0;display:block}
  .premiumSummary .summaryItem:last-child{border-right:0}
  .premiumSummary .summaryIcon{width:32px;height:32px;margin-bottom:5px}
  .premiumSummary .summaryIcon svg{width:16px;height:16px}
  .premiumSummary .summaryItem small{font-size:9px;white-space:normal}
  .premiumSummary .summaryItem strong{font-size:15px;line-height:1.15;word-break:break-word}
  .homeSectionTitle{margin:10px 4px 7px}.homeSectionTitle h2{font-size:17px}
  .premiumModuleGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .premiumModuleGrid .moduleCard{min-height:92px;padding:11px;border-radius:13px;gap:9px;align-items:flex-start;position:relative}
  .premiumModuleGrid .moduleIcon{width:38px;height:38px;border-radius:10px;flex:0 0 38px}
  .premiumModuleGrid .moduleIcon svg{width:20px;height:20px}
  .premiumModuleGrid .moduleCopy b{font-size:13px;margin-bottom:3px;line-height:1.1}
  .premiumModuleGrid .moduleCopy span{font-size:9.5px;line-height:1.25;display:block}
  .premiumModuleGrid .arrow{position:absolute;right:9px;bottom:7px;font-size:17px}

  .moduleActionBar,.sectionTitle,.pdvHeader,.receivableModalHead{align-items:flex-start;flex-direction:column;gap:9px}
  .moduleActionBar{margin-bottom:13px}.moduleActionBar h2{font-size:22px}.moduleActionBar p{font-size:12px}
  .moduleActionBar>.btn,.bigAction{width:100%;min-height:44px}
  .moduleStats,.cashStats,.cashCompactStats,.reportMetrics.five,.reportMetrics.four,.reportMetrics.three{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .metricCard,.reportMetric{padding:12px;border-radius:13px;min-width:0}
  .metricCardIcon{width:38px;height:38px}.metricCard strong,.reportMetric strong{font-size:17px}.metricCard span,.reportMetric span{font-size:10px}

  .toolbar{align-items:stretch;gap:8px}.toolbar input[type=search],.toolbar input,.toolbar select,.toolbar .btn{width:100%;min-width:0}
  input,select,textarea,.btn{min-height:44px;font-size:16px}
  .btn.small{min-height:38px;font-size:12px}
  .row{flex-wrap:wrap}.row>.field,.row>.grow{min-width:100%}
  .grid4,.grid3,.grid2{grid-template-columns:1fr;gap:10px}
  .card{padding:14px;border-radius:14px}

  .salesLanding{grid-template-columns:1fr;gap:10px;margin:10px 0 16px}
  .salesActionCard{min-height:115px;padding:18px;border-radius:17px}.salesActionCard strong{font-size:23px}.salesNewCard .salesActionIcon{width:52px;height:52px;border-radius:15px;margin-right:14px}.salesNewCard .salesActionIcon svg{width:28px;height:28px}
  .salesPeriod{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:end}.salesPeriod .field.compact{min-width:0}.salesPeriod .btn{grid-column:1/-1}
  .salesConsultSummary{align-items:flex-start;flex-direction:column;gap:4px;padding:11px}

  .pdvMetrics,.compactPdvMetrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .pdvMetric{min-height:72px;padding:10px 11px}.pdvMetric strong{font-size:17px}.pdvMetric.totalMetric strong{font-size:21px}.pdvMetric.customerMetric{grid-column:1/-1}
  .pdvGrid{grid-template-columns:1fr;gap:10px}.pdvProducts{min-height:0}.pdvSummary{position:static}.pdvClient{align-items:flex-start;flex-direction:column;gap:9px}.pdvClient .btn{width:100%}
  .saleTotals{grid-template-columns:1fr}.saleTotals>div:last-child{grid-column:auto}.saleTotals .btn{width:100%}
  .paymentOptions,.paymentMethods{grid-template-columns:1fr!important}

  .cashOpenHero,.compactCashOpen{grid-template-columns:1fr;padding:16px;gap:12px}.cashOpenIcon{width:50px;height:50px}.cashOpenControls,.cashTopActions{display:grid;grid-template-columns:1fr;gap:8px}.cashOpenControls .btn,.cashTopActions .btn{width:100%}
  .paymentTotalsBar{grid-template-columns:repeat(2,1fr)}.paymentTotalsBar>div{padding:10px;display:block}.paymentTotalsBar span{display:block}.paymentTotalsBar strong{display:block;margin-top:3px}
  .cashMovWrap{max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}

  .receivableBreak,.receivableStats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
  .receivableHeadActions{align-items:stretch}.receivableHeadActions .whatsappBtn{width:100%;justify-content:center}.receivableHeadActions .segmented{width:100%}.receivableHeadActions .segmented button{flex:1;padding:10px 7px}
  .selectionBar{align-items:stretch;flex-direction:column;gap:8px}.selectionBar strong{margin-left:0}.selectionActions{display:grid;grid-template-columns:1fr;gap:7px}.selectionActions .btn{width:100%}
  .receivableTableWrap,.reportTableWrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:calc(100vw - 20px);border-radius:11px}
  .receivableTable{min-width:920px}.paymentHistoryTable{min-width:980px}.reportTableWrap table{min-width:880px}
  .tableActions{min-width:125px;display:grid;grid-template-columns:1fr;gap:5px}.tableActions .btn{width:100%;justify-content:center}

  .reportsTop h2{font-size:24px}.reportTabs{margin-left:-2px;margin-right:-2px;padding:4px;scrollbar-width:none}.reportTabs::-webkit-scrollbar{display:none}.reportTabs button{padding:9px 11px;font-size:11px}
  .reportIntroActions{display:grid;grid-template-columns:1fr;width:100%}.reportFilters{padding:11px;gap:8px}.reportFilters .btn{min-height:44px}
  .reportMetrics.five,.reportMetrics.four,.reportMetrics.three{grid-template-columns:repeat(2,minmax(0,1fr))}
  .reportMetric:last-child:nth-child(odd){grid-column:1/-1}

  .modal{padding:0;align-items:flex-end}.modal>div{width:100vw;max-width:100vw;max-height:94dvh;border-radius:20px 20px 0 0;padding:17px 12px calc(18px + env(safe-area-inset-bottom));overflow:auto}.modal h3{font-size:20px}.modal .grid2,.modal .grid3,.modal .grid4{grid-template-columns:1fr}
  .modal table{min-width:760px}.modal .receivableTableWrap table{min-width:920px}

  #toast{left:10px;right:10px;bottom:78px;text-align:center;padding:11px 13px}
}
@media(max-width:390px){
  .premiumSummary .summaryGrid{grid-template-columns:1fr}.premiumSummary .summaryItem{border-right:0;border-bottom:1px solid #eceef2;display:grid;grid-template-columns:34px 1fr;align-items:center}.premiumSummary .summaryItem:last-child{border-bottom:0}
  .premiumModuleGrid{grid-template-columns:1fr}.premiumModuleGrid .moduleCard{min-height:74px;align-items:center}.premiumModuleGrid .moduleCopy span{font-size:10px}
  .moduleStats,.cashStats,.cashCompactStats,.reportMetrics.five,.reportMetrics.four,.reportMetrics.three,.receivableBreak,.receivableStats{grid-template-columns:1fr!important}
  .salesPeriod{grid-template-columns:1fr}.salesPeriod .btn{grid-column:auto}
  .pdvMetrics,.compactPdvMetrics{grid-template-columns:1fr}.pdvMetric.customerMetric{grid-column:auto}
  .paymentTotalsBar{grid-template-columns:1fr 1fr}
}


/* v0.31 — paginação, ordenação e cabeçalho mobile */
.tableMeta,.paginationBar{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#667085;font-size:13px}
.tableMeta{padding:2px 2px 12px}
.paginationBar{padding-top:14px}
.sortHeader{appearance:none;border:0;background:transparent;padding:0;color:inherit;font:inherit;font-weight:700;cursor:pointer}
.sortHeader:hover{text-decoration:underline}
.tableScroll{overflow-x:auto}
.paginationBar .btn:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:720px){
  .tableMeta,.paginationBar{font-size:12px;flex-wrap:wrap}
  .paginationBar .btn{min-height:40px}
  .mobileBrand .brandMark,.mobileBrand .brandMark.rhinoMark{
    width:30px!important;height:30px!important;min-width:30px!important;border-radius:8px!important;
    background:transparent!important;box-shadow:none!important;overflow:hidden!important;
  }
  .mobileBrand .brandMark svg{width:28px!important;height:28px!important}
}


/* v0.32 — relatórios paginados */
.reportPageMeta,.reportPagination{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#667085;font-size:13px}
.reportPageMeta{padding:0 0 12px}
.reportPagination{padding:14px 0 0}
.reportPagination .btn:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:720px){
 .reportPageMeta,.reportPagination{font-size:12px;flex-wrap:wrap}
 .reportPagination .btn{min-height:40px}
 .reportAlphaSort{min-width:145px}
}


/* v0.33 — encargos automáticos do contas a receber */
.debtRuleNote{margin:0 0 12px;padding:10px 12px;border:1px solid #d7dde5;border-radius:10px;background:#f8fafc;color:#475467;font-size:12px;line-height:1.45}
.actionGroup{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.dangerText{color:#b42318!important}
@media(max-width:720px){.actionGroup{width:100%}.actionGroup .btn{flex:1}}


/* v0.34 — detalhe e recebimento atualizado */
.debtDetailSummary,.receiveDebtCompare{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}
.debtDetailSummary>div,.receiveDebtCompare>div{border:1px solid #dfe4ea;background:#f8fafc;border-radius:12px;padding:12px}
.debtDetailSummary span,.receiveDebtCompare span{display:block;font-size:12px;color:#667085;margin-bottom:5px}
.debtDetailSummary strong,.receiveDebtCompare b{font-size:16px;color:#172033}
.debtDetailSummary .updated,.receiveDebtCompare .updated{background:#fff7f5;border-color:#f7c7be}
.debtDetailSummary .updated strong,.receiveDebtCompare .updated b{color:#b42318}
.receiveDebtCompare{grid-template-columns:repeat(2,minmax(0,1fr))}
.receiveQuickValues{display:flex;gap:8px;margin:0 0 14px}
.selectionBar #selUpdated{color:#b42318;font-weight:700}
@media(max-width:720px){
 .debtDetailSummary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .receiveDebtCompare{grid-template-columns:1fr 1fr}
 .receiveQuickValues .btn{flex:1}
}


/* v0.35 — negociação de encargos */
.receivePreview{margin:10px 0;padding:10px 12px;border:1px solid #d7dde5;border-radius:10px;background:#f8fafc;color:#475467}
.tableActions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
@media(max-width:720px){.tableActions .btn{min-height:38px}}


/* v0.36 — autenticação */
.authLocked{overflow:hidden}
.authOverlay{
  position:fixed;inset:0;z-index:99999;
  display:flex;align-items:center;justify-content:center;padding:24px;
  background:linear-gradient(145deg,#111821,#252e3a)
}
.authCard{
  width:min(430px,100%);background:#fff;border:1px solid #e4e7ec;
  border-radius:20px;padding:30px;box-shadow:0 28px 90px rgba(0,0,0,.38)
}
.authBrand{display:flex;gap:12px;align-items:center;margin-bottom:28px}
.authBrand h1{margin:0;color:#182230;font-size:25px;line-height:1.05}
.authBrand p{margin:4px 0 0;color:#667085;font-size:12px}
.authRhino{
  width:50px;height:50px;border-radius:15px;background:#1e2733;color:#fff;
  display:grid;place-items:center;font-size:20px
}
.authCard h2{margin:0 0 6px;color:#182230;font-size:22px}
.authCard .field{margin-top:15px}
.authCard .field label{display:block;margin-bottom:6px}
.authCard input{width:100%;min-height:44px}
.authSubmit{width:100%;min-height:46px;margin-top:18px}
.authError{min-height:20px;margin-top:10px;color:#b42318;font-size:13px}
@media(max-width:720px){
  .authOverlay{padding:14px}.authCard{padding:24px 20px}
}


/* v0.36.1 — usuário logado e sair */
.authSidebarBox{margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.10)}
.authSidebarUser{display:flex;align-items:center;gap:9px;padding:7px 6px 9px;color:#fff}
.authAvatar{width:30px;height:30px;flex:0 0 30px;border-radius:9px;background:rgba(255,255,255,.11);display:grid;place-items:center;font-weight:800;font-size:12px;color:#e8d19c}
.authUserCopy{min-width:0;display:flex;flex-direction:column}
.authUserCopy b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:118px}
.authUserCopy small{font-size:9px;color:#9ca7b6;margin-top:2px}
.authSidebarLogout{width:100%;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:#d2d8e0;border-radius:10px;padding:9px 10px;display:flex;align-items:center;gap:9px;cursor:pointer;text-align:left}
.authSidebarLogout:hover{background:rgba(255,255,255,.09);color:#fff}
.authSidebarLogout span{width:20px;text-align:center;font-size:15px}
.authSidebarLogout b{font-size:11px}
.authMobileLogout{display:none;border:1px solid #d7dde5;background:#fff;color:#344054;border-radius:10px;padding:7px 9px;align-items:center;gap:5px;cursor:pointer}
.authMobileLogout b{font-size:11px}
@media(max-width:1050px) and (min-width:721px){
  .authUserCopy{display:none}
  .authSidebarUser{justify-content:center;padding-left:0;padding-right:0}
  .authSidebarLogout{justify-content:center;padding-left:0;padding-right:0}
  .authSidebarLogout b{display:none}
}
@media(max-width:720px){
  .authMobileLogout{display:flex}
}


/* v0.36.2 — rodapé de autenticação sempre visível */
.sideNav{overflow:hidden}
.sideNavMain{min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
.sideNavFooter{flex:0 0 auto;min-height:0;background:linear-gradient(180deg,rgba(17,22,29,.92),#11161d)}
.authSidebarBox{flex:0 0 auto;margin-top:8px;padding-top:8px}
.authSidebarUser{padding-top:5px;padding-bottom:7px}
.authSidebarLogout{min-height:38px;flex:0 0 auto}
@media(max-height:760px) and (min-width:721px){
  .sideNav{padding-top:12px;padding-bottom:10px}
  .sideBrand{padding-bottom:10px}
  .sideNav button[data-page]{padding-top:8px;padding-bottom:8px}
  .sideNavFooter{padding-top:8px}
  .authSidebarBox{margin-top:6px;padding-top:6px}
  .authSidebarUser{padding-top:3px;padding-bottom:5px}
  .authSidebarLogout{padding-top:7px;padding-bottom:7px;min-height:34px}
}

/* v0.36.4 — cards mobile e colecoes responsivas */
.mobileCollection,.mobilePagedCollection{display:none}
.mobileCards{display:grid;gap:12px}
.mobileDataCard{background:#fff;border:1px solid #dfe4ea;border-radius:17px;padding:15px;box-shadow:0 5px 16px rgba(19,29,43,.04)}
.mobileDataCard.priorityMobileCard{background:#fffaf6;border-color:#ead8c7}
.mobileCardHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #e8ecf1}
.mobileCardHead h4{margin:0;color:#172033;font-size:15px;line-height:1.3}
.mobileCardHead p{margin:4px 0 0;color:#778397;font-size:12px;line-height:1.35}
.mobileCode{flex:0 0 auto;background:#f0f3f7;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:800;color:#526075}
.mobileInfoGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 0}
.mobileInfoGrid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.mobileInfo{min-width:0}
.mobileInfo span{display:block;color:#7b8798;font-size:10px;margin-bottom:3px}
.mobileInfo strong{display:block;color:#172033;font-size:13px;line-height:1.25;overflow-wrap:anywhere}
.mobileInfo.dangerText strong{color:#c44646}
.mobileCardActions{display:flex;gap:7px;flex-wrap:wrap;padding-top:2px}
.mobileCardActions .btn{flex:1;min-width:88px;min-height:38px}
.mobileCardActions.single .btn{width:100%}
.mobileCardActions.reportActions .btn{flex-basis:100%}
.mobileCardPagination{margin-top:12px}
.mobilePagedCollection{scroll-margin-top:78px}

@media(max-width:720px){
  .desktopCollection{display:none!important}
  .mobileCollection,.mobilePagedCollection{display:block}
  .mobileInfoGrid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
  .mobileDataCard{padding:13px}
  .mobileCardHead h4{font-size:14px}
  .mobileCardActions .btn{font-size:12px;padding:8px 9px}
  .modulePanel>.mobilePagedCollection{margin-top:4px}
  .toolbar input[type=search]::placeholder{font-size:12px}
}
@media(max-width:390px){
  .mobileInfoGrid,.mobileInfoGrid.three{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* v0.36.5 — mobile aprovado: inicio operacional + nova venda compacta */
.mobileHomeDashboard,.mobileSaleScreen{display:none}
@media(max-width:720px){
  /* Inicio mobile aprovado */
  .mobileHomeDashboard{display:block;padding:0 1px 2px}
  .mobileHomeWelcome{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 6px 9px}
  .mobileHomeWelcome h1{margin:0;color:#172033;font-size:27px;line-height:1.05;letter-spacing:-.7px}
  .mobileHomeWelcome p{margin:4px 0 0;color:#7b8798;font-size:12px}
  .mobileHomeRhino{width:65px;height:54px;display:grid;place-items:center;color:#aeb7c5;flex:0 0 65px}
  .mobileHomeRhino svg{width:61px;height:48px}
  .mobileHomeSummary{background:#fff;border:1px solid #dde2e8;border-radius:17px;padding:11px;margin-bottom:10px;box-shadow:0 5px 18px rgba(24,32,43,.04)}
  .mobileHomeSummaryHead{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
  .mobileHomeSummaryHead h2{margin:0;color:#6e7c93;font-size:10px;letter-spacing:2px}
  .mobileHomeSummaryHead span{font-size:10px;color:#7b8798}
  .mobileHomeSummaryGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .mobileHomeMetric{min-height:72px;border:1px solid #e6eaf0;border-radius:13px;padding:9px;display:flex;align-items:center;gap:8px;min-width:0;background:#fff}
  .mobileHomeMetricIcon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:0 0 34px}
  .mobileHomeMetricIcon svg{width:17px;height:17px}
  .mobileHomeMetric.green .mobileHomeMetricIcon{background:#e7f8ef;color:#16945c}.mobileHomeMetric.blue .mobileHomeMetricIcon{background:#e8f2ff;color:#237fe4}.mobileHomeMetric.purple .mobileHomeMetricIcon{background:#f0eaff;color:#7756df}.mobileHomeMetric.red .mobileHomeMetricIcon{background:#fff0f1;color:#d74255}
  .mobileHomeMetric span{display:block;color:#78859a;font-size:9px;line-height:1.2;margin-bottom:3px}.mobileHomeMetric strong{display:block;color:#172033;font-size:14px;line-height:1.15;overflow-wrap:anywhere}
  .mobileHomeSectionTitle{padding:0 5px 6px}.mobileHomeSectionTitle span{display:block;color:#718097;font-size:9px;font-weight:800;letter-spacing:2px}.mobileHomeSectionTitle p{margin:3px 0 0;color:#62718a;font-size:11px}
  .mobileHomeModules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .mobileHomeModules button{position:relative;border:1px solid #dfe4ea;background:#fff;border-radius:13px;min-height:72px;padding:8px 21px 8px 8px;display:flex;align-items:center;gap:8px;text-align:left;color:#172033;box-shadow:0 4px 14px rgba(24,32,43,.035);min-width:0}
  .mobileHomeModuleIcon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;color:#fff;flex:0 0 38px}.mobileHomeModuleIcon svg{width:20px;height:20px}.mobileHomeModuleIcon.iGreen{background:#24c685}.mobileHomeModuleIcon.iBlue{background:#338bea}.mobileHomeModuleIcon.iPurple{background:#8057e9}.mobileHomeModuleIcon.iOrange{background:#ff982e}.mobileHomeModuleIcon.iCyan{background:#22b5c7}.mobileHomeModuleIcon.iPink{background:#f83d72}
  .mobileHomeModules button>span:nth-child(2){min-width:0}.mobileHomeModules b{display:block;font-size:12px;line-height:1.1;margin-bottom:2px}.mobileHomeModules small{display:block;color:#7b8798;font-size:8.5px;line-height:1.2}.mobileHomeModules i{position:absolute;right:8px;font-style:normal;color:#738197;font-size:18px}

  /* Nova Venda mobile aprovada */
  .mobileSaleScreen{display:block}
  .mobileSaleTitle{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:0 1px 10px}
  .mobileSaleTitle h2{margin:0;color:#172033;font-size:27px;line-height:1.05;letter-spacing:-.5px}.mobileSaleTitle p{margin:4px 0 0;color:#7b8798;font-size:12px}
  .mobileSaleStatus{display:flex;align-items:center;gap:7px;background:#e8f8ef;color:#15945b;border-radius:999px;padding:9px 12px;font-size:12px;font-weight:800;white-space:nowrap}.mobileSaleStatus i{width:8px;height:8px;border-radius:50%;background:#19b66c}
  .mobileSaleCustomer,.mobileSaleProducts,.mobileSaleSummary{background:#fff;border:1px solid #dfe4ea;border-radius:16px;padding:12px;margin-bottom:9px;box-shadow:0 4px 16px rgba(24,32,43,.035)}
  .mobileSaleLabel{color:#6e7c93;font-size:9px;font-weight:800;letter-spacing:1.1px;margin-bottom:6px}
  .mobileSaleCustomerRow{display:flex;align-items:center;gap:9px}.mobileSaleCustomerIcon,.mobileSaleItemIcon{width:39px;height:39px;border-radius:11px;background:#e9f3ff;color:#2683ef;display:grid;place-items:center;flex:0 0 39px}.mobileSaleCustomerIcon svg,.mobileSaleItemIcon svg{width:21px;height:21px}
  .mobileSaleCustomerCopy{min-width:0;flex:1}.mobileSaleCustomerCopy strong{display:block;color:#172033;font-size:15px;line-height:1.15;overflow-wrap:anywhere}.mobileSaleCustomerCopy small{display:block;color:#7b8798;font-size:9px;margin-top:3px}.mobileSaleSwap{flex:0 0 auto;min-height:38px!important;font-size:11px!important;padding:8px 10px!important}
  .mobileSaleProductsHead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.mobileSaleProductsHead h3{margin:0;color:#172033;font-size:15px}.mobileSaleProductsHead h3 small{font-size:11px;color:#7b8798}.mobileSaleProductsHead .btn{min-height:38px;font-size:11px;padding:8px 10px;white-space:nowrap}
  .mobileSaleCart{display:grid;gap:8px}.mobileSaleEmpty{min-height:145px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px;color:#7b8798}.mobileSaleEmpty .emptyCartIcon{width:44px;height:44px;color:#2787ef}.mobileSaleEmpty .emptyCartIcon svg{width:40px;height:40px}.mobileSaleEmpty h3{margin:8px 0 3px;color:#172033;font-size:16px}.mobileSaleEmpty p{margin:0;font-size:11px}
  .mobileSaleItem{border:1px solid #e0e5eb;border-radius:13px;padding:10px}.mobileSaleItemTop{display:flex;align-items:center;gap:9px;padding-bottom:9px;border-bottom:1px solid #edf0f4}.mobileSaleItemTop>div:nth-child(2){min-width:0;flex:1}.mobileSaleItemTop strong{display:block;color:#172033;font-size:13px;line-height:1.2}.mobileSaleItemTop small{display:block;color:#718097;font-size:9px;margin-top:2px}.mobileSaleRemove{border:1px solid #ffd6da;background:#fff1f3;color:#d83d52;width:34px;height:34px;border-radius:9px;font-size:15px;flex:0 0 34px}
  .mobileSaleItemBottom{display:grid;grid-template-columns:1.05fr .9fr .9fr;gap:7px;align-items:end;padding-top:9px}.mobileSaleItemBottom>div>span{display:block;color:#718097;font-size:8.5px;margin-bottom:4px}.mobileSaleItemBottom>div>strong{font-size:12px;color:#172033;white-space:nowrap}.mobileQty{display:grid;grid-template-columns:28px 30px 28px;border:1px solid #dce2e8;border-radius:9px;overflow:hidden;width:max-content}.mobileQty button{border:0;background:#f7f9fb;color:#172033;height:30px;font-size:15px}.mobileQty b{display:grid;place-items:center;font-size:12px;background:#fff;border-left:1px solid #e3e7ec;border-right:1px solid #e3e7ec}
  .mobileSaleSummaryLine,.mobileSaleDiscountLine,.mobileSaleTotal{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 1px;border-bottom:1px solid #e9edf1;color:#66748a}.mobileSaleSummaryLine b,.mobileSaleDiscountLine b{color:#172033;font-size:13px}.mobileSaleDiscountLine{width:100%;border-left:0;border-right:0;border-top:0;background:transparent;text-align:left;font:inherit;cursor:pointer}.mobileSaleDiscountLine small{color:#2f83e5;font-size:8px;margin-left:4px}.mobileSaleTotal{border-bottom:0;padding:10px 1px 11px;color:#172033;font-weight:800}.mobileSaleTotal strong{font-size:22px}
  .mobileSaleSummary .paymentBlock{border:1px solid #dfe4ea;border-radius:13px;padding:10px;margin-top:3px}.mobileSaleSummary .paymentBlock label{font-size:10px}.mobileSaleSummary .paymentSelect{min-height:44px}.mobileSaleSummary .paymentAuxRow{margin:7px 0}.mobileSaleSummary .paymentPlus{min-height:36px;font-size:10px;margin-left:auto}.mobileSaleSummary #finish{min-height:44px}.mobileSaleClear{width:100%;margin-top:8px;background:#f2f5f8;color:#263245;border:0;min-height:40px;font-size:11px}

  /* a tela mobile usa o novo desenho, sem duplicar as estruturas antigas */
  .mobileSaleScreen~*{}
}
@media(max-width:390px){
  .mobileHomeWelcome h1{font-size:24px}.mobileHomeMetric{min-height:67px;padding:8px}.mobileHomeModules button{min-height:68px}.mobileHomeModules small{font-size:8px}
  .mobileSaleTitle h2{font-size:24px}.mobileSaleStatus{padding:8px 10px;font-size:11px}.mobileSaleCustomerRow{flex-wrap:wrap}.mobileSaleSwap{width:100%}.mobileSaleItemBottom{grid-template-columns:1fr 1fr}.mobileSaleItemBottom>div:first-child{grid-column:1/-1}
}

/* v0.36.5.1 — isolamento definitivo desktop x mobile */
@media (min-width:721px){
  .desktopCollection{display:block!important}
  .mobileCollection,
  .mobilePagedCollection,
  .mobileHomeDashboard,
  .mobileSaleScreen{display:none!important}
}
@media (max-width:720px){
  .desktopCollection{display:none!important}
  .mobileCollection,
  .mobilePagedCollection{display:block!important}
}


/* v0.36.5.2 — vendas realizadas mobile aprovada */
.mobileSaleHistoryCard{display:flex;flex-direction:column;gap:11px}
.mobileSaleHistoryTop{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mobileSaleHistoryDate{color:#657795;font-size:12px;font-weight:600}
.mobileSaleHistoryInfo{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;padding:11px 0;border-top:1px solid #e8ecf1}
.mobileSaleHistoryInfo p{margin:0;min-width:0;display:flex;flex-direction:column;gap:3px}
.mobileSaleHistoryInfo span{color:#7b8798;font-size:10px}
.mobileSaleHistoryInfo strong{color:#172033;font-size:13px;line-height:1.3;overflow-wrap:anywhere}
.mobileSaleHistoryInfo .saleTotalMobile strong{font-size:16px}
.reversedSaleCard{background:#fff8f8;border-color:#efd5d8}
@media(max-width:720px){
  .salesConsult{margin-bottom:18px;padding:15px;border-radius:17px}
  .salesConsultHeader{margin-bottom:10px}
  .salesConsultHeader h3{font-size:20px;margin:0}
  .salesConsultHeader .muted{font-size:12px}
  .salesConsultHeader #closeSalesConsult{display:none}
  .salesPeriod{display:grid;grid-template-columns:1fr;gap:8px;margin:10px 0 12px}
  .salesPeriod .field.compact{min-width:0;margin:0}
  .salesPeriod .field.compact label{font-size:11px}
  .salesPeriod .field.compact input{min-height:44px;padding:9px 12px}
  .salesPeriod .btn{grid-column:auto;width:100%;min-height:44px}
  .salesConsultSummary{display:grid;grid-template-columns:1fr auto;gap:2px 10px;align-items:center;padding:11px 13px;margin-bottom:12px}
  .salesConsultSummary span{font-size:12px}
  .salesConsultSummary strong{grid-column:2;grid-row:1 / span 2;font-size:20px}
  .salesConsultSummary small{font-size:11px}
  #salesList>.mobilePagedCollection{display:block}
}
@media(max-width:390px){
  .mobileSaleHistoryInfo{grid-template-columns:1fr}
}
