/* Diseño B (D-015 / D-016, OT-049) — capa común de estilos de todo el sistema.
   Se carga DESPUÉS de los demás CSS en cada página. Solo presentación: ninguna regla de negocio.
   Reglas D-015: fondo claro #f5f5f4, tarjetas blancas con borde fino y esquinas de 16 px, amarillo #ffc400 solo para la
   acción principal, Jost, toques >= 44 px, existencia en palabras, confirmación verde, aviso ámbar, chip de conexión. */

:root {
  color-scheme: light;
  --bg: #f5f5f4;
  --panel: #ffffff;
  --panel-border: #e5e5e5;
  --text: #111111;
  --muted: #5c5c5c;
  --accent: #ffc400;
  --accent-strong: #ffc400;
  --danger: #b42318;
  --success: #14532d;
  --shadow: none;
  --b-line-strong: #c9c9c9;
  --b-ok-bg: #e8f5ec;
  --b-ok-text: #14532d;
  --b-ok-dot: #15803d;
  --b-warn-bg: #fff6d6;
  --b-warn-border: #f0d36b;
  --b-warn-text: #7a5c00;
  --b-err-bg: #fdecea;
  --b-err-border: #f1b5ae;
  --b-radius: 16px;
  font-family: 'Jost', Futura, system-ui, sans-serif;
}

html { font-size: 17px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', Futura, system-ui, sans-serif;
  font-weight: 400;
}
h1, h2, h3 { font-weight: 500; letter-spacing: 0; }
h1 { font-weight: 400; }
a { color: #111111; text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--muted); }
.error { color: var(--danger); }
.success { color: var(--b-ok-text); }

/* ---- tarjetas, paneles ---- */
.auth-card, .panel, .card, .cards > *, .pos-pane, .pos-cash-panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--b-radius);
  box-shadow: none;
  color: var(--text);
}

/* ---- campos ---- */
input, select, textarea {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--b-line-strong);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
}
input::placeholder, textarea::placeholder { color: #8a8a8a; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid #111111;
  outline-offset: 2px;
}
label { font-weight: 500; }

