:root {
  --bg: #eef6ff;
  --surface: #ffffff;
  --surface-alt: #f4f8ff;
  --text: #1e3050;
  --muted: #6178a3;
  --primary: #1982ff;
  --primary-strong: #1462bf;
  --danger: #c94848;
  --border: #d6e5ff;
  --shadow: 0 10px 24px rgba(24, 76, 150, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #dff0ff 0%, #f5fbff 38%, var(--bg) 75%);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: linear-gradient(120deg, #1d5cb7, #2d8fff);
  color: #f1f6ff;
  box-shadow: var(--shadow);
}

.topbar h1 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logout {
  color: #f1f6ff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 7px 12px;
  border-radius: 10px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Campana de notificaciones ─────────────────────────────── */
.topbar-notif {
  position: relative;
}
.topbar-notif-btn {
  position: relative;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  color: #f1f6ff;
  cursor: pointer;
  padding: 6px 9px;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}
.topbar-notif-btn:hover {
  background: rgba(255,255,255,0.28);
}
.topbar-notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  border: 2px solid #1d5cb7;
}
.topbar-notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-width: 95vw;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 1000;
  overflow: hidden;
}
.topbar-notif-header {
  padding: 11px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #b84400;
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
}
.topbar-notif-list {
  max-height: 340px;
  overflow-y: auto;
}
.topbar-notif-item {
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.4;
}
.topbar-notif-item:last-child { border-bottom: none; }
.topbar-notif-item-name { font-weight: 600; color: var(--text); }
.topbar-notif-item-detail { color: var(--muted); margin-top: 1px; }
.topbar-notif-item-pct { font-weight: 700; color: #b00020; margin-left: 6px; }
.topbar-notif-empty {
  padding: 18px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.topbar-notif-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}
.topbar-notif-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px;
}

#price-alerts-global {
  padding: 12px 20px 0;
}
#price-alerts-global .panel {
  margin-top: 0;
  border-radius: 12px;
}

