/* ═══════════════════════════════════════════════════════════════════
   Cockpit Design System v0.22 · CSS base
   ───────────────────────────────────────────────────────────────────
   Extraído literal de `docs/design/v0.21/pantalla-01-movimientos.html`
   (los tokens :root + reset + clases base que aplican a TODAS las
   pantallas).

   Cada pantalla añade su CSS específico via <link> separado:
     <link rel="stylesheet" href="/static/css/movements.css">
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,400..700,0..1,-50..200&display=block');

:root {
  /* Brand · navy escalera */
  --navy-900: #0B1F3F;
  --navy-800: #13325E;
  --navy-700: #1D4F9C;
  --navy-600: #2E6FDB;
  --navy-100: #DCE5F2;
  --navy-50:  #EEF3F9;

  /* Brand · orange escalera */
  --orange-700: #B05F08;
  --orange-600: #D6760F;
  --orange-500: #F08A1C;
  --orange-400: #FFB94D;
  --orange-100: #FFE2C2;
  --orange-50:  #FFF4E2;

  /* Grises */
  --gray-0:   #FFFFFF;
  --gray-50:  #f4f6f8;
  --gray-100: #EEF1F5;
  --gray-150: #E1E6ED;
  --gray-200: #C8D1DB;
  --gray-300: #A8B3C0;
  --gray-400: #97A1AD;
  --gray-500: #6B7785;
  --gray-600: #3D4856;
  --gray-700: #2F3742;
  --gray-800: #1F2630;
  --gray-900: #0E1726;

  /* Foreground */
  --fg-1: var(--gray-900);
  --fg-2: var(--gray-600);
  --fg-3: var(--gray-500);
  --fg-4: var(--gray-400);

  /* Surfaces */
  --surface-page:   var(--gray-50);
  --surface-card:   var(--gray-0);
  --surface-sunken: var(--gray-100);

  /* Borders */
  --border-subtle:   #EDF0F5;
  --border-default:  var(--gray-150);
  --border-strong:   var(--gray-300);

  /* Semantic · success */
  --success-700: #066133;
  --success-600: #086B3B;
  --success-500: #0F8A4D;
  --success-100: #DCEFE4;
  --success-50:  #ECF6F0;

  /* Semantic · warning */
  --warning-700: #8E5708;
  --warning-600: #B87208;
  --warning-500: #D68910;
  --warning-100: #FCE5BA;
  --warning-50:  #FFF7E6;

  /* Semantic · danger */
  --danger-700: #7A171C;
  --danger-600: #911E23;
  --danger-500: #B7282E;
  --danger-100: #F7D2D4;
  --danger-50:  #FCEDEE;

  /* Semantic · info */
  --info-700: #163E6C;
  --info-500: #2C6FBB;
  --info-100: #C5DCF4;
  --info-50:  #E8F1FB;

  /* Espaciado · escala granular */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radios · más conservadores que default */
  --radius-xs:  2px;
  --radius-sm:  4px;
  --radius-md:  6px;
  --radius-lg:  8px;
  --radius-xl:  12px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(11,31,63,0.05);
  --shadow-sm: 0 2px 4px rgba(11,31,63,0.05), 0 1px 2px rgba(11,31,63,0.04);
  --shadow-md: 0 4px 12px rgba(11,31,63,0.08), 0 1px 3px rgba(11,31,63,0.06);
  --shadow-lg: 0 14px 40px rgba(11,31,63,0.10), 0 2px 6px rgba(11,31,63,0.05);

  /* Animation */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;

  /* Fonts */
  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
}

/* ─── Reset ─────────────────────────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-sans);
  background: var(--surface-page);
  color: var(--fg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 14px;
  line-height: 1.5;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  color: var(--fg-1);
  margin: 0;
  font-weight: 700;
}
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
  vertical-align: middle;
}
.material-symbols-outlined.filled {
  font-variation-settings: 'FILL' 1, 'wght' 500;
}
.mono { font-family: var(--font-mono); }
.muted { color: var(--fg-3); }

/* Scrollbars suaves */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-300); }

/* ═══════════════════════════════════════════════════════════════════
   SPARKLINE GLOBAL · v0.22.17 R11.1
   Antes estaba SOLO en cash_position.css · si forecast/dashboard
   cargaba el helper sparkline_svg() pero no esa hoja, el <path> se
   renderizaba con fill negro (default browser) generando el famoso
   "triángulo negro" reportado. Ahora aplica en TODA la app.
   ═══════════════════════════════════════════════════════════════════ */
