:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #dbeafe;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --whatsapp: #128c7e;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  padding-top: 62px;
  padding-bottom: calc(78px + var(--safe-bottom));
  overscroll-behavior-y: none;
}

h1 { font-size: 21px; margin: 0 0 4px; font-weight: 800; }
h2 { font-size: 16px; margin: 0 0 10px; font-weight: 700; }
h3 { font-size: 15px; margin: 0 0 6px; font-weight: 700; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); font-size: 13px; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }

/* Top App Header */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: #0f172a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.app-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.loja-titulo {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}
.status-badge {
  font-size: 11px;
  color: #93c5fd;
}
.btn-chip {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Main container & tabs */
.app-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 12px;
}
.tab-page {
  display: none;
  animation: fadeIn 0.16s ease-out;
}
.tab-page.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.highlight-card {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border-color: #bfdbfe;
}
.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.card-title-row h2 { margin: 0; }

.hero-card {
  background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.22);
}
.hero-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #bfdbfe;
}
.hero-value {
  font-size: 30px;
  font-weight: 800;
  margin: 4px 0;
}
.hero-sub {
  font-size: 13px;
  color: #cbd5e1;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.mini-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.mini-card .rotulo {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.mini-card .valor {
  font-size: 18px;
  font-weight: 800;
  margin-top: 2px;
}
.mini-card .sub {
  font-size: 11px;
  color: var(--muted);
}

/* Quick actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.action-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.action-tile:active {
  background: var(--primary-soft);
}
.tile-icon {
  font-size: 22px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-whatsapp { background: #16a34a; color: #fff; font-size: 15px; }
.btn-camera { background: #0f172a; color: #fff; white-space: nowrap; }
.btn-outline { background: #fff; color: var(--text); border-color: #cbd5e1; }
.btn-danger-outline { background: #fff; color: var(--red); border-color: #fca5a5; }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 18px; font-size: 16px; flex: 1; }
.btn-sm { padding: 7px 11px; font-size: 12px; border-radius: 8px; }
.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Search & Inputs */
.search-bar-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  position: sticky;
  top: 64px;
  z-index: 20;
  background: var(--bg);
  padding: 4px 0;
}
.search-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 12px;
  font-size: 15px;
  pointer-events: none;
}
.search-input-wrap input {
  width: 100%;
  padding: 11px 34px 11px 36px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  font-size: 15px;
  background: #fff;
}
.btn-clear {
  position: absolute;
  right: 8px;
  border: none;
  background: #e2e8f0;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 12px;
  cursor: pointer;
}

.form-stack label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
}
.form-stack input[type="text"],
.form-stack input[type="number"],
.form-stack input[type="date"],
.form-stack input[type="tel"],
.form-stack input[type="url"],
.form-stack input[type="password"],
.form-stack select {
  width: 100%;
  margin-top: 4px;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
}
.input-with-btn {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.input-with-btn input { margin-top: 0 !important; flex: 1; }

/* PDV Product Touch Cards */
.product-touch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 10px;
  padding-bottom: 72px;
}
.pdv-prod-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.pdv-prod-card:active {
  border-color: var(--primary);
  background: #f8fafc;
}
.pdv-prod-card.sem-estoque {
  opacity: 0.55;
}
.pdv-prod-nome {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}
.pdv-prod-cod {
  font-size: 11px;
  color: var(--muted);
}
.pdv-prod-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.pdv-prod-preco {
  font-weight: 800;
  font-size: 16px;
  color: var(--primary);
}
.pdv-prod-est {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 99px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
}
.pdv-prod-est.baixo {
  background: var(--red-soft);
  color: var(--red);
}
.pdv-qtd-no-carrinho {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  min-width: 24px;
  height: 24px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Floating Cart Bar */
.cart-floating-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(74px + var(--safe-bottom));
  max-width: 656px;
  margin: 0 auto;
  background: var(--green);
  color: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
  z-index: 80;
  cursor: pointer;
}
.cart-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.cart-count-badge {
  background: #fff;
  color: var(--green);
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 99px;
  font-size: 13px;
}

/* List Stack Items */
.list-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.list-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 11px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.list-item-main {
  flex: 1;
  min-width: 0;
}
.list-item-title {
  font-weight: 700;
  font-size: 14px;
}
.list-item-sub {
  font-size: 12px;
  color: var(--muted);
}
.list-item-right {
  text-align: right;
  white-space: nowrap;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 2px;
}
.qty-stepper button {
  width: 30px;
  height: 30px;
  border: none;
  background: #f1f5f9;
  border-radius: 7px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}
