/* Peplo · boutique de luxo, só tema claro.
   Paleta: Marfim #F7F4EE (fundo) · Porcelana #FFFFFF (cartões) · Grafite #292723 (texto) · Ameixa #8A5367 (ação) · Champagne #B69A72 (detalhe).
   A loja escolhe a cor de destaque em Configurações (data-tema); o resto da paleta não muda. */
:root {
  --fundo: #F7F4EE; --cartao: #FFFFFF; --texto: #292723; --mudo: #6F6A63; --linha: #E8E1D6; --linha-2: #F0EBE3;
  --ac: #8A5367; --ac-forte: #6E3B50; --ac-claro: #F3E8EC; --ac2: #B69A72; --ac2-claro: #F5EEE3;
  --lat: #3E2532; --lat-2: #4F3040; --lat-tx: #EADBE1;
  --ok: #3F7A5A; --ok-claro: #E7F1EA; --mal: #A8453F; --mal-claro: #F7E6E3; --atn: #9A6B1F; --atn-claro: #F8EFD9;
  --raio: 14px; --raio-p: 9px; --sombra: 0 1px 2px rgba(41,39,35,.05), 0 6px 18px -10px rgba(62,37,50,.18);
  --t: 220ms cubic-bezier(.2,.7,.2,1);
  --serif: 'Playfair Display', Georgia, serif; --sans: Inter, system-ui, sans-serif;
  color-scheme: light;
}
[data-tema="champagne"] { --ac: #8C6E45; --ac-forte: #6E5433; --ac-claro: #F5EEE3; --ac2: #8A5367; --ac2-claro: #F3E8EC; --lat: #3A3024; --lat-2: #4A3E2F; --lat-tx: #EFE5D6; }
[data-tema="salvia"] { --ac: #4E6B5C; --ac-forte: #3B5446; --ac-claro: #E8EFEA; --ac2: #B69A72; --lat: #2B3A32; --lat-2: #384A40; --lat-tx: #DDE8E1; }
[data-tema="petroleo"] { --ac: #2F5A66; --ac-forte: #22444E; --ac-claro: #E4EEF0; --ac2: #B69A72; --lat: #1F343B; --lat-2: #2A444C; --lat-tx: #D6E5E9; }
[data-tema="rose"] { --ac: #A85C6E; --ac-forte: #8A4556; --ac-claro: #F7E9EC; --ac2: #B69A72; --lat: #4A2A33; --lat-2: #5B3540; --lat-tx: #F2DDE3; }
[data-tema="grafite"] { --ac: #3D3A36; --ac-forte: #292723; --ac-claro: #ECEAE6; --ac2: #B69A72; --lat: #292723; --lat-2: #3A3733; --lat-tx: #E9E4DC; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--sans); color: var(--texto); background: var(--fundo); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--ac); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0; color: var(--texto); }
h1 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; }
h2 { font-size: 20px; line-height: 1.25; }
h3 { font-size: 17px; }
.mudo { color: var(--mudo); }
.num { font-variant-numeric: tabular-nums; }

/* faixa da demonstração */
.demo-topo { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 7px 14px; background: var(--ac2-claro); border-bottom: 1px solid var(--linha); font-size: 13px; color: var(--mudo); }
.demo-topo a, .demo-topo button { color: var(--ac-forte); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.modo-conta .demo-topo { display: none; }

/* estrutura */
.casca { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.lateral { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 18px; background: linear-gradient(180deg, var(--lat), var(--lat-2)); color: var(--lat-tx); }
.lat-marca { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; text-decoration: none; color: #fff; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.lat-marca img { background: #F7F4EE; border-radius: 10px; padding: 3px; }
.lat-marca i { font-style: normal; color: #E7D5B8; }
.menu { position: relative; display: grid; gap: 3px; }
.menu a { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--lat-tx); text-decoration: none; font-weight: 500; transition: background var(--t), color var(--t), transform var(--t); }
.menu a:hover { background: rgba(255,255,255,.07); transform: translateX(2px); }
.menu a[aria-current="page"] { background: #F7F4EE; color: var(--ac-forte); font-weight: 600; box-shadow: 0 6px 16px -8px rgba(0,0,0,.45); }
.menu-n { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; background: var(--mal); color: #fff; font-style: normal; }
.menu-n.alerta { background: var(--atn); }
.lat-rodape { margin: auto 10px 0; font-size: 12px; opacity: .6; }
.principal { min-width: 0; display: flex; flex-direction: column; }
.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 14px clamp(16px, 3vw, 34px); background: rgba(247,244,238,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.loja { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--texto); min-width: 0; }
.loja-logo { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--ac-claro); color: var(--ac-forte); font-family: var(--serif); font-weight: 600; font-size: 17px; border: 1.5px solid var(--ac2); }
.loja-logo img { width: 100%; height: 100%; object-fit: cover; }
.loja-txt { display: grid; min-width: 0; }
.loja-txt b { font-family: var(--serif); font-size: 21px; font-weight: 600; font-style: italic; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loja-txt small { color: var(--mudo); font-size: 12.5px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-acoes { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topo-bt { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--linha); background: var(--cartao); cursor: pointer; color: var(--texto); transition: transform var(--t), box-shadow var(--t); }
.topo-bt:hover { transform: translateY(-1px); box-shadow: var(--sombra); }
.ponto { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; background: var(--mal); color: #fff; font-size: 11px; display: grid; place-items: center; font-style: normal; }
main { padding: 26px clamp(16px, 3vw, 34px) 60px; outline: none; max-width: 1360px; width: 100%; }
.barra { display: none; }

/* entrada de tela e itens em cascata */
.entra { animation: entra .42s cubic-bezier(.2,.7,.2,1) backwards; }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cascata > * { animation: entra .5s cubic-bezier(.2,.7,.2,1) backwards; }
.cascata > *:nth-child(2) { animation-delay: .05s; } .cascata > *:nth-child(3) { animation-delay: .1s; } .cascata > *:nth-child(4) { animation-delay: .15s; } .cascata > *:nth-child(5) { animation-delay: .2s; } .cascata > *:nth-child(6) { animation-delay: .25s; } .cascata > *:nth-child(n+7) { animation-delay: .3s; }

/* cabeçalho de tela */
.cab { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; margin-bottom: 22px; }
.cab p { margin: 4px 0 0; color: var(--mudo); }
.cab .acoes { margin-left: auto; display: flex; flex-wrap: wrap; gap: 10px; }

/* botões */
.bt { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linha); background: var(--cartao); color: var(--texto); font-weight: 600; font-size: 14.5px; text-decoration: none; cursor: pointer; transition: transform var(--t), box-shadow var(--t), background var(--t), border-color var(--t); -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.bt:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px rgba(62,37,50,.35); border-color: #DCCFBF; }
.bt:active { transform: translateY(0) scale(.97); box-shadow: none; }
.bt.cheio { background: var(--ac); border-color: var(--ac); color: #fff; }
.bt.cheio:hover { background: var(--ac-forte); }
.bt.ouro { background: var(--ac2); border-color: var(--ac2); color: #fff; }
.bt.perigo { color: var(--mal); }
.bt.pq { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.bt.largo { width: 100%; }
.bt:disabled { opacity: .5; pointer-events: none; }
.bt svg { width: 18px; height: 18px; }
.zap { color: #1F7A4D; }
.onda { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); animation: onda .55s ease-out forwards; pointer-events: none; }
@keyframes onda { to { transform: scale(2.6); opacity: 0; } }
.link { background: none; border: 0; padding: 0; color: var(--ac); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* abas com indicador deslizante */
.abas { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: #EFE8DD; margin-bottom: 18px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.abas::-webkit-scrollbar { display: none; }
.abas button { position: relative; z-index: 1; border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--mudo); cursor: pointer; white-space: nowrap; transition: color var(--t); }
.abas button[aria-selected="true"] { color: var(--ac-forte); }
.abas .ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--cartao); box-shadow: 0 2px 8px -3px rgba(62,37,50,.3); transition: transform .32s cubic-bezier(.2,.8,.2,1), width .32s cubic-bezier(.2,.8,.2,1); }

/* cartões e grades */
.grade { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-21 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 18px 20px; box-shadow: var(--sombra); min-width: 0; }
.cartao > h2:first-child, .cartao-cab { margin-bottom: 12px; }
.cartao-cab { display: flex; align-items: center; gap: 10px; }
.cartao-cab h2 { display: flex; align-items: center; gap: 10px; }
.cartao-cab h2 svg { color: var(--ac); width: 22px; height: 22px; }
.cartao-cab .link, .cartao-cab .bt { margin-left: auto; }
.kpi { display: flex; gap: 14px; align-items: flex-start; transition: transform var(--t), box-shadow var(--t); }
a.kpi, button.kpi { text-decoration: none; color: inherit; cursor: pointer; text-align: left; font: inherit; }
a.kpi:hover, button.kpi:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(62,37,50,.45); }
.kpi-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--ac-claro); color: var(--ac); }
.kpi-ic.ouro { background: var(--ac2-claro); color: #8C6E45; }
.kpi-ic.mal { background: var(--mal-claro); color: var(--mal); }
.kpi-ic.ok { background: var(--ok-claro); color: var(--ok); }
.kpi-ic svg { width: 23px; height: 23px; }
.kpi small { display: block; color: var(--mudo); font-weight: 500; font-size: 13.5px; }
.kpi b { display: block; font-size: clamp(21px, 2vw, 26px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi em { display: block; font-style: normal; font-size: 12.5px; color: var(--mudo); margin-top: 2px; }
.kpi.mal b { color: var(--mal); }
.kpi.ok b { color: var(--ok); }
.ola { margin-bottom: 20px; }
.ola h1 { font-size: clamp(28px, 3.4vw, 38px); }
.ola p { margin: 4px 0 0; color: var(--mudo); }

/* listas */
.lista { list-style: none; margin: 0; padding: 0; display: grid; }
.lista > li { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--linha-2); min-width: 0; }
.lista > li:last-child { border-bottom: 0; }
.lista .cresce { flex: 1; min-width: 0; }
.lista .cresce b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista .cresce small { color: var(--mudo); font-size: 13px; }
.aviso { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; background: var(--fundo); text-decoration: none; color: var(--texto); border: 1px solid transparent; transition: transform var(--t), border-color var(--t), background var(--t); cursor: pointer; width: 100%; text-align: left; font: inherit; }
.aviso + .aviso { margin-top: 8px; }
.aviso:hover { transform: translateX(3px); border-color: var(--linha); background: #fff; }
.aviso .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.aviso .ic.mal { background: var(--mal-claro); color: var(--mal); }
.aviso .ic.atn { background: var(--atn-claro); color: var(--atn); }
.aviso .ic.ac { background: var(--ac-claro); color: var(--ac); }
.aviso span:not(.ic) { flex: 1; min-width: 0; }
.aviso .seta { color: var(--mudo); }
.vazio { text-align: center; padding: 26px 10px; color: var(--mudo); }
.vazio b { display: block; color: var(--texto); font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }

/* etiquetas */
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--linha-2); color: var(--mudo); }
.tag.mal { background: var(--mal-claro); color: var(--mal); }
.tag.ok { background: var(--ok-claro); color: var(--ok); }
.tag.atn { background: var(--atn-claro); color: var(--atn); }
.tag.ac { background: var(--ac-claro); color: var(--ac-forte); }

/* tabelas */
.tabela-wrap { overflow-x: auto; margin: 0 -4px; }
table.tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font-weight: 600; color: var(--mudo); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--linha); white-space: nowrap; }
.tabela td { padding: 11px 10px; border-bottom: 1px solid var(--linha-2); vertical-align: middle; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabela tbody tr { transition: background var(--t); }
.tabela tbody tr:hover { background: #FBF9F5; }

/* grade tamanho x cor */
.gradeq { border-collapse: separate; border-spacing: 4px; font-size: 13.5px; }
.gradeq th { font-weight: 600; color: var(--mudo); padding: 2px 6px; text-align: center; }
.gradeq th.cor { text-align: left; white-space: nowrap; }
.gradeq td { min-width: 38px; height: 32px; text-align: center; border-radius: 7px; background: var(--fundo); font-weight: 600; font-variant-numeric: tabular-nums; }
.gradeq td.baixo { background: var(--mal-claro); color: var(--mal); }
.gradeq td.zero { background: #F3EFEA; color: #B9B1A7; }
.gradeq input { width: 52px; height: 34px; border: 1px solid var(--linha); border-radius: 7px; text-align: center; background: #fff; }
.bolinha { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); vertical-align: -1px; margin-right: 6px; }

/* peça (produto) */
.peca { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--ac2-claro); color: var(--ac-forte); overflow: hidden; }
.peca svg { width: 26px; height: 26px; stroke-width: 1.5; }
.peca img { width: 100%; height: 100%; object-fit: cover; }
.produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.prod { display: grid; gap: 12px; cursor: pointer; transition: transform var(--t), box-shadow var(--t); }
.prod:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(62,37,50,.45); }
.prod-topo { display: flex; gap: 12px; align-items: center; min-width: 0; }
.prod-topo div { min-width: 0; flex: 1; }
.prod-topo b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod-topo small { color: var(--mudo); font-size: 13px; }
.prod-rodape { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--mudo); }
.prod-rodape b { color: var(--texto); font-size: 16px; }

/* formulários */
.campos { display: grid; gap: 12px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.campos .inteiro { grid-column: 1 / -1; }
.campo { display: grid; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--mudo); min-width: 0; }
.campo input, .campo select, .campo textarea, .busca input { width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--linha); background: #fff; color: var(--texto); font-weight: 500; font-size: 15px; transition: border-color var(--t), box-shadow var(--t); }
.campo textarea { min-height: 90px; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .busca input:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-claro); }
.campo small { font-weight: 500; font-size: 12.5px; }
.troca { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 10px 0; font-weight: 500; color: var(--texto); }
.troca input { width: 20px; height: 20px; accent-color: var(--ac); }
.busca { position: relative; }
.busca svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--mudo); }
.busca input { padding-left: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--linha); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: all var(--t); }
.chips button:hover { border-color: var(--ac2); }
.chips button[aria-pressed="true"] { background: var(--ac); border-color: var(--ac); color: #fff; }
.chips button:disabled { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.temas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.temas button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--linha); background: #fff; cursor: pointer; font-weight: 600; transition: all var(--t); }
.temas button i { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); flex: none; }
.temas button[aria-pressed="true"] { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-claro); }

/* vender */
.pdv { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.sacola { position: sticky; top: 92px; }
.itens-sacola { list-style: none; margin: 0 0 12px; padding: 0; }
.itens-sacola li { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linha-2); animation: entra .3s ease both; }
.itens-sacola .q { display: inline-flex; align-items: center; gap: 6px; }
.itens-sacola .q button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--linha); background: #fff; cursor: pointer; font-weight: 700; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-top: 1px dashed var(--linha); margin-top: 6px; }
.total b { font-size: 26px; font-variant-numeric: tabular-nums; }
.pag-linha { display: grid; grid-template-columns: minmax(0, 1fr) 130px 34px; gap: 8px; margin-bottom: 8px; align-items: center; }
.pag-linha select, .pag-linha input { min-height: 40px; border-radius: 10px; border: 1px solid var(--linha); padding: 6px 10px; background: #fff; width: 100%; }
.x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--linha); background: #fff; cursor: pointer; color: var(--mudo); }
.caixa-aviso { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; margin: 8px 0; }
.caixa-aviso.mal { background: var(--mal-claro); color: var(--mal); }
.caixa-aviso.atn { background: var(--atn-claro); color: var(--atn); }
.caixa-aviso.ok { background: var(--ok-claro); color: var(--ok); }
.escolha-peca { display: grid; gap: 14px; }

/* barra de progresso (limite) */
.barra-lim { height: 8px; border-radius: 4px; background: var(--linha-2); overflow: hidden; }
.barra-lim i { display: block; height: 100%; border-radius: 4px; background: var(--ac); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.barra-lim.mal i { background: var(--mal); }
.barra-lim.atn i { background: var(--atn); }

/* janelas */
.camada { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(41,39,35,.42); animation: fundo .25s ease both; }
.camada[hidden] { display: none; }
@keyframes fundo { from { opacity: 0; } }
.janela { width: min(640px, 100%); max-height: calc(100dvh - 36px); overflow: auto; background: var(--cartao); border-radius: 18px; padding: 24px; box-shadow: 0 30px 70px -20px rgba(41,39,35,.5); animation: sobe .32s cubic-bezier(.2,.8,.2,1) both; position: relative; }
.janela.larga { width: min(900px, 100%); }
@keyframes sobe { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.janela h2 { margin-bottom: 6px; padding-right: 40px; }
.janela > p.mudo { margin: 0 0 16px; }
.fechar { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--linha); background: #fff; cursor: pointer; font-size: 20px; line-height: 1; color: var(--mudo); }
.janela .acoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* recibo */
.recibo { border: 1px dashed var(--ac2); border-radius: 14px; padding: 18px; background: #FFFDF9; font-size: 14px; }
.recibo h3 { text-align: center; font-size: 20px; }
.recibo .linha-r { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; }
.recibo hr { border: 0; border-top: 1px dashed var(--linha); margin: 10px 0; }

/* gráfico de barras */
.barras { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.barras div { flex: 1; display: grid; gap: 4px; align-items: end; height: 100%; text-align: center; font-size: 11px; color: var(--mudo); }
.barras i { display: block; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--ac), var(--ac-forte)); transform-origin: bottom; animation: cresce .7s cubic-bezier(.2,.8,.2,1) both; min-height: 3px; }
@keyframes cresce { from { transform: scaleY(0); } }
.hbar { display: grid; grid-template-columns: 120px minmax(0, 1fr) 90px; gap: 10px; align-items: center; font-size: 13.5px; margin: 8px 0; }
.hbar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .trilho { height: 10px; border-radius: 5px; background: var(--linha-2); overflow: hidden; }
.hbar .trilho i { display: block; height: 100%; border-radius: 5px; background: var(--ac2); transform-origin: left; animation: largura .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes largura { from { transform: scaleX(0); } }
.hbar b { text-align: right; font-variant-numeric: tabular-nums; }

/* avisos (toasts) */
.toasts { position: fixed; z-index: 80; top: 18px; right: 18px; display: grid; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--texto); color: #fff; font-weight: 500; box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); animation: toast .35s cubic-bezier(.2,.8,.2,1) both; max-width: 360px; }
.toast svg { color: #B7E1C6; }
.toast.erro svg { color: #F4B2AC; }
.toast.sai { animation: toastsai .3s ease forwards; }
@keyframes toast { from { opacity: 0; transform: translateY(-10px) scale(.96); } }
@keyframes toastsai { to { opacity: 0; transform: translateY(-8px); } }

/* mais (celular) */
.mais-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mais-lista a { display: grid; gap: 8px; padding: 18px; border-radius: var(--raio); background: var(--cartao); border: 1px solid var(--linha); text-decoration: none; color: var(--texto); font-weight: 600; box-shadow: var(--sombra); transition: transform var(--t); }
.mais-lista a:active { transform: scale(.97); }
.mais-lista svg { color: var(--ac); width: 24px; height: 24px; }

/* impressão */
@media print {
  .lateral, .topo, .barra, .demo-topo, .cab .acoes, .abas, .no-print, .toasts { display: none !important; }
  .casca { display: block; } main { padding: 0; } .cartao { box-shadow: none; break-inside: avoid; }
  .camada { position: static; background: none; padding: 0; } .janela { box-shadow: none; max-height: none; width: 100%; } .fechar, .janela .acoes { display: none; }
  body.imprime-janela .casca { display: none; }
}

/* tablet */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdv { grid-template-columns: minmax(0, 1fr) 340px; }
}
/* celular */
@media (max-width: 860px) {
  .casca { display: block; }
  .lateral { display: none; }
  .topo { padding: 10px 14px; gap: 10px; }
  .topo-vender { display: none; }
  .loja-logo { width: 40px; height: 40px; }
  .loja-txt b { font-size: 18px; }
  main { padding: 18px 14px 110px; }
  .g4, .g3, .g2, .g-21, .pdv, .campos { grid-template-columns: minmax(0, 1fr); }
  .g4.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis .kpi { flex-direction: column; gap: 8px; padding: 14px; }
  .kpis .kpi-ic { width: 38px; height: 38px; }
  .kpi b { font-size: 20px; }
  .sacola { position: static; }
  .cab { margin-bottom: 16px; }
  .cab .acoes { margin-left: 0; width: 100%; }
  .cab .acoes .bt { flex: 1; }
  .cartao { padding: 16px; }
  .temas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .produtos { grid-template-columns: minmax(0, 1fr); }
  .hbar { grid-template-columns: 90px minmax(0, 1fr) 80px; }
  .janela { padding: 20px 16px; border-radius: 18px 18px 0 0; align-self: end; max-height: 92dvh; }
  .camada { padding: 0; place-items: end stretch; }
  .barra { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 6px; border-radius: 22px; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border: 1px solid var(--linha); box-shadow: 0 16px 34px -14px rgba(62,37,50,.45); }
  .barra a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 14px; font-size: 11.5px; font-weight: 600; color: var(--mudo); text-decoration: none; transition: color var(--t), background var(--t), transform var(--t); }
  .barra a:active { transform: scale(.94); }
  .barra a[aria-current="page"] { color: var(--ac-forte); background: var(--ac-claro); }
  .barra .barra-vender { width: 54px; height: 54px; margin: -22px auto 0; border-radius: 50%; background: var(--ac); color: #fff; box-shadow: 0 10px 22px -8px var(--ac); place-items: center; }
  .barra .barra-vender svg { width: 26px; height: 26px; }
  .barra .barra-vender[aria-current="page"] { background: var(--ac-forte); color: #fff; }
  .toasts { top: auto; bottom: 96px; left: 14px; right: 14px; }
  .toast { max-width: none; }
  table.tabela.cartoes thead { display: none; }
  table.tabela.cartoes, .tabela.cartoes tbody, .tabela.cartoes tr, .tabela.cartoes td { display: block; width: 100%; }
  .tabela.cartoes tr { padding: 10px 0; border-bottom: 1px solid var(--linha-2); }
  .tabela.cartoes td { border: 0; padding: 3px 4px; }
  .tabela.cartoes td.n { text-align: left; }
  .tabela.cartoes td[data-r]::before { content: attr(data-r) ": "; color: var(--mudo); font-size: 12.5px; }
  .gradeq td { min-width: 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; } }

/* menu por categorias */
.lateral { overflow-y: auto; scrollbar-width: thin; }
.menu { gap: 2px; }
.menu-grupo { margin: 14px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #CDB48D; opacity: .85; }
.menu-grupo:first-child { margin-top: 0; }
.menu a { padding: 9px 12px; }
/* eu no topo */
.topo-eu { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--ac-claro); color: var(--ac-forte); font-weight: 700; font-size: 14px; text-decoration: none; border: 1.5px solid var(--ac2); transition: transform var(--t); }
.topo-eu:hover { transform: translateY(-1px); }
.topo-eu img { width: 100%; height: 100%; object-fit: cover; }
/* botão Adicionar com menu */
.add { position: relative; }
.add > summary { list-style: none; }
.add > summary::-webkit-details-marker { display: none; }
.add-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; min-width: 260px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--linha); box-shadow: 0 20px 40px -16px rgba(62,37,50,.4); animation: sobe .22s cubic-bezier(.2,.8,.2,1) both; }
.add-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; border-radius: 10px; text-align: left; cursor: pointer; font-weight: 600; }
.add-menu button:hover { background: var(--ac-claro); }
.add-menu button svg { color: var(--ac); }
.add-menu small { display: block; color: var(--mudo); font-size: 12px; font-weight: 500; }
/* ao vivo */
.vivo { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ok); }
.vivo i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); animation: pulso 1.8s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(63,122,90,.45); } 70% { box-shadow: 0 0 0 9px rgba(63,122,90,0); } 100% { box-shadow: 0 0 0 0 rgba(63,122,90,0); } }
.meta { height: 12px; border-radius: 6px; background: var(--linha-2); overflow: hidden; margin: 10px 0 6px; }
.meta i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--ac2), var(--ac)); transform-origin: left; animation: largura .9s cubic-bezier(.2,.8,.2,1) both; }
.perm { display: grid; grid-template-columns: minmax(0, 1fr) repeat(5, 74px); gap: 0 6px; align-items: center; font-size: 13.5px; }
.perm > b { font-size: 12px; color: var(--mudo); text-align: center; font-weight: 600; line-height: 1.2; padding-bottom: 6px; }
.perm > span { padding: 10px 0; border-top: 1px solid var(--linha-2); }
.perm > label { display: grid; place-items: center; border-top: 1px solid var(--linha-2); padding: 10px 0; }
.perm input { width: 18px; height: 18px; accent-color: var(--ac); }
.instala { display: grid; justify-items: center; text-align: center; gap: 10px; }
.instala img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 14px 30px -12px rgba(62,37,50,.45); }
.instala .progresso { width: 100%; height: 8px; border-radius: 4px; background: var(--linha-2); overflow: hidden; }
.instala .progresso i { display: block; height: 100%; width: 0; background: var(--ac); transition: width 2.2s cubic-bezier(.4,.1,.2,1); }
.foto-perfil { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--ac-claro); color: var(--ac-forte); font-family: var(--serif); font-size: 32px; font-weight: 600; border: 2px solid var(--ac2); flex: none; }
.foto-perfil img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .perm { grid-template-columns: minmax(0, 1fr) repeat(5, 46px); font-size: 12.5px; } .perm > b { font-size: 10px; } .topo-eu, #bt-instalar { display: none; } .add-menu { position: fixed; left: 12px; right: 12px; top: auto; bottom: 96px; } }
.prod { text-align: left; font: inherit; color: inherit; }

.menu-ajuda { display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin-top: 10px; border-radius: 10px; border: 1px solid rgba(231,213,184,.35); background: rgba(255,255,255,.05); color: #E7D5B8; font-weight: 600; cursor: pointer; text-align: left; transition: background var(--t); }
.menu-ajuda:hover { background: rgba(255,255,255,.12); }
.cd-tab input { width: 100%; min-height: 40px; border: 1px solid var(--linha); border-radius: 8px; padding: 6px 8px; background: #fff; }
.cd-tab td { padding: 5px 4px; }

.barras-svg { display: block; width: 100%; height: 40px; }

.guia-item { border-top: 1px solid var(--linha-2); }
.guia-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px; font-weight: 600; cursor: pointer; }
.guia-item summary::-webkit-details-marker { display: none; }
.guia-item summary::after { content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ac-claro) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E3B50' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>") center / 14px no-repeat; transition: transform .25s ease; }
.guia-item[open] summary::after { transform: rotate(180deg); }
.guia-item p { margin: 0; padding: 0 4px 16px; color: var(--mudo); line-height: 1.6; }
.cartao-cab h2 .tag { margin-right: 4px; }