/* ---- botones: UNA acción principal amarilla; el resto blanco con borde ---- */
.btn {
  min-height: 48px;
  border-radius: 999px;
  padding: 0 1.4rem;
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  background: #ffffff;
  color: #111111;
  border: 1px solid var(--b-line-strong);
}
.btn.primary, .btn-primary-approve {
  background: #ffc400;
  color: #0b0b0b;
  border: 0;
  font-weight: 600;
}
.btn.primary:hover, .btn-primary-approve:hover { background: #f2b900; }
.btn.ghost { background: #ffffff; color: #111111; border: 1px solid var(--b-line-strong); }
.btn:disabled { opacity: 1; background: #ececea; color: #8a8a8a; border: 1px solid #e0e0de; cursor: not-allowed; }
.btn.primary:disabled { background: #f1e3a8; color: #6b6b6b; border: 0; }
.btn-sm { min-height: 44px; }
.pos-charge { min-height: 64px; font-size: 1.15rem; width: 100%; }

/* ---- barra lateral y estructura ---- */
.layout { background: var(--bg); }
.sidebar {
  background: #ffffff;
  border-right: 1px solid var(--panel-border);
  color: var(--text);
}
.brand-block { border-bottom: 1px solid var(--panel-border); }
.brand-logo { filter: invert(1) hue-rotate(180deg); }
.nav a.nav-link, .nav span.nav-link { color: #111111; border-radius: 12px; min-height: 44px; font-weight: 400; }
.nav a.nav-link:hover { background: #f0f0ee; color: #111111; }
.nav a.nav-link.active { background: #fff6d6; color: #111111; border: 1px solid #f0d36b; font-weight: 500; }
.nav a.nav-link.active .nav-icon, .nav a.nav-link:hover .nav-icon, .nav-icon { color: #111111; }
.nav-group__label, .nav-section-label { color: var(--muted); letter-spacing: 0.12em; }
.nav span.disabled { color: #8a8a8a; }
.sidebar-logout { color: #111111; background: #ffffff; border: 1px solid var(--b-line-strong); }
.content, .pos-main { background: var(--bg); }
.page-header h1 { font-size: 2rem; font-weight: 400; }

/* ---- tablas ---- */
table { color: var(--text); }
th { color: var(--muted); font-weight: 500; background: #fafaf9; }
th, td { border-color: var(--panel-border) !important; }
tbody tr:hover { background: #fafaf9; }

/* ---- bloques de estado ---- */
.integrity-warning, .pos-feedback--error, .error-box, .alert-error {
  background: var(--b-err-bg);
  border: 1px solid var(--b-err-border);
  color: var(--danger);
  border-radius: 12px;
}
.pos-feedback { border-radius: 12px; border: 1px solid var(--panel-border); background: #ffffff; color: var(--text); }
.pos-feedback--success, .pos-sale-complete {
  background: var(--b-ok-bg);
  border: 1px solid #b7dcc2;
  color: var(--b-ok-text);
  border-radius: var(--b-radius);
}
.pos-feedback--info { background: #ffffff; color: var(--text); }
.pos-price-note, .pos-hint-warning, .pos-feedback--warning {
  background: var(--b-warn-bg);
  border: 1px solid var(--b-warn-border);
  color: var(--b-warn-text);
  border-radius: 12px;
}
.pos-sale-complete strong { color: #14532d; font-size: 1.4rem; font-weight: 500; }

/* ---- chip de conexión (regla 7, D-013) ---- */
.conn-chip {
  position: fixed; top: 14px; right: 18px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 15px; font-weight: 500; font-family: inherit;
  background: var(--b-ok-bg); color: var(--b-ok-text);
  border: 1px solid #b7dcc2;
}
.conn-chip::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--b-ok-dot); }
.conn-chip[data-state="offline"] { background: var(--b-warn-bg); color: var(--b-warn-text); border-color: var(--b-warn-border); }
.conn-chip[data-state="offline"]::before { background: #b45309; }
@media (max-width: 760px) { .conn-chip { top: 8px; right: 8px; font-size: 13px; padding: 6px 12px; } }

/* ---- POS: Vender / Cobrar / Listo ---- */
.pos-pane__head h2, .pos-main h1 { font-weight: 400; }
.pos-product-card {
  background: #ffffff;
  border: 1px solid var(--panel-border);
  border-radius: var(--b-radius);
  color: var(--text);
  overflow: hidden;
}
.pos-product-card__media { background: #ececea; }
.pos-product-card__noimage { background: #ececea; color: #8a8a8a; }
.pos-product-card__noimage span { color: #5c5c5c; }
.pos-product-card__code { color: #5c5c5c; font-weight: 500; }
.pos-product-card__title strong { color: #111111; font-size: 1.15rem; font-weight: 600; }
.pos-product-card__name { color: #111111; font-size: 1.05rem; font-weight: 500; }
.pos-chip { background: #f0f0ee; border: 1px solid #e0e0de; color: #3f3f3f; border-radius: 999px; }
.pos-local-stock { font-size: .95rem; font-weight: 500; }
.pos-local-stock--ok { color: #14532d; }
.pos-local-stock--ok::before { content: "● "; color: #15803d; }
.pos-local-stock--none { color: #6b6b6b; }
.pos-availability { background: #fafaf9; border: 1px solid var(--panel-border); }
.pos-stock-chip { background: #ffffff; color: #111111; border-color: #d4d4d4; }
.pos-stock-line__size { color: #111111; }
.pos-price-note { font-size: .9rem; padding: .5rem .7rem; }
.pos-product-card[data-local-stock="0"] { background: #fafaf9; }
.pos-product-card[data-local-stock="0"] .pos-product-card__name, .pos-product-card[data-local-stock="0"] .pos-product-card__title strong { color: #6b6b6b; }
.pos-product-card__actions select { min-height: 48px; }
.pos-product-card__actions .btn { min-height: 48px; }
.pos-cart-item { background: #ffffff; border: 1px solid var(--panel-border); border-radius: 12px; }
.pos-cart-item__code { color: #111111; font-weight: 600; }
.pos-cart-empty, .pos-no-results, .pos-loading { color: var(--muted); }
.pos-mode-btn { min-height: 48px; border-radius: 999px; background: #ffffff; border: 1px solid var(--b-line-strong); color: #111111; }
.pos-mode-btn.is-active { background: #111111; color: #ffffff; border-color: #111111; }
.pos-scan-hint { color: var(--muted); }
#saleTotal, .pos-total { font-size: 2.75rem; font-weight: 500; }
.pos-hint { font-size: .95rem; color: var(--muted); }
.pos-exchange-strip { background: #ffffff; border: 1px solid var(--panel-border); }
.pos-exchange-strip__item { border-color: var(--b-line-strong); }
.pos-exchange-strip__item.is-set { border-color: #15803d; background: var(--b-ok-bg); }
.pos-exchange-slot { background: #ffffff; border: 1px solid var(--panel-border); border-radius: var(--b-radius); }
.pos-exchange-result ul { color: var(--b-ok-text); }
dialog, .pos-config-dialog { background: #ffffff; color: #111111; border: 1px solid var(--panel-border); border-radius: var(--b-radius); }
dialog::backdrop { background: rgba(17, 17, 17, 0.45); }

/* ---- estados de color usados en reportes, caja y transferencias ---- */
.badge, .status-pill, .pill, .chip { border-radius: 999px; }
details > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }

/* ---- pantallas de acceso y cambio de clave ---- */
.auth-page, .redirect-page { background: var(--bg); }
.auth-card { padding: 2.25rem; }
.brand .eyebrow, .brand-block .eyebrow { color: var(--muted); }

/* ---- toques y lectura en tablet ---- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .layout > * { min-width: 0; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--panel-border); }
  .content, .pos-main { padding: 1.25rem; }
}
button, [role="button"], summary, .nav a { min-height: 44px; }

/* ===== Superficies que traían fondo oscuro propio (se llevan al diseño claro) ===== */
.module-card, .audit-item, .thumb, .help-nav-link, .panel.nested, .publish-row, .queue-item, .image-slot-card, .mna-panel,
.image-placeholder, .inv-file-drop, .inv-result-card, .inv-details-item, .pedido-card, .pedido-header-panel, .pedido-line,
.pedido-history-item, .pedido-line-image, .order-desk-item, .order-detail-meta > div, .order-lines-table,
.pos-exchange-slot, .pos-filter-panel, .pos-paper, .pos-cart-item__image, .pos-stock-row, .taxonomy-fieldset {
  background: #ffffff;
  color: var(--text);
  border-color: var(--panel-border);
}
.pos-filter-panel, .pos-paper { border-radius: 12px; }
.pos-filter-panel summary, .pos-paper summary { color: #111111; font-weight: 500; }
.image-preview img { background: #ececea; }
.config-tabs .btn.is-active { background: #111111; color: #ffffff; border-color: #111111; }
.preset-card.is-selected, .print-mode-card.is-selected { background: #fff6d6; border-color: #f0d36b; color: #111111; }
.editable-note { color: #7a5c00; }
.label-preview-info { color: #1e3a5f; background: #eef4fa; }
.settings-grid input:not(:disabled):focus { background: #ffffff; }
.help-nav-link { color: #111111; }

/* ===== Etiquetas de estado (chips) y avisos: texto oscuro sobre fondo suave ===== */
.editorial-chip--activo, .order-chip--open.is-ok { background: #e8f5ec; color: #14532d; border-color: #b7dcc2; }
.editorial-chip--agotado { background: #fff6d6; color: #7a5c00; border-color: #f0d36b; }
.editorial-chip--oculto, .editorial-chip--borrador, .editorial-chip--eliminado, .editorial-chip--default, .order-chip--closed { background: #f0f0ee; color: #3f3f3f; border-color: #dcdcda; }
.editorial-chip--pendiente, .publish-status-badge, .order-chip--open { background: #eaf2fb; color: #1e3a5f; border-color: #c3d6ea; }
.editorial-chip--devuelto { background: #fdecea; color: #b42318; border-color: #f1b5ae; }
.env-badge-staging { background: #fff6d6; color: #7a5c00; border: 1px solid #f0d36b; }
.staging-banner { background: #fff6d6; color: #7a5c00; border: 1px solid #f0d36b; }
.slot-exception-notice__message { color: #7a5c00; }
.mna-status--review_required { background: #fff6d6; color: #7a5c00; }
.mna-status--rejected, .mna-status--failed { background: #fdecea; color: #b42318; }
.image-quality--warn { color: #7a5c00; }
.image-quality--error, .inv-op-step--error .inv-op-step__mark { color: #b42318; }
.sync-monitor--advertencia, .sync-age--warning { background: #fff6d6; color: #7a5c00; }
.sync-monitor--critico, .sync-age--critical { background: #fdecea; color: #b42318; }
.sync-monitor--sin_historial { background: #f0f0ee; color: #3f3f3f; }
.inv-protection-banner { background: #fff6d6; color: #7a5c00; border: 1px solid #f0d36b; }
.pos-feedback--success { background: #e8f5ec; color: #14532d; border: 1px solid #b7dcc2; }
.pos-feedback--error { background: #fdecea; color: #b42318; border: 1px solid #f1b5ae; }
.pos-cash__error { color: #b42318; }
.pos-sale-complete strong { color: #14532d; }
.pos-stock-row--local .pos-stock-row__state { color: #14532d; }
.pos-stock-row--remote .pos-stock-row__state { color: #7a5c00; }
.sales-paper-tag { color: #7a5c00; }
.sales-voided { background: #fdecea; color: #b42318; }
.sales-voided-tag { color: #b42318; }
.report-table .diff-ok { color: #14532d; }
.report-table .diff-off { color: #b42318; background: #fdecea; }
.spc-page-header__line { color: #5c5c5c; }

/* ===== Tarjetas de producto del POS: rejilla más ancha (la maqueta usa tarjetas de 220 px) ===== */
.pos-product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.pos-product-card { grid-template-rows: 150px auto; }
.pos-product-card__title { align-items: baseline; flex-wrap: wrap; gap: .25rem .5rem; }

/* ===== Inicio: tarjetas grandes de acción (maqueta Main) ===== */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.module-card { display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 22px 24px; border-radius: var(--b-radius); border: 1px solid var(--panel-border); text-decoration: none; color: #111111; }
.module-card strong { font-size: 1.5rem; font-weight: 500; }
.module-card__hint { font-size: 1rem; color: var(--muted); }
.module-card .badge { align-self: flex-start; margin-top: auto; font-size: .8rem; color: #14532d; background: #e8f5ec; padding: 2px 10px; border-radius: 999px; }
.module-card.upcoming { background: #fafaf9; color: #6b6b6b; }
a.module-card:hover { border-color: #111111; }
#welcomeTitle { font-size: 2.4rem; font-weight: 300; }
.cards > * { padding: 16px 20px; }
.cards strong { font-size: 2.6rem; font-weight: 400; }

/* enlaces con aspecto de botón o de menú no se subrayan */
.nav a, .nav a.nav-link, a.btn, .module-card, .sidebar a, .brand-block a { text-decoration: none; }
/* campos de búsqueda en una línea con su botón: el botón no se estira */
.btn.primary { width: auto; }
form .btn.primary[type="submit"] { align-self: end; }
.btn.primary.pos-charge { width: 100%; }
.pos-done-list { list-style: none; margin: .6rem 0 .8rem; padding: 0; display: grid; gap: .3rem; font-size: 1.05rem; color: #14532d; }

/* ===== OT-051: chips de categoría, tallas en botones, ayuda de vuelto, Inicio con resumen ===== */
.pos-chips-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.pos-chips-row:empty { display: none; }
.pos-category-chip { min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid #d4d4d4; background: #ffffff; color: #111111; font-family: inherit; font-size: 1rem; cursor: pointer; }
.pos-category-chip[aria-pressed="true"] { background: #111111; color: #ffffff; border-color: #111111; font-weight: 500; }

.pos-size-picker { margin: .5rem 0 .25rem; }
.pos-size-picker__title { font-size: .95rem; font-weight: 500; margin-bottom: .4rem; }
.pos-size-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.pos-size-btn { min-height: 60px; border: 1px solid #c9c9c9; border-radius: 12px; background: #ffffff; color: #111111; font-family: inherit; font-size: 1.15rem; font-weight: 500; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 4px; }
.pos-size-btn small { font-size: .72rem; font-weight: 400; color: #5c5c5c; line-height: 1.1; text-align: center; }
.pos-size-btn[aria-pressed="true"] { border: 2px solid #111111; background: #ffc400; color: #0b0b0b; font-weight: 600; }
.pos-size-btn[aria-pressed="true"] small { color: #0b0b0b; }
.pos-size-btn--none { background: #fafaf9; color: #8a8a8a; border-color: #e0e0de; }
.pos-size-btn--none small { color: #8a8a8a; }
.pos-size-btn:disabled { cursor: not-allowed; }
.pos-product-card__actions select[hidden] { display: none; }

.pos-tender { grid-column: 1 / -1; display: grid; gap: .6rem; padding: 14px 16px; border: 1px solid var(--panel-border); border-radius: 12px; background: #fafaf9; }
.pos-tender__title { font-weight: 500; }
.pos-tender__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.pos-tender__btn[aria-pressed="true"] { background: #111111; color: #ffffff; border-color: #111111; }
.pos-tender__change { font-size: 1.35rem; font-weight: 500; color: #14532d; margin: 0; }
.pos-tender__change:empty { display: none; }
.pos-tender__note { margin: 0; font-size: .85rem; }

.home-today { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 20px 24px; margin-bottom: 20px; border-radius: var(--b-radius); border: 1px solid var(--panel-border); background: #ffffff; }
.home-today__state { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #e8f5ec; color: #14532d; font-weight: 500; }
.home-today__state[data-open="false"] { background: #fff6d6; color: #7a5c00; }
.home-today__figure { display: grid; gap: 2px; }
.home-today__figure strong { font-size: 2.6rem; font-weight: 400; line-height: 1; }
.home-today__figure span { color: var(--muted); }
.home-today__cta { margin-left: auto; }

/* ===== OT-054: pantalla única de Cuentas ===== */
.accounts-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 14px; align-items: end; margin-bottom: 8px; }
@media (max-width: 900px) { .accounts-filters { grid-template-columns: 1fr 1fr; } }
.accounts-table td.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.accounts-table td.actions .btn { min-height: 44px; padding: 0 16px; }
.account-off td { color: #6b6b6b; }
.account-state { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: .9rem; font-weight: 500; }
.account-state.is-active { background: #e8f5ec; color: #14532d; }
.account-state.is-off { background: #f0f0ee; color: #5c5c5c; }
.account-warn { color: #7a5c00; background: #fff6d6; padding: 2px 8px; border-radius: 8px; }
#createUserDialog, #editUserDialog, #passwordDialog, #confirmDialog { width: min(94vw, 640px); max-height: 92vh; overflow: auto; }
.account-form { min-width: 0; }
.account-hint { margin: 0; font-size: .9rem; }
.role-picker, .loc-picker { border: 1px solid var(--panel-border); border-radius: 12px; padding: 10px 14px 14px; display: grid; gap: 8px; margin: 0; }
.role-picker legend, .loc-picker legend { font-weight: 500; padding: 0 6px; }
.role-option, .loc-option { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--panel-border); border-radius: 12px; cursor: pointer; min-height: 48px; }
.role-option:has(input:checked), .loc-option:has(input:checked) { border-color: #111111; background: #fff6d6; }
.role-option input, .loc-option input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; accent-color: #111111; flex: 0 0 auto; }
.role-option span { display: grid; gap: 2px; }
.role-option small { color: var(--muted); font-size: .88rem; line-height: 1.25; }
.dialog-actions--wrap { flex-wrap: wrap; justify-content: flex-end; }
.password-sheet { display: none; }
@media print {
  body.printing-password > *:not(#passwordSheet), body > *:not(#passwordSheet) { display: none !important; }
  #passwordSheet:not([hidden]) { display: block !important; padding: 24px; font-family: 'Jost', sans-serif; color: #000; }
  #passwordSheet .password-sheet__key { font-size: 28px; font-weight: 600; letter-spacing: .08em; border: 2px dashed #000; padding: 12px 16px; display: inline-block; }
}

/* ===== OT-065: cuadros propios (confirmar, pedir un motivo o una nota) ===== */
.simple-dialog { width: min(94vw, 540px); max-height: 92vh; overflow: auto; }
.simple-dialog__facts { display: grid; gap: 6px; margin: 0; }
.simple-dialog__fact { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--panel-border); padding-bottom: 4px; }
.simple-dialog__fact dt { color: var(--muted); }
.simple-dialog__fact dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.simple-dialog__field { display: grid; gap: 6px; }
.simple-dialog textarea { width: 100%; min-height: 88px; }
.simple-dialog [hidden] { display: none; }
/* OT-065: toques de 44 px en Compras (el enlace «Cambiar diseño» y los botones del historial se quedaban en 26 y 42 px) */
#historyFilterBtn, #historyClearBtn { min-height: 44px; }
.form-actions a.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }

/* OT-066: aviso de versión nueva de la caja y barra de estado sin internet */
.sw-update-notice { position: fixed; left: 16px; bottom: 56px; z-index: 1000; display: flex; gap: 12px; align-items: center; max-width: min(520px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 12px; background: var(--b-warn-bg, #fff4e0); color: var(--b-warn-text, #5a3b00); border: 1px solid var(--b-warn-border, #e0b86b); font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.sw-update-notice[hidden] { display: none; }
.offline-bar { margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: var(--b-warn-bg, #fff4e0); color: var(--b-warn-text, #5a3b00); border: 1px solid var(--b-warn-border, #e0b86b); font-weight: 600; }
.offline-bar[hidden] { display: none; }
.offline-bar__detail { display: block; margin-top: 4px; font-weight: 400; font-size: 13px; }
.offline-bar--ok { background: var(--b-ok-bg, #e7f6ec); color: var(--b-ok-text, #1d5c34); border-color: var(--b-ok-border, #9fd3b2); }
.pos-copy-info { margin: 0 0 8px; font-size: 13px; }
.offline-review-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.offline-review-item { padding: 8px 12px; border-radius: 10px; background: var(--b-warn-bg, #fff4e0); border: 1px solid var(--b-warn-border, #e0b86b); }
.series-gap td { background: var(--b-bad-bg, #fde8e8); font-weight: 600; }
