@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap");
:root {
  /* ── COLOUR SCHEMES (semantic tokens) ─────────────────────────────────── */
  --primary: #00022D;
  --on-primary: #FFFFFF;
  --primary-container: #B2B2C2;
  --on-primary-container: #00022D;
  --secondary: #00FF76;
  --on-secondary: #13153A;
  --secondary-container: #E0FFEE;
  --on-secondary-container: #13153A;
  --tertiary: #434AC7;
  --on-tertiary: #FFFFFF;
  --tertiary-container: #ECEDF9;
  --on-tertiary-container: #383EA6;
  --error: #D92D21;
  --on-error: #FDF7F6;
  --error-container: #FCF1F0;
  --on-error-container: #B5261C;
  --background: #F6F7F9;
  --on-background: #00022D;
  --surface: #FFFFFF;
  --on-surface: #00022D;
  --surface-variant: #F0F0F3;
  --on-surface-variant: #4B5565;
  --outline: #D2D5DA;
  --outline-variant: #C0C3EC;
  --surface-tint: #434AC7;
  --shadow: #00022D;
  --scrim: #00022D;
  --inverse-surface: #1F2937;
  --inverse-on-surface: #FCFCFD;
  --inverse-primary: #CCCCD6;
  --primary-fixed: #F0F0F3;
  --on-primary-fixed: #13153A;
  --primary-fixed-dim: #CCCCD6;
  --on-primary-fixed-variant: #4B5565;
  --secondary-fixed: #98FFC8;
  --on-secondary-fixed: #13153A;
  --secondary-fixed-dim: #4DFFA0;
  --on-secondary-fixed-variant: #4B5565;
  --tertiary-fixed: #C0C3EC;
  --on-tertiary-fixed: #2D3185;
  --tertiary-fixed-dim: #A1A4E3;
  --on-tertiary-fixed-variant: #383EA6;
  --surface-dim: #CCCCD6;
  --surface-bright: #FDFDFE;
  --surface-container-lowest: #FFFFFF;
  --surface-container-low: #F6F7F9;
  --surface-container: #F1F2F4;
  --surface-container-high: #E5E7EB;
  --surface-container-highest: #D2D5DA;
  /* ── ADD-ONS: Success · Warning · Information ─────────────────────────────────── */
  --success-success: #079455;
  --success-on-success: #F7FEF9;
  --success-success-container: #DCFAE5;
  --success-on-success-container: #067B47;
  --warning-warning: #F69007;
  --warning-on-warning: #FFFBF5;
  --warning-warning-container: #FEF8EE;
  --warning-on-warning-container: #7B4804;
  --information-information: #0059FF;
  --information-on-information: #F5F9FF;
  --information-information-container: #E5EEFF;
  --information-on-information-container: #004AD4;
  /* ── STATE LAYERS ─────────────────────────────────── */
  --primary-opacity-08: #00022D;
  --primary-opacity-10: #00022D;
  --primary-opacity-16: #00022D;
  --primary-opacity-40: #00022D;
  --primary-opacity-80: #00022D;
  --secondary-opacity-80: #00FF76;
  --tertiary-opacity-80: #434AC7;
  --surface-opacity-08: #FFFFFF;
  --surface-opacity-10: #FFFFFF;
  --surface-opacity-16: #FFFFFF;
  --surface-opacity-40: #FFFFFF;
  --surface-opacity-80: #FFFFFF;
  /* ── SPACING ─────────────────────────────────── */
  --spacing-none: 0px;
  --spacing-2-extra-small: 4px;
  --spacing-extra-small: 8px;
  --spacing-small: 12px;
  --spacing-medium: 16px;
  --spacing-large: 24px;
  --spacing-large-increased: 32px;
  --spacing-extra-large: 40px;
  --spacing-2-extra-large: 48px;
  --spacing-3-extra-large: 64px;
  --spacing-full: 80px;
  --spacing-4-extra-large: 72px;
  --spacing-3-extra-small: 2px;
  /* ── SHAPE / BORDER RADIUS ─────────────────────────────────── */
  --radius-none: 0px;
  --radius-extra-small: 4px;
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 16px;
  --radius-large-increased: 20px;
  --radius-extra-large: 24px;
  --radius-extra-large-increased: 32px;
  --radius-extra-extra-large: 40px;
  --radius-full: 1000px;
  /* ── FONT FAMILY & WEIGHT ─────────────────────────────────── */
  --font-family-brand: "Inter", system-ui, sans-serif;
  --font-weight-bold: 600;
  --font-weight-medium: 500;
  --font-weight-regular: 400;
  --font-family-plain: "Inter", system-ui, sans-serif;
  /* ── TYPESCALE ─────────────────────────────────── */
  --type-body-large-size: 16px;
  --type-body-large-line-height: 24px;
  --type-body-large-weight: 400;
  --type-body-medium-size: 14px;
  --type-body-medium-line-height: 20px;
  --type-body-medium-weight: 400;
  --type-body-small-size: 12px;
  --type-body-small-line-height: 16px;
  --type-body-small-weight: 400;
  --type-display-large-size: 44px;
  --type-display-large-line-height: 52px;
  --type-display-large-weight: 500;
  --type-display-medium-size: 40px;
  --type-display-medium-line-height: 48px;
  --type-display-medium-weight: 500;
  --type-display-small-size: 36px;
  --type-display-small-line-height: 44px;
  --type-display-small-weight: 500;
  --type-headline-large-size: 32px;
  --type-headline-large-line-height: 40px;
  --type-headline-large-weight: 500;
  --type-headline-medium-size: 28px;
  --type-headline-medium-line-height: 36px;
  --type-headline-medium-weight: 500;
  --type-headline-small-size: 24px;
  --type-headline-small-line-height: 32px;
  --type-headline-small-weight: 500;
  --type-label-large-size: 14px;
  --type-label-large-line-height: 20px;
  --type-label-large-weight: 500;
  --type-label-medium-size: 12px;
  --type-label-medium-line-height: 18px;
  --type-label-medium-weight: 500;
  --type-label-small-size: 11px;
  --type-label-small-line-height: 16px;
  --type-label-small-weight: 500;
  --type-title-large-size: 22px;
  --type-title-large-line-height: 28px;
  --type-title-large-weight: 500;
  --type-title-medium-size: 18px;
  --type-title-medium-line-height: 24px;
  --type-title-medium-weight: 500;
  --type-title-small-size: 14px;
  --type-title-small-line-height: 20px;
  --type-title-small-weight: 500;
}

/* Dark mode overrides */
@media (prefers-color-scheme: dark) {
  :root {
    --on-tertiary-fixed-variant: #6268D0;
  }
}
[data-theme=dark] {
  --on-tertiary-fixed-variant: #6268D0;
}

/*
 * ═══════════════════════════════════════════════════════════════
 *  SUPRA DESIGN SYSTEM — Icon Utilities
 *  Sprite: img/icons/supra-icons.svg  (1610 icons · Vuesax Linear)
 *  Usage:
 *    <svg class="icon"><use href="img/icons/supra-icons.svg#i-{category}-{name}"/></svg>
 *    e.g. <svg class="icon"><use href="img/icons/supra-icons.svg#i-arrow-chevron-down"/></svg>
 * ═══════════════════════════════════════════════════════════════
 */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  vertical-align: middle;
  flex-shrink: 0;
  pointer-events: none;
}

/* Size scale */
.icon-xs {
  font-size: 12px;
}

.icon-sm {
  font-size: 16px;
}

/* .icon base size is inherited from parent — use .icon-md/.icon-lg etc for standalone */
.icon-md {
  font-size: 20px;
}

.icon-lg {
  font-size: 24px;
}

.icon-xl {
  font-size: 32px;
}

.icon-2xl {
  font-size: 40px;
}

/* Color shortcuts */
.icon-primary {
  color: var(--primary);
}

.icon-secondary {
  color: var(--secondary);
}

.icon-tertiary {
  color: var(--tertiary);
}

.icon-error {
  color: var(--error);
}

.icon-success {
  color: var(--success-success);
}

.icon-warning {
  color: var(--warning-warning);
}

.icon-info {
  color: var(--information-information);
}

.icon-muted {
  color: var(--on-surface-variant);
}

.icon-on-primary {
  color: var(--on-primary);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-plain);
  background: var(--background);
  color: var(--on-background);
}

@media (max-width: 768px) {
  :root {
    /* Body: medium → small */
    --type-body-medium-size:           var(--type-body-small-size);
    --type-body-medium-line-height:    var(--type-body-small-line-height);

    /* Headlines: bajan hacia title-large */
    --type-headline-large-size:        var(--type-headline-small-size);
    --type-headline-large-line-height: var(--type-headline-small-line-height);
    --type-headline-medium-size:       var(--type-title-large-size);
    --type-headline-medium-line-height:var(--type-title-large-line-height);
    --type-headline-small-size:        var(--type-title-large-size);
    --type-headline-small-line-height: var(--type-title-large-line-height);
  }
}

p, li, span, label, td, th, caption {
  font-size: var(--type-body-medium-size);
  line-height: var(--type-body-medium-line-height);
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* _typography.scss */
/* Typography Mixins */
/* Typography Placeholders */
.display-medium, .display-large {
  color: var(--sys-on-surface, var(--Schemes-On-Surface, #00022D));
  leading-trim: both;
  text-edge: cap;
}

/* Semantic Classes: Title */
.type-title-large {
  font-size: var(--type-title-large-size);
  line-height: var(--type-title-large-line-height);
  font-weight: var(--type-title-large-weight);
  color: var(--on-surface);
}

.type-title-large-emphasized {
  font-size: var(--type-title-large-size);
  line-height: var(--type-title-large-line-height);
  font-weight: var(--font-weight-bold);
  color: var(--on-surface);
}

.type-headline-medium-emphasized {
  font-size: var(--type-headline-medium-size);
  line-height: var(--type-headline-medium-line-height);
  font-weight: var(--font-weight-bold);
  color: var(--on-surface);
}

/* Baseline variants — medium (500) */
.display-large             { font-size: var(--type-display-large-size);    line-height: var(--type-display-large-line-height);    font-weight: var(--type-display-large-weight); }
.display-medium            { font-size: var(--type-display-medium-size);   line-height: var(--type-display-medium-line-height);   font-weight: var(--type-display-medium-weight); }
.display-small             { font-size: var(--type-display-small-size);    line-height: var(--type-display-small-line-height);    font-weight: var(--type-display-small-weight); }
.headline-large            { font-size: var(--type-headline-large-size);   line-height: var(--type-headline-large-line-height);   font-weight: var(--type-headline-large-weight); }
.headline-medium           { font-size: var(--type-headline-medium-size);  line-height: var(--type-headline-medium-line-height);  font-weight: var(--type-headline-medium-weight); }
.headline-small            { font-size: var(--type-headline-small-size);   line-height: var(--type-headline-small-line-height);   font-weight: var(--type-headline-small-weight); }
.label-large               { font-size: var(--type-label-large-size);      line-height: var(--type-label-large-line-height);      font-weight: var(--type-label-large-weight); }
.label-medium              { font-size: var(--type-label-medium-size);     line-height: var(--type-label-medium-line-height);     font-weight: var(--type-label-medium-weight); }
.label-small               { font-size: var(--type-label-small-size);      line-height: var(--type-label-small-line-height);      font-weight: var(--type-label-small-weight); }
.body-large                { font-size: var(--type-body-large-size);       line-height: var(--type-body-large-line-height);       font-weight: var(--type-body-large-weight); }
.body-medium               { font-size: var(--type-body-medium-size);      line-height: var(--type-body-medium-line-height);      font-weight: var(--type-body-medium-weight); }
.body-small                { font-size: var(--type-body-small-size);       line-height: var(--type-body-small-line-height);       font-weight: var(--type-body-small-weight); }

/* Emphasized variants — semi-bold (600) */
.display-large-emphasized  { font-size: var(--type-display-large-size);    line-height: var(--type-display-large-line-height);    font-weight: var(--font-weight-bold); }
.display-medium-emphasized { font-size: var(--type-display-medium-size);   line-height: var(--type-display-medium-line-height);   font-weight: var(--font-weight-bold); }
.display-small-emphasized  { font-size: var(--type-display-small-size);    line-height: var(--type-display-small-line-height);    font-weight: var(--font-weight-bold); }
.headline-large-emphasized { font-size: var(--type-headline-large-size);   line-height: var(--type-headline-large-line-height);   font-weight: var(--font-weight-bold); }
.headline-medium-emphasized{ font-size: var(--type-headline-medium-size);  line-height: var(--type-headline-medium-line-height);  font-weight: var(--font-weight-bold); }
.headline-small-emphasized { font-size: var(--type-headline-small-size);   line-height: var(--type-headline-small-line-height);   font-weight: var(--font-weight-bold); }
.title-large               { font-size: var(--type-title-large-size);      line-height: var(--type-title-large-line-height);      font-weight: var(--type-title-large-weight); }
.title-medium              { font-size: var(--type-title-medium-size);     line-height: var(--type-title-medium-line-height);     font-weight: var(--type-title-medium-weight); }
.title-small               { font-size: var(--type-title-small-size);      line-height: var(--type-title-small-line-height);      font-weight: var(--type-title-small-weight); }
.title-large-emphasized    { font-size: var(--type-title-large-size);      line-height: var(--type-title-large-line-height);      font-weight: var(--font-weight-bold); }
.title-medium-emphasized   { font-size: var(--type-title-medium-size);     line-height: var(--type-title-medium-line-height);     font-weight: var(--font-weight-bold); }
.title-small-emphasized    { font-size: var(--type-title-small-size);      line-height: var(--type-title-small-line-height);      font-weight: var(--font-weight-bold); }
.body-large-emphasized     { font-size: var(--type-body-large-size);       line-height: var(--type-body-large-line-height);       font-weight: var(--font-weight-bold); }
.body-medium-emphasized    { font-size: var(--type-body-medium-size);      line-height: var(--type-body-medium-line-height);      font-weight: var(--font-weight-bold); }
.body-small-emphasized     { font-size: var(--type-body-small-size);       line-height: var(--type-body-small-line-height);       font-weight: var(--font-weight-bold); }
.label-large-emphasized    { font-size: var(--type-label-large-size);      line-height: var(--type-label-large-line-height);      font-weight: var(--font-weight-bold); }
.label-medium-emphasized   { font-size: var(--type-label-medium-size);     line-height: var(--type-label-medium-line-height);     font-weight: var(--font-weight-bold); }
.label-small-emphasized    { font-size: var(--type-label-small-size);      line-height: var(--type-label-small-line-height);      font-weight: var(--font-weight-bold); }

/* Semantic Classes: Display */
.display-large {
  font-family: var(--Static-Display-Large-Font, Inter);
  font-size: var(--Static-Display-Large-Size);
  font-style: normal;
  font-weight: 500;
  letter-spacing: var(--Static-Display-Large-Tracking, 0);
  line-height: var(--Static-Display-Large-Line-Height);
}

.display-medium {
  font-family: var(--Static-Display-Medium-Font, Inter);
  font-size: var(--Static-Display-Medium-Size);
  font-style: normal;
  font-weight: 500;
  letter-spacing: var(--Static-Display-Medium-Tracking, 0);
  line-height: var(--Static-Display-Medium-Line-Height);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.mt-xs {
  margin-top: var(--spacing-extra-small);
}

.mt-sm {
  margin-top: var(--spacing-small);
}

.mt-md {
  margin-top: var(--spacing-medium);
}

.mb-xs {
  margin-bottom: var(--spacing-extra-small);
}

.mb-sm {
  margin-bottom: var(--spacing-small);
}

.mb-md {
  margin-bottom: var(--spacing-medium);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--spacing-large);
}

.appbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--outline);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.appbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--font-weight-medium);
  font-size: var(--type-title-medium-size);
  color: var(--on-surface);
  text-decoration: none;
}

.appbar-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: var(--radius-small);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-primary);
  font-weight: var(--font-weight-medium);
  font-size: 14px;
}

.appbar-spacer {
  flex: 1;
}

.appbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.appbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 120ms;
  border: none;
  background: none;
  font-family: inherit;
}

.appbar-user:hover {
  background: var(--surface-container);
}

.appbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  flex-shrink: 0;
}

.appbar-user-info {
  text-align: left;
}

.appbar-user-name {
  font-size: var(--type-label-large-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
}

.appbar-user-role {
  font-size: 11px;
  color: var(--on-surface-variant);
}

.appbar-user-caret {
  width: 16px;
  height: 16px;
  color: var(--on-surface-variant);
  flex-shrink: 0;
}

/* Notification dot on bell icon */
.appbar-bell-wrap {
  position: relative;
  display: inline-flex;
}

.appbar-bell-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--warning-warning);
  border: 2px solid var(--surface);
  pointer-events: none;
}

/* Mobile appbar */
.appbar-mobile {
  height: 44px;
  padding: 0 8px;
}

.appbar-primary {
  background: var(--primary);
  border-bottom: none;
  height: 56px;
  padding: 0 16px;
}
.appbar-primary .appbar-logo svg {
  height: 28px;
}
.appbar-primary .appbar-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
}
.appbar-primary .appbar-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.appbar-primary .appbar-actions {
  gap: 4px;
}
.appbar-primary .icon-btn-ghost {
  color: rgba(255, 255, 255, 0.9);
}
.appbar-primary .appbar-avatar {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}
.appbar-primary .appbar-user-name {
  color: #fff;
  font-size: 13px;
}
.appbar-primary .appbar-user-role {
  color: rgba(255, 255, 255, 0.6);
}
.appbar-primary .appbar-user .icon {
  color: rgba(255, 255, 255, 0.6);
}
.appbar-primary .appbar-user:hover {
  background: rgba(255, 255, 255, 0.08);
}
.appbar-primary .appbar-bell-dot {
  background: var(--warning-warning);
  border-color: var(--primary);
}

.appbar-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-small);
  color: var(--on-surface);
  font-size: 20px;
}

.appbar-mobile .appbar-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .appbar {
    background: var(--primary);
    border-bottom: none;
    height: 56px;
    padding: 0 16px;
  }
  .appbar .appbar-logo svg {
    height: 28px;
  }
  .appbar .appbar-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
  }
  .appbar .appbar-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .appbar .appbar-actions {
    gap: 4px;
  }
  .appbar .icon-btn-ghost {
    color: rgba(255, 255, 255, 0.9);
  }
  .appbar .appbar-avatar {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
  }
  .appbar .appbar-user-name {
    color: #fff;
    font-size: 13px;
  }
  .appbar .appbar-user-role {
    color: rgba(255, 255, 255, 0.6);
  }
  .appbar .appbar-user .icon {
    color: rgba(255, 255, 255, 0.6);
  }
  .appbar .appbar-user:hover {
    background: rgba(255, 255, 255, 0.08);
  }
  .appbar .appbar-bell-dot {
    background: var(--warning-warning);
    border-color: var(--primary);
  }
  /* Solo logo + hamburguesa en mobile */
  .appbar .appbar-actions { display: none; }
  .appbar .appbar-spacer { display: none; }
  .appbar { justify-content: space-between; }
}
.sidebar {
  width: 156px;
  background: var(--primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 0 32px 0;
  flex-shrink: 0;
}

.sidebar-logo {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-logo img, .sidebar-logo svg {
  height: 48px;
  width: auto;
  display: block;
}

.sidebar-logo-mark {
  width: 40px;
  height: 40px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: 0;
  cursor: pointer;
  transition: background 120ms;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  background: none;
  font-family: inherit;
  position: relative;
  width: 100%;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

.sidebar-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--secondary);
}

.sidebar-item-icon {
  font-size: 20px;
}

.sidebar-item-wrap {
  position: relative;
  width: 100%;
}

.sidebar-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  z-index: var(--z-dropdown);
  align-items: flex-start;
}
.sidebar-submenu.open {
  display: flex;
}

.sidebar-submenu-caret {
  width: 8px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 22px;
}
.sidebar-submenu-caret::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 8px solid var(--surface);
  filter: drop-shadow(-1px 0 1px rgba(0, 2, 45, 0.06));
}

.sidebar-submenu-panel {
  background: var(--surface);
  border-radius: var(--radius-medium);
  box-shadow: 0 4px 8px rgba(0, 2, 45, 0.08);
  overflow: hidden;
  width: 240px;
}

.sidebar-subitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  font-size: var(--type-body-small-size);
  font-weight: var(--font-weight-regular);
  color: var(--tertiary);
  cursor: pointer;
  transition: background 100ms;
  border-bottom: 1px solid var(--outline);
  text-decoration: none;
  width: 100%;
}
.sidebar-subitem:last-child {
  border-bottom: none;
}
.sidebar-subitem:hover {
  background: var(--surface-container-low);
}

