/* ==========================================================================
   DistribuiPro Demo · STUDIO v1  (pasta /teste2)
   Novo visual completo para os temas claro e escuro.
   Carregado depois de main.css e mobile.css. Substitui theme-light e sidebar-layout.
   ========================================================================== */

/* ---------- Tokens: ESCURO (padrão) ---------- */
html:not([data-theme="light"]){
  color-scheme:dark;
  --bg-primary:#0b0d14;--bg-secondary:#11141d;--bg-card:#12151f;--bg-card-hover:#161a26;--bg-surface:#181c29;
  --bg-input:#0e1119;--bg-modal:#12151f;--bg-tertiary:#151927;
  --border-color:rgba(255,255,255,.07);--border-hover:rgba(255,255,255,.14);
  --text-primary:#e9ecf3;--text-secondary:#9aa3b5;--text-muted:#6b7488;--text-heading:#f5f7fb;
  --gradient-card:linear-gradient(180deg,rgba(255,255,255,.028),rgba(255,255,255,0) 42%),#12151f;
  --gradient-sidebar:linear-gradient(180deg,rgba(20,23,34,.86),rgba(13,15,23,.9));
  --shadow-sm:0 1px 2px rgba(0,0,0,.35);--shadow-md:0 10px 30px -12px rgba(0,0,0,.6);--shadow-lg:0 30px 70px -20px rgba(0,0,0,.75);
  --st-glass:rgba(16,19,28,.72);--st-line:rgba(255,255,255,.07);--st-line2:rgba(255,255,255,.12);
  --st-hi:inset 0 1px 0 rgba(255,255,255,.05);
  --st-dot:rgba(255,255,255,.035);
  --st-aurora-1:rgba(99,102,241,.18);--st-aurora-2:rgba(34,211,238,.10);--st-aurora-3:rgba(168,85,247,.12);
  --st-row-hover:rgba(255,255,255,.025);
}
/* ---------- Tokens: CLARO ---------- */
html[data-theme="light"]{
  color-scheme:light;
  --bg-primary:#f4f6fb;--bg-secondary:#ffffff;--bg-card:#ffffff;--bg-card-hover:#fbfcff;--bg-surface:#f6f8fc;
  --bg-input:#f6f8fc;--bg-modal:#ffffff;--bg-tertiary:#f6f8fc;
  --border-color:#e6eaf2;--border-hover:#cfd6e3;
  --text-primary:#1b2236;--text-secondary:#5d677d;--text-muted:#8f98ab;--text-heading:#0c1224;
  --success-bg:rgba(16,185,129,.10);--warning-bg:rgba(245,158,11,.12);--danger-bg:rgba(239,68,68,.09);--info-bg:rgba(37,99,235,.09);
  --gradient-card:#ffffff;
  --gradient-sidebar:linear-gradient(180deg,rgba(255,255,255,.88),rgba(255,255,255,.82));
  --shadow-sm:0 1px 2px rgba(16,24,40,.05);--shadow-md:0 12px 32px -14px rgba(16,24,40,.16);--shadow-lg:0 34px 80px -24px rgba(16,24,40,.22);
  --st-glass:rgba(255,255,255,.74);--st-line:#e6eaf2;--st-line2:#d9dfea;
  --st-hi:inset 0 1px 0 rgba(255,255,255,.9);
  --st-dot:rgba(15,23,42,.05);
  --st-aurora-1:rgba(99,102,241,.10);--st-aurora-2:rgba(34,211,238,.08);--st-aurora-3:rgba(236,72,153,.06);
  --st-row-hover:#f7f9fd;
}
:root{
  --font-body:'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --radius-sm:8px;--radius-md:12px;--radius-lg:18px;--radius-xl:24px;
  --st-ease:cubic-bezier(.2,.8,.2,1);
  --sidebar-width:248px;--sidebar-collapsed:78px;--header-height:64px;
  --st-gap:14px;
}

/* ---------- Base ---------- */
html,body{background:var(--bg-primary)!important}
body{font-family:var(--font-body)!important;color:var(--text-primary)!important;-webkit-font-smoothing:antialiased;font-feature-settings:"cv11","ss01","tnum"}
body::before{content:'';position:fixed;inset:0;pointer-events:none;z-index:0;
  background:
    radial-gradient(900px 520px at 8% -8%,var(--st-aurora-1),transparent 62%),
    radial-gradient(700px 480px at 100% 0%,var(--st-aurora-3),transparent 60%),
    radial-gradient(800px 600px at 90% 110%,var(--st-aurora-2),transparent 60%);}
body::after{content:'';position:fixed;inset:0;pointer-events:none;z-index:0;background-image:radial-gradient(var(--st-dot) 1px,transparent 1px);background-size:22px 22px;mask-image:linear-gradient(180deg,#000,transparent 75%);-webkit-mask-image:linear-gradient(180deg,#000,transparent 75%)}
.app-layout,.pdv-wrapper{position:relative;z-index:1}
::selection{background:color-mix(in srgb,var(--accent) 28%,transparent)}
*{scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--text-muted) 40%,transparent) transparent}
h1,h2,h3,h4{letter-spacing:-.02em}

/* ---------- Menu lateral flutuante ---------- */
.sidebar{top:12px!important;left:12px!important;bottom:12px!important;height:auto!important;border-radius:22px!important;
  background:var(--gradient-sidebar)!important;border:1px solid var(--st-line)!important;box-shadow:var(--shadow-lg),var(--st-hi)!important;
  backdrop-filter:blur(22px) saturate(1.4);-webkit-backdrop-filter:blur(22px) saturate(1.4);
  transition:width .32s var(--st-ease),transform .32s var(--st-ease),box-shadow .2s!important}