.cockpit-sparkline { display: inline-block; vertical-align: middle; }
.cockpit-sparkline svg { display: block; overflow: visible; }
.cockpit-sparkline path.area { fill-opacity: .18; stroke: none; }
.cockpit-sparkline path.line { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cockpit-sparkline circle.dot { stroke-width: 1.5; stroke: #fff; }
/* Variantes color */
.cockpit-sparkline--pos path.area { fill: var(--success-500); }
.cockpit-sparkline--pos path.line { stroke: var(--success-500); }
.cockpit-sparkline--pos circle.dot { fill: var(--success-500); }
.cockpit-sparkline--neg path.area { fill: var(--danger-500); }
.cockpit-sparkline--neg path.line { stroke: var(--danger-500); }
.cockpit-sparkline--neg circle.dot { fill: var(--danger-500); }
.cockpit-sparkline--neu path.area { fill: var(--gray-400); }
.cockpit-sparkline--neu path.line { stroke: var(--gray-400); }
.cockpit-sparkline--neu circle.dot { fill: var(--gray-400); }
/* Sobre fondo oscuro (KPI hero navy) usa blanco/translúcido */
.cockpit-kpi-hero .cockpit-sparkline path.area { fill: #fff; fill-opacity: .14; }
.cockpit-kpi-hero .cockpit-sparkline path.line { stroke: #fff; stroke-opacity: .92; }
.cockpit-kpi-hero .cockpit-sparkline circle.dot { fill: #fff; stroke: var(--navy-900); }

/* ═══════════════════════════════════════════════════════════════════
   FORECAST CHART · v0.22.18 R12 · gráfico grande histórico vs proyectado
   ═══════════════════════════════════════════════════════════════════ */
.cockpit-forecast-chart {
  background: white;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow-xs);
}
.cockpit-forecast-chart svg { display: block; width: 100%; height: auto; }
.cockpit-fc-grid {
  stroke: var(--gray-150);
  stroke-width: 1;
  stroke-dasharray: 2,3;
}
.cockpit-fc-y-label,
.cockpit-fc-x-label {
  fill: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
}
.cockpit-fc-x-label { font-family: var(--font-sans); font-size: 11px; font-weight: 600; }
.cockpit-fc-today {
  stroke: var(--navy-700);
  stroke-width: 1.5;
  stroke-dasharray: 4,4;
  opacity: 0.55;
}
.cockpit-fc-today-label {
  fill: var(--navy-700);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* Línea HISTÓRICA (azul navy) */
.cockpit-fc-hist {
  fill: none;
  stroke: var(--navy-700);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cockpit-fc-hist-area {
  fill: var(--navy-700);
  fill-opacity: 0.12;
  stroke: none;
}

/* Línea PROYECCIÓN · variant pos (verde) o neg (rojo) */
.cockpit-fc-proj {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 6,3;
}
.cockpit-fc-proj--pos { stroke: var(--success-500); }
.cockpit-fc-proj--neg { stroke: var(--danger-500); }
.cockpit-fc-proj--pos-area { fill: var(--success-500); fill-opacity: 0.10; stroke: none; }
.cockpit-fc-proj--neg-area { fill: var(--danger-500); fill-opacity: 0.10; stroke: none; }

/* ═══════════════════════════════════════════════════════════════════
   LAYOUT GLOBAL · sidebar + main
   ═══════════════════════════════════════════════════════════════════ */

.app-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
}

/* ─── Sidebar navy oscuro ───────────────────────────────────────── */

.sidebar {
  background: linear-gradient(180deg, var(--navy-900) 0%, #08172e 100%);
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-4) 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--space-4) var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-3);
}
.sidebar__brand-logo {
  /* v0.22.26 R17b · logo limpio · sin fondo, sin borde, sin sombra */
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar__brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sidebar__brand-text {
  display: flex;
  flex-direction: column;
}
.sidebar__brand-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: white;
  line-height: 1.1;
}
.sidebar__brand-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

.sidebar__group {
  margin-top: var(--space-3);
}
.sidebar__group-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 var(--space-4) var(--space-1);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--orange-400);
}
.sidebar__group-label::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  background: var(--orange-500);
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px var(--space-4);
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: all var(--duration-fast) var(--ease-standard);
  cursor: pointer;
}
.sidebar__item .material-symbols-outlined {
  font-size: 18px;
  opacity: 0.85;
}
.sidebar__item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: white;
  border-left-color: rgba(240, 138, 28, 0.40);
}
.sidebar__item.active {
  background: rgba(240, 138, 28, 0.10);
  color: white;
  border-left-color: var(--orange-500);
  font-weight: 600;
}
.sidebar__item.active .material-symbols-outlined {
  opacity: 1;
  color: var(--orange-400);
}

