/* PDV do varejo — TEMA. Todo o visual sai destas variáveis: troque cores, tamanhos e cantos aqui (ou pelo botão "Aparência" no próprio PDV). */
.pv {
  --pv-bg: #eef1f5; --pv-card: #fff; --pv-ink: #17202e; --pv-mut: #6b7788; --pv-line: #e2e7ee; --pv-key: #f3f5f9;
  --pv-acc: #0e7c6b; --pv-acc-ink: #fff; --pv-soft: #e4f3ef; --pv-bar: #0f1b2d; --pv-bar-ink: #e8eef7;
  --pv-warn: #b45309; --pv-warn-bg: #fef3c7; --pv-bad: #b91c1c;
  --pv-radius: 14px; --pv-btn-h: 46px; --pv-fs: 15px; --pv-total-fs: 42px;
  display: flex; flex-direction: column; background: var(--pv-bg); color: var(--pv-ink); font-size: var(--pv-fs);
  height: calc(100vh - 57px); min-height: 480px;
}
.pv[data-tema="escuro"] { --pv-bg: #0b1119; --pv-card: #141c27; --pv-ink: #e8eef6; --pv-mut: #8d99ab; --pv-line: #243040; --pv-key: #1b2533; --pv-acc: #2dd4bf; --pv-acc-ink: #04201c; --pv-soft: #12332f; --pv-bar: #070c13; --pv-warn: #fbbf24; --pv-warn-bg: #3a2c0a; --pv-bad: #f87171; }
.pv[data-cor="azul"] { --pv-acc: #2563eb; --pv-soft: #e3ecfd; } .pv[data-tema="escuro"][data-cor="azul"] { --pv-acc: #60a5fa; --pv-soft: #12233f; --pv-acc-ink: #06142b; }
.pv[data-cor="rosa"] { --pv-acc: #c2255c; --pv-soft: #fce7f0; } .pv[data-tema="escuro"][data-cor="rosa"] { --pv-acc: #f472b6; --pv-soft: #3a1228; --pv-acc-ink: #2b0a1c; }
.pv[data-cor="laranja"] { --pv-acc: #d9480f; --pv-soft: #ffeee4; } .pv[data-tema="escuro"][data-cor="laranja"] { --pv-acc: #fb923c; --pv-soft: #3a1d0a; --pv-acc-ink: #2b1203; }
.pv[data-tam="grande"] { --pv-btn-h: 58px; --pv-fs: 17px; --pv-total-fs: 52px; }
.pv[data-cantos="reto"] { --pv-radius: 4px; } .pv[data-cantos="redondo"] { --pv-radius: 22px; }
.pv * { box-sizing: border-box; }
.pv-bar { background: var(--pv-bar); color: var(--pv-bar-ink); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 9px 16px; font-size: 13px; }
.pv-bar b { font-size: 15px; } .pv-bar .sp { flex: 1; } .pv-bar button { background: transparent; color: inherit; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; padding: 4px 10px; cursor: pointer; font: inherit; }
.pv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; margin-right: 6px; } .pv-dot.off { background: #f87171; }
.pv-corpo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); }
.pv-esq { padding: 14px; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--pv-line); }
.pv-dir { padding: 14px; background: var(--pv-key); display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; overflow: auto; }
.pv-scan { display: flex; gap: 8px; position: relative; }
.pv-scan input { flex: 1; min-width: 0; font-size: 18px; padding: 12px 14px; border: 2px solid var(--pv-acc); border-radius: var(--pv-radius); background: var(--pv-card); color: var(--pv-ink); }
.pv-qk { border: 1px solid var(--pv-line); background: var(--pv-key); border-radius: var(--pv-radius); padding: 0 12px; display: flex; flex-direction: column; justify-content: center; font-size: 12px; color: var(--pv-mut); text-align: center; min-width: 64px; }
.pv-qk b { font-size: 17px; color: var(--pv-ink); }
.pv-achados { position: absolute; z-index: 5; top: 100%; left: 0; right: 0; margin-top: 4px; background: var(--pv-card); border: 1px solid var(--pv-line); border-radius: var(--pv-radius); box-shadow: 0 10px 30px rgba(0,0,0,.18); max-height: 340px; overflow: auto; }
.pv-achados button { display: flex; width: 100%; justify-content: space-between; gap: 10px; padding: 10px 14px; background: none; border: 0; border-bottom: 1px solid var(--pv-line); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pv-achados button:hover, .pv-achados button.on { background: var(--pv-soft); }
.pv-itens { flex: 1; overflow: auto; min-height: 0; }
.pv-it { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto 28px; gap: 10px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--pv-line); }
.pv-av { width: 40px; height: 40px; border-radius: 10px; background: var(--pv-soft); color: var(--pv-acc); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.pv-it .nm { font-weight: 600; overflow-wrap: anywhere; } .pv-it .sb { font-size: 12.5px; color: var(--pv-mut); }
.pv-qty { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pv-qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--pv-line); background: var(--pv-card); color: var(--pv-ink); cursor: pointer; font-size: 16px; line-height: 1; }
.pv-pr { text-align: right; min-width: 82px; } .pv-pr small { display: block; font-size: 12px; color: var(--pv-mut); } .pv-pr b { font-size: 16px; }
.pv-del { background: none; border: 0; color: var(--pv-mut); cursor: pointer; font-size: 16px; }
.pv-vazio { text-align: center; color: var(--pv-mut); padding: 50px 10px; } .pv-vazio b { display: block; font-size: 20px; color: var(--pv-ink); margin-bottom: 4px; }
.pv-box { background: var(--pv-card); border: 1px solid var(--pv-line); border-radius: var(--pv-radius); padding: 10px 12px; }
.pv-box h3 { margin: 0 0 6px; font-size: 12px; color: var(--pv-mut); text-transform: uppercase; letter-spacing: .06em; }
.pv-pills { display: flex; flex-wrap: wrap; gap: 6px; } .pv-pills button { background: var(--pv-key); border: 1px solid var(--pv-line); border-radius: 99px; padding: 5px 12px; font: inherit; font-size: 13px; color: var(--pv-ink); cursor: pointer; }
.pv-tot { background: var(--pv-bar); color: var(--pv-bar-ink); border-radius: var(--pv-radius); padding: 14px 16px; }
.pv-tot .r { display: flex; justify-content: space-between; opacity: .85; padding: 2px 0; } .pv-tot .l { font-size: 12px; letter-spacing: .08em; opacity: .7; margin-top: 8px; }
.pv-tot .big { font-size: var(--pv-total-fs); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.pv-fin { background: var(--pv-acc); color: var(--pv-acc-ink); border: 0; border-radius: var(--pv-radius); min-height: calc(var(--pv-btn-h) + 12px); font-size: 19px; font-weight: 800; cursor: pointer; }
.pv-fin:disabled { opacity: .45; cursor: not-allowed; } .pv-fin small { display: block; font-weight: 500; font-size: 12px; opacity: .85; }
.pv-acoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pv-acoes button { min-height: var(--pv-btn-h); background: var(--pv-card); border: 1px solid var(--pv-line); border-radius: var(--pv-radius); color: var(--pv-ink); font: inherit; font-size: 13px; cursor: pointer; padding: 4px; }
.pv-acoes button kbd { display: block; font: inherit; font-size: 11px; color: var(--pv-mut); }
.pv-acoes button:hover { border-color: var(--pv-acc); }
.pv-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 8px 16px; border-top: 1px solid var(--pv-line); font-size: 12.5px; color: var(--pv-mut); background: var(--pv-card); }
.pv-foot kbd { font: inherit; font-weight: 700; background: var(--pv-key); border: 1px solid var(--pv-line); border-radius: 6px; padding: 0 6px; color: var(--pv-ink); margin-right: 4px; }
.pv-tag { display: inline-block; font-size: 11.5px; border-radius: 6px; padding: 1px 7px; background: var(--pv-soft); color: var(--pv-acc); margin-left: 6px; font-weight: 600; } .pv-tag.w { background: var(--pv-warn-bg); color: var(--pv-warn); }
.pv-grade { border-collapse: collapse; width: 100%; } .pv-grade th, .pv-grade td { border: 1px solid var(--line); text-align: center; padding: 8px 6px; }
.pv-grade td button { width: 100%; min-height: 40px; border: 0; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.pv-grade td.baixo { background: #fef3c7; color: #b45309; } .pv-grade td.zero { background: var(--surface-2); color: var(--muted); }
.pv-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .pv-pay button { min-height: 62px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; cursor: pointer; } .pv-pay button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; font-weight: 700; }
.pv-aparencia label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0; }
@media (max-width: 860px) { .pv { height: auto; } .pv-corpo { grid-template-columns: 1fr; } .pv-esq { border-right: 0; } .pv-itens { max-height: 50vh; } }

.pv-av { overflow: hidden; }
.pv-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
