/* ============================================
   LIDL CHILE — CENTRO DE CONTROL OPERACIONAL
   Dark Dashboard Theme
   ============================================ */

:root {
  --bg-base: #0b0c0f;
  --bg-surface: #121419;
  --bg-card: #171a20;
  --bg-card-hover: #1d2129;
  --bg-input: #0e1014;
  --bg-elevated: #20252e;

  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --border: rgba(203, 213, 225, 0.09);
  --border-hover: rgba(203, 213, 225, 0.18);

  --blue: #4ea3ff;
  --blue-bright: #0050aa;
  --blue-dim: rgba(0, 80, 170, 0.16);

  --yellow: #f7c600;
  --yellow-dim: rgba(247, 198, 0, 0.14);

  --red: #ff5a5f;
  --red-dim: rgba(215, 25, 32, 0.14);

  --green: #58d68d;
  --green-dim: rgba(88, 214, 141, 0.12);

  --cyan: #22d3ee;
  --purple: #a78bfa;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 8px;
  --r-xl: 8px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 220px),
    var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: "IBM Plex Mono", "Fira Code", monospace;
  font-size: 0.85em;
  background: var(--blue-dim);
  color: var(--blue);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.2;
}

p {
  margin: 0;
}

/* ---- App shell / Navigation ---- */
.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 18px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 220px),
    #080a0d;
  border-right: 1px solid var(--border);
  z-index: 120;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--r-md);
}

.sidebar__brand strong,
.sidebar__brand small {
  display: block;
}

.sidebar__brand strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.sidebar__brand small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.sidebar__nav {
  display: grid;
  gap: 5px;
}

.sidebar__nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--r-md);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.sidebar__nav a:hover,
.sidebar__nav a.is-active {
  color: var(--text);
  background: rgba(78, 163, 255, 0.1);
  box-shadow: inset 3px 0 0 var(--blue);
}

.sidebar__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-surface);
}

.sidebar__status strong,
.sidebar__status small {
  display: block;
}

.sidebar__status strong {
  font-size: 0.8rem;
}

.sidebar__status small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.app-main {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding: 16px 24px;
  background: rgba(11, 12, 15, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topbar h1 {
  margin-top: 7px;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.topbar p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-view.is-hidden {
  display: none !important;
}

.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 24, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.topnav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
}

.topnav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.topnav__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--blue-bright), #2563eb);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.topnav__title {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.topnav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topnav__links a {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.topnav__links a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

/* ---- Layout ---- */
.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  overflow-x: hidden;
}

main {
  margin-top: 24px;
}

/* ---- Buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.15s, background 0.2s;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button:active {
  transform: translateY(0);
}

.button--primary {
  background: linear-gradient(135deg, var(--blue-bright), #2563eb);
  color: white;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.button--primary:hover {
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
}

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

.button--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.button--accent {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.2);
}

.button--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.button--ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.button--cloud,
.button--cloud-alt {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.82rem;
  border-radius: var(--r-sm);
}

.button--cloud {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.button--cloud:hover {
  background: rgba(59, 130, 246, 0.2);
}

.button--cloud-alt {
  background: var(--yellow-dim);
  color: var(--yellow);
  border: 1px solid rgba(251, 191, 36, 0.15);
}

.button--cloud-alt:hover {
  background: rgba(251, 191, 36, 0.2);
}

.button.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* ---- Hero ---- */
.hero {
  background:
    linear-gradient(135deg, rgba(0, 80, 170, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-bright), var(--yellow), var(--red));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(203, 213, 225, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(203, 213, 225, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000 42%, transparent);
  opacity: 0.48;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero__accent {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero > p {
  max-width: 68ch;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.status-grid article {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator--on {
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.status-grid small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.status-grid strong {
  display: block;
  font-size: 0.85rem;
  margin-top: 2px;
}

/* ---- Supply Chain Flow ---- */
.flow-section {
  margin-top: 20px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.flow-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.flow-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.flow-pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  padding: 8px 0;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  text-align: center;
  flex-shrink: 0;
}

.flow-step strong {
  font-size: 0.85rem;
  font-weight: 600;
}

.flow-step small {
  font-size: 0.72rem;
  color: var(--text-muted);
  max-width: 140px;
}

.flow-step__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.flow-step:hover .flow-step__icon {
  transform: scale(1.08);
}

.flow-step__icon--prov {
  background: var(--blue-dim);
  color: var(--blue);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.1);
}

.flow-step__icon--cd {
  background: var(--yellow-dim);
  color: var(--yellow);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.1);
}

.flow-step__icon--suc {
  background: var(--green-dim);
  color: var(--green);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.1);
}

.flow-step__icon--venta {
  background: var(--red-dim);
  color: var(--red);
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.1);
}

.flow-connector {
  flex: 1;
  max-width: 60px;
  min-width: 24px;
  height: 2px;
  position: relative;
  overflow: visible;
}

.flow-connector span {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--border-hover), var(--blue), var(--border-hover));
  border-radius: 1px;
  position: relative;
}