.sidebar-subitem-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--tertiary);
}

.sidebar-badge {
  position: absolute;
  top: 6px;
  right: 8px;
  background: var(--secondary);
  color: var(--on-secondary);
  font-size: 9px;
  font-weight: var(--font-weight-medium);
  padding: 2px 4px;
  line-height: 1;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.sidebar-footer {
  padding: 0;
  margin-top: auto;
}

.sidebar-footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
}

.sidebar-footer-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
}

/* Back Office (light) sidebar variant */
.sidebar-light {
  background: var(--surface);
  border-right: 1px solid var(--outline-variant);
}

.sidebar-light .sidebar-item {
  color: var(--tertiary);
}

.sidebar-light .sidebar-item:hover {
  background: rgba(67, 74, 199, 0.08);
  color: var(--tertiary);
}

.sidebar-light .sidebar-item.active {
  background: linear-gradient(115.63deg, rgb(45, 49, 133) 4.136%, rgb(67, 74, 199) 105.89%);
  color: var(--on-tertiary);
}

.sidebar-light .sidebar-footer-item {
  color: var(--tertiary);
}

.sidebar-light .sidebar-footer-item:hover {
  background: rgba(67, 74, 199, 0.08);
  color: var(--tertiary);
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════════ */
.sidebar-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-small);
  color: rgba(255, 255, 255, 0.9);
  display: none; /* solo visible en mobile drawer */
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .sidebar-menu-btn {
    display: flex;
  }
}
.sidebar-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.sidebar-menu-btn .icon {
  width: 24px;
  height: 24px;
}

.sidebar-drawer {
  padding: 0;
  overflow-y: auto;
}
.sidebar-drawer .sidebar-logo {
  height: 56px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-drawer .sidebar-logo > img, .sidebar-drawer .sidebar-logo > svg {
  height: 40px;
  width: auto;
}
.sidebar-drawer .sidebar-nav {
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
}
.sidebar-drawer .sidebar-item {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  color: var(--on-primary);
  border-radius: 0;
}
.sidebar-drawer .sidebar-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--secondary);
}
.sidebar-drawer .sidebar-item.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--secondary);
  font-weight: 600;
}
.sidebar-drawer .sidebar-item-icon {
  font-size: 20px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.sidebar-drawer .sidebar-submenu {
  position: relative;
  left: auto;
  top: auto;
  box-shadow: none;
  background: none;
  border-radius: 0;
  width: 100%;
  display: none;
  flex-direction: column;
  padding: 0;
  align-items: stretch;
}
.sidebar-drawer .sidebar-submenu.open {
  display: flex;
}
.sidebar-drawer .sidebar-subitem {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 52px;
  font-size: 13px;
  font-weight: 400;
  color: var(--on-primary);
  cursor: pointer;
  transition: background 100ms, color 100ms;
  text-decoration: none;
  border-bottom: none;
}
.sidebar-drawer .sidebar-subitem:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--secondary);
}
.sidebar-drawer .sidebar-subitem.active {
  color: var(--secondary);
  font-weight: 600;
}
.sidebar-drawer .sidebar-subitem-icon {
  font-size: 20px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.sidebar-drawer .sidebar-footer {
  margin-top: auto;
  padding: 8px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-drawer .sidebar-footer-item {
  flex-direction: row;
  gap: 16px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  width: 100%;
  border-radius: 0;
  justify-content: flex-start;
  height: auto;
}
.sidebar-drawer {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: unset;
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-drawer);
    transform: translateX(-100%);
    transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
    min-height: unset;
  }
  .sidebar.sidebar-open {
    transform: translateX(0);
  }
  .sidebar {
    padding: 0;
    overflow-y: auto;
  }
  .sidebar .sidebar-logo {
    height: 56px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .sidebar .sidebar-logo > img, .sidebar .sidebar-logo > svg {
    height: 40px;
    width: auto;
  }
  .sidebar .sidebar-nav {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }
  .sidebar .sidebar-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    color: var(--on-primary);
    border-radius: 0;
  }
  .sidebar .sidebar-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--secondary);
  }
  .sidebar .sidebar-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--secondary);
    font-weight: 600;
  }
  .sidebar .sidebar-item-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
  }
  .sidebar .sidebar-submenu {
    position: relative;
    left: auto;
    top: auto;
    box-shadow: none;
    background: none;
    border-radius: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    padding: 0;
    align-items: stretch;
  }
  .sidebar .sidebar-submenu.open {
    display: flex;
  }
  .sidebar .sidebar-subitem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px 10px 52px;
    font-size: 13px;
    font-weight: 400;
    color: var(--on-primary);
    cursor: pointer;
    transition: background 100ms, color 100ms;
    text-decoration: none;
    border-bottom: none;
  }
  .sidebar .sidebar-subitem:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--secondary);
  }
  .sidebar .sidebar-subitem.active {
    color: var(--secondary);
    font-weight: 600;
  }
  .sidebar .sidebar-subitem-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
  }
  .sidebar .sidebar-footer {
    margin-top: auto;
    padding: 8px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .sidebar .sidebar-footer-item {
    flex-direction: row;
    gap: 16px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    width: 100%;
    border-radius: 0;
    justify-content: flex-start;
    height: auto;
  }
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 2, 45, 0.6);
  z-index: calc(var(--z-drawer) - 1);
  backdrop-filter: blur(2px);
}
.sidebar-backdrop.active {
  display: block;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-size: var(--type-body-medium-size);
  line-height: var(--type-body-medium-line-height);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--on-surface-variant);
  text-decoration: none;
  padding: 2px 4px;
  line-height: 1;
  border-radius: var(--radius-extra-small);
  transition: background 100ms, color 100ms;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

.breadcrumb-item:hover {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
}

.breadcrumb-item.active {
  color: var(--on-surface);
  font-weight: var(--font-weight-medium);
  cursor: default;
}

.breadcrumb-item.active:hover {
  background: none;
  color: var(--on-surface);
}

.breadcrumb-sep {
  color: var(--outline);
  font-size: 14px;
  user-select: none;
}

.breadcrumb-back {
  color: var(--primary);
  font-size: 18px;
}

/* ═══════════════════════════════════════════════════════════════
   APPBAR / TOP NAVIGATION
═══════════════════════════════════════════════════════════════ */
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.field label {
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface-variant);
}

.field-row {
  display: flex;
  gap: var(--spacing-small);
  align-items: flex-end;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-medium);
  padding: var(--spacing-large);
  background: var(--surface);
  border-radius: var(--radius-medium);
  border: 1px solid var(--outline);
}

.site-footer {
  padding: var(--spacing-large) var(--spacing-3-extra-large);
  background: var(--surface-container-low);
  border-top: 1px solid var(--outline);
  font-size: var(--type-body-small-size);
  color: var(--on-surface-variant);
}

/* Full-page shell */
.layout-page {
  display: flex;
  flex-direction: row;
  height: 100vh;
  overflow: hidden;
}

.layout-right {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.layout-right .appbar {
  position: relative;
  flex-shrink: 0;
}

.layout-main {
  flex: 1;
  overflow: auto;
  background: var(--surface-container-low);
  padding: 32px;
}

/* Onboarding panel */
.onboarding-panel {
  width: 264px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.onboarding-panel-title {
  font-size: var(--type-title-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  margin-bottom: 24px;
}

.onboarding-panel-content {
  flex: 1;
}

.onboarding-panel-footer {
  padding-top: 16px;
  border-top: 1px solid var(--outline);
  font-size: var(--type-body-small-size);
  color: var(--on-surface-variant);
}

.onboarding-panel-footer a {
  color: var(--tertiary);
  text-decoration: none;
}

.onboarding-panel-footer a:hover {
  text-decoration: underline;
}

/* Design-kit layout preview */
.layout-preview-card {
  border: 1px solid var(--outline);
  border-radius: var(--radius-medium);
  overflow: hidden;
  background: var(--surface-container-low);
}

.layout-preview-viewport {
  width: 342px;
  height: 193px;
  overflow: hidden;
  position: relative;
}

.layout-preview-scale {
  width: 1366px;
  height: 768px;
  transform: scale(0.25);
  transform-origin: top left;
  pointer-events: none;
}

.layout-preview-footer {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--outline);
  background: var(--surface);
}

.layout-preview-name {
  font-size: var(--type-label-large-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
}

.layout-preview-link {
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--tertiary);
  text-decoration: none;
}

.layout-preview-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .layout-page {
    flex-direction: column;
  }
  .layout-right {
    flex: 1;
    min-width: 0;
    width: 100%;
  }
  .layout-main {
    padding: 16px;
  }
  .fx-table-card {
    padding: 16px !important;
  }
}
/* ─────────────────────────────────────────────
   BASE BUTTON
───────────────────────────────────────────── */
/*
 * Disabled solid colours — computed equivalents of the M3 12% / 38% state
 * layers on Supra's --background (#F6F7F9). No rgba, no opacity.
 *   rgba(0,2,45, 0.12) on #F6F7F9  →  #D9DAE1
 *   rgba(0,2,45, 0.38) on #F6F7F9  →  #9899AB
 */
:root {
  --btn-disabled-bg: #D9DAE1;
  --btn-disabled-fg: #9899AB;
  --btn-disabled-border: #DDDEE5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: var(--font-family-plain);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0;
  text-decoration: none;
  transition: background 120ms ease, box-shadow 120ms ease, color 120ms ease;
  white-space: nowrap;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
  box-shadow: inset 0 0 0 2px var(--outline);
}

/* ── SIZES ── */
.btn-lg {
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius-medium);
  font-size: var(--type-label-large-size);
  line-height: var(--type-label-large-line-height);
}

.btn-md {
  height: 40px;
  padding: 0 20px;
  border-radius: var(--radius-medium);
  font-size: var(--type-label-large-size);
  line-height: var(--type-label-large-line-height);
}

.btn-sm {
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-medium);
  font-size: var(--type-label-medium-size);
  line-height: var(--type-label-medium-line-height);
}

/* Reduce left padding when button has a leading icon */
.btn-lg:has(.btn-icon) { padding-left: 16px; }
.btn-md:has(.btn-icon) { padding-left: 14px; }
.btn-sm:has(.btn-icon) { padding-left: 12px; }

/* Mobile: todos los botones bajan a tamaño small */
@media (max-width: 768px) {
  .btn-lg,
  .btn-md {
    height: 32px;
    padding: 0 16px;
    font-size: var(--type-label-medium-size);
    line-height: var(--type-label-medium-line-height);
  }
  .btn-lg:has(.btn-icon),
  .btn-md:has(.btn-icon) { padding-left: 12px; }
}

/* Icon inside button */
.btn .btn-icon {
  display: block;
  width: 1.125em;
  height: 1.125em;
  flex-shrink: 0;
  color: currentColor;
  fill: currentColor;
}

/* ─────────────────────────────────────────────
   FILLED
   hover/focus/active: color-mix of fg into bg (two solid colours, no opacity)
───────────────────────────────────────────── */
.btn-filled {
  background: var(--btn-bg, var(--primary));
  color: var(--btn-fg, var(--on-primary));
}

.btn-filled:hover {
  background: var(--on-tertiary-container);
}

.btn-filled:focus-visible {
  background: var(--on-tertiary-container);
  box-shadow: inset 0 0 0 2px var(--outline);
}

.btn-filled:active {
  background: var(--on-tertiary-fixed);
  color: var(--tertiary-fixed-dim);
}

