/* ============================================
   PDV/CRM — Design Tokens
   ============================================ */
:root {
  /* Cores */
  --bg: #f4f5f7;
  --surface: #ffffff;
  --border: #e3e5ea;

  --sidebar-bg: #16213e;
  --sidebar-text: #a9b4cc;
  --sidebar-text-active: #ffffff;
  --sidebar-hover: #1f2c50;

  --primary: #2f6f5e;
  --primary-dark: #235448;
  --accent: #e0913a;      /* usado no botão de finalizar venda (PDV) */
  --accent-dark: #c47a2b;

  --text: #1c1f26;
  --muted: #6b7280;
  --danger: #c0392b;
  --success: #2f8a4e;
  --warning: #b7791f;

  /* Tipografia */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Layout */
  --sidebar-width: 240px;
  --topbar-height: 64px;
  --radius: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================
   Layout com sidebar
   ============================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.sidebar__brand {
  padding: 0 20px 20px;
  font-weight: 700;
  font-size: 18px;
  color: var(--sidebar-text-active);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}

.sidebar__brand span { color: var(--accent); }

.sidebar nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 10px;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--sidebar-text);
  border-left: 3px solid transparent;
}

.sidebar__link:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
}

.sidebar__link.active {
  background: var(--sidebar-hover);
  color: var(--sidebar-text-active);
  border-left-color: var(--primary);
}

/* PDV recebe destaque — é a tela mais usada no dia a dia */
.sidebar__link.is-pdv {
  border-left-color: var(--accent);
  color: var(--sidebar-text-active);
}
.sidebar__link.is-pdv.active {
  border-left-color: var(--accent);
}

.sidebar__footer {
  padding: 12px 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 12px;
}

.sidebar__user {
  font-size: 12px;
  color: var(--sidebar-text);
  margin-bottom: 8px;
  word-break: break-all;
}

.sidebar__logout {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--sidebar-text-active);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  width: 100%;
}
.sidebar__logout:hover { background: var(--sidebar-hover); }

/* ============================================
   Conteúdo principal
   ============================================ */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: var(--topbar-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  justify-content: space-between;
}

.topbar h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.content {
  padding: 24px;
  flex: 1;
}

/* ============================================
   Componentes genéricos
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: none;
  font-size: 14px;
  font-weight: 600;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { background: var(--bg); }

.placeholder-box {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
}

.placeholder-box strong { display: block; color: var(--text); margin-bottom: 6px; font-size: 15px; }

/* ============================================
   Tela de login
   ============================================ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--sidebar-bg) 0%, #1f2c50 100%);
}

.login-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-md);
}

.login-card h1 {
  font-size: 20px;
  margin: 0 0 4px;
}
.login-card p.subtitle {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 24px;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}
.field input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.login-error {
  background: #fdecea;
  color: var(--danger);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: none;
}
.login-error.show { display: block; }

.login-submit { width: 100%; margin-top: 4px; }

@media (max-width: 768px) {
  .sidebar { position: fixed; left: -100%; top: 0; bottom: 0; z-index: 40; transition: left .2s; }
  .sidebar.open { left: 0; }
  .content { padding: 16px; }
}

/* ============================================
   Toolbar de listagem (busca + filtros + ação)
   ============================================ */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.toolbar .search-input {
  flex: 1;
  min-width: 220px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}

.toolbar select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
}

.toolbar .checkbox-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  user-select: none;
}
.toolbar .checkbox-pill input { cursor: pointer; }

.toolbar-spacer { flex: 1; }

/* ============================================
   Tabela de dados
   ============================================ */
.data-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table thead th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.data-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg); }

.data-table .col-actions {
  text-align: right;
  white-space: nowrap;
}

.thumb {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--border);
  display: block;
}

.thumb-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--muted);
}

.cell-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

.cell-price { font-variant-numeric: tabular-nums; }

.icon-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-left: 4px;
}
.icon-btn:hover { background: var(--bg); }
.icon-btn.danger:hover { background: #fdecea; border-color: var(--danger); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}
.badge-success { background: #e7f6ec; color: var(--success); }
.badge-danger { background: #fdecea; color: var(--danger); }
.badge-muted { background: var(--bg); color: var(--muted); }
.badge-warning { background: #fdf3e0; color: var(--warning); }

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}

/* ============================================
   Modal (formulário de cadastro/edição)
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 40, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 100;
}

.modal-overlay.hidden { display: none; }

.modal {
  background: var(--surface);
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  box-shadow: var(--shadow-md);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 { margin: 0; font-size: 17px; }

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--muted);
  width: 30px;
  height: 30px;
}
.modal-close:hover { color: var(--text); }

.modal-body {
  padding: 24px;
  max-height: 65vh;
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

.form-section { margin-bottom: 22px; }
.form-section:last-child { margin-bottom: 0; }

.form-section h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0 0 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid .span-2 { grid-column: 1 / -1; }

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-field .hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 4px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}
.form-field textarea { resize: vertical; min-height: 60px; }

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}
.form-error.show { display: block; }

.margem-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* Toggle switch (ativo/inativo, tem variações) */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: background .15s;
}
.toggle-track::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  top: 2px;
  left: 2px;
  transition: left .15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-track { background: var(--primary); }
.toggle input:checked + .toggle-track::after { left: 20px; }

/* Upload de foto */
.photo-upload {
  display: flex;
  align-items: center;
  gap: 14px;
}
.photo-preview {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--bg);
  border: 1px solid var(--border);
}
.photo-upload input[type="file"] { font-size: 13px; }

/* Variações */
.variacoes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.variacao-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.7fr 0.9fr auto;
  gap: 8px;
  align-items: center;
}
.variacao-row input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
}
.variacao-remove {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 30px;
  height: 30px;
  color: var(--danger);
}
.variacao-remove:hover { background: #fdecea; }

.btn-add-variacao {
  margin-top: 4px;
  font-size: 13px;
  padding: 7px 12px;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .variacao-row { grid-template-columns: 1fr; }
}

/* ============================================
   PDV — Frente de caixa
   ============================================ */
.pdv-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: start;
}

