:root {
  /* Cores da marca VS Varejão */
  --brand-red: #d7141a;
  --brand-red-d: #9f0f14;
  --brand-red-l: #fdeceb;
  --brand-green: #156b33;
  --brand-gray: #58595b;

  --bg: #f5f4f3;
  --card: #ffffff;
  --text: #222222;
  --muted: #6b6b6d;
  --line: #e6e3e1;
  --line-strong: #d2cecb;
  --primary: #156b33;
  --primary-d: #0f5427;
  --primary-l: #e6f3ea;
  --warn: #9a5a06;
  --warn-l: #fdf3d8;
  --err: #b42318;
  --err-l: #fde8e6;
  --info: #1d4ed8;
  --info-l: #e6eeff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 20, .05), 0 2px 10px rgba(16, 24, 20, .04);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-d); }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.loading { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 0 24px; min-height: 68px;
  background: #fff; color: var(--text);
  border-bottom: 4px solid var(--brand-red);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; color: var(--brand-gray); }
.brand img { height: 64px; width: auto; display: block; margin: 2px 0; }
.brand span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-left: 2px solid var(--line); padding-left: 10px; }
.topbar nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; }
.topbar nav a {
  color: #4a4a4c; text-decoration: none; padding: 8px 12px; border-radius: 8px; white-space: nowrap; font-size: 14px; font-weight: 500;
}
.topbar nav a:hover { background: var(--brand-red-l); color: var(--brand-red-d); }
.topbar nav a.active { background: var(--brand-red); color: #fff; }
.userbox { display: flex; align-items: center; gap: 10px; font-size: 13.5px; white-space: nowrap; }
.userbox a { color: var(--muted); }
.role-badge { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--primary-l); color: var(--primary-d); }

.container { max-width: 1280px; margin: 0 auto; padding: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text);
  padding: 8px 14px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #f6f8f7; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--primary-d); }