.btn-filled:disabled,
.btn-filled[aria-disabled=true] {
  background: var(--btn-disabled-bg);
  color: var(--btn-disabled-fg);
  cursor: not-allowed;
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   TONAL
───────────────────────────────────────────── */
.btn-tonal {
  background: var(--btn-bg, var(--secondary-container));
  color: var(--btn-fg, var(--on-secondary-container));
}

.btn-tonal:hover {
  background: color-mix(in srgb, var(--btn-fg, var(--on-secondary-container)) 10%, var(--btn-bg, var(--secondary-container)));
}

.btn-tonal:focus-visible {
  background: color-mix(in srgb, var(--btn-fg, var(--on-secondary-container)) 12%, var(--btn-bg, var(--secondary-container)));
}

.btn-tonal:active {
  background: color-mix(in srgb, var(--btn-fg, var(--on-secondary-container)) 16%, var(--btn-bg, var(--secondary-container)));
}

.btn-tonal:disabled,
.btn-tonal[aria-disabled=true] {
  background: var(--btn-disabled-bg);
  color: var(--btn-disabled-fg);
  cursor: not-allowed;
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   OUTLINED
   hover/focus/active: mix fg colour into surface (solid base, no transparent)
───────────────────────────────────────────── */
.btn-outlined {
  background: var(--surface);
  color: var(--btn-fg, var(--primary));
  border: 1px solid var(--btn-border, var(--outline));
}

.btn-outlined:hover {
  background: color-mix(in srgb, var(--btn-fg, var(--primary)) 10%, var(--surface));
}

.btn-outlined:focus-visible {
  background: color-mix(in srgb, var(--btn-fg, var(--primary)) 12%, var(--surface));
  border-color: var(--btn-fg, var(--primary));
}

.btn-outlined:active {
  background: color-mix(in srgb, var(--btn-fg, var(--primary)) 16%, var(--surface));
}

.btn-outlined:disabled,
.btn-outlined[aria-disabled=true] {
  border-color: var(--btn-disabled-border);
  color: var(--btn-disabled-fg);
  background: var(--surface);
  cursor: not-allowed;
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   ELEVATED
───────────────────────────────────────────── */
.btn-elevated {
  background: var(--surface-container-low);
  color: var(--btn-fg, var(--primary));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1490196078), 0 1px 3px 1px rgba(0, 0, 0, 0.1019607843);
}

.btn-elevated:hover {
  background: color-mix(in srgb, var(--btn-fg, var(--primary)) 10%, var(--surface-container-low));
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 2px 6px 2px rgba(0, 0, 0, 0.1215686275);
}

.btn-elevated:focus-visible {
  background: color-mix(in srgb, var(--btn-fg, var(--primary)) 12%, var(--surface-container-low));
}

.btn-elevated:active {
  background: color-mix(in srgb, var(--btn-fg, var(--primary)) 16%, var(--surface-container-low));
}

.btn-elevated:disabled,
.btn-elevated[aria-disabled=true] {
  background: var(--btn-disabled-bg);
  color: var(--btn-disabled-fg);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   TEXT
───────────────────────────────────────────── */
.btn-text {
  background: var(--surface);
  color: var(--btn-fg, var(--primary));
  padding-left: 12px;
  padding-right: 12px;
}

.btn-text:hover {
  background: color-mix(in srgb, var(--btn-fg, var(--primary)) 10%, var(--surface));
}

.btn-text:focus-visible {
  background: color-mix(in srgb, var(--btn-fg, var(--primary)) 12%, var(--surface));
}

.btn-text:active {
  background: color-mix(in srgb, var(--btn-fg, var(--primary)) 16%, var(--surface));
}

.btn-text:disabled,
.btn-text[aria-disabled=true] {
  color: var(--btn-disabled-fg);
  background: var(--surface);
  cursor: not-allowed;
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   COLOR MODIFIERS  (apply to any variant)
───────────────────────────────────────────── */
.btn-tertiary.btn-filled {
  --btn-bg: var(--tertiary);
  --btn-fg: var(--on-tertiary);
}

.btn-tertiary.btn-tonal {
  --btn-bg: var(--tertiary-container);
  --btn-fg: var(--on-tertiary-container);
}

.btn-tertiary.btn-outlined {
  --btn-fg: var(--tertiary);
  --btn-border: var(--tertiary);
}

.btn-tertiary.btn-elevated {
  --btn-fg: var(--tertiary);
}

.btn-tertiary.btn-text {
  --btn-fg: var(--tertiary);
}

.btn-error.btn-filled {
  --btn-bg: var(--error);
  --btn-fg: var(--on-error);
}

.btn-error.btn-filled:hover {
  background: var(--on-error-container);
}

.btn-error.btn-filled:focus-visible {
  background: var(--on-error-container);
  box-shadow: inset 0 0 0 2px var(--outline);
}

.btn-error.btn-filled:active {
  background: var(--on-error-container);
  color: var(--error-container);
}

.btn-error.btn-tonal {
  --btn-bg: var(--error-container);
  --btn-fg: var(--on-error-container);
}

.btn-error.btn-outlined {
  --btn-fg: var(--error);
  --btn-border: var(--error);
}

.btn-error.btn-elevated {
  --btn-fg: var(--error);
}

.btn-error.btn-text {
  --btn-fg: var(--error);
}

.btn-success.btn-filled {
  --btn-bg: var(--success-success);
  --btn-fg: var(--success-on-success);
  color: var(--success-on-success);
}

.btn-success.btn-filled:hover {
  background: var(--success-on-success-container);
  color: var(--success-on-success);
}

.btn-success.btn-filled:focus-visible {
  background: var(--success-on-success-container);
  color: var(--success-on-success);
  box-shadow: inset 0 0 0 2px var(--outline);
}

.btn-success.btn-filled:active {
  background: var(--success-on-success-container);
  color: var(--success-success-container);
}

.btn-success.btn-tonal {
  --btn-bg: var(--success-success-container);
  --btn-fg: var(--success-on-success-container);
}

.btn-success.btn-outlined {
  --btn-fg: var(--success-success);
  --btn-border: var(--success-success);
}

.btn-success.btn-elevated {
  --btn-fg: var(--success-success);
}

.btn-success.btn-text {
  --btn-fg: var(--success-success);
}

.btn-warning.btn-filled {
  --btn-bg: var(--warning-warning);
  --btn-fg: var(--warning-on-warning);
}

.btn-warning.btn-filled:hover {
  background: var(--warning-on-warning-container);
  color: var(--warning-on-warning);
}

.btn-warning.btn-filled:focus-visible {
  background: var(--warning-on-warning-container);
  color: var(--warning-on-warning);
  box-shadow: inset 0 0 0 2px var(--outline);
}

.btn-warning.btn-filled:active {
  background: var(--warning-on-warning-container);
  color: var(--warning-warning-container);
}

.btn-warning.btn-tonal {
  --btn-bg: var(--warning-warning-container);
  --btn-fg: var(--warning-on-warning-container);
}

.btn-warning.btn-outlined {
  --btn-fg: var(--warning-warning);
  --btn-border: var(--warning-warning);
}

.btn-warning.btn-elevated {
  --btn-fg: var(--warning-warning);
}

.btn-warning.btn-text {
  --btn-fg: var(--warning-warning);
}

.btn-info.btn-filled {
  --btn-bg: var(--information-information);
  --btn-fg: var(--information-on-information);
}

.btn-info.btn-filled:hover {
  background: var(--information-on-information-container);
  color: var(--information-on-information);
}

.btn-info.btn-filled:focus-visible {
  background: var(--information-on-information-container);
  color: var(--information-on-information);
  box-shadow: inset 0 0 0 2px var(--outline);
}

.btn-info.btn-filled:active {
  background: var(--information-on-information-container);
  color: var(--information-information-container);
}

.btn-info.btn-tonal {
  --btn-bg: var(--information-information-container);
  --btn-fg: var(--information-on-information-container);
}

.btn-info.btn-outlined {
  --btn-fg: var(--information-information);
  --btn-border: var(--information-information);
}

.btn-info.btn-elevated {
  --btn-fg: var(--information-information);
}

.btn-info.btn-text {
  --btn-fg: var(--information-information);
}

.btn-outlined:focus-visible,
.btn-elevated:focus-visible,
.btn-text:focus-visible {
  outline: 2px solid var(--tertiary);
  outline-offset: 2px;
  box-shadow: none;
}

/* ─────────────────────────────────────────────
   ICON BUTTON BASE
───────────────────────────────────────────── */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: background 120ms ease, box-shadow 120ms ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

/* Sizes */
.icon-btn-lg {
  width: 48px;
  height: 48px;
}

.icon-btn-md {
  width: 40px;
  height: 40px;
}

.icon-btn-sm {
  width: 32px;
  height: 32px;
}

/* Icon sizing within icon buttons — explicit px, not font-size */
.icon-btn-lg .icon {
  width: 24px;
  height: 24px;
}

.icon-btn-md .icon {
  width: 20px;
  height: 20px;
}

.icon-btn-sm .icon {
  width: 16px;
  height: 16px;
}

/* Ensure SVG inherits button color for stroke */
.icon-btn .icon {
  color: inherit;
  flex-shrink: 0;
}

/* ── Icon Button Variants ── */
.icon-btn-filled {
  background: var(--ibtn-bg, var(--primary));
  color: var(--ibtn-fg, var(--on-primary));
}

.icon-btn-filled:hover {
  background: color-mix(in srgb, var(--ibtn-fg, var(--on-primary)) 10%, var(--ibtn-bg, var(--primary)));
}

.icon-btn-filled:focus {
  background: color-mix(in srgb, var(--ibtn-fg, var(--on-primary)) 12%, var(--ibtn-bg, var(--primary)));
}

.icon-btn-filled:active {
  background: color-mix(in srgb, var(--ibtn-fg, var(--on-primary)) 16%, var(--ibtn-bg, var(--primary)));
}

.icon-btn-tonal {
  background: var(--ibtn-bg, var(--secondary-container));
  color: var(--ibtn-fg, var(--on-secondary-container));
}

.icon-btn-tonal:hover {
  background: color-mix(in srgb, var(--ibtn-fg, var(--on-secondary-container)) 10%, var(--ibtn-bg, var(--secondary-container)));
}

.icon-btn-tonal:focus {
  background: color-mix(in srgb, var(--ibtn-fg, var(--on-secondary-container)) 12%, var(--ibtn-bg, var(--secondary-container)));
}

.icon-btn-tonal:active {
  background: color-mix(in srgb, var(--ibtn-fg, var(--on-secondary-container)) 16%, var(--ibtn-bg, var(--secondary-container)));
}

.icon-btn-outlined {
  background: var(--surface);
  color: var(--ibtn-fg, var(--primary));
  border: 1px solid var(--ibtn-border, var(--outline));
}

.icon-btn-outlined:hover {
  background: color-mix(in srgb, var(--ibtn-fg, var(--primary)) 10%, var(--surface));
}

.icon-btn-outlined:focus {
  background: color-mix(in srgb, var(--ibtn-fg, var(--primary)) 12%, var(--surface));
  border-color: var(--ibtn-fg, var(--primary));
}

.icon-btn-outlined:active {
  background: color-mix(in srgb, var(--ibtn-fg, var(--primary)) 16%, var(--surface));
}

.icon-btn-ghost {
  background: var(--surface);
  color: var(--ibtn-fg, var(--on-surface-variant));
}

.icon-btn-ghost:hover {
  background: color-mix(in srgb, var(--ibtn-fg, var(--on-surface-variant)) 10%, var(--surface));
}

.icon-btn-ghost:focus {
  background: color-mix(in srgb, var(--ibtn-fg, var(--on-surface-variant)) 12%, var(--surface));
}

.icon-btn-ghost:active {
  background: color-mix(in srgb, var(--ibtn-fg, var(--on-surface-variant)) 16%, var(--surface));
}

/* Disabled state for icon buttons */
.icon-btn:disabled,
.icon-btn[aria-disabled=true] {
  background: var(--btn-disabled-bg) !important;
  color: var(--btn-disabled-fg) !important;
  border-color: transparent !important;
  cursor: not-allowed;
  pointer-events: none;
}

.icon-btn-ghost:disabled,
.icon-btn-outlined:disabled {
  background: var(--surface) !important;
  border-color: var(--btn-disabled-border) !important;
}

/* ── Icon Button Color Modifiers ── */
.icon-btn-tertiary.icon-btn-filled {
  --ibtn-bg: var(--tertiary);
  --ibtn-fg: var(--on-tertiary);
}

.icon-btn-tertiary.icon-btn-tonal {
  --ibtn-bg: var(--tertiary-container);
  --ibtn-fg: var(--on-tertiary-container);
}

.icon-btn-tertiary.icon-btn-outlined {
  --ibtn-fg: var(--tertiary);
  --ibtn-border: var(--tertiary);
}

.icon-btn-tertiary.icon-btn-ghost {
  --ibtn-fg: var(--tertiary);
}

.icon-btn-error.icon-btn-filled {
  --ibtn-bg: var(--error);
  --ibtn-fg: var(--on-error);
}

.icon-btn-error.icon-btn-tonal {
  --ibtn-bg: var(--error-container);
  --ibtn-fg: var(--on-error-container);
}

.icon-btn-error.icon-btn-outlined {
  --ibtn-fg: var(--error);
  --ibtn-border: var(--error);
}

.icon-btn-error.icon-btn-ghost {
  --ibtn-fg: var(--error);
}

/* ═══════════════════════════════════════════════════════════════
   SNACKBAR / TOAST
═══════════════════════════════════════════════════════════════ */
.icon-btn:focus-visible {
  outline: 2px solid var(--tertiary);
  outline-offset: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: var(--type-label-small-size);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  white-space: nowrap;
}

.badge-sm {
  padding: 1px 6px;
  font-size: var(--type-label-small-size);
  line-height: 1.4;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--type-label-large-size);
  font-weight: var(--font-weight-bold);
  line-height: var(--type-label-large-line-height);
  cursor: pointer;
  transition: background 100ms, border-color 100ms, box-shadow 100ms;
  white-space: nowrap;
  user-select: none;
  /* defaults — secondary filled */
  --chip-bg: var(--secondary-container);
  --chip-fg: var(--on-secondary-container);
  --chip-border: transparent;
  background: var(--chip-bg);
  color: var(--chip-fg);
  border: 1.5px solid var(--chip-border);
}

.chip-icon {
  font-size: 16px;
  line-height: 1;
}

.chip .icon {
  stroke-width: 1;
}

.chip:hover {
  filter: brightness(0.96);
}

/* --- Filled --- */
.chip-filled {
  --chip-bg: var(--secondary-container);
  --chip-fg: var(--on-secondary-container);
}

.chip-filled.chip-primary {
  --chip-bg: var(--primary);
  --chip-fg: var(--on-primary);
}

.chip-filled.chip-tertiary {
  --chip-bg: var(--tertiary);
  --chip-fg: var(--on-tertiary);
}

.chip-filled.chip-error {
  --chip-bg: var(--error);
  --chip-fg: var(--on-error);
}

.chip-filled.chip-success {
  --chip-bg: var(--success-success);
  --chip-fg: var(--success-on-success);
}

.chip-filled.chip-warning {
  --chip-bg: var(--warning-warning);
  --chip-fg: var(--warning-on-warning);
}

.chip-filled.chip-info {
  --chip-bg: var(--information-information);
  --chip-fg: var(--information-on-information);
}

.chip-filled.chip-neutral {
  --chip-bg: var(--surface-container-high);
  --chip-fg: var(--on-surface-variant);
}

/* --- Tonal --- */
.chip-tonal {
  --chip-bg: var(--secondary-container);
  --chip-fg: var(--on-secondary-container);
}

.chip-tonal.chip-primary {
  --chip-bg: var(--primary-fixed);
  --chip-fg: var(--on-primary-fixed);
}

.chip-tonal.chip-tertiary {
  --chip-bg: var(--tertiary-container);
  --chip-fg: var(--on-tertiary-container);
}

.chip-tonal.chip-error {
  --chip-bg: var(--error-container);
  --chip-fg: var(--on-error-container);
}

.chip-tonal.chip-success {
  --chip-bg: var(--success-success-container);
  --chip-fg: var(--success-on-success-container);
}

.chip-tonal.chip-warning {
  --chip-bg: var(--warning-warning-container);
  --chip-fg: var(--warning-on-warning-container);
}

.chip-tonal.chip-info {
  --chip-bg: var(--information-information-container);
  --chip-fg: var(--information-on-information-container);
}

.chip-tonal.chip-neutral {
  --chip-bg: var(--surface-container-low);
  --chip-fg: var(--on-surface-variant);
}

/* --- Outlined --- */
.chip-outlined {
  --chip-bg: transparent;
  --chip-border: var(--outline);
  background: transparent;
  border-color: var(--chip-border);
}

.chip-outlined.chip-primary {
  --chip-fg: var(--primary);
  --chip-border: var(--primary);
}

.chip-outlined.chip-tertiary {
  --chip-fg: var(--tertiary);
  --chip-border: var(--tertiary);
}

.chip-outlined.chip-error {
  --chip-fg: var(--on-error-container);
  --chip-border: var(--error);
}

.chip-outlined.chip-success {
  --chip-fg: var(--success-on-success-container);
  --chip-border: var(--success-success);
}

.chip-outlined.chip-warning {
  --chip-fg: var(--warning-on-warning-container);
  --chip-border: var(--warning-warning);
}

.chip-outlined.chip-info {
  --chip-fg: var(--information-on-information-container);
  --chip-border: var(--information-information);
}

.chip-outlined.chip-neutral {
  --chip-fg: var(--on-surface-variant);
  --chip-border: var(--outline);
}

/* Selected state (adds checkmark slot) */
.chip.chip-selected::before {
  content: "✓";
  font-size: 13px;
  margin-right: -2px;
}

/* chip-choice — sprite icon replaces text checkmark */
.chip-choice {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chip-choice .chip-icon {
  display: none;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: currentColor;
  fill: currentColor;
}
.chip-choice.chip-selected::before { content: none; }
.chip-choice.chip-selected .chip-icon { display: block; }

/* ═══════════════════════════════════════════════════════════════
   CHECKBOX
═══════════════════════════════════════════════════════════════ */
.checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-wrap.checkbox-disabled {
  opacity: 0.38;
  pointer-events: none;
}

.checkbox-wrap input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--outline);
  border-radius: var(--radius-extra-small);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  display: grid;
  place-content: center;
  transition: background 120ms, border-color 120ms;
}

.checkbox-wrap input[type=checkbox]::before {
  content: "";
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6L5 9L10 3' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: scale(0);
  transition: transform 120ms;
}

.checkbox-wrap input[type=checkbox]:checked {
  background: var(--tertiary);
  border-color: var(--tertiary);
}

.checkbox-wrap input[type=checkbox]:checked::before {
  transform: scale(1);
}

/* Indeterminate / partial */
.checkbox-wrap input[type=checkbox]:indeterminate {
  background: var(--tertiary);
  border-color: var(--tertiary);
}

.checkbox-wrap input[type=checkbox]:indeterminate::before {
  transform: scale(1);
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6H10' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Error state */
.checkbox-error input[type=checkbox] {
  border-color: var(--error);
}

.checkbox-error input[type=checkbox]:checked {
  background: var(--error);
  border-color: var(--error);
}

/* Hover */
.checkbox-wrap:not(.checkbox-disabled):hover input[type=checkbox] {
  border-color: var(--on-surface);
}

.checkbox-wrap:not(.checkbox-disabled):hover input[type=checkbox]:checked {
  border-color: var(--tertiary);
}

.checkbox-label {
  font-size: var(--type-body-medium-size);
  line-height: var(--type-body-medium-line-height);
  color: var(--on-surface);
}
.checkbox-label--regular {
  font-weight: 400;
}

/* Checkbox item (list-row style) */
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-small);
  border: 1px solid var(--outline);
  background: var(--surface);
  cursor: pointer;
  transition: background 100ms;
}

.checkbox-item:hover {
  background: var(--surface-container-low);
}

.checkbox-item.selected {
  background: var(--tertiary-container);
  border-color: var(--tertiary);
}

.checkbox-item.disabled {
  opacity: 0.38;
  pointer-events: none;
}

.checkbox-item-content {
  flex: 1;
}

.checkbox-item-title {
  font-size: var(--type-body-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
}

.checkbox-item-desc {
  font-size: var(--type-label-medium-size);
  color: var(--on-surface-variant);
}

/* Variante alineación top — para labels con texto multilinea */
.checkbox-wrap--top {
  align-items: flex-start;
  gap: 10px;
}

.checkbox-wrap--top .checkbox-label {
  padding-top: 1px;
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM SCROLLBAR
═══════════════════════════════════════════════════════════════ */
.switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.switch-wrap.switch-disabled {
  opacity: 0.38;
  pointer-events: none;
}

/* Hidden native checkbox */
.switch-wrap input[type=checkbox] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Track */
.switch-track {
  position: relative;
  width: 56px;
  height: 32px;
  background: var(--surface-dim);
  border-radius: var(--radius-full);
  transition: background 150ms;
  flex-shrink: 0;
}

/* Thumb */
.switch-thumb {
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--surface);
  transition: left 150ms, background 150ms;
}

/* Checked state */
.switch-wrap input:checked + .switch-track {
  background: var(--success-success);
}

.switch-wrap input:checked + .switch-track .switch-thumb {
  left: 27px; /* 56px - 3px - 26px */
  background: var(--surface);
}

/* Hover */
.switch-wrap:not(.switch-disabled):hover .switch-track {
  filter: brightness(0.93);
}

.switch-wrap:not(.switch-disabled):hover input:checked + .switch-track {
  filter: brightness(0.9);
}

/* Small size */
.switch-sm .switch-track {
  width: 42px;
  height: 24px;
}

.switch-sm .switch-thumb {
  left: 2px;
  width: 20px;
  height: 20px;
}

.switch-sm input:checked + .switch-track .switch-thumb {
  left: 20px; /* 42px - 2px - 20px */
}

/* Variant — uses tertiary */
.switch-variant input:checked + .switch-track {
  background: var(--tertiary);
}

.switch-variant input:checked + .switch-track .switch-thumb {
  background: var(--surface);
}

/* Label left */
.switch-label-left {
  flex-direction: row-reverse;
}

/* ═══════════════════════════════════════════════════════════════
   RADIO BUTTON
═══════════════════════════════════════════════════════════════ */
.radio-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.radio-wrap input[type=radio] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--outline);
  border-radius: var(--radius-full);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 120ms, background 120ms;
  position: relative;
  display: grid;
  place-content: center;
}

.radio-wrap input[type=radio]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--tertiary);
  transform: scale(0);
  transition: transform 120ms;
}

.radio-wrap input[type=radio]:checked {
  border-color: var(--tertiary);
}

.radio-wrap input[type=radio]:checked::before {
  transform: scale(1);
}

.radio-wrap input[type=radio]:hover {
  border-color: var(--on-surface);
}

.radio-wrap input[type=radio]:checked:hover {
  border-color: var(--tertiary);
}

/* Disabled */
.radio-wrap.radio-disabled {
  opacity: 0.38;
  pointer-events: none;
}

.radio-label {
  font-size: var(--type-body-medium-size);
  line-height: var(--type-body-medium-line-height);
  color: var(--on-surface);
}

/* ═══════════════════════════════════════════════════════════════
   PROGRESS BAR
═══════════════════════════════════════════════════════════════ */
.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.field-label {
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface-variant);
  line-height: var(--type-label-medium-line-height);
  display: flex;
  align-items: center;
  gap: 4px;
}

.field-required .field-label::after {
  content: " *";
}

/* Fila de label + ícono de ayuda — el label lleva el * y el ícono va como hermano */
.field-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Input container (outlined style) */
.input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--outline-interactive);
  border-radius: var(--radius-medium);
  background: var(--surface);
  transition: border-color 120ms, box-shadow 120ms;
  min-height: 44px;
}

.input-box:has(input:not(:placeholder-shown)),
.input-box:has(textarea:not(:placeholder-shown)),
.input-box:has(select) {
  border-color: var(--outline-variant);
}

.input-box:focus-within {
  border-color: var(--tertiary);
  box-shadow: 0 0 0 3px rgba(67, 74, 199, 0.12);
}

.input-box:hover:not(:focus-within) {
  border-color: var(--on-surface);
}

.input-box input,
.input-box textarea,
.input-box select {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-family-brand);
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
  line-height: var(--type-body-medium-line-height);
  min-width: 0;
}

.input-box input::placeholder,
.input-box textarea::placeholder {
  color: var(--on-surface-variant);
  opacity: 1;
}

.input-icon {
  color: var(--on-surface-variant);
  font-size: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.input-icon--chevron {
  color: var(--tertiary);
}
.input-icon .icon {
  width: 16px;
  height: 16px;
}

.input-box:has(.input-clear-btn:last-child),
.input-box:has(.input-icon:last-child),
.input-box:has(.input-eye-btn:last-child) {
  padding-right: 8px;
}

/* States */
.field-error .input-box {
  border-color: var(--error);
}

.field-error .input-box:focus-within {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(217, 45, 33, 0.12);
}

.field-error .field-label {
  color: var(--error);
}

.field-success .input-box {
  border-color: var(--success-success);
}

.field-disabled .input-box {
  background: var(--surface-container-low);
  border-color: var(--outline);
  opacity: 0.54;
  pointer-events: none;
}

/* Helper / error text */
.field-helper {
  font-size: var(--type-label-small-size);
  color: var(--on-surface-variant);
  line-height: var(--type-label-small-line-height);
}

.field-error .field-helper {
  color: var(--error);
}

.field-helper--hidden {
  display: none;
}

/* Prefix / Suffix chips inside input */
.input-prefix,
.input-suffix {
  font-size: var(--type-body-medium-size);
  color: var(--on-surface-variant);
  flex-shrink: 0;
}

.input-divider {
  width: 1px;
  height: 20px;
  background: var(--outline);
  flex-shrink: 0;
}

/* Textarea */
.input-box textarea {
  resize: vertical;
  min-height: 80px;
}

/* ═══════════════════════════════════════════════════════════════
   INPUT PICKER (Phone / Document type selector)
═══════════════════════════════════════════════════════════════ */
/* ── Explicit state classes (for prototypes) ── */
.field-focused .input-box {
  border-color: var(--tertiary);
  box-shadow: 0 0 0 3px rgba(67, 74, 199, 0.12);
}

.field-filled .input-box {
  border-color: var(--outline);
}

.field-readonly .input-box {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding-left: 0;
}

.field-readonly .input-box input {
  cursor: default;
  color: var(--on-surface);
}

/* ── Clear (×) button inside input ── */
.input-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  transition: background 100ms;
}

.input-clear-btn:hover {
  background: var(--surface-container-high);
  color: var(--on-surface);
}

.input-clear-btn .icon {
  font-size: 14px;
}

/* ── Eye / password-toggle button inside input ── */
.input-eye-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--on-surface-variant);
  cursor: pointer;
  border-radius: var(--radius-medium);
  flex-shrink: 0;
  transition: color 100ms;
}

.input-eye-btn:hover {
  color: var(--on-surface);
}

.input-eye-btn .icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

/* ── OTP input group ── */
.otp-group {
  display: flex;
  gap: 8px;
}

.otp-input {
  width: 48px;
  height: 48px;
  border: 1px solid var(--outline-interactive);
  border-radius: var(--radius-medium);
  background: var(--surface);
  font-size: 18px;
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  text-align: center;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
  -moz-appearance: textfield;
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.otp-input:focus {
  border-color: var(--tertiary);
  box-shadow: 0 0 0 3px rgba(67, 74, 199, 0.12);
}

.otp-input.otp-filled {
  border-color: var(--outline);
}

.otp-input.otp-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(217, 45, 33, 0.12);
}

/* ── Tags / multi-value inside input ── */
.input-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.input-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  padding: 2px 6px 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.input-tag-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--on-secondary-container);
  border-radius: var(--radius-full);
  font-size: 10px;
  line-height: 1;
}

.input-tag-remove:hover {
  background: rgba(0, 0, 0, 0.1);
}

.input-tag-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-family-brand);
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
  min-width: 80px;
  flex: 1;
}

/* ── Inline status badge inside input ── */
.input-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.input-status-success {
  background: var(--success-success-container);
  color: var(--success-on-success-container);
}

.input-status-error {
  background: var(--error-container);
  color: var(--on-error-container);
}

.input-status-warning {
  background: var(--warning-warning-container);
  color: var(--warning-on-warning-container);
}

.input-status-info {
  background: var(--information-information-container);
  color: var(--information-on-information-container);
}

/* ── Amount / currency large input ── */
.field-amount .input-box {
  padding: 12px 16px;
  min-height: 52px;
  align-items: center;
}

.field-amount .input-box input {
  font-size: var(--type-title-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
}

.amount-currency {
  font-size: var(--type-body-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface-variant);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Select (native) inside input-box ── */
.input-box select {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-family-brand);
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
  cursor: pointer;
  appearance: none;
  min-width: 0;
}

/* ── Input with trailing action button ── */
.input-box:has(.input-action-btn) {
  padding-right: 0;
}
.input-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  margin-left: 4px;
  align-self: stretch;
  border: none;
  border-left: 1px solid var(--outline);
  background: transparent;
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
  font-family: var(--font-family-brand);
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--tertiary);
  cursor: pointer;
  transition: background 100ms;
}

.input-action-btn:hover {
  background: var(--tertiary-container);
}

/* ── Phone input (flag + code segment) ── */
.input-phone-seg {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 10px;
  flex-shrink: 0;
}