.pdv-search-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.pdv-search-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 12px;
}
.pdv-search-input:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

.pdv-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 460px;
  overflow-y: auto;
}

.pdv-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  background: var(--surface);
  width: 100%;
}
.pdv-result-item:hover { background: var(--bg); border-color: var(--primary); }
.pdv-result-item:disabled { opacity: 0.45; cursor: not-allowed; }
.pdv-result-item:disabled:hover { background: var(--surface); border-color: var(--border); }

.pdv-result-item .thumb,
.pdv-result-item .thumb-placeholder { flex-shrink: 0; }

.pdv-result-info { flex: 1; min-width: 0; }
.pdv-result-info .nome { font-weight: 600; font-size: 14px; }
.pdv-result-info .meta { font-size: 12px; color: var(--muted); }
.pdv-result-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Carrinho */
.pdv-cart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 20px;
}

.pdv-cart-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.pdv-cart-items {
  padding: 8px 16px;
  max-height: 320px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info .nome { font-size: 13.5px; font-weight: 600; }
.cart-item-info .preco-unit { font-size: 12px; color: var(--muted); }

.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.qty-stepper button {
  width: 26px;
  height: 26px;
  border: none;
  background: var(--bg);
  font-size: 14px;
}
.qty-stepper input {
  width: 32px;
  border: none;
  text-align: center;
  font-size: 13px;
  font-family: inherit;
  padding: 0;
}

.cart-item-subtotal {
  font-size: 13.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 62px;
  text-align: right;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  width: 22px;
}
.cart-item-remove:hover { color: var(--danger); }

.pdv-cart-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}

.pdv-cart-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}

.pdv-cliente-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.pdv-cliente-row select { flex: 1; }

.pdv-totais {
  font-size: 13.5px;
  margin-bottom: 12px;
}
.pdv-totais .linha {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--muted);
}
.pdv-totais .linha.total {
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 8px;
}
.pdv-totais input.desconto-input {
  width: 90px;
  text-align: right;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.payment-method-btn {
  padding: 10px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}
.payment-method-btn.selected {
  border-color: var(--accent);
  background: #fdf3e0;
  color: var(--accent-dark);
}

.btn-finalizar {
  width: 100%;
  padding: 13px;
  font-size: 15px;
}

/* Painel de cobrança Pix */
.pix-panel { text-align: center; }
.pix-panel img.qr { width: 200px; height: 200px; margin: 0 auto 12px; display: block; border: 1px solid var(--border); border-radius: 8px; }
.pix-copia-cola {
  font-size: 11px;
  font-family: var(--font-mono);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  word-break: break-all;
  margin-bottom: 12px;
  max-height: 70px;
  overflow-y: auto;
}
.pix-status {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}
.pix-status.aguardando::before {
  content: "●";
  color: var(--warning);
  margin-right: 6px;
  animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

@media (max-width: 900px) {
  .pdv-layout { grid-template-columns: 1fr; }
  .pdv-cart { position: static; }
}

/* ============================================
   Abas (tabs)
   ============================================ */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.tab-btn {
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.mini-search-results {
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.selected-product-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--primary);
  background: #eef5f3;
  border-radius: var(--radius);
  font-size: 13.5px;
}
.selected-product-box button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
}

.tipo-mov-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tipo-mov-btn {
  padding: 10px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.tipo-mov-btn.selected { border-color: var(--primary); background: #eef5f3; color: var(--primary-dark); }

/* ============================================
   Relatórios
   ============================================ */
.date-range-group {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.date-range-group input[type="date"] {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13.5px;
}

.quick-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.quick-filter-btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.quick-filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.report-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.chart-card h3 { margin: 0 0 14px; font-size: 14px; }
.chart-card canvas { max-height: 260px; }

.rank-list { display: flex; flex-direction: column; gap: 10px; }
.rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
}
.rank-item .pos {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rank-item .info { flex: 1; min-width: 0; }
.rank-item .nome { font-weight: 600; }
.rank-item .meta { font-size: 12px; color: var(--muted); }
.rank-item .valor { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 900px) {
  .report-grid { grid-template-columns: 1fr; }
}
