@font-face {
  font-family: 'Acumin Pro';
  src: url('/fonts/AcuminPro-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Acumin Pro';
  src: url('/fonts/AcuminPro-Semibold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Acumin Pro';
  src: url('/fonts/AcuminPro-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Diseño "Flat claro IT Patagonia" (docs/preview-diseno.html). Se conservan
     los nombres de variables anteriores para no romper las pantallas. */
  --accent: #0052cc;
  --accent-hover: #0043a3;
  --accent-soft: rgba(0, 82, 204, 0.08);
  --accent-ring: rgba(0, 82, 204, 0.35);
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, 0.1);
  --warning: #d97706;
  --warning-soft: rgba(217, 119, 6, 0.1);
  --danger: #dc5b5b;
  --danger-soft: rgba(220, 91, 91, 0.1);
  --neutral: #6b7280;
  --neutral-soft: rgba(107, 114, 128, 0.1);
  --bg: #f7f8fa;
  --card: #ffffff;
  --border: #e5e7eb;
  --border-soft: #eef0f3;
  --text-1: #111827;
  --text-2: #6b7280;
  --text-3: #9ca3af;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-card-hover: 0 12px 24px -8px rgba(16, 24, 40, 0.12);

  --brand-primary: var(--accent);
  --brand-secondary: #1AD0FB;
  --brand-tertiary: #2CEECC;
  --brand-gradient: linear-gradient(135deg, #0052cc 0%, #1AD0FB 100%);
  --accent-orange-digital: #FF6A00;
  --neutral-0: #FFFFFF;
  --neutral-100: var(--border);
  --neutral-400: var(--text-2);
  --neutral-700: var(--text-1);
  --neutral-900: #000000;
  --font-primary: 'Geist', 'Acumin Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radio: var(--radius-sm);
  --sombra: var(--shadow-card);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-1);
  background: var(--bg);
}

h1, h2, h3 { color: var(--text-1); font-weight: 700; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 0.95rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Estructura: barra lateral + encabezado ── */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex-shrink: 0; background: var(--accent); padding: 20px;
  display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 4px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-badge {
  width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 12px; flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-text .name { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.brand-text .tag { font-size: 11.5px; color: rgba(255,255,255,0.7); line-height: 1.2; }
.menu-label { margin: 0 0 6px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: rgba(255,255,255,0.6); }
.menu-label.oscuro { color: var(--text-3); margin-left: 0; }
.menu { display: flex; flex-direction: column; gap: 4px; }
.menu-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  color: #fff; font-size: 13.5px; font-weight: 500;
}
.menu-item .icono { width: 18px; text-align: center; flex-shrink: 0; }
.menu-item:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.menu-item.activo { background: rgba(255,255,255,0.16); font-weight: 600; }
.secure-box { margin-top: auto; background: rgba(255,255,255,0.12); border-radius: 12px; padding: 12px; color: #fff; }
.secure-box p { margin: 0; font-size: 12px; }
.secure-box .t { font-weight: 600; margin-bottom: 2px; }
.secure-box .s { color: rgba(255,255,255,0.75); }

.principal { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 12px 32px; border-bottom: 1px solid var(--border); background: var(--card);
  position: sticky; top: 0; z-index: 30;
}
.contenido { flex: 1; }
.aviso-vista {
  margin: 0 auto 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--accent-soft); border: 1px solid var(--accent-ring); color: var(--accent);
  border-radius: var(--radius-sm); padding: 6px 12px; font-size: 12.5px;
}
.desplegable { position: relative; }
.desplegable > summary { list-style: none; cursor: pointer; }
.desplegable > summary::-webkit-details-marker { display: none; }
.panel-desplegable {
  position: absolute; top: calc(100% + 8px); right: 0; width: 320px; max-height: 70vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card-hover); z-index: 40; padding: 12px;
}
.notif-bell {
  position: relative; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius-sm);
  width: 38px; height: 38px; font-size: 15px; display: grid; place-items: center;
}
.notif-bell:hover { border-color: var(--accent); }
.notif-badge {
  position: absolute; top: -5px; right: -5px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
}
.notif-item { display: block; padding: 9px 8px; border-radius: 8px; font-size: 12.5px; color: var(--text-1); }
.notif-item:hover { background: var(--bg); text-decoration: none; }
.notif-item .t { color: var(--text-3); font-size: 11px; display: block; margin-top: 2px; }
.usuario-resumen { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: var(--radius-sm); }
.usuario-resumen:hover { background: var(--bg); }
.avatar {
  width: 34px; height: 34px; border-radius: 10px; background: var(--text-1); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.who { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.25; }
.who .n { font-weight: 500; color: var(--text-1); }
.who .e { color: var(--text-3); }
.flecha { color: var(--text-3); font-size: 11px; }
.vista-opciones { display: flex; flex-direction: column; gap: 6px; }
.vista-opciones form { margin: 0; }
.vista-con-select { display: flex; gap: 6px; }
.vista-con-select select {
  flex: 1; min-width: 0; padding: 7px 8px; border: 1px solid var(--border); border-radius: 8px; font-family: inherit; font-size: 12.5px;
}
.opcion-vista {
  width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--card); font-family: inherit; font-size: 12.5px; cursor: pointer; color: var(--text-1);
}
.vista-con-select .opcion-vista { width: auto; }
.opcion-vista:hover { border-color: var(--accent); color: var(--accent); }
.opcion-vista.activa { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; gap: 12px; padding: 14px 16px; }
  .menu { flex-direction: row; flex-wrap: wrap; }
  .menu-item { padding: 8px 10px; font-size: 12.5px; }
  .secure-box { display: none; }
  .topbar { padding: 10px 16px; position: static; }
  .who { display: none; }
  .panel-desplegable { width: min(320px, calc(100vw - 32px)); }
}

/* Barra superior anterior (se conserva para compatibilidad). */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem; background: var(--card); border-bottom: 1px solid var(--border);
}
.navbar .logo { height: 32px; }
button.link {
  background: none; border: none; color: var(--accent); font-family: inherit;
  font-weight: 600; font-size: inherit; cursor: pointer; padding: 0;
}
button.link:hover { text-decoration: underline; }