.flow-connector span::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3px;
  width: 0;
  height: 0;
  border-left: 6px solid var(--blue);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}

/* ---- Section Common ---- */
.section-tag {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-dim);
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  margin-top: 10px;
}

.section-note {
  max-width: 40ch;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: right;
}

/* ---- Dashboard / Products ---- */
.dashboard-section,
.product-section {
  margin-top: 28px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.dashboard-grid,
.product-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-grid article,
.product-board article {
  min-width: 0;
  padding: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.dashboard-grid span,
.product-board span {
  display: inline-flex;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-grid strong,
.product-board strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.2;
}

.dashboard-grid p,
.product-board p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.product-line {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
}

.product-line--cold {
  background: var(--blue-dim);
  color: var(--blue) !important;
}

.product-line--meat {
  background: var(--red-dim);
  color: var(--red) !important;
}

.product-line--fresh {
  background: var(--green-dim);
  color: var(--green) !important;
}

.product-line--grocery {
  background: var(--yellow-dim);
  color: var(--yellow) !important;
}

/* ---- Config Panel ---- */
.config-panel {
  margin-top: 20px;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.config-block {
  padding: 24px;
}

.config-block + .config-block {
  border-top: 1px solid var(--border);
}

.config-block h3 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: 0.01em;
}

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

.config-grid label,
.config-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.config-grid label > span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.config-grid input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.config-grid input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}

.config-grid input::placeholder {
  color: var(--text-muted);
}

.config-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid var(--border);
  background: rgba(11, 12, 15, 0.28);
}

.config-actions small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---- Department Cards ---- */
.departments {
  margin-top: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.card--ventas {
  border-top: 2px solid var(--blue);
}

.card--proveedores {
  border-top: 2px solid var(--yellow);
}

.card--marketing {
  border-top: 2px solid var(--red);
}

.card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__icon--ventas {
  background: var(--blue-dim);
  color: var(--blue);
}

.card__icon--proveedores {
  background: var(--yellow-dim);
  color: var(--yellow);
}

.card__icon--marketing {
  background: var(--red-dim);
  color: var(--red);
}

.card__badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.card__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  min-height: 58px;
}

.cloud-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.file-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.2s;
}

.file-link::before {
  content: "\2193";
  font-size: 1em;
}

.file-link:hover {
  color: var(--cyan);
}

.link-status {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  min-height: 18px;
}

/* ---- Info Strip ---- */
.info-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.info-strip article {
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.info-strip h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.info-strip p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Mini Stats / KPI Cards ---- */
.mini-stats,
.sales-summary-cards,
.stock-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.mini-stats article,
.sales-summary-cards article,
.stock-summary-cards article {
  padding: 16px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.2s;
}

.mini-stats article:hover,
.sales-summary-cards article:hover {
  border-color: var(--border-hover);
}

.mini-stats span,
.sales-summary-cards span,
.stock-summary-cards span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.mini-stats strong,
.sales-summary-cards strong,
.stock-summary-cards strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 6px;
  color: var(--text);
}