.input-select-seg {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.input-select-seg select {
  position: relative;
  z-index: 1;
  appearance: none;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-family-brand);
  font-size: var(--type-body-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  cursor: pointer;
  padding-right: 20px;
}

.input-select-chevron {
  position: absolute;
  right: 2px;
  pointer-events: none;
  color: var(--tertiary);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  stroke-width: 1.5;
}

.input-phone-sep {
  width: 1px;
  height: 20px;
  background: var(--outline);
  flex-shrink: 0;
}

.flag-img {
  display: inline-block;
  border-radius: 2px;
}

.flag-img-s {
  width: 16px;
  height: 16px;
}

.flag-img-m {
  width: 24px;
  height: 24px;
}

.flag-img-l {
  width: 32px;
  height: 32px;
}

/* ═══════════════════════════════════════════════════════════════
   STEPPER
═══════════════════════════════════════════════════════════════ */
.input-clear-btn:focus-visible {
  outline: 2px solid var(--tertiary);
  outline-offset: 2px;
}

.input-picker {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--outline);
  border-radius: var(--radius-medium);
  background: var(--surface);
  overflow: hidden;
  min-height: 44px;
  transition: border-color 120ms, box-shadow 120ms;
}

.input-picker:focus-within {
  border-color: var(--tertiary);
  box-shadow: 0 0 0 3px rgba(67, 74, 199, 0.12);
}

.picker-segment {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  cursor: pointer;
  white-space: nowrap;
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
  transition: background 100ms;
  flex-shrink: 0;
}

.picker-segment:hover {
  background: transparent;
}

.picker-segment select {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-family-brand);
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
  cursor: pointer;
  appearance: none;
}

.picker-chevron {
  pointer-events: none;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--tertiary);
  fill: var(--tertiary);
}

.picker-sep {
  width: 1px;
  height: 28px;
  background: var(--outline);
  flex-shrink: 0;
}

.picker-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-family: var(--font-family-brand);
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
  background: transparent;
  min-width: 0;
  text-align: right;
}

.picker-input::placeholder {
  color: var(--on-surface-variant);
}

.field .input-picker {
  min-height: 44px;
  border-width: 1.5px;
}

.field .picker-segment {
  padding: 9px 12px;
  font-size: 13px;
}

.field .picker-segment select {
  border: none !important;
  box-shadow: none !important;
  background: transparent;
  padding: 0;
  width: auto;
  font-size: 13px;
}

.field .picker-input {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 9px 12px;
  font-size: 13px;
  background: transparent;
}

/* ═══════════════════════════════════════════════════════════════
   CHIPS
═══════════════════════════════════════════════════════════════ */
.progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: var(--type-label-medium-size);
  color: var(--on-surface-variant);
  font-weight: var(--font-weight-medium);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--surface-container-highest);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--tertiary);
  transition: width 300ms ease;
}

/* Color variants */
.progress-success .progress-fill {
  background: var(--success-success);
}

.progress-error .progress-fill {
  background: var(--error);
}

.progress-warning .progress-fill {
  background: var(--warning-warning);
}

/* Thin variant (4px) */
.progress-thin .progress-track {
  height: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   COUNTRY FLAGS
═══════════════════════════════════════════════════════════════ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--outline);
  border: none;
  margin: 0;
}

.divider-vertical {
  width: 1px;
  height: auto;
  align-self: stretch;
  background: var(--outline);
  flex-shrink: 0;
}

.divider-inset {
  margin-left: 56px;
}

/* ═══════════════════════════════════════════════════════════════
   TOGGLE SWITCH
═══════════════════════════════════════════════════════════════ */
.flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 24px;
  line-height: 1;
}

.flag-lg {
  font-size: 32px;
}

.flag-md {
  font-size: 24px;
}

.flag-sm {
  font-size: 16px;
}

.flag-label {
  font-size: var(--type-body-small-size);
  color: var(--on-surface-variant);
  font-weight: var(--font-weight-medium);
}

/* ═══════════════════════════════════════════════════════════════
   INPUT / TEXT FIELD
═══════════════════════════════════════════════════════════════ */
.blanket {
  position: fixed;
  inset: 0;
  background: rgba(0, 2, 45, 0.4);
  z-index: var(--z-overlay);
  backdrop-filter: blur(2px);
}

.accordion {
  border-radius: var(--radius-medium);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--outline);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--surface);
  transition: background 120ms;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  border-left: 3px solid transparent;
}

.accordion-header:hover {
  background: var(--surface-container);
}

.accordion-header.open {
  border-left-color: var(--tertiary);
  background: var(--surface);
}

.accordion-header-content {
  flex: 1;
}

.accordion-subtitle {
  font-size: var(--type-label-medium-size);
  color: var(--on-surface-variant);
  margin-bottom: 2px;
}

.accordion-title {
  font-size: var(--type-title-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
}

.accordion-chevron {
  color: var(--on-surface-variant);
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  transition: transform 200ms;
  flex-shrink: 0;
}

.accordion-header.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  background: var(--surface);
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 250ms ease, padding 250ms ease;
}

.accordion-body.open {
  padding: 16px 20px;
  max-height: 600px;
}

.accordion-body-content {
  font-size: var(--type-body-medium-size);
  color: var(--on-surface-variant);
  line-height: var(--type-body-medium-line-height);
}

/* Tonal accordion */
.accordion-tonal .accordion-header {
  background: var(--surface-container);
}

.accordion-tonal .accordion-header:hover {
  background: var(--surface-container-high);
}

.accordion-tonal .accordion-body {
  background: var(--surface);
}

/* ═══════════════════════════════════════════════════════════════
   DROPZONE
═══════════════════════════════════════════════════════════════ */
.snackbar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-small);
  border-left: 4px solid transparent;
  font-size: var(--type-body-medium-size);
  line-height: var(--type-body-medium-line-height);
  min-width: 280px;
  max-width: 560px;
  position: relative;
}

.snackbar-icon,
.a-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: flex-start;
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
}

.snackbar-body {
  flex: 1;
}

.snackbar-title {
  font-weight: var(--font-weight-medium);
  margin-bottom: 2px;
}

.snackbar-desc {
  opacity: 0.85;
}

.snackbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.snackbar-btn {
  background: none;
  border: 1px solid currentColor;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: opacity 120ms;
}

.snackbar-btn:hover {
  opacity: 0.75;
}

.snackbar-link {
  background: none;
  border: none;
  padding: 0;
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  color: inherit;
}

.snackbar-success {
  background: var(--success-success-container);
  border-color: var(--success-success);
  color: var(--success-on-success-container);
}

.snackbar-danger {
  background: var(--error-container);
  border-color: var(--error);
  color: var(--on-error-container);
}

.snackbar-warning {
  background: var(--warning-warning-container);
  border-color: var(--warning-warning);
  color: var(--warning-on-warning-container);
}

.snackbar-default {
  background: var(--surface-container-high);
  border-color: var(--outline);
  color: var(--on-surface);
}

.snackbar-info {
  background: var(--information-information-container);
  border-color: var(--information-information);
  color: var(--information-on-information-container);
}

/* ═══════════════════════════════════════════════════════════════
   BREADCRUMBS
═══════════════════════════════════════════════════════════════ */
.snackbar-btn:focus-visible {
  outline: 2px solid var(--on-inverse-surface);
  outline-offset: 2px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--outline);
  border-radius: var(--radius-small);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  overflow: hidden;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  border-right: 1px solid var(--outline);
  border-radius: 0;
  background: var(--surface);
  color: var(--tertiary);
  cursor: pointer;
  font-size: var(--type-label-small-size);
  font-weight: var(--font-weight-medium);
  font-family: inherit;
  transition: background 100ms, color 100ms;
}

.pagination-btn:last-child {
  border-right: none;
}

.pagination-btn:hover {
  background: var(--surface-container);
  color: var(--tertiary);
}

.pagination-btn.active {
  background: var(--surface-variant);
  color: var(--on-surface-variant);
}

.pagination-btn:disabled {
  opacity: 0.38;
  background: var(--surface);
  cursor: not-allowed;
}

.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pagination-info {
  font-size: var(--type-body-small-size);
  color: var(--on-surface);
  white-space: nowrap;
}

.pagination-rpp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--type-body-small-size);
  line-height: var(--type-body-small-line-height);
  color: var(--on-surface);
  white-space: nowrap;
}

.pagination-rpp span {
  font-size: var(--type-body-small-size);
  line-height: var(--type-body-small-line-height);
}

.pagination-rpp .input-box {
  min-height: 0;
  height: 32px;
  font-size: var(--type-body-small-size);
}

.pagination-select {
  border: 1px solid var(--outline);
  border-radius: var(--radius-extra-small);
  padding: 4px 28px 4px 10px;
  font-size: var(--type-body-small-size);
  font-family: inherit;
  background: var(--surface);
  color: var(--on-surface);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M19.9201 8.94922L13.4001 15.4692C12.6301 16.2392 11.3701 16.2392 10.6001 15.4692L4.08008 8.94922' stroke='%234B5565' stroke-width='1.5' stroke-miterlimit='10' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

/* ═══════════════════════════════════════════════════════════════
   ACCORDION
═══════════════════════════════════════════════════════════════ */
.dropzone {
  border: 1.5px dashed var(--outline);
  border-radius: var(--radius-medium);
  padding: 40px 24px;
  text-align: center;
  background: var(--surface);
  transition: border-color 150ms, background 150ms;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dropzone:hover, .dropzone.drag-over {
  border-color: var(--tertiary);
  background: var(--tertiary-container);
}

.dropzone.error {
  border-color: var(--error);
  background: var(--error-container);
}

.dropzone.filled {
  border-color: var(--success-success);
  background: var(--success-success-container);
  border-style: solid;
}

.dropzone-icon {
  width: 40px;
  height: 40px;
  color: var(--tertiary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dropzone-icon .icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.dropzone.error .dropzone-icon {
  color: var(--error);
}

.dropzone-text {
  font-size: var(--type-body-medium-size);
  color: var(--on-surface-variant);
}

.dropzone-link {
  color: var(--tertiary);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
}

.dropzone-link:hover {
  text-decoration: underline;
}

.dropzone.error .dropzone-link {
  color: var(--error);
}

.dropzone-hint {
  font-size: var(--type-label-medium-size);
  color: var(--on-surface-variant);
}

/* Row variant — icon left, text right */
.dropzone--row {
  flex-direction: row;
  align-items: center;
  padding: 20px 24px;
  gap: 16px;
  text-align: left;
}
.dropzone--row .dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* SM dropzone */
.dropzone-sm {
  padding: 24px 16px;
  gap: 4px;
}

.dropzone-sm .dropzone-icon {
  width: 28px;
  height: 28px;
}
.dropzone-sm .dropzone-icon .icon {
  width: 28px;
  height: 28px;
}

/* ═══════════════════════════════════════════════════════════════
   FILE ITEM
═══════════════════════════════════════════════════════════════ */
.dropzone .file-icon-wrap svg {
  filter: drop-shadow(0 1px 4px rgba(0, 2, 45, 0.15));
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 64px;
  cursor: pointer;
  position: relative;
}

.file-item-icon {
  width: 48px;
  height: 56px;
  background: var(--surface-container-low);
  border-radius: 4px 8px 4px 4px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 120ms;
}

.file-item:hover .file-item-icon {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.file-item-icon::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: var(--surface-container-high);
  border-radius: 0 4px 0 4px;
}

.file-badge {
  font-size: 9px;
  font-weight: var(--font-weight-medium);
  padding: 2px 4px;
  line-height: 1;
  border-radius: 3px;
  text-transform: uppercase;
  color: var(--on-primary);
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
}

.file-badge-pdf {
  background: var(--error);
}

.file-badge-csv {
  background: var(--success-success);
}

.file-badge-doc {
  background: var(--information-information);
}

.file-badge-docx {
  background: #1D4ED8;
}

.file-badge-jpg {
  background: #374151;
}

.file-badge-png {
  background: #111827;
}

.file-badge-txt {
  background: #1F2937;
}

.file-badge-xls {
  background: #15803D;
}

.file-badge-xlsx {
  background: #166534;
}

.file-item-name {
  font-size: 10px;
  color: var(--on-surface-variant);
  text-align: center;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* File item action overlay */
.file-item-actions {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 150ms;
}

.file-item:hover .file-item-actions {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   LIST ITEMS
═══════════════════════════════════════════════════════════════ */
.file-icon-wrap {
  position: relative;
  display: inline-flex;
}

.file-status {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  border-radius: 50%;
  border: 2px solid var(--surface);
}
.file-status--success {
  background: var(--success-success);
}
.file-status--error {
  background: var(--error);
}
.file-status--warning {
  background: var(--warning-warning);
}

.list {
  display: flex;
  flex-direction: column;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--outline);
  background: var(--surface);
  transition: background 100ms;
  cursor: pointer;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: var(--surface-container-low);
}

.list-item.selected {
  background: var(--surface-container);
}

.list-item-icon {
  color: var(--on-surface-variant);
  font-size: 20px;
  flex-shrink: 0;
}

.list-item-content {
  flex: 1;
  min-width: 0;
}

.list-item-title {
  font-size: var(--type-body-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
}

.list-item-desc {
  font-size: var(--type-label-medium-size);
  color: var(--on-surface-variant);
}

.list-item-trailing {
  color: var(--on-surface-variant);
  font-size: 16px;
  flex-shrink: 0;
}

/* Sizes */
.list-item-lg {
  padding: 16px;
}

.list-item-sm {
  padding: 8px 16px;
}

/* ═══════════════════════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════════════════════ */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-medium);
  border: 1px solid var(--outline);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-body-medium-size);
  background: var(--surface);
}

/* Column head */
.data-table thead th {
  padding: 10px 16px;
  background: var(--surface-container-low);
  border-bottom: 1px solid var(--outline);
  color: var(--on-surface-variant);
  font-weight: var(--font-weight-medium);
  font-size: var(--type-label-large-size);
  text-align: left;
  white-space: nowrap;
  user-select: none;
}

.th-sortable {
  cursor: pointer;
}

.th-sortable:hover {
  background: var(--surface-container);
  color: var(--on-surface);
}

.th-sort-icon {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  opacity: 0.5;
  font-size: 16px;
}

.th-sortable.sorted .th-sort-icon {
  opacity: 1;
  color: var(--tertiary);
}

.th-info {
  display: inline-flex;
  margin-left: 4px;
  color: var(--on-surface-variant);
  font-size: 14px;
  cursor: help;
}

/* Data rows */
.data-table tbody tr {
  border-bottom: 1px solid var(--outline);
  transition: background 80ms;
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: var(--surface-container-low);
}

.data-table tbody tr.selected {
  background: var(--tertiary-container);
}

.data-table td {
  padding: 12px 16px;
  color: var(--on-surface);
  vertical-align: middle;
}

.data-table td .checkbox-wrap,
.data-table th .checkbox-wrap {
  gap: 0;
}

.td-sub {
  display: block;
  font-size: var(--type-label-medium-size);
  color: var(--on-surface-variant);
  margin-top: 1px;
}

.td-mono {
  font-family: "JetBrains Mono", monospace;
}

/* Status badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

.badge-success {
  background: var(--success-success-container);
  color: var(--success-on-success-container);
}

.badge-error {
  background: var(--error-container);
  color: var(--on-error-container);
}


.badge-warning {
  background: var(--warning-warning-container);
  color: var(--warning-on-warning-container);
}

.badge-info {
  background: var(--information-information-container);
  color: var(--information-on-information-container);
}

.badge-neutral {
  background: var(--inverse-primary);
  color: var(--on-surface);
}

.badge-neutral-light {
  background: var(--surface-container-high);
  color: var(--on-primary-fixed);
}
.badge-tertiary {
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}
.badge-tertiary-outline {
  background: transparent;
  color: var(--tertiary);
  border: 1px solid var(--tertiary);
}
.badge-neutral-light-outline {
  background: transparent;
  color: var(--on-primary-fixed);
  border: 1px solid var(--on-primary-fixed);
}
.badge-success-outline {
  background: transparent;
  color: var(--success-on-success-container);
  border: 1px solid var(--success-on-success-container);
}
.badge-error-outline {
  background: transparent;
  color: var(--error);
  border: 1px solid var(--error);
}
.badge-warning-outline {
  background: transparent;
  color: var(--warning-warning);
  border: 1px solid var(--warning-warning);
}
.badge-info-outline {
  background: transparent;
  color: var(--information-information);
  border: 1px solid var(--information-information);
}

.badge-primary {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

/* Table action buttons */
.table-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tbl-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-small);
  border: 1.5px solid var(--outline);
  background: var(--surface);
  color: var(--on-surface-variant);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 100ms, color 100ms, border-color 100ms;
}

.tbl-btn .icon {
  width: 16px;
  height: 16px;
  color: inherit;
  flex-shrink: 0;
}

.tbl-btn:hover {
  background: var(--surface-container);
  color: var(--on-surface);
}

.tbl-btn-success {
  border-color: var(--success-success);
  color: var(--success-success);
}

.tbl-btn-success:hover {
  background: var(--success-success-container);
}

.tbl-btn-error {
  border-color: var(--error);
  color: var(--error);
}

.tbl-btn-error:hover {
  background: var(--error-container);
}

.tbl-btn-tertiary {
  border-color: var(--tertiary);
  color: var(--tertiary);
}

.tbl-btn-tertiary:hover {
  background: var(--tertiary-container);
}

/* Toggle */
.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-track {
  width: 40px;
  height: 24px;
  background: var(--surface-container-highest);
  border-radius: var(--radius-full);
  transition: background 150ms;
  position: relative;
}

.toggle input:checked + .toggle-track {
  background: var(--tertiary);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: var(--radius-full);
  transition: transform 150ms;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle input:checked ~ .toggle-thumb,
.toggle input:checked + .toggle-track + .toggle-thumb {
  transform: translateX(16px);
}

/* ═══════════════════════════════════════════════════════════════
   NOTIFICATION CARD
═══════════════════════════════════════════════════════════════ */
.tbl-btn:focus-visible {
  outline: 2px solid var(--tertiary);
  outline-offset: 2px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.status-dot--error {
  background: var(--error);
}

.status-dot--success {
  background: var(--success-success);
}

.notif-card {
  background: var(--surface-container-low);
  border-radius: var(--radius-medium);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  border: 1px solid var(--outline);
  transition: background 120ms;
}

.notif-card:hover {
  background: var(--surface-container);
}

.notif-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.notif-card-icon {
  color: var(--warning-warning);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-card-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--type-label-medium-size);
  color: var(--on-surface-variant);
}

.notif-card-title {
  font-size: var(--type-body-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
}

.notif-card-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--tertiary);
  flex-shrink: 0;
  margin-top: 4px;
}

.notif-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
   DROPDOWN LIST
═══════════════════════════════════════════════════════════════ */
.dropdown-list {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-medium);
  overflow: hidden;
  min-width: 200px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06), 0 10px 15px rgba(0, 0, 0, 0.04);
}

.dropdown-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--outline);
  cursor: pointer;
  transition: background 80ms;
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
}

.dropdown-option:last-child {
  border-bottom: none;
}

.dropdown-option:hover {
  background: var(--surface-container-low);
}