.qty-stepper span {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

/* Segmented Control & Period Chips */
.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #e2e8f0;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 12px;
}
.seg-btn {
  border: none;
  background: transparent;
  padding: 9px;
  font-weight: 700;
  font-size: 14px;
  border-radius: 9px;
  color: #475569;
  cursor: pointer;
}
.seg-btn.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.period-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.chip-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 99px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
}
.chip-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Collapsible Export Drawer (Abre e Fecha) */
.export-drawer {
  border: 2px solid #2563eb;
  background: #f8fafc;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.14);
  animation: fadeSlideDown 0.18s ease-out;
}
.export-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}
.export-drawer-header h2 {
  margin: 0 0 2px;
  color: #1e3a8a;
}
.export-drawer-header p {
  margin: 0;
}
.export-checks {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Radio pills & Payment options */
.radio-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.pill-option input,
.pay-option input {
  display: none;
}
.pill-option span {
  display: block;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
}
.pill-option span small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.pill-option input:checked + span {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.pay-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid #cbd5e1;
  border-radius: 11px;
  padding: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  background: #fff;
}
.pay-option input:checked + span {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* Payment progress bars */
.payment-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pay-bar-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.pay-bar-top {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}
.pay-bar-track {
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}
.pay-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
}

.info-strip {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 10px;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(64px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #ffffff;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 90;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.04);
}
.nav-item {
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  padding: 6px 0;
}
.nav-item.active {
  color: var(--primary);
  font-weight: 700;
}
.nav-icon { font-size: 20px; line-height: 1; }
.nav-label { font-size: 11px; }
.nav-badge {
  position: absolute;
  top: 4px;
  right: 22%;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Modals (Bottom Sheet Style on Mobile) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  z-index: 260;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop[hidden] {
  display: none !important;
}
.modal-sheet {
  background: #fff;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.18s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { margin: 0; }
.btn-icon-close {
  border: none;
  background: #f1f5f9;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}
.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 12px 16px calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  background: #fff;
}

.summary-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  margin: 12px 0;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}
.summary-row.total-highlight {
  font-size: 19px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 8px;
}
.input-inline {
  width: 110px;
  text-align: right;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
}

/* Receipt Paper */
.receipt-paper {
  background: #fffef8;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  padding: 16px;
  font-family: "Courier New", Consolas, monospace;
  font-size: 13px;
  color: #000;
  margin-top: 12px;
}
.receipt-paper .r-center { text-align: center; }
.receipt-paper .r-bold { font-weight: 700; }
.receipt-paper .r-sep { border-top: 1px dashed #000; margin: 8px 0; }
.receipt-paper .r-row { display: flex; justify-content: space-between; gap: 8px; }
.receipt-paper .r-cancelada {
  border: 2px solid var(--red);
  color: var(--red);
  text-align: center;
  font-weight: 700;
  padding: 4px;
  margin: 6px 0;
}

/* Barcode Scanner Camera */
.scanner-viewport {
  position: relative;
  width: 100%;
  height: 240px;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
}
.scanner-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scanner-laser {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 2px;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 350;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 92%;
  max-width: 420px;
  pointer-events: none;
}
.toast {
  background: #0f172a;
  color: #fff;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,0.22);
}
.toast.ok { background: #15803d; }
.toast.erro { background: #b91c1c; }

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.sql-details pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 10px;
  border-radius: 8px;
  font-size: 11px;
  overflow-x: auto;
}
.steps-list {
  margin: 6px 0 0;
  padding-left: 20px;
  font-size: 13px;
}
.steps-list li { margin-bottom: 6px; }

/* Login Overlay */
.login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, #0f172a 0%, #1e3a8a 100%);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.login-card {
  background: #ffffff;
  width: 100%;
  max-width: 410px;
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.login-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 10px;
}
.login-erro {
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid #fca5a5;
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.login-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.badge-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}
.badge-ativa { background: var(--green-soft); color: var(--green); }
.badge-bloqueada { background: var(--red-soft); color: var(--red); }

/* PDF Report Preview & Tables */
.pdf-preview-sheet {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.pdf-header-box {
  border-bottom: 2px solid #1d4ed8;
  padding-bottom: 10px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}
.pdf-header-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}
.pdf-header-sub {
  font-size: 12px;
  color: #475569;
}
.pdf-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.pdf-kpi-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
}
.pdf-kpi-card.lucro {
  background: #f0fdf4;
  border-color: #86efac;
}
.pdf-kpi-label {
  font-size: 11px;
  color: #475569;
  text-transform: uppercase;
  font-weight: 700;
}
.pdf-kpi-val {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-top: 2px;
}
.pdf-kpi-card.lucro .pdf-kpi-val {
  color: #15803d;
}
.pdf-kpi-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.pdf-section-title {
  font-size: 14px;
  font-weight: 800;
  color: #1e3a8a;
  margin: 14px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #cbd5e1;
}
.pdf-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 10px;
}
.pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.pdf-table th,
.pdf-table td {
  border: 1px solid #cbd5e1;
  padding: 6px 8px;
  text-align: left;
}
.pdf-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
}
.pdf-table td.num,
.pdf-table th.num {
  text-align: right;
  white-space: nowrap;
}
.pdf-table tfoot td {
  background: #f8fafc;
  font-weight: 800;
}
.pdf-profit-pos {
  color: #15803d;
  font-weight: 700;
}
.pdf-profit-neg {
  color: #dc2626;
  font-weight: 700;
}