.mini-stats p,
.sales-summary-cards p,
.stock-summary-cards p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Operations Dashboard ---- */
.ops-section,
.architecture-section,
.report-section {
  margin-top: 28px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.ops-toolbar,
.report-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.report-actions input {
  max-width: 230px;
  min-height: 44px;
}

.ops-mode,
.ops-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ops-mode {
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.ops-badge--ok {
  background: var(--green-dim);
  color: var(--green);
}

.ops-badge--warn,
.ops-badge--pending {
  background: var(--yellow-dim);
  color: var(--yellow);
}

.ops-badge--bad {
  background: var(--red-dim);
  color: var(--red);
}

.ops-badge--demo {
  background: var(--blue-dim);
  color: var(--blue);
}

.ops-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ops-kpi {
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 2px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--r-lg);
  min-width: 0;
}

.ops-kpi--ok {
  border-top-color: var(--green);
}

.ops-kpi--warn,
.ops-kpi--pending {
  border-top-color: var(--yellow);
}

.ops-kpi--bad {
  border-top-color: var(--red);
}

.ops-kpi--demo {
  border-top-color: var(--blue);
}

.ops-kpi__label {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ops-kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.ops-kpi p {
  min-height: 42px;
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.55;
}

.ops-kpi footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--text-muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.ops-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  margin-top: 16px;
}

.continuity-panel,
.audit-panel,
.health-history-panel {
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  min-width: 0;
}

.continuity-panel h3,
.audit-panel h3,
.health-history-panel h3 {
  margin-top: 12px;
  font-size: 1.05rem;
}

.continuity-panel > p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.continuity-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.continuity-metrics article {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(11, 12, 15, 0.22);
}

.continuity-metrics span {
  display: block;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.continuity-metrics strong {
  display: block;
  margin-top: 5px;
  font-size: 0.92rem;
}

.audit-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.audit-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.health-history-panel {
  grid-column: 1 / -1;
}

.health-history-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.health-history-item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(11, 12, 15, 0.22);
}

.health-history-item strong,
.health-history-item span {
  display: block;
  font-size: 0.76rem;
}

.health-history-item span {
  margin-top: 3px;
  color: var(--text-muted);
}

.audit-event {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(11, 12, 15, 0.22);
}

.audit-event strong {
  display: block;
  font-size: 0.84rem;
}

.audit-event span,
.audit-event p {
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

/* ---- Architecture Map ---- */
.architecture-map {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(110px, 0.55fr) minmax(260px, 1.25fr) minmax(220px, 1fr);
  align-items: center;
  gap: 14px;
}

.arch-node {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--bg-surface);
  min-width: 0;
}

.arch-node small {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.arch-node strong {
  display: block;
  margin-top: 6px;
  font-size: 0.98rem;
}

.arch-node--user {
  border-left: 3px solid var(--yellow);
}

.arch-node--core {
  border-color: rgba(78, 163, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(78, 163, 255, 0.08);
}

.arch-connector {
  min-height: 54px;
  display: grid;
  place-items: center;
  position: relative;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.arch-connector::before,
.arch-connector::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue));
}

.arch-connector::before {
  left: 0;
}

.arch-connector::after {
  right: 0;
  transform: rotate(180deg);
}

.arch-core-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.arch-core-grid span {
  padding: 8px 9px;
  border-radius: var(--r-sm);
  background: rgba(78, 163, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
}

.arch-spokes {
  display: grid;
  gap: 10px;
}

.arch-spokes .arch-node {
  border-left: 3px solid var(--green);
}

.arch-spokes .arch-node:nth-child(2) {
  border-left-color: var(--yellow);
}

.arch-spokes .arch-node:nth-child(3) {
  border-left-color: var(--red);
}

.arch-spokes .arch-node:nth-child(4) {
  border-left-color: var(--cyan);
}

/* ---- Executive Report ---- */
.report-preview {
  min-height: 260px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.report-empty {
  display: grid;
  place-items: center;
  min-height: 210px;
  text-align: center;
  color: var(--text-muted);
}

.report-empty strong {
  color: var(--text);
  font-size: 1rem;
}

.report-empty p {
  max-width: 54ch;
  margin-top: 8px;
  font-size: 0.88rem;
}

.report-document {
  color: var(--text);
}

.report-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.report-header h3 {
  font-size: 1.45rem;
}

.report-header p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.report-block {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(11, 12, 15, 0.22);
  min-width: 0;
}

.report-block--wide {
  grid-column: 1 / -1;
}

.report-block h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 0.92rem;
}

.report-block p,
.report-block li {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.report-block ul {
  margin: 0;
  padding-left: 18px;
}

.report-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.report-kpi-strip article {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(11, 12, 15, 0.2);
}

.report-kpi-strip span,
.report-kpi-strip small {
  display: block;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-kpi-strip strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1.1rem;
}

.report-kpi-strip small {
  margin-top: 5px;
  font-weight: 600;
  text-transform: none;
}

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

.report-chart-card {
  min-height: 260px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: rgba(11, 12, 15, 0.22);
}

.report-chart-card canvas {
  width: 100%;
  height: 220px;
}

.chart-bars {
  display: grid;
  gap: 12px;
  min-height: 220px;
}

.chart-bars > strong {
  font-size: 0.88rem;
}

.chart-bars__row {
  display: grid;
  grid-template-columns: 90px minmax(80px, 1fr) 72px;
  align-items: center;
  gap: 8px;
}

.chart-bars__row span,
.chart-bars__row b {
  color: var(--text-secondary);
  font-size: 0.74rem;
}

.chart-bars__row div {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.chart-bars__row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.chart-empty {
  min-height: 220px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.chart-empty strong {
  color: var(--text);
  font-size: 0.95rem;
}

.chart-empty p {
  max-width: 34ch;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
}

.report-table th,
.report-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.78rem;
}

.report-table th {
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Forms ---- */
.sales-form,
.stock-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.sales-form label,
.stock-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sales-form label > span,
.stock-form label > span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

select,
input[type="email"],
input[type="text"],
input[type="url"],
input[type="password"],
input[type="number"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select:focus,
input[type="email"]:focus,
input[type="text"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}

select:disabled,
input:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

input::placeholder {
  color: var(--text-muted);
}

.form-actions {
  display: flex;
  align-items: flex-end;
}

/* ---- Auth / Documents / Insights ---- */
.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  align-items: stretch;
}

.auth-form,
.prediction-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.auth-form label,
.prediction-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form label > span,
.prediction-form label > span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.session-panel {
  padding: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.session-panel strong {
  display: block;
  margin-top: 12px;
  font-size: 1.05rem;
}

.session-panel p {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.session-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.document-grid,
.insight-list {
  display: grid;
  gap: 14px;
}

.document-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.document-card,
.insight-item {
  padding: 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  min-width: 0;
}

.document-card h3,
.insight-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.document-card p,
.insight-item p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.6;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.document-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.document-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-input);
}

.document-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.document-preview--empty {
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--text-muted);
  font-size: 0.84rem;
  text-align: center;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.intelligence-grid .settings-section {
  min-width: 0;
}

.insight-item {
  border-left: 3px solid var(--blue);
}

.insight-item--warning {
  border-left-color: var(--yellow);
}

.insight-item--critical {
  border-left-color: var(--red);
}

.insight-item--resolved {
  opacity: 0.65;
}

.role-hidden {
  display: none !important;
}

/* ---- Sections ---- */
.settings-section,
.api-section,
.sales-section,
.stock-section {
  margin-top: 28px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.api-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

/* ---- Provider Grid ---- */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.provider-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color 0.2s;
  overflow: hidden;
  min-width: 0;
}

.provider-card:hover {
  border-color: var(--border-hover);
}

.provider-card--notice {
  grid-column: 1 / -1;
  border-left: 3px solid var(--yellow);
}

.provider-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.provider-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ---- Sales / Stock Result ---- */
.sales-result,
.stock-result {
  padding: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.sales-result h3,
.stock-result h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.sales-result h4,
.stock-result h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.sales-result > p,
.stock-result > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.service-error {
  padding: 18px;
  border: 1px solid rgba(255, 90, 95, 0.2);
  border-left: 3px solid var(--red);
  border-radius: var(--r-lg);
  background: var(--red-dim);
}

.service-error strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.service-error p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.86rem;
}

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: rgba(11, 16, 32, 0.5);
  margin-top: 4px;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap th {
  padding: 8px 10px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(26, 35, 50, 0.6);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table-wrap td {
  padding: 8px 10px;
  text-align: left;
  font-size: 0.82rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.table-wrap tr:last-child td {
  border-bottom: 0;
}

.table-wrap tr:hover td {
  background: rgba(30, 41, 59, 0.25);
}

/* ---- Charts ---- */
.chart-container {
  position: relative;
  height: 300px;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-top: 16px;
}

.chart-container--sm {
  height: 240px;
}

.chart-container--inline {
  margin-top: 14px;
  margin-bottom: 14px;
}

/* ---- Status Badges ---- */
.status-ok,
.status-warn,
.status-bad {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-ok {
  background: var(--green-dim);
  color: var(--green);
}

.status-warn {
  background: var(--yellow-dim);
  color: var(--yellow);
}

.status-bad {
  background: var(--red-dim);
  color: var(--red);
}

/* ---- Bullet List ---- */
.bullet-list {
  margin: 0;
  padding-left: 18px;
}

.bullet-list li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.bullet-list li + li {
  margin-top: 6px;
}

/* ---- Empty State ---- */
.empty-state {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
  padding: 24px;
}

/* ---- Footer ---- */
.footer {
  margin-top: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer p + p {
  margin-top: 4px;
}

/* ---- Utility ---- */
.hidden {
  display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    height: auto;
    padding: 10px 14px;
    gap: 10px;
  }

  .sidebar__brand,
  .sidebar__status {
    display: none;
  }

  .sidebar__nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sidebar__nav a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.8rem;
  }

  .topbar {
    position: static;
    min-height: 0;
    align-items: flex-start;
  }

  .topnav__links {
    gap: 2px;
  }

  .topnav__links a {
    padding: 6px 8px;
    font-size: 0.76rem;
  }

  .status-grid,
  .cards,
  .info-strip,
  .config-grid,
  .auth-grid,
  .intelligence-grid,
  .provider-grid,
  .mini-stats,
  .sales-summary-cards,
  .stock-summary-cards,
  .ops-kpi-grid,
  .ops-lower-grid,
  .architecture-map,
  .report-grid,
  .health-history-list,
  .report-chart-grid,
  .report-kpi-strip,
  .dashboard-grid,
  .product-board {
    grid-template-columns: 1fr;
  }

  .sales-form,
  .stock-form {
    grid-template-columns: 1fr 1fr;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-note {
    text-align: left;
    max-width: none;
  }

  .flow-pipeline {
    justify-content: flex-start;
  }

  .arch-connector {
    min-height: 34px;
  }

  .arch-connector::before,
  .arch-connector::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px 14px 40px;
  }

  .topnav__inner {
    padding: 0 14px;
  }

  .topnav__title {
    display: none;
  }

  .topnav__links {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero {
    padding: 20px;
    border-radius: var(--r-lg);
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .status-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow-section {
    padding: 16px;
  }

  .flow-step {
    padding: 8px 12px;
  }

  .flow-step__icon {
    width: 40px;
    height: 40px;
  }

  .flow-step strong {
    font-size: 0.76rem;
  }

  .settings-section,
  .api-section,
  .sales-section,
  .stock-section,
  .ops-section,
  .architecture-section,
  .report-section,
  .dashboard-section,
  .product-section {
    padding: 18px;
    border-radius: var(--r-lg);
  }

  .sales-form,
  .stock-form {
    grid-template-columns: 1fr;
  }

  .config-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 18px;
    border-radius: var(--r-lg);
  }

  .chart-container {
    height: 220px;
    padding: 10px;
  }

  .chart-container--sm {
    height: 200px;
  }

  .continuity-metrics,
  .arch-core-grid,
  .audit-event {
    grid-template-columns: 1fr;
  }

  .report-header {
    flex-direction: column;
  }

  .topbar {
    flex-direction: column;
  }

  .topbar__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  body {
    background: white !important;
    color: #111827 !important;
  }

  .topnav,
  .sidebar,
  .topbar,
  .hero,
  main > :not(#reportes),
  .footer,
  #reportes > .section-head {
    display: none !important;
  }

  .page-shell,
  .app-shell,
  .app-main,
  main,
  #reportes {
    display: block !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    border: 0 !important;
  }

  .report-preview {
    padding: 0 !important;
    border: 0 !important;
    background: white !important;
    color: #111827 !important;
  }

  .report-document,
  .report-document * {
    color: #111827 !important;
    box-shadow: none !important;
  }

  .report-header,
  .report-block,
  .report-table th,
  .report-table td {
    border-color: #d1d5db !important;
  }

  .report-block {
    background: white !important;
    break-inside: avoid;
  }

  .ops-badge {
    border: 1px solid #d1d5db;
    background: white !important;
  }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.15);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.25);
}