.dropdown-option.selected {
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

.dropdown-option-content {
  flex: 1;
}

.dropdown-option-title {
  font-weight: var(--font-weight-medium);
}

.dropdown-option-desc {
  font-size: var(--type-label-medium-size);
  color: var(--on-surface-variant);
}

.dropdown-option-trailing {
  color: var(--on-surface-variant);
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   DIVIDER
═══════════════════════════════════════════════════════════════ */
.scrollbar-custom,
.scrollbar-custom * {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-container-highest) transparent;
}

.scrollbar-custom::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.scrollbar-custom::-webkit-scrollbar-track {
  background: transparent;
  border-radius: var(--radius-full);
}

.scrollbar-custom::-webkit-scrollbar-thumb {
  background: var(--surface-container-highest);
  border-radius: var(--radius-full);
}

.scrollbar-custom::-webkit-scrollbar-thumb:hover {
  background: var(--on-surface-variant);
}

/* Demo scrollbar containers */
.scrollbar-demo-v {
  width: 120px;
  height: 160px;
  overflow-y: scroll;
  border: 1px solid var(--outline);
  border-radius: var(--radius-small);
  padding: 8px;
}

.scrollbar-demo-h {
  width: 100%;
  overflow-x: scroll;
  border: 1px solid var(--outline);
  border-radius: var(--radius-small);
  padding: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   INPUTS — Extended System
   Extends existing .field / .input-box base (see above)
═══════════════════════════════════════════════════════════════ */
.stepper {
  display: flex;
  flex-direction: column;
}

.stepper-item {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 8px;
}
.stepper-item:last-child {
  padding-bottom: 0;
}

.stepper-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.stepper-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 4px solid var(--outline);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  flex-shrink: 0;
  z-index: 1;
  transition: background 150ms, border-color 150ms;
}

.stepper-connector {
  width: 2px;
  flex: 1;
  min-height: 12px;
  margin: 3px 0;
  background: var(--outline);
  background-image: repeating-linear-gradient(to bottom, var(--outline-variant) 0px, var(--outline-variant) 4px, transparent 4px, transparent 8px);
}

.stepper-content {
  padding-top: 5px;
  padding-bottom: 5px;
}

.stepper-label {
  font-size: var(--type-body-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface-variant);
}

.stepper-item.done .stepper-indicator {
  background: var(--success-success);
  border-color: var(--success-success);
  color: #fff;
}
.stepper-item.done .stepper-connector {
  background-image: none;
  background: var(--success-success);
}
.stepper-item.done .stepper-label {
  color: var(--on-surface);
}

.stepper-item.active .stepper-indicator {
  background: var(--tertiary);
  border-color: var(--tertiary);
  color: #fff;
}
.stepper-item.active .stepper-label {
  color: var(--tertiary);
  font-weight: 600;
}

.stepper-indicator .icon {
  fill: currentColor;
  stroke: none;
  width: 14px;
  height: 14px;
}

.stepper-item.done .stepper-indicator .icon,
.stepper-item.active .stepper-indicator .icon {
  stroke: currentColor;
  fill: none;
}

.ob-step-ic .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ob-step-ic .step-icon {
  fill: currentColor !important;
  stroke: none !important;
  display: block;
}

.ob-step-ic .step-check {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none;
}

.ob-step.done .ob-step-ic .step-icon {
  display: none;
}
.ob-step.done .ob-step-ic .step-check {
  display: block;
  color: var(--success-on-success);
}

.ob-step.active .ob-step-ic .step-icon {
  color: var(--on-tertiary);
}

.ob-step.neutral .ob-step-ic .step-icon,
.ob-step:not(.done):not(.active) .ob-step-ic .step-icon {
  color: var(--on-surface);
}

.ob-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.ob-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-bottom: 0;
}
.ob-step:last-child {
  padding-bottom: 0;
}
.ob-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 32px;
  height: 36px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--outline-variant) 0px, var(--outline-variant) 3px, transparent 3px, transparent 7px);
}
.ob-step.done:not(:last-child)::after {
  background: var(--success-success);
}

.ob-step-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  flex: 1;
}

.ob-step-ic {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--surface);
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}

.ob-step.done .ob-step-ic {
  background: var(--success-success);
}

.ob-step.active .ob-step-ic {
  background: var(--primary);
}

.ob-step.neutral .ob-step-ic {
  background: var(--surface-container-high);
  color: var(--on-surface-variant);
}

.ob-step.pending .ob-step-ic {
  background: var(--warning-warning-container);
  color: var(--warning-on-warning-container);
  border: 2px solid var(--warning-warning);
}

.ob-step-label {
  font-size: 12px;
  color: var(--on-surface-variant);
  line-height: 1.4;
}

.ob-step.active .ob-step-label {
  color: var(--primary);
  font-weight: 600;
}

.ob-step.done .ob-step-label {
  color: var(--on-surface-variant);
}

.ob-step.done[data-href] {
  cursor: pointer;
  border-radius: var(--radius-small);
  transition: background 120ms;
}
.ob-step.done[data-href]:hover {
  background: var(--surface-container-low);
}
.ob-step.done[data-href]:hover .ob-step-label {
  color: var(--on-surface);
}

/* ═══════════════════════════════════════════════════════════════
   WEB LAYOUTS
═══════════════════════════════════════════════════════════════ */
.sidebar-gradient {
  background: linear-gradient(180deg, #00022D 0%, #000793 100%);
}

[data-theme=bo],
.theme-bo {
  --sidebar-active-bg-start: #2D3185;
  --sidebar-active-bg-end: #434AC7;
}

[data-tier=pro],
.theme-pro {
  --pro-badge-start: #F69007;
  --pro-badge-end: #F9B55A;
}

.is-hidden {
  display: none !important;
}
.file-input-ghost {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.flex-1 {
  flex: 1;
}

.text-right {
  text-align: right;
}

.btn.btn-success {
  border-color: var(--success-success);
}
.btn.btn-success:not(.btn-filled) {
  color: var(--success-success);
}

.file-icon-wrap {
  margin-bottom: 6px;
  flex-shrink: 0;
}

.foreign-doc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--type-body-small-size);
}

.foreign-doc-status--ok {
  color: var(--success-success);
}

.foreign-doc-status--error {
  color: var(--error);
}

.country-unknown {
  color: var(--warning-on-warning-container);
  background: var(--warning-warning-container);
  padding: 2px 8px;
  border-radius: var(--radius-small);
  font-size: var(--type-label-small-size);
}

.tree-branch {
  color: var(--outline);
  margin-right: 6px;
}

.tree-branch--l1 {
  padding-left: 20px;
}

.tree-branch--l2 {
  padding-left: 40px;
}

.step-row {
  display: flex;
  gap: 8px;
}

.step-row--between {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.result-meta {
  font-size: var(--type-label-small-size);
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.result-value {
  font-size: var(--type-body-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
}

.result-value--large {
  font-size: var(--type-title-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
}

.tree-indent--l1 {
  padding-left: 24px;
}

.tree-indent--l2 {
  padding-left: 48px;
}

.table-note {
  font-size: var(--type-label-small-size);
  color: var(--on-surface-variant);
  padding: 6px 0 12px;
  border-bottom: 1px solid var(--outline-variant);
  margin-bottom: 12px;
}

.section-label-sm {
  font-size: var(--type-body-small-size);
  font-weight: 600;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}

.ai-note {
  font-size: var(--type-label-small-size);
  color: var(--on-surface-variant);
  margin-top: 8px;
}

.ts-block {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--surface-container-low);
  border-radius: var(--radius-small);
  font-size: var(--type-label-small-size);
  color: var(--on-surface-variant);
}

.mt-10 {
  margin-top: 10px;
}

.mt-14 {
  margin-top: 14px;
}

.mt-16 {
  margin-top: 16px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-20 {
  margin-bottom: 20px;
}

.complif-pending-card {
  background: var(--surface-container-low);
  border-radius: var(--radius-small);
  padding: 14px 18px;
}

.complif-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.complif-card-col--right {
  text-align: right;
  flex-shrink: 0;
}

.result-person-name {
  font-size: var(--type-body-small-size);
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 2px;
}

.result-person-detail {
  font-size: var(--type-label-small-size);
  color: var(--on-surface-variant);
}

.result-person-warning {
  font-size: var(--type-label-small-size);
  color: var(--warning-on-warning-container);
  margin-top: 4px;
  font-weight: 600;
}

.result-deadline-label {
  font-size: var(--type-label-small-size);
  color: var(--on-surface-variant);
}

.result-deadline-date {
  font-size: var(--type-body-medium-size);
  font-weight: 600;
  color: var(--warning-on-warning-container);
}

.result-deadline-note {
  font-size: var(--type-label-small-size);
  color: var(--on-surface-variant);
}

.alert-body-block {
  display: block;
  margin-top: 4px;
}

.ob-step-ic--pct {
  font-size: var(--type-body-small-size);
  font-weight: 700;
}

.total-hint.err {
  color: var(--on-error-container);
}

.total-col--right {
  text-align: right;
}

.alert-list {
  margin-top: 6px;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--type-label-small-size);
}

.complif-demo-toggle {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--type-label-small-size);
  color: var(--on-surface-variant);
  border-top: 1px solid var(--outline);
  padding-top: 12px;
}

.complif-demo-btns {
  display: flex;
  gap: 8px;
}

.auth-bar {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.auth-page--dark {
  min-height: 100vh;
  background: var(--primary);
  display: flex;
  flex-direction: column;
}
.auth-page--dark .auth-bar {
  background: var(--primary);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  position: static;
}

.auth-success-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-success-card {
  width: 100%;
  max-width: 600px;
  background: var(--surface);
  border-radius: var(--radius-extra-large);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.auth-success-img {
  width: 167px;
  height: 160px;
  margin-bottom: 8px;
}

.auth-success-title {
  font-size: var(--type-title-large-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  line-height: var(--type-title-large-line-height);
}

.auth-success-subtitle {
  font-size: var(--type-body-medium-size);
  line-height: var(--type-body-medium-line-height);
  color: var(--on-surface-variant);
}

.auth-success-cta {
  width: 100%;
  margin-top: 12px;
}

.auth-logo {
  height: 48px;
  width: auto;
  display: block;
}

.auth-main {
  min-height: calc(100vh - 64px);
  background: var(--background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 16px;
  gap: 20px;
}

.auth-header {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-header--center {
  text-align: center;
}

.auth-subtitle {
  font-size: var(--type-body-medium-size);
  line-height: var(--type-body-medium-line-height);
  color: var(--on-surface-variant);
}

.auth-resend {
  text-align: center;
  font-size: var(--type-body-small-size);
  color: var(--on-surface-variant);
}

.auth-resend-link {
  text-align: center;
  font-size: var(--type-body-small-size);
  color: var(--tertiary);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  display: block;
}
.auth-resend-link:hover {
  text-decoration: underline;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border-radius: var(--radius-medium);
  padding: 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field--otp {
  align-items: center;
}
.field--otp .field-label {
  width: 328px;
  text-align: left;
}
.field--otp .otp-group {
  justify-content: flex-start;
}

.pw-strength {
  display: none;
  flex-direction: column;
  gap: 10px;
}
.pw-strength.visible {
  display: flex;
}

.pw-strength-title {
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface-variant);
}

.pw-req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pw-req {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--type-body-small-size);
  color: var(--on-surface-variant);
  transition: color 150ms;
}
.pw-req.met {
  color: var(--success-success);
}

.pw-req-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--outline-variant);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms, border-color 150ms;
}
.pw-req.met .pw-req-dot {
  background: var(--success-success);
  border-color: var(--success-success);
}
.pw-req.met .pw-req-dot::after {
  content: "";
  width: 9px;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 9 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 4.5L3.5 6.5L7.5 2' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  display: block;
}

.auth-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-footer-link {
  text-align: center;
  font-size: var(--type-body-small-size);
  color: var(--on-surface-variant);
  margin-top: 4px;
}

.auth-link {
  color: var(--tertiary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}
.auth-link:hover {
  text-decoration: underline;
}

.auth-login-page {
  min-height: 100vh;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  gap: 24px;
}

.auth-login-logo {
  height: 48px;
  width: auto;
  display: block;
}

.auth-login-box {
  width: 100%;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-forgot-link {
  text-align: right;
  font-size: var(--type-body-small-size);
  color: var(--tertiary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  margin-top: -8px;
}
.auth-forgot-link:hover {
  text-decoration: underline;
}

.auth-select-main {
  min-height: calc(100vh - 64px);
  background: var(--background);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 56px 24px 48px;
  gap: 12px;
}

.auth-subtitle {
  font-size: var(--type-body-large-size);
  color: var(--on-surface-variant);
  text-align: center;
}

.auth-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 720px;
  margin-top: 16px;
}

.auth-session-banner {
  width: 100%;
  max-width: 720px;
}

.auth-type-card {
  background: var(--surface);
  border-radius: var(--radius-medium);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: border-color 150ms, box-shadow 150ms;
  text-decoration: none;
}
.auth-type-card:hover {
  border-color: var(--tertiary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.auth-type-img {
  width: 80%;
  height: auto;
  object-fit: contain;
}

.auth-type-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
  text-align: center;
}

.auth-type-desc {
  font-size: var(--type-body-small-size);
  color: var(--on-surface-variant);
  text-align: left;
  line-height: 1.6;
  list-style: disc;
  padding-left: 16px;
  flex: 1;
}

.auth-type-desc li + li {
  margin-top: 4px;
}

.auth-type-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--outline-variant);
  margin-top: 4px;
  padding-left: 16px;
}

.auth-type-meta-item {
  font-size: var(--type-body-medium-size);
  line-height: var(--type-body-medium-line-height);
  color: var(--on-surface-variant);
}

.auth-type-cta {
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .auth-bar,
  .auth-page--dark .auth-bar {
    background: var(--surface);
    border-bottom-color: var(--outline-variant);
  }
  .auth-logo {
    height: 40px;
  }
  .auth-main {
    padding: 32px 16px;
    gap: 16px;
  }
  .auth-card {
    padding: 24px 20px;
  }
  .otp-input {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  .field--otp .field-label {
    width: 280px;
  }
  .auth-success-main {
    padding: 24px 16px;
    align-items: flex-start;
  }
  .auth-success-card {
    padding: 32px 24px;
  }
  .auth-success-img {
    width: 130px;
    height: 124px;
  }
  .auth-login-page {
    justify-content: flex-start;
    padding-top: 48px;
  }
  .auth-login-logo {
    height: 40px;
  }
  .auth-select-main {
    padding: 32px 16px 48px;
    gap: 16px;
  }
  .auth-type-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .auth-type-card {
    padding: 24px 20px;
  }
  .auth-type-img {
    width: 70%;
  }
}
.confirm-body {
  background: var(--background);
}

.confirm-main {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.confirm-card {
  background: var(--surface);
  border-radius: var(--radius-large);
  padding: 48px 56px;
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}

.confirm-icon-wrap {
  animation: confirm-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.confirm-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-success-container);
  display: flex;
  align-items: center;
  justify-content: center;
}
.confirm-icon .icon {
  color: var(--success-success);
  stroke-width: 1.5;
}
.confirm-icon--info {
  background: var(--information-information-container);
}
.confirm-icon--info .icon {
  color: var(--information-on-information-container);
  width: 48px;
  height: 48px;
}
.confirm-icon--info .icon * {
  stroke-width: 2 !important;
}

@keyframes confirm-pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.confirm-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.confirm-title {
  font-size: var(--type-headline-small-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  line-height: var(--type-headline-small-line-height);
}

.confirm-subtitle {
  font-size: var(--type-body-medium-size);
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.confirm-timeline {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-medium);
  overflow: hidden;
}

.confirm-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
}
.confirm-step + .confirm-step {
  border-top: 1px solid var(--outline-variant);
}

.confirm-step-ic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.confirm-step-ic--success {
  background: var(--success-success-container);
  color: var(--success-success);
}

.confirm-step-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 2px;
}

.confirm-step-title {
  font-size: var(--type-label-large-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
}

.confirm-step-desc {
  font-size: var(--type-body-small-size);
  color: var(--on-surface-variant);
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  justify-content: center;
}

@media (max-width: 600px) {
  .confirm-card {
    padding: 32px 20px;
    gap: 24px;
  }
  .confirm-icon {
    width: 60px;
    height: 60px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ob-bar {
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ob-logo {
  width: 120px;
  height: 48px;
  display: block;
}

.ob-bar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ob-bell-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  border-radius: var(--radius-medium);
  color: var(--on-surface-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms;
}
.ob-bell-btn:hover {
  background: var(--surface-container);
}

.ob-bell-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning-warning);
  border: 1.5px solid var(--surface);
}

.ob-bar-sep {
  width: 1px;
  height: 28px;
  background: var(--outline-variant);
  margin: 0 8px;
}

.ob-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-medium);
  font-family: inherit;
  transition: background 120ms;
}
.ob-user-btn:hover {
  background: var(--surface-container);
}

.ob-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.ob-user-info {
  text-align: left;
}

.ob-user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface);
  display: block;
  line-height: 1.3;
}

.ob-user-company {
  font-size: 12px;
  color: var(--on-surface-variant);
  display: block;
  line-height: 1.3;
}

.ob-chevron {
  color: var(--on-surface-variant);
  display: flex;
}

.ob-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  height: calc(100vh - 64px);
  overflow: hidden;
}

.ob-sidebar {
  width: 264px;
  min-width: 264px;
  background: var(--surface);
  border-radius: var(--radius-medium);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: calc(100vh - 64px - 48px);
  overflow-y: auto;
  flex-shrink: 0;
}

.ob-sidebar-hd {
  font-size: 15px;
  font-weight: 600;
  color: var(--on-surface);
  line-height: 1.4;
}

.ob-sidebar-ft {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--outline-variant);
}
.ob-sidebar-ft p {
  font-size: 12px;
  color: var(--on-surface-variant);
  line-height: 1.7;
}
.ob-sidebar-ft a {
  font-size: 12px;
  color: var(--tertiary);
  text-decoration: none;
}
.ob-sidebar-ft a:hover {
  text-decoration: underline;
}

.ob-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  height: calc(100vh - 64px - 48px);
  overflow-y: auto;
  padding-right: 4px;
}

.ob-main-title {
  font-size: var(--type-headline-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  line-height: var(--type-headline-medium-line-height);
}

.ob-main-desc {
  margin-top: 6px;
}

.ob-main-hd {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ob-main-hd .ob-main-desc {
  margin-top: 0;
}

.ob-content-wrap {
  background: var(--surface);
  border-radius: var(--radius-medium);
  padding: 24px;
  position: relative;
}

.autosave-indicator {
  position: absolute;
  top: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--success-success);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms, transform 200ms;
}
.autosave-indicator--visible {
  opacity: 1;
  transform: translateY(0);
}
.autosave-indicator svg {
  color: var(--success-success);
}

.ob-mobile-step {
  display: none;
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--tertiary);
}

.ob-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ob-form--separated {
  margin-top: 20px;
}

.info-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.info-card {
  background: var(--surface);
  border-radius: var(--radius-medium);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.declarations-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

.declarations-section-title {
  font-size: var(--type-title-small-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  padding-top: 16px;
  line-height: var(--type-title-small-line-height);
}

.declarations-section-desc {
  font-size: var(--type-body-small-size);
  line-height: 1.5;
  color: var(--on-surface-variant);
  margin-top: -8px;
}

.pep-hint {
  font-size: var(--type-body-small-size);
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin-top: -2px;
}

.doc-upload-guide {
  margin-top: 6px;
}
.doc-upload-guide-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--tertiary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.doc-upload-guide-toggle::-webkit-details-marker {
  display: none;
}
.doc-upload-guide-toggle::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  flex-shrink: 0;
}
.doc-upload-guide[open] .doc-upload-guide-toggle {
  color: var(--on-surface-variant);
}
.doc-upload-guide-body {
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--surface-container-low);
  border-radius: var(--radius-medium);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.doc-upload-guide-body p {
  font-size: var(--type-body-small-size);
  color: var(--on-surface-variant);
  line-height: 1.5;
  margin: 0;
}
.doc-upload-guide-body p strong {
  color: var(--on-surface);
  font-weight: var(--font-weight-medium);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

#datosRepLegal {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pep-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.radio-question {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-question-label {
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface-variant);
  line-height: var(--type-label-medium-line-height);
}
.radio-question-label--required::after {
  content: " *";
}

.radio-options {
  display: flex;
  gap: 24px;
}

.radio-question--error .radio-question-label {
  color: var(--error);
}
.radio-question--error .radio-options-helper {
  color: var(--error);
}

.radio-options-helper {
  font-size: var(--type-label-small-size);
  color: var(--on-surface-variant);
  line-height: var(--type-label-small-line-height);
}

.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--information-information-container);
  border-radius: var(--radius-medium);
  font-size: var(--type-body-small-size);
  line-height: 1.5;
  color: var(--information-on-information-container);
}

.info-banner-icon {
  font-size: 18px;
  flex-shrink: 0;
  color: var(--information-information);
  margin-top: 1px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-medium);
  border: 1px solid var(--outline-variant);
  background: var(--surface);
  font-size: var(--type-body-small-size);
  color: var(--on-surface);
  transition: background 250ms, border-color 250ms, color 250ms;
}
.check-item.pending {
  color: var(--on-surface-variant);
}
.check-item.running {
  border-color: var(--tertiary);
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}
.check-item.done {
  border-color: var(--success-success);
  background: var(--success-success-container);
  color: var(--success-on-success-container);
}
.check-item.fail {
  border-color: var(--error);
  background: var(--error-container);
  color: var(--on-error-container);
}