.sidebar__badge {
  margin-left: auto;
  background: var(--orange-500);
  color: white;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  min-width: 18px;
  text-align: center;
}

.sidebar__user {
  margin-top: auto;
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar__user-avatar {
  width: 32px; height: 32px;
  border-radius: 99px;
  background: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
}
.sidebar__user-name {
  font-size: 12.5px;
  color: white;
  font-weight: 600;
  line-height: 1.1;
}
.sidebar__user-role {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  margin-top: 1px;
}
.sidebar__user-logout {
  margin-left: auto;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-standard);
}
.sidebar__user-logout:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

/* ─── Sidebar toggle button · v0.22.20 R14 ──────────────────────── */
.sidebar__toggle {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast) var(--ease-standard);
  flex-shrink: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  line-height: 1;
}
.sidebar__toggle:hover {
  background: rgba(240, 138, 28, 0.18);
  color: white;
  border-color: rgba(240, 138, 28, 0.55);
}
.sidebar__toggle:active {
  transform: scale(0.94);
}
.sidebar__toggle:focus-visible {
  box-shadow: 0 0 0 2px rgba(240, 138, 28, 0.45);
}
.sidebar__toggle .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
  color: inherit;
}

/* ─── Sidebar collapsed state · v0.22.20 R14 ────────────────────── */
.app-shell {
  transition: grid-template-columns var(--duration-base) var(--ease-standard);
}
.app-shell.sidebar-collapsed {
  grid-template-columns: 64px 1fr;
}

.sidebar.collapsed {
  overflow: hidden;
}
.sidebar.collapsed .sidebar__brand {
  padding: 0 0 var(--space-3);
  justify-content: center;
  gap: 0;
}
.sidebar.collapsed .sidebar__brand-text,
.sidebar.collapsed .sidebar__group-label,
.sidebar.collapsed .sidebar__item span:not(.material-symbols-outlined),
.sidebar.collapsed .sidebar__badge,
.sidebar.collapsed .sidebar__user-name,
.sidebar.collapsed .sidebar__user-role {
  display: none;
}
/* Reemplazar nodos de texto de los <a> (sin span) ocultándolos vía font-size: 0 sobre el padre */
.sidebar.collapsed .sidebar__item {
  justify-content: center;
  padding: 11px 0;
  font-size: 0;       /* oculta el texto suelto del <a> */
  gap: 0;
  border-left: 2px solid transparent;
}
.sidebar.collapsed .sidebar__item .material-symbols-outlined {
  font-size: 20px;    /* re-aplica tamaño · font-size: 0 lo anulaba al heredar */
}
.sidebar.collapsed .sidebar__item.active {
  border-left-color: var(--orange-500);
}
.sidebar.collapsed .sidebar__group {
  margin-top: var(--space-2);
}
.sidebar.collapsed .sidebar__group-label::before {
  display: none;
}
.sidebar.collapsed .sidebar__user {
  padding: var(--space-3) 0;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.sidebar.collapsed .sidebar__user > div:not(.sidebar__user-avatar) {
  display: none;
}
.sidebar.collapsed .sidebar__user form {
  margin-left: 0 !important;
}
.sidebar.collapsed .sidebar__toggle {
  margin-left: 0;
}

/* ─── Main content ──────────────────────────────────────────────── */

.app-content {
  padding: var(--space-6) var(--space-8) var(--space-12);
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  background: var(--surface-page);
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
}
.btn .material-symbols-outlined { font-size: 18px; }
.btn--secondary {
  background: white;
  color: var(--fg-2);
  border-color: var(--border-default);
}
.btn--secondary:hover {
  border-color: var(--navy-700);
  color: var(--navy-700);
}
.btn--accent {
  background: linear-gradient(180deg, var(--orange-500) 0%, var(--orange-700) 100%);
  color: white;
  border-color: var(--orange-700);
  box-shadow: 0 2px 4px rgba(208, 118, 15, 0.18);
}
.btn--accent:hover {
  background: linear-gradient(180deg, var(--orange-600) 0%, var(--orange-700) 100%);
  box-shadow: 0 4px 12px rgba(208, 118, 15, 0.28);
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--navy-700);
  color: white;
}
.btn--primary:hover {
  background: var(--navy-800);
}
.btn--ghost {
  background: transparent;
  color: var(--fg-2);
}
.btn--ghost:hover {
  background: var(--surface-sunken);
  color: var(--fg-1);
}
.btn--sm {
  padding: 6px 10px;
  font-size: 12px;
}
.btn--lg {
  padding: 12px 24px;
  font-size: 14px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════════
   FORMS · inputs
   ═══════════════════════════════════════════════════════════════════ */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__label {
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.field__input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-size: 13px;
  color: var(--fg-1);
  font-family: var(--font-sans);
  transition: all var(--duration-fast) var(--ease-standard);
  min-height: 40px;
}
.field__input:hover {
  border-color: var(--navy-700);
}
.field__input:focus-within {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(29, 79, 156, 0.10);
}
.field__input input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  width: 100%;
}
.field__input .material-symbols-outlined {
  font-size: 18px;
  color: var(--fg-3);
}
.field__error {
  font-size: 12px;
  color: var(--danger-600);
  display: flex;
  align-items: center;
  gap: 4px;
}
.field__error .material-symbols-outlined { font-size: 14px; }