main { max-width: 1160px; margin: 0 auto; padding: 28px 32px; }
@media (max-width: 900px) { main { padding: 18px 16px; } }

.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 18px;
}

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border-soft); }
th { color: var(--text-3); font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.4px; }
tr:hover td { background: var(--bg); }
td.numero, th.numero { text-align: right; font-variant-numeric: tabular-nums; }

.btn {
  display: inline-block;
  background: var(--brand-primary);
  color: var(--neutral-0);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  font-size: 13.5px;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn.btn-chico { padding: 7px 12px; font-size: 12.5px; }
.btn.peligro { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn.peligro:hover { background: var(--danger-soft); }
.btn.exito { background: var(--success); }
.btn.exito:hover { background: #12843c; }
.btn.secundario {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn.secundario:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.error { background: var(--danger-soft); color: var(--danger); }
.badge.aviso { background: var(--warning-soft); color: var(--warning); }
.badge.neutro { background: var(--neutral-soft); color: var(--neutral); }

.filtros { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.filtros input, .filtros select {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--neutral-100);
  border-radius: var(--radio);
  font-family: inherit;
  font-size: 0.9rem;
}
.filtros input:focus, .filtros select:focus, textarea:focus { outline: none; border-color: var(--brand-primary); }

textarea {
  width: 100%;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  border: 1px solid var(--neutral-100);
  border-radius: var(--radio);
  padding: 0.75rem;
}

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}
.login-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card-hover);
  padding: 2.5rem;
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.login-card img { height: 40px; margin-bottom: 1.5rem; }
.login-card input {
  width: 100%;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--neutral-100);
  border-radius: var(--radio);
  font-family: inherit;
}
.login-card .btn { width: 100%; }
.error-msg { color: #b3002d; font-size: 0.9rem; margin-bottom: 0.75rem; }

.banner-prueba {
  background: var(--accent-orange-digital);
  color: var(--neutral-0);
  font-weight: 700;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.stat { font-size: 1.5rem; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); font-size: 0.85rem; }

footer {
  text-align: center;
  color: var(--neutral-400);
  font-size: 0.8rem;
  padding: 2rem 1rem 1rem;
}

/* Formularios de negocio (circuito GIdL) */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.85rem 1.25rem; }
.form-grid .ancho { grid-column: 1 / -1; }
.campo label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; }
.campo .ayuda { display: block; color: var(--neutral-400); font-size: 0.78rem; margin-top: 0.2rem; }
.campo input, .campo select, .tabla-form input {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--neutral-100);
  border-radius: var(--radio);
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--neutral-0);
}
.campo input:focus, .campo select:focus, .tabla-form input:focus { outline: none; border-color: var(--brand-primary); }
.campo input[readonly], .campo select:disabled { background: #f2f4f8; color: var(--neutral-400); }
fieldset.seccion { border: 0; padding: 0; margin: 0 0 1.25rem; }
fieldset.seccion legend { font-weight: 700; color: var(--brand-primary); margin-bottom: 0.6rem; font-size: 0.95rem; }
.tabla-form { overflow-x: auto; }
.tabla-form table { min-width: 980px; }
.tabla-form th { font-size: 0.78rem; white-space: nowrap; }
.tabla-form td { padding: 0.25rem; }
.tabla-form input { padding: 0.4rem 0.45rem; font-size: 0.85rem; }
.aviso-ok { border-color: #0a8a73 !important; }
.aviso-error { border-color: #b34c00 !important; }
details.tecnico { margin-top: 1rem; }
details.tecnico summary { cursor: pointer; color: var(--neutral-400); font-size: 0.85rem; }

/* Circuito de la liquidación */
.paso-a-paso { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; }
.paso-a-paso li { flex: 1 1 160px; display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 0.75rem; border-radius: var(--radio); background: #f2f4f8; color: var(--neutral-400); font-size: 0.88rem; }
.paso-a-paso .paso-num { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--neutral-0); font-weight: 700; }
.paso-a-paso li.hecho { background: #e3f6f1; color: #0a6b59; }
.paso-a-paso li.hecho .paso-num { background: #0a8a73; color: var(--neutral-0); }
.paso-a-paso li.actual { background: #e8efff; color: var(--brand-primary); font-weight: 600; }
.paso-a-paso li.actual .paso-num { background: var(--brand-primary); color: var(--neutral-0); }
.paso-a-paso li.desvio { background: #fff1e6; color: #b34c00; }
.paso-a-paso li.desvio .paso-num { background: #b34c00; color: var(--neutral-0); }
.acciones { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-start; }
.accion-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
/* En la fila de acciones los formularios van a la par de los links (Ajustar / completar). */
.acciones > .accion-form { margin-top: 0; }
.accion-form input[type=text] { min-width: 260px; padding: 0.5rem 0.65rem; border: 1px solid var(--neutral-100); border-radius: var(--radio); font-family: inherit; }
.chips-etapas { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: #f2f4f8; color: inherit; font-size: 0.85rem; text-decoration: none; border: 1px solid transparent; }
.chip:hover { border-color: var(--brand-primary); text-decoration: none; }
.chip.activo { background: var(--brand-primary); color: var(--neutral-0); }
.chip-num { font-weight: 700; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.4rem; }
.checklist li { color: var(--neutral-400); }
.checklist li.ok { color: #0a6b59; font-weight: 600; }
.badge.etapa-ENVIADA, .badge.etapa-CERRADA { background: #e3f6f1; color: #0a6b59; }
.badge.etapa-PARA_REVISAR { background: #e8efff; color: var(--brand-primary); }
.badge.etapa-PENDIENTE_DATOS, .badge.etapa-PENDIENTE_APROBACION, .badge.etapa-ENVIO_CON_ERROR, .badge.etapa-RECHAZADA { background: #fff1e6; color: #b34c00; }

.tabla-detalle { font-size: 0.82rem; }
.tabla-detalle th, .tabla-detalle td { white-space: nowrap; }


/* ── Componentes del diseño: encabezado de página, KPIs, pestañas ── */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--accent); margin: 0 0 4px; text-transform: uppercase; }
.dash-sub { font-size: 13px; color: var(--text-2); max-width: 560px; margin: 6px 0 0; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 900px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stat-row { grid-template-columns: 1fr; } }
a.stat-tile { color: inherit; text-decoration: none; display: block; }
a.stat-tile:hover { border-color: var(--accent); }
.stat-tile { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); box-shadow: var(--shadow-card); padding: 14px 16px; }
.stat-tile .stat-label { margin: 0; font-size: 11.5px; color: var(--text-2); }
.stat-tile .stat-value { margin: 5px 0 0; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-tile .stat-sub { margin: 2px 0 0; font-size: 11px; color: var(--text-3); }
.tabs-row { display: inline-flex; gap: 3px; padding: 4px; background: var(--border-soft); border-radius: var(--radius-sm); margin-bottom: 18px; flex-wrap: wrap; }
.pill { border: none; background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 8px; }
.pill:hover { color: var(--text-1); text-decoration: none; }
.pill.active { background: var(--card); color: var(--accent); font-weight: 600; box-shadow: var(--shadow-card); }
.search { display: flex; align-items: center; gap: 8px; max-width: 360px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); margin-bottom: 14px; }
.search input, .search select { flex: 1; border: none; outline: none; font-size: 13px; background: transparent; color: var(--text-1); font-family: inherit; }
.search .icon { color: var(--text-3); }
.empty { text-align: center; color: var(--text-2); padding: 32px; font-size: 13.5px; }

/* ── Cascada Cliente → CECO → Personas ── */
.cascada { display: flex; flex-direction: column; gap: 12px; }
.acc-cliente { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; }
.acc-cliente > summary, .acc-ceco > summary { list-style: none; cursor: pointer; }
.acc-cliente > summary::-webkit-details-marker, .acc-ceco > summary::-webkit-details-marker { display: none; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; flex-wrap: wrap; }
.acc-cliente > summary:hover { background: var(--bg); }
.acc-chevron { display: inline-block; transition: transform 0.15s ease; color: var(--text-3); font-size: 11px; }
details[open] > summary .acc-chevron { transform: rotate(90deg); }
.acc-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.acc-title h3 { margin: 0; font-size: 14px; font-weight: 600; }
.acc-count { font-size: 11px; color: var(--text-2); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.acc-stats { display: flex; gap: 16px; font-size: 12px; color: var(--text-2); flex-wrap: wrap; }
.acc-stats b { color: var(--text-1); font-variant-numeric: tabular-nums; font-weight: 600; }
.acc-body { padding: 0 16px 16px; border-top: 1px solid var(--border-soft); }
.acc-ceco { border: 1px solid var(--border-soft); border-radius: 12px; margin-top: 10px; overflow: hidden; }
.acc-ceco > summary .acc-head { padding: 11px 14px; background: var(--bg); }
.acc-ceco > summary .acc-title h3 { font-size: 12.5px; }
.acc-ceco-body { padding: 14px; }
.acc-acciones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.tablewrap { overflow-x: auto; }
table.plana { font-size: 12.5px; }
table.plana td { font-variant-numeric: tabular-nums; }

/* ── Cross-check y comentarios ── */
.crosscheck { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.comentarios-box { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.comentario-item { font-size: 12.5px; background: var(--bg); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; }
.comentario-item .meta { color: var(--text-3); }
.comentario-item p { margin: 4px 0 0; color: var(--text-2); white-space: pre-wrap; }
.form-linea { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.form-linea input[type=text], .form-linea select {
  flex: 1; min-width: 180px; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-size: 12.5px; background: var(--card); color: var(--text-1); font-family: inherit;
}
.validacion-box { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-ring); }
.validacion-box h4 { margin: 0 0 6px; font-size: 12.5px; color: var(--accent); }

/* ── Dashboards ── */
.breakdown-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 800px) { .breakdown-grid { grid-template-columns: 1fr; } }
.breakdown-card { background: var(--card); border: 1px solid var(--border-soft); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 16px; min-width: 0; }
.breakdown-card.ancho { grid-column: 1 / -1; }
.breakdown-header { font-size: 13px; font-weight: 700; color: var(--text-1); margin-bottom: 10px; display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.breakdown-list { display: flex; flex-direction: column; max-height: 280px; overflow-y: auto; }
.breakdown-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--border-soft); }
.breakdown-item:last-child { border-bottom: none; }
.breakdown-item .item-name { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breakdown-item .item-value { font-weight: 600; color: var(--text-1); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.barra { height: 6px; background: var(--border-soft); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.barra > span { display: block; height: 100%; background: var(--accent); }
.chart-wrap { position: relative; height: 240px; }

/* Grupo al pie de la barra lateral: dashboards y administración. */
.menu-inferior { margin-top: auto; padding-top: .75rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.menu-inferior + .secure-box { margin-top: 1rem; }

/* Ingreso con Google */
.btn-google { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.btn-google:hover { background: #f8f9fa; color: #1f1f1f; }
.login-local { margin-top: .5rem; text-align: left; }
.login-local summary { cursor: pointer; color: var(--muted, #6b7280); font-size: .9rem; margin-bottom: .75rem; }

/* Filtros por columna y exportación de tablas (feedback BackOffice, 29/10). */
table.plana tr.fila-filtros th { padding-top: 0; padding-bottom: 6px; }
table.plana tr.fila-filtros input { width: 100%; min-width: 60px; font-size: 11.5px; padding: 3px 6px; box-sizing: border-box; }
.boton-exportar { margin: 0 0 8px auto; display: block; }