.sidebar-brand{border-bottom:1px solid var(--st-line)!important;min-height:70px!important;padding:12px 16px!important;display:flex;align-items:center;gap:10px}
.sidebar-brand .dp-default-logo{height:40px!important;display:flex;align-items:center}
.sidebar-brand .dp-default-logo img{height:38px!important;width:auto!important;max-width:150px;object-fit:contain}
.sidebar-brand .brand-icon{display:none!important;width:44px!important;height:44px!important;border-radius:13px!important;padding:5px!important;background:linear-gradient(145deg,#1d2440,#0d1226)!important;box-shadow:0 8px 20px rgba(15,23,42,.25)!important}
.sidebar-brand .brand-text{display:none!important}
html[data-theme="light"] .sidebar-brand .dp-default-logo img[src*="logo-dark"]{filter:none}
.sidebar-menu{padding:10px 0 12px!important;overflow-y:auto!important;overflow-x:hidden}
.menu-section{padding:14px 18px 6px!important;margin:0!important}
.menu-section-title{font-size:10.5px!important;font-weight:700!important;letter-spacing:.14em!important;text-transform:uppercase;color:var(--text-muted)!important;opacity:.9}
.menu-item{margin:2px 10px!important;padding:9px 12px!important;border-radius:12px!important;color:var(--text-secondary)!important;font-weight:600;font-size:13.5px;gap:12px!important;transition:background .18s,color .18s,transform .18s!important;overflow:hidden}
.menu-item i{width:20px!important;min-width:20px;text-align:center;font-size:15px;opacity:.85;transition:transform .25s var(--st-ease)}
.menu-item:hover{background:color-mix(in srgb,var(--text-primary) 6%,transparent)!important;color:var(--text-primary)!important}
.menu-item:hover i{transform:scale(1.12)}
.menu-item.active{color:#fff!important;background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 55%,#a855f7))!important;
  box-shadow:0 10px 24px -10px color-mix(in srgb,var(--accent) 80%,transparent),inset 0 1px 0 rgba(255,255,255,.25)!important}
.menu-item.active i{opacity:1}
.menu-item.active::before,.menu-item.active::after{display:none!important}
.sidebar-toggle{border-top:1px solid var(--st-line)!important;padding:10px 14px!important}
.sidebar-toggle button{width:100%;height:36px;border-radius:10px!important;border:1px solid var(--st-line)!important;background:transparent!important;color:var(--text-secondary)!important}
.sidebar-toggle button:hover{background:color-mix(in srgb,var(--text-primary) 6%,transparent)!important}

@media (min-width:1025px){
  .main-content{margin-left:calc(var(--sidebar-width) + 24px)!important;padding:12px 16px 24px 0}
  .sidebar.collapsed{width:var(--sidebar-collapsed)!important}
  .sidebar.collapsed ~ .main-content{margin-left:calc(var(--sidebar-collapsed) + 24px)!important}
  .sidebar.collapsed .dp-default-logo{display:none!important}
  .sidebar.collapsed .brand-icon{display:flex!important}
  .sidebar.collapsed .sidebar-brand{justify-content:center;padding:12px 0!important}
  .sidebar.collapsed .menu-section{padding:10px 0 4px!important;text-align:center}
  .sidebar.collapsed .menu-section-title{display:block;height:1px;width:26px;margin:0 auto;overflow:hidden;background:var(--st-line);color:transparent!important}
  .sidebar.collapsed .menu-item{justify-content:center!important;padding:10px 0!important;margin:3px 12px!important}
  .sidebar.collapsed .menu-text,.sidebar.collapsed .badge,.sidebar.collapsed .st-side-cta{display:none!important}
  /* Recolhido: abre por cima ao passar o mouse */
  .sidebar.collapsed:hover{width:var(--sidebar-width)!important;z-index:1200}
  .sidebar.collapsed:hover .dp-default-logo{display:flex!important}
  .sidebar.collapsed:hover .brand-icon{display:none!important}
  .sidebar.collapsed:hover .sidebar-brand{justify-content:flex-start;padding:12px 16px!important}
  .sidebar.collapsed:hover .menu-section{padding:14px 18px 6px!important;text-align:left}
  .sidebar.collapsed:hover .menu-section-title{height:auto;width:auto;background:none;color:var(--text-muted)!important;margin:0}
  .sidebar.collapsed:hover .menu-item{justify-content:flex-start!important;padding:9px 12px!important;margin:2px 10px!important}
  .sidebar.collapsed:hover .menu-text{display:inline!important;opacity:1!important;width:auto!important;max-width:none!important}
  .sidebar.collapsed:hover .st-side-cta{display:block!important}
  .sidebar .menu-text{opacity:1!important;width:auto!important;max-width:none!important}
  /* PDV: menu sempre em trilho, abre ao passar o mouse */
  .pdv-wrapper .sidebar{width:var(--sidebar-collapsed)!important}
  .pdv-wrapper .sidebar:hover{width:var(--sidebar-width)!important}
  .pdv-wrapper .pdv-content{margin-left:calc(var(--sidebar-collapsed) + 24px)!important;padding:12px 12px 12px 0;height:100vh;height:100dvh;box-sizing:border-box;gap:12px}
}

/* ---------- Cabeçalho de vidro ---------- */
.header{position:sticky!important;top:12px!important;z-index:600!important;height:64px!important;margin:0 0 6px!important;padding:0 14px 0 18px!important;
  background:var(--st-glass)!important;border:1px solid var(--st-line)!important;border-radius:18px!important;box-shadow:var(--shadow-md),var(--st-hi)!important;
  backdrop-filter:blur(18px) saturate(1.5)!important;-webkit-backdrop-filter:blur(18px) saturate(1.5)!important}
.header-left h2{font-size:18px!important;font-weight:800!important;color:var(--text-heading)!important;letter-spacing:-.02em}
.header-breadcrumb{font-size:11.5px!important;color:var(--text-muted)!important}
.header-search input{height:40px!important;border-radius:12px!important;background:var(--bg-input)!important;border:1px solid var(--st-line)!important;padding-left:38px!important;transition:box-shadow .2s,border-color .2s}
.header-search input:focus{border-color:color-mix(in srgb,var(--accent) 60%,transparent)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 16%,transparent)!important}
.header-action{width:40px!important;height:40px!important;border-radius:12px!important;border:1px solid var(--st-line)!important;background:color-mix(in srgb,var(--bg-card) 70%,transparent)!important;color:var(--text-secondary)!important;transition:transform .15s,background .15s,color .15s}
.header-action:hover{transform:translateY(-1px);color:var(--text-primary)!important;background:var(--bg-card)!important}
.header-avatar{width:40px!important;height:40px!important;border-radius:12px!important;background:linear-gradient(135deg,var(--accent),#a855f7)!important;box-shadow:0 8px 18px -8px color-mix(in srgb,var(--accent) 80%,transparent)}
.page-content{padding:16px 6px 30px!important;position:relative}

/* ---------- Cartões de números ---------- */
.stat-grid{gap:var(--st-gap)!important;grid-template-columns:repeat(auto-fit,minmax(158px,1fr))!important}
.stat-card{border-radius:20px!important;padding:18px 18px 16px!important;background:var(--gradient-card)!important;border:1px solid var(--st-line)!important;box-shadow:var(--shadow-sm),var(--st-hi)!important;
  transition:transform .25s var(--st-ease),box-shadow .25s,border-color .25s!important;isolation:isolate}
.stat-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md),var(--st-hi)!important;border-color:var(--st-line2)!important}
.stat-card::after{content:'';position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;opacity:0;transition:opacity .3s;
  background:radial-gradient(260px circle at var(--mx,50%) var(--my,50%),color-mix(in srgb,var(--accent) 14%,transparent),transparent 60%)}
.stat-card:hover::after{opacity:1}
.stat-icon{width:44px!important;height:44px!important;border-radius:14px!important;display:grid!important;place-items:center;font-size:17px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.stat-value{font-size:26px!important;font-weight:800!important;letter-spacing:-.03em!important;color:var(--text-heading)!important;font-variant-numeric:tabular-nums}
.stat-label{font-size:12px!important;font-weight:600;color:var(--text-secondary)!important}

/* ---------- Cartões e painéis ---------- */
.card,.table-container,.chart-card,.dashboard-card{border-radius:20px!important;background:var(--gradient-card)!important;border:1px solid var(--st-line)!important;box-shadow:var(--shadow-sm),var(--st-hi)!important}
.card:hover{border-color:var(--st-line2)!important}
.card-header{border-bottom-color:var(--st-line)!important}
.card h3,.card h4,.card-title{color:var(--text-heading)!important;font-weight:800!important}

/* ---------- Barra de ferramentas ---------- */
.toolbar{gap:10px!important;margin-bottom:14px!important}
.toolbar-search input,.toolbar-select,.form-input,.form-control,select.form-control{border-radius:12px!important;background:var(--bg-input)!important;border:1px solid var(--st-line)!important;color:var(--text-primary)!important;min-height:42px;transition:border-color .2s,box-shadow .2s!important}
.toolbar-search input:focus,.toolbar-select:focus,.form-input:focus,.form-control:focus{outline:none!important;border-color:color-mix(in srgb,var(--accent) 60%,transparent)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 15%,transparent)!important}
.form-label{font-weight:700!important;font-size:12.5px!important;color:var(--text-secondary)!important}

/* ---------- Botões ---------- */
.btn{border-radius:12px!important;font-weight:700!important;letter-spacing:.005em;position:relative;overflow:hidden;transition:transform .15s,box-shadow .2s,background .2s,border-color .2s!important}
.btn:active{transform:scale(.97)}
.btn-primary{background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 50%,#a855f7))!important;border:0!important;color:#fff!important;box-shadow:0 10px 22px -10px color-mix(in srgb,var(--accent) 85%,transparent),inset 0 1px 0 rgba(255,255,255,.25)!important}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 14px 28px -10px color-mix(in srgb,var(--accent) 90%,transparent),inset 0 1px 0 rgba(255,255,255,.3)!important}
.btn-primary::after{content:'';position:absolute;top:0;bottom:0;width:40%;left:-60%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);transform:skewX(-20deg);transition:left .6s var(--st-ease)}
.btn-primary:hover::after{left:130%}
.btn-outline,.btn-secondary{background:color-mix(in srgb,var(--bg-card) 80%,transparent)!important;border:1px solid var(--st-line2)!important;color:var(--text-primary)!important}
.btn-outline:hover,.btn-secondary:hover{border-color:color-mix(in srgb,var(--accent) 45%,transparent)!important;color:var(--accent)!important}
.btn-icon{border-radius:10px!important;border:1px solid var(--st-line)!important;background:transparent!important;transition:background .15s,color .15s,transform .15s!important}
.btn-icon:hover{background:color-mix(in srgb,var(--accent) 12%,transparent)!important;color:var(--accent)!important;transform:translateY(-1px)}
.st-ripple{position:absolute;border-radius:50%;transform:scale(0);background:currentColor;opacity:.22;pointer-events:none;animation:st-ripple .6s ease-out forwards}
@keyframes st-ripple{to{transform:scale(1);opacity:0}}

/* ---------- Tabelas ---------- */
.data-table{border-collapse:separate!important;border-spacing:0!important}
.data-table thead th{background:transparent!important;color:var(--text-muted)!important;font-size:10.5px!important;font-weight:800!important;letter-spacing:.12em!important;text-transform:uppercase;border-bottom:1px solid var(--st-line)!important;padding-top:14px!important;padding-bottom:12px!important}
.data-table tbody td{border-bottom:1px solid var(--st-line)!important;transition:background .15s}
.data-table tbody tr:last-child td{border-bottom:0!important}
.data-table tbody tr:hover td{background:var(--st-row-hover)!important}
.data-table td:last-child{position:static!important;box-shadow:none!important}
.badge,.client-status,[class*="status-badge"]{border-radius:999px!important;font-weight:700!important;letter-spacing:.01em}

/* ---------- Janelas ---------- */
.modal-overlay{background:rgba(5,7,12,.55)!important;backdrop-filter:blur(8px) saturate(1.2)!important;-webkit-backdrop-filter:blur(8px)!important}
.modal{border-radius:24px!important;border:1px solid var(--st-line2)!important;background:var(--bg-modal)!important;box-shadow:var(--shadow-lg),var(--st-hi)!important;transform:translateY(16px) scale(.97)!important;transition:transform .35s var(--st-ease),opacity .25s!important}
.modal-overlay.active .modal,.modal-overlay.show .modal,.modal-overlay.open .modal{transform:none!important}
.modal-header{border-bottom:1px solid var(--st-line)!important}
.modal-footer{border-top:1px solid var(--st-line)!important}
.modal-close{border-radius:10px!important}

/* ---------- Alternador (configurações) ---------- */
.cfg-toggle-slider{border-radius:999px!important}

/* ---------- Revelar ao rolar ---------- */
.st-reveal{opacity:0;transform:translateY(14px);transition:opacity .55s var(--st-ease),transform .55s var(--st-ease)}
.st-reveal.st-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){.st-reveal{opacity:1!important;transform:none!important;transition:none!important}*{animation-duration:.01ms!important}}