.btn.danger { color: var(--err); border-color: #f0c2bd; }
.btn.danger:hover { background: var(--err-l); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: rgba(0, 0, 0, .05); }
.topbar .btn.ghost { color: var(--brand-red-d); border-color: #efc4c5; }
.topbar .btn.ghost:hover { background: var(--brand-red-l); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn.lg { padding: 11px 20px; font-size: 15px; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; color: var(--primary-d); cursor: pointer; font: inherit; font-size: 13px; padding: 0; text-decoration: underline; }
.icon-btn { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.icon-btn:hover { background: #f0f2f1; }

/* ---------- Forms ---------- */
label { display: block; font-size: 13px; font-weight: 600; color: #36423c; }
input, select, textarea {
  display: block; width: 100%; margin-top: 5px;
  font: inherit; font-size: 14.5px; color: var(--text);
  padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(21, 107, 51, .22); border-color: var(--primary); }
input.invalid { border-color: var(--err); background: var(--err-l); }
input[type=checkbox] { display: inline-block; width: 17px; height: 17px; margin: 0; vertical-align: middle; accent-color: var(--primary); }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .span-2 { grid-column: span 2; }
.stack > * + * { margin-top: 16px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.inline-input { display: flex; gap: 8px; align-items: flex-end; }
.inline-input > label { flex: 1; }

/* ---------- Cards / layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card + .card { margin-top: 16px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .meta { color: var(--muted); margin-top: 6px; display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-block; font-size: 13.5px; color: var(--muted); text-decoration: none; margin-bottom: 6px; }
.back:hover { color: var(--text); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar input:not([type=checkbox]), .toolbar select { width: auto; margin: 0; min-width: 200px; }
.toolbar input[type=search] { min-width: 300px; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.notes { white-space: pre-wrap; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tab { padding: 9px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 14px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary-d); border-bottom-color: var(--primary); font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card .table-wrap { border-radius: 8px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table thead th { background: #f7f9f8; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; position: sticky; top: 0; z-index: 1; }
.table th.num, .table td.num { text-align: right; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcfb; }
.table tr.clickable { cursor: pointer; }
.table td input { margin: 0; }
.table.compact th, .table.compact td { padding: 6px 10px; }
.table tfoot th, .table tfoot td { background: #f7f9f8; border-top: 1px solid var(--line-strong); font-weight: 600; }
.max-h { max-height: 46vh; overflow: auto; }
tr.inactive td { color: var(--muted); }

/* ---------- Badges / alerts ---------- */
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: #edf0ee; color: #45524b; white-space: nowrap; }
.badge.ok, .badge.aberta { background: var(--primary-l); color: var(--primary-d); }
.badge.warn { background: var(--warn-l); color: var(--warn); }
.badge.err, .badge.cancelada { background: var(--err-l); color: var(--err); }
.badge.fechada { background: #e9ecf2; color: #3d4a63; }
.badge.info { background: var(--info-l); color: var(--info); }
.badge.role-admin { background: #f3e8ff; color: #6b21a8; }
.badge.role-comprador { background: var(--info-l); color: var(--info); }
.badge.role-fornecedor { background: var(--warn-l); color: var(--warn); }
.alert { padding: 12px 14px; border-radius: 8px; border: 1px solid; font-size: 14px; margin-bottom: 14px; }
.alert.info { background: var(--info-l); border-color: #c4d4fb; color: #1e3a8a; }
.alert.warn { background: var(--warn-l); border-color: #f2d68d; color: #6d4103; }
.alert.error { background: var(--err-l); border-color: #f4bdb7; color: #8c1c13; }
.alert.ok { background: var(--primary-l); border-color: #b6dfc3; color: #0f5128; }
.alert.big { font-size: 15px; padding: 16px 18px; }
.progress { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.progress .bar { width: 70px; height: 6px; background: #e5eae7; border-radius: 9px; overflow: hidden; }
.progress .bar > i { display: block; height: 100%; background: var(--primary); }

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .12) 0, transparent 40%),
    linear-gradient(150deg, #e31b21 0%, var(--brand-red) 45%, var(--brand-red-d) 100%);
}
.login { width: 100%; max-width: 400px; padding: 30px 30px 32px; border: 0; border-bottom: 6px solid var(--brand-green); box-shadow: 0 20px 50px rgba(80, 0, 0, .35); }
.login-logo { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 6px; }
.login-sub { text-align: center; color: var(--muted); font-size: 14px; }
.login-sub b { display: block; color: var(--brand-gray); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 2px; }
.login form > * + * { margin-top: 14px; }
.form-error { color: var(--err); font-size: 13.5px; min-height: 18px; }
.narrow { max-width: 460px; margin: 0 auto; }
.narrow form > * + * { margin-top: 14px; }

/* ---------- Supplier cards ---------- */
.qcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.qcard { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.qcard:hover { border-color: var(--primary); transform: translateY(-1px); }
.qcard .t { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.qcard .row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 8px; }
.qcard.pending { border-left: 4px solid var(--primary); }
.subhead { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 26px 0 10px; font-weight: 600; }

/* ---------- Supplier price entry ---------- */
.price-table td.pname { font-weight: 500; }
.price-table input.price-input { width: 130px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.price-table input.note-input { min-width: 180px; }
.price-table tr.filled td { background: #f6fbf7; }
.sticky-actions {
  position: sticky; bottom: 0; z-index: 5; margin-top: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(4px);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
}
.confirm-box { margin-top: 16px; padding: 14px; border: 2px solid var(--primary); border-radius: 8px; background: var(--primary-l); }
.confirm-box label { font-size: 14.5px; }

/* ---------- Comparison grid ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 13px; min-width: 180px; }
.chip.ok { border-color: #b6dfc3; background: var(--primary-l); }
.chip.pending { border-style: dashed; color: var(--muted); }
.chip b { font-size: 14px; color: var(--text); }
.compare th.sup { min-width: 120px; white-space: normal; }
.compare td.best { background: #dcf3e3 !important; color: #0b4d22; font-weight: 700; }
.compare td.empty { color: #b3bdb8; }
.compare td.editable { cursor: pointer; }
.compare td.editable:hover { outline: 2px solid var(--primary); outline-offset: -2px; }
.compare .cell-note { font-size: 11.5px; font-weight: 400; color: var(--muted); max-width: 160px; margin-left: auto; white-space: normal; }
.compare .edited { color: var(--warn); margin-left: 4px; font-size: 12px; }
.compare td.bestcol { background: #f7fbf8; font-weight: 700; }
.compare .sticky-col { position: sticky; left: 0; background: #fff; z-index: 2; min-width: 220px; }
.compare thead .sticky-col { background: #f7f9f8; z-index: 3; }
.compare tfoot .sticky-col { background: #f7f9f8; }
.compare tbody tr:hover .sticky-col { background: #fafcfb; }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: #dcf3e3; border: 1px solid #a5d8b5; vertical-align: -2px; margin-right: 4px; }

/* ---------- Cotação em etapas / seletor de produtos ---------- */
.steps { display: flex; align-items: center; gap: 12px; margin: -4px 0 18px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.step b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #e7e4e2; color: #666; font-size: 13px; }
.step.active { color: var(--text); font-weight: 700; }
.step.active b { background: var(--brand-red); color: #fff; }
.step.done b { background: var(--primary); color: #fff; }
.step-line { flex: 0 1 60px; height: 2px; background: var(--line-strong); }
label.tiebreak-box { align-items: flex-start; }
.tiebreak-box { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: #fbfaf9; }
.tiebreak-box:has(input:checked) { border-color: #9fd3b0; background: var(--primary-l); }
.tiebreak-box input { margin-top: 3px; }
.tiebreak-box > span { display: flex; flex-direction: column; gap: 3px; }
.picker-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.picker-filters input[type=search] { flex: 1 1 280px; width: auto; margin: 0; }
.picker-filters select { width: auto; margin: 0; max-width: 240px; }
.sup-search { position: relative; }
.sup-search input { margin: 0; font-size: 15px; padding: 11px 12px; }
.sup-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .14); max-height: 420px; overflow: auto; }
.sup-head { padding: 8px 14px 4px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sup-hit { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 14px; cursor: pointer; border-top: 1px solid #f1efed; }
.sup-hit:first-child, .sup-head + .sup-hit { border-top: 0; }
.sup-hit.active, .sup-hit:hover { background: var(--primary-l); }
.sup-hit.added { opacity: .6; }
.sup-empty { padding: 14px; color: var(--muted); }
.sug-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding: 10px 14px;
  border-radius: 8px; background: var(--info-l); border: 1px solid #c4d4fb; color: #1e3a8a; font-size: 14px; }
.compare .sup-terms { font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--muted); margin-top: 2px; }

/* ---------- Código de barras ---------- */
.ean { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px; white-space: nowrap; }
.bar-ico { width: 14px; height: 11px; flex: none; color: #444; }
.compare .ean { justify-content: flex-start; }
.field-hint { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.field-hint.err { color: var(--err); font-weight: 600; }
.field-hint.ok { color: var(--primary-d); }

/* ---------- Vencedores / WhatsApp ---------- */
.winners { border-top: 4px solid var(--primary); }
.wa { display: inline-flex; align-items: center; gap: 5px; color: #128c4a; font-weight: 500; }
.wa-ico { width: 15px; height: 15px; flex: none; }
.btn.wa-btn { background: #25d366; border-color: #25d366; color: #fff; }
.btn.wa-btn:hover:not(:disabled) { background: #1ebe5b; }
tr.witems > td { background: #fafaf9 !important; padding: 6px 12px 12px; }
tr.witems .table { background: #fff; border: 1px solid var(--line); border-radius: 6px; }

/* ---------- Quotation form ---------- */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.check-grid label { border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.check-grid label:has(input:checked) { border-color: #9fd3b0; background: var(--primary-l); }
.qty-input { width: 100px; text-align: right; }
tr.sel td { background: #f3faf5; }

/* ---------- Log ---------- */
.log-filters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; margin-bottom: 14px; }
.log-details { font-size: 13px; }
.log-details ul { margin: 4px 0; padding-left: 18px; }
.log-details .from { color: var(--err); text-decoration: line-through; }
.log-details .to { color: var(--primary-d); font-weight: 600; }
details summary { cursor: pointer; color: var(--primary-d); font-size: 13px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(12, 22, 17, .5); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 16px; z-index: 100; animation: fade .12s ease-out; }
/* min-width: 0 impede que uma tabela larga empurre a janela para fora da tela (no celular) */
.modal { background: #fff; border-radius: 12px; width: 100%; min-width: 0; max-width: 520px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 17px; }
.modal-body { padding: 18px 20px; overflow: auto; }
.modal-body > * + * { margin-top: 12px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.modal-foot:empty { display: none; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Toasts ---------- */
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { background: #2a2a2c; color: #fff; padding: 11px 16px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); font-size: 14px; max-width: 380px; animation: fade .15s; }
.toast.error { background: var(--err); }

/* ---------- Responsive ---------- */
.topbar nav { scrollbar-width: none; }
@media (max-width: 1180px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 16px 6px; gap: 6px 14px; }
  .topbar .brand { flex: 1; }
  .brand img { height: 58px; }
  .topbar nav { order: 3; flex-basis: 100%; }
}
@media (max-width: 900px) {
  .userbox .uname, .brand span { display: none; }
  .container { padding: 16px 12px; }
  .log-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .toolbar input:not([type=checkbox]), .toolbar select { min-width: 0; flex: 1; }
  /* Tabela de preços do fornecedor vira lista de cartões no celular */
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px; border-bottom: 1px solid var(--line); }
  .price-table td { border: 0; padding: 0; }
  .price-table td.pname { grid-column: span 2; font-size: 15px; }
  .price-table td.c-code, .price-table td.c-unit, .price-table td.c-qty { font-size: 13px; color: var(--muted); }
  .price-table td.c-code::before { content: "Cód. "; }
  .price-table td.c-unit::before { content: "Unid.: "; }
  .price-table td.c-qty { text-align: left; }
  .price-table td.c-qty::before { content: "Qtd.: "; }
  .price-table td.c-price, .price-table td.c-note { grid-column: span 2; }
  .price-table input.price-input { width: 100%; font-size: 17px; }
  .price-table td.c-price::before { content: "Preço unitário (R$)"; font-size: 12px; color: var(--muted); display: block; }
  .price-table td.c-note::before { content: "Observação"; font-size: 12px; color: var(--muted); display: block; }
  .sticky-actions .btn { width: 100%; }

  /* Janelas no celular: ocupam a largura toda e os botões ficam grandes, um embaixo do outro */
  .modal-overlay { padding: 10px; }
  .modal { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
  .modal-head, .modal-body, .modal-foot { padding-left: 14px; padding-right: 14px; }
  .modal-foot .btn { flex: 1 1 100%; padding: 12px; font-size: 15px; }
  .modal-foot .btn.primary { order: -1; }

  /* Confirmação de preços do fornecedor: um cartão por item, com o preço em destaque */
  .confirm-table thead { display: none; }
  .confirm-table, .confirm-table tbody, .confirm-table tr, .confirm-table td { display: block; width: 100%; }
  .confirm-table tr { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 12px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .confirm-table td { border: 0 !important; padding: 0 !important; }
  .confirm-table .c-name { grid-column: 1 / -1; font-weight: 600; font-size: 14.5px; }
  .confirm-table .c-unit, .confirm-table .c-qty { font-size: 13px; color: var(--muted); text-align: left; }
  .confirm-table .c-qty::before { content: "Qtd. "; }
  .confirm-table .c-price { font-size: 17px; text-align: right; color: var(--primary-d); }
  .confirm-table .c-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
  .confirm-table .c-note:empty { display: none; }
  .confirm-box label { font-size: 14px; align-items: flex-start; }
  .confirm-box input { margin-top: 2px; flex: none; }
}

.print-header { display: none; }
@media print {
  .topbar, .actions, .no-print, .back, .toolbar, #toasts { display: none !important; }
  .print-header { display: flex !important; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--brand-red); padding-bottom: 8px; margin-bottom: 14px; }
  .print-header img { height: 46px; }
  .print-header span { font-size: 11px; color: #666; }
  body { background: #fff; font-size: 12px; }
  .container { max-width: none; padding: 0; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .table-wrap { overflow: visible; border: 0; }
  .compare .sticky-col { position: static; }
  .compare td.best { background: #dcf3e3 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