.check-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--outline-variant);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: background 250ms;
}
.check-indicator svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 200ms;
}
.check-item.running .check-indicator {
  background: var(--tertiary);
}
.check-item.running .check-indicator::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--tertiary);
  border-right-color: var(--tertiary);
  animation: spin-ring 0.75s linear infinite;
}
.check-item.done .check-indicator {
  background: var(--success-success);
}
.check-item.done .check-indicator svg {
  opacity: 1;
  color: var(--success-on-success-container);
}
.check-item.fail .check-indicator {
  background: var(--error);
}
.check-item.fail .check-indicator svg {
  opacity: 1;
  color: var(--on-error);
}

@keyframes spin-ring {
  to {
    transform: rotate(360deg);
  }
}
.ob-section-hd {
  font-size: var(--type-title-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  line-height: var(--type-title-medium-line-height);
  margin-bottom: 24px;
}
.ob-section-hd--spaced {
  margin-bottom: 4px;
}

.ob-section-hd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.ob-section-hd-row .ob-section-hd {
  margin-bottom: 0;
}

.field-value {
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
  line-height: var(--type-body-medium-line-height);
  padding: 2px 0;
}

.ob-form-subtitle {
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  padding-top: 4px;
}

.field-missing .field-helper {
  color: var(--on-surface-variant);
}

.resp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resp-input {
  width: 44px;
  height: 44px;
  border: 1px solid var(--outline-interactive);
  border-radius: var(--radius-medium);
  background: var(--surface);
  font-size: var(--type-body-medium-size);
  font-weight: var(--font-weight-medium);
  font-family: var(--font-family-brand);
  color: var(--on-surface);
  text-align: center;
  outline: none;
  transition: border-color 120ms, box-shadow 120ms;
  -moz-appearance: textfield;
}
.resp-input::-webkit-outer-spin-button, .resp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.resp-input:focus {
  border-color: var(--tertiary);
  box-shadow: 0 0 0 3px rgba(67, 74, 199, 0.12);
}

.onboarding-cta {
  align-self: flex-start;
  min-width: 200px;
}

.ob-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ob-substep-bar {
  display: flex;
  gap: 4px;
}

.ob-substep-seg {
  flex: 1;
  height: 2px;
  border-radius: 1px;
  background: var(--outline-variant);
}
.ob-substep-seg--active, .ob-substep-seg--done {
  background: var(--tertiary);
}

.ob-main-subtitle {
  font-size: var(--type-body-medium-size);
  line-height: var(--type-body-medium-line-height);
  color: var(--on-surface-variant);
  margin-top: -8px;
}

.ob-substep-label {
  font-size: var(--type-headline-medium-size);
  font-weight: var(--font-weight-regular, 400);
  line-height: var(--type-headline-medium-line-height);
}

.country-select {
  position: relative;
  cursor: pointer;
  outline: none;
}
.country-select:focus .country-select-trigger, .country-select--open .country-select-trigger {
  border-color: var(--tertiary);
  box-shadow: 0 0 0 3px rgba(67, 74, 199, 0.12);
}

.country-select-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: 44px;
  border: 1px solid var(--outline-interactive);
  border-radius: var(--radius-medium);
  background: var(--surface);
  transition: border-color 0.12s, box-shadow 0.12s;
}
.country-select-trigger:hover {
  border-color: var(--on-surface);
}

.country-select-placeholder {
  flex: 1;
  font-size: var(--type-body-medium-size);
  color: var(--on-surface-variant);
}

.country-select-value {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
}

.country-flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

.country-select-chevron {
  color: var(--tertiary);
  flex-shrink: 0;
  pointer-events: none;
  width: 14px;
  height: 14px;
  stroke-width: 1.5;
  transition: transform 0.15s;
}
.country-select--open .country-select-chevron {
  transform: rotate(180deg);
}

.country-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-medium);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 200;
  list-style: none;
  padding: 4px 0;
  margin: 0;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
  cursor: pointer;
  transition: background 0.1s;
}
.country-option img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.country-option:hover {
  background: var(--surface-container-low);
}
.country-option--selected {
  background: var(--primary-fixed);
  color: var(--on-primary-fixed);
}

.phone-select {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

.phone-select-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 4px;
}
.phone-select-trigger .input-select-chevron {
  position: static;
  width: 14px;
  height: 14px;
  stroke-width: 1.5;
}

.phone-select-code {
  font-size: var(--type-body-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
}

.phone-select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  min-width: 180px;
  background: var(--surface);
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-medium);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 200;
  list-style: none;
  overflow: hidden;
}

.phone-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
  cursor: pointer;
  transition: background 100ms;
}
.phone-option:hover, .phone-option:focus {
  background: var(--surface-container-low);
  outline: none;
}
.phone-option--selected {
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

.doc-type-select {
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  user-select: none;
}

.doc-type-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 4px;
}
.doc-type-trigger .input-select-chevron {
  position: static;
}

.doc-type-value {
  font-size: var(--type-body-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  min-width: 28px;
}

.doc-type-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  min-width: 80px;
  background: var(--surface);
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-medium);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 200;
  list-style: none;
  overflow: hidden;
}

.doc-type-option {
  padding: 10px 14px;
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
  cursor: pointer;
  transition: background 100ms;
}
.doc-type-option:hover, .doc-type-option:focus {
  background: var(--surface-container-low);
  outline: none;
}
.doc-type-option--selected {
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

.upload-field-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 4px 0 14px;
  height: 44px;
  border: 1px solid var(--outline-interactive);
  border-radius: var(--radius-medium);
  background: var(--surface);
  transition: border-color 0.15s;
  overflow: hidden;
}
.upload-field-box:hover {
  border-color: var(--on-surface);
}
.upload-field-box .icon-btn-upload {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.upload-field-box--done {
  border-color: var(--success-success);
  background: var(--success-success-container);
}

.upload-field-placeholder {
  flex: 1;
  font-size: var(--type-body-medium-size);
  color: var(--on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-field-filename {
  flex: 1;
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ob-form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
}

.ob-actions-spacer {
  flex: 1;
}

.rep-add-corner-btn {
  position: absolute;
  top: 20px;
  right: 20px;
}

.rep-form-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.rep-form-title-row .ob-section-hd {
  margin-bottom: 0;
}
.rep-form-title-row .ob-section-hd span {
  font-size: inherit;
}

.rep-num-badge {
  background: var(--surface-variant);
  color: var(--on-surface-variant);
}

.ob-toast {
  position: fixed;
  top: 80px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-medium);
  font-size: var(--type-body-medium-size);
  font-weight: var(--font-weight-medium);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  z-index: 500;
  transition: opacity 0.3s, transform 0.3s;
}
.ob-toast--success {
  background: var(--success-success-container);
  color: var(--success-on-success-container);
  border: 1px solid var(--success-success);
}
.ob-toast--success .icon {
  color: var(--success-success);
}
.ob-toast--error {
  background: var(--error-container);
  color: var(--on-error-container);
  border: 1px solid var(--error);
}
.ob-toast--error .icon {
  color: var(--error);
}
.ob-toast--hidden {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.ob-session-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--information-information-container);
  border: 1px solid var(--information-information);
  border-radius: var(--radius-medium);
  margin-bottom: 4px;
}
.ob-session-banner-icon {
  flex-shrink: 0;
  color: var(--information-on-information-container);
  display: flex;
}
.ob-session-banner-body {
  flex: 1;
  min-width: 0;
}
.ob-session-banner-title {
  font-size: var(--type-label-large-size);
  font-weight: var(--font-weight-semibold);
  color: var(--information-on-information-container);
  line-height: 1.4;
}
.ob-session-banner-desc {
  font-size: var(--type-body-small-size);
  color: var(--information-on-information-container);
  opacity: 0.8;
  margin-top: 2px;
}
.ob-session-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.ob-session-banner--hidden {
  display: none;
}

.radio-options--stacked {
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-section-header .ob-section-hd {
  padding-bottom: 0;
  margin-bottom: 0;
}

.admin-lbl {
  min-width: 120px;
}

.btn-inline-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--type-label-large-size);
  font-weight: var(--font-weight-medium);
  color: var(--primary);
  white-space: nowrap;
  transition: opacity 120ms;
}
.btn-inline-icon:hover {
  opacity: 0.75;
}
.btn-inline-icon .icon {
  color: var(--primary);
}

.admin-sub-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-rep-select {
  position: relative;
  cursor: pointer;
  outline: none;
}

.admin-rep-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: 44px;
  border: 1px solid var(--outline-interactive);
  border-radius: var(--radius-medium);
  background: var(--surface);
  transition: border-color 120ms;
}
.admin-rep-trigger:hover {
  border-color: var(--on-surface);
}
.admin-rep-select[aria-expanded=true] .admin-rep-trigger {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb, 67, 74, 199), 0.12);
}

.admin-rep-placeholder {
  flex: 1;
  font-size: var(--type-body-medium-size);
  color: var(--on-surface-variant);
}

.admin-rep-value {
  flex: 1;
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
}

.admin-rep-chevron {
  flex-shrink: 0;
  color: var(--tertiary);
  pointer-events: none;
  width: 14px;
  height: 14px;
  stroke-width: 1.5;
  transition: transform 180ms;
}
.admin-rep-select[aria-expanded=true] .admin-rep-chevron {
  transform: rotate(180deg);
}

.admin-rep-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--outline-variant);
  border-radius: var(--radius-medium);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  z-index: 200;
  list-style: none;
  margin: 0;
  padding: 4px 0;
  overflow: hidden;
}

.admin-rep-option {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
  cursor: pointer;
  transition: background 100ms;
}
.admin-rep-option:hover {
  background: var(--surface-container-low);
}
.admin-rep-option--selected {
  background: var(--primary-fixed);
  color: var(--on-primary-fixed);
}

.admin-rep-cat {
  color: var(--on-surface-variant);
  font-size: var(--type-body-medium-size);
}
.admin-rep-option--selected .admin-rep-cat {
  color: inherit;
  opacity: 0.75;
}

.rep-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.rep-list-header .ob-section-hd {
  padding-bottom: 0;
}

.ob-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 2, 45, 0.4);
  backdrop-filter: blur(2px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms;
}
.ob-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ob-modal {
  background: var(--surface);
  border-radius: var(--radius-large);
  padding: 28px 32px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(0, 2, 45, 0.16);
  transform: translateY(8px);
  transition: transform 180ms;
}
.is-open .ob-modal {
  transform: translateY(0);
}

.ob-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--error-container);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--error);
  flex-shrink: 0;
}
.ob-modal-icon--info { background: var(--information-information-container); color: var(--information-information); }

.ob-modal-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ob-modal-title {
  font-size: var(--type-title-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  line-height: var(--type-title-medium-line-height);
}

.ob-modal-desc {
  font-size: var(--type-body-medium-size);
  color: var(--on-surface-variant);
  line-height: var(--type-body-medium-line-height);
}

.ob-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.rep-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.rep-divider {
  border: none;
  border-top: 1px solid var(--outline-variant);
  margin: 24px 0;
}

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

.rep-card-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rep-card-identity {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.rep-card-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rep-card-name {
  font-size: var(--type-body-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  line-height: 1.4;
}

.rep-card-id {
  font-size: var(--type-body-medium-size);
  color: var(--on-surface-variant);
  line-height: 1.4;
}

.rep-card-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.icon-btn-error:not(.icon-btn-filled) {
  color: var(--error);
}

.rep-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rep-card-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  align-items: start;
}

.rep-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rep-card-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rep-card-lbl {
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface-variant);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 100px;
}

.rep-card-val {
  font-size: var(--type-body-medium-size);
  color: var(--on-surface);
  line-height: var(--type-body-medium-line-height);
}

.rep-card-doc {
  align-self: start;
}

.resp-code-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resp-code-input {
  width: 44px;
  height: 44px;
  text-align: center;
  border: 1px solid var(--outline-interactive);
  border-radius: var(--radius-medium);
  font-size: var(--type-body-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  background: var(--surface);
  outline: none;
  transition: border-color 120ms;
}
.resp-code-input:focus {
  border-color: var(--tertiary);
  box-shadow: 0 0 0 3px rgba(67, 74, 199, 0.12);
}

.currency-select-seg {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.currency-select-seg select {
  border: none;
  outline: none;
  background: transparent;
  font-size: var(--type-body-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  cursor: pointer;
  appearance: none;
  padding-right: 2px;
}

.field-info-icon {
  vertical-align: middle;
  margin-left: 4px;
  color: var(--on-surface-variant);
  flex-shrink: 0;
}

.upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--radius-medium);
  transition: border-color 120ms;
}
.upload-row--error {
  border-color: var(--error);
}
.upload-row--done {
  border-color: var(--success-success);
  background: var(--success-success-container);
}

.upload-row-icon {
  flex-shrink: 0;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-row-icon img {
  width: 32px;
  height: auto;
  display: block;
}

.upload-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-row-name-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.upload-row-name {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  line-height: 20px;
}
.upload-row--error .upload-row-name {
  color: var(--error);
}

.upload-row-required {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--on-surface-variant);
  white-space: nowrap;
}

.upload-row-sub {
  font-size: var(--type-body-small-size);
  color: var(--on-surface-variant);
  line-height: var(--type-body-small-line-height);
}
.upload-row--error .upload-row-sub {
  color: var(--error);
}

.upload-row-progress {
  margin-top: 6px;
  height: 4px;
  border-radius: 2px;
  background: var(--information-information-container);
  overflow: hidden;
}

.upload-row-progress-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--information-information);
  transition: width 200ms linear;
}

.upload-row-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.upload-row-actions .icon-btn-upload {
  width: 44px;
  height: 44px;
}
.upload-row-actions .icon-btn-upload svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .ob-logo {
    height: 40px;
    width: auto;
  }
  .ob-sidebar {
    display: none;
  }
  .ob-mobile-step {
    display: block;
  }
  .ob-layout {
    padding: 16px;
    gap: 16px;
  }
  .ob-main {
    gap: 16px;
  }
  .ob-main-title {
    font-size: var(--type-headline-small-size);
    line-height: var(--type-headline-small-line-height);
  }
  .ob-content-wrap {
    padding: 16px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .onboarding-cta {
    width: 100%;
  }
  .radio-options {
    gap: 20px;
  }
  .ob-cta-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .ob-cta-row .btn {
    width: 100%;
  }
  .ob-substep-bar {
    gap: 3px;
  }
  .upload-row {
    padding: 12px;
    gap: 10px;
  }
  .upload-row-name {
    font-size: 13px;
  }
  .upload-row-required {
    font-size: 13px;
  }
  .pep-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ob-form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    padding-top: 16px;
  }
  .ob-form-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .rep-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .rep-list-header #btnAgregarRep {
    width: 100%;
    justify-content: center;
  }
  .rep-card-cols {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .rep-card-left {
    flex: 1;
    min-width: 0;
  }
  .rep-card-name {
    font-size: var(--type-body-small-size);
  }
  .rep-card-id {
    font-size: var(--type-label-medium-size);
  }
  .ob-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .ob-modal {
    max-width: 100%;
    border-radius: var(--radius-large) var(--radius-large) 0 0;
    padding: 24px 20px 32px;
  }
  .ob-modal-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .ob-modal-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .country-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--radius-large) var(--radius-large) 0 0;
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }
  .country-dropdown .country-option {
    padding: 14px 20px;
  }
  .ob-toast {
    left: 16px;
    right: 16px;
    top: 72px;
  }
  .admin-section-header {
    flex-wrap: wrap;
    gap: 8px;
  }
  #adminForm.ob-form {
    gap: 16px;
  }
  .admin-rep-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: var(--radius-large) var(--radius-large) 0 0;
    padding-bottom: env(safe-area-inset-bottom, 16px);
  }
  .admin-rep-dropdown .admin-rep-option {
    padding: 14px 20px;
  }
  .admin-info-banner {
    font-size: var(--type-label-medium-size);
  }
  .info-cards-row {
    grid-template-columns: 1fr;
  }
  .ob-session-banner {
    flex-wrap: wrap;
    gap: 10px;
  }
  .ob-session-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .resp-code-group {
    gap: 6px;
  }
  .resp-code-input {
    width: 38px;
    height: 38px;
    font-size: var(--type-body-small-size);
  }
}


/* ═══════════════════════════════════════════════════════════════
   Estilos migrados desde HTML — pendiente compilación SCSS
   (generado manualmente — reemplazar con: sass scss/main.scss css/main.css)
   ═══════════════════════════════════════════════════════════════ */

/* ── auth: login.html, forgot-password-code-inbox.html ─────── */

.login-split {
  display: flex;
  height: 100vh;
  min-height: 640px;
}

.login-form-panel {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--surface, #FFFFFF);
  overflow-y: auto;
  padding: 0 40px;
}

.login-form-logo {
  display: none;
}

.login-form-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  width: 100%;
  max-width: 432px;
}

.login-form-body .auth-title {
  margin-bottom: 32px; text-align: center;
}

.login-form-body .auth-form {
  width: 100%;
}

.login-form-body-logo {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
}

.login-form-footer {
  padding-bottom: 40px;
  flex-shrink: 0;
}

.login-brand-panel {
  flex: 0 0 50%;
  background: #00022D;
  position: relative;
  overflow: hidden;
}

#globeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.login-brand-tagline {
  position: absolute;
  inset: 0;
  z-index: 10;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
  gap: 20px;
}

.login-brand-title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.login-brand-desc {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.90);
  max-width: 340px;
}

@media (max-width: 768px) {
  .login-split      { height: auto; min-height: 100vh; }
  .login-brand-panel { display: none; }
  .login-form-panel { flex: 0 0 100%; padding: 0 28px; }
  .login-form-body  { max-width: 100%; padding: 40px 0 32px; }
}

.fp-inbox-page {
  font-family: 'Inter', sans-serif;
  background: #F1F3F4;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  height: 64px;
  background: #FFFFFF;
  border-bottom: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
  flex-shrink: 0;
  z-index: 10;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 300;
  color: #5F6368;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  width: calc(256px - 20px);
}

.topbar-logo span {
  color: #202124; font-weight: 500;
}

.topbar-logo svg {
  width: 32px; height: 32px; color: #EA4335;
}

.topbar-search {
  flex: 1;
  max-width: 600px;
  background: #EAF1FB;
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 46px;
  gap: 12px;
  color: #5F6368;
  font-size: 14px;
}

.topbar-search input {
  border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    color: #202124;
    flex: 1;
}

.topbar-search input::placeholder {
  color: #5F6368;
}

.topbar-account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #5F6368;
}

.inbox-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1A73E8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.inbox-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}

.inbox-sidebar {
  width: 256px;
  flex-shrink: 0;
  padding: 8px 0;
  overflow-y: auto;
}

.inbox-sidebar-compose {
  margin: 4px 16px 12px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.inbox-sidebar-compose svg {
  width: 20px; height: 20px; color: #5F6368;
}

.inbox-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  border-radius: 0 24px 24px 0;
  font-size: 14px;
  color: #202124;
  cursor: pointer;
}

.inbox-sidebar-item:hover {
  background: #F6F8FC;
}

.inbox-sidebar-item.active {
  background: #D3E3FD; font-weight: 600;
}

.inbox-sidebar-item svg {
  width: 18px; height: 18px; color: #5F6368; flex-shrink: 0;
}

.inbox-sidebar-item.active svg {
  color: #202124;
}

.inbox-sidebar-count {
  margin-left: auto;
  font-size: 12px;
  color: #5F6368;
  font-weight: 500;
}

.inbox-main-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
  padding: 8px 8px 8px 0;
}

.inbox-list {
  width: 340px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-radius: 12px;
  overflow-y: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.inbox-toolbar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #E0E0E0;
  font-size: 13px;
  color: #5F6368;
  gap: 8px;
}

.inbox-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  padding: 12px 16px;
  border-bottom: 1px solid #E0E0E0;
  cursor: pointer;
  gap: 2px 8px;
  position: relative;
  transition: background 100ms;
}

.inbox-row:hover {
  background: #F6F8FC;
}

.inbox-row.active {
  background: #D3E3FD;
}

.inbox-row-sender {
  font-size: 13px;
  font-weight: 600;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-row.active .inbox-row-sender {
  color: #1967D2;
}

.inbox-row-date {
  font-size: 12px;
  color: #5F6368;
  white-space: nowrap;
}

.inbox-row-subject {
  font-size: 13px;
  font-weight: 500;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  grid-column: 1 / -1;
}

.inbox-row-preview {
  font-size: 12px;
  color: #5F6368;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  grid-column: 1 / -1;
}

.inbox-row--read .inbox-row-sender,
  .inbox-row-subject {
  font-weight: 400; color: #5F6368;
}

.inbox-email-body-gap {
  margin-top: 8px;
}

.unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1967D2;
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
}

.email-viewer {
  flex: 1;
  min-width: 0;
  background: #FFFFFF;
  border-radius: 12px;
  overflow-y: auto;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
}