/* ---------- Barra de progresso entre páginas ---------- */
#st-progress{position:fixed;top:0;left:0;height:3px;width:0;z-index:99999;background:linear-gradient(90deg,var(--accent),#a855f7,#22d3ee);box-shadow:0 0 12px color-mix(in srgb,var(--accent) 70%,transparent);transition:width .25s ease,opacity .3s}
body.st-leaving .main-content,body.st-leaving .pdv-content{opacity:.55;transform:translateY(4px);transition:opacity .2s,transform .2s}

/* ---------- Saudação do dashboard ---------- */
.st-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:6px 0 16px;padding:22px 24px;border-radius:24px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--accent) 92%,#000),color-mix(in srgb,var(--accent) 45%,#a855f7) 60%,#22d3ee 140%);color:#fff;box-shadow:0 24px 50px -24px color-mix(in srgb,var(--accent) 90%,transparent)}
.st-hero::before{content:'';position:absolute;right:-80px;top:-120px;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.22),transparent 65%)}
.st-hero::after{content:'';position:absolute;inset:0;background-image:radial-gradient(rgba(255,255,255,.12) 1px,transparent 1px);background-size:18px 18px;mask-image:linear-gradient(90deg,transparent,#000);-webkit-mask-image:linear-gradient(90deg,transparent,#000);pointer-events:none}
.st-hero h1{margin:0 0 4px;font-size:clamp(20px,2.6vw,28px);font-weight:800;letter-spacing:-.03em;color:#fff}
.st-hero p{margin:0;opacity:.85;font-size:13.5px}
.st-hero-actions{display:flex;gap:8px;flex-wrap:wrap;position:relative;z-index:1}
.st-hero-actions a{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:12px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);color:#fff!important;text-decoration:none;font-weight:700;font-size:13px;backdrop-filter:blur(8px);transition:background .15s,transform .15s}
.st-hero-actions a:hover{background:rgba(255,255,255,.26);transform:translateY(-1px)}
.st-hero > div{position:relative;z-index:1}

/* ---------- Paleta de comandos (Ctrl/⌘ + K) ---------- */
.st-kbd{display:inline-flex;align-items:center;gap:2px;font:600 11px var(--font-mono,monospace);padding:2px 6px;border-radius:6px;border:1px solid var(--st-line2);color:var(--text-muted);background:var(--bg-card)}
.st-cmd-btn{display:inline-flex;align-items:center;gap:10px;height:40px;padding:0 10px 0 12px;border-radius:12px;border:1px solid var(--st-line);background:var(--bg-input);color:var(--text-muted);font:600 13px var(--font-body);cursor:pointer;min-width:220px;transition:border-color .15s}
.st-cmd-btn:hover{border-color:var(--st-line2);color:var(--text-secondary)}
.st-cmd-btn .st-kbd{margin-left:auto}
.st-palette-bg{position:fixed;inset:0;z-index:20000;background:rgba(5,7,12,.5);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);display:flex;justify-content:center;align-items:flex-start;padding:12vh 16px 16px;opacity:0;transition:opacity .2s}
.st-palette-bg.st-open{opacity:1}
.st-palette{width:min(620px,100%);border-radius:20px;background:var(--bg-modal);border:1px solid var(--st-line2);box-shadow:var(--shadow-lg);overflow:hidden;transform:translateY(-8px) scale(.98);transition:transform .25s var(--st-ease)}
.st-palette-bg.st-open .st-palette{transform:none}
.st-palette-in{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--st-line)}
.st-palette-in i{color:var(--text-muted)}
.st-palette-in input{flex:1;border:0;background:transparent;color:var(--text-primary);font:600 16px var(--font-body);outline:none}
.st-palette-list{max-height:min(54vh,420px);overflow:auto;padding:8px}
.st-palette-group{padding:10px 10px 4px;font-size:10.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--text-muted)}
.st-palette-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;color:var(--text-primary);text-decoration:none;cursor:pointer}
.st-palette-item i{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);font-size:13px}
.st-palette-item small{margin-left:auto;color:var(--text-muted);font-size:11.5px}
.st-palette-item.st-sel{background:color-mix(in srgb,var(--accent) 12%,transparent)}
.st-palette-item.st-buy i{background:linear-gradient(135deg,var(--accent),#a855f7);color:#fff}
.st-palette-foot{display:flex;gap:14px;padding:10px 16px;border-top:1px solid var(--st-line);font-size:11.5px;color:var(--text-muted)}
.st-palette-empty{padding:28px;text-align:center;color:var(--text-muted)}

/* ---------- Atalhos ("?") ---------- */
.st-help{position:fixed;inset:0;z-index:20001;display:grid;place-items:center;background:rgba(5,7,12,.5);backdrop-filter:blur(6px)}
.st-help-box{width:min(460px,calc(100% - 32px));padding:22px;border-radius:22px;background:var(--bg-modal);border:1px solid var(--st-line2);box-shadow:var(--shadow-lg)}
.st-help-box h3{margin:0 0 12px;color:var(--text-heading)}
.st-help-row{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--st-line);font-size:13.5px;color:var(--text-secondary)}
.st-help-row:last-child{border-bottom:0}

/* ---------- Compra (chip, menu e sugestão) ---------- */
.st-buy-chip{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 14px 0 12px;border-radius:12px;text-decoration:none!important;white-space:nowrap;
  background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 45%,#a855f7));color:#fff!important;font-weight:800;font-size:13px;position:relative;overflow:hidden;
  box-shadow:0 10px 24px -10px color-mix(in srgb,var(--accent) 90%,transparent),inset 0 1px 0 rgba(255,255,255,.3)}
.st-buy-chip::after{content:'';position:absolute;top:0;bottom:0;width:30%;left:-40%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-20deg);animation:st-shine 4.5s ease-in-out infinite 2s}
@keyframes st-shine{0%,70%{left:-40%}100%{left:140%}}
.st-buy-chip small{font-weight:700;opacity:.9;padding-left:8px;border-left:1px solid rgba(255,255,255,.35)}
.pdv-header .st-buy-chip{margin-left:auto}
.st-side-cta{margin:10px 12px 12px;padding:14px;border-radius:16px;position:relative;overflow:hidden;
  background:linear-gradient(150deg,color-mix(in srgb,var(--accent) 22%,transparent),color-mix(in srgb,#a855f7 14%,transparent));border:1px solid color-mix(in srgb,var(--accent) 30%,transparent)}
.st-side-cta b{display:block;font-size:13px;color:var(--text-heading);margin-bottom:3px}
.st-side-cta p{margin:0 0 10px;font-size:11.5px;line-height:1.45;color:var(--text-secondary)}
.st-side-cta a{display:block;text-align:center;padding:9px;border-radius:10px;background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 45%,#a855f7));color:#fff!important;font-weight:800;font-size:12.5px;text-decoration:none!important}
.st-nudge{position:fixed;z-index:9000;right:20px;bottom:20px;width:min(360px,calc(100vw - 24px));padding:20px 18px 16px;border-radius:22px;background:var(--bg-modal);border:1px solid var(--st-line2);
  box-shadow:var(--shadow-lg);transform:translateY(18px) scale(.98);opacity:0;transition:transform .35s var(--st-ease),opacity .3s}
.st-nudge.st-open{transform:none;opacity:1}
.st-nudge .st-x{position:absolute;top:10px;right:10px;width:30px;height:30px;border:0;border-radius:50%;background:transparent;color:var(--text-muted);font-size:18px;cursor:pointer}
.st-nudge .st-ico{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),#a855f7);color:#fff;font-size:18px;margin-bottom:10px;box-shadow:0 10px 22px -10px color-mix(in srgb,var(--accent) 90%,transparent)}
.st-nudge h4{margin:0 30px 6px 0;font-size:16px;color:var(--text-heading)}
.st-nudge p{margin:0 0 14px;font-size:13px;line-height:1.5;color:var(--text-secondary)}
.st-nudge .st-go{display:block;text-align:center;padding:12px;border-radius:12px;background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 45%,#a855f7));color:#fff!important;font-weight:800;text-decoration:none!important}
.st-nudge .st-later{display:block;width:100%;margin-top:8px;padding:8px;border:0;background:none;color:var(--text-secondary);font:600 12.5px var(--font-body);cursor:pointer}
.st-confetti{position:fixed;inset:0;pointer-events:none;z-index:9500}

/* ---------- Tour guiado ---------- */
.st-tour-hole{position:fixed;z-index:30000;border-radius:16px;box-shadow:0 0 0 9999px rgba(5,7,12,.62),0 0 0 2px color-mix(in srgb,var(--accent) 80%,#fff);transition:all .35s var(--st-ease);pointer-events:none}
.st-tour-tip{position:fixed;z-index:30001;width:min(320px,calc(100vw - 24px));padding:16px;border-radius:18px;background:var(--bg-modal);border:1px solid var(--st-line2);box-shadow:var(--shadow-lg);transition:all .35s var(--st-ease)}
.st-tour-tip h4{margin:0 0 6px;color:var(--text-heading);font-size:15px}
.st-tour-tip p{margin:0 0 12px;color:var(--text-secondary);font-size:13px;line-height:1.5}
.st-tour-nav{display:flex;align-items:center;gap:8px}
.st-tour-nav span{font-size:12px;color:var(--text-muted);margin-right:auto}
.st-tour-nav button{border:0;border-radius:10px;padding:8px 12px;font:700 12.5px var(--font-body);cursor:pointer;background:color-mix(in srgb,var(--text-primary) 8%,transparent);color:var(--text-primary)}
.st-tour-nav .st-next{background:linear-gradient(135deg,var(--accent),#a855f7);color:#fff}

/* ---------- Barra inferior (celular) ---------- */
.st-tabbar{display:none}
@media (max-width:1024px){
  .main-content{margin-left:0!important;padding:0 10px 92px!important}
  .header{top:8px!important;margin:8px 0 6px!important;border-radius:16px!important;padding:0 8px 0 10px!important;height:58px!important}
  .header-search{display:none!important}
  .st-cmd-btn{min-width:0;width:40px;padding:0;justify-content:center}
  .st-cmd-btn span,.st-cmd-btn .st-kbd{display:none}
  .sidebar{transform:translateX(calc(-100% - 20px));width:280px!important;top:10px!important;bottom:10px!important;left:10px!important;z-index:3000!important}
  .sidebar.mobile-open{transform:none}
  .mobile-overlay.active{background:rgba(5,7,12,.5)!important;backdrop-filter:blur(4px)}
  .st-tabbar{display:flex;position:fixed;z-index:2500;left:10px;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));height:64px;padding:6px;border-radius:20px;
    background:var(--st-glass);border:1px solid var(--st-line2);box-shadow:var(--shadow-lg),var(--st-hi);backdrop-filter:blur(20px) saturate(1.5);-webkit-backdrop-filter:blur(20px) saturate(1.5)}
  .st-tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:14px;color:var(--text-muted);text-decoration:none;font-size:10.5px;font-weight:700;transition:color .15s,background .15s}
  .st-tabbar a i{font-size:17px}
  .st-tabbar a.st-on{color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,transparent)}
  .st-tabbar a.st-tab-pdv{color:#fff}
  .st-tabbar a.st-tab-pdv i{width:46px;height:46px;margin-top:-26px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),#a855f7);box-shadow:0 12px 24px -8px color-mix(in srgb,var(--accent) 90%,transparent);font-size:18px}
  .st-tabbar a.st-tab-pdv span{color:var(--text-secondary)}
  .st-buy-chip{height:36px;padding:0 12px;font-size:12px}
  .st-buy-chip:not(.st-noprice) .st-l{display:none}
  .st-buy-chip small{border:0;padding:0;font-size:12px;opacity:1}
  .st-nudge{left:10px;right:10px;width:auto;bottom:calc(84px + env(safe-area-inset-bottom))}
  .stat-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}
  .stat-card{padding:14px!important;border-radius:18px!important}
  .stat-value{font-size:21px!important}
  .st-hero{padding:18px;border-radius:20px}
  /* PDV no celular: o botão do carrinho sobe para não ficar atrás da barra */
  .pdv-mobile-toggle{bottom:calc(88px + env(safe-area-inset-bottom))!important}
  .pdv-content{padding-bottom:84px}
  .modal{border-radius:24px 24px 0 0!important;width:100%!important;max-width:none!important;max-height:92vh!important;align-self:flex-end;margin:0!important}
  .modal-overlay{align-items:flex-end!important}
}

/* ---------- Tabelas viram cartões no celular ---------- */
@media (max-width:760px){
  .table-container.st-wrap{overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
  table.st-cards{display:block!important;width:100%!important;min-width:0!important;border:0!important;background:transparent!important}
  table.st-cards thead{display:none!important}
  table.st-cards tbody{display:grid!important;gap:10px;width:100%}
  table.st-cards tr{display:grid!important;grid-template-columns:1fr 1fr;gap:10px 14px;position:relative;padding:14px 14px 12px!important;border:1px solid var(--st-line)!important;border-radius:18px!important;background:var(--gradient-card)!important;box-shadow:var(--shadow-sm),var(--st-hi)}
  table.st-cards td{display:block!important;position:static!important;min-width:0!important;width:auto!important;max-width:none!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;white-space:normal!important;font-size:13px;text-align:left!important;overflow-wrap:anywhere}
  table.st-cards td[data-label]:not([data-label=""])::before{content:attr(data-label);display:block;margin-bottom:3px;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted)}
  table.st-cards td.st-title{grid-column:1/-1;padding-right:34px!important;font-size:14px}
  table.st-cards td.st-title::before,table.st-cards td.st-check::before,table.st-cards td.st-actions::before,table.st-cards td.st-full::before{display:none!important}
  table.st-cards td.st-check{position:absolute!important;top:12px;right:12px}
  table.st-cards td.st-actions{grid-column:1/-1;display:flex!important;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding-top:10px!important;border-top:1px solid var(--st-line)!important}
  table.st-cards td.st-actions button,table.st-cards td.st-actions .btn-icon{min-width:40px;min-height:40px}
  table.st-cards td.st-full{grid-column:1/-1;text-align:center!important}
  table.st-cards td.st-empty{display:none!important}
  table.st-cards tr:hover td{background:transparent!important}
}

/* ---------- Login (escolha do segmento) ---------- */
body.st-login .login-panel{background:var(--st-glass)!important;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
body.st-login .segment-card{border-radius:16px!important;transition:transform .2s var(--st-ease),border-color .2s,box-shadow .2s!important}
body.st-login .segment-card:hover{transform:translateY(-2px);box-shadow:0 16px 30px -18px color-mix(in srgb,var(--accent) 90%,transparent)!important}
body.st-login .btn-login,body.st-login button[type=submit]{border-radius:14px!important}
.input-wrap{position:relative}.input-wrap .form-input{width:100%;box-sizing:border-box;padding-right:46px}
.input-wrap .password-toggle{right:10px}

/* Esconde restos do layout antigo */
#dp-demo-buy-cta,.dpx-chip,.dpx-side,.dpx-nudge,.dpx-loginbar{display:none!important}

body.st-no-hsearch .header-search{display:none!important}
/* Janelas acima da barra inferior; no celular os campos ficam em uma coluna */
.modal-overlay{z-index:3500!important}
body:has(.modal-overlay.active) .st-tabbar,body:has(.st-palette-bg) .st-tabbar{opacity:0;pointer-events:none}
@media (max-width:560px){.modal .form-grid,.modal .form-row{grid-template-columns:1fr!important}.modal .form-grid>*,.modal .form-row>*{grid-column:1/-1!important}}.st-loginbar{display:flex;align-items:center;justify-content:center;gap:6px 10px;flex-wrap:wrap;padding:11px 14px;margin:0 0 18px;border-radius:14px;background:linear-gradient(135deg,#6366f1,#a855f7);color:#fff;text-align:center;font-weight:600;font-size:12.5px;line-height:1.35;box-shadow:0 12px 26px -12px rgba(99,102,241,.8)}
.st-loginbar a{color:#fff!important;font-weight:800;text-decoration:underline;white-space:nowrap}

/* Botões de período (Hoje/Semana/Mês) e filtros ativos mantêm o destaque */
.period-btn{border-radius:10px!important}
.period-btn.active,.btn-secondary.active,.btn-outline.active{background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 50%,#a855f7))!important;color:#fff!important;border-color:transparent!important}

/* ==========================================================================
   STUDIO v1.2 — ajustes pedidos depois do primeiro teste
   ========================================================================== */

/* ---------- Ícones Phosphor (duotone) ---------- */
html:not(.st-phok) .st-ph{display:none!important}
html.st-phok .st-has-ph{display:none!important}
.st-ph{line-height:1;display:inline-block}
.menu-item .st-ph{font-size:20px;width:22px;min-width:22px;text-align:center;transition:transform .25s var(--st-ease)}
.menu-item:hover .st-ph{transform:scale(1.12)}
.stat-icon .st-ph{font-size:23px}
.st-tabbar a .st-ph{font-size:22px}
.st-tabbar a.st-tab-pdv .st-ph{width:48px;height:48px;margin-top:-28px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),#a855f7);box-shadow:0 12px 24px -8px color-mix(in srgb,var(--accent) 90%,transparent);font-size:23px;color:#fff}
.header-action .st-ph{font-size:19px}
.st-hero-actions .st-ph{font-size:17px}
.st-palette-item .st-ph{font-size:17px}

/* ---------- Abas (Configurações e outras telas com abas) ---------- */
.st-tabs{display:flex!important;gap:6px;overflow-x:auto!important;padding:5px!important;margin-bottom:16px!important;border:1px solid var(--st-line)!important;border-radius:16px!important;
  background:var(--gradient-card)!important;box-shadow:var(--shadow-sm),var(--st-hi);scrollbar-width:none;scroll-snap-type:x proximity;border-bottom:1px solid var(--st-line)!important}
.st-tabs::-webkit-scrollbar{display:none}
.st-tabs>button,.st-tabs>.btn{flex:0 0 auto!important;min-width:auto!important;white-space:nowrap!important;overflow:visible!important;scroll-snap-align:start;
  border:0!important;border-radius:12px!important;padding:10px 14px!important;background:transparent!important;color:var(--text-secondary)!important;font-weight:700!important;font-size:13px!important;box-shadow:none!important}
.st-tabs>button:hover{color:var(--text-primary)!important;background:color-mix(in srgb,var(--text-primary) 6%,transparent)!important}
.st-tabs>button.st-tab-on{background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 50%,#a855f7))!important;color:#fff!important;box-shadow:0 8px 18px -10px color-mix(in srgb,var(--accent) 90%,transparent)!important}
.st-tabs>button.st-tab-on i{color:#fff!important}

/* ---------- Cabeçalho mais limpo no celular ---------- */
.header-left{min-width:0;flex:1}
.header-left > div{min-width:0}
.header-left h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:1024px){
  .header .mobile-menu-btn{display:none!important}
  .header-breadcrumb{display:none!important}
  .header-left h2{font-size:17px!important}
  .header-right{gap:6px!important;flex:0 0 auto}
}
@media (max-width:600px){
  .header .header-action[onclick*="toggleNotifications"]{display:none!important}
  .header .header-action,.header .header-avatar,.st-cmd-btn{width:36px!important;height:36px!important;border-radius:11px!important}
}

/* ---------- Barra inferior encostada no rodapé ---------- */
@media (max-width:1024px){
  .st-tabbar{left:0!important;right:0!important;bottom:0!important;height:auto!important;min-height:62px;border-radius:22px 22px 0 0!important;border-bottom:0!important;
    padding:6px 8px calc(6px + env(safe-area-inset-bottom))!important}
  .st-tabbar a{min-height:50px}
  .main-content{padding-bottom:calc(86px + env(safe-area-inset-bottom))!important}
  body:has(#pdvCart.open) .st-tabbar,body:has(.pdv-right.open) .st-tabbar{transform:translateY(110%);opacity:0;pointer-events:none}
  .st-tabbar{transition:transform .3s var(--st-ease),opacity .25s}
  .pdv-mobile-toggle{bottom:calc(80px + env(safe-area-inset-bottom))!important}
  body:has(#pdvCart.open) .pdv-mobile-toggle{opacity:0!important;pointer-events:none!important;transform:scale(.6)!important}
  .st-nudge{bottom:calc(80px + env(safe-area-inset-bottom))!important}
}

/* ---------- Login redesenhado (claro e escuro) ---------- */
body.st-login{background:var(--bg-primary)!important}
body.st-login .bg-pattern,body.st-login .grid-lines{display:none!important}
body.st-login .login-brand{position:relative;z-index:1;background:transparent!important}
body.st-login .brand-content{max-width:520px}
body.st-login .login-brand .brand-logo{width:auto!important;height:auto!important;background:none!important;box-shadow:none!important;margin:0 0 22px!important;display:block!important}
body.st-login .login-brand .brand-logo img{height:120px!important;width:auto!important;max-width:100%!important;margin:-26px 0 -22px -18px;object-fit:contain;filter:drop-shadow(0 18px 30px color-mix(in srgb,var(--accent) 22%,transparent))}
body.st-login .brand-content > p{font-size:19px!important;line-height:1.5!important;color:var(--text-secondary)!important;font-weight:500;margin-bottom:28px!important}
body.st-login .brand-feature{display:flex!important;align-items:center;gap:14px;padding:14px 16px!important;margin-bottom:12px!important;border-radius:16px!important;background:var(--gradient-card)!important;border:1px solid var(--st-line)!important;box-shadow:var(--shadow-sm),var(--st-hi)!important}
body.st-login .brand-feature span{color:var(--text-primary)!important;font-weight:600;font-size:14px}
body.st-login .brand-feature > i:not(.st-has-ph),body.st-login .brand-feature .st-ph{width:42px;height:42px;min-width:42px;border-radius:13px;display:grid!important;place-items:center;font-size:20px;color:#fff!important;background:linear-gradient(135deg,var(--accent),#a855f7)!important;box-shadow:0 10px 20px -10px color-mix(in srgb,var(--accent) 90%,transparent)}
body.st-login .login-panel{background:var(--st-glass)!important;border-left:1px solid var(--st-line)!important;box-shadow:var(--shadow-lg)!important;backdrop-filter:blur(24px) saturate(1.4);-webkit-backdrop-filter:blur(24px) saturate(1.4)}
body.st-login .login-header h2{color:var(--text-heading)!important;background:none!important;-webkit-text-fill-color:currentColor!important;font-weight:800!important;letter-spacing:-.03em}
body.st-login .login-header p{color:var(--text-secondary)!important}
body.st-login .segment-card{background:var(--bg-card)!important;border:1px solid var(--st-line)!important;color:var(--text-primary)!important;box-shadow:var(--shadow-sm)!important;border-radius:16px!important}
body.st-login .segment-card strong{color:var(--text-heading)!important}
body.st-login .segment-card small{color:var(--text-secondary)!important}
body.st-login .segment-card[data-ready="1"] small{color:#10b981!important}
body.st-login .segment-card:hover,body.st-login .segment-card:focus-visible,body.st-login .segment-card.selected,body.st-login .segment-card.active{background:color-mix(in srgb,var(--accent) 9%,var(--bg-card))!important;border-color:color-mix(in srgb,var(--accent) 55%,transparent)!important;transform:translateY(-2px)}
body.st-login .segment-card .segment-icon{width:42px!important;height:42px!important;flex:0 0 42px!important;border-radius:13px;display:grid!important;place-items:center;background:color-mix(in srgb,var(--accent) 10%,transparent);font-size:21px!important}
body.st-login .selected-segment{background:color-mix(in srgb,var(--accent) 9%,var(--bg-card))!important;border:1px solid color-mix(in srgb,var(--accent) 40%,transparent)!important;border-radius:14px!important}
body.st-login .selected-segment strong{color:var(--text-heading)!important}
body.st-login .selected-segment small{color:var(--text-secondary)!important}
body.st-login .selected-segment button{color:var(--accent)!important;font-weight:700}
body.st-login .form-label{color:var(--text-secondary)!important}
body.st-login .login-panel .form-input{background:var(--bg-input)!important;border:1px solid var(--st-line2)!important;color:var(--text-primary)!important;border-radius:14px!important}
body.st-login .input-wrap{position:relative;display:block}
body.st-login .input-wrap .password-toggle{right:12px!important;left:auto!important;top:50%!important;transform:translateY(-50%)!important;color:var(--text-muted)!important}
body.st-login .login-footer,body.st-login .login-panel > p{color:var(--text-muted)!important}
body.st-login .demo-info,body.st-login [class*="info-box"]{background:color-mix(in srgb,var(--accent) 7%,var(--bg-card))!important;border-color:color-mix(in srgb,var(--accent) 25%,transparent)!important;color:var(--text-secondary)!important}
body.st-login .other-segment{border-top-color:var(--st-line)!important}
@media (max-width:1024px){body.st-login .login-panel{border-left:0!important}}

/* ---------- Escolha de aparência (primeira visita, Configurações e paleta) ---------- */
.st-theme-bg{position:fixed;inset:0;z-index:40000;display:grid;place-items:center;padding:16px;background:rgba(5,7,12,.55);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);opacity:0;transition:opacity .25s}
.st-theme-bg.st-open{opacity:1}
.st-theme-box{width:min(640px,100%);max-height:calc(100dvh - 32px);overflow:auto;padding:26px 24px 22px;border-radius:26px;background:var(--bg-modal);border:1px solid var(--st-line2);box-shadow:var(--shadow-lg);transform:translateY(14px) scale(.98);transition:transform .35s var(--st-ease)}
.st-theme-bg.st-open .st-theme-box{transform:none}
.st-theme-box h3{margin:0 0 6px;font-size:22px;font-weight:800;color:var(--text-heading);letter-spacing:-.03em}
.st-theme-box > p{margin:0 0 18px;color:var(--text-secondary);font-size:14px}
.st-theme-opts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.st-theme-opt{border:2px solid var(--st-line2);border-radius:18px;padding:8px 8px 12px;background:var(--bg-card);cursor:pointer;text-align:center;color:var(--text-primary);font:700 13.5px var(--font-body);transition:border-color .2s,transform .2s,box-shadow .2s}
.st-theme-opt:hover{transform:translateY(-2px)}
.st-theme-opt.st-sel{border-color:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 18%,transparent)}
.st-theme-opt small{display:block;margin-top:2px;font-weight:600;font-size:11.5px;color:var(--text-muted)}
.st-theme-opt .st-ph{font-size:16px;vertical-align:-2px;margin-right:4px}
.st-mini{position:relative;height:96px;border-radius:12px;overflow:hidden;margin-bottom:10px;display:grid;grid-template-columns:22% 1fr}
.st-mini i{font-style:normal}
.st-mini .s{padding:8px 6px;display:flex;flex-direction:column;gap:5px}
.st-mini .s b{display:block;height:6px;border-radius:4px}
.st-mini .s b:first-child{height:8px;width:70%;margin-bottom:4px}
.st-mini .m{padding:8px;display:flex;flex-direction:column;gap:6px}
.st-mini .h{height:10px;border-radius:5px}
.st-mini .k{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.st-mini .k span{height:26px;border-radius:6px}
.st-mini .c{flex:1;border-radius:6px}
.st-mini.light{background:#f4f6fb}.st-mini.light .s{background:#fff;border-right:1px solid #e6eaf2}.st-mini.light .s b{background:#e3e8f2}.st-mini.light .s b.on{background:#7c6cf6}.st-mini.light .h,.st-mini.light .k span,.st-mini.light .c{background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.08)}
.st-mini.dark{background:#0b0d14}.st-mini.dark .s{background:#12151f;border-right:1px solid rgba(255,255,255,.06)}.st-mini.dark .s b{background:#232838}.st-mini.dark .s b.on{background:#7c6cf6}.st-mini.dark .h,.st-mini.dark .k span,.st-mini.dark .c{background:#171b27}
.st-mini.auto{display:block}
.st-mini.auto .st-mini{position:absolute;inset:0;margin:0;border-radius:0}
.st-mini.auto .st-mini.dark{clip-path:polygon(100% 0,100% 100%,0 100%)}
.st-theme-go{display:block;width:100%;margin-top:18px;padding:14px;border:0;border-radius:14px;background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 45%,#a855f7));color:#fff;font:800 15px var(--font-body);cursor:pointer;box-shadow:0 12px 26px -12px color-mix(in srgb,var(--accent) 90%,transparent)}
.st-theme-note{margin:10px 0 0;text-align:center;font-size:12px;color:var(--text-muted)}
.st-appearance{margin:16px 0}
.st-appearance .st-theme-opts{max-width:620px}
@media (max-width:560px){.st-theme-opts{grid-template-columns:1fr 1fr 1fr;gap:8px}.st-mini{height:70px}.st-theme-box{padding:22px 16px 18px}.st-theme-opt{font-size:12.5px;padding:6px 6px 10px}}
/* Olho da senha: o ícone fica centralizado dentro do botão, dentro do campo */
.input-wrap .password-toggle{width:34px!important;height:34px!important;padding:0!important;display:grid!important;place-items:center;border-radius:10px!important}
.input-wrap .password-toggle i{position:static!important;transform:none!important;left:auto!important;right:auto!important;top:auto!important;margin:0!important}
.input-wrap .password-toggle:hover{background:color-mix(in srgb,var(--text-primary) 7%,transparent)!important}
body.st-login .segment-card .segment-icon i{font-size:24px;color:var(--accent)}
@media (max-width:1024px){.cart-handle{cursor:pointer;padding-top:10px!important;padding-bottom:10px!important}}

/* ==========================================================================
   STUDIO v1.4
   ========================================================================== */
/* Botão central "Vender" (barra do celular): círculo centralizado, sem o fundo de item ativo */
@media (max-width:1024px){
  .st-tabbar a.st-tab-pdv,.st-tabbar a.st-tab-pdv.st-on{background:transparent!important;color:var(--text-secondary)!important;justify-content:flex-end;gap:3px;padding-bottom:2px}
  .st-tabbar a.st-tab-pdv > i.fas,.st-tabbar a.st-tab-pdv > .st-ph{width:52px!important;height:52px!important;min-width:52px;margin:-30px auto 0!important;border-radius:50%!important;display:flex!important;align-items:center;justify-content:center;
    background:linear-gradient(135deg,var(--accent),#a855f7)!important;color:#fff!important;font-size:22px!important;line-height:1!important;
    box-shadow:0 12px 24px -8px color-mix(in srgb,var(--accent) 90%,transparent),0 0 0 5px var(--bg-primary)!important}
  html.st-phok .st-tabbar a.st-tab-pdv > i.fas{display:none!important}
  .st-tabbar a.st-tab-pdv.st-on span{color:var(--accent)!important}
  .st-tabbar a.st-tab-pdv span{font-size:10.5px;font-weight:800}
}

/* Carrinho do PDV no celular: fechar com botão, toque fora ou arrastando para baixo */
.st-cart-close,.st-cart-backdrop{display:none}
@media (max-width:1024px){
  .cart-header{display:flex!important;align-items:center;gap:8px;flex-wrap:wrap}
  .st-cart-close{display:inline-flex;align-items:center;gap:6px;margin-left:auto;order:3;padding:8px 12px;border-radius:12px;border:1px solid var(--st-line2);background:var(--bg-surface);color:var(--text-primary);font:700 12.5px var(--font-body);cursor:pointer}
  .st-cart-close i{font-size:12px}
  .cart-header .cart-count{order:2}
  .st-cart-backdrop{display:block;position:fixed;inset:0;z-index:1;background:rgba(5,7,12,.45);opacity:0;pointer-events:none;transition:opacity .25s}
  body.st-cart-open .st-cart-backdrop{opacity:1;pointer-events:auto;z-index:2999}
  body.st-cart-open #pdvCart{z-index:3000!important}
  .cart-handle{display:block!important;height:22px;cursor:grab}
  .cart-handle::before{content:'';display:block;width:44px;height:5px;margin:8px auto 0;border-radius:3px;background:var(--st-line2)}
}

/* Categorias do PDV: nomes inteiros, em linhas; botão de expandir numa coluna própria */
.pdv-categories.st-cats{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px!important;overflow:visible!important;padding:10px 12px!important;max-height:none!important}
.st-cats-list{display:flex;flex-wrap:wrap;gap:8px;max-height:84px;overflow:hidden;transition:max-height .3s var(--st-ease)}
.pdv-categories.st-cats-open .st-cats-list{max-height:640px}
.st-cats-list .cat-btn{flex:0 0 auto!important;max-width:100%;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;padding:8px 13px!important;border-radius:999px!important;font-size:12.5px!important;font-weight:700!important}
.st-cats-more{display:inline-flex;align-items:center;justify-content:center;gap:4px;height:36px;min-width:44px;padding:0 10px;border-radius:999px;border:1px solid color-mix(in srgb,var(--accent) 40%,transparent);background:color-mix(in srgb,var(--accent) 10%,var(--bg-card));color:var(--accent);font:800 12px var(--font-body);cursor:pointer}
.st-cats-more b{font-size:11px}
.st-cats-more[hidden]{display:none!important}
/* Menu fechado no celular: totalmente fora da tela (antes sobrava uma faixa de 10px) */
@media (max-width:1024px){html body .sidebar:not(.mobile-open){transform:translateX(calc(-100% - 30px))!important;box-shadow:none!important}html body .sidebar.mobile-open{transform:none!important}}

/* Categorias: cartões compactos (ícone + nome + descrição) */
.categorias-products-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(260px,1fr))!important;gap:12px!important}
.categorias-products-grid > .card.st-catcard{display:grid!important;grid-template-columns:48px minmax(0,1fr);column-gap:14px;row-gap:2px;align-items:center;text-align:left!important;padding:14px 48px 14px 14px!important;min-height:0}
.st-cat-ico{grid-row:1 / span 4;width:48px;height:48px;margin:0!important;border-radius:14px;display:grid;place-items:center;font-size:24px!important;color:var(--accent);background:color-mix(in srgb,var(--accent) 11%,transparent)}
html:not(.st-phok) .st-cat-ico i{display:none}
html.st-phok .st-cat-ico .st-cat-emoji{display:none}
.st-cat-name{font-size:15px!important;margin:0!important;color:var(--text-heading)!important;white-space:normal}
.st-cat-sub{font-size:12.5px!important;margin:0!important;color:var(--text-secondary)!important;line-height:1.4}
.categorias-products-grid > .card.st-catcard > button{top:50%!important;transform:translateY(-50%);right:12px!important;width:32px!important;height:32px!important;border-radius:10px!important}html:not(.st-phok) .st-cat-chip-ico{display:none}html.st-phok .st-cat-chip-emoji{display:none}.st-cat-chip-ico{font-size:15px;margin-right:2px;vertical-align:-2px}

/* Cartões de números iguais em todas as telas: ícone, valor e rótulo alinhados à esquerda */
.stat-card{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;text-align:left!important;gap:10px!important}
.stat-card .stat-info{display:flex!important;flex-direction:column!important;align-items:flex-start!important;text-align:left!important;gap:3px!important;width:100%}
.stat-card .stat-info .stat-value{order:1!important}.stat-card .stat-info .stat-label{order:2!important}.stat-card .stat-info > *:not(.stat-value):not(.stat-label){order:3!important}
.stat-card .stat-icon{margin:0!important}
/* Motoboys: números de cada entregador lado a lado */
div:has(> div[style*="text-align:center;padding:8px;border-radius:8px"]){display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
div[style*="text-align:center;padding:8px;border-radius:8px"]{border-radius:12px!important;padding:10px 6px!important}
/* Cabeçalho fixo funcionando em todas as telas (o conteúdo não pode ter rolagem própria) */
.main-content,.app-layout,body{overflow:visible!important;overflow-x:clip!important}
/* Botões de período (Hoje / 7 dias / Mês / Últimos 30 dias / Ano): quebram linha em vez de cortar o texto */
.period-btn{flex:0 0 auto!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;min-width:0}
/* Campos de data com o ano inteiro no celular */
@media (max-width:600px){.page-content input[type=date]{min-width:148px!important;flex:1 1 148px!important;font-size:14px!important;padding-left:10px!important;padding-right:6px!important;text-align:left!important}}

/* Celular: linhas 'texto ... botões' quebram linha em vez de cortar os botões */
@media (max-width:600px){.page-content div[style*="justify-content:space-between"]:not(.st-tabs):not(.toolbar){flex-wrap:wrap!important;row-gap:12px!important}.page-content div[style*="justify-content:space-between"] > div:has(> .btn){flex-wrap:wrap;gap:8px}}

/* Computador: nome do produto/cliente não quebra em várias linhas */
@media (min-width:761px){.data-table .product-cell{min-width:210px}.data-table .product-name{white-space:nowrap}}

/* ==========================================================================
   STUDIO v1.6 — ACABAMENTO PREMIUM (cara de software caro)
   Princípios: cor sólida e contida, tipografia Inter, hierarquia clara,
   bordas finas, sombras suaves, alturas uniformes, degradê só em 1–2 destaques.
   ========================================================================== */
:root{--font-body:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;--st-r:14px;--st-r-lg:18px}
html[data-theme="light"]{--bg-primary:#f6f7f9;--bg-card:#ffffff;--bg-input:#ffffff;--border-color:#e7e9ee;--st-line:#e9ebf0;--st-line2:#dfe2e8;
  --text-primary:#18181b;--text-secondary:#5b6170;--text-muted:#8b909c;--text-heading:#0b0b0f;
  --shadow-sm:0 1px 2px rgba(16,24,40,.04),0 1px 1px rgba(16,24,40,.02);--shadow-md:0 8px 24px -10px rgba(16,24,40,.14);--st-row-hover:#f8f9fb;--st-dot:rgba(15,23,42,.035);
  --st-aurora-1:rgba(99,102,241,.06);--st-aurora-2:rgba(14,165,233,.04);--st-aurora-3:rgba(168,85,247,.04)}
html:not([data-theme="light"]){--bg-primary:#09090b;--bg-card:#111114;--bg-input:#0d0d10;--bg-modal:#121215;--st-line:rgba(255,255,255,.07);--st-line2:rgba(255,255,255,.11);
  --text-primary:#ececf1;--text-secondary:#a0a3ad;--text-muted:#71747e;--text-heading:#fafafa;
  --gradient-card:linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,0) 50%),#111114;--st-aurora-1:rgba(99,102,241,.10);--st-aurora-2:rgba(14,165,233,.05);--st-aurora-3:rgba(168,85,247,.06)}
body{font-family:var(--font-body)!important;font-feature-settings:"cv11","ss01","ss03","tnum"!important;letter-spacing:-.006em}
h1,h2,h3,h4,.card-title{letter-spacing:-.022em!important}

/* --- Superfícies --- */
.card,.table-container,.stat-card,.chart-card{border-radius:var(--st-r-lg)!important;box-shadow:var(--shadow-sm)!important}
html[data-theme="light"] .card,html[data-theme="light"] .table-container,html[data-theme="light"] .stat-card{background:#fff!important}
.card:hover,.stat-card:hover{transform:none!important;box-shadow:var(--shadow-md)!important;border-color:var(--st-line2)!important}
.card-header{padding-bottom:14px!important;margin-bottom:16px!important;border-bottom:1px solid var(--st-line)!important}
.card-title{font-size:15px!important;font-weight:650!important;color:var(--text-heading)!important}
.card-subtitle{font-size:12.5px!important;color:var(--text-muted)!important;margin-top:2px}

/* --- Menu lateral: item ativo discreto com indicador (sem degradê) --- */
.menu-item{font-weight:550!important;font-size:13.5px!important}
.menu-item.active{background:color-mix(in srgb,var(--accent) 11%,transparent)!important;color:var(--accent)!important;box-shadow:none!important;position:relative}
html:not([data-theme="light"]) .menu-item.active{color:#fff!important;background:color-mix(in srgb,var(--accent) 22%,transparent)!important}
.menu-item.active::before{content:''!important;display:block!important;position:absolute;left:-10px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--accent)}
.menu-item.active .st-ph,.menu-item.active i{color:var(--accent)!important}
html:not([data-theme="light"]) .menu-item.active .st-ph{color:#c7c9ff!important}
.menu-section-title{font-size:10.5px!important;letter-spacing:.08em!important;font-weight:650!important}

/* --- Botões: cor sólida, sem brilho correndo --- */
.btn{font-weight:600!important;height:auto;min-height:38px;padding-left:14px!important;padding-right:14px!important}
.btn-sm{min-height:32px!important;font-size:12.5px!important;padding-left:11px!important;padding-right:11px!important}
.btn-primary{background:var(--accent)!important;box-shadow:0 1px 2px rgba(16,24,40,.12),inset 0 1px 0 rgba(255,255,255,.16)!important}
.btn-primary:hover{background:color-mix(in srgb,var(--accent) 88%,#000)!important;transform:none!important;box-shadow:0 4px 14px -6px color-mix(in srgb,var(--accent) 70%,transparent),inset 0 1px 0 rgba(255,255,255,.16)!important}
.btn-primary::after{display:none!important}
.period-btn.active,.btn-secondary.active,.btn-outline.active,.st-tabs>button.st-tab-on{background:var(--accent)!important;box-shadow:none!important}
.btn-outline,.btn-secondary{background:var(--bg-card)!important;border:1px solid var(--st-line2)!important;color:var(--text-primary)!important;box-shadow:0 1px 2px rgba(16,24,40,.04)!important}
.btn-outline:hover,.btn-secondary:hover{background:color-mix(in srgb,var(--text-primary) 4%,var(--bg-card))!important;color:var(--text-primary)!important;border-color:var(--st-line2)!important}

/* --- Campos: altura e foco uniformes --- */
.form-input,.form-control,.toolbar-select,select.form-control,.toolbar-search input,.page-content input[type=text],.page-content input[type=email],.page-content input[type=tel],.page-content input[type=number],.page-content input[type=date],.page-content select,.page-content textarea{
  min-height:40px;border-radius:10px!important;border:1px solid var(--st-line2)!important;background:var(--bg-input)!important;font-size:13.5px;box-shadow:0 1px 2px rgba(16,24,40,.03)!important}
.page-content textarea{min-height:80px}
.form-label{font-size:12.5px!important;font-weight:600!important;color:var(--text-primary)!important;letter-spacing:0;text-transform:none!important}

/* --- Cartões de números (padrão de painel profissional) --- */
.stat-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label icon" "value value" "extra extra";align-items:center!important;column-gap:12px!important;row-gap:6px!important;padding:18px 18px 16px!important;text-align:left!important}
.stat-card .stat-info{display:contents!important}
.stat-card .stat-label{grid-area:label;font-size:12.5px!important;font-weight:550!important;color:var(--text-secondary)!important;order:0!important}
.stat-card .stat-icon{grid-area:icon;width:32px!important;height:32px!important;border-radius:9px!important;font-size:16px!important;justify-self:end}
.stat-card .stat-icon .st-ph{font-size:17px}
.stat-card .stat-value{grid-area:value;font-size:26px!important;font-weight:700!important;letter-spacing:-.03em!important;line-height:1.15;order:0!important;margin-top:4px}
.stat-card > :not(.stat-icon):not(.stat-info):not(.stat-label):not(.stat-value),.stat-card .stat-info > :not(.stat-label):not(.stat-value){grid-area:extra;justify-self:start;order:0!important}
.stat-change{display:inline-flex!important;align-items:center;gap:4px;padding:2px 8px!important;border-radius:999px!important;font-size:11.5px!important;font-weight:600!important}
.stat-change.up{background:color-mix(in srgb,#10b981 12%,transparent)!important;color:#059669!important}
.stat-change.down{background:color-mix(in srgb,#ef4444 12%,transparent)!important;color:#dc2626!important}
html:not([data-theme="light"]) .stat-change.up{color:#34d399!important}
.stat-card::after{display:none!important}
/* Distribuição pela quantidade de cartões */
.stat-grid{gap:12px!important}
@media (min-width:761px){
  .stat-grid:has(> .stat-card:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .stat-grid:has(> .stat-card:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .stat-grid:has(> .stat-card:nth-child(5):last-child){grid-template-columns:repeat(5,minmax(0,1fr))!important}
  .stat-grid:has(> .stat-card:nth-child(6):last-child){grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (min-width:1500px){.stat-grid:has(> .stat-card:nth-child(6):last-child){grid-template-columns:repeat(6,minmax(0,1fr))!important}}

/* --- Tabelas --- */
.table-container{overflow:hidden}
.data-table thead th{background:color-mix(in srgb,var(--text-primary) 2.5%,var(--bg-card))!important;font-size:11px!important;font-weight:600!important;letter-spacing:.04em!important;color:var(--text-muted)!important;padding-top:11px!important;padding-bottom:11px!important}
.data-table tbody td{padding-top:13px!important;padding-bottom:13px!important;font-size:13.5px;color:var(--text-primary)}
.data-table tbody td:first-child,.data-table thead th:first-child{padding-left:18px!important}

/* --- Selos de status --- */
.badge,.client-status,[class*="status-badge"],.status-pill{display:inline-flex!important;align-items:center;gap:6px;padding:3px 10px!important;font-size:11.5px!important;font-weight:600!important;border-radius:999px!important;line-height:1.5}

/* --- Saudação do Dashboard: mais sóbria --- */
.st-hero{background:linear-gradient(120deg,#1e1b4b 0%,#312e81 45%,color-mix(in srgb,var(--accent) 80%,#4c1d95) 100%)!important;box-shadow:0 20px 40px -24px rgba(49,46,129,.7)!important;border:1px solid rgba(255,255,255,.08)}
.st-hero h1{font-weight:700!important;letter-spacing:-.03em!important}
.st-hero-actions a{background:rgba(255,255,255,.1)!important;border-color:rgba(255,255,255,.16)!important;font-weight:600!important}
.st-hero::after{opacity:.6}

/* --- Cabeçalho da página (título + descrição) --- */
.st-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:8px 2px 18px}
.st-page-head .st-crumb{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:500;color:var(--text-muted);margin-bottom:6px}
.st-page-head .st-crumb .st-ph{font-size:13px}
.st-page-head h1{margin:0;font-size:24px;font-weight:700;letter-spacing:-.03em;color:var(--text-heading)}
.st-page-head p{margin:4px 0 0;font-size:13.5px;color:var(--text-secondary)}
@media (min-width:1025px){.header-left h2{font-size:14px!important;font-weight:600!important;color:var(--text-secondary)!important}}
@media (max-width:1024px){.st-page-head{display:none}}

/* --- Estados vazios --- */
.st-empty{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:34px 16px!important;text-align:center;color:var(--text-secondary)!important;font-size:13.5px!important}
.st-empty .st-empty-ico{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 9%,transparent);color:var(--accent);font-size:22px}

/* --- Cartão do usuário no menu --- */
.st-user{display:flex;align-items:center;gap:10px;margin:8px 10px 6px;padding:10px;border-radius:12px;border:1px solid var(--st-line);background:color-mix(in srgb,var(--text-primary) 2.5%,transparent)}
.st-user b{display:block;font-size:12.5px;color:var(--text-heading);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-user small{display:block;font-size:11px;color:var(--text-muted)}
.st-user .st-av{width:32px;height:32px;min-width:32px;border-radius:9px;display:grid;place-items:center;background:var(--accent);color:#fff;font-weight:700;font-size:13px}
@media (min-width:1025px){.sidebar.collapsed:not(:hover) .st-user > div{display:none}.sidebar.collapsed:not(:hover) .st-user{justify-content:center;padding:8px;border:0;background:none}}

/* --- Topo --- */
.header{box-shadow:0 1px 2px rgba(16,24,40,.04)!important}
.header-avatar{background:var(--accent)!important;box-shadow:none!important;font-weight:700}
.st-buy-chip{background:linear-gradient(135deg,var(--accent),color-mix(in srgb,var(--accent) 60%,#a855f7))!important;font-weight:650!important}
.st-buy-chip::after{animation-duration:7s!important}
/* Tabela dentro de cartão: sem borda dupla */
.card .table-container{border:0!important;box-shadow:none!important;background:transparent!important;border-radius:12px!important}
.card .table-container .data-table thead th:first-child{border-top-left-radius:10px}.card .table-container .data-table thead th:last-child{border-top-right-radius:10px}

/* Barra de ferramentas organizada (computador): busca | filtros | ações à direita */
@media (min-width:761px){
  .toolbar{display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important;margin-bottom:16px!important}
  .toolbar-left{display:flex!important;align-items:center!important;gap:10px!important;flex:1 1 auto!important;flex-wrap:wrap!important;min-width:0}
  .toolbar-right{display:flex!important;align-items:center!important;gap:8px!important;margin-left:auto!important;flex-wrap:wrap}
  .toolbar-search{position:relative;flex:1 1 240px!important;max-width:340px!important;min-width:200px}
  .toolbar-search input{width:100%!important}
  .toolbar .toolbar-select,.toolbar select.form-control,.toolbar select{width:auto!important;flex:0 0 auto!important;min-width:150px}
}
/* Nome do item na tabela em uma linha */
.data-table td > div[style*="display:flex;align-items:center;gap:10px"] strong,.data-table td .product-name{white-space:nowrap}
@media (min-width:761px){.data-table tbody td,.data-table thead th{white-space:nowrap}.data-table tbody td{max-width:210px;overflow:hidden;text-overflow:ellipsis}.data-table tbody td:has(.product-cell),.data-table tbody td:has(.product-name){max-width:280px}.table-container{overflow-x:auto!important}}

@media (max-width:760px){.stat-card{padding:14px!important;row-gap:4px!important}.stat-card .stat-value{font-size:19px!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;letter-spacing:-.035em!important}.stat-card .stat-label{font-size:11.5px!important;line-height:1.3}.stat-card .stat-icon{width:28px!important;height:28px!important}}
@media (max-width:360px){.stat-card .stat-value{font-size:17px!important}}

/* Estado vazio centralizado também dentro de tabelas */
td:has(> .st-empty),td.st-empty{text-align:center!important}
.st-empty{width:100%;box-sizing:border-box}
td.st-empty{display:table-cell!important}
td.st-empty .st-empty-ico{margin:0 auto 10px}
/* Topo no computador: título e busca da tela equilibrados */
@media (min-width:1025px){.header-left{flex:0 1 auto!important;min-width:120px}.header-search{flex:0 1 240px!important;min-width:160px}.header-left h2{max-width:260px}}
/* Tabelas largas cabem sem rolagem lateral em telas médias */
@media (min-width:1025px) and (max-width:1499px){.table-container th,.table-container td{padding-left:12px!important;padding-right:12px!important}.table-container td{font-size:13px}}
/* Tabelas muito largas: modo compacto automático + sombra indicando rolagem */
@media (min-width:761px){
.data-table.st-tight th,.data-table.st-tight td{padding-left:9px!important;padding-right:9px!important}
.data-table.st-tight td{font-size:12.5px!important}
.data-table.st-tight thead th{font-size:10.5px!important;letter-spacing:.05em}
.table-container.st-scrollx{background:linear-gradient(90deg,var(--bg-card) 30%,transparent) left/40px 100% no-repeat local,linear-gradient(270deg,var(--bg-card) 30%,transparent) right/40px 100% no-repeat local,radial-gradient(farthest-side at 0 50%,rgba(15,23,42,.14),transparent) left/14px 100% no-repeat scroll,radial-gradient(farthest-side at 100% 50%,rgba(15,23,42,.14),transparent) right/14px 100% no-repeat scroll!important}
.table-container.st-scrollx .data-table{background:transparent!important}
.table-container::-webkit-scrollbar{height:8px}.table-container::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--text-muted) 35%,transparent);border-radius:8px}
}@media (min-width:761px){
.data-table.st-wrap tbody td,.data-table.st-wrap thead th,.data-table.st-wrap .product-name,.data-table.st-wrap td strong{white-space:normal!important;text-overflow:clip!important}
.data-table.st-wrap tbody td{line-height:1.35}
.data-table.st-wrap .product-cell{min-width:170px!important}
}
@media (min-width:761px){.data-table.st-wrap tbody td.st-nw{white-space:nowrap!important}.data-table.st-wrap thead th{min-width:0}}
/* Coluna de ações sempre visível quando a tabela rola */
@media (min-width:761px){
.table-container.st-scrollx .data-table tbody td:last-child,.table-container.st-scrollx .data-table thead th:last-child{position:sticky;right:0;z-index:2;background:var(--bg-card)!important;box-shadow:-10px 0 14px -10px rgba(15,23,42,.22)}
.table-container.st-scrollx .data-table thead th:last-child{background:color-mix(in srgb,var(--text-primary) 2.5%,var(--bg-card))!important}
.table-container.st-scrollx .data-table tbody tr:hover td:last-child{background:var(--bg-card)!important}
}@media (min-width:761px){.table-container .data-table{min-width:0!important}}
/* Ações em linha única (algumas telas usavam td com display:flex) */
@media (min-width:761px){
.data-table tbody td[style*="display:flex"],.data-table tbody td.st-actions{display:table-cell!important;white-space:nowrap!important;overflow:visible!important;max-width:none!important}
.data-table tbody td[style*="display:flex"]>*,.data-table tbody td.st-actions>*{display:inline-flex!important;vertical-align:middle;margin:0 2px}
.toolbar .search-box{flex:1 1 220px;min-width:200px}
}/* Celular: cartão de número sozinho na última linha ocupa a largura toda */
@media (max-width:760px){.stat-card:last-child:nth-child(odd){grid-column:1/-1}}