/* ═══════════════════════════════════════════════════════════════════
   LOGIN screen
   ═══════════════════════════════════════════════════════════════════ */

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(240, 138, 28, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.login-page::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29, 79, 156, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.login-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-10) var(--space-8);
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-6);
}
/* v0.22.25 R17 · Hero con logo oficial O&M centrado */
.login-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}
.login-hero__logo {
  /* v0.22.26 R17b · logo limpio · sin drop-shadow ni borde */
  width: 130px;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  display: block;
  margin-bottom: 4px;
}
.login-hero__group {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.login-hero__countries {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--orange-700);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.login-brand-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-700) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 12px rgba(208, 118, 15, 0.35);
}
.login-brand-text h1 {
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.01em;
}
.login-brand-text .meta {
  font-size: 11px;
  color: var(--fg-3);
  font-family: var(--font-mono);
  margin-top: 2px;
}
.login-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: var(--space-2);
}
.login-eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--orange-500);
}
.login-title {
  font-size: 24px;
  margin-bottom: var(--space-6);
  line-height: 1.2;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.login-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: var(--space-4);
  font-size: 11.5px;
  color: var(--fg-3);
  font-family: var(--font-mono);
}
.login-trust .material-symbols-outlined {
  font-size: 14px;
  color: var(--success-500);
}

/* ═══════════════════════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════════════════════ */

.cockpit-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border-left: 3px solid;
  margin: var(--space-3) 0;
}
.cockpit-alert__icon {
  width: 28px; height: 28px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}
.cockpit-alert h4 {
  font-size: 13.5px;
  margin: 0 0 2px;
}
.cockpit-alert p {
  font-size: 12.5px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.5;
}
.cockpit-alert--info {
  background: var(--info-50);
  border-left-color: var(--info-500);
}
.cockpit-alert--info .cockpit-alert__icon { background: var(--info-500); }
.cockpit-alert--success {
  background: var(--success-50);
  border-left-color: var(--success-500);
}
.cockpit-alert--success .cockpit-alert__icon { background: var(--success-500); }
.cockpit-alert--warning {
  background: var(--warning-50);
  border-left-color: var(--warning-500);
}
.cockpit-alert--warning .cockpit-alert__icon { background: var(--warning-500); }
.cockpit-alert--danger {
  background: var(--danger-50);
  border-left-color: var(--danger-500);
}
.cockpit-alert--danger .cockpit-alert__icon { background: var(--danger-500); }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE @ max-width:768px
   ═══════════════════════════════════════════════════════════════════ */

/* v0.22.27 R18 · Botón hamburguesa fijo + backdrop · ocultos en desktop */
.mobile-menu-trigger { display: none; }
.mobile-sidebar-backdrop { display: none; }

@media (max-width: 768px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    z-index: 100;
    width: 280px;
    transform: translateX(-100%);
    transition: transform var(--duration-base) var(--ease-standard);
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  .app-content {
    padding: var(--space-4);
    padding-top: calc(var(--space-4) + 48px);  /* dejar espacio al botón hamburguesa */
  }
  .login-card {
    padding: var(--space-8) var(--space-6);
  }

  /* v0.22.27 R18 · Botón hamburguesa fijo arriba-izq */
  .mobile-menu-trigger {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 90;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--navy-900);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    cursor: pointer;
  }
  .mobile-menu-trigger .material-symbols-outlined { font-size: 24px; }
  .mobile-menu-trigger:active { transform: scale(0.95); }

  /* Backdrop oscuro detrás del sidebar abierto */
  .mobile-sidebar-backdrop {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.45);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-standard);
  }
  .mobile-sidebar-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
  }
}