.email-header {
  padding: 24px 32px 20px;
  border-bottom: 1px solid #E0E0E0;
}

.email-subject {
  font-size: 20px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 16px;
}

.email-meta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.sender-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #673AB7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.email-meta-info {
  flex: 1; min-width: 0;
}

.sender-name {
  font-size: 14px;
  font-weight: 600;
  color: #202124;
}

.sender-addr {
  font-size: 12px;
  color: #5F6368;
}

.email-time {
  font-size: 12px;
  color: #5F6368;
  margin-left: auto;
  white-space: nowrap;
}

.email-body-wrap {
  flex: 1;
  padding: 32px;
  display: flex;
  justify-content: center;
  background: #F8F8F8;
}

.email-card {
  width: 100%;
  max-width: 520px;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
  font-family: 'Inter', Arial, sans-serif;
}

.email-card-header {
  background: #00022D;
  padding: 16px 24px;
  display: flex;
  align-items: center;
}

.email-card-header img {
  height: 48px; display: block;
}

.email-card-logo-body {
  display: block;
  height: 28px;
  margin-bottom: 24px;
}

.email-card-body {
  padding: 36px 36px 28px;
}

.email-greeting {
  font-size: 15px;
  font-weight: 600;
  color: #202124;
  margin-bottom: 12px;
}

.email-text {
  font-size: 14px;
  color: #5F6368;
  line-height: 1.65;
  margin-bottom: 28px;
}

.email-code-block {
  background: #F3F4FF;
  border: 1.5px dashed #7C3AED;
  border-radius: 12px;
  padding: 24px 32px;
  text-align: center;
  margin-bottom: 28px;
}

.email-code-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7C3AED;
  margin-bottom: 10px;
}

.email-code {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 10px;
  color: #00022D;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.email-code--radicado { font-size: 22px; letter-spacing: 2px; }

.email-code-copy {
  margin-top: 12px;
  font-size: 12px;
  color: #9AA0A6;
}

.email-code-copy button {
  background: none;
    border: none;
    color: #7C3AED;
    font-size: 12px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.email-code-copy button:hover {
  color: #5B21B6;
}

.email-cta {
  text-align: center;
  margin-bottom: 28px;
}

.email-cta a {
  display: inline-block;
    background: #00022D;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 13px 32px;
    border-radius: 12px;
}

.email-cta a:hover {
  background: #1a1c4a;
}

.email-note {
  background: #FFF8E1;
  border-left: 3px solid #FFC107;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 12px;
  color: #795548;
  line-height: 1.5;
  margin-bottom: 28px;
}

.email-divider {
  border: none;
  border-top: 1px solid #E0E0E0;
  margin-bottom: 20px;
}

.email-card-footer {
  padding: 0 36px 28px;
  font-size: 11px;
  color: #9AA0A6;
  line-height: 1.6;
  text-align: center;
}

.email-card-footer a {
  color: #7C3AED; text-decoration: none;
}

.inbox-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #202124;
  color: #fff;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: all 200ms ease;
  pointer-events: none;
  z-index: 9999;
}

.inbox-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .fp-inbox-page      { overflow: auto; height: auto; }
  .topbar             { padding: 0 16px; gap: 10px; }
  .topbar-logo        { width: auto; font-size: 18px; }
  .topbar-search      { display: none; }
  .topbar-account span { display: none; }
  .inbox-sidebar,
  .inbox-list         { display: none; }
  .inbox-layout       { min-height: 100vh; }
  .inbox-main-panel   { padding: 8px; flex-direction: column; }
  .email-viewer       { border-radius: 12px; min-height: calc(100vh - 80px); overflow: visible; }
  .email-header       { padding: 20px 20px 16px; }
  .email-body-wrap    { padding: 16px; }
  .email-card-body    { padding: 24px 24px 20px; }
  .email-card-header  { padding: 16px 24px; }
  .email-code         { font-size: 32px; letter-spacing: 6px; }
  .email-cta a        { display: block; text-align: center; }
}

/* ── onboarding: 02b-biz-email-inbox.html, 02b-biz-email-inbox-mobile.html, 08-biz-shareholders.html ── */

.ob-inbox-shell {
  max-width: 390px;
  margin: 0 auto;
  min-height: 100%;
  background: #F4F4F8;
  display: flex;
  flex-direction: column;
  position: relative;
}

.ob-status-bar {
  height: 44px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.ob-status-bar-time {
  color: #202124;
}

.ob-status-bar-icons {
  display: flex;
    align-items: center;
    gap: 6px;
    color: #202124;
}

.ob-status-bar-icons svg {
  width: 16px; height: 16px;
}

.ob-inbox-view {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ob-inbox-topbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E0E0E0;
  padding: 12px 20px 14px;
}

.ob-inbox-topbar-title {
  font-size: 22px;
    font-weight: 700;
    color: #202124;
    margin-bottom: 10px;
}

.ob-inbox-search {
  background: #F4F4F8;
  border-radius: 24px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 38px;
  gap: 10px;
  color: #5F6368;
  font-size: 14px;
}

.ob-inbox-search svg {
  width: 16px; height: 16px; flex-shrink: 0;
}

.ob-inbox-tab-row {
  background: #FFFFFF;
  border-bottom: 1px solid #E0E0E0;
  display: flex;
  padding: 0 20px;
  gap: 24px;
}

.ob-inbox-tab {
  font-size: 13px;
  font-weight: 500;
  padding: 10px 0;
  color: #5F6368;
  position: relative;
  cursor: pointer;
}

.ob-inbox-tab.active {
  color: #1967D2;
    font-weight: 600;
}

.ob-inbox-tab.active::after {
  content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 2px;
      background: #1967D2;
      border-radius: 2px 2px 0 0;
}

.ob-inbox-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1967D2;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  margin-left: 4px;
  vertical-align: middle;
}

.ob-inbox-list {
  flex: 1; overflow-y: auto;
}

.ob-inbox-row {
  background: #FFFFFF;
  border-bottom: 1px solid #E0E0E0;
  padding: 14px 20px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 2px;
  cursor: pointer;
  position: relative;
  transition: background 100ms;
}

.ob-inbox-row.unread {
  background: #FAFBFF;
}

.ob-inbox-row:active {
  background: #EAF1FB;
}

.ob-inbox-av {
  grid-row: 1 / 3;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  color: #fff;
  align-self: center;
}

.ob-inbox-av-supra {
  background: #673AB7;
}

.ob-inbox-av-li {
  background: #0077B5;
}

.ob-inbox-av-notion {
  background: #1a1a1a;
}

.ob-inbox-av-figma {
  background: #FF7262;
}

.ob-inbox-sender {
  font-size: 14px;
  font-weight: 400;
  color: #5F6368;
  align-self: end;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ob-inbox-row.unread .ob-inbox-sender {
  font-weight: 600; color: #202124;
}

.ob-inbox-date {
  font-size: 12px;
  color: #5F6368;
  align-self: end;
  white-space: nowrap;
}

.ob-inbox-row.unread .ob-inbox-date {
  color: #1967D2; font-weight: 500;
}

.ob-inbox-subject {
  font-size: 13px;
  font-weight: 400;
  color: #5F6368;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  grid-column: 2 / 4;
}

.ob-inbox-row.unread .ob-inbox-subject {
  font-weight: 600; color: #202124;
}

.ob-bottom-nav {
  background: #FFFFFF;
  border-top: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  flex-shrink: 0;
}

.ob-bottom-nav-btn {
  display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 16px;
    color: #5F6368;
    font-size: 10px;
    font-weight: 500;
}

.ob-bottom-nav-btn.active {
  color: #1967D2;
}

.ob-bottom-nav-btn svg {
  width: 22px; height: 22px;
}

.ob-fab {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: #00022D;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,2,45,.3);
}

.ob-fab svg {
  width: 22px; height: 22px;
}

.ob-detail-view {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.ob-detail-topbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  padding: 0 8px;
  height: 52px;
  gap: 4px;
  flex-shrink: 0;
}

.ob-detail-topbar-title {
  flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #202124;
    padding-left: 4px;
}

.ob-icon-btn {
  width: 40px; height: 40px;
  border-radius: 20px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #5F6368;
}

.ob-icon-btn:active {
  background: #F4F4F8;
}

.ob-icon-btn svg {
  width: 20px; height: 20px;
}

.ob-detail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px 0 80px;
}

.ob-detail-subject {
  font-size: 20px;
  font-weight: 700;
  color: #202124;
  padding: 0 20px 16px;
  line-height: 1.3;
}

.ob-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 16px;
}

.ob-detail-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #673AB7;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  flex-shrink: 0;
}

.ob-detail-sender-name {
  font-size: 14px; font-weight: 600; color: #202124;
}

.ob-detail-sender-addr {
  font-size: 12px; color: #5F6368;
}

.ob-detail-time {
  font-size: 12px; color: #5F6368; margin-left: auto; white-space: nowrap;
}

.ob-detail-divider {
  border: none; border-top: 1px solid #E0E0E0; margin: 0 20px 20px;
}

.ob-email-card {
  margin: 0 16px;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
  font-family: 'Inter', Arial, sans-serif;
}

.ob-detail-action-bar {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 390px;
  background: #FFFFFF;
  border-top: 1px solid #E0E0E0;
  padding: 12px 20px max(12px, env(safe-area-inset-bottom));
  z-index: 200;
}

.ob-detail-action-bar .cta-btn {
  display: block;
    width: 100%;
    background: #00022D;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    padding: 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.ob-detail-action-bar .cta-btn:active {
  opacity: 0.85;
}

.ob-copy-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #202124;
  color: #fff;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: all 200ms ease;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
}

.ob-copy-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

.ob-layout--shareholders {
  height: auto;
  overflow: unset;
}

.ob-layout--shareholders .ob-sidebar {
  position: sticky;
  top: 88px; /* 64px appbar + 24px layout padding */
  height: calc(100vh - 112px); /* 64px appbar + 24px top + 24px bottom */
  overflow-y: auto;
}

.ob-main--shareholders {
  height: auto;
  overflow-y: unset;
}

.ob-content-wrap--centered {
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.ob-progress {
  display: flex;
  height: 6px;
  background: var(--surface);
}

.ob-seg {
  flex: 1;
  background: var(--surface-container-high);
  transition: background .4s ease;
}

.ob-seg + .ob-seg {
  border-left: 2px solid var(--surface);
}

.ob-seg.done {
  background: var(--secondary);
}

.ob-seg.active {
  background: var(--primary);
}

.ob-sidebar--sticky {
  position: sticky;
  top: 88px;
  height: calc(100vh - 112px);
  overflow-y: auto;
}

.ob-steps {
  list-style: none; display: flex; flex-direction: column;
}

.ob-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  padding-bottom: 0;
}

.ob-step:not(:last-child)::after {
  content: '';
    position: absolute;
    left: 13px;
    top: 32px;
    height: 36px;
    width: 1px;
    background: repeating-linear-gradient(
      to bottom,
      var(--outline-variant) 0px,
      var(--outline-variant) 3px,
      transparent 3px,
      transparent 7px
    );
}

.ob-step-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  flex: 1;
}

.ob-step-ic {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
  color: var(--surface);
}

.ob-step.done    .ob-step-ic {
  background: var(--success-success);
}

.ob-step.neutral .ob-step-ic {
  background: var(--surface-container-high); color: var(--on-surface-variant);
}

.ob-step.active  .ob-step-ic {
  background: var(--primary);
}

.ob-step.pending .ob-step-ic {
  background: var(--warning-warning-container);
    color: var(--warning-on-warning-container);
    border: 2px solid var(--warning-warning);
}

.ob-step-label {
  font-size: 12px;
  color: var(--on-surface-variant);
  line-height: 1.4;
}

.ob-step.active  .ob-step-label {
  color: var(--primary); font-weight: 600;
}

.ob-step.pending .ob-step-label {
  color: var(--warning-on-warning-container);
    font-weight: 600;
}

.ob-step.pending .ob-step-label::after {
  content: ' · ⏳ pendiente';
      font-size: var(--type-label-small-size);
      font-weight: 400;
}

.wf-step {
  display: none; animation: fadeIn .22s ease;
}

.wf-step.active {
  display: block;
}

@keyframes fadeIn from {
  opacity: 0; transform: translateY(4px);
}

@keyframes fadeIn to {
  opacity: 1; transform: none;
}

/* ── composicion: uf-shareholders.html ─────────────────────── */

.uf-diagram-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.uf-h1 {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.uf-lanes {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1fr 160px;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #fff;
}

.uf-lane-header {
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
  text-align: center;
}

.uf-lanes-body {
  display: grid;
  grid-template-columns: 160px 1fr 1fr 1fr 160px;
  gap: 0;
  background: #fff;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  border-radius: 0 0 8px 8px;
}

.uf-lane {
  border-right: 1px solid #e8e8e8;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 100%;
}

.uf-lane:last-child {
  border-right: none;
}

.uf-node {
  width: 100%;
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 10.5px;
  line-height: 1.45;
  position: relative;
}

.uf-node-title {
  font-weight: 700; font-size: 10.5px; margin-bottom: 4px; display: block;
}

.uf-node-body {
  color: inherit; opacity: .88;
}

.uf-node-body li {
  margin-left: 12px; margin-top: 1px;
}

.uf-node-body li::marker {
  content: "· ";
}

.uf-diamond {
  width: 90px; height: 90px;
  transform: rotate(45deg);
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
  margin: 4px auto;
}

.uf-diamond-inner {
  transform: rotate(-45deg);
  font-size: 9.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  width: 82px;
  padding: 4px;
}

.uf-terminal {
  border-radius: 24px;
  padding: 7px 14px;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.uf-arrow {
  font-size: 10px;
  color: #888;
  text-align: center;
  width: 100%;
  padding: 2px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.uf-c-cliente {
  background: #EEF2FF; border: 1.5px solid #818CF8; color: #312E81;
}

.uf-c-supra {
  background: #F0FDF4; border: 1.5px solid #4ADE80; color: #14532D;
}

.uf-c-robot {
  background: #FFF7ED; border: 1.5px solid #FB923C; color: #7C2D12;
}

.uf-c-complif {
  background: #FDF4FF; border: 1.5px solid #C084FC; color: #581C87;
}

.uf-c-resultado {
  background: #F0FDF4; border: 1.5px solid #22C55E; color: #14532D;
}

.uf-lh-cliente {
  background: #EEF2FF; color: #3730A3;
}

.uf-lh-supra {
  background: #E0F2FE; color: #0C4A6E;
}

.uf-lh-robot {
  background: #FFF7ED; color: #7C2D12;
}

.uf-lh-complif {
  background: #FDF4FF; color: #6B21A8;
}

.uf-lh-resultado {
  background: #F0FDF4; color: #14532D;
}

.uf-d-supra {
  background: #E0F2FE; border: 2px solid #38BDF8; color: #0C4A6E;
}

.uf-d-robot {
  background: #FFF7ED; border: 2px solid #FB923C; color: #7C2D12;
}

.uf-d-complif {
  background: #FDF4FF; border: 2px solid #C084FC; color: #6B21A8;
}

.uf-err {
  background: #FEF2F2; border: 1.5px solid #F87171; color: #7F1D1D;
}

.uf-warn {
  background: #FFFBEB; border: 1.5px solid #FCD34D; color: #78350F;
}

.uf-ok {
  background: #F0FDF4; border: 1.5px solid #4ADE80; color: #14532D;
}

.uf-t-start {
  background: #1E1B4B; color: #fff;
}

.uf-t-end {
  background: #14532D; color: #fff;
}

.uf-v-arrow {
  text-align: center;
  font-size: 14px;
  color: #9CA3AF;
  line-height: 1;
  margin: 0 auto;
}

.uf-label-sm {
  font-size: 9px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1px 6px;
  margin: 1px auto;
  display: inline-block;
}

.uf-sep {
  height: 1px; background: #e8e8e8; margin: 6px 0; width: 100%;
}

.uf-flow-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 3px 0;
}

.uf-flow-connector span {
  font-size: 18px; color: #9CA3AF;
}

.uf-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.uf-leg-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #555;
}

.uf-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.uf-code-section {
  margin-top: 20px;
  background: #1e1e2e;
  border-radius: 8px;
  overflow: hidden;
}

.uf-code-header {
  background: #2a2a3e;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uf-code-header span {
  font-size: 11px; color: #a0a0c0; font-family: monospace;
}

.uf-copy-btn {
  background: #434365;
  color: #c0c0e0;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 10px;
  cursor: pointer;
  font-family: inherit;
}

.uf-copy-btn:hover {
  background: #5a5a80;
}

.uf-code-pre {
  padding: 14px 16px;
  font-family: 'Menlo', 'Courier New', monospace;
  font-size: 10px;
  color: #cdd6f4;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  max-height: 320px;
  overflow-y: auto;
}

/* ── design-kit: design-kit.html, icons.html ───────────────── */

body.design-kit {
  padding: 0; min-height: 100vh;
}

.lib-header {
  background: var(--surface);
  border-bottom: 1px solid var(--outline);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.lib-header h1 {
  font-size: var(--type-title-large-size);
    font-weight: var(--font-weight-medium);
    color: var(--on-surface);
}

.lib-header .badge {
  font-size: 11px;
    font-weight: var(--font-weight-medium);
    background: var(--tertiary-container);
    color: var(--on-tertiary-container);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

.lib-nav {
  position: fixed;
  left: 0;
  top: 65px;
  width: 220px;
  height: calc(100vh - 65px);
  background: var(--surface-container-low);
  border-right: 1px solid var(--outline);
  overflow-y: auto;
  padding: 24px 0;
}

.lib-nav a {
  display: block;
  padding: 7px 24px 7px 28px;
  font-size: var(--type-label-large-size);
  color: var(--on-surface-variant);
  text-decoration: none;
  text-align: left;
  transition: background 100ms, color 100ms;
}

.lib-nav a:hover,
.lib-nav a.active {
  background: var(--surface-container);
  color: var(--primary);
}

.lib-nav .nav-section {
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  color: var(--on-surface-variant);
  padding: 56px 24px 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.lib-nav .nav-section:first-child {
  padding-top: 8px;
}

.lib-content {
  margin-left: 220px;
  padding: 40px;
  max-width: 1100px;
}

.lib-section {
  margin-bottom: 64px;
}

.kit-phone-frame {
  width: 375px;
  height: 812px;
  overflow: hidden;
  border-radius: var(--radius-medium);
  border: 1px solid var(--outline);
  position: relative;
}

.kit-phone-frame-wide {
  max-width: 375px;
  border: 1px solid var(--outline);
  border-radius: var(--radius-medium);
  overflow: hidden;
}

.kit-variant-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--on-surface-variant);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.kit-variants {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.lib-section-title {
  font-size: var(--type-headline-small-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface);
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--outline);
}

.lib-section-desc {
  font-size: var(--type-body-medium-size);
  color: var(--on-surface-variant);
  margin: 8px 0 24px;
}

.comp-group {
  margin-bottom: 32px;
}

.comp-group-title {
  font-size: var(--type-label-large-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface-variant);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comp-group-title::after {
  content: '';
    flex: 1;
    height: 1px;
    background: var(--outline);
}

.comp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.comp-row.with-label {
  display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 16px;
}

.row-label {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: var(--on-surface-variant);
  text-align: right;
}

.row-items {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 24px;
}

.swatch {
  border-radius: var(--radius-small);
  height: 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 500;
}

.swatch-name {
  opacity: .7;
}

.swatch-hex {
  font-family: monospace;
}

hr.lib-divider {
  border: none; border-top: 1px solid var(--outline); margin: 40px 0;
}

.code-block {
  background: var(--surface-container);
  border: 1px solid var(--outline);
  border-radius: var(--radius-small);
  padding: 16px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: var(--on-surface);
  overflow-x: auto;
  margin-top: 12px;
}

.icons-top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--outline);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.icons-top-bar h1 {
  font-size: 18px;
    font-weight: 600;
    color: var(--on-surface);
    white-space: nowrap;
}

.icons-top-bar .badge {
  background: var(--tertiary-container);
    color: var(--on-tertiary-container);
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 999px;
}

#icons-search {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
  padding: 8px 14px;
  border: 1.5px solid var(--outline);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-family-brand);
  color: var(--on-surface);
  background: var(--surface-container-low);
  outline: none;
  transition: border-color 120ms;
}

#icons-search:focus {
  border-color: var(--tertiary);
}

.icons-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--inverse-surface);
  color: var(--inverse-on-surface);
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
  z-index: 9999;
}

