.tablet-hero h1 em{color:#00a8ef;font-style:normal}
.tablet-hero-copy{background:linear-gradient(90deg,#000b,transparent)}
.pc-label-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.pc-label-panel{background:#f3f6fb;border:1px solid #e2e9f2;border-radius:16px;padding:14px;min-width:0}
.pc-label-panel h2{font-size:1.1rem;margin:0 0 10px}
.pc-label-panel h3{font-size:1rem}
.pc-label-models{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
.pc-label-models button{min-height:50px;font-size:.8rem}
.pc-label-models button[aria-pressed=true]{border-color:#df5a16;background:#fff2e9}
.pc-label-fields,.pc-label-dims{display:flex;flex-wrap:wrap;gap:10px;margin:9px 0}
.pc-label-dims input{max-width:90px}
.pc-label-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
#labels-results,#labels-selected{max-height:160px;overflow:auto}
#labels-results button{display:block;text-align:left;width:100%;margin-top:4px}
#labels-selected [data-item]{display:grid;grid-template-columns:1.5fr 1.3fr 66px 42px;gap:4px;margin:4px 0}
#labels-preview{display:grid;place-items:center;min-height:146px}
.pc-label{box-sizing:border-box;width:var(--label-width);height:var(--label-height);background:var(--label-bg);color:#111;border:1px solid #ccd4de;border-radius:4px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.2mm;overflow:hidden;text-align:center;line-height:1.12;break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.pc-label strong{font-size:clamp(8px,calc(var(--label-height) * .15),22px);line-height:1.08;max-width:100%;overflow-wrap:anywhere}
.pc-label b{font-weight:800;font-size:clamp(12px,calc(var(--label-height) * .28),36px);color:var(--label-color)}
.pc-label small{font-size:8px}
.pc-label img{max-height:26%;max-width:30%;object-fit:contain}
.pc-bars{display:grid;justify-items:center;width:100%;background:white;margin-top:2px}
.pc-bars svg{width:90%;height:5mm;fill:#000}
.pc-bars small{font:8px sans-serif;letter-spacing:.1px}
#pc-print-labels{display:none}
@media(max-width:950px){.pc-label-grid{grid-template-columns:1fr}.pc-label-models{grid-template-columns:repeat(4,1fr)}}
@media print {
 body.pc-label-printing>*:not(#pc-print-labels){display:none!important}
 body.pc-label-printing{background:white!important;margin:0!important}
 #pc-print-labels{display:flex;flex-wrap:wrap;align-items:flex-start;gap:3mm}
 #pc-print-labels.pc-print-thermal{display:block}
 .pc-print-thermal .pc-label{border:0;break-after:page}
 .pc-print-thermal .pc-label:last-child{break-after:auto}
}
#modal:has(#confirm-sale){display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:min(790px,92dvh);overflow:hidden}
#modal:not([open]){display:none}
#modal:has(#confirm-sale) .dialog-body{overflow:auto;min-height:0}
#modal:has(#confirm-sale) .dialog-footer{position:relative;margin:0;background:var(--paper,#fff)}
.orange-receipt .receipt-store-logo{display:block;width:min(260px,68%);max-height:104px;object-fit:contain;margin:auto}
.orange-receipt .receipt-title{background:#f6e3e5}
.orange-receipt .receipt-summary{background:#b60b17;color:#fff}
.orange-receipt .receipt-summary .receipt-amount,.orange-receipt .receipt-summary dt,.orange-receipt .receipt-summary dd{color:#fff}
.orange-receipt .receipt-items tr{break-inside:avoid}
.pc-expiry-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin-bottom:16px}
.pc-expiry-cards button{display:grid;justify-items:start;align-content:center;min-height:90px;text-align:left;border:1px solid #dce4ef;background:#edf5ff}
.pc-expiry-cards button[data-expiry=expired]{background:#fff0f1;color:#a31e2b}
.pc-expiry-cards button[data-expiry=week]{background:#fff5e7;color:#99520e}
.pc-expiry-cards button[data-expiry=all]{background:#ebf8ee;color:#26643c}
.pc-expiry-cards button[aria-pressed=true]{outline:2px solid currentColor}
.pc-expiry-cards strong{font-size:1.8rem;margin-top:4px}
.pc-checkout-content{display:grid;grid-template-columns:.9fr 1.1fr;gap:18px}
.pc-checkout-summary{display:flex;flex-direction:column;gap:8px}
.pc-checkout-summary>div,.pc-checkout-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pc-checkout-summary>div{padding:6px 0;border-bottom:1px solid #dfe5ed}
#pc-split:not(.hidden){display:grid;grid-template-columns:1fr 1fr;gap:8px}
#pc-remainder{grid-column:1/-1}
@media(max-width:700px){.pc-checkout-content{grid-template-columns:1fr}}

/* Crop the same store photo across the whole app, as the tablet does. */
.layout[data-screen]{position:relative;isolation:isolate;--pdv-navigation-width:clamp(220px,18.1vw,340px);background:#d7d8dc}
.layout[data-screen]::before{
 content:"";position:absolute;inset:-10px;z-index:-1;pointer-events:none;
 background:linear-gradient(180deg,#e5e6e866,#edf0f385 52%,#dce0e5a6),url("./store_workspace.png") center/cover no-repeat;
 filter:blur(4px);
}
.layout[data-screen] .workspace{position:relative;background:transparent}
.layout[data-screen] .workspace::before{content:none}
.topbar{background:transparent}
.topbar .shop-select{background:#fffdf7e8;backdrop-filter:blur(10px);border:1px solid #fff9}
.layout[data-screen=sistema] #page.panel{background:transparent;border:0;box-shadow:none}
.layout[data-screen=sistema] .tablet-glass{background:#f8fafc}
#modal[open]::backdrop{background:#10182870;backdrop-filter:blur(9px)}
#modal[open]{border:1px solid #fff9;border-radius:24px;box-shadow:0 20px 60px #10182845}
#modal[open] :is(.dialog-header,.dialog-footer){background:#fff;border-color:#e1e7ee}
#modal[open] .dialog-footer{box-shadow:0 -5px 14px #10182808}
#modal:has(#confirm-sale),#modal:has(#collect-confirm){width:min(1000px,calc(100vw - 32px))}
#modal:has(#collect-confirm){display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:90dvh;overflow:hidden}
#modal:has(#collect-confirm) .dialog-body{overflow:auto;min-height:0}
.layout[data-screen=validades] .page-heading{min-height:98px;padding-right:min(26vw,240px);background:url("./expiry_dairy.png") right center/145px auto no-repeat}
#local-receivables [data-pocket][aria-pressed=true]{background:#eee8ff;color:#4b24aa;border-color:#a58af0}
#local-receivables{margin-bottom:16px}
@media(min-width:761px){
 .layout{grid-template-columns:var(--pdv-navigation-width) minmax(0,1fr)}
 .sidebar{width:var(--pdv-navigation-width);background:linear-gradient(150deg,#090f18,#111820 55%,#070e16);padding:21px 15px;border-radius:0 17px 17px 0}
 .sidebar .brand{margin:6px 7px 22px}
 .sidebar nav{gap:5px}
 .sidebar nav .nav-link{min-height:52px;padding:8px 12px;gap:13px;border:1px solid transparent;font-size:15px}
 .sidebar nav .nav-link.active{background:#ffffff12;border-color:#b4cee84d}
 .workspace{padding:0 12px 10px}
 .topbar{height:82px}
 .panel{padding:19px}
 .layout[data-screen=sistema] .panel{padding:0}
 .tablet-hero{border-radius:19px;min-height:290px;background-position:center right}
 .tablet-hero-copy{padding:23px 27px}
}
@media(max-width:620px){.layout[data-screen=validades] .page-heading{background:none;padding-right:0}}
@media print{
 #modal[open]::backdrop,.layout[data-screen]::before{display:none!important}
}
.pc-exchange-grid{display:grid;grid-template-columns:minmax(240px,.67fr) minmax(0,1fr);gap:12px;margin-top:14px}
.pc-exchange-grid .account-card,.pc-exchange-grid .detail-row{margin-bottom:6px}
.pc-exchange-grid [aria-pressed=true]{background:#eee8ff;border-color:#b49ce9}
#exchange-replacement input:not([type=checkbox]){max-width:100%}
#exchange-replacement .dialog-footer{justify-content:flex-end;display:flex;gap:8px;padding:10px 0}
@media(max-width:760px){.pc-exchange-grid{grid-template-columns:1fr}}

/* Tablet composition scaled to the Windows viewport. */
@media (min-width: 1100px) {
  .layout[data-screen] { --pdv-sidebar: clamp(225px, 18.15vw, 348px); }
  .layout[data-screen] .sidebar { width: var(--pdv-sidebar); padding: clamp(16px, 1.75vw, 34px); background: linear-gradient(155deg,#0e131b,#151b23 51%,#0b1119); border-radius: 0 24px 24px 0; }
  .layout[data-screen] .workspace { margin-left: 0; padding-bottom: clamp(10px,1.35vw,26px); padding-inline: clamp(16px,1.25vw,24px); }
  .layout[data-screen] .sidebar .brand { gap: clamp(10px,1.25vw,24px); margin: 5px 0 24px; padding: 0; align-items: center; font-size: clamp(14px,1.12vw,22px); line-height: 1.2; }
  .layout[data-screen] .sidebar .brand img { width: clamp(44px,4vw,76px); height: auto; flex: none; }
  .layout[data-screen] .sidebar .brand small { color: #00c8f2; font-size: inherit; margin-block: 4px; }
  .layout[data-screen] .desktop-store-location { color: #c3cedd; font-size: .8em; font-weight: 400; }
  .layout[data-screen] .sidebar nav { gap: clamp(4px,.7vh,9px); }
  .layout[data-screen] .sidebar nav .nav-link { font-size: clamp(14px,1.22vw,24px); font-weight: 400; min-height: clamp(43px,6.55vh,72px); gap: clamp(12px,1.2vw,23px); padding: 4px; color: #d5dfef; }
  .layout[data-screen] .sidebar nav .nav-link>.icon { width: clamp(34px,2.8vw,54px); height: clamp(34px,2.8vw,54px); padding: clamp(6px,.55vw,11px); color: #f5f8ff; background: linear-gradient(145deg,#384451,#182028); border: 1px solid #ffffff36; border-radius: 14px; box-sizing: border-box; }
  .layout[data-screen] .sidebar nav .nav-link.active { color: #fff; background: #ffffff25; }
  .layout[data-screen] .topbar { justify-content: flex-end; gap: clamp(12px,2vw,38px); min-height: clamp(65px,8.6vh,92px); padding: 8px 0; }
  .layout[data-screen] .topbar-left, .layout[data-screen] .topbar-right { gap: clamp(12px,1.6vw,30px); }
  .layout[data-screen] .topbar .clock { display: flex; flex-direction: column; align-items: center; color: #4f579d; line-height: 1.2; font-size: clamp(13px,1vw,19px); }
  .layout[data-screen] .topbar .clock b { color: #111045; font-size: clamp(23px,1.8vw,35px); }
  .layout[data-screen] .shop-select img.avatar { object-fit: contain; padding: 0; background: transparent; }
  .layout[data-screen] .shop-select { border-radius: 26px; background: #ffffffe0; border-color: #fff; }
  .tablet-home { gap: clamp(12px,1.6vh,18px); }
  .tablet-home .tablet-hero { min-height: clamp(255px,36.3vh,410px); border-radius: clamp(19px,1.45vw,28px); }
  .tablet-home .tablet-hero-copy { min-height: inherit; box-sizing: border-box; display: flex; flex-direction: column; align-items: stretch; justify-content: space-between; max-width: 54%; padding: clamp(15px,2.1vh,25px) clamp(20px,2vw,38px); }
  .tablet-home .tablet-eyebrow { letter-spacing: .29em; font-size: clamp(11px,.88vw,17px); margin: 0; color: #e1e7f5; }
  .tablet-home .tablet-hero h1 { font-size: clamp(32px,3.05vw,59px); margin: 6px 0 10px; line-height: 1.28; font-weight: 800; letter-spacing: -.025em; }
  .tablet-home .tablet-hero h1 em { color: #00aeef; font-style: normal; }
  .tablet-home .tablet-hero h1 span { font-size: .68em; color: #c3cddd; letter-spacing: 0; }
  .tablet-home .tablet-sell { min-width: 0; width: 100%; min-height: clamp(52px,7.45vh,81px); background: linear-gradient(110deg,#2188fb,#0759df)!important; border: 2px solid #72b2ff!important; border-radius: clamp(15px,1.35vw,26px); font-size: clamp(18px,1.6vw,31px); gap: 14px; padding: 7px 12px; }
  .tablet-home .tablet-sell>.icon { box-sizing: border-box; width: clamp(34px,2.65vw,51px); height: clamp(34px,2.65vw,51px); padding: 8px; border-radius: 12px; background: #ffffff25; }
  .tablet-home .tablet-sell>.icon:last-child { border-radius: 50%; background: #1796ef; }
  .tablet-home .tablet-unified { grid-template-columns: 1.95fr 1fr; padding: clamp(14px,1.25vw,24px); background: linear-gradient(110deg,#293951,#141f2f 57%,#1a293d); }
  .tablet-home .tablet-metric-icon { width: clamp(47px,4.1vw,79px); height: clamp(47px,4.1vw,79px); background: linear-gradient(145deg,#8ba8e6,#44639f); border: 2px solid #b2c7f3a8; }
  .tablet-home .tablet-periods { padding-top: 8px; border-top: 1px solid #87a6d137; }
  .tablet-home .tablet-period { border: 0; padding-left: 0; gap: 2px; }
  .tablet-home .tablet-period strong { font-size: clamp(18px,1.46vw,28px); }
  .tablet-home .tablet-period small, .tablet-home .tablet-receivable small { font-size: clamp(10px,.9vw,17px); }
  .tablet-home .tablet-receivable b { font-size: clamp(23px,1.92vw,37px); }
  .tablet-home .tablet-home-bottom { grid-template-columns: 1.63fr 1fr; }
  .tablet-home .tablet-glass { padding: clamp(12px,1.3vw,25px); background: #f8fafc; }
  .tablet-home .tablet-glass h2 { font-size: clamp(17px,1.4vw,27px); color: #171051; }
  .tablet-home .tablet-glass header>a { color: #0065ff; font-size: clamp(12px,1.05vw,20px); font-weight: 650; }
  .tablet-home .tablet-action { min-height: clamp(86px,12.55vh,136px); padding: 8px; align-content: start; gap: 4px; color: #171051; border-radius: 22px; }
  .tablet-home .tablet-action strong { font-size: clamp(13px,1.04vw,20px); }
  .tablet-home .tablet-action small { font-size: clamp(11px,.9vw,17px); color: #5f63a3; }
  .tablet-home .tablet-action-icon { width: clamp(31px,2.24vw,43px); height: clamp(31px,2.24vw,43px); border-radius: 10px; border: 1px solid #ffffff85; }
  .tablet-home .tablet-action.blue .tablet-action-icon { background: linear-gradient(145deg,#489aff,#0759df); }
  .tablet-home .tablet-action.green .tablet-action-icon { background: linear-gradient(145deg,#38d0aa,#008d7e); }
  .tablet-home .tablet-action.purple .tablet-action-icon { background: linear-gradient(145deg,#b867ff,#781ce1); }
  .tablet-home .tablet-action.red { background: linear-gradient(135deg,#fbeef2,#fff9); border-color: #f8d9df; }
  .tablet-home .tablet-action.red .tablet-action-icon { background: linear-gradient(145deg,#ff6888,#e52347); }
  .tablet-home .tablet-recent-sale { padding: 5px 8px; color: #555c9e; }
  .tablet-home .tablet-recent-sale b { color: #008456; }
}

.pdv-page-title { display: flex; align-items: center; gap: 14px; }
.pdv-page-icon { display: grid; place-items: center; width: 53px; height: 53px; flex: none; border-radius: 15px; background: linear-gradient(145deg,#3b97ff,#1557bf); box-shadow: inset 0 1px #fff6,0 3px 7px #20488433; color: white; }
.pdv-page-icon>.icon { width: 29px; height: 29px; }
.layout[data-screen="produtos"] .pdv-page-icon { background: linear-gradient(145deg,#47627b,#253747); }
@media (min-width: 1100px) {
  .layout[data-screen] { grid-template-columns: var(--pdv-sidebar) minmax(0,1fr); }
  .tablet-home .tablet-glass header { margin-bottom: clamp(9px,1.4vh,16px); }
  .tablet-home .tablet-action { min-height: clamp(78px,11.7vh,129px); }
  .tablet-home .tablet-period small:empty { display: none; }
  .tablet-home .tablet-sync-note { margin: 0 0 8px; }
}

/* Frosted header over the store photo, with the clock centered between controls. */
.layout[data-screen] .topbar { justify-content: flex-end; }
.layout[data-screen] .topbar > .mobile-toggle { margin-right: auto; }
.pdv-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  width: clamp(280px,29vw,550px); max-width: 100%; min-height: 58px; padding: 5px 8px; gap: 8px;
  border: 1px solid #ffffffb5; border-radius: 25px;
  background: linear-gradient(115deg,#ffffff70,#fff8ef5e 44%,#ffffff70);
  backdrop-filter: blur(7px);
  box-shadow: 0 4px 18px #26190f15; color: #15164c;
}
.layout[data-screen] .pdv-toolbar .clock {
  display: flex; flex-direction: column; align-items: center; flex: 1; text-align: center;
  border-inline: 1px solid #292b6724; color: #4c528d; line-height: 1.15;
}
.layout[data-screen] .pdv-toolbar .clock b { color: #111044; font-size: clamp(24px,1.85vw,36px); font-variant-numeric: tabular-nums; }
.pdv-toolbar .status-button {
  position: relative; display: grid; place-items: center; width: 47px; min-height: 42px;
  border: 0; border-radius: 14px; padding: 0; background: transparent; color: inherit; box-shadow: none;
}
.pdv-toolbar .status-button .icon { width: 26px; height: 26px; }
.pdv-toolbar .status-dot { position: absolute; top: 6px; right: 9px; }
.pdv-toolbar .pdv-status-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.layout[data-screen] .pdv-toolbar .shop-select {
  min-width: 0; min-height: 42px; gap: 10px; padding: 4px 10px 4px 5px;
  border: 1px solid #fffc; border-radius: 18px; background: #ffffff85; color: inherit;
}
.layout[data-screen] .pdv-toolbar .shop-select img.avatar {
  width: clamp(32px,2.75vw,53px); height: clamp(32px,2.75vw,53px);
  background: transparent; padding: 0; object-fit: contain;
}
@media(max-width: 480px) {
  .pdv-toolbar { width: auto; flex: 1; min-width: 0; gap: 4px; }
  .layout[data-screen] .topbar { gap: 6px; }
}

/* On the tablet the shop photograph runs directly behind the date and controls. */
.pdv-toolbar {
  background: transparent; backdrop-filter: none; box-shadow: none; border-color: transparent;
}
.layout[data-screen] .pdv-toolbar .clock { border: 0; }

.layout[data-screen]:not([data-screen=sistema]) #page.panel {
  background: #fff; border: 1px solid #e1e7ee; box-shadow: 0 6px 24px #17151c1c;
}
.layout[data-screen] .sidebar nav { scrollbar-width: thin; scrollbar-color: #495362 transparent; }
.layout[data-screen] .sidebar .brand { font-size: clamp(14px,1.09vw,21px); }
.layout[data-screen] :is(.account-card,.settings-card,.analytics-card,.product,.cart,.pc-label-panel) {
  background-color: #fff; border-color: #e0e7ef;
}
.layout[data-screen] :is(.account-card,.settings-card,.analytics-card,.product) { border-radius: 17px; }
.layout[data-screen=receber] .account-grid { grid-template-columns: minmax(0,1fr); }
.layout[data-screen=receber] .account-card { padding: 16px; }
.layout[data-screen=receber] .overview-metric { background-color: #fff; border-radius: 18px; }
.layout[data-screen=lista] .draft-tools { gap: 10px; flex-wrap: wrap; }
.pdv-demo-badge { margin-right: auto; padding: 6px 10px; border-radius: 10px; background: #fff; color: #243449; font-weight: 650; font-size: 13px; }
@media(min-width:1100px){
  .layout[data-screen] .topbar { min-height: clamp(82px,9.85vh,106px); }
  .layout[data-screen] .workspace { padding-bottom: 12px; }
  .layout[data-screen]:not([data-screen=sistema]) #page.panel { border-radius: 25px; }
}

/* Trocas: busca e filtros acima da lista de vendas e do painel de itens. */
.exchange-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:10px; }
.exchange-tools label { display:flex; align-items:center; gap:8px; }
.pc-exchange-grid { grid-template-columns:minmax(230px,.62fr) minmax(0,1fr); gap:12px; }
.exchange-pane { min-width:0; padding:14px; border:1px solid #e1e6f0; border-radius:21px; background:#fbfbfe; }
.exchange-pane h2,.exchange-pane h3 { margin:0 0 8px; }
.exchange-pane .account-card { width:100%; text-align:left; }
.exchange-pane .detail-row[data-line] { width:100%; display:grid; grid-template-columns:23px 45px minmax(0,1fr) auto auto; align-items:center; gap:10px; text-align:left; }
.exchange-pane .product-photo { display:grid; place-items:center; height:40px; border-radius:8px; overflow:hidden; }
.exchange-pane .product-photo img { max-width:100%; max-height:100%; object-fit:contain; }
.exchange-selection { width:21px; height:21px; border:1px solid #aeb7ca; border-radius:5px; display:grid; place-items:center; }
.exchange-selection .icon { width:15px; height:15px; }
.exchange-pane [data-line][aria-pressed=true] .exchange-selection { background:#5014da; color:#fff; border-color:#5014da; }
.exchange-pane .account-card[aria-pressed=true],.exchange-pane [data-line][aria-pressed=true] { background:#eee6fb; border-color:#cebdf5; }
.exchange-line-info { min-width:0; overflow-wrap:anywhere; }
.exchange-guidance { display:flex; gap:10px; align-items:center; border-radius:14px; background:#f0e7fc; color:#2d1467; margin:12px 0; padding:12px; }
.exchange-guidance small { display:block; margin-top:4px; }
#exchange-replacement > input { width:100%; }
#exchange-replacement .dialog-footer { display:flex; gap:10px; margin-top:10px; }
#exchange-replacement .dialog-footer .primary { flex:1; background:linear-gradient(135deg,#722cf3,#3e08bd); color:white; }
@media(max-width:860px){.pc-exchange-grid{grid-template-columns:minmax(0,1fr)}}

/* History, statistics and store settings share the tablet's opaque surfaces. */
.sales-history-tools { display:flex; gap:12px; align-items:center; }
.sales-history-tools .search { flex:1; }
.history-period { display:flex; align-items:center; gap:9px; }
.history-status-tabs button { display:inline-flex; gap:7px; align-items:center; }
.history-status-tabs button[aria-pressed=true] { background:#252d39; color:white; border-color:#252d39; }
.history-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:12px 0; }
.history-metric { display:flex; align-items:center; gap:10px; padding:11px; background:#fff; border:1px solid #e0e6ee; border-radius:15px; }
.history-metric b { display:block; font-size:1.3rem; color:#16213a; }
.history-metric .analytics-icon { background:#e8f2ff; color:#166bce; }
.history-metric.exchanges .analytics-icon,.sales-history-row.exchanges .analytics-icon { background:#e7f8ef; color:#087443; }
.history-day { font-size:.95rem; margin:12px 0 3px 8px; }
.sales-history-row { background:#fff; }
.layout[data-screen=estatisticas] .analytics-columns { margin:12px 0; }
.layout[data-screen=estatisticas] .stats-graph-layout { grid-template-columns:minmax(0,1.8fr) minmax(0,1fr); }
.stats-chart-filter { display:flex; justify-content:flex-end; align-items:center; gap:9px; font-size:.85rem; }
.stats-bars { display:flex; gap:7px; align-items:stretch; min-height:150px; padding:10px 3px; overflow:auto; }
.stats-bars div { flex:1 0 max(28px,4%); display:grid; grid-template-rows:1fr auto; justify-items:center; align-items:end; min-width:0; gap:4px; }
.stats-bars div>span { display:block; width:min(32px,88%); height:var(--bar); border-radius:5px 5px 1px 1px; background:linear-gradient(#9973ff,#602bd9); }
.stats-bars div>span.negative { background:#b93849; }
.stats-bars small { font-size:.72rem; color:#546383; }
.stats-best { display:flex; justify-content:space-between; text-transform:capitalize; gap:12px; }
.pdv-settings-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; gap:16px; }
.pdv-settings-side { display:grid; gap:16px; min-width:0; }
.pdv-settings-layout .settings-card { padding:18px; }
.pdv-settings-layout .settings-card header { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.pdv-settings-layout header .pdv-page-icon { width:40px; height:40px; background:#283342; }
.pdv-settings-layout header .icon { width:23px; height:23px; }
.pdv-settings-layout h2 { margin:0; font-size:1.22rem; }
.pdv-settings-layout header p { margin:3px 0 0; }
.pdv-settings-logo { display:flex; gap:10px; align-items:center; padding:10px 0; }
.pdv-settings-logo img { width:47px; height:47px; object-fit:contain; }
#inline-store-profile { display:grid; grid-template-columns:1fr 1fr; gap:9px 12px; }
#inline-store-profile :is([data-profile-key=name],[data-profile-key=pixKey],[data-profile-key=website],[data-profile-key=address],.actions,[role=status]) { grid-column:1/-1; }
#inline-store-profile .field { margin:0; }
#inline-store-profile [role=status] { margin:0; }
.pdv-setting-action { width:100%; display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:9px; text-align:left; background:#f9f9ff; }
.pdv-setting-action small { display:block; margin-top:4px; }
.pdv-settings-more { margin-top:16px; padding:12px; background:#fff; border:1px solid #e1e6ef; border-radius:16px; }
.pdv-settings-more summary { cursor:pointer; font-weight:650; }
.pdv-settings-more summary .icon { vertical-align:middle; }
.pdv-settings-more .settings-grid { margin-top:14px; }
.pdv-receipt-settings { display:grid; gap:12px; }
@media(max-width:880px){
 .pdv-settings-layout,.layout[data-screen=estatisticas] .stats-graph-layout { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:520px){
 .sales-history-tools { flex-wrap:wrap; }
 .history-metrics { grid-template-columns:minmax(0,1fr); }
}

.pdv-receivable-metrics .overview-metric,.pdv-customer-metrics .overview-metric {
 display:flex; flex-direction:row; align-items:center; gap:12px; text-align:left; min-height:90px; padding:14px;
}
.pdv-receivable-metrics .overview-metric>span:nth-child(2) { flex:1; }
.pdv-receivable-metrics .overview-metric b,.pdv-receivable-metrics .overview-metric small { display:block; }
.pdv-receivable-metrics .overview-metric[data-pocket=PENDENTE] { background:#f6f2ff; border-color:#e9ddfb; }
.pdv-receivable-metrics .overview-metric[data-pocket=FIADO] { background:#eff7ff; border-color:#dbeafc; }
.pdv-receivable-metrics .account-avatar,.pdv-customer-metrics .account-avatar { border-radius:14px; background:#eee6ff; color:#692ac6; }
.pdv-receivable-metrics [data-pocket=FIADO] .account-avatar { background:#dceeff; color:#136ab7; }
.pdv-customer-metrics .green .account-avatar { background:#dff5eb;color:#157f4f; }
.pdv-customer-metrics .amber .account-avatar { background:#fff1d9;color:#995908; }
.receivable-count { border-radius:100px; padding:5px 9px; background:#fff9; white-space:nowrap; }
.receivable-tools { display:flex; align-items:center; gap:12px; margin:12px 0; }
.receivable-tools .search { flex:1; }
.receivable-pill { border-radius:100px; padding:3px 7px; background:#eef2fa; width:max-content; max-width:100%; }
.receivable-pill.late { background:#fde8eb; color:#a22135; }
.receivable-pill.attention { background:#fff1d1; color:#805410; }
.receivable-pill.paid { background:#e5f7eb; color:#176c40; }
.customer-filters { margin:11px 0; }
.customer-card { width:100%; text-align:left; margin:5px 0; }
.customer-count,.customer-balance { border-radius:50px; background:#eef1f6; padding:6px 9px; white-space:nowrap; }
.customer-balance { background:#e4f6ed; color:#106a43; font-weight:700; }
.customer-detail { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:13px; }
.customer-detail > * { min-width:0; border:1px solid #e4e8ef; border-radius:16px; padding:12px; }
.customer-detail h3 { margin:0 0 8px; }
.customer-detail .account-total { margin-bottom:9px; }
@media(max-width:750px){.receivable-tools{flex-wrap:wrap}.customer-detail{grid-template-columns:1fr}}

#modal:has(#collect-confirm) { width:min(790px,calc(100vw - 26px)); border-radius:24px; }
#modal:has(#collect-confirm) .dialog-header { padding-bottom:9px; }
#modal:has(#collect-confirm) .dialog-footer .primary { flex:1; background:linear-gradient(120deg,#5b23ec,#3d06d8); border-color:#4d15ec; color:white; }
.collect-summary { grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; padding:7px; border:1px solid #eeeaf7; border-radius:17px; }
.collect-summary .overview-metric { padding:10px; border:0; box-shadow:none; background:#faf9fe; }
.collect-summary .overview-metric:nth-child(2) strong { color:#087f3b; }
.collect-summary .overview-metric:last-child { background:#fce8ed; color:#a41630; }
.collect-value { display:flex; align-items:flex-end; gap:10px; margin:12px 0; }
.collect-value .field { flex:1; min-width:100px; margin:0; }
.collect-value input { font-size:1.5rem; font-weight:750; }
.collect-value .payment-options { display:flex; flex-wrap:wrap; align-items:center; }
.collect-total { color:#4e0ddd; border-color:#6128f2; background:#f3eaff; }
.collect-methods { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.collect-methods button { display:flex; gap:7px; justify-content:center; align-items:center; min-height:48px; }
.collect-methods button[aria-pressed=true] { background:#f1e8ff; border-color:#6626ed; color:#450bbd; }
.collect-parts { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.collect-parts [role=status] { grid-column:1/-1; }
@media(max-width:560px){
 .collect-value{flex-wrap:wrap}.collect-value .field{flex-basis:100%}.collect-methods{grid-template-columns:1fr 1fr}
 .collect-summary .overview-metric { padding:6px; min-width:0; }
 .collect-summary strong { font-size:clamp(.77rem,3.8vw,1rem); }
}

.pdv-stock-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin-bottom:12px; }
.pdv-stock-metrics .overview-metric { display:flex; align-items:center; gap:10px; text-align:left; background:#fff; }
.pdv-stock-metrics .overview-metric>span:nth-child(2) { flex:1; }
.pdv-stock-metrics .account-avatar { border-radius:12px; background:#ece5ff;color:#6629ca; }
.pdv-stock-metrics .green .account-avatar { background:#e3f7eb;color:#147d46; }
.pdv-stock-metrics .amber .account-avatar { background:#fff0dd;color:#a45012; }
.pdv-stock-metrics .red .account-avatar { background:#fde9e9;color:#a21b2b; }
.stock-product { display:flex; align-items:center; gap:10px; }
.stock-product .product-photo { display:grid; place-items:center; width:45px; height:45px; overflow:hidden; flex:none; border-radius:8px; }
.stock-product .product-photo img { max-width:100%; max-height:100%; object-fit:contain; }
.stock-product small { display:block; }
.pdv-purchase-layout { display:grid; grid-template-columns:minmax(180px,.6fr) minmax(0,1.4fr); gap:12px; }
.pdv-purchase-layout > * { border:1px solid #e1e6ef; background:#fff; border-radius:18px; padding:12px; min-width:0; }
#purchase-lists:empty { display:none; }
#purchase-current progress { width:100%; margin:8px 0; }
#purchase-lists button { width:100%; margin-bottom:5px; text-align:left; }
#purchase-lists button[aria-pressed=true] { background:#eef0fa; border-color:#d8dfef; }
.pdv-purchase-title { display:flex; justify-content:space-between; gap:10px; align-items:center; }
.pdv-purchase-title h2 { margin:0; }
.pdv-purchase-item { display:flex; gap:10px; align-items:center; }
.pdv-purchase-item label { flex:1; }
.pdv-purchase-item small { display:block; }
.pdv-purchase-fields { display:grid; gap:9px; }
@media(max-width:780px){.pdv-stock-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.pdv-purchase-layout{grid-template-columns:1fr}}

.quick-entry { background:#fff; border:1px solid #e0e6ef; border-radius:18px; padding:14px; }
.quick-entry header,.quick-list-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.quick-entry h2,.quick-list-heading h2 { margin:0; font-size:1.17rem; }
.quick-entry header small { color:#526173; }
#quick-entry-form { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
#quick-entry-form .field { margin:0; min-width:0; }
#quick-entry-form [data-entry-key=name] { grid-column:span 2; }
#quick-entry-form [role=status] { grid-column:1/-1; margin:0; }
#quick-entry-form [role=status]:empty { display:none; }
#quick-entry-form .actions { align-self:end; }
.quick-list-heading { margin-top:13px; }
.quick-review { border:1px solid #e1e7f0; border-radius:14px; }
.quick-review td small { display:block; }
.quick-review>p { color:#526173; padding:12px; margin:0; }
.layout[data-screen=lista] #page { overflow:auto; }
.layout[data-screen=lista] #page>.table-wrap { min-height:96px; flex-basis:auto; }
@media(max-width:850px){#quick-entry-form{grid-template-columns:repeat(2,minmax(0,1fr))}}

.pdv-toolbar .pdv-theme { width:45px; min-height:42px; padding:0; color:inherit; }
.pdv-toolbar .pdv-theme .icon { width:23px; height:23px; }
@media(min-width:1100px){.pdv-toolbar{width:clamp(375px,28.5vw,545px)}}
.layout[data-screen] .pdv-page-icon { color:#fff; background:linear-gradient(145deg,#5a6b7f,#2b3746); }
.layout[data-screen=vender] .pdv-page-icon { background:linear-gradient(145deg,#3b97ff,#1557bf); }
.layout[data-screen=trocas] .pdv-page-icon { background:linear-gradient(145deg,#783bf1,#3f0ebb); }
.layout[data-screen=validades] .pdv-page-icon,.layout[data-screen=etiquetas] .pdv-page-icon { background:linear-gradient(145deg,#ff9b3b,#d24c00); }
.layout[data-screen=lista] .pdv-page-icon { background:linear-gradient(145deg,#536478,#323d4e); }
.layout[data-appearance=dark] {
 color-scheme:dark; color:#eaf0f9; --ink:#e9eff9; --muted:#b8c6da; --line:#39475a;
}
.layout[data-appearance=dark]::before {
 background-image:linear-gradient(#15202bb3,#11202ed1),url("./store_workspace.png");
}
.layout[data-appearance=dark] .pdv-toolbar,
.layout[data-appearance=dark] .pdv-toolbar .clock,
.layout[data-appearance=dark] .pdv-toolbar .clock b { color:#e8efff; }
.layout[data-appearance=dark] .pdv-toolbar .shop-select { background:#263343e0; border-color:#465369; }
.layout[data-appearance=dark]:not([data-screen=sistema]) #page.panel { background:#172533; border-color:#394457; color:#eaf0f9; }
.layout[data-appearance=dark] :is(.tablet-glass,.tablet-recent-sale,.tablet-action,.account-card,.overview-metric,.settings-card,.analytics-card,.analytics-metric,.product,.cart,.cart-footer,.cart-head,.pc-label-panel,.exchange-pane,.exchange-guidance,.quick-entry,.pdv-settings-more,.pdv-purchase-layout > *, .sales-history-row,.history-metric,.table-wrap,table,thead,tbody,tr,th,td) { background:#243346; border-color:#39475a; color:#eaf0f9; }
.layout[data-appearance=dark] :is(h1,h2,h3,.analytics-number,.price,.account-info strong,.count,.search input,.tablet-action small,.tablet-recent-sale small,.history-metric b,.quick-entry header small,.quick-review>p,.stats-bars small) { color:#eaf0f9; }
.layout[data-appearance=dark] :is(.search,button:not(.primary),input,select,textarea) { background-color:#263448; color:#eaf0f9; border-color:#455268; }
.layout[data-appearance=dark] .sidebar .nav-link.active { background:#ffffff25; }
.layout[data-appearance=dark] .topbar .pdv-theme { background:transparent; }
body:has(.layout[data-appearance=dark]) #modal[open]:not(:has(.sale-receipt)) { color-scheme:dark; background:#203044; color:#eaf0f9; --ink:#eaf0f9; --line:#465369; }
body:has(.layout[data-appearance=dark]) #modal[open]:not(:has(.sale-receipt)) :is(.dialog-header,.dialog-footer,.overview-metric,.sale-detail-card,.detail-row,.account-total) { background:#27374c; color:#eaf0f9; border-color:#465369; }
body:has(.layout[data-appearance=dark]) #modal[open]:not(:has(.sale-receipt)) :is(input,select,textarea,button:not(.primary)) { background:#2e4057; color:#eaf0f9; border-color:#465369; }
@media(max-width:440px){.pdv-toolbar .pdv-theme{width:34px}.pdv-toolbar .status-button{width:34px}}

.pdv-receipt-sheet {
 position:relative; isolation:isolate; overflow:hidden; width:min(100%,570px); margin:0 auto; padding:15px;
 display:grid; gap:8px; color:#171c24; background:linear-gradient(145deg,#e0e6ef,#f3f5f9 38%,#dfe5ef);
 border-radius:8px; font-variant-numeric:tabular-nums; font-size:.86rem;
}
.pdv-receipt-sheet::before,.pdv-receipt-sheet::after { content:""; z-index:-1; position:absolute; width:165px; height:64px; border-radius:50%; background:linear-gradient(150deg,#c50010,#fe1720 48%,#800008); transform:rotate(-25deg); }
.pdv-receipt-sheet::before { top:-39px; left:-32px; }
.pdv-receipt-sheet::after { bottom:-40px; right:-37px; }
.pdv-receipt-sheet .receipt-icon { width:22px; height:22px; flex:none; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.pdv-receipt-brand { min-height:96px; display:grid; place-items:center; padding:5px; }
.pdv-receipt-brand .receipt-store-logo { width:min(230px,70%); max-height:80px; object-fit:contain; }
.pdv-receipt-title { display:flex; gap:13px; align-items:center; background:linear-gradient(105deg,#fdf1f3,#e6d2da); border:1px solid #fff; border-radius:15px; padding:9px 12px; }
.pdv-receipt-title>span { border-radius:13px; background:linear-gradient(145deg,#ff424a,#bd0013); padding:11px; color:#fff; display:grid; }
.pdv-receipt-title h3 { font-size:clamp(.97rem,3vw,1.32rem); margin:0; text-transform:uppercase; }
.pdv-receipt-title p { margin:4px 0 0; color:#4a5364; text-transform:uppercase; font-size:.7rem; letter-spacing:.04em; }
.pdv-receipt-meta,.pdv-receipt-lines,.pdv-receipt-payment,.pdv-receipt-footer,.pdv-receipt-customer { margin:0; background:linear-gradient(110deg,#f7f9fc,#e1e7f0); border:1px solid white; box-shadow:0 2px 0 #bec8d34d; border-radius:13px; padding:9px 11px; }
.pdv-receipt-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.pdv-receipt-meta>div { display:flex; align-items:center; gap:8px; min-width:0; }
.pdv-receipt-meta>div+div { border-left:1px solid #b6c0ce; padding-left:8px; }
.pdv-receipt-meta .receipt-icon,.pdv-receipt-footer .receipt-icon { color:#bc071a; }
.pdv-receipt-meta dt { color:#4f5c6c; font-size:.66rem; text-transform:uppercase; }
.pdv-receipt-meta dd { margin:2px 0; font-weight:750; overflow-wrap:anywhere; }
.pdv-receipt-meta small { color:#4f5c6c; text-transform:capitalize; }
.pdv-receipt-items { width:100%; border-spacing:0; table-layout:fixed; overflow:hidden; border:1px solid #fff; border-radius:11px; }
.pdv-receipt-items :is(td,th) { padding:7px 6px; white-space:normal; overflow-wrap:anywhere; }
.pdv-receipt-items th { background:#262d38; color:#fff; text-transform:uppercase; text-align:left; font-size:.64rem; }
.pdv-receipt-items th:nth-child(1) { width:10%; }
.pdv-receipt-items th:nth-child(n+3) { width:23%; text-align:right; }
.pdv-receipt-items td { background:#f2f5f9; border-bottom:1px solid #dce3ed; font-size:.78rem; }
.pdv-receipt-items td:nth-child(n+3) { text-align:right; }
.pdv-receipt-items td:first-child span { background:#dfe5ee; padding:2px 4px; border-radius:4px; }
.pdv-receipt-items td:nth-child(2) { font-weight:650; }
.pdv-receipt-lines>div,.pdv-receipt-lines dt,.pdv-receipt-payment header,.receipt-payment-line,.receipt-cash { display:flex; align-items:center; gap:8px; }
.pdv-receipt-lines>div,.pdv-receipt-payment header,.receipt-cash { justify-content:space-between; }
.pdv-receipt-lines dt .receipt-icon { width:16px; height:16px; }
.pdv-receipt-lines dd { margin:0; font-weight:700; text-align:right; }
.pdv-receipt-total { display:flex; align-items:center; gap:9px; padding:8px 11px; border-radius:11px; background:linear-gradient(110deg,#fa1520,#8d000d); color:white; }
.pdv-receipt-total strong { margin-left:auto; font-size:1.4rem; white-space:nowrap; }
.pdv-receipt-payment header span { border-radius:50px; background:#e0e8ef; padding:3px 10px; font-size:.68rem; text-transform:uppercase; }
.pdv-receipt-payment header span.cancelled { background:#ffd4d5; color:#9e0410; }
.receipt-payment-line { padding:7px 0 3px; }
.receipt-payment-line b { margin-left:auto; }
.receipt-cash { border-top:1px solid #bec8d3; margin-top:5px; padding-top:6px; }
.pdv-receipt-footer { display:flex; align-items:center; gap:12px; padding:10px 12px; }
.pdv-receipt-footer p { margin:2px 0; color:#4f5c6c; }
@media(max-width:480px){.pdv-receipt-meta .receipt-icon{display:none}.pdv-receipt-items :is(td,th){padding-inline:4px}}
@media print {
 .pdv-receipt-sheet { print-color-adjust:exact; -webkit-print-color-adjust:exact; width:100%; }
 .pdv-receipt-items thead { display:table-header-group; }
 .pdv-receipt-items tr,.pdv-receipt-total,.pdv-receipt-payment,.pdv-receipt-footer { break-inside:avoid; }
}

.pc-expiry-cards button { display:flex; min-height:92px; gap:9px; align-items:center; }
.pc-expiry-cards button>span:nth-child(2) { flex:1; }
.pc-expiry-cards .account-avatar { border-radius:12px; background:#ffffff95; color:inherit; }
.pc-expiry-cards button>.icon { width:16px; height:16px; }
.expiry-date .icon { width:17px; height:17px; margin-right:7px; vertical-align:middle; }
.expiry-date.expired { color:#a02135; }
.expiry-date.soon { color:#a7530a; }
.expiry-table [data-expiry-edit] { min-height:33px; padding:4px; }
.expiry-table [data-expiry-edit] .icon { width:17px; height:17px; }

#modal:has(#confirm-sale) .dialog-footer .primary { flex:1; min-height:47px; }
.pc-checkout-content section { min-width:0; }
.pc-checkout-summary { background:#f7f9fd; border:1px solid #e1e7f0; border-radius:16px; padding:13px; }
.pc-checkout-summary h3 { margin:0 0 6px; }
#pc-single:not(.hidden) { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
#pc-single .payment { min-width:0; min-height:55px; padding:7px; display:flex; flex-direction:column; font-size:.85rem; gap:4px; }
#pc-single .payment .icon { width:19px; height:19px; }
#pc-single .payment.selected { background:#e9eeff; border-color:#5273d2; color:#213b80; }
#pc-single .payment:is([data-payment=FIADO],[data-payment=PENDENTE]) { background:#f6f7fb; }
#pc-single .payment:is([data-payment=FIADO],[data-payment=PENDENTE]).selected { background:#eae4fd; color:#40308c; border-color:#795ec5; }
@media(max-width:420px){#pc-single:not(.hidden){grid-template-columns:1fr 1fr}}

#customer-statement { margin-top:8px; }
.customer-statement { width:min(100%,620px); margin:0 auto; padding:16px; display:grid; gap:10px; background:linear-gradient(140deg,#e9edf5,#f8f9fd 44%,#f0f3f9); color:#111c31; }
.customer-statement h3,.customer-statement h4,.customer-statement p { margin:0; }
.statement-title,.statement-customer,.statement-card header,.statement-balance,.statement-purchase,.statement-pix { display:flex; gap:11px; align-items:center; }
.statement-title { padding:6px 0; }
.statement-title h3 { font-size:1.65rem; }
.statement-title p { color:#46556d; }
.statement-icon { display:grid; place-items:center; width:36px; height:36px; border-radius:11px; background:#e8edf7; color:#203452; flex:none; }
.statement-title .statement-icon { width:48px; height:48px; background:#142943; color:white; }
.statement-card { border:1px solid #fff; border-radius:16px; padding:11px; background:#fcfdffc9; }
.statement-card header { justify-content:space-between; margin-bottom:7px; }
.statement-customer small,.statement-balance small,.statement-purchase small,.statement-pix small { display:block; margin-top:4px; }
.statement-customer .statement-pill,.statement-purchase .statement-pill { margin-left:auto; }
.statement-pill { border-radius:50px; padding:4px 9px; background:#dfeeff; color:#164f99; font-size:.8rem; white-space:nowrap; }
.statement-balance { border-radius:15px; background:#12243d; color:white; padding:13px; }
.statement-balance b { margin-left:auto; font-size:1.2rem; white-space:nowrap; }
.statement-purchase { padding:7px 0; border-top:1px solid #e2e7ef; }
.statement-purchase small .icon { width:14px; height:14px; margin-right:4px; vertical-align:middle; }
.statement-pix { justify-content:space-between; }
.statement-pix small { overflow-wrap:anywhere; }
.customer-statement footer { color:#475c73; font-size:.77rem; }
@media print {
 .customer-statement { print-color-adjust:exact; -webkit-print-color-adjust:exact; width:100%; }
 .statement-purchase,.statement-balance,.statement-pix { break-inside:avoid; }
}

.layout[data-screen=trocas] .pc-exchange-grid { min-height:min(49vh,490px); }
.layout[data-screen=trocas] .exchange-search .icon { align-self:center; }
#inline-store-profile input { min-height:39px; padding-block:8px; }
#inline-store-profile .actions { margin-top:2px; }
.layout[data-screen=estatisticas] .analytics-periods { display:flex; flex-wrap:wrap; align-items:center; }
.layout[data-screen=estatisticas] #stat-year { width:auto; min-width:88px; height:41px; margin:0 2px; padding-block:5px; }
@media(max-width:500px){
 .pdv-demo-badge { max-width:80px; font-size:.68rem; }
 .customer-count { display:none; }
}

.pc-expiry-cards button strong { display:block; line-height:1; margin-top:5px; }
.layout:is([data-screen=vender],[data-screen=produtos]) .product .product-photo img {
  width:100%; height:100%; object-fit:contain;
}

/* Same bundled Inter used by Android, including dialogs outside the workspace. */
:root { font-family:PDVInter,Inter,"Segoe UI",sans-serif; }
.product-editor-tabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.product-editor-tabs button .icon { width:17px; height:17px; }
#modal :is(#product-form,#product-audit-panel,#save-product)[hidden] { display:none; }
.product-audit-list { display:grid; gap:9px; padding:0; margin:0; list-style:none; }
.product-audit-list li { border:1px solid var(--line); border-radius:15px; padding:11px; }
.product-audit-list header { display:flex; align-items:center; gap:9px; }
.product-audit-list header small { display:block; margin-top:4px; color:var(--muted); }
.product-audit-list dl { display:grid; gap:5px; margin:.6rem 0 0; }
.product-audit-list dl div { display:grid; grid-template-columns:minmax(95px,.75fr) minmax(0,1fr); gap:8px; border-top:1px solid var(--line); padding:5px 0; }
.product-audit-list dd { display:flex; flex-wrap:wrap; gap:8px; margin:0; overflow-wrap:anywhere; }
.product-audit-list del { color:var(--muted); }

/* Shared desktop form, navigation and checkout surfaces. */
.layout[data-screen=trocas] .pdv-page-icon,.layout[data-screen=lista] .pdv-page-icon { background:linear-gradient(145deg,#5a6b7f,#2b3746); }
.auth-story .brand img { width:54px; height:54px; border-radius:12px; object-fit:cover; }
#modal:has(#product-form) { width:min(830px,calc(100vw - 28px)); }
.product-editor-layout { display:grid; grid-template-columns:minmax(155px,.65fr) minmax(0,1.5fr); gap:12px; align-items:start; }
.product-editor-photo,.product-editor-fields>section { border:1px solid #e2e6eb; border-radius:15px; padding:13px; background:#fafbfe; }
.product-editor-layout h3 { margin:0 0 10px; font-size:1rem; }
.product-editor-layout .photo-editor { display:grid; gap:10px; padding:0; border:0; background:transparent; }
.product-editor-layout .photo-preview { width:100%; height:auto; aspect-ratio:1; min-height:100px; overflow:hidden; border-radius:12px; }
.product-editor-layout .photo-preview img { width:100%; height:100%; object-fit:contain; }
.product-editor-fields { display:grid; gap:10px; }
.product-editor-fields .field { margin:0; }
.product-track .check-field { margin:8px 0; }
.product-editor-layout input[type=file] { width:100%; padding:5px; font-size:.8rem; }
.checkout-customer { margin:10px 0; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.checkout-customer .field { margin:0; }
#pc-customer-note { grid-column:1/-1; color:var(--muted); font-size:.82rem; margin:0; }
#pc-customer-note:empty { display:none; }
.cart-head { gap:8px; }
.cart-menu { position:relative; z-index:3; margin-left:4px; }
.cart-menu summary { cursor:pointer; display:grid; place-items:center; width:38px; height:38px; border:1px solid var(--line); border-radius:11px; }
.cart-menu summary .icon { width:19px; height:19px; }
.cart-menu>div { position:absolute; top:calc(100% + 6px); right:0; display:grid; gap:5px; padding:6px; min-width:205px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 8px 20px #263b4a25; }
.cart-menu>div :is(button,a) { justify-content:flex-start; padding:7px; }
.held-sales-list { display:grid; gap:7px; }
.held-sales-list .account-card { width:100%; text-align:left; }
.pc-label-panel h2 { display:flex; align-items:center; gap:7px; }
.pc-label-panel h2 .icon { width:20px;height:20px; color:#394b65; }
.pc-label-panel h2 small { font-size:.79rem; color:#4b5d71; font-weight:500; }
#labels-browser { margin:8px 0; border:1px solid #dfe6ef; border-radius:12px; padding:8px; }
#labels-browser summary { cursor:pointer; font-weight:650; }
#labels-results { max-height:135px; }
#labels-selected [data-item] input { min-width:0; }
.pc-label-models { max-height:195px; overflow:auto; scrollbar-width:thin; }
#labels-preview { min-height:164px; background:#f0f4fa; border-radius:13px; }
@media(max-width:660px){
 .product-editor-layout { grid-template-columns:1fr; }
 .product-editor-layout .photo-preview { max-width:165px; }
 .checkout-customer { grid-template-columns:1fr; }
}

.pdv-settings-logo { flex-direction:column; justify-content:center; text-align:center; padding:15px 0 20px; }
.pdv-settings-logo img { width:clamp(92px,10vw,155px); height:clamp(92px,10vw,155px); border-radius:14px; }
.pdv-settings-logo [role=status]:empty { display:none; }
.pdv-settings-logo .actions { justify-content:center; }
#modal:has(#product-form) { width:min(1120px,calc(100vw - 28px)); }
#modal:has(#product-form) .dialog-header { gap:12px; justify-content:flex-start; }
#modal:has(#product-form) .dialog-header>div { flex:1; }
.product-dialog-icon { background:linear-gradient(150deg,#8737f5,#3d0baf); }
.product-editor-layout { grid-template-columns:minmax(138px,.68fr) minmax(0,1.55fr) minmax(190px,.9fr); }
.product-editor-photo { background:#f1eafd; border-color:#dcc9f9; }
.product-editor-layout .photo-editor { justify-items:center; }
.product-editor-layout .photo-editor label { color:#402291; font-weight:700; }
.product-summary { border:1px solid #dddff0; border-radius:16px; background:#f9f9ff; overflow:hidden; }
.product-summary h3 { margin:0; padding:13px; display:flex; align-items:center; gap:8px; background:#eeeafa; }
.product-summary dl { margin:0; padding:4px 12px 9px; }
.product-summary dl div { display:flex; justify-content:space-between; gap:9px; padding:9px 0; border-bottom:1px solid #e5e6f0; }
.product-summary dd { margin:0; font-weight:750; white-space:nowrap; }
#summary-profit,#summary-margin { color:#147745; }
.product-cost-calc { margin-top:12px; padding:10px; border:1px solid #e3e4ef; border-radius:13px; }
.product-cost-calc summary { cursor:pointer; font-weight:650; }
.product-cost-calc .form-grid { margin:10px 0; }
.product-cost-calc [role=status]:empty { display:none; }
#modal:has(#product-form) .dialog-footer :is([data-close],#save-product) { flex:1; }
#save-product { background:linear-gradient(130deg,#7020ea,#4209a9); color:white; }
@media(max-width:800px){ .product-editor-layout{grid-template-columns:minmax(130px,.55fr) minmax(0,1fr)} .product-summary{grid-column:1/-1} }
@media(max-width:520px){ .product-editor-layout{grid-template-columns:minmax(0,1fr)} }

.history-metrics { grid-template-columns:repeat(5,minmax(0,1fr)); }
.history-metric.products .analytics-icon,.sales-history-row.products .analytics-icon { background:#eee1fd; color:#6b25d1; }
.history-metric.customers .analytics-icon,.sales-history-row.customers .analytics-icon { background:#fff0dc; color:#a35a13; }
@media(max-width:780px){ .history-metrics{grid-template-columns:repeat(auto-fit,minmax(116px,1fr))} }

.stats-chart-filter { justify-content:start; margin-bottom:10px; }
.stats-series svg { display:block; width:100%; min-height:150px; }
.stats-series .stats-gridline { fill:none; stroke:#dce4ec; stroke-width:1; }
.stats-series polyline { fill:none; stroke:#2375d1; stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; }
.stats-series circle { fill:#2375d1; }

.customer-contact { display:flex; align-items:center; gap:9px; padding:0 0 10px; }
.customer-contact small { display:block; color:#227445; margin-top:3px; }
.customer-identity { display:grid; grid-template-columns:1fr 1fr; margin:0 0 12px; gap:6px; }
.customer-identity div { padding:7px; border:1px solid #e3e7ee; border-radius:10px; overflow-wrap:anywhere; }
.customer-identity dt { font-size:.77rem; color:var(--muted); }
.customer-identity dd { margin:3px 0 0; font-size:.85rem; font-weight:600; }
.customer-detail aside .account-total { background:#fce9ed; border-color:#f6dce4; color:#9d1d34; }
.customer-detail aside>button { width:100%; }
.customer-detail .analytics-tabs { margin-bottom:9px; }
.customer-detail #customer-detail-results { max-height:340px; overflow:auto; }

.pdv-toolbar { position:relative; z-index:3; }
.pdv-notifications { position:absolute; right:0; top:calc(100% + 8px); width:min(375px,86vw); z-index:10; padding:13px; background:#faf7fe; color:#182135; border:1px solid #e3dceb; border-radius:14px; box-shadow:0 9px 22px #26334635; }
.pdv-notifications header { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:9px; }
.pdv-notifications h2 { margin:0;font-size:1.07rem; }
.pdv-notifications p { margin:4px 0; }
.pdv-notifications .detail-row { text-decoration:none; color:inherit; display:flex; gap:10px; }
.pdv-notifications .detail-row span { flex:1; }
.layout[data-appearance=dark] .pdv-notifications { background:#263648; color:#eef4fa; }

/* A desktop dashboard inside the demonstration viewport. */
.layout[data-screen=sistema] #page.panel { padding:0; }
@media(min-width:761px) and (min-height:460px){
 .layout[data-screen=sistema] #page.panel { overflow:hidden; }
 .tablet-home { height:100%; display:grid; grid-template-rows:minmax(136px,1.01fr) auto minmax(147px,1fr); gap:9px; }
 .tablet-home .tablet-hero { min-height:0; height:100%; border-radius:18px; }
 .tablet-home .tablet-hero-copy { padding:clamp(11px,2vh,22px) clamp(15px,2vw,32px); height:100%; min-height:0; }
 .tablet-home .tablet-eyebrow { font-size:clamp(8px,1.33vh,12px); }
 .tablet-home .tablet-hero h1 { font-size:clamp(24px,5.4vh,56px); line-height:1.04; margin:4px 0; }
 .tablet-home .tablet-sell { min-height:36px; padding:4px 8px; font-size:clamp(12px,2.25vh,21px); }
 .tablet-home .tablet-sell>.icon { width:30px;height:30px;padding:5px; }
 .tablet-home .tablet-unified { padding:8px 11px; gap:9px; border-radius:17px; }
 .tablet-home .tablet-section-link { margin-bottom:4px; font-size:14px; }
 .tablet-home .tablet-periods { padding-top:3px; }
 .tablet-home .tablet-period strong { font-size:clamp(13px,2.7vh,23px); }
 .tablet-home .tablet-period small,.tablet-home .tablet-receivable small { font-size:clamp(9px,1.55vh,12px); }
 .tablet-home .tablet-metric-icon { width:42px;height:42px;border-radius:12px; }
 .tablet-home .tablet-metric-icon .icon{width:23px;height:23px}
 .tablet-home .tablet-receivable { padding-left:8px; gap:8px; }
 .tablet-home .tablet-receivable b { font-size:clamp(15px,3vh,25px); }
 .tablet-home .tablet-home-bottom { grid-template-columns:1.42fr 1fr; min-height:0; gap:9px; }
 .tablet-home .tablet-glass { padding:8px 10px; border-radius:15px; min-height:0; overflow:hidden; }
 .tablet-home .tablet-glass header { margin-bottom:6px; }
 .tablet-home .tablet-glass h2 { font-size:clamp(13px,2.7vh,21px); }
 .tablet-home .tablet-glass h2>.icon { width:21px;height:21px; }
 .tablet-home .tablet-action-grid { height:calc(100% - 27px); grid-template-rows:1fr 1fr; gap:6px; }
 .tablet-home .tablet-action { min-height:0; padding:5px; border-radius:10px; overflow:hidden; gap:2px; }
 .tablet-home .tablet-action-icon { width:24px;height:24px;border-radius:7px; }
 .tablet-home .tablet-action-icon .icon { width:15px;height:15px; }
 .tablet-home .tablet-action strong { font-size:clamp(10px,1.8vh,15px); }
 .tablet-home .tablet-action small { font-size:clamp(9px,1.4vh,11px); }
 .tablet-home .tablet-recent-sale { margin-top:4px; padding:3px 6px; min-height:32px; }
 .tablet-home .tablet-payment-icon { padding:4px; }
 .tablet-home .tablet-payment-icon .icon { width:15px;height:15px; }
 .tablet-home .tablet-sync-note { display:none; }
}
#modal[open]:has(:is(#product-form,#confirm-sale,#collect-confirm)) {
 width:min(1060px,calc(100vw - 28px)); max-width:none; max-height:calc(100dvh - 24px);
 display:grid; grid-template-rows:auto minmax(0,1fr) auto; overflow:hidden;
}
#modal[open]:has(:is(#product-form,#confirm-sale,#collect-confirm)) .dialog-body{
 min-height:0;max-height:none;overflow:auto;padding:clamp(12px,1.7vw,20px);
}
#modal[open]:has(:is(#product-form,#confirm-sale,#collect-confirm)) :is(.dialog-header,.dialog-footer){padding:11px 17px;}
#modal[open]:has(#product-form) .product-editor-layout{
 grid-template-columns:minmax(0,.85fr) minmax(0,2fr) minmax(0,1.23fr); align-items:start;
}
#modal[open]:has(#product-form) .product-editor-layout>*{min-width:0;}
#modal[open]:has(#product-form) .product-editor-fields .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
#modal[open]:has(#product-form) .product-editor-fields :is(input,select){min-width:0;width:100%;padding:7px;min-height:35px;}
#modal[open]:has(#product-form) .product-editor-layout .photo-preview{max-width:132px;}
.product-summary dl div{flex-wrap:wrap;}
#modal[open]:has(#confirm-sale) .pc-checkout-content{grid-template-columns:minmax(0,.9fr) minmax(0,1.5fr);gap:11px;}
#modal[open]:has(#confirm-sale) .pc-checkout-summary{padding:10px;}
#modal[open]:has(#confirm-sale) .checkout-method-panel{border:1px solid #e2e7ef;border-radius:16px;padding:10px;min-width:0;}
#modal[open]:has(#confirm-sale) #confirm-sale{background:linear-gradient(125deg,#7020e5,#4311ab);color:#fff;border-color:#5b25c6;}
#modal[open]:has(#confirm-sale) #pc-single .payment{min-height:46px;}
#modal[open]:has(#confirm-sale) .checkout-customer{gap:6px;margin-top:8px;}
.checkout-method-label{margin:10px 0 4px;font-size:.8rem;color:#475569;font-weight:650;}
.checkout-method-label[hidden]{display:none}
@media(max-width:820px){
 #modal[open]:has(#product-form) .product-editor-layout{grid-template-columns:minmax(0,.63fr) minmax(0,1.45fr);}
 #modal[open]:has(#product-form) .product-summary{grid-column:1/-1}
}
@media(max-width:575px){
 #modal[open]:has(#product-form) .product-editor-layout,#modal[open]:has(#confirm-sale) .pc-checkout-content{grid-template-columns:minmax(0,1fr)}
}

.purchase-tabs{margin-bottom:12px}
.pdv-purchase-layout:has(#purchase-lists:empty){grid-template-columns:1fr}
.pdv-purchase-layout #purchase-lists{align-self:start}
.pdv-purchase-layout #purchase-current{min-height:190px}
.pdv-purchase-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;gap:6px}
.pdv-purchase-item b{white-space:nowrap}
.pdv-purchase-item label small{margin-left:20px}
.quick-review td .actions{flex-wrap:nowrap}
.quick-list-heading .actions{gap:6px}
.customer-filters,.receivable-tools{margin:9px 0}
#customer-results .customer-card{min-height:58px}
.pdv-receivable-metrics .overview-metric{min-height:74px}
.receivable-tools .analytics-tabs{flex:0 1 auto}
#local-receivable-list .account-card{min-height:66px}
@media(max-width:760px){
 .pdv-purchase-item{grid-template-columns:minmax(0,1fr) auto}
 .pdv-purchase-item b{white-space:normal}
 .quick-list-heading .actions{flex-wrap:wrap}
 .receivable-tools>.search{flex-basis:100%}
}

@media(min-width:900px){
 .layout[data-screen=vender] .sale-layout:not(.catalog-layout){grid-template-columns:minmax(0,1fr) clamp(210px,24vw,305px);gap:12px}
 .layout[data-screen=vender] .product-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:9px}
 .layout[data-screen=vender] .product-photo{height:clamp(88px,20vh,150px)}
 .layout[data-screen=vender] .product-body{padding:9px}
 .layout[data-screen=vender] .product-bottom{gap:5px;flex-wrap:wrap}
}

@media(min-width:761px) and (max-height:560px){
 .layout[data-screen=sistema] .topbar{height:54px;min-height:54px;padding:3px 0}
 .layout[data-screen=sistema] .workspace{padding-bottom:6px}
 .layout[data-screen=sistema] #page.panel{overflow:hidden}
 .layout[data-screen=sistema] .tablet-home{height:100%;display:grid;grid-template-rows:minmax(116px,1.08fr) auto minmax(114px,1fr);gap:7px}
 .layout[data-screen=sistema] .tablet-hero{height:100%;min-height:0}
 .layout[data-screen=sistema] .tablet-hero-copy{height:100%;min-height:0;padding:8px 13px}
 .layout[data-screen=sistema] .tablet-hero h1{font-size:clamp(22px,5.5vh,30px);line-height:1;margin:4px 0 6px}
 .layout[data-screen=sistema] .tablet-sell{font-size:.83rem;min-height:31px;padding:3px 7px}
 .layout[data-screen=sistema] .tablet-sell>.icon{width:25px;height:25px;padding:4px}
 .layout[data-screen=sistema] .tablet-unified{padding:6px 9px;gap:8px}
 .layout[data-screen=sistema] .tablet-metric-icon{width:34px;height:34px}
 .layout[data-screen=sistema] .tablet-metric-icon .icon{width:20px;height:20px}
 .layout[data-screen=sistema] .tablet-period strong{font-size:15px}
 .layout[data-screen=sistema] .tablet-receivable b{font-size:17px}
 .layout[data-screen=sistema] .tablet-home-bottom{min-height:0;gap:7px}
 .layout[data-screen=sistema] .tablet-glass{padding:6px 8px;min-height:0}
 .layout[data-screen=sistema] .tablet-glass h2{font-size:.85rem}
 .layout[data-screen=sistema] .tablet-glass header{margin-bottom:4px}
 .layout[data-screen=sistema] .tablet-action-grid{height:calc(100% - 25px);grid-template-rows:1fr 1fr;gap:4px}
 .layout[data-screen=sistema] .tablet-action{min-height:0;padding:4px 6px;gap:1px}
 .layout[data-screen=sistema] .tablet-action-icon{width:20px;height:20px}
 .layout[data-screen=sistema] .tablet-action strong{font-size:.69rem}
 .layout[data-screen=sistema] .tablet-quick .tablet-action small,.layout[data-screen=sistema] .tablet-sync-note{display:none}
}

@media(min-width:761px) and (max-height:560px){
 .layout[data-screen=sistema] .tablet-quick{display:grid;grid-template-rows:auto minmax(0,1fr)}
 .layout[data-screen=sistema] .tablet-quick .tablet-action-grid{height:auto;min-height:0}
 .layout[data-screen=sistema] .tablet-quick .tablet-action{display:flex;align-items:center;gap:4px}
 .layout[data-screen=sistema] .tablet-quick .tablet-action>.icon{display:none}
}

@media(min-width:761px) and (max-height:560px){
 .layout[data-screen=sistema] .tablet-home-bottom{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
}