.section-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.section-link {
  border: 1px solid #c2d7fb;
  background: #f5f9ff;
  color: var(--primary-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.section-link.is-active {
  background: linear-gradient(120deg, #1a63c5, #2f92ff);
  border-color: #1a63c5;
  color: #fff;
}

.section-pane {
  display: none;
}

.section-pane.is-active {
  display: block;
}

.overview-layout {
  display: grid;
  gap: 14px;
}

.overview-side,
.overview-main {
  min-width: 0;
}

.overview-shopping-panel {
  margin-top: 0;
}

.overview-shopping-add {
  display: grid;
  grid-template-columns: 1fr 72px auto;
  gap: 6px 8px;
  align-items: center;
  padding: 10px 12px 8px;
  border-bottom: 1px solid #deebff;
  background: #f8fbff;
}

.overview-shopping-add-name,
.overview-shopping-add-qty {
  border: 1px solid #c3d8fb;
  border-radius: 10px;
  padding: 7px 9px;
  background: #ffffff;
  color: #214983;
  font-size: 0.86rem;
}

.overview-shopping-add-qty {
  text-align: center;
}

/* Segunda fila: proveedor + precio */
.overview-shopping-add-meta {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
}

.overview-shopping-add-field {
  flex: 1;
  border: 1px solid #c3d8fb;
  border-radius: 10px;
  padding: 5px 9px;
  background: #ffffff;
  color: #214983;
  font-size: 0.82rem;
}

.overview-shopping-add-field::placeholder {
  color: #8fa9cc;
}

.overview-shopping-add-price {
  flex: 0 0 90px;
  text-align: right;
}

.overview-shopping-add-status {
  min-height: 18px;
  padding: 0 12px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #4e6ea0;
  border-bottom: 1px solid #deebff;
  background: #f8fbff;
}

.overview-shopping-add-status.is-ok {
  color: #1e6a35;
}

.overview-shopping-add-status.is-error {
  color: #b11f2a;
}

.overview-shopping-panel .table-wrap {
  max-height: calc(100vh - 210px);
  overflow: auto;
}

.overview-shopping-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid #deebff;
  background: #f9fcff;
}

.overview-shopping-total-item {
  border: 1px solid #cfe0fd;
  border-radius: 10px;
  padding: 8px 10px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.overview-shopping-total-item span {
  font-size: 0.75rem;
  color: #5d79a7;
  font-weight: 700;
}

.overview-shopping-total-item strong {
  font-size: 1rem;
  color: #0f4a9f;
}

.overview-shopping-total-cart strong {
  color: #176637;
}

.overview-shopping-meta {
  padding: 8px 12px;
  border-bottom: 1px solid #deebff;
  background: #f8fbff;
  color: #3f6298;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-shopping-panel .stock-table th:nth-child(1),
.overview-shopping-panel .stock-table td:nth-child(1) {
  width: auto;
  white-space: normal;
}

.overview-shopping-panel .stock-table th:nth-child(2),
.overview-shopping-panel .stock-table td:nth-child(2),
.overview-shopping-panel .stock-table th:nth-child(3),
.overview-shopping-panel .stock-table td:nth-child(3) {
  white-space: nowrap;
  width: 1%;
  text-align: right;
}

.overview-shopping-panel .stock-table tbody tr:last-child td {
  border-bottom: none;
}

.shopping-item-auto td:nth-child(1),
.shopping-item-apk td:nth-child(1),
.shopping-item-app td:nth-child(1) {
  font-weight: 700;
}

.shopping-source-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: middle;
}

.shopping-name-main {
  vertical-align: middle;
}

.shopping-name-supplier-sub {
  display: block;
  font-size: 0.75rem;
  color: #6b84ab;
  font-weight: 400;
  margin-top: 2px;
}

.shopping-price-unit-sub {
  display: block;
  font-size: 0.72rem;
  color: #8a9ab5;
  font-weight: 400;
  margin-top: 1px;
  white-space: nowrap;
}

.shopping-source-dot-auto {
  background: #1a63c5;
}

.shopping-source-dot-apk {
  background: #c2410c;
}

.shopping-source-dot-app {
  background: #1e6a35;
}

.shopping-legend-part {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shopping-legend-listname {
  margin-left: auto;
  color: #315487;
  font-weight: 600;
}

.shopping-selectable {
  cursor: pointer;
}

.shopping-selectable td {
  transition: background-color 0.15s ease, color 0.15s ease;
}

.shopping-selectable:hover td {
  background-color: rgba(211, 229, 255, 0.35);
}

.shopping-item-selected td {
  background-color: rgba(37, 99, 235, 0.13);
}

.shopping-item-selected td:first-child {
  border-left: 3px solid #2563eb;
  padding-left: calc(var(--td-padding-x, 8px) - 3px);
}

.shopping-item-marked td {
  opacity: 0.65;
}

.shopping-item-marked td:nth-child(1),
.shopping-item-marked td:nth-child(3) {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.shopping-item-marked .shopping-qty-val {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.shopping-qty-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
}

.shopping-qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid #b8cfe8;
  border-radius: 4px;
  background: #edf4ff;
  color: #1a4b8c;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  opacity: 0.35;
  transition: background-color 0.12s ease, opacity 0.12s ease;
}

.shopping-qty-btn:hover {
  background: #d0e4ff;
  border-color: #7eb3f5;
  opacity: 1;
}

.shopping-qty-btn:active {
  background: #b8d4ff;
}

.shopping-item-marked .shopping-qty-btn {
  pointer-events: none;
}

.shopping-qty-val {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
}

.sub-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dde8fb;
}

.sub-link {
  border: 1px solid #c2d7fb;
  background: #f5f9ff;
  color: var(--primary-strong);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.sub-link.is-active {
  background: linear-gradient(120deg, #1a63c5, #2f92ff);
  border-color: #1a63c5;
  color: #fff;
}

.sub-pane {
  display: none;
}

.sub-pane.is-active {
  display: block;
}

.sub-pane[data-sub-pane="kds"].is-active,
.sub-pane[data-sub-pane="administracion"].is-active,
.sub-pane[data-sub-pane="comandero"].is-active {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.card p {
  margin: 8px 0 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary-strong);
}

.panel {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-compact-stock {
  max-width: 560px;
}

.section-pane[data-pane="overview"] .panel-compact-stock,
.section-pane[data-pane="low-stock"] .panel-compact-stock {
  margin-left: auto;
  margin-right: auto;
}

.panel-low-stock {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.panel-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.panel-head-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.panel-head h3 {
  margin: 0;
  font-size: 1rem;
}

.panel-badge {
  background: #e5efff;
  color: #104ea8;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #b9d2fa;
}

.panel-action {
  border: 1px solid #7eabea;
  background: #eef6ff;
  color: #11479a;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

.inline-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inline-controls label {
  font-size: 0.82rem;
  color: #46679d;
  font-weight: 600;
}

.inline-label {
  font-size: 0.82rem;
  color: #46679d;
  font-weight: 600;
}

.inline-controls select {
  border: 1px solid #c3d8fb;
  border-radius: 10px;
  padding: 5px 8px;
  background: #fff;
  color: #214983;
}

.period-toggle {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.period-btn {
  border: 1px solid #c2d7fb;
  background: #f5f9ff;
  color: #1a4b98;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.period-btn.is-active {
  border-color: #1a63c5;
  background: linear-gradient(120deg, #1a63c5, #2f92ff);
  color: #ffffff;
}

.cash-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #e2ebfb;
}

.cash-comparison-chart-wrap {
  position: relative;
  height: 260px;
  padding: 10px 14px 14px;
}

/* ── Facturas ───────────────────────────────────────────────────── */

.facturas-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2ebfb;
}

.facturas-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100vh - 210px);
  min-height: 400px;
}

.facturas-list-panel {
  border-right: 1px solid #e2ebfb;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.facturas-list {
  overflow-y: auto;
  flex: 1;
}

.facturas-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border-bottom: 1px solid #f0f4ff;
  cursor: pointer;
  transition: background 0.12s;
}

.facturas-item:hover { background: #f0f6ff; }

.facturas-item.is-active {
  background: #dbeafe;
  border-left: 3px solid #3b82f6;
  padding-left: 9px;
}

.facturas-item-provider {
  font-size: 0.72rem;
  font-weight: 600;
  color: #3b82f6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.facturas-item-name {
  font-size: 0.82rem;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.facturas-item-name::before { content: "  "; }
.facturas-item.analyzed .facturas-item-name::before { content: "✓ "; color: #16a34a; }

.facturas-item-meta {
  font-size: 0.75rem;
  color: #64748b;
}

.facturas-item-pending { color: #94a3b8; font-style: italic; }

.facturas-item-dup-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #b84400;
  background: #fff3e0;
  border: 1px solid #fbc97a;
  border-radius: 5px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
  white-space: nowrap;
}
.facturas-item.has-duplicate {
  border-left: 3px solid #f97316;
}

.ocultar-dup-btn {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
}
.ocultar-dup-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

.facturas-hidden-notice {
  font-size: 0.78rem;
  color: #6b7280;
  padding: 6px 12px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  margin: 0;
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  font-size: inherit;
  text-decoration: underline;
}
.link-btn:hover { opacity: 0.8; }

/* Modal batch IA */
.facturas-batch-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}
.facturas-batch-modal[hidden] { display: none; }
.facturas-batch-modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  text-align: center;
}
.facturas-batch-modal-msg {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: #1e293b;
}
.facturas-batch-modal-sub {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 0 20px;
}
.facturas-batch-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.facturas-batch-confirm-btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.facturas-batch-confirm-btn:hover {
  background: #1d4ed8;
}

.facturas-detail-panel {
  overflow-y: auto;
  padding: 16px;
}

.facturas-detail-body { display: flex; flex-direction: column; gap: 14px; }

.facturas-detail-card {
  background: #fff;
  border: 1px solid #e2ebfb;
  border-radius: 8px;
  padding: 14px;
}

.facturas-detail-card h4 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #1e3a6e;
  border-bottom: 1px solid #e2ebfb;
  padding-bottom: 6px;
}

.facturas-info-table { width: 100%; border-collapse: collapse; }
.facturas-info-table th {
  text-align: left;
  font-weight: 600;
  width: 200px;
  padding: 4px 8px 4px 0;
  color: #475569;
  font-size: 0.82rem;
  vertical-align: top;
}
.facturas-info-table td {
  padding: 4px 0;
  color: #1e293b;
  font-size: 0.85rem;
}

.facturas-products-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.facturas-products-table th {
  background: #f1f5f9;
  padding: 6px 8px;
  text-align: left;
  color: #475569;
  font-weight: 600;
  border-bottom: 1px solid #e2ebfb;
}
.facturas-products-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #f0f4ff;
  color: #1e293b;
}
.facturas-products-table tr:last-child td { border-bottom: none; }

.facturas-totals-card .facturas-info-table th { width: 180px; }
.facturas-total-row th,
.facturas-total-row td {
  font-size: 1rem;
  font-weight: 700;
  color: #0a2e70;
  padding-top: 10px;
  border-top: 1px solid #e2ebfb;
}

.facturas-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}

.facturas-pdf-card {
  background: #f8faff;
  border: 1px solid #e2ebfb;
  border-radius: 8px;
  overflow: hidden;
}

.facturas-pdf-card h4 {
  margin: 0;
  font-size: 0.9rem;
  color: #1e3a6e;
  padding: 12px 14px;
  border-bottom: 1px solid #e2ebfb;
  background: #fff;
}

.facturas-pdf-frame {
  display: block;
  width: 100%;
  height: 780px;
  border: none;
}

.facturas-placeholder {
  padding: 24px;
  color: #64748b;
  line-height: 1.6;
}

.facturas-analyze-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

/* ── Price comparison row colors ─────────────────────────────────────── */
.facturas-products-table tr.price-row-up-low  { background: #fffde7; }
.facturas-products-table tr.price-row-up-low  td { color: #7d5a00; }
.facturas-products-table tr.price-row-up-mid  { background: #fff3e0; }
.facturas-products-table tr.price-row-up-mid  td { color: #b84400; }
.facturas-products-table tr.price-row-up-high { background: #ffebee; }
.facturas-products-table tr.price-row-up-high td { color: #b00020; }
.facturas-products-table tr.price-row-equal   { background: #f0fff4; }
.facturas-products-table tr.price-row-equal   td { color: #1a6b3a; }

#price-alerts-table tr.price-row-up-low  { background: #fffde7; }
#price-alerts-table tr.price-row-up-low  td { color: #7d5a00; }
#price-alerts-table tr.price-row-up-mid  { background: #fff3e0; }
#price-alerts-table tr.price-row-up-mid  td { color: #b84400; }
#price-alerts-table tr.price-row-up-high { background: #ffebee; }
#price-alerts-table tr.price-row-up-high td { color: #b00020; }

/* ── Price alerts banner dentro del detalle de factura ──────────────── */
.facturas-price-alerts-card {
  border-color: #fed7aa;
  background: #fff7ed;
}
.facturas-price-alerts-card h4 { color: #b84400; }
.facturas-price-alerts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.facturas-price-alerts-head h4 { margin: 0; }

.facturas-price-alert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px solid #fde8cc;
  font-size: 0.83rem;
}
.facturas-price-alert-row:last-child { border-bottom: none; }
.price-alert-low  { color: #7d5a00; }
.price-alert-mid  { color: #b84400; }
.price-alert-high { color: #b00020; }
.price-alert-name { font-weight: 600; flex: 1 1 200px; }
.price-alert-nav-cell {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}
.price-alert-nav-cell:hover {
  color: var(--accent);
  text-decoration: underline;
}
.price-alert-values { white-space: nowrap; }
.price-alert-pct  { font-weight: 700; white-space: nowrap; }
.price-alert-when { opacity: 0.75; font-size: 0.78rem; }

.facturas-select {
  border: 1px solid #7eabea;
  background: #eef6ff;
  color: #1a3a6c;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

@media (max-width: 900px) {
  .facturas-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 260px 1fr;
    height: auto;
  }
  .facturas-list-panel { border-right: none; border-bottom: 1px solid #e2ebfb; }
}

.cash-pill {
  border: 1px solid #cfe0fd;
  border-radius: 12px;
  background: #f8fbff;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cash-pill span {
  font-size: 0.78rem;
  color: #5876a6;
  font-weight: 600;
}

.cash-pill strong {
  font-size: 1rem;
  color: #0f4a9f;
}

.cash-pill-warn {
  border-color: #fbc97a;
  background: #fff7ed;
}
.cash-pill-warn span { color: #b84400; }
.cash-pill-warn strong { color: #b84400; }

.cash-pill-very-low {
  background: #ffe8e8;
  border-color: #f4b1b1;
}

.cash-pill-low {
  background: #fff3e2;
  border-color: #f7d4a3;
}

.cash-pill-mid {
  background: #fff9dc;
  border-color: #f2e29a;
}

.cash-pill-high {
  background: #e9f8ea;
  border-color: #bfe9c4;
}

.cash-pill-best {
  background: #dff7e5;
  border-color: #8ad29b;
}

.cash-total-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.cash-total-very-low {
  color: #8a1f1f;
  background: #ffe6e6;
  border-color: #f3b2b2;
}

.cash-total-low {
  color: #8a3d00;
  background: #fff0d6;
  border-color: #f5b96e;
}

.cash-total-mid {
  color: #7a6200;
  background: #fffacc;
  border-color: #f0df5a;
}

.cash-total-high {
  color: #1d6a2d;
  background: #e8f8ea;
  border-color: #bde5c2;
}

.cash-total-best {
  color: #035c18;
  background: #c8fad4;
  border-color: #4de877;
}

.cash-tone-very-low { color: #8a1f1f; }
.cash-tone-low      { color: #8a3d00; }
.cash-tone-mid      { color: #7a6200; }
.cash-tone-high     { color: #1d6a2d; }
.cash-tone-best     { color: #00a832; }

.card-subtitle {
  display: block;
  font-size: 0.72rem;
  color: #8a95a3;
  margin-top: 2px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.panel-note-content {
  padding: 14px;
  color: #324f82;
}

.panel-note-content p {
  margin: 0 0 10px;
}

.panel-note-content ul {
  margin: 0;
  padding-left: 20px;
}

.inventory-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px 6px;
}

.inventory-category-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #c3d8fb;
  border-radius: 999px;
  background: #eef5ff;
  color: #194b95;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
}

.inventory-groups {
  padding: 12px 20px 28px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  justify-content: start;
}

.inventory-group {
  border: 1px solid #d7e5fd;
  border-radius: 14px;
  background: #fbfdff;
  overflow: visible;
  max-width: 100%;
}

.inventory-group .table-wrap {
  padding: 0 10px 10px;
  overflow-x: hidden;
}

.inventory-group-head {
  padding: 10px 12px;
  background: #f1f7ff;
  border-bottom: 1px solid #deebff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inventory-group-head h4 {
  margin: 0;
  color: #184a95;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.inventory-group-count {
  color: #4e6ea0;
  font-size: 0.78rem;
  font-weight: 700;
}

.inventory-group-table th:nth-child(2),
.inventory-group-table td:nth-child(2) {
  text-align: right;
}

.inventory-group-table {
  width: 100%;
  table-layout: fixed;
}

.inventory-group-table th {
  text-transform: none;
  letter-spacing: 0.01em;
}

.inventory-group-table th:nth-child(1),
.inventory-group-table td:nth-child(1) {
  width: auto;
  white-space: normal;
  padding-left: 12px;
  padding-right: 8px;
}

.inventory-group-table th:nth-child(2),
.inventory-group-table td:nth-child(2) {
  width: 76px;
  max-width: 76px;
  white-space: nowrap;
  padding-left: 8px;
  padding-right: 12px;
  font-variant-numeric: tabular-nums;
}

.inventory-group-table th:nth-child(3),
.inventory-group-table td:nth-child(3),
.inventory-group-table th:nth-child(4),
.inventory-group-table td:nth-child(4) {
  width: 60px;
  max-width: 60px;
  white-space: nowrap;
  text-align: right;
  padding-left: 8px;
  padding-right: 12px;
  font-variant-numeric: tabular-nums;
}

.inventory-group-table th,
.inventory-group-table td {
  padding-left: 8px;
  padding-right: 8px;
}

.inventory-group-table td:nth-child(1) {
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inventory-stock-cell {
  font-weight: 700;
  color: #0f4a9f;
}

.inventory-stock-low {
  color: #b11f2a;
}

.inventory-stock-ok {
  color: #1e6a35;
}

.inventory-stock-high {
  color: #00b341;
}

.inventory-empty {
  margin: 0;
  padding: 10px 12px;
  color: #5b74a0;
  font-weight: 600;
}

@media (min-width: 1080px) {
  .inventory-groups {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    column-gap: 20px;
    row-gap: 20px;
  }

  .inventory-group-cookies {
    grid-column: 1 / -1;
    justify-self: start;
    width: min(420px, 100%);
  }
}

@media (min-width: 1280px) {
  .section-pane[data-pane="inventory"] {
    width: calc(100vw - 32px);
    margin-left: 50%;
    transform: translateX(-50%);
  }

  .inventory-groups {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    column-gap: 18px;
    row-gap: 20px;
  }

  .inventory-group-cookies {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e8effd;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.pay-cash {
  color: #0f6b3a;
  background: #e5f7ee;
  border-color: #b8e8cb;
}

.pay-card {
  color: #0d4f97;
  background: #e6f1ff;
  border-color: #bbd8ff;
}

.pay-bizum {
  color: #7a4d00;
  background: #fff2db;
  border-color: #ffd99f;
}

.pay-other {
  color: #5b4c7a;
  background: #efe9ff;
  border-color: #d9cbff;
}

.ticket-link {
  border: 1px solid #bfd6fb;
  background: #eef5ff;
  color: #0f4a9f;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 9px;
  cursor: pointer;
}

.ticket-modal {
  position: fixed;
  inset: 0;
  background: rgba(17, 35, 68, 0.34);
  display: grid;
  place-items: center;
  z-index: 1000;
}

.ticket-modal[hidden] {
  display: none;
}

.ticket-modal-card {
  width: min(760px, calc(100vw - 24px));
  max-height: 80vh;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid #cfe0fd;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 54, 108, 0.25);
}

.ticket-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #e0ebff;
  background: #f2f7ff;
}

.ticket-modal-head h3 {
  margin: 0;
}

.ticket-detail-meta {
  padding: 10px 14px;
  border-bottom: 1px solid #e8effd;
  color: #355a92;
  font-size: 0.86rem;
  font-weight: 700;
  background: #f8fbff;
}

.stock-table {
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

.stock-table th:nth-child(1),
.stock-table td:nth-child(1) {
  white-space: normal;
  word-break: break-word;
  padding-right: 10px;
}

.stock-table th:nth-child(n+2),
.stock-table td:nth-child(n+2) {
  width: 1%;
  white-space: nowrap;
  text-align: right;
  padding-left: 6px;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.auth-card h1 {
  margin: 0;
  font-size: 1.4rem;
}

.auth-card p {
  margin: 8px 0 14px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 8px;
}

.auth-form label {
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-form input {
  border: 1px solid #c8daf7;
  border-radius: 10px;
  padding: 10px;
}

.auth-form button {
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 11px;
  cursor: pointer;
}

.error {
  border: 1px solid #f0b6b6;
  background: #ffe8e8;
  color: var(--danger);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

.pedidos-iframe {
  display: block;
  width: 100%;
  height: calc(100vh - 160px);
  min-height: 500px;
  border: none;
  border-radius: 12px;
}

@media (min-width: 920px) {
  .overview-layout {
    grid-template-columns: clamp(370px, 32vw, 520px) minmax(0, 1fr);
    align-items: start;
  }

  .overview-side {
    position: sticky;
    top: 74px;
    align-self: start;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cash-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .panel-compact-stock {
    max-width: 560px;
  }
}

@media (min-width: 1240px) {
  .section-pane[data-pane="overview"] {
    width: min(1680px, calc(100vw - 24px));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

.overview-shopping-expand-btn {
  display: none;
}

@media (max-width: 919px) {
  .overview-shopping-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    padding: 4px 10px;
    background: none;
    border: 1px solid #c0cfe8;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #2d6cc0;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .overview-shopping-expand-btn:active {
    background: #e4edf9;
  }

  .overview-side.is-expanded {
    position: fixed;
    inset: 0;
    z-index: 200;
    overflow-y: auto;
    background: var(--bg, #f5f9ff);
    padding: 12px;
  }

  .overview-side.is-expanded .overview-shopping-expand-btn {
    border-color: #e57373;
    color: #c0392b;
  }

  .overview-side {
    order: 2;
  }

  .overview-main {
    order: 1;
  }

  .overview-shopping-totals {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .overview-shopping-panel .stock-table th,
  .overview-shopping-panel .stock-table td {
    font-size: 0.86rem;
    padding: 8px 8px;
  }

  .overview-shopping-panel .stock-table th:nth-child(1),
  .overview-shopping-panel .stock-table td:nth-child(1) {
    width: auto;
    min-width: 0;
    padding-right: 6px;
  }

  .overview-shopping-panel .stock-table th:nth-child(2),
  .overview-shopping-panel .stock-table td:nth-child(2) {
    font-size: 0.84rem;
    padding-left: 4px;
    padding-right: 4px;
    width: 1%;
    white-space: nowrap;
  }

  .overview-shopping-panel .stock-table th:nth-child(3),
  .overview-shopping-panel .stock-table td:nth-child(3) {
    font-size: 0.84rem;
    padding-left: 4px;
    padding-right: 6px;
    width: 60px;
    white-space: nowrap;
  }

  .shopping-source-dot {
    width: 9px;
    height: 9px;
    margin-right: 6px;
    margin-top: 2px;
    vertical-align: top;
  }

  .shopping-name-main {
    display: inline;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .shopping-name-supplier-mobile {
    display: block;
    margin-top: 3px;
    margin-left: 15px;
    font-size: 0.76rem;
    color: #5f759a;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .overview-shopping-add {
    grid-template-columns: 1fr 58px auto;
    gap: 5px 6px;
    padding: 8px 10px 7px;
  }

  .overview-shopping-add-name,
  .overview-shopping-add-qty {
    font-size: 0.82rem;
    padding: 7px 8px;
  }

  .overview-shopping-add-price {
    flex: 0 0 74px;
  }

  .overview-shopping-meta {
    gap: 8px;
    padding: 7px 10px;
    font-size: 0.75rem;
  }

  .shopping-legend-listname {
    width: 100%;
    margin-left: 0;
    margin-top: 1px;
  }
}

/* ── Invoice PDF modal ──────────────────────────────────────────────────────── */
.invoice-pdf-modal-card {
  width: min(900px, calc(100vw - 24px));
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.invoice-pdf-modal-title {
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 100px);
}

.invoice-pdf-modal-frame {
  flex: 1;
  border: none;
  min-height: 600px;
}

/* ── Facturas folder bar ────────────────────────────────────────────────────── */
.facturas-folder-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #f8faff;
  border-bottom: 1px solid #e2ebfb;
  border-radius: 8px 8px 0 0;
}

.facturas-folder-label {
  font-size: 0.82rem;
  color: #475569;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.facturas-folder-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #f0f6ff;
  border-bottom: 1px solid #e2ebfb;
}

.facturas-folder-input {
  flex: 1;
  border: 1px solid #7eabea;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  min-width: 0;
}

.facturas-folder-status {
  font-size: 0.82rem;
  min-width: 60px;
}

/* Cookies inventory — fila tachada */
tr.cookies-item-marked td {
  text-decoration: line-through;
  color: var(--muted);
  opacity: 0.5;
}
tr.cookies-item-marked {
  cursor: pointer;
}
.inventory-group-table tr {
  cursor: pointer;
}

/* Cookies history — 6 columnas: override fixed layout para que no estire Rango */
#cookies-history-body .inventory-group-table {
  table-layout: auto;
}
#cookies-history-body .inventory-group-table th,
#cookies-history-body .inventory-group-table td {
  width: 1%;
  white-space: nowrap;
}
#cookies-history-body .inventory-group-table th:nth-child(1),
#cookies-history-body .inventory-group-table td:nth-child(1) {
  width: 1%;
  white-space: nowrap;
  padding-left: 24px;
  padding-right: 12px;
}

/* Cookies history — semana pagada */
tr.cookies-week-paid td {
  text-decoration: line-through;
  color: var(--muted);
  opacity: 0.6;
}
tr.cookies-week-paid td:last-child {
  text-decoration: none;
  opacity: 1;
}

/* Cookies — resumen semana actual */
.cookies-current-week-card {
  background: #f0f6ff;
  border: 1.5px solid #bfd4ff;
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 16px;
}
.cookies-cw-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cookies-cw-range {
  font-weight: 600;
  color: var(--text);
}
.cookies-cw-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cookies-cw-stat {
  display: flex;
  flex-direction: column;
  min-width: 90px;
}
.cookies-cw-stat-sep {
  min-width: unset;
  color: var(--border);
  font-size: 1.4rem;
  align-self: center;
  margin: 0 4px;
}
.cookies-cw-stat-label {
  font-size: 0.75rem;
  color: var(--muted);
}
.cookies-cw-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.cookies-cw-apagar {
  color: #1462bf;
}

/* ── Proveedores ─────────────────────────────────────────────────────────── */
.bookmarks-status-bar {
  padding: 6px 16px;
  font-size: 0.8rem;
  min-height: 1.4em;
  color: var(--text-muted);
}
.bookmarks-input {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  background: var(--surface);
  color: var(--text);
  outline: none;
}
.bookmarks-input:focus {
  border-color: var(--accent);
}
#bookmarks-table {
  table-layout: fixed;
  width: 100%;
}
#bookmarks-table td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#bookmarks-table td:nth-child(1) a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#bookmarks-table td:nth-child(5) {
  text-align: center;
  white-space: nowrap;
}
.bookmark-pass-dots {
  font-family: monospace;
  color: var(--text-muted);
  letter-spacing: 2px;
}
.bookmark-pass-revealed {
  font-family: monospace;
  font-size: 0.9rem;
  user-select: all;
}
.bookmark-reveal-box {
  min-width: 320px;
  max-width: 420px;
  text-align: center;
}
.bookmark-reveal-input {
  width: 100%;
  box-sizing: border-box;
  margin: 4px 0 8px;
  text-align: left;
}
.bookmark-reveal-error {
  color: #B11F2A;
  font-size: 0.8rem;
  min-height: 1.2em;
  margin-bottom: 6px;
}
.bookmark-edit-box {
  min-width: 380px;
  max-width: 520px;
  text-align: left;
}
/* Editor de listas hoja de trabajo */
.ht-editor-box {
  width: 620px;
  max-width: 96vw;
  max-height: 82vh;
  overflow-y: auto;
  text-align: left;
  padding: 24px 28px;
}
.ht-editor-sections { display: flex; flex-direction: column; gap: 14px; margin: 14px 0; }
.ht-editor-sec { border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; }
.ht-editor-sec-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.ht-editor-sec-title { border: none; border-bottom: 1px solid transparent; background: transparent; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .05em; color: #1d3557; font-family: inherit; padding: 0 2px; min-width: 50px; width: auto; }
.ht-editor-sec-title:hover { border-bottom-color: #cbd5e1; }
.ht-editor-sec-title:focus { outline: none; border-bottom-color: #4c8cf5; }
.ht-editor-sec-count { font-size: 0.75rem; color: #94a3b8; font-weight: 400; }
.ht-editor-list { display: flex; flex-direction: column; gap: 3px; margin-bottom: 8px; }
.ht-editor-item { display: flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 5px; background: #f8fafc; }
.ht-editor-item-name { font-size: 0.85rem; color: #334155; }
.ht-editor-item-input { flex: 1; border: 1px solid transparent; background: transparent; padding: 2px 5px; font-size: 0.85rem; color: #334155; border-radius: 4px; min-width: 0; font-family: inherit; }
.ht-editor-item-input:hover { border-color: #cbd5e1; background: #fff; }
.ht-editor-item-input:focus { outline: none; border-color: #4c8cf5; background: #fff; }
.ht-editor-detail-input { width: 110px; border: 1px solid transparent; background: transparent; padding: 2px 5px; font-size: 0.78rem; color: #94a3b8; font-style: italic; border-radius: 4px; font-family: inherit; }
.ht-editor-detail-input:hover { border-color: #cbd5e1; background: #fff; }
.ht-editor-detail-input:focus { outline: none; border-color: #4c8cf5; background: #fff; font-style: normal; color: #334155; }
.ht-editor-detail-input::placeholder { color: #d1d5db; }
.ht-editor-del-btn { background: none; border: none; color: #dc2626; cursor: pointer; font-size: 1rem; padding: 1px 7px; border-radius: 4px; line-height: 1; }
.ht-editor-del-btn:hover { background: #fee2e2; }
.ht-editor-add-row { display: flex; gap: 7px; }
.ht-editor-add-input { flex: 1; border: 1px solid #cbd5e1; border-radius: 6px; padding: 5px 9px; font-size: 0.85rem; }
.ht-editor-add-input:focus { outline: 2px solid #4c8cf5; border-color: transparent; }
.ht-editor-add-btn { background: #2563eb; color: #fff; border: none; border-radius: 6px; padding: 5px 13px; cursor: pointer; font-size: 0.85rem; white-space: nowrap; }
.ht-editor-add-btn:hover { background: #1d4ed8; }
.bookmark-edit-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.bookmark-edit-fields label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1px;
}
.bookmark-edit-fields .bookmarks-input {
  width: 100%;
  box-sizing: border-box;
}

/* ── Grid ventas por artículo ───────────────────────────────────── */
.cash-sales-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}
.cash-sales-grid .panel {
  margin-top: 0;
}
@media (max-width: 900px) {
  .cash-sales-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cash-sales-grid .panel:first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .cash-sales-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Buscador ventas por artículo ───────────────────────────────── */
.panel-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.cash-sales-search {
  flex: 1 1 160px;
  min-width: 120px;
  max-width: 260px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
}
.cash-sales-search:focus {
  border-color: var(--accent);
  background: var(--surface);
}

/* ── Tabla artículos: ancho automático para eliminar espacio vacío */
#cash-sales-by-product-panel .table-wrap {
  padding: 0 100px;
}

/* ── Columnas ordenables ───────────────────────────────────────── */
.sortable-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.sortable-th:hover {
  background: rgba(0, 0, 0, 0.04);
}
.sortable-th.sort-active {
  color: var(--accent);
}
.sort-arrow {
  font-size: 0.7em;
  opacity: 0.7;
  margin-left: 2px;
}