.icons-toast.show {
  opacity: 1;
}

.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--outline);
  background: var(--surface);
  position: sticky;
  top: 57px;
  z-index: 90;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-container);
  color: var(--on-surface-variant);
  text-decoration: none;
  border: 1px solid var(--outline);
}

.cat-pill:hover {
  background: var(--tertiary-container);
    color: var(--on-tertiary-container);
    border-color: var(--tertiary);
}

.cat-pill span {
  background: var(--outline);
    color: var(--on-surface-variant);
    font-size: 10px;
    padding: 2px 4px;
  line-height: 1;
    border-radius: 999px;
}

.icons-main {
  padding: 32px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.cat-section {
  margin-bottom: 48px;
}

.cat-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--outline);
  scroll-margin-top: 120px;
}

.cat-count {
  font-size: 13px;
  font-weight: 400;
  color: var(--on-surface-variant);
  background: var(--surface-container-high);
  padding: 2px 8px;
  border-radius: 999px;
}

.ic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.ic-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

.ic-card:hover {
  background: var(--surface-container); border-color: var(--outline);
}

.ic-card:active {
  background: var(--tertiary-container); border-color: var(--tertiary);
}

.ic-card.hidden {
  display: none;
}

.ic-svg {
  width: 24px;
  height: 24px;
  color: var(--on-surface);
}

.ic-name {
  font-size: 10px;
  color: var(--on-surface-variant);
  word-break: break-all;
  line-height: 1.3;
  max-width: 80px;
}

/* ── 08-biz-shareholders.html — estilos faltantes ────────────── */

.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.text-right { text-align: right; }
.emph  { font-style: italic; }
.lead  { font-size: var(--type-body-large-size); color: var(--on-surface-variant); line-height: 1.6; }
.err   { color: var(--error); }
.ok    { color: var(--success-success); }
.warn  { color: var(--warning-warning); }
.missing { background: var(--warning-warning-container); }

.ob-sub-stepper { display: flex; gap: 4px; margin-bottom: 4px; }
.ob-sub-seg { flex: 1; height: 3px; border-radius: 2px; background: var(--inverse-primary); transition: background .3s; }
.ob-sub-seg.active { background: var(--tertiary); }
.ob-sub-seg.done { background: var(--success-success); }

.ob-step-tag { font-size: var(--type-label-medium-size); font-weight: var(--font-weight-medium); color: var(--tertiary); margin-bottom: 4px; display: block; }

.ob-nav { display: flex; align-items: center; gap: 12px; padding-top: 4px; }

.section-title { font-size: var(--type-title-small-size); font-weight: var(--font-weight-medium); color: var(--on-surface); margin-bottom: 4px; line-height: var(--type-title-small-line-height); }
.section-divider { height: 1px; background: var(--outline-variant); margin-bottom: 20px; }
.section-label-sm { font-size: var(--type-label-medium-size); font-weight: var(--font-weight-medium); color: var(--on-surface-variant); margin-bottom: 8px; }

.upload-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; margin-bottom: 16px; }
@media (max-width: 768px) { .upload-cols { grid-template-columns: 1fr; } }

.dz-formats { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.fmt-chip { font-size: 11px; font-weight: var(--font-weight-medium); color: var(--on-surface-variant); background: var(--surface-container); border-radius: 4px; padding: 2px 6px; }
.fmt-sep { font-size: 12px; color: var(--on-surface-variant); }

.requirements { list-style: disc; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: var(--type-body-small-size); color: var(--on-surface-variant); line-height: 1.5; }

.trust-banner { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; background: var(--success-success-container); border-radius: var(--radius-medium); margin-top: 0; }
.trust-icon { width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; color: var(--success-on-success-container); }
.trust-icon .icon { width: 16px; height: 16px; }
.trust-text { font-size: var(--type-body-small-size); color: var(--success-on-success-container); line-height: 1.5; }
.trust-text strong { display: block; font-weight: var(--font-weight-medium); margin-bottom: 2px; }
.trust-text span { display: block; opacity: .85; }

.complif-demo-toggle { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--type-label-small-size); color: var(--on-surface-variant); flex-wrap: wrap; opacity: .7; }
.complif-demo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-btn { font-family: inherit; font-size: var(--type-label-small-size); font-weight: var(--font-weight-medium); color: var(--on-surface-variant); background: transparent; border: 1px solid var(--outline-variant); border-radius: var(--radius-small); padding: 2px 8px; cursor: pointer; transition: background 100ms, border-color 100ms; }
.demo-btn:hover { background: var(--surface-container); border-color: var(--outline); }

.data-table { width: 100%; border-collapse: collapse; font-size: var(--type-body-small-size); }
.data-table th { font-size: var(--type-label-medium-size); font-weight: var(--font-weight-medium); color: var(--on-surface-variant); text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--outline-variant); white-space: nowrap; }
.data-table td { padding: 10px 12px; color: var(--on-surface); border-bottom: 1px solid var(--surface-container); vertical-align: middle; }
.data-table tr.missing td { background: var(--warning-warning-container); }
.data-table tr.ok td { background: var(--success-success-container); }

.tree-branch { color: var(--outline); margin-right: 4px; font-size: 13px; }
.tree-indent--l1 { padding-left: 20px; }
.tree-indent--l2 { padding-left: 40px; }

.cell-input { width: 100%; min-width: 120px; padding: 4px 8px; border: 1px solid var(--outline-interactive); border-radius: var(--radius-small); font-size: var(--type-body-small-size); font-family: inherit; color: var(--on-surface); background: var(--surface); outline: none; }
.cell-input:focus { border-color: var(--tertiary); box-shadow: 0 0 0 2px rgba(67,74,199,.1); }
.cell-input.ok  { border-color: var(--success-success); background: var(--success-success-container); }
.cell-input.err { border-color: var(--error); }

.status-dot { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 700; }
.status-dot.ok, .status-dot--ok { background: var(--success-success-container); color: var(--success-success); }
.status-dot--error { background: var(--error-container); color: var(--error); }

.total-box { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--surface-container-low); border-radius: var(--radius-medium); margin-top: 12px; }
.total-label { font-size: var(--type-label-large-size); font-weight: var(--font-weight-medium); color: var(--on-surface); }
.total-value { font-size: var(--type-title-medium-size); font-weight: var(--font-weight-medium); color: var(--on-surface); }
.total-hint { font-size: var(--type-body-small-size); color: var(--on-surface-variant); margin-top: 2px; }
.total-value.err { color: var(--error); }
.cell-check { color: var(--success-success); display: inline-flex; align-items: center; }
.cell-check .icon { width: 16px; height: 16px; }
.cell-warn  { color: var(--warning-warning); display: inline-flex; align-items: center; }
.cell-warn .icon  { width: 16px; height: 16px; }
.icon--spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.upload-placeholder { color: var(--on-surface-variant); font-size: var(--type-body-small-size); }
.doc-filename { display: inline-flex; align-items: center; gap: 6px; font-size: var(--type-body-small-size); color: var(--on-surface); }
.doc-size { color: var(--on-surface-variant); }
.doc-error { display: inline-flex; align-items: center; gap: 6px; font-size: var(--type-body-small-size); color: var(--warning-warning); }
.total-hint.err { color: var(--error); }
.total-hint.ok  { color: var(--success-on-success-container); opacity: 1; }
.total-box--success { background: var(--success-success-container); }
.total-box--success .total-label { color: var(--success-on-success-container); }
.total-box--success .total-value  { color: var(--success-on-success-container); }
.total-box--success .total-hint   { color: var(--success-on-success-container); opacity: .75; }
.total-col--right { text-align: right; }

.alert-custom { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-medium); font-size: var(--type-body-small-size); line-height: 1.5; margin-bottom: 12px; }
.alert-custom.alert-error   { background: var(--error-container); color: var(--on-error-container); }
.alert-custom.alert-success { background: var(--success-success-container); color: var(--success-on-success-container); }
.alert-custom.alert-warn    { background: var(--warning-warning-container); color: var(--warning-on-warning-container); }
.alert-custom.alert-info    { background: var(--information-information-container); color: var(--information-on-information-container); }
.alert-info .a-icon { color: var(--information-information); }
.a-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.a-icon .icon { width: 20px; height: 20px; }
.alert-error .a-icon { color: var(--error); }
.alert-success .a-icon { color: var(--success-success); }
.alert-warn .a-icon { color: var(--warning-warning); }
.a-icon--wide { width: auto; }
.complif-icon-sm { height: 16px; width: auto; }
.alert-custom strong { font-weight: var(--font-weight-medium); }
.alert-custom span { font-size: var(--type-body-small-size); }

.foreign-doc-status { display: inline-flex; align-items: center; gap: 4px; font-size: var(--type-label-medium-size); font-weight: var(--font-weight-medium); padding: 3px 8px; border-radius: 12px; }
.foreign-doc-status--ok { background: var(--success-success-container); color: var(--success-success); }
.foreign-doc-status--error { background: var(--error-container); color: var(--error); }

.signature-wrap { display: flex; flex-direction: column; gap: 16px; }
.signature-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--tertiary-container); color: var(--on-tertiary-container); display: flex; align-items: center; justify-content: center; }
.signature-title { font-size: var(--type-title-large-size); font-weight: var(--font-weight-medium); color: var(--on-surface); line-height: var(--type-title-large-line-height); }
.signature-desc { font-size: var(--type-body-medium-size); color: var(--on-surface-variant); line-height: 1.6; margin-top: -8px; }

.declaracion-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border: 1.5px solid var(--outline-variant); border-radius: var(--radius-medium); cursor: pointer; transition: border-color 150ms, background 150ms; }
.declaracion-card.accepted { border-color: var(--success-success); background: var(--success-success-container); }
.declaracion-check { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--outline-variant); display: flex; align-items: center; justify-content: center; font-size: 12px; color: transparent; flex-shrink: 0; transition: background 150ms, border-color 150ms, color 150ms; }
.declaracion-card.accepted .declaracion-check { background: var(--success-success); border-color: var(--success-success); color: #fff; }
.declaracion-text { font-size: var(--type-body-small-size); color: var(--on-surface-variant); line-height: 1.6; }
.declaracion-card.accepted .declaracion-text { color: var(--success-on-success-container); }

.ts-block { font-size: var(--type-body-small-size); color: var(--success-success); padding: 8px 12px; background: var(--success-success-container); border-radius: var(--radius-small); }

.complif-hero { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--surface-container-low); border-radius: var(--radius-medium); margin-bottom: 20px; }
.complif-hero p { font-size: var(--type-body-medium-size); color: var(--on-surface-variant); line-height: 1.6; margin: 0; }
.complif-hero-head { display: flex; align-items: center; gap: 12px; }
.complif-logo { height: 24px; width: auto; color: var(--on-surface); }
.complif-pending-card { padding: 16px; background: var(--warning-warning-container); border: 1px solid var(--warning-warning); border-radius: var(--radius-medium); font-size: var(--type-body-small-size); color: var(--warning-on-warning-container); line-height: 1.5; }

.success-screen { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding: 24px 0; }
.success-screen h2 { font-size: var(--type-headline-small-size); font-weight: var(--font-weight-medium); color: var(--on-surface); margin: 0; }
.success-screen p { margin: 0; }
.success-screen .btn { max-width: 600px; width: 100%; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--success-success-container); color: var(--success-success); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; }
.pending-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding: 32px; width: 100%; }
.pending-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--information-information-container); color: var(--information-information); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pending-icon--warn  { background: var(--warning-warning-container); color: var(--warning-warning); }
.pending-icon--error { background: var(--error-container); color: var(--error); }
.pending-icon .icon { width: 24px; height: 24px; }
.person-warn-card  { width: 100%; background: var(--warning-warning-container); border-radius: var(--radius-medium); padding: 16px; text-align: left; }
.person-error-card { width: 100%; background: var(--error-container); border-radius: var(--radius-medium); padding: 16px; text-align: left; font-size: var(--type-body-medium-size); color: var(--on-error-container); line-height: 1.5; }
.person-error-card strong { font-weight: var(--font-weight-medium); }
.person-warn-name { font-size: var(--type-label-large-size); font-weight: var(--font-weight-medium); color: var(--warning-on-warning-container); }
.person-warn-detail { font-size: var(--type-body-small-size); color: var(--warning-on-warning-container); margin-top: 2px; }
.person-deadline { font-size: var(--type-body-small-size); color: var(--on-surface-variant); }
.btn--full { width: 100%; }

.radicado-card { width: 100%; max-width: 600px; padding: 20px 24px; background: var(--surface-container-low); border: 1px solid var(--outline-variant); border-radius: var(--radius-medium); display: flex; flex-direction: column; gap: 4px; text-align: center; }
.radicado-label { font-size: var(--type-label-medium-size); font-weight: var(--font-weight-medium); color: var(--on-surface-variant); }
.radicado-value { font-size: var(--type-title-medium-size); font-weight: var(--font-weight-medium); color: var(--on-surface); letter-spacing: .02em; }
.radicado-time { font-size: var(--type-body-small-size); color: var(--on-surface-variant); margin-top: 4px; }

.result-person-name { font-size: var(--type-label-large-size); font-weight: var(--font-weight-medium); color: var(--on-surface); }
.result-person-detail { font-size: var(--type-body-small-size); color: var(--on-surface-variant); margin-top: 2px; }
.result-person-warning { font-size: var(--type-body-small-size); color: var(--warning-warning); margin-top: 4px; font-weight: var(--font-weight-medium); }
.result-deadline-label { font-size: var(--type-label-medium-size); font-weight: var(--font-weight-medium); color: var(--on-surface-variant); }
.result-deadline-date { font-size: var(--type-body-medium-size); font-weight: var(--font-weight-medium); color: var(--on-surface); }
.result-deadline-note { font-size: var(--type-body-small-size); color: var(--on-surface-variant); margin-top: 2px; }

.ai-note { font-size: var(--type-body-small-size); color: var(--on-surface-variant); font-style: italic; line-height: 1.5; }

/* ── 08-biz-shareholders: field input/select + section fixes ─── */

/* Inputs y textareas directos de .field (sin .input-box, sin .input-picker) */
.field > input,
.field > textarea {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--outline-interactive);
  border-radius: var(--radius-medium);
  background: var(--surface);
  font-size: var(--type-body-medium-size);
  font-family: var(--font-family-brand);
  color: var(--on-surface);
  outline: none;
  width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
.field > input:hover  { border-color: var(--on-surface); }
.field > input:focus  { border-color: var(--tertiary); box-shadow: 0 0 0 3px rgba(67,74,199,.12); }

/* Select dentro de .field — siempre usar .field-select como wrapper */
.field-select {
  position: relative;
}
.field-select select {
  appearance: none;
  -webkit-appearance: none;
  height: 44px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--outline-interactive);
  border-radius: var(--radius-medium);
  background: var(--surface);
  font-size: var(--type-body-medium-size);
  font-family: var(--font-family-brand);
  color: var(--on-surface);
  outline: none;
  width: 100%;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
}
.field-select select:hover { border-color: var(--on-surface); }
.field-select select:focus { border-color: var(--tertiary); box-shadow: 0 0 0 3px rgba(67,74,199,.12); }
.field-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 14px;
  height: 14px;
  color: var(--tertiary);
  stroke-width: 1.5;
}

/* Extracted — campo pre-llenado desde documento (readonly, no interactivo) */
.field--extracted > input,
.field--extracted > textarea {
  background: var(--surface-container-low);
  border-color: var(--outline-variant);
  color: var(--on-surface-variant);
  cursor: default;
  pointer-events: none;
}
.field--extracted > input:hover,
.field--extracted > input:focus { border-color: var(--outline-variant); box-shadow: none; }
.field--extracted .field-select { pointer-events: none; }
.field--extracted .field-select select {
  background: var(--surface-container-low);
  border-color: var(--outline-variant);
  color: var(--on-surface-variant);
  cursor: default;
}
.field--extracted .field-select select:hover,
.field--extracted .field-select select:focus { border-color: var(--outline-variant); box-shadow: none; }
.field--extracted .field-select-chevron { opacity: 0; }
.field-extracted-badge {
  font-size: var(--type-label-small-size);
  color: var(--tertiary);
  font-weight: var(--font-weight-medium);
  margin-left: 6px;
}

/* section: wrapper de grupo de campos */
.section { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.section:last-child { margin-bottom: 0; }

/* section-divider: solo espaciado, sin línea visible */
.section-divider { height: 0; margin: 0; background: none; border: none; margin-bottom: 4px; }

/* ── Mobile fixes: 08-biz-shareholders ─────────────────────────
   Breakpoint: 768px
   ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* AppBar */
  .ob-bar { padding: 0 16px; }
  .ob-user-info { display: none; }
  .ob-bar-sep { display: none; }

  /* Tablas — scroll horizontal */
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table th,
  .data-table td { white-space: nowrap; }

  /* Cell inputs en tabla — permitir que se encojan */
  .cell-input { min-width: 90px; }

  /* Nav buttons — ancho completo, apilados */
  .ob-nav { flex-direction: column-reverse; gap: 8px; }
  .ob-nav .btn { width: 100%; justify-content: center; }

  /* Total box — apilar en columna */
  .total-box { flex-direction: column; align-items: flex-start; gap: 4px; }
  .total-col--right { text-align: left; }

  /* Radicado time — permitir salto de línea */
  .radicado-time { white-space: normal; }

  /* Step 6 success — título más compacto */
  .success-screen h2 { font-size: var(--type-title-large-size); }

  /* Layout height — allow native page scroll on mobile */
  .ob-layout { height: auto; overflow: visible; }
  .ob-main   { height: auto; overflow-y: visible; }

  /* Grid-2 (shareholders step 1 form) — single column */
  .grid-2 { grid-template-columns: 1fr; }

  /* Pending state — reduce padding on narrow screens */
  .pending-state { padding: 20px 16px; }
}


/* ═══════════════════════════════════════════════════════════════
   TABS  –  M3 Primary & Secondary
   ═══════════════════════════════════════════════════════════════ */

/* Container */
.tabs {
  display: flex;
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

/* Individual tab */
.tab {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 64px;
  min-width: 90px;
  position: relative;
  cursor: pointer;
  border: none;
  border-bottom: 1px solid var(--outline);
  background: none;
  color: var(--on-surface);
  font-family: inherit;
  font-size: var(--type-label-large-size);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  transition: background 120ms, color 120ms, border-color 120ms;
}

/* Icon inside primary tab */
.tab .tab-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

/* Active state */
.tab.is-active {
  color: var(--tertiary);
  border-bottom: 2px solid var(--tertiary);
}

/* Hover states */
.tab:hover:not(.is-disabled):not(.is-active) {
  background: color-mix(in srgb, var(--on-surface) 4%, transparent);
}
.tab.is-active:hover:not(.is-disabled) {
  background: color-mix(in srgb, var(--tertiary) 8%, transparent);
}

/* Disabled */
.tab.is-disabled {
  color: var(--on-surface);
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

/* ── Sizes ── */
/* Large (default): height 64px, label-large */

/* Medium */
.tabs-md .tab {
  height: 56px;
  padding: 0 16px;
  font-size: var(--type-label-medium-size);
}
.tabs-md .tab .tab-icon {
  width: 20px;
  height: 20px;
}

/* Small */
.tabs-sm .tab {
  height: 48px;
  min-width: 64px;
  padding: 0 12px;
  font-size: var(--type-label-small-size);
}
.tabs-sm .tab .tab-icon {
  width: 18px;
  height: 18px;
}

/* ── Secondary tabs ── */
.tabs-secondary .tab {
  height: 48px;
  min-width: 64px;
  gap: 0;
  border-bottom-width: 1px;
}


/* ═══════════════════════════════════════════════════════════════
   SEGMENTED BUTTON  –  M3 Single-select
   ═══════════════════════════════════════════════════════════════ */

.segmented-btn {
  display: inline-flex;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-medium);
  overflow: hidden;
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: var(--type-label-medium-size);
  font-weight: var(--font-weight-medium);
  color: var(--on-surface-variant);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 120ms, color 120ms;
}

.seg-btn + .seg-btn {
  border-left: 1px solid var(--outline-variant);
}

.seg-btn.is-active {
  background: var(--tertiary);
  color: var(--on-tertiary);
}

.seg-btn:hover:not(.is-active):not(:disabled) {
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

.seg-btn:disabled {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

/* ── Sizes ── */
.segmented-btn-sm .seg-btn {
  padding: 6px 12px;
  font-size: var(--type-label-small-size);
}

.segmented-btn-lg .seg-btn {
  padding: 10px 20px;
  font-size: var(--type-label-large-size);
}
