/* =============================================================================
   ARKIA BUSINESS — Sistema de Diseño Principal v2.0
   Panel Administrativo — Estética Fintech Arkia Pay (Fira Code + Hellix)
   ============================================================================= */

/* ─── 0. FUENTES DE MARCA (Fira Code & Hellix/Haffer) ────────────────────────── */
@font-face {
  font-family: "Fira Code";
  src: url("/Identidad%20de%20Marca%20Arkia/Tipografias/Fira%20Code/FiraCode-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Hellix";
  src: url("/Identidad%20de%20Marca%20Arkia/Tipografias/hellix-font-family/Haffer-TRIAL-Regular-1.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Hellix";
  src: url("/Identidad%20de%20Marca%20Arkia/Tipografias/hellix-font-family/Haffer-TRIAL-Medium-1.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Hellix";
  src: url("/Identidad%20de%20Marca%20Arkia/Tipografias/hellix-font-family/Haffer-TRIAL-Bold-1.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Haffer";
  src: url("/Identidad%20de%20Marca%20Arkia/Tipografias/hellix-font-family/Haffer-TRIAL-Regular-1.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Haffer";
  src: url("/Identidad%20de%20Marca%20Arkia/Tipografias/hellix-font-family/Haffer-TRIAL-Medium-1.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Haffer";
  src: url("/Identidad%20de%20Marca%20Arkia/Tipografias/hellix-font-family/Haffer-TRIAL-Bold-1.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* ─── 1. VARIABLES — SISTEMA VISUAL ARKIA PAY ───────────────────────────────── */
:root {
  --bg: #F7F6FC;
  --surface: #FFFFFF;
  --border: #EBE7F4;
  --text: #08112A;
  --muted: #667085;
  --subtle: #8F87A3;
  --accent: #7A52FF;
  --accent-hover: #663BE8;
  --accent-soft: #F2EDFF;
  --positive: #09896D;
  --positive-bg: #E8FAF4;
  --negative: #E11D48;
  --negative-bg: #FFF1F2;
  --bg-main: var(--bg);
  --bg-sidebar: var(--surface);
  --bg-sidebar-hover: #F7F4FF;
  --bg-card: var(--surface);
  --bg-surface: #F9F8FD;
  --bg-card-subtle: #F9F8FD;
  --text-primary: var(--text);
  --text-secondary: var(--muted);
  --text-muted: var(--subtle);
  --border-color: var(--border);
  --border-strong: #D5CCF5;
  --arkia-cobalt: #7A52FF;
  --arkia-cobalt-light: #F2EDFF;
  --arkia-cobalt-dark: #5833DB;
  --arkia-pay-violet: #7A52FF;
  --arkia-violet-light: #F2EDFF;
  --arkia-mint: #09896D;
  --arkia-mint-light: #E8FAF4;
  --arkia-coral: #E11D48;
  --arkia-coral-light: #FFF1F2;
  --arkia-amber: #F59E0B;
  --arkia-amber-light: #FEF3C7;
  --sidebar-width: 260px;
  --sidebar-text: #5F5673;
  --sidebar-active-bg: #F2EDFF;
  --sidebar-active-txt: #7A52FF;
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Fira Code", ui-monospace, SFMono-Regular, monospace;
  --font-logo: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-numbers: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-height: 64px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --shadow-xs: 0 1px 2px rgba(33, 26, 54, .04);
  --shadow-sm: 0 1px 3px rgba(33, 26, 54, .06);
  --shadow-md: 0 4px 14px rgba(122, 82, 255, .07);
  --shadow-lg: 0 10px 28px rgba(122, 82, 255, .10);
  --shadow-xl: 0 20px 48px rgba(33, 26, 54, .12);
  --shadow-cobalt: 0 6px 20px rgba(122, 82, 255, .25);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms var(--ease-out);
  --t-base: 180ms var(--ease-out);
  --t-slow: 220ms var(--ease-out);
}

/* ─── 2. RESET BASE & TIPOGRAFÍA GLOBAL ──────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ui);
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 0.9375rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Párrafos y textos pequeños con tipografía Hellix */
p,
.lead,
small,
.small,
.text-muted,
.text-secondary,
.form-text,
.vd-welcome p,
.vd-panel p,
.vd-metric-foot,
.sidebar-brand-sub,
.header-datetime,
.vd-chart-label,
.vd-empty span,
.help-block,
.field-hint {
  font-family: var(--font-body);
}

/* Títulos y etiquetas en Fira Code */
h1,
h2,
h3,
h4,
h5,
h6,
.header-page-title,
.vd-welcome h1,
.sidebar-brand-name,
.sidebar-section-label,
.nav-item,
.btn,
.button,
th,
label,
.eyebrow,
.vd-eyebrow,
.vd-panel-kicker,
.kicker {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

/* Números y métricas con Hellix / Haffer y alineación tabular */
.tabular,
.rate-value,
td.amount,
td.rate,
.mono,
.num,
.number,
.vd-metric strong,
.vd-account-balance,
.vd-chart-count,
.vd-total-pill,
.stat-value,
.kpi-value,
[data-amount],
.flow-input-amount,
.output-preview,
.treasury-mini-card .mini-balance,
.account-balance-val,
.header-time,
.badge-count,
.nav-badge {
  font-family: var(--font-numbers);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
  font-weight: 600;
}

/* ─── 3. LAYOUT ──────────────────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ─── 4. SIDEBAR ─────────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  overflow-y: auto;
  scrollbar-width: none;
  transition: transform var(--t-base);
}

.sidebar::-webkit-scrollbar {
  display: none;
}

/* Branding */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 20px 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.sidebar-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--arkia-cobalt);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(43, 82, 232, 0.35);
}

.sidebar-logo-mark svg {
  width: 18px;
  height: 18px;
  color: #fff;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.sidebar-brand-name {
  font-size: 0.875rem;
  font-weight: 800;
  color: #F1F5F9;
  letter-spacing: 0.01em;
}

.sidebar-brand-sub {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--arkia-mint);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Navegación */
.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 10px 5px;
}

.sidebar-section-label:first-child {
  padding-top: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--sidebar-text);
  font-size: 0.845rem;
  font-weight: 500;
  transition: all var(--t-fast);
  position: relative;
  cursor: pointer;
  user-select: none;
}

.nav-item:hover {
  background: var(--bg-sidebar-hover);
  color: #CBD5E1;
}

.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-txt);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 55%;
  background: var(--arkia-cobalt);
  border-radius: 0 3px 3px 0;
}

.nav-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.65;
  transition: opacity var(--t-fast);
}

.nav-item:hover svg,
.nav-item.active svg {
  opacity: 1;
}

.nav-item.active svg {
  color: var(--arkia-cobalt);
}

.nav-badge {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(43, 82, 232, 0.18);
  color: #93C5FD;
}

.nav-item.disabled-nav {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Footer sidebar */
.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-footer-info {
  font-size: 0.68rem;
  color: #334155;
  text-align: center;
  line-height: 1.6;
}

.sidebar-footer-info span {
  color: var(--arkia-mint);
  font-weight: 600;
}

/* ─── 5. CONTENIDO PRINCIPAL ─────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── 6. HEADER ──────────────────────────────────────────────────────────────── */
.admin-header {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-xs);
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.header-page-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.header-breadcrumb {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.header-breadcrumb a {
  color: var(--arkia-cobalt);
  text-decoration: none;
}

.header-breadcrumb a:hover {
  text-decoration: underline;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-datetime {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.header-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.header-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* Status indicator */
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--arkia-mint);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.20);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.08);
  }
}

/* Separador vertical header */
.header-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
  flex-shrink: 0;
}

/* Avatar admin */
.header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--arkia-cobalt), var(--arkia-pay-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  border: 2px solid rgba(43, 82, 232, 0.2);
}

/* Botón menú mobile */
.sidebar-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.sidebar-toggle svg {
  width: 18px;
  height: 18px;
}

/* ─── 7. ÁREA DE PÁGINA ──────────────────────────────────────────────────────── */
.page-content {
  flex: 1;
  padding: 28px 28px;
}

/* ─── 8. PAGE HEADER ─────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-header-left h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-header-left p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* ─── 9. BOTONES ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.845rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--arkia-cobalt);
  color: #fff;
  box-shadow: var(--shadow-cobalt);
}

.btn-primary:hover {
  background: var(--arkia-cobalt-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(43, 82, 232, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-cobalt);
}

.btn-violet {
  background: var(--arkia-pay-violet);
  color: #fff;
  box-shadow: 0 4px 12px rgba(109, 81, 224, 0.25);
}

.btn-violet:hover {
  background: #5B42C8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(109, 81, 224, 0.35);
}

.btn-success {
  background: var(--arkia-mint);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--arkia-coral);
  color: #fff;
}

.btn-danger:hover {
  background: #DC2626;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--arkia-cobalt);
  color: var(--arkia-cobalt);
  background: var(--arkia-cobalt-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 7px 10px;
}

.btn-ghost:hover {
  background: var(--bg-surface);
  color: var(--text-secondary);
}

.btn-sm {
  padding: 6px 13px;
  font-size: 0.8rem;
}

.btn-sm svg {
  width: 13px;
  height: 13px;
}

.btn-xs {
  padding: 4px 9px;
  font-size: 0.75rem;
  border-radius: var(--radius-xs);
}

.btn-icon {
  padding: 7px;
  border-radius: var(--radius-sm);
}

.btn-icon svg {
  width: 15px;
  height: 15px;
}

.w-full {
  width: 100%;
}

/* ─── 10. CARDS ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.card-body {
  padding: 22px;
}

.card-body-flush {
  padding: 0;
}

/* ─── 11. STAT CARDS ─────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* Línea de color superior */
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card.cobalt::before {
  background: var(--arkia-cobalt);
}

.stat-card.mint::before {
  background: var(--arkia-mint);
}

.stat-card.violet::before {
  background: var(--arkia-pay-violet);
}

.stat-card.coral::before {
  background: var(--arkia-coral);
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 20px;
  height: 20px;
}

.stat-icon.cobalt {
  background: var(--arkia-cobalt-light);
  color: var(--arkia-cobalt);
}

.stat-icon.mint {
  background: var(--arkia-mint-light);
  color: var(--arkia-mint);
}

.stat-icon.violet {
  background: var(--arkia-violet-light);
  color: var(--arkia-pay-violet);
}

.stat-icon.coral {
  background: var(--arkia-coral-light);
  color: var(--arkia-coral);
}

/* ─── 12. TABLAS ─────────────────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead tr {
  background: var(--bg-surface);
  border-bottom: 1.5px solid var(--border-color);
}

thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background var(--t-fast);
}

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

tbody tr:hover {
  background: #FAFBFD;
}

tbody td {
  padding: 13px 16px;
  color: var(--text-primary);
  vertical-align: middle;
}

.td-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ─── 13. BADGES ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.badge-active {
  background: var(--arkia-mint-light);
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-inactive {
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.badge-cobalt {
  background: var(--arkia-cobalt-light);
  color: var(--arkia-cobalt);
  border: 1px solid rgba(43, 82, 232, 0.2);
}

.badge-violet {
  background: var(--arkia-violet-light);
  color: var(--arkia-pay-violet);
  border: 1px solid rgba(109, 81, 224, 0.2);
}

.badge-coral {
  background: var(--arkia-coral-light);
  color: #B91C1C;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-amber {
  background: var(--arkia-amber-light);
  color: var(--arkia-amber);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.badge-code {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ─── 14. RATE CARDS ─────────────────────────────────────────────────────────── */
.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.rate-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--t-base);
}

.rate-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(109, 81, 224, 0.25);
  transform: translateY(-2px);
}

/* Acento lateral izquierdo */
.rate-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--arkia-pay-violet), var(--arkia-cobalt));
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.rate-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-left: 4px;
}

.rate-route {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rate-country {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rate-flag {
  font-size: 1.375rem;
  line-height: 1;
}

.rate-country-name {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 600;
}

.rate-currency-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: var(--arkia-violet-light);
  color: var(--arkia-pay-violet);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.rate-arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

.rate-arrow svg {
  width: 16px;
  height: 16px;
}

.rate-value-section {
  margin-bottom: 14px;
  padding-left: 4px;
}

.rate-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 4px;
}

.rate-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.rate-value.rate-value--long {
  font-size: 1.375rem;
}

.rate-operation-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: var(--arkia-cobalt-light);
  color: var(--arkia-cobalt);
  margin-top: 5px;
}

/* Edición rápida */
.rate-inline-edit {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.rate-inline-edit input[type="number"] {
  flex: 1;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  background: var(--bg-surface);
  transition: border-color var(--t-fast);
  -moz-appearance: textfield;
}

.rate-inline-edit input[type="number"]::-webkit-outer-spin-button,
.rate-inline-edit input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.rate-inline-edit input[type="number"]:focus {
  outline: none;
  border-color: var(--arkia-cobalt);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43, 82, 232, 0.08);
}

.rate-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-left: 4px;
}

.rate-updated-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.rate-updated-time svg {
  width: 11px;
  height: 11px;
}

/* ─── 15. FORMULARIOS ────────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-label span.required {
  color: var(--arkia-coral);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--text-primary);
  background: #fff;
  transition: all var(--t-fast);
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--arkia-cobalt);
  box-shadow: 0 0 0 3px rgba(43, 82, 232, 0.10);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control-sm {
  padding: 7px 11px;
  font-size: 0.845rem;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 34px;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

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

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

/* Toggle Switch */
.toggle-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.toggle-switch input[type="checkbox"] {
  display: none;
}

.toggle-track {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: #CBD5E1;
  position: relative;
  transition: background var(--t-fast);
  flex-shrink: 0;
}

.toggle-track::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform var(--t-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked+.toggle-track {
  background: var(--arkia-cobalt);
}

.toggle-switch input:checked+.toggle-track::after {
  transform: translateX(16px);
}

.toggle-label {
  font-size: 0.845rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ─── 16. MODALES ────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-base);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.97) translateY(8px);
  transition: transform var(--t-base);
  border: 1px solid var(--border-color);
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.modal-close {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--bg-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--t-fast);
}

.modal-close:hover {
  background: var(--arkia-coral-light);
  color: var(--arkia-coral);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 22px 20px;
  border-top: 1px solid var(--border-color);
}

/* ─── 17. SEARCH ─────────────────────────────────────────────────────────────── */
.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 8px 13px 8px 34px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  font-family: inherit;
  font-size: 0.845rem;
  color: var(--text-primary);
  background: #fff;
  transition: all var(--t-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--arkia-cobalt);
  box-shadow: 0 0 0 3px rgba(43, 82, 232, 0.10);
}

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

/* ─── 18. SIMULADOR ──────────────────────────────────────────────────────────── */
.simulator-card {
  background: var(--bg-sidebar);
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.simulator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--arkia-cobalt), var(--arkia-pay-violet));
}

.simulator-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.simulator-subtitle {
  font-size: 0.72rem;
  color: #475569;
  margin-bottom: 16px;
}

.simulator-inputs {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 12px;
}

.simulator-input {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.07);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--t-fast);
  -moz-appearance: textfield;
}

.simulator-input::-webkit-outer-spin-button,
.simulator-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.simulator-input:focus {
  outline: none;
  border-color: var(--arkia-cobalt);
  background: rgba(255, 255, 255, 0.08);
}

.simulator-input::placeholder {
  color: #334155;
}

select.simulator-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 32px;
  cursor: pointer;
  appearance: none;
}

.simulator-result {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.simulator-result-label {
  font-size: 0.63rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.simulator-result-value {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--arkia-mint);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.simulator-result-currency {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(16, 185, 129, 0.55);
}

.simulator-placeholder {
  font-size: 0.78rem;
  color: #334155;
  font-style: italic;
}

/* ─── 19. TOASTS ─────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  animation: toast-in 0.3s var(--ease-out) forwards;
  min-width: 260px;
}

.toast.hiding {
  animation: toast-out 0.2s ease-in forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateX(30px) scale(0.96);
  }
}

.toast-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon svg {
  width: 15px;
  height: 15px;
}

.toast.success .toast-icon {
  background: var(--arkia-mint-light);
  color: var(--arkia-mint);
}

.toast.error .toast-icon {
  background: var(--arkia-coral-light);
  color: var(--arkia-coral);
}

.toast.warning .toast-icon {
  background: var(--arkia-amber-light);
  color: var(--arkia-amber);
}

.toast.info .toast-icon {
  background: var(--arkia-cobalt-light);
  color: var(--arkia-cobalt);
}

.toast.success {
  border-left: 2px solid var(--arkia-mint);
}

.toast.error {
  border-left: 2px solid var(--arkia-coral);
}

.toast.warning {
  border-left: 2px solid var(--arkia-amber);
}

.toast.info {
  border-left: 2px solid var(--arkia-cobalt);
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.845rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1px;
}

.toast-message {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ─── 20. EMPTY STATE ────────────────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 52px 24px;
  color: var(--text-secondary);
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-strong);
}

.empty-state-icon svg {
  width: 28px;
  height: 28px;
}

.empty-state h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 auto 5px;
  text-align: center;
}

.empty-state p {
  font-size: 0.845rem;
  max-width: 460px;
  margin: 0 auto 18px;
  line-height: 1.5;
  text-align: center;
}

/* ─── 21. SPINNER ────────────────────────────────────────────────────────────── */
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}

.spinner-dark {
  border-color: rgba(43, 82, 232, 0.15);
  border-top-color: var(--arkia-cobalt);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ─── 22. PAGINACIÓN ─────────────────────────────────────────────────────────── */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 10px;
}

.pagination-info {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 3px;
  list-style: none;
}

.pagination .page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border: 1.5px solid var(--border-color);
  transition: all var(--t-fast);
  background: #fff;
}

.pagination .page-item.active .page-link {
  background: var(--arkia-cobalt);
  border-color: var(--arkia-cobalt);
  color: #fff;
  box-shadow: var(--shadow-cobalt);
}

.pagination .page-item .page-link:hover:not([style*="cursor: not-allowed"]) {
  border-color: var(--arkia-cobalt);
  color: var(--arkia-cobalt);
}

.pagination .page-item.disabled .page-link {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─── 23. UTILIDADES ─────────────────────────────────────────────────────────── */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

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

.mt-6 {
  margin-top: 24px;
}

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

.mb-6 {
  margin-bottom: 24px;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.font-bold {
  font-weight: 700;
}

.font-medium {
  font-weight: 500;
}

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

.text-muted {
  color: var(--text-muted);
}

.text-danger {
  color: var(--arkia-coral);
}

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

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

.divider {
  height: 1px;
  background: var(--border-color);
  margin: 6px 0;
}

/* Overlay sidebar en mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 99;
  backdrop-filter: blur(2px);
}

/* ─── 24. RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .rates-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  }
}

@media (max-width: 1024px) {
  :root {
    --sidebar-width: 220px;
  }

  .page-content {
    padding: 22px;
  }

  .admin-header {
    padding: 0 22px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  /* Sidebar oculto por defecto en mobile */
  .sidebar {
    transform: translateX(-100%);
    z-index: 200;
    width: 260px;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-xl);
  }

  .sidebar-overlay.open {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .page-content {
    padding: 16px;
  }

  .admin-header {
    padding: 0 16px;
  }

  .sidebar-toggle {
    display: flex;
  }

  /* Ocultar items secundarios en header */
  .header-datetime {
    display: none;
  }

  .header-divider {
    display: none;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
  }

  .page-header .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

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

  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .card-header .search-wrapper {
    max-width: 100%;
  }

  /* Tabla en mobile */
  .table-wrapper {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin: 0;
  }

  /* Modal full-width en mobile */
  .modal-box {
    max-width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .toast-container {
    top: auto;
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: 100%;
  }

  /* Dashboard grids a columna única */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px 18px;
  }

  .page-content {
    padding: 12px;
  }
}

/* ─── Dashboard ARKIA — adaptación del panel Venus ───────────────────────── */
.venus-dashboard {
  --vd-ink: #20234b;
  --vd-muted: #8790aa;
  --vd-border: #edf0f7;
  min-height: calc(100vh - var(--header-height));
  margin: -28px;
  padding: 32px;
  background: #f4f6fc;
  color: var(--vd-ink);
}

.closing-dashboard {
  width: auto;
  max-width: none;
}

.closing-dashboard .closing-welcome {
  max-width: 1440px;
  margin: 0 auto 20px;
}

.closing-dashboard .page-header-left h1 {
  color: var(--vd-ink);
}

.closing-dashboard .page-header-left p {
  color: var(--vd-muted);
}

.closing-dashboard .report-filter-card,
.closing-dashboard .report-kpi-card,
.closing-dashboard .closing-daily-card {
  border-color: var(--vd-border);
  border-radius: 13px;
  box-shadow: 0 3px 12px rgba(38, 46, 89, .035);
}

.closing-dashboard .report-filter-card {
  max-width: 1440px;
  margin: 0 auto 16px;
}

.closing-dashboard .report-kpi-grid {
  max-width: 1440px;
  margin: 0 auto 18px;
}

.closing-dashboard .closing-daily-card {
  max-width: 1440px;
  margin: 0 auto;
}

.closing-dashboard .report-kpi-heading svg {
  color: #5941DF;
}

.closing-dashboard .report-filter-form .btn-primary,
.closing-dashboard .report-header-actions .btn-primary {
  color: #fff;
  background: #5941DF;
  border-color: #5941DF;
}

.closing-dashboard .report-filter-form .btn-primary:hover,
.closing-dashboard .report-header-actions .btn-primary:hover {
  background: #4932C2;
  border-color: #4932C2;
}

.closing-dashboard .report-table-header h2 {
  color: var(--vd-ink);
}

.closing-dashboard .report-table-header p,
.closing-dashboard .report-muted {
  color: var(--vd-muted);
}

.closing-dashboard .financial-report-table th {
  color: var(--vd-muted);
}

.closing-dashboard .financial-report-table td {
  color: var(--vd-ink);
}

.closing-dashboard .currency-label {
  background: #F3F4F6;
  color: #4B5563;
}

.vd-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 0 auto 24px;
  max-width: 1440px;
}

.vd-eyebrow,
.vd-panel-kicker {
  display: block;
  color: var(--vd-muted);
  font-size: 11px;
  font-weight: 600;
}

.vd-welcome h1 {
  margin-top: 3px;
  color: var(--vd-ink);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.vd-welcome p {
  margin-top: 6px;
  color: var(--vd-muted);
  font-size: 13px;
}

.vd-primary-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: 9px;
  background: #5238e8;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast);
}

.vd-primary-action:hover {
  background: #432bd0;
  transform: translateY(-1px);
}

.vd-primary-action svg {
  width: 16px;
  height: 16px;
}

.vd-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto 18px;
}

.vd-metric {
  position: relative;
  min-width: 0;
  min-height: 130px;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid #edf0f7;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(38, 46, 89, .035);
}

.vd-metric-featured {
  border: 0;
  background: linear-gradient(115deg, #6248f3, #4731d4);
  color: #fff;
}

.vd-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vd-metric-top>span:first-child {
  color: var(--vd-muted);
  font-size: 12px;
  font-weight: 500;
}

.vd-metric-featured .vd-metric-top>span:first-child {
  color: rgba(255, 255, 255, .76);
}

.vd-metric-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 9px;
  background: #f4f3ff;
  color: #654df0;
}

.vd-metric-icon svg {
  width: 15px;
  height: 15px;
}

.vd-metric-featured .vd-metric-icon {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.vd-metric>strong {
  display: block;
  margin-top: 9px;
  color: var(--vd-ink);
  font-size: 25px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.vd-metric-featured>strong {
  color: #fff;
}

.vd-metric-foot {
  display: block;
  margin-top: 6px;
  color: var(--vd-muted);
  font-size: 11px;
}

.vd-metric-featured .vd-metric-foot {
  color: rgba(255, 255, 255, .72);
}

.vd-metric-sparkline {
  position: absolute;
  right: 15px;
  bottom: 12px;
  width: 82px;
  height: 28px;
  opacity: .68;
}

.vd-metric-sparkline path {
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.vd-primary-grid,
.vd-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, .95fr);
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto 18px;
}

.vd-secondary-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .9fr);
}

.vd-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #edf0f7;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(38, 46, 89, .035);
}

.vd-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 21px 15px;
}

.vd-panel-heading h2 {
  margin-top: 3px;
  color: var(--vd-ink);
  font-size: 15px;
  font-weight: 600;
}

.vd-panel-heading p {
  margin-top: 4px;
  color: var(--vd-muted);
  font-size: 11px;
}

.vd-total-pill {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 20px;
  background: #f2f0ff;
  color: #5941df;
  font-size: 10px;
  font-weight: 600;
}

.vd-chart {
  display: flex;
  height: 220px;
  align-items: stretch;
  justify-content: space-around;
  gap: 10px;
  margin: 0 21px;
  padding: 15px 5px 0;
  border-bottom: 1px solid var(--vd-border);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 48px, #f2f4f9 49px, transparent 50px);
}

.vd-chart-column {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.vd-chart-count {
  color: var(--vd-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.vd-chart-track {
  display: flex;
  width: min(100%, 34px);
  height: 145px;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 8px 8px 3px 3px;
}

.vd-chart-bar {
  display: block;
  width: 100%;
  min-height: 3px;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, #836fff 0%, #5940e8 100%);
  transition: height var(--t-base);
}

.vd-chart-column:nth-child(2n) .vd-chart-bar {
  background: #c8c1ff;
}

.vd-chart-label {
  padding-bottom: 8px;
  color: var(--vd-muted);
  font-size: 10px;
  text-transform: capitalize;
}

.vd-chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 21px 16px;
  color: var(--vd-muted);
  font-size: 10px;
}

.vd-chart-footer span,
.vd-chart-footer a,
.vd-text-link,
.vd-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vd-chart-footer svg,
.vd-text-link svg,
.vd-panel-link svg {
  width: 13px;
  height: 13px;
}

.vd-chart-footer a,
.vd-text-link,
.vd-panel-link {
  color: #5941df;
  font-weight: 600;
  text-decoration: none;
}

.vd-transfers-panel {
  display: flex;
  flex-direction: column;
}

.vd-icon-link {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid var(--vd-border);
  border-radius: 9px;
  color: var(--vd-muted);
}

.vd-icon-link:hover {
  background: #f7f6ff;
  color: #5941df;
}

.vd-icon-link svg {
  width: 15px;
  height: 15px;
}

.vd-transfer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 18px;
}

.vd-transfer-row+.vd-transfer-row {
  border-top: 1px solid #f3f4f8;
}

.vd-transfer-icon,
.vd-account-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #f2f0ff;
  color: #654df0;
}

.vd-transfer-icon svg,
.vd-account-icon svg {
  width: 15px;
  height: 15px;
}

.vd-transfer-info,
.vd-account-info {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.vd-transfer-info strong,
.vd-account-info strong {
  overflow: hidden;
  color: var(--vd-ink);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vd-transfer-info span,
.vd-account-info span {
  overflow: hidden;
  color: var(--vd-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vd-transfer-amounts {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-variant-numeric: tabular-nums;
}

.vd-transfer-amounts span {
  font-size: 10px;
  white-space: nowrap;
}

.vd-amount-in {
  color: #168657;
}

.vd-amount-out {
  color: #d35464;
}

.vd-panel-link {
  justify-content: center;
  min-height: 43px;
  margin-top: auto;
  border-top: 1px solid #f3f4f8;
  font-size: 11px;
}

.vd-account-list {
  padding: 0 18px 8px;
}

.vd-account-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 0;
}

.vd-account-row+.vd-account-row {
  border-top: 1px solid #f3f4f8;
}

.vd-account-icon {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  background: #f5f6fa;
  color: #747d97;
}

.vd-account-balance {
  flex: 0 0 auto;
  color: var(--vd-ink);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vd-text-link {
  flex: 0 0 auto;
  font-size: 10px;
}

.vd-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
}

.vd-rate-row+.vd-rate-row {
  border-top: 1px solid #f3f4f8;
}

.vd-rate-route {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.vd-rate-route strong {
  color: var(--vd-ink);
  font-size: 12px;
  font-weight: 600;
}

.vd-rate-route strong span {
  padding: 0 3px;
  color: #9ba2b7;
}

.vd-rate-route>span {
  color: var(--vd-muted);
  font-size: 10px;
}

.vd-rate-value {
  color: #5941df;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.vd-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 28px 20px;
  text-align: center;
}

.vd-empty>svg {
  width: 22px;
  height: 22px;
  margin-bottom: 3px;
  color: #8c80e9;
}

.vd-empty strong {
  color: var(--vd-ink);
  font-size: 12px;
}

.vd-empty span {
  color: var(--vd-muted);
  font-size: 11px;
}

.vd-empty a {
  color: #5941df;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
}

.vd-empty-compact {
  min-height: 170px;
}

@media (max-width: 1100px) {
  .vd-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vd-primary-grid,
  .vd-secondary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .venus-dashboard {
    margin: -16px;
    padding: 22px 16px;
  }

  .vd-welcome {
    align-items: flex-start;
  }

  .vd-welcome h1 {
    font-size: 23px;
  }

  .vd-primary-grid,
  .vd-secondary-grid {
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .venus-dashboard {
    margin: -12px;
    padding: 18px 12px;
  }

  .vd-welcome {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .vd-primary-action {
    width: 100%;
  }

  .vd-metrics {
    gap: 10px;
  }

  .vd-metric {
    min-height: 116px;
    padding: 14px;
  }

  .vd-metric-top>span:first-child {
    font-size: 10px;
  }

  .vd-metric>strong {
    font-size: 22px;
  }

  .vd-metric-icon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .vd-metric-sparkline {
    display: none;
  }

  .vd-panel-heading {
    align-items: flex-start;
    padding: 16px 15px 13px;
  }

  .vd-chart {
    height: 190px;
    margin: 0 14px;
  }

  .vd-chart-track {
    height: 120px;
  }

  .vd-chart-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 15px;
    padding-left: 15px;
  }

  .vd-transfer-row {
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .vd-transfer-amounts span {
    font-size: 9px;
  }

  .vd-account-balance {
    font-size: 10px;
  }
}

/* =============================================================================
   FASE 2: CUENTAS BANCARIAS, SALDOS EN VIVO & HOJA DIARIA (REDISEÑO FINTECH)
   ============================================================================= */

/* ─── Cuentas Bancarias Grid & Cards (Módulo Cuentas) ────────────────────────── */
.account-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: #fff;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.account-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.account-card-bs {
  border: 1.5px solid rgba(97, 255, 172, 0.6);
  box-shadow: 0 4px 16px rgba(97, 255, 172, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f6fdf9 100%);
}

.account-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.account-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.account-country-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.badge-bs {
  background: rgba(97, 255, 172, 0.2);
  color: #047857;
  border: 1px solid rgba(97, 255, 172, 0.5);
  font-weight: 800;
}

.account-balance-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.account-balance-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 3px;
}

.account-balance-value {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.account-curr-sym {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 4px;
}

.account-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.account-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-meta-row svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.account-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

/* ─── SECCIÓN 1: PANEL DE CONTROL DIARIO & GRID 4-COLUMNAS DE MINI-SALDOS ────── */
.treasury-panel {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  margin-bottom: 24px;
  overflow: hidden;
  transition: all var(--t-fast);
}

.treasury-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 14px;
}

.treasury-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.treasury-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.treasury-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.live-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 1.8s infinite;
}

.date-navigator {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3px 5px;
}

.btn-date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--t-fast);
}

.btn-date-nav:hover {
  background: #fff;
  border-color: var(--border-color);
  color: var(--arkia-cobalt);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.date-picker-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
}

.date-picker-wrap svg {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

.date-picker-wrap input[type="date"] {
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: inherit;
  outline: none;
  cursor: pointer;
  padding: 4px 2px;
}

.btn-today-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 8px;
  text-decoration: none;
  background: #fff;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  transition: all var(--t-fast);
}

.btn-today-badge:hover {
  border-color: var(--arkia-cobalt);
  color: var(--arkia-cobalt);
}

.btn-today-badge.active {
  background: var(--arkia-cobalt);
  color: #fff;
  border-color: var(--arkia-cobalt);
  box-shadow: 0 2px 6px rgba(40, 79, 255, 0.25);
}

.btn-toggle-treasury {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all var(--t-fast);
}

.btn-toggle-treasury:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

/* Grid de 4 Columnas para Mini-Saldos */
.treasury-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px 22px;
  background: #fdfdfe;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.treasury-grid.collapsed {
  display: none;
}

.treasury-mini-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 14px;
  transition: all var(--t-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.treasury-mini-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transform: translateY(-1px);
}

.treasury-mini-card.highlight-bs {
  border: 1.5px solid rgba(97, 255, 172, 0.8) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f4fdf8 100%) !important;
  box-shadow: 0 3px 10px rgba(97, 255, 172, 0.15);
}

.mini-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.mini-bank-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-curr-chip {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.highlight-bs .mini-curr-chip {
  background: rgba(97, 255, 172, 0.25);
  color: #047857;
  border-color: rgba(97, 255, 172, 0.5);
}

.mini-balance-num {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.mini-balance-num .curr-sym {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 2px;
}

/* ─── SECCIÓN 2: FORMULARIO ELEVADO EN BLOQUES LÓGICOS (REGISTRO RÁPIDO) ──────── */
.flow-form-card {
  background: #ffffff;
  border: 1px solid rgba(40, 79, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 10px 30px -5px rgba(40, 79, 255, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  margin-bottom: 26px;
  padding: 24px;
}

.flow-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.flow-form-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-form-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--arkia-cobalt);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(40, 79, 255, 0.3);
}

.flow-form-icon svg {
  width: 20px;
  height: 20px;
}

.flow-title-text h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.flow-title-text p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 2px 0 0;
}

.flow-pill-selector {
  display: flex;
  gap: 4px;
  background: var(--bg-surface);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

.flow-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  user-select: none;
}

.flow-pill:hover {
  color: var(--text-primary);
}

.flow-pill.active {
  background: var(--arkia-cobalt);
  color: #fff;
  box-shadow: 0 2px 8px rgba(40, 79, 255, 0.3);
}

.flow-pill input[type="radio"] {
  display: none;
}

.flow-pill svg {
  width: 14px;
  height: 14px;
}

/* Fila Superior: Contexto (COD BANCO + 3ROS VENDEDORA) */
.flow-context-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

/* Fila Inferior: Núcleo del Cambio (Origen -> Conversión -> Destino) */
.flow-core-grid {
  display: grid;
  grid-template-columns: 1fr auto 240px auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 20px;
}

.flow-block {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.flow-block-origin {
  border-top: 3px solid #10b981;
}

.flow-block-dest {
  border-top: 3px solid #ef4444;
}

.flow-block-rate {
  border-top: 3px solid var(--arkia-cobalt);
  background: #ffffff;
}

.flow-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.flow-arrow-col {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.flow-arrow-col svg {
  width: 22px;
  height: 22px;
}

/* Input numérico grande para montos */
.flow-input-amount {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: -0.02em !important;
  height: 44px !important;
}

.flow-amount-in {
  color: #047857 !important;
}

.flow-amount-out {
  color: #b91c1c !important;
}

/* Footer del Formulario: Notas + Botón Submit Grande */
.flow-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.flow-notes-wrap {
  flex: 1;
  min-width: 260px;
}

.btn-submit-flow {
  height: 46px;
  padding: 0 28px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 12px;
  background: var(--arkia-cobalt);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(40, 79, 255, 0.35);
  transition: all var(--t-fast);
}

.btn-submit-flow:hover {
  background: #1e3ecc;
  box-shadow: 0 6px 20px rgba(40, 79, 255, 0.45);
  transform: translateY(-1px);
}

.btn-submit-flow:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-submit-flow svg {
  width: 18px;
  height: 18px;
}

/* ─── SECCIÓN 3: TABLA DEL LIBRO MAYOR (MODERNA CON CABECERA SUTIL) ─────────── */
.table-mayor-wrap {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  margin-bottom: 28px;
  overflow: hidden;
}

.table-mayor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
}

.table-mayor-title h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.table-mayor-title p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 2px 0 0;
}

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

.table-ops thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.table-ops tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  font-size: 0.85rem;
}

.table-ops tbody tr {
  transition: background-color var(--t-fast);
}

.table-ops tbody tr:hover {
  background-color: #f9fbfe;
}

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

/* Badges Modernos para Montos */
.badge-entry-monto {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #047857;
  font-weight: 800;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.badge-exit-monto {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.22);
  color: #b91c1c;
  font-weight: 800;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}

.badge-rate-mono {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.badge-op-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(40, 79, 255, 0.08);
  color: var(--arkia-cobalt);
  letter-spacing: 0.03em;
}

.badge-bank-ref {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.sub-account-meta {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── SECCIÓN 4: CUADROS DE CIERRE Y RESUMEN INFERIOR (GRID 7/5) ─────────────── */
.closing-layout {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
  align-items: start;
}

.closing-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.closing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
}

.closing-card-title h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.closing-card-title p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 2px 0 0;
}

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

.table-seller-summary th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-color);
}

.table-seller-summary td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.84rem;
  vertical-align: middle;
}

.table-seller-summary tr:last-child td {
  border-bottom: none;
}

.seller-cur-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}

/* Tarjeta Ejecutiva de Cierre del Día */
.executive-summary-box {
  padding: 20px;
}

.exec-ves-highlight {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(122, 82, 255, 0.04) 100%);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.exec-ves-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b91c1c;
  margin-bottom: 4px;
}

.exec-ves-val {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: #b91c1c;
}

.exec-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.84rem;
}

.exec-stat-row:last-child {
  border-bottom: none;
}

.exec-stat-cur {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #047857;
}

/* ─── RESPONSIVE HOJA DIARIA ─────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .treasury-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .flow-core-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .flow-arrow-col {
    display: none;
  }

  .flow-block-rate {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  .treasury-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-context-row {
    grid-template-columns: 1fr;
  }

  .flow-core-grid {
    grid-template-columns: 1fr;
  }

  .flow-block-rate {
    grid-column: span 1;
  }

  .closing-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .treasury-grid {
    grid-template-columns: 1fr;
  }

  .treasury-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-form-card {
    padding: 16px;
  }

  .flow-pill-selector {
    width: 100%;
    flex-direction: column;
  }

  .flow-footer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-submit-flow {
    width: 100%;
    justify-content: center;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
}

.sidebar-brand-name {
  font-family: var(--font-logo);
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-header-left h1,
.header-page-title,
.card-title {
  font-family: var(--font-heading);
}

.btn,
input,
select,
textarea,
table,
code {
  font-family: var(--font-ui);
}

.tabular,
.rate-value,
td.amount,
td.rate,
.mono,
.account-balance-value,
.stat-value,
.mini-balance-num,
.exec-ves-val,
.exec-stat-cur,
.flow-input-amount,
.table-ops .badge-entry-monto,
.table-ops .badge-exit-monto {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

code,
.op-code-tag,
.badge-op-code,
.badge-bank-ref,
.badge-code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0;
}

.admin-layout {
  min-height: 100vh;
}

.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  box-shadow: none;
  transition: width var(--t-base), transform var(--t-base);
}

.sidebar-brand,
.sidebar-footer {
  border-color: var(--border);
}

.sidebar-brand {
  min-height: 64px;
  padding: 12px 18px;
}

.sidebar-brand-name {
  color: var(--text);
  font-weight: 600;
}

.sidebar-brand-sub {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
}

.sidebar-logo-mark {
  background: var(--accent);
  border-radius: 9px;
  box-shadow: none;
}

.sidebar-section-label {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.nav-item {
  min-height: 40px;
  color: var(--muted);
  font-size: 14px;
  border-radius: 8px;
}

.nav-item:hover {
  background: #F9FAFB;
  color: var(--text);
}

.nav-item.active {
  background: #F3F4F6;
  color: var(--text);
  font-weight: 600;
}

.nav-item.active::before {
  display: none;
}

.nav-item.active svg {
  color: var(--accent);
}

.nav-badge {
  background: #F3F4F6 !important;
  color: var(--muted) !important;
}

.sidebar-footer-info,
.sidebar-footer-info span {
  color: var(--muted);
}

.sidebar-toggle {
  display: inline-flex;
  width: 40px;
  height: 40px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}

.sidebar-toggle:hover {
  color: var(--text);
  background: #F9FAFB;
}

.main-content {
  min-width: 0;
  transition: margin-left var(--t-base);
}

.admin-header {
  min-height: 64px;
  height: auto;
  padding: 10px 28px;
  background: var(--surface);
  border-color: var(--border);
}

.header-page-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.header-breadcrumb,
.header-breadcrumb a {
  color: var(--muted);
  font-size: 12px;
}

.header-right {
  gap: 12px;
}

.header-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.header-live-status .status-dot {
  width: 7px;
  height: 7px;
}

.header-date {
  font-size: 12px;
  font-weight: 500;
}

.header-time {
  font-size: 12px;
}

.status-dot {
  background: var(--positive);
  box-shadow: 0 0 0 3px var(--positive-bg);
}

.header-avatar {
  color: var(--text);
  background: #F3F4F6;
  border: 1px solid var(--border);
  font-weight: 600;
}

.page-content {
  width: min(100%, 1336px);
  margin: 0 auto;
  padding: 28px;
}

.page-header {
  align-items: center;
  margin-bottom: 24px;
}

.page-header-left h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.page-header-left p {
  color: var(--muted);
  font-size: 14px;
}

.btn {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast);
}

.btn-primary,
.btn-violet,
.btn-submit-flow {
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.btn-primary:hover,
.btn-violet:hover,
.btn-submit-flow:hover {
  color: #fff;
  background: #030712;
  border-color: #030712;
  box-shadow: none;
  transform: none;
}

.btn-success {
  color: #fff;
  background: var(--accent);
  box-shadow: none;
}

.btn-success:hover {
  background: #030712;
  transform: none;
}

.btn-outline,
.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn-outline:hover,
.btn-secondary:hover {
  color: var(--text);
  background: #F9FAFB;
  border-color: #D1D5DB;
}

.btn-ghost {
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: #F3F4F6;
}

.btn-danger {
  color: var(--negative);
  background: var(--negative-bg);
}

.btn-sm {
  min-height: 40px;
  padding: 6px 11px;
}

.btn-xs {
  border-radius: 8px;
}

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

.btn-date-nav {
  width: 40px;
  height: 40px;
}

.btn-toggle-treasury {
  min-height: 40px;
}

button.badge {
  min-height: 40px;
  padding: 8px 10px;
}

.rate-label,
.form-hint,
.header-breadcrumb {
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.stat-card:hover {
  box-shadow: var(--shadow-xs);
  transform: none;
}

.account-card:hover,
.rate-card:hover,
.treasury-mini-card:hover {
  border-color: #D1D5DB;
  box-shadow: var(--shadow-sm);
  transform: none;
}

[hidden] {
  display: none !important;
}

.card,
.stat-card,
.closing-card,
.table-mayor-wrap,
.treasury-panel,
.flow-form-card,
.rate-card,
.simulator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-xs);
}

.card-header,
.table-mayor-header,
.closing-card-header {
  border-color: var(--border);
}

.card-title,
.card-subtitle,
.stat-label,
.stat-desc {
  letter-spacing: 0;
  text-transform: none;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
}

.card-subtitle,
.stat-desc {
  font-size: 12px;
  color: var(--muted);
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.stat-card {
  min-width: 0;
  padding: 20px;
  align-items: center;
  gap: 12px;
}

.stat-card::before {
  display: none;
}

.stat-label,
.stat-title {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.stat-value {
  min-width: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.025em;
  overflow-wrap: normal;
}

.stat-caption {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.stat-icon,
.stat-icon.cobalt,
.stat-icon.mint,
.stat-icon.violet,
.stat-icon.coral {
  color: var(--muted) !important;
  background: #F9FAFB !important;
  flex: 0 0 40px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.form-control,
.simulator-input {
  min-width: 0;
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  box-shadow: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.form-control:hover,
.simulator-input:hover {
  border-color: #D1D5DB;
}

.form-control:focus,
.simulator-input:focus {
  border-color: #9CA3AF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .08);
}

input:disabled,
select:disabled,
textarea:disabled,
button:disabled {
  opacity: .6;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.badge,
.mini-curr-chip,
.seller-cur-chip,
.badge-rate-mono {
  color: #4B5563;
  background: #F3F4F6;
  border: 1px solid transparent;
  font-weight: 500;
}

.badge-active,
.badge-inactive,
.badge-bs,
.badge-cobalt,
.badge-amber {
  color: #4B5563 !important;
  background: #F3F4F6 !important;
  border: 1px solid transparent !important;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--positive);
}

.badge-code,
.badge-op-code,
.badge-bank-ref {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-weight: 400;
}

.table-wrapper,
.table-responsive {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

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

table th {
  color: var(--muted);
  background: #FAFAFA;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid var(--border);
}

table td {
  border-bottom: 1px solid #F3F4F6;
}

table tbody tr:hover {
  background: #FAFAFA;
}

.table-ops tbody td,
.table-ops thead th {
  border-left: 0;
  border-right: 0;
}

.badge-entry-monto,
.badge-exit-monto {
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  padding: 2px 0;
}

.badge-entry-monto {
  color: var(--positive);
}

.badge-exit-monto {
  color: var(--negative);
}

.badge-rate-mono {
  padding: 2px 0;
  font-size: 12px;
}

.table-ops .td-actions {
  opacity: 0;
  transition: opacity var(--t-fast);
}

.table-ops tr:hover .td-actions,
.table-ops tr:focus-within .td-actions {
  opacity: 1;
}

.table-ops .transaction-delete-action {
  opacity: 0;
  transition: opacity var(--t-fast);
}

.table-ops .transaction-edit-action {
  opacity: 0;
  transition: opacity var(--t-fast);
}

.table-ops tr:hover .transaction-delete-action,
.table-ops tr:focus-within .transaction-delete-action,
.table-ops tr:hover .transaction-edit-action,
.table-ops tr:focus-within .transaction-edit-action {
  opacity: 1;
}

.empty-state {
  padding: 40px 24px;
}

.empty-state-icon {
  color: var(--muted);
  background: #F9FAFB;
}

.empty-state h3 {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.empty-state p {
  max-width: 460px;
  color: var(--muted);
  font-size: 14px;
}

.account-card {
  min-width: 0;
  padding: 20px;
}

.account-card-bs {
  border-color: var(--border) !important;
  box-shadow: var(--shadow-xs) !important;
}

.account-card-header,
.account-card-header>div {
  min-width: 0;
}

.account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 600;
}

.account-country-sub {
  color: var(--muted);
  font-size: 12px;
}

.account-balance-box {
  min-width: 0;
  padding: 16px 0;
  background: transparent;
}

.account-balance-label {
  color: var(--muted);
  font-size: 12px;
}

.account-balance-label,
.rate-label {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.account-balance-value {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
}

.account-card-footer {
  gap: 12px;
}

.account-meta {
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.account-meta-row {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-card-footer .btn-icon {
  color: var(--muted);
}

.account-card-footer .btn-icon:hover {
  color: var(--text);
}

.account-list-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.account-list-toolbar .form-control {
  width: auto;
  min-width: 140px;
}

.account-list-toolbar .account-search {
  flex: 1 1 220px;
}

.account-list-toolbar .account-view-toggle {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}

.account-view-toggle .active {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
}

.accounts-grid.is-table-view {
  display: block !important;
}

.accounts-grid.is-table-view .account-card {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(150px, 1fr) minmax(140px, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 8px;
  padding: 12px 16px;
}

.accounts-grid.is-table-view .account-card-header {
  grid-column: 1;
}

.accounts-grid.is-table-view .account-balance-box {
  grid-column: 2;
  padding: 0;
}

.accounts-grid.is-table-view .account-meta {
  grid-column: 3;
  margin: 0;
}

.accounts-grid.is-table-view .account-card-footer {
  grid-column: 4;
  border: 0;
  padding: 0;
}

.accounts-grid.is-table-view .account-card-footer>.btn {
  display: none;
}

.treasury-panel {
  overflow: hidden;
}

.treasury-header {
  padding: 16px 20px;
  background: var(--surface);
  border-color: var(--border);
}

.treasury-title {
  font-size: 16px;
  font-weight: 600;
}

.treasury-title-group {
  flex-wrap: wrap;
}

.treasury-badge-live {
  padding: 2px 8px;
  color: var(--positive);
  background: var(--positive-bg);
  border: 0;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.treasury-grid {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  overflow-x: auto;
  background: var(--surface);
  scroll-snap-type: x proximity;
}

.treasury-mini-card {
  flex: 0 0 min(230px, 75vw);
  min-width: 0;
  scroll-snap-align: start;
  border-color: var(--border);
  border-radius: 10px;
  box-shadow: none;
}

.treasury-mini-card.highlight-bs {
  background: var(--surface) !important;
  border: 1px solid #9CA3AF !important;
  box-shadow: none !important;
}

.mini-bank-name {
  min-width: 0;
  font-weight: 500;
}

.mini-curr-chip {
  flex: 0 0 auto;
  font-size: 12px;
}

.mini-balance-num {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.flow-form-card {
  padding: 24px;
}

.flow-form-header {
  gap: 16px;
  flex-wrap: wrap;
}

.flow-form-title h2 {
  font-size: 18px;
  font-weight: 600;
}

.flow-form-title p {
  color: var(--muted);
  font-size: 12px;
}

.flow-form-icon {
  color: var(--text);
  background: #F3F4F6;
}

.flow-pill-selector {
  display: flex;
  gap: 2px;
  padding: 4px;
  background: #F3F4F6;
  border-radius: 10px;
}

.flow-pill {
  min-height: 40px;
  padding: 8px 12px;
  color: var(--muted);
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}

.flow-pill.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.flow-pill input {
  position: absolute;
  opacity: 0;
}

.flow-pill:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.flow-pill.active:focus-within {
  outline: none;
}

.flow-context-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.flow-core-grid {
  grid-template-columns: minmax(0, 1fr) minmax(190px, .7fr) minmax(0, 1fr);
  gap: 16px;
}

.flow-block {
  min-width: 0;
  padding: 16px;
  background: #FAFAFA;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.flow-block-title {
  color: var(--text) !important;
  font-size: 14px;
  font-weight: 600;
}

.flow-block-title>span:last-child {
  color: var(--muted) !important;
  background: #F3F4F6 !important;
  font-size: 12px !important;
  font-weight: 500;
}

.flow-input-amount {
  height: 44px !important;
  color: var(--text) !important;
  font-size: 20px !important;
  font-weight: 600 !important;
}

.flow-amount-in {
  color: var(--positive) !important;
}

.flow-amount-out {
  color: var(--negative) !important;
}

.flow-block-rate {
  grid-column: auto;
}

#rateSuggestHint {
  min-height: 20px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px !important;
}

#rateSuggestText span {
  color: var(--muted) !important;
  font-weight: 400 !important;
}

.flow-arrow-col {
  color: var(--muted);
}

.flow-footer-row {
  align-items: end;
  margin-top: 16px;
}

.flow-footer-row>div:last-child {
  flex: 0 0 auto;
}

.flow-footer-row .btn-submit-flow {
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
}

.flow-notes-wrap {
  min-width: min(260px, 100%);
}

.table-mayor-wrap {
  overflow: hidden;
  margin-bottom: 16px;
}

.table-mayor-header {
  padding: 18px 20px;
}

.table-mayor-title h3 {
  font-size: 18px;
  font-weight: 600;
}

.closing-layout {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 16px;
}

.closing-card-title h4 {
  font-size: 16px;
  font-weight: 600;
}

.exec-ves-highlight {
  padding: 0 0 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.exec-ves-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.exec-ves-val {
  color: var(--text);
  font-size: 28px;
  font-weight: 600;
}

.exec-stat-cur {
  color: var(--positive);
}

.rates-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.rate-card {
  min-width: 0;
  padding: 20px;
  overflow: hidden;
}

.rate-card-header,
.rate-route,
.rate-inline-edit {
  min-width: 0;
}

.rate-route {
  flex-wrap: wrap;
  gap: 8px;
}

.rate-country {
  min-width: 0;
}

.rate-country-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.rate-currency-badge {
  color: var(--muted);
  background: #F3F4F6;
  font-size: 12px;
}

.rate-value {
  color: var(--text);
  font-size: 32px;
  font-weight: 600;
}

.rate-operation-badge {
  color: var(--muted);
  background: #F3F4F6;
}

.rate-inline-edit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.rate-inline-edit input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
}

.rate-inline-edit .btn {
  flex: 0 0 auto;
}

.rate-card-footer {
  color: var(--muted);
}

.simulator-card {
  padding: 20px;
  color: var(--text);
}

.simulator-title {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.simulator-title svg {
  color: var(--muted) !important;
}

.simulator-subtitle,
.simulator-placeholder {
  color: var(--muted);
}

.simulator-inputs {
  gap: 10px;
}

.simulator-result {
  margin-top: 16px;
  padding: 16px;
  color: var(--text);
  background: #F9FAFB;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.simulator-result-value {
  color: var(--text);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.simulator-result-currency {
  color: var(--muted);
}

.rate-card button[title*="ruta"] {
  border-color: var(--border) !important;
}

.modal-overlay {
  opacity: 0;
  transition: opacity 180ms ease-out;
}

.modal-overlay.open {
  opacity: 1;
}

.modal-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transform: scale(.98);
  transition: transform 180ms ease-out;
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.toast-container {
  right: 20px;
  bottom: 20px;
}

.toast {
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.td-actions {
  gap: 4px;
}

.td-actions .btn-icon {
  color: var(--muted);
}

.td-actions .btn-icon:hover {
  color: var(--negative);
}

.toggle-track {
  background: #D1D5DB;
}

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

.seller-avatar {
  color: #4B5563;
  background: #F3F4F6;
  font-weight: 600;
}

.commission-value {
  font-variant-numeric: tabular-nums;
}

.admin-layout.sidebar-collapsed .sidebar {
  width: 72px;
}

.admin-layout.sidebar-collapsed .main-content {
  margin-left: 72px;
}

.admin-layout.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding-inline: 10px;
}

.admin-layout.sidebar-collapsed .sidebar-brand-text,
.admin-layout.sidebar-collapsed .sidebar-section-label,
.admin-layout.sidebar-collapsed .sidebar-footer,
.admin-layout.sidebar-collapsed .nav-item>.nav-badge {
  display: none;
}

.admin-layout.sidebar-collapsed .sidebar-nav {
  padding-inline: 12px;
}

.admin-layout.sidebar-collapsed .nav-item {
  justify-content: center;
  padding-inline: 0;
  font-size: 0;
}

.admin-layout.sidebar-collapsed .nav-item svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1100px) {
  .page-content {
    padding: 24px;
  }

  .page-content>div[style*="grid-template-columns: 1fr 360px"] {
    grid-template-columns: minmax(0, 1fr) 300px !important;
  }

  .flow-core-grid {
    grid-template-columns: minmax(0, 1fr) minmax(170px, .7fr) minmax(0, 1fr);
  }

  .flow-arrow-col {
    display: none;
  }
}

@media (max-width: 900px) {
  .closing-layout {
    grid-template-columns: 1fr;
  }

  .page-content>div[style*="grid-template-columns:1fr 360px"] {
    grid-template-columns: 1fr !important;
  }

  .page-content>div[style*="grid-template-columns: 1fr 360px"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: min(280px, 86vw);
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content,
  .admin-layout.sidebar-collapsed .main-content {
    margin-left: 0;
  }

  .admin-layout.sidebar-collapsed .sidebar {
    width: min(280px, 86vw);
  }

  .admin-layout.sidebar-collapsed .sidebar-brand {
    justify-content: flex-start;
    padding: 12px 18px;
  }

  .admin-layout.sidebar-collapsed .sidebar-brand-text,
  .admin-layout.sidebar-collapsed .sidebar-section-label,
  .admin-layout.sidebar-collapsed .sidebar-footer,
  .admin-layout.sidebar-collapsed .nav-item>.nav-badge {
    display: revert;
  }

  .admin-layout.sidebar-collapsed .sidebar-nav {
    padding: 14px 10px;
  }

  .admin-layout.sidebar-collapsed .nav-item {
    justify-content: flex-start;
    padding: 9px 10px;
    font-size: 14px;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .admin-header {
    padding: 10px 16px;
  }

  .page-content {
    padding: 20px 16px;
  }

  .header-right {
    gap: 8px;
  }

  .header-datetime {
    display: none;
  }

  .header-divider {
    display: none;
  }

  .flow-core-grid {
    grid-template-columns: 1fr;
  }

  .flow-context-row {
    grid-template-columns: 1fr;
  }

  .flow-block-rate {
    grid-column: auto;
  }

  .accounts-grid.is-table-view .account-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .accounts-grid.is-table-view .account-card-header,
  .accounts-grid.is-table-view .account-balance-box,
  .accounts-grid.is-table-view .account-meta,
  .accounts-grid.is-table-view .account-card-footer {
    grid-column: auto;
  }

  .accounts-grid.is-table-view .account-meta {
    display: none;
  }
}

@media (max-width: 560px) {
  .page-content {
    padding: 16px 12px;
  }

  .page-header {
    align-items: stretch;
  }

  .page-header>.btn,
  .page-header>div {
    width: 100%;
  }

  .page-header>div>.btn {
    width: 100%;
  }

  .header-page-title {
    font-size: 14px;
  }

  .sidebar-toggle {
    width: 40px;
  }

  .flow-form-card {
    padding: 16px;
  }

  .flow-pill-selector {
    width: 100%;
    flex-direction: column;
  }

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

  .flow-footer-row {
    align-items: stretch;
  }

  .flow-footer-row>div:last-child,
  .flow-footer-row .btn-submit-flow {
    width: 100%;
  }

  .account-list-toolbar .form-control {
    flex: 1 1 135px;
  }

  .account-list-toolbar .account-view-toggle {
    margin-left: 0;
  }

  .account-card-footer {
    flex-wrap: wrap;
  }

  .table-mayor-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rate-inline-edit .btn {
    padding-inline: 10px;
  }

  .closing-card-header {
    align-items: flex-start;
    gap: 8px;
  }

  .modal-box {
    width: calc(100vw - 24px);
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.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;
}

.currency-summary {
  min-width: 0;
  flex: 1 1 auto;
}

.currency-summary .stat-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  white-space: nowrap;
}

.account-summary-flag {
  width: 18px !important;
  height: 13px;
  border-radius: 2px !important;
  flex: 0 0 auto;
}

.account-summary-currency-token {
  display: inline-grid;
  width: 18px;
  height: 13px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 3px;
  color: #fff;
  background: #26A17B;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.currency-summary .stat-value {
  white-space: nowrap;
  font-size: clamp(20px, 2vw, 26px) !important;
}

.currency-summary .stat-value span {
  color: var(--muted);
  font-size: 12px !important;
  font-weight: 500 !important;
}

.currency-summary .stat-caption {
  margin-top: 6px;
}

.stat-header {
  flex: 0 0 auto;
}

.currency-summary-card {
  align-items: center;
}

.account-summary-grid>.stat-card:not(.currency-summary-card) {
  display: block;
}

.account-summary-grid>.stat-card:not(.currency-summary-card) .stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.badge-inactive .badge-dot {
  background: var(--subtle);
}

.seller-avatar {
  color: #4B5563 !important;
  background: #F3F4F6 !important;
}

[style*="font-weight:700"],
[style*="font-weight: 700"],
[style*="font-weight:800"],
[style*="font-weight: 800"] {
  font-weight: 600 !important;
}

.flow-block-title>span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flow-block-title svg {
  width: 16px;
  height: 16px;
}

.output-preview {
  display: block;
  min-height: 18px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  transition: opacity var(--t-fast);
}

.amount-updated {
  animation: amount-flash 700ms ease-out;
}

@keyframes amount-flash {
  0% {
    background-color: #F3F4F6;
  }

  100% {
    background-color: var(--surface);
  }
}

.confirm-modal {
  max-width: 460px;
}

.modal-title,
.toast-title {
  font-weight: 600;
}

.rate-label {
  color: var(--muted);
}

.confirm-modal-copy {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.confirm-modal .modal-body {
  color: var(--muted);
}

.rate-status-toggle {
  border-radius: 999px;
}

.rate-status-toggle:hover {
  color: var(--positive);
  background: var(--positive-bg);
}

.seller-avatar {
  width: 36px;
  height: 36px;
}

.commission-value {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .account-list-toolbar .account-search {
    flex-basis: 100%;
  }

  .currency-summary .stat-value {
    font-size: clamp(20px, 6vw, 26px) !important;
  }

  .table-ops .td-actions {
    opacity: 1;
  }

  .table-ops .transaction-delete-action {
    opacity: 1;
  }
}

.form-control.is-invalid,
.form-control[aria-invalid="true"] {
  border-color: var(--negative);
}

.form-error {
  color: var(--negative);
  font-size: 12px;
}

.dropdown-menu {
  min-width: 180px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
}

.dropdown-menu a,
.dropdown-menu button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  padding: 8px 10px;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 7px;
  text-align: left;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: #F3F4F6;
}

.skeleton {
  min-height: 14px;
  overflow: hidden;
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  to {
    background-position: -200% 0;
  }
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 200;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 5px 8px;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

/* Hoja diaria: saldos visibles y registro al frente, historial a solicitud. */
.treasury-header {
  min-height: 64px;
  padding: 12px 18px;
}

.treasury-title-group {
  gap: 8px;
}

.treasury-title {
  font-size: 14px;
  font-weight: 600;
}

.treasury-badge-live {
  padding: 0;
  background: transparent;
  font-size: 12px;
}

.live-pulse {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.treasury-grid {
  gap: 8px;
  padding: 12px 18px 16px;
  scrollbar-width: thin;
  scrollbar-color: #D1D5DB transparent;
}

.treasury-grid::-webkit-scrollbar {
  height: 5px;
}

.treasury-grid::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 8px;
}

.treasury-mini-card {
  flex-basis: 190px;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
}

.treasury-mini-card.highlight-bs {
  border: 0 !important;
  border-right: 1px solid var(--border) !important;
}

.mini-bank-name {
  font-size: 12px;
}

.mini-balance-num {
  font-size: 16px;
}

.flow-form-card {
  margin-bottom: 16px;
  padding: 20px;
}

.flow-form-header {
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.flow-form-title h2 {
  font-size: 18px;
}

.flow-form-title p {
  margin-top: 3px;
}

.flow-pill-selector {
  padding: 3px;
}

.flow-pill {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}

.flow-context-row {
  margin: 0 0 16px;
}

.flow-core-grid {
  grid-template-columns: minmax(0, 1fr) minmax(200px, .72fr) minmax(0, 1fr);
  gap: 12px;
}

.flow-core-grid[data-type="deposit"],
.flow-core-grid[data-type="withdrawal"] {
  grid-template-columns: minmax(0, 1fr);
}

.flow-arrow-col {
  display: none !important;
}

.flow-block {
  padding: 14px;
  background: var(--surface);
  border-color: var(--border);
  border-radius: 9px;
}

.flow-block-title {
  margin-bottom: 12px;
  color: var(--text) !important;
  font-size: 14px;
}

.flow-block-title>span:last-child {
  display: none;
}

.flow-block .form-group {
  margin-bottom: 12px !important;
}

.flow-block .form-control {
  background-color: var(--surface);
}

.flow-block-rate>div:first-of-type {
  margin-top: 0;
}

.flow-input-amount {
  height: 42px !important;
  font-size: 18px !important;
}

.flow-footer-row {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.flow-footer-row input {
  min-height: 40px;
}

.flow-footer-row .btn-submit-flow {
  min-height: 40px;
}

.flow-footer-row .btn-submit-flow svg {
  display: none;
}

.output-preview {
  min-height: 16px;
}

.history-section {
  margin-top: 16px;
}

.history-section {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .flow-core-grid {
    grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr) minmax(0, 1fr);
  }
}

.account-table-card {
  margin-bottom: 32px;
}

.account-history-modal {
  width: min(100%, 1040px);
  max-width: 1040px;
}

.account-history-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.account-history-body {
  min-height: 120px;
  padding: 0 22px 22px;
}

.account-history-loading,
.account-history-empty,
.account-history-error {
  display: grid;
  min-height: 140px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.account-history-error {
  color: var(--negative);
}

.account-history-table-wrap {
  max-height: min(60vh, 560px);
  overflow: auto;
}

.account-history-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.account-history-table th,
.account-history-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.account-history-table th {
  position: sticky;
  top: 0;
  background: #FAFBFE;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.account-history-table td {
  color: var(--text);
  font-size: 12px;
}

.account-history-table tbody tr:last-child td {
  border-bottom: 0;
}

.account-history-description {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.account-history-amount {
  font-variant-numeric: tabular-nums;
  text-align: right !important;
  white-space: nowrap;
}

.account-history-amount.is-in {
  color: var(--positive);
}

.account-history-amount.is-out {
  color: var(--negative);
}

.modal-open {
  overflow: hidden;
}

.account-table-card .card-header {
  align-items: center;
}

.accounts-table {
  min-width: 900px;
}

.accounts-table th {
  padding: 12px 16px;
}

.accounts-table td {
  padding: 14px 16px;
  vertical-align: middle;
}

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

.accounts-table tr[hidden] {
  display: none;
}

.account-table-name {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.account-table-detail {
  display: block;
  max-width: 220px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-table-country {
  color: var(--muted);
  white-space: nowrap;
}

.account-table-country>span {
  margin-right: 4px;
}

.account-currency {
  display: inline-flex;
  padding: 4px 8px;
  color: #4B5563;
  background: #F3F4F6;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
}

.account-table-balance {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.account-table-balance .account-curr-sym {
  color: var(--muted);
}

.account-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.account-table-actions .btn {
  min-width: 40px;
  padding-inline: 9px;
}

.account-table-actions .btn-icon {
  color: var(--muted);
}

.account-table-actions .btn-icon:hover {
  color: var(--text);
}

.account-table-actions .text-danger:hover {
  color: var(--negative);
}

.account-filter-empty {
  margin: 0 0 24px;
  padding: 24px;
}

@media (max-width: 700px) {
  .treasury-header {
    flex-direction: row;
    align-items: center;
  }

  .treasury-grid {
    padding-inline: 14px;
  }

  .flow-core-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-context-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .flow-form-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .flow-pill-selector {
    width: 100%;
    flex-direction: row;
  }

  .flow-pill {
    flex: 1 1 0;
    justify-content: center;
    padding-inline: 8px;
  }

  .account-list-toolbar {
    align-items: stretch;
  }

  .account-list-toolbar .form-control {
    flex: 1 1 150px;
  }

  .account-list-toolbar .account-search {
    flex-basis: 100%;
  }

  .account-table-card .card-header {
    align-items: flex-start;
  }

  .account-table-actions {
    opacity: 1;
  }
}

@media (max-width: 420px) {
  .date-picker-wrap {
    padding-inline: 2px;
  }

  .date-picker-wrap input[type="date"] {
    width: 118px;
    font-size: 12px;
  }
}

/* Tasas del día: lectura tabular compacta y controles alineados por ruta. */
.rates-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.rates-table-card {
  min-width: 0;
  overflow: hidden;
}

.rates-table-heading {
  align-items: center;
}

.rate-filters {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rate-search {
  width: min(220px, 24vw);
}

.rate-status-filter {
  width: 145px;
}

.rates-table {
  min-width: 900px;
}

.rates-table th {
  padding: 12px 14px;
}

.rates-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

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

.rates-table tr[hidden] {
  display: none;
}

.rate-table-route {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.rate-table-route>svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.rate-table-currency {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.rate-table-currency>span {
  font-size: 14px;
}

.rate-table-country,
.rate-time {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.rate-table-value {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.rates-table .rate-operation-badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}

.rate-table-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.rate-inline-edit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.rate-inline-edit input {
  width: 112px;
  min-width: 88px;
  min-height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
}

.rate-inline-edit input:focus {
  outline: none;
  border-color: #9CA3AF;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .08);
}

.rate-update-button {
  gap: 5px;
}

.rate-update-button svg {
  width: 14px;
  height: 14px;
}

.rate-table-actions .btn-icon {
  color: var(--muted);
}

.rate-table-actions .btn-icon:hover {
  color: var(--text);
}

.rate-table-actions .text-danger:hover {
  color: var(--negative);
}

.simulator-formula {
  min-height: 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.rates-filter-empty {
  padding: 20px;
}

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

.simulator-modal-overlay {
  z-index: 300;
}

.simulator-modal {
  width: min(100% - 32px, 480px);
  max-width: 480px;
}

.simulator-modal .modal-header {
  align-items: flex-start;
}

.simulator-modal .simulator-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
}

.simulator-modal .simulator-title svg {
  width: 18px;
  height: 18px;
}

.simulator-modal .simulator-subtitle {
  margin-top: 3px;
}

.simulator-modal .simulator-inputs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 20px 0;
}

.simulator-modal .simulator-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
}

.simulator-modal .simulator-result {
  margin: 16px 20px 0;
}

.simulator-modal .simulator-formula {
  padding: 0 20px;
}

.simulator-modal .modal-footer {
  margin-top: 12px;
}

@media (max-width: 1100px) {
  .rates-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .rates-page-actions {
    width: 100%;
  }

  .rates-page-actions .btn {
    width: auto;
    flex: 1 1 0;
  }

  .rates-table-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .rate-filters {
    align-items: stretch;
    flex-direction: column;
  }

  .rate-search,
  .rate-status-filter {
    width: 100%;
  }

  .rate-update-button span {
    display: none;
  }

  .rate-update-button {
    min-width: 40px;
    padding-inline: 10px;
  }

  .rate-inline-edit input {
    width: 96px;
  }
}

@media (max-width: 768px) {

  .rates-table thead th:nth-child(n),
  .rates-table tbody td:nth-child(n) {
    display: table-cell;
  }
}

/* Hoja diaria: saldos plegables y registro en un modal enfocado. */
.treasury-title-group {
  flex-wrap: wrap;
}

.treasury-visibility-toggle {
  min-height: 36px;
  gap: 6px;
  padding-inline: 8px;
}

.treasury-visibility-toggle svg {
  width: 15px;
  height: 15px;
}

.treasury-viewport {
  overflow: hidden;
  padding: 12px 18px 16px;
}

.treasury-viewport[hidden] {
  display: none !important;
}

.treasury-track {
  display: flex;
  width: max-content;
  animation: treasury-marquee var(--treasury-scroll-duration, 36s) linear infinite;
}

.treasury-viewport:hover .treasury-track,
.treasury-viewport:focus-within .treasury-track {
  animation-play-state: paused;
}

.treasury-grid {
  display: flex !important;
  flex: 0 0 auto;
  width: max-content;
  grid-template-columns: none;
  gap: 8px;
  padding: 0;
  overflow: visible;
  scrollbar-width: none;
}

.treasury-grid::-webkit-scrollbar {
  display: none;
}

.treasury-mini-card {
  flex: 0 0 190px;
  width: 190px;
}

@keyframes treasury-marquee {
  to {
    transform: translateX(-50%);
  }
}

.operation-launcher {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  margin: 20px 0 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.operation-launcher .btn {
  min-height: 42px;
  flex: 0 0 auto;
}

.operation-modal-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100vw;
  min-height: 100vh;
  align-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, .48);
  backdrop-filter: blur(3px);
}

.operation-modal {
  width: min(100%, 860px);
  max-width: 860px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.operation-modal .modal-header {
  align-items: flex-start;
  padding: 22px 24px 18px;
}

.operation-modal-date {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.operation-modal-date input {
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.operation-modal .flow-form-card {
  margin: 0;
  padding: 0 24px 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.operation-modal .flow-form-header {
  justify-content: flex-end;
  margin: 0 0 22px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--border);
}

.operation-modal .flow-pill-selector {
  min-height: 40px;
}

.operation-modal .flow-pill {
  min-height: 34px;
}

.operation-modal .flow-context-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0 0 24px;
}

.operation-modal .flow-context-row .form-control,
.operation-modal .flow-block .form-control {
  min-width: 0;
  min-height: 42px;
}

.operation-modal .flow-core-grid {
  grid-template-columns: minmax(0, 1fr) minmax(170px, .56fr) minmax(0, 1fr);
  align-items: start;
  gap: 30px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.operation-modal .flow-arrow-col {
  display: none !important;
}

.operation-modal .flow-block {
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.operation-modal .flow-block-origin,
.operation-modal .flow-block-dest,
.operation-modal .flow-block-rate {
  border-top: 0;
}

.operation-modal .flow-block-title {
  margin: 0 0 10px;
  color: var(--muted) !important;
  font-size: 12px;
  font-weight: 500;
}

.operation-modal .flow-block .form-group {
  margin-bottom: 12px !important;
}

.operation-modal .flow-block .form-label {
  display: block;
  margin-bottom: 6px;
}

.operation-modal .flow-block-rate {
  align-self: start;
  padding-top: 0;
}

.operation-modal .flow-block-rate>div:first-of-type {
  margin: 0 0 8px !important;
}

.operation-modal .flow-block-rate #entryRateOp {
  width: 52px !important;
}

.rate-operator-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: none !important;
  padding-inline: 0 !important;
  text-align: center;
  text-align-last: center;
  font-size: 17px;
  cursor: pointer;
}

.operation-modal .flow-block-rate #entryRate {
  font-size: 16px !important;
}

.operation-modal .flow-footer-row {
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
}

.operation-modal .flow-notes-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.operation-modal .flow-footer-row input {
  min-width: 0;
  min-height: 44px;
}

.operation-modal .flow-footer-row .btn-submit-flow {
  min-width: 112px;
  background: var(--accent);
  border-radius: 8px;
  box-shadow: none;
}

.operation-modal .flow-footer-row .btn-submit-flow:hover {
  background: #030712;
  box-shadow: none;
  transform: none;
}

.transaction-empty-state {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px !important;
  text-align: center;
}

.transaction-empty-state .empty-state-icon {
  flex: 0 0 56px;
}

.transaction-empty-state h3 {
  margin: 0 0 5px;
}

.transaction-empty-state p {
  width: min(100%, 420px);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .treasury-track {
    width: 100%;
    animation: none;
  }

  .treasury-grid {
    width: 100%;
    flex-wrap: wrap;
  }

  .treasury-mini-card {
    flex: 1 1 min(190px, 100%);
  }
}

@media (max-width: 768px) {
  .treasury-viewport {
    padding-inline: 14px;
  }

  .treasury-header {
    flex-wrap: wrap;
  }

  .treasury-title-group {
    width: 100%;
    justify-content: space-between;
  }

  .operation-launcher {
    align-items: flex-start;
  }

  .operation-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .operation-modal {
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 12px);
    border-radius: 12px 12px 0 0;
  }

  .operation-modal .modal-header {
    padding: 18px 18px 14px;
  }

  .operation-modal .flow-form-card {
    padding: 0 18px 18px;
  }

  .operation-modal .flow-form-header {
    margin-bottom: 18px;
  }

  .operation-modal .flow-context-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 20px;
  }

  .operation-modal .flow-core-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .operation-modal .flow-block-rate {
    align-self: stretch;
  }

  .operation-modal .flow-block-title {
    margin-bottom: 8px;
  }

  .operation-modal .flow-footer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .operation-modal .flow-footer-row>div:last-child,
  .operation-modal .flow-footer-row .btn-submit-flow {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .operation-launcher {
    flex-direction: row;
    align-items: center;
  }

  .operation-launcher .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Reportes financieros: lectura por moneda, sin sumar divisas entre sí. */
.report-page-header,
.report-header-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.report-header-actions {
  flex-wrap: wrap;
}

.report-filter-card {
  margin-bottom: 16px;
  padding: 18px 20px;
}

.report-filter-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.report-filter-form .form-group {
  min-width: 180px;
  margin: 0;
}

.report-filter-form .btn-primary {
  min-height: 40px;
  color: #fff;
  background: #284FFF;
  border-color: #284FFF;
}

.report-method-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.report-table-card {
  min-width: 0;
  overflow: hidden;
}

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

.report-table-header h2 {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.report-table-header p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.financial-report-table {
  min-width: 760px;
}

.financial-report-table th,
.financial-report-table td {
  padding: 12px 16px;
  vertical-align: middle;
}

.commission-detail-table {
  width: 100%;
  min-width: 820px;
  table-layout: fixed;
}

.commission-detail-table th:nth-child(1),
.commission-detail-table td:nth-child(1) {
  width: 14%;
}

.commission-detail-table th:nth-child(2),
.commission-detail-table td:nth-child(2) {
  width: 17%;
}

.commission-detail-table th:nth-child(3),
.commission-detail-table td:nth-child(3) {
  width: 14%;
}

.commission-detail-table th:nth-child(4),
.commission-detail-table td:nth-child(4) {
  width: 18%;
}

.commission-detail-table th:nth-child(5),
.commission-detail-table td:nth-child(5) {
  width: 18%;
}

.commission-detail-table th:nth-child(6),
.commission-detail-table td:nth-child(6) {
  width: 19%;
}

.commission-detail-table th.report-number {
  text-align: right;
}

.commission-detail-table td:nth-child(2) code {
  white-space: nowrap;
}

.report-table-card>.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.report-table-card>.empty-state p {
  width: min(100%, 460px);
  max-width: none;
  margin-inline: auto;
  text-align: center;
}

.financial-report-table .report-number {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}

.report-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.report-person strong,
.report-person small {
  display: block;
}

.report-person strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.report-person small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.report-avatar {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  color: #4B5563;
  background: #F3F4F6;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.currency-total {
  display: block;
  color: var(--text);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.currency-total+.currency-total {
  margin-top: 5px;
}

.currency-total strong,
.currency-label {
  display: inline-block;
  min-width: 48px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.commission-total {
  color: #6941C6 !important;
}

.commission-total strong,
.commission-total .currency-label {
  color: #6941C6;
}

.net-total {
  color: #166534 !important;
  font-weight: 600;
}

.report-muted {
  color: var(--muted);
  font-size: 13px;
}

.report-actions-column {
  text-align: right;
  white-space: nowrap;
}

.report-date {
  white-space: nowrap;
}

.report-date a {
  color: var(--text);
  text-decoration: none;
}

.report-date a:hover {
  color: #284FFF;
  text-decoration: underline;
}

.report-pagination {
  padding: 12px 20px;
}

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

.report-kpi-card {
  min-width: 0;
  padding: 18px;
}

.report-kpi-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.report-kpi-heading svg {
  width: 17px;
  height: 17px;
  color: #284FFF;
}

.report-kpi-values {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.report-kpi-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.report-kpi-value span {
  color: var(--muted);
  font-size: 12px;
}

.report-kpi-value strong {
  color: var(--text);
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 600;
  text-align: right;
}

.report-kpi-value.commission-total strong {
  color: #6941C6;
}

.report-kpi-value.net-total strong {
  color: #166534;
}

.report-period-print {
  display: none;
}

@media (max-width: 1100px) {
  .report-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .report-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-header-actions {
    width: 100%;
  }

  .report-header-actions .btn {
    flex: 1 1 0;
    justify-content: center;
  }

  .report-filter-form {
    align-items: stretch;
    flex-direction: column;
  }

  .report-filter-form .form-group,
  .report-filter-form .btn {
    width: 100%;
  }

  .report-table-header {
    align-items: flex-start;
  }

  .report-kpi-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .report-kpi-card {
    padding: 16px;
  }

  .financial-report-table {
    min-width: 720px;
  }
}

@media print {

  .no-print,
  .sidebar,
  .admin-header,
  .toast-container {
    display: none !important;
  }

  .main-content,
  .page-content {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .admin-layout {
    display: block;
  }

  .report-period-print {
    display: block;
    margin: 0 0 14px;
    color: #333;
    font-size: 12px;
  }

  .report-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .report-kpi-card,
  .report-table-card {
    break-inside: avoid;
    box-shadow: none;
  }

  .table-wrapper {
    overflow: visible !important;
  }

  .financial-report-table {
    min-width: 0;
    font-size: 10px;
  }

  .financial-report-table th,
  .financial-report-table td {
    padding: 6px;
  }
}

/* Marketing: editor visual y galería de flyers de tasas. */
.flyer-page-header {
  align-items: center;
}

.flyer-upload-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
}

.flyer-upload-copy {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 14px;
  padding: 0;
}

.flyer-upload-copy>div {
  min-width: 0;
}

.flyer-upload-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: #284FFF;
  background: #EEF2FF;
  border-radius: 10px;
}

.flyer-upload-icon svg {
  width: 20px;
  height: 20px;
}

.flyer-upload-copy h2,
.flyer-gallery-heading h2,
.flyer-canvas-header h2,
.flyer-fields-header h2 {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.flyer-upload-copy p,
.flyer-gallery-heading p,
.flyer-canvas-header p,
.flyer-fields-header p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.flyer-upload-form {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.flyer-file-picker,
.flyer-name-picker,
.flyer-editor-name {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.flyer-file-control {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}

.flyer-file-control:hover {
  border-color: #D1D5DB;
  background: #FCFCFD;
}

.flyer-file-control:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, .08);
}

.flyer-file-button {
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #F9FAFB;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
}

.flyer-file-button svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.flyer-file-name {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flyer-file-control input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.flyer-file-control input[type="file"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.flyer-file-hint {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.flyer-name-picker .form-control,
.flyer-editor-name .form-control {
  min-height: 44px;
  border-radius: 9px;
}

.flyer-upload-form .btn {
  min-height: 44px;
  padding-inline: 16px;
  border-radius: 9px;
  white-space: nowrap;
}

.flyer-gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 12px;
}

.flyer-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 16px;
}

.flyer-template-card {
  min-width: 0;
  overflow: hidden;
}

.flyer-template-preview {
  position: relative;
  display: block;
  height: 260px;
  overflow: hidden;
  background: #F3F4F6;
}

.flyer-template-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flyer-template-ratio {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(17, 24, 39, .72);
  border-radius: 20px;
  font-size: 11px;
}

.flyer-template-content {
  padding: 16px;
}

.flyer-template-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flyer-template-title-row h3 {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flyer-template-content>p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.flyer-template-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.flyer-template-actions-main {
  display: flex;
  width: 100%;
}

.flyer-template-actions-main .btn {
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.flyer-template-actions-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.flyer-template-actions-sub > a.btn {
  flex: 1 1 auto;
  justify-content: center;
  white-space: nowrap;
}

.flyer-template-actions-sub form {
  margin: 0;
  display: inline-flex;
}

.flyer-template-actions-sub form button {
  white-space: nowrap;
}

.flyer-empty-state {
  margin-top: 16px;
}

.flyer-flash {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 8px;
}

.flyer-flash.alert-success {
  color: #166534;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
}

.flyer-flash.alert-danger {
  color: #991B1B;
  background: #FEF2F2;
  border: 1px solid #FECACA;
}

.flyer-flash ul {
  margin: 6px 0 0 18px;
}

.flyer-editor-form {
  display: grid;
  gap: 16px;
}

.flyer-editor-toolbar {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px;
}

.flyer-editor-name {
  flex: 1 1 240px;
}

.flyer-replace-image {
  flex: 1 1 260px;
}

.flyer-active-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
}

.flyer-active-toggle input {
  width: 16px;
  height: 16px;
  accent-color: #284FFF;
}

.flyer-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: start;
  gap: 16px;
}

.flyer-canvas-card,
.flyer-fields-card {
  min-width: 0;
  overflow: hidden;
}

.flyer-canvas-header,
.flyer-fields-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.flyer-canvas-wrap {
  position: relative;
  width: min(100%, 680px);
  margin: 16px auto;
  cursor: crosshair;
  line-height: 0;
  user-select: none;
}

.flyer-canvas-wrap>img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.flyer-overlay-fields {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.flyer-preview-field {
  position: absolute;
  display: block;
  max-width: none;
  line-height: 1.15;
  white-space: nowrap;
  transform: translateY(0);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .55);
}

.flyer-preview-field.selected {
  outline: 1px dashed #284FFF;
  outline-offset: 3px;
}

.flyer-preview-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px 14px;
}

.flyer-copy-support {
  min-height: 18px;
  padding: 0 16px 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.flyer-fields-header {
  align-items: flex-start;
}

.flyer-fields-header .btn {
  flex: 0 0 auto;
}

.flyer-fields-list {
  display: grid;
  max-height: 720px;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
}

.flyer-field-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
}

.flyer-field-item.selected {
  border-color: #A5B4FC;
  box-shadow: 0 0 0 2px rgba(40, 79, 255, .08);
}

.flyer-field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flyer-field-select {
  min-width: 0;
  overflow: hidden;
  padding: 4px 0;
  color: var(--text);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.flyer-field-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
}

.flyer-field-summary {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.flyer-control {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.flyer-control .form-control {
  width: 100%;
  min-height: 36px;
  padding: 6px 8px;
  font-size: 12px;
}

.flyer-position-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.flyer-style-grid {
  display: grid;
  grid-template-columns: .8fr 48px 1fr;
  align-items: end;
  gap: 8px;
}

.flyer-color-control input[type="color"] {
  width: 40px;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
}

.flyer-editor-help {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 14px 14px;
  padding: 10px;
  color: var(--muted);
  background: #F9FAFB;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.flyer-editor-help svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.flyer-field-modal-overlay {
  z-index: 350;
}

.flyer-field-modal {
  width: min(100% - 32px, 520px);
  max-width: 520px;
}

.flyer-field-modal .modal-header {
  align-items: flex-start;
}

.flyer-field-modal-hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.flyer-field-modal-body {
  display: grid;
  gap: 14px;
}

.flyer-field-modal-body .flyer-control .form-control {
  min-height: 40px;
}

.flyer-field-modal-body [hidden] {
  display: none !important;
}

.flyer-field-modal .modal-footer {
  justify-content: flex-end;
}

.flyer-rendered-preview {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

@media (max-width: 1000px) {
  .flyer-editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .flyer-fields-list {
    max-height: none;
  }
}

@media (max-width: 700px) {
  .flyer-upload-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .flyer-upload-form .btn {
    width: 100%;
    justify-content: center;
  }

  .flyer-template-actions {
    flex-wrap: wrap;
  }

  .flyer-template-actions .btn-primary {
    flex-basis: 100%;
  }

  .flyer-editor-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .flyer-editor-toolbar>* {
    width: 100%;
  }

  .flyer-editor-toolbar .btn {
    min-height: 44px;
    justify-content: center;
  }

  .flyer-canvas-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .flyer-preview-actions {
    flex-direction: column;
  }

  .flyer-preview-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─── Lenguaje visual Venus compartido por todas las pantallas ────────────── */
:root {
  --bg: #F4F6FC;
  --surface: #FFFFFF;
  --border: #EDF0F7;
  --text: #20234B;
  --muted: #68718B;
  --subtle: #8790AA;
  --accent: #5941DF;
  --bg-main: #F4F6FC;
  --bg-sidebar: #FFFFFF;
  --bg-sidebar-hover: #F7F6FF;
  --bg-card: #FFFFFF;
  --bg-surface: #F7F8FC;
  --bg-card-subtle: #F7F8FC;
  --text-primary: #20234B;
  --text-secondary: #68718B;
  --text-muted: #8790AA;
  --border-color: #EDF0F7;
  --border-strong: #DEE2EF;
  --arkia-cobalt: #5941DF;
  --arkia-cobalt-light: #F2F0FF;
  --arkia-cobalt-dark: #432BD0;
  --arkia-pay-violet: #5941DF;
  --arkia-violet-light: #F2F0FF;
  --sidebar-text: #626B86;
  --sidebar-active-bg: #F2F0FF;
  --sidebar-active-txt: #4F39CE;
  --shadow-xs: 0 2px 8px rgba(38, 46, 89, .035);
  --shadow-sm: 0 3px 12px rgba(38, 46, 89, .04);
  --shadow-md: 0 8px 22px rgba(38, 46, 89, .07);
}

body {
  background: var(--bg-main);
  color: var(--text-primary);
}

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

.admin-header {
  background: #fff;
  border-bottom-color: var(--border);
  box-shadow: 0 2px 8px rgba(38, 46, 89, .025);
}

.header-page-title {
  color: var(--text-primary);
  font-weight: 600;
}

.header-brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 9px;
  background: #111827;
  color: #fff;
}

.header-brand-mark svg {
  width: 18px;
  height: 18px;
}

.header-breadcrumb,
.header-breadcrumb a {
  color: var(--muted);
}

.header-breadcrumb a:hover {
  color: var(--accent);
}

.header-avatar {
  border: 0;
  background: #F2F0FF;
  color: #5941DF;
  font-weight: 600;
}

.sidebar {
  border-right: 1px solid var(--border);
  box-shadow: 2px 0 12px rgba(38, 46, 89, .02);
}

.sidebar-brand {
  border-bottom-color: var(--border);
}

.sidebar-logo-mark {
  background: #5941DF;
  box-shadow: 0 3px 8px rgba(89, 65, 223, .2);
}

.sidebar-brand-name {
  color: var(--text-primary);
  font-weight: 600;
}

.sidebar-brand-sub {
  color: #7868db;
  letter-spacing: .04em;
}

.sidebar-section-label {
  color: #9299ad;
  letter-spacing: .06em;
}

.nav-item {
  color: var(--sidebar-text);
}

.nav-item:hover {
  background: #F7F6FF;
  color: #4F39CE;
}

.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active-txt);
}

.nav-item.active::before {
  background: #5941DF;
}

.nav-item.active svg,
.nav-item:hover svg {
  opacity: 1;
}

.nav-badge {
  background: #F2F0FF;
  color: #5941DF;
  border-radius: 20px;
  font-weight: 600;
}

.sidebar-footer {
  border-top-color: var(--border);
}

.sidebar-footer-info,
.sidebar-footer-info span {
  color: var(--muted);
}

.page-content {
  min-width: 0;
  background: var(--bg-main);
  padding-top: 26px;
  padding-bottom: 32px;
}

.page-header {
  align-items: center;
  margin-bottom: 20px;
}

.page-header-left h1 {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.035em;
}

.page-header-left p {
  color: var(--muted);
  font-size: 13px;
}

.card,
.stat-card,
.closing-card,
.table-mayor-wrap,
.treasury-panel,
.flow-form-card,
.rate-card,
.simulator-card {
  border-color: var(--border);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.card-header {
  border-bottom-color: var(--border);
}

.card-title,
.card-subtitle,
.stat-label,
.stat-desc {
  letter-spacing: 0;
}

.card-title {
  color: var(--text-primary);
  font-weight: 600;
}

.card-subtitle,
.stat-desc {
  color: var(--muted);
}

.btn {
  border-radius: 9px;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.btn-primary {
  background: #5941DF;
  color: #fff;
  box-shadow: 0 3px 9px rgba(89, 65, 223, .16);
}

.btn-primary:hover {
  background: #4932CE;
  box-shadow: 0 5px 13px rgba(89, 65, 223, .2);
}

.btn-outline {
  border-color: #E4E6F0;
  color: #626B86;
}

.btn-outline:hover {
  border-color: #C9C1FF;
  background: #F7F6FF;
  color: #4F39CE;
}

.btn-ghost {
  color: #737C96;
}

.btn-ghost:hover {
  background: #F7F6FF;
  color: #4F39CE;
}

.form-control,
.simulator-input {
  border-color: #E4E6F0;
}

.form-control:focus,
.simulator-input:focus {
  border-color: #8D7AEC;
  box-shadow: 0 0 0 3px rgba(89, 65, 223, .12);
}

.table-wrapper {
  border-radius: 0 0 13px 13px;
}

thead tr {
  background: #FAFBFE;
  border-bottom: 1px solid var(--border);
}

thead th {
  color: #7A829B;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

tbody tr {
  border-bottom-color: #F0F2F8;
}

tbody tr:hover {
  background: #FAFAFE;
}

tbody td {
  color: var(--text-primary);
}

.badge-cobalt,
.badge-violet,
.badge-code {
  border-color: transparent;
  background: #F2F0FF;
  color: #5941DF;
}

.stat-icon.cobalt,
.stat-icon.violet {
  background: #F2F0FF;
  color: #5941DF;
}

.treasury-header {
  background: #fff;
}

.treasury-badge-live {
  color: #168657;
}

.treasury-mini-card {
  border-color: var(--border);
  background: #fff;
}

.treasury-mini-card.highlight-bs {
  border-color: #D9EDE3;
  background: #F8FCFA;
}

.mini-curr-chip {
  border-color: transparent;
  background: #F3F4F8;
  color: #6D758D;
}

.highlight-bs .mini-curr-chip {
  background: #E8F6EF;
  color: #168657;
  border-color: transparent;
}

.operation-launcher {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.flow-form-card {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.flow-pill-selector {
  border-color: var(--border);
  background: #F5F6FB;
}

.flow-pill.active {
  background: #fff;
  color: #5941DF;
  box-shadow: 0 1px 4px rgba(38, 46, 89, .1);
}

.flow-block {
  border-color: var(--border);
  background: #FAFBFE;
}

.flow-output-preview,
.output-preview {
  color: #5941DF;
}

.rate-card::before {
  background: #5941DF;
}

.rate-card:hover {
  border-color: #D9D2FF;
  box-shadow: var(--shadow-sm);
  transform: none;
}

.rate-currency-badge,
.rate-operation-badge {
  background: #F2F0FF;
  color: #5941DF;
}

.rate-value {
  color: var(--text-primary);
}

.modal-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(32, 35, 75, .16);
}

.modal-header,
.modal-footer {
  border-color: var(--border);
}

.empty-state-icon {
  background: #F2F0FF;
  color: #5941DF;
}

.pagination .page-item.active .page-link,
.pagination .page-link:hover {
  border-color: #5941DF;
  background: #5941DF;
  color: #fff;
}

.seller-avatar {
  background: #F2F0FF;
  color: #5941DF;
}

.report-kpi-card,
.report-table-card,
.report-filter-card {
  border-color: var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}

.report-kpi-heading i {
  color: #7868db;
}

.report-kpi-value strong {
  color: var(--text-primary);
}

.report-table-header {
  border-bottom-color: var(--border);
}

.report-table-header h2 {
  color: var(--text-primary);
}

.report-filter-form .btn-primary {
  border-color: #5941DF;
  background: #5941DF;
}

.currency-label,
.currency-total strong {
  padding: 2px 5px;
  border-radius: 5px;
  background: #F2F0FF;
  color: #5941DF;
}

/* Estilo único para etiquetas y acciones dentro de tablas */
.badge,
.rate-operation-badge,
.rate-currency-badge,
.badge-rate-mono,
.currency-label,
.currency-total strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #F3F4F6;
  color: #4B5563;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-active,
.badge-inactive,
.badge-cobalt,
.badge-violet,
.badge-coral,
.badge-amber,
.rate-operation-badge,
.rate-currency-badge {
  border-color: transparent !important;
  background: #F3F4F6 !important;
  color: #4B5563 !important;
}

.badge-active .badge-dot {
  background: var(--positive);
}

.badge-inactive .badge-dot {
  background: #9CA3AF;
}

button.badge {
  min-height: 0;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.4;
}

button.badge:hover {
  background: #E5E7EB !important;
}

.badge-code {
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: var(--muted) !important;
  font-family: var(--font-mono);
  font-size: 11px;
}

.rate-operation-badge {
  border-radius: 6px;
}

.badge-rate-mono {
  font-variant-numeric: tabular-nums;
  border-radius: 6px;
}

.badge-entry-monto,
.badge-exit-monto {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-entry-monto {
  color: #15803D;
  background: #F0FDF4;
}

.badge-exit-monto {
  color: #B91C1C;
  background: #FEF2F2;
}

.currency-label,
.currency-total strong {
  padding-inline: 6px;
  color: #4B5563 !important;
  background: #F3F4F6 !important;
  font-weight: 500;
}

.commission-total,
.commission-total strong,
.report-kpi-value.commission-total strong {
  color: var(--text) !important;
}

.table-action-icon {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  justify-content: center;
  color: var(--muted);
  border-radius: 8px;
}

.table-action-icon svg {
  width: 16px;
  height: 16px;
}

.table-action-icon:hover {
  color: var(--text);
  background: #F3F4F6;
}

.table-action-icon.text-danger:hover {
  color: var(--negative);
  background: #FEF2F2;
}

.table-action-icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rate-update-button {
  flex: 0 0 36px;
}

.financial-report-table .currency-total {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 2px 0;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #F9FAFB;
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
}

.financial-report-table .currency-total+.currency-total {
  margin-top: 4px;
}

.financial-report-table .currency-total strong {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted) !important;
  font-size: 11px;
}

.table-ops .transaction-delete-action {
  display: inline-flex;
}

.table-ops .transaction-actions-heading {
  width: 104px;
  text-align: center;
  white-space: nowrap;
}

.table-ops .transaction-actions-cell {
  width: 104px;
  min-width: 104px;
  padding-inline: 8px;
  white-space: nowrap;
}

.table-ops .transaction-table-actions {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.table-ops .transaction-table-actions .table-action-icon {
  flex: 0 0 36px;
}

.table-ops .transaction-table-actions .transaction-edit-action,
.table-ops .transaction-table-actions .transaction-delete-action {
  opacity: 1;
}

.rate-modal-overlay {
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(17, 24, 39, .48);
  backdrop-filter: blur(4px);
}

.rate-modal-box {
  width: min(100%, 600px);
  max-width: 600px;
  max-height: min(90vh, 780px);
  max-height: min(90dvh, 780px);
  overflow-y: auto;
  border-color: var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(17, 24, 39, .18);
}

.rate-modal-box .modal-header {
  align-items: flex-start;
  padding: 20px 24px 16px;
}

.rate-modal-box .modal-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.rate-modal-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.rate-modal-box .modal-close {
  flex: 0 0 auto;
  color: var(--muted);
  background: #F3F4F6;
}

.rate-modal-box .modal-close:hover {
  color: var(--text);
  background: #E5E7EB;
}

.rate-modal-box .modal-body {
  gap: 18px;
  padding: 20px 24px;
}

.rate-modal-section {
  min-width: 0;
}

.rate-modal-section+.rate-modal-section {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.rate-modal-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.rate-modal-section-title svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.rate-modal-box .form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rate-modal-box .form-group {
  min-width: 0;
  gap: 6px;
}

.rate-modal-box .form-control {
  min-height: 42px;
}

.rate-modal-box .form-label {
  margin-bottom: 0;
}

.rate-modal-rate-row {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.rate-operation-preview {
  color: var(--muted);
  font-weight: 400;
}

.rate-modal-box .toggle-switch {
  min-height: 24px;
}

.rate-modal-box .toggle-track {
  background: #D1D5DB;
}

.rate-modal-box .toggle-switch input:checked+.toggle-track {
  background: var(--accent);
}

.rate-modal-box .modal-footer {
  gap: 8px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}

.rate-modal-box .modal-footer .btn {
  min-height: 40px;
}

.rate-modal-box .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.rate-modal-box .btn-primary:hover {
  background: #030712;
  border-color: #030712;
}

@media (max-width: 700px) {
  .rate-modal-overlay {
    align-items: center;
    padding: 12px;
  }

  .rate-modal-box {
    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - 24px);
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .rate-modal-box .modal-header {
    padding: 18px 18px 14px;
  }

  .rate-modal-box .modal-body {
    gap: 16px;
    padding: 18px;
  }

  .rate-modal-box .form-grid-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .rate-modal-box .modal-footer {
    padding: 14px 18px 18px;
  }

  .rate-modal-box .modal-footer .btn {
    flex: 1 1 0;
  }
}

.seller-modal-overlay {
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(17, 24, 39, .48);
  backdrop-filter: blur(4px);
}

.seller-modal-box {
  display: flex;
  flex-direction: column;
  width: min(100%, 600px);
  max-width: 600px;
  max-height: min(90vh, 780px);
  max-height: min(90dvh, 780px);
  overflow: hidden;
  border-color: var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(17, 24, 39, .18);
}

.seller-modal-box>.modal-header {
  flex: 0 0 auto;
  align-items: flex-start;
  padding: 20px 24px 16px;
}

.seller-modal-box .modal-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.seller-modal-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.seller-modal-box .modal-close {
  flex: 0 0 auto;
  color: var(--muted);
  background: #F3F4F6;
}

.seller-modal-box .modal-close:hover {
  color: var(--text);
  background: #E5E7EB;
}

.seller-modal-box form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.seller-modal-box .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  gap: 16px;
  padding: 20px 24px;
  overflow-y: auto;
}

.seller-modal-box .form-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.seller-modal-box .form-group {
  min-width: 0;
  gap: 6px;
}

.seller-modal-box .form-control {
  min-height: 42px;
}

.seller-modal-box .form-label {
  margin-bottom: 0;
}

.seller-code-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.seller-code-preview .badge-code {
  font-size: 12px;
}

.seller-modal-box .toggle-switch {
  min-height: 24px;
}

.seller-modal-box .toggle-track {
  background: #D1D5DB;
}

.seller-modal-box .toggle-switch input:checked+.toggle-track {
  background: var(--accent);
}

.seller-modal-box .modal-footer {
  flex: 0 0 auto;
  gap: 8px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}

.seller-modal-box .modal-footer .btn {
  min-height: 40px;
}

.seller-modal-box .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}

.seller-modal-box .btn-primary:hover {
  background: #030712;
  border-color: #030712;
}

@media (max-width: 700px) {
  .seller-modal-overlay {
    align-items: center;
    padding: 12px;
  }

  .seller-modal-box {
    width: 100%;
    max-width: 560px;
    max-height: calc(100dvh - 24px);
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .seller-modal-box>.modal-header {
    padding: 18px 18px 14px;
  }

  .seller-modal-box .modal-body {
    gap: 14px;
    padding: 18px;
  }

  .seller-modal-box .form-grid-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .seller-modal-box .modal-footer {
    padding: 14px 18px 18px;
  }

  .seller-modal-box .modal-footer .btn {
    flex: 1 1 0;
  }

  .seller-code-preview {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

.commission-total {
  color: #6651D8;
}

.net-total {
  color: #168657;
}

.flyer-upload-icon {
  color: #5941DF;
  background: #F2F0FF;
}

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

.flyer-field-item.selected {
  border-color: #9A8BEE;
  box-shadow: 0 0 0 2px rgba(89, 65, 223, .1);
}

.flyer-preview-field.selected {
  outline-color: #5941DF;
}

.flyer-active-toggle input {
  accent-color: #5941DF;
}

.sidebar-toggle {
  border-color: var(--border);
  background: #fff;
}

.sidebar-toggle:hover {
  border-color: #D9D2FF;
  color: #5941DF;
}

.header-logout-form {
  display: flex;
  margin: 0;
}

.header-logout {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.header-logout:hover {
  border-color: #D9D2FF;
  background: #F7F6FF;
  color: #5941DF;
}

.header-logout svg {
  width: 16px;
  height: 16px;
}

.page-content> :not(.venus-dashboard) {
  width: 100%;
  max-width: 1440px;
  margin-right: auto;
  margin-left: auto;
}

.page-content>.venus-dashboard {
  width: auto;
  max-width: none;
}

.coming-soon-panel {
  display: flex;
  min-height: min(58vh, 480px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-xs);
}

.coming-soon-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #F9FAFB;
  color: var(--muted);
}

.coming-soon-icon svg {
  width: 23px;
  height: 23px;
}

.coming-soon-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.coming-soon-panel h1 {
  margin: 6px 0 8px;
  color: var(--text);
  font-size: 28px;
  font-weight: 600;
}

.coming-soon-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 768px) {
  .page-content {
    padding-top: 18px;
  }

  .page-header-left h1 {
    font-size: 22px;
  }
}

@media (max-width: 700px) {
  .rate-table-actions {
    flex-wrap: wrap;
  }

  .rate-inline-edit input {
    width: 58px !important;
  }
}

/* Hoja diaria: filtros y movimientos integrados en la misma pantalla. */
.history-section {
  min-width: 0;
  margin-top: 16px;
}

.table-mayor-wrap {
  border-color: var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.table-mayor-header {
  gap: 16px;
  padding: 18px 20px;
}

.table-mayor-title h3 {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.table-mayor-title p {
  color: var(--muted);
  font-size: 12px;
}

.transaction-filters {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: #FAFBFE;
}

.transaction-filter-field {
  display: grid;
  min-width: 180px;
  gap: 5px;
}

.transaction-filter-field>span {
  color: var(--muted);
  font-size: 12px;
}

.transaction-filter-field .form-control {
  min-height: 40px;
  background: var(--surface);
}

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

.transaction-filter-actions .btn {
  min-height: 40px;
}

.table-ops {
  min-width: 1020px;
}

.table-ops thead th {
  color: var(--muted);
  background: #FAFBFE;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.table-ops tbody td {
  border-bottom-color: #F0F2F7;
}

.table-ops tbody tr:hover {
  background: #FAFAFE;
}

.treasury-viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}

.treasury-mini-card {
  min-width: 0;
}

.mini-bank-name {
  min-width: 0;
}

.mini-bank-name>span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-balance-num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .table-mayor-header {
    align-items: flex-start;
  }

  .transaction-filters {
    flex-wrap: wrap;
    padding: 14px 16px;
  }

  .transaction-filter-field {
    flex: 1 1 180px;
    min-width: min(100%, 160px);
  }

  .transaction-filter-actions {
    flex: 1 1 100%;
  }

  .transaction-filter-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .table-ops {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .table-mayor-header {
    flex-direction: row;
    align-items: center;
    padding: 16px;
  }

  .transaction-filter-field {
    flex-basis: 100%;
  }

  .treasury-viewport {
    padding-inline: 8px;
  }
}

@media print {

  .transaction-filters,
  .operation-launcher,
  .treasury-panel,
  .transaction-delete-action {
    display: none !important;
  }

  .history-section,
  .table-mayor-wrap {
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .table-ops {
    min-width: 0;
  }

  .table-ops thead th,
  .table-ops tbody td {
    padding: 6px;
    font-size: 9px;
  }
}

@media print {

  body,
  .page-content {
    background: #fff !important;
  }
}

/* Login administrativo */
.auth-page {
  min-height: 100vh;
  background: #F4F6FC;
}

.auth-layout {
  display: grid;
  width: calc(100% - 48px);
  min-height: calc(100vh - 48px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  margin: 24px auto;
  border: 1px solid #EDF0F7;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 50px rgba(38, 46, 89, .09);
}

.auth-card {
  display: flex;
  width: 100%;
  max-width: 490px;
  flex-direction: column;
  justify-content: center;
  margin: auto;
  padding: clamp(28px, 6vw, 64px);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.auth-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  background: #5941DF;
  color: #fff;
}

.auth-brand-mark svg {
  width: 22px;
  height: 22px;
}

.auth-brand strong,
.auth-brand small {
  display: block;
}

.auth-brand strong {
  color: #20234B;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.auth-brand small {
  margin-top: 2px;
  color: #8790AA;
  font-size: 11px;
}

.auth-heading {
  margin-top: 52px;
}

.auth-eyebrow {
  color: #7868db;
  font-size: 11px;
  font-weight: 600;
}

.auth-heading h1 {
  margin-top: 7px;
  color: #20234B;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.auth-heading p {
  margin-top: 8px;
  color: #68718B;
  font-size: 13px;
}

.auth-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.auth-form .form-group {
  margin: 0;
}

.auth-form .form-label {
  color: #454d69;
  font-size: 12px;
  font-weight: 600;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap>svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 16px;
  height: 16px;
  color: #8A92A9;
  pointer-events: none;
  transform: translateY(-50%);
}

.auth-input-wrap .form-control {
  width: 100%;
  min-height: 46px;
  padding-left: 40px;
  border-radius: 9px;
  font-size: 13px;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #68718B;
  font-size: 12px;
  cursor: pointer;
}

.auth-remember input {
  width: 16px;
  height: 16px;
  accent-color: #5941DF;
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  justify-content: space-between;
  padding-inline: 16px;
}

.auth-submit svg {
  width: 16px;
  height: 16px;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  padding: 11px 12px;
  border: 1px solid #F4C9D0;
  border-radius: 9px;
  background: #FFF6F7;
  color: #A33C4B;
  font-size: 12px;
}

.auth-alert svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.auth-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 26px;
  color: #8790AA;
  font-size: 11px;
}

.auth-footnote svg {
  width: 15px;
  height: 15px;
  color: #5941DF;
}

.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(32px, 5vw, 60px);
  background: linear-gradient(150deg, #5941DF 0%, #4732CA 100%);
  color: #fff;
}

.auth-aside-kicker {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}

.auth-aside h2 {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.auth-aside p {
  position: relative;
  z-index: 1;
  max-width: 350px;
  margin-top: 14px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  line-height: 1.7;
}

.auth-aside-decoration {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: 190px;
  align-items: flex-end;
  gap: 14px;
  padding: 0 35px;
  opacity: .22;
}

.auth-aside-decoration span {
  flex: 1;
  min-width: 12px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.auth-aside-decoration span:nth-child(1) {
  height: 25%;
}

.auth-aside-decoration span:nth-child(2) {
  height: 45%;
}

.auth-aside-decoration span:nth-child(3) {
  height: 35%;
}

.auth-aside-decoration span:nth-child(4) {
  height: 76%;
}

.auth-aside-decoration span:nth-child(5) {
  height: 53%;
}

.auth-aside-decoration span:nth-child(6) {
  height: 88%;
}

.auth-aside-decoration span:nth-child(7) {
  height: 66%;
}

@media (max-width: 700px) {
  .auth-layout {
    display: block;
    width: min(460px, calc(100% - 28px));
    min-height: 0;
    margin: 14px auto;
    border-radius: 16px;
  }

  .auth-card {
    padding: 30px 24px;
  }

  .auth-heading {
    margin-top: 36px;
  }

  .auth-form {
    margin-top: 24px;
  }

  .auth-aside {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    transition: none !important;
  }
}

/* ARKIA Pay admin and secure sign-in theme */
.admin-pay-theme {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-numbers: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --accent: #7a52ff;
  --arkia-cobalt: #7a52ff;
  --arkia-cobalt-light: #f2edff;
  --arkia-cobalt-dark: #5531d4;
  --arkia-pay-violet: #7a52ff;
  --arkia-violet-light: #f2edff;
  --bg-main: #f7f6fc;
  --bg-sidebar: #fff;
  --bg-sidebar-hover: #f7f4ff;
  --bg-card: #fff;
  --bg-surface: #faf9fe;
  --text-primary: #211a36;
  --text-secondary: #6f6880;
  --text-muted: #8d879e;
  --border-color: #ebe7f4;
  --border-strong: #dcd4ed;
  --sidebar-text: #625b75;
  --sidebar-active-bg: #f2edff;
  --sidebar-active-txt: #5a36d6;
  background: var(--bg-main);
  color: var(--text-primary);
}

/* Header & Barra Superior Arkia Pay */
.admin-pay-theme .admin-header {
  height: var(--header-height, 64px) !important;
  min-height: var(--header-height, 64px) !important;
  max-height: var(--header-height, 64px) !important;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ebe7f4 !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 28px !important;
}

.admin-pay-theme .header-page-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: #08112a;
  letter-spacing: -0.02em;
}

.admin-pay-theme .header-breadcrumb {
  font-family: var(--font-heading);
  font-size: 11px;
  color: #766d8d;
}

.admin-pay-theme .header-breadcrumb a {
  color: #5f5675;
  transition: color 0.15s ease;
}

.admin-pay-theme .header-breadcrumb a:hover {
  color: #7a52ff;
}

.admin-pay-theme .header-brand-mark {
  background: #f2edff;
  border-radius: 8px;
  border: 1px solid #e5dcfa;
}

.admin-pay-theme .header-brand-mark img {
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.admin-pay-theme .header-avatar {
  background: #f2edff;
  color: #5a36d6;
  font-family: var(--font-heading);
  font-weight: 600;
  border: 1px solid #e2d7fa;
}

.admin-pay-theme .header-datetime {
  text-align: right;
}

.admin-pay-theme .header-date {
  font-family: var(--font-body);
  font-size: 11px;
  color: #777087;
}

.admin-pay-theme .header-time {
  font-family: var(--font-numbers);
  font-size: 13px;
  font-weight: 600;
  color: #7a52ff;
}

/* Sidebar Estilo Arkia Pay */
.admin-pay-theme .sidebar {
  background: #ffffff;
  border-right: 1px solid #ebe7f4;
}

.admin-pay-theme .sidebar-brand {
  height: var(--header-height, 64px) !important;
  min-height: var(--header-height, 64px) !important;
  max-height: var(--header-height, 64px) !important;
  padding: 0 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px;
  border-bottom: 1px solid #ebe7f4 !important;
  box-sizing: border-box !important;
}

.admin-pay-theme .sidebar-logo-full {
  display: block;
  width: 136px;
  max-height: 28px;
  height: auto;
  object-fit: contain;
}

.admin-pay-theme .sidebar-logo-symbol {
  display: none;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.admin-pay-theme .sidebar-brand-text {
  display: none;
}

.admin-pay-theme .sidebar-section-label {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #928ba3;
  margin-top: 20px;
  margin-bottom: 6px;
}

.admin-pay-theme .nav-item {
  font-family: var(--font-heading);
  font-size: 13px;
  color: #4b445d;
  border-radius: 8px;
  padding: 9px 12px;
  transition: all 0.15s ease;
}

.admin-pay-theme .nav-item svg {
  color: #766e88;
  transition: color 0.15s ease;
}

.admin-pay-theme .nav-item:hover {
  background: #f7f4ff;
  color: #7a52ff;
}

.admin-pay-theme .nav-item:hover svg {
  color: #7a52ff;
}

.admin-pay-theme .nav-item.active {
  background: #f2edff;
  color: #5a36d6;
  font-weight: 600;
}

.admin-pay-theme .nav-item.active::before {
  background: #7a52ff;
  width: 3px;
  border-radius: 0 4px 4px 0;
}

.admin-pay-theme .nav-item.active svg {
  color: #7a52ff;
}

.admin-pay-theme .nav-badge {
  font-family: var(--font-numbers);
  background: #f2edff;
  color: #5a36d6;
  border: 1px solid #e5dbfa;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
}

.admin-pay-theme .sidebar-group {
  margin: 2px 0;
}

.admin-pay-theme .sidebar-group-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #4b445d;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  list-style: none;
  transition: background .15s ease, color .15s ease;
  user-select: none;
}

.admin-pay-theme .sidebar-group-toggle::-webkit-details-marker {
  display: none;
}

.admin-pay-theme .sidebar-group-toggle::marker {
  content: '';
}

.admin-pay-theme .sidebar-group-toggle > svg:first-child {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #766e88;
}

.admin-pay-theme .sidebar-group-toggle:hover {
  background: #f7f4ff;
  color: #7a52ff;
}

.admin-pay-theme .sidebar-group-toggle.active,
.admin-pay-theme .sidebar-group[open] > .sidebar-group-toggle {
  color: #5a36d6;
  font-weight: 600;
}

.admin-pay-theme .sidebar-group-toggle.active > svg:first-child,
.admin-pay-theme .sidebar-group-toggle:hover > svg:first-child {
  color: #7a52ff;
}

.admin-pay-theme .sidebar-group-chevron {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: #928ba3;
  transition: transform .18s ease;
}

.admin-pay-theme .sidebar-group[open] .sidebar-group-chevron {
  transform: rotate(180deg);
}

.admin-pay-theme .sidebar-group-items {
  display: grid;
  gap: 2px;
  margin: 4px 0 7px 17px;
  padding-left: 8px;
  border-left: 1px solid #ebe7f4;
}

@media (min-width: 769px) {
  .admin-pay-theme .sidebar-group:hover > .sidebar-group-items,
  .admin-pay-theme .sidebar-group:focus-within > .sidebar-group-items {
    display: grid;
  }
}

.admin-pay-theme .sidebar-group-items .nav-item {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 12px;
}

.admin-pay-theme .sidebar-group-toggle:focus-visible {
  outline: 2px solid #7a52ff;
  outline-offset: 2px;
}

.admin-layout.sidebar-collapsed .sidebar-group-toggle {
  justify-content: center;
  padding-inline: 0;
  font-size: 0;
}

.admin-layout.sidebar-collapsed .sidebar-group-toggle > svg:first-child {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.admin-layout.sidebar-collapsed .sidebar-group-chevron,
.admin-layout.sidebar-collapsed .sidebar-group-items {
  display: none;
}

/* Venus Dashboard Arkia Pay */
.admin-pay-theme .venus-dashboard {
  --vd-ink: #08112a;
  --vd-muted: #777087;
  --vd-border: #ebe7f4;
  background: #f7f6fc;
}

.admin-pay-theme .vd-welcome {
  padding-bottom: 20px;
  border-bottom: 1px solid #ebe7f4;
}

.admin-pay-theme .vd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7a52ff;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #f2edff;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e7deff;
}

.admin-pay-theme .vd-eyebrow svg {
  width: 13px;
  height: 13px;
  color: #7a52ff;
}

.admin-pay-theme .vd-welcome h1 {
  font-family: var(--font-heading);
  margin-top: 10px;
  color: #08112a;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.admin-pay-theme .vd-welcome p {
  font-family: var(--font-body);
  color: #777087;
  font-size: 13px;
}

.admin-pay-theme .vd-primary-action {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  background: #7a52ff;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(122, 82, 255, 0.24);
  transition: all 0.18s ease;
}

.admin-pay-theme .vd-primary-action:hover {
  background: #653fe0;
  box-shadow: 0 8px 22px rgba(122, 82, 255, 0.32);
  transform: translateY(-1px);
}

.admin-pay-theme .vd-metric,
.admin-pay-theme .vd-panel {
  border-color: #ebe7f4;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(45, 31, 84, 0.04);
}

.admin-pay-theme .vd-metric-top span:first-child {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: #5b5270;
  letter-spacing: -0.01em;
}

.admin-pay-theme .vd-metric strong {
  font-family: var(--font-numbers);
  font-size: 28px;
  font-weight: 700;
  color: #08112a;
  letter-spacing: -0.02em;
}

.admin-pay-theme .vd-metric-foot {
  font-family: var(--font-body);
  font-size: 12px;
  color: #777087;
}

.admin-pay-theme .vd-metric-featured {
  background: linear-gradient(135deg, #7a52ff 0%, #5a34d6 100%);
  border-color: transparent;
  box-shadow: 0 10px 28px rgba(122, 82, 255, 0.28);
}

.admin-pay-theme .vd-metric-featured .vd-metric-top span:first-child,
.admin-pay-theme .vd-metric-featured .vd-metric-foot {
  color: rgba(255, 255, 255, 0.88);
}

.admin-pay-theme .vd-metric-featured strong {
  color: #ffffff;
}

.admin-pay-theme .vd-metric-featured .vd-metric-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.admin-pay-theme .vd-metric-icon {
  color: #7a52ff;
  background: #f2edff;
  border-radius: 8px;
}

.admin-pay-theme .vd-panel-kicker {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a52ff;
}

.admin-pay-theme .vd-panel-heading h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 650;
  color: #08112a;
  letter-spacing: -0.02em;
}

.admin-pay-theme .vd-panel-heading p {
  font-family: var(--font-body);
  font-size: 12px;
  color: #777087;
}

.admin-pay-theme .vd-total-pill {
  font-family: var(--font-numbers);
  font-size: 11px;
  font-weight: 700;
  color: #5f3cd2;
  background: #f2edff;
  border: 1px solid #e5dcfa;
  border-radius: 20px;
  padding: 4px 10px;
}

.admin-pay-theme .vd-chart {
  border-bottom-color: #ebe7f4;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 48px, #f4f1fa 49px, transparent 50px);
}

.admin-pay-theme .vd-chart-bar {
  background: linear-gradient(180deg, #9b83ff 0%, #7048ef 100%);
  border-radius: 4px 4px 0 0;
}

.admin-pay-theme .vd-chart-column:nth-child(2n) .vd-chart-bar {
  background: #d8cdfc;
}

.admin-pay-theme .vd-chart-count {
  font-family: var(--font-numbers);
  font-size: 11px;
  color: #766e88;
}

.admin-pay-theme .vd-chart-label {
  font-family: var(--font-heading);
  font-size: 10px;
  color: #8c849e;
  text-transform: uppercase;
}

.admin-pay-theme .vd-chart-footer {
  font-family: var(--font-body);
  font-size: 12px;
  color: #777087;
}

.admin-pay-theme .vd-chart-footer a,
.admin-pay-theme .vd-text-link,
.admin-pay-theme .vd-panel-link {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: #7a52ff;
  transition: color 0.15s ease;
}

.admin-pay-theme .vd-chart-footer a:hover,
.admin-pay-theme .vd-text-link:hover,
.admin-pay-theme .vd-panel-link:hover {
  color: #5531d4;
}

.admin-pay-theme .vd-icon-link {
  border-radius: 7px;
  border: 1px solid #ebe7f4;
  color: #766e88;
  transition: all 0.15s ease;
}

.admin-pay-theme .vd-icon-link:hover {
  color: #7a52ff;
  background: #f7f4ff;
  border-color: #dcd4ed;
}

.admin-pay-theme .vd-transfer-row,
.admin-pay-theme .vd-account-row,
.admin-pay-theme .vd-rate-row {
  border-bottom: 1px solid #f2edf8;
  transition: background 0.15s ease;
}

.admin-pay-theme .vd-transfer-row:hover,
.admin-pay-theme .vd-account-row:hover,
.admin-pay-theme .vd-rate-row:hover {
  background: #faf8fd;
}

.admin-pay-theme .vd-transfer-icon,
.admin-pay-theme .vd-account-icon {
  color: #7a52ff;
  background: #f2edff;
  border-radius: 8px;
}

.admin-pay-theme .vd-transfer-info strong,
.admin-pay-theme .vd-account-info strong {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: #08112a;
}

.admin-pay-theme .vd-transfer-info span,
.admin-pay-theme .vd-account-info span,
.admin-pay-theme .vd-rate-route span {
  font-family: var(--font-body);
  font-size: 11px;
  color: #777087;
}

.admin-pay-theme .vd-amount-in {
  font-family: var(--font-numbers);
  font-size: 12px;
  font-weight: 700;
  color: #09896d;
}

.admin-pay-theme .vd-amount-out {
  font-family: var(--font-numbers);
  font-size: 12px;
  font-weight: 700;
  color: #e11d48;
}

.admin-pay-theme .vd-account-balance {
  font-family: var(--font-numbers);
  font-size: 14px;
  font-weight: 700;
  color: #08112a;
}

.admin-pay-theme .vd-rate-route strong {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: #08112a;
}

.admin-pay-theme .vd-rate-value {
  font-family: var(--font-numbers);
  font-size: 15px;
  font-weight: 700;
  color: #7a52ff;
}

.admin-pay-theme .vd-empty>svg {
  color: #7a52ff;
}

.admin-pay-theme .vd-empty strong {
  font-family: var(--font-heading);
  font-size: 14px;
  color: #08112a;
}

.admin-pay-theme .vd-empty span {
  font-family: var(--font-body);
  font-size: 12px;
  color: #777087;
}

.admin-pay-theme .vd-empty a {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  color: #7a52ff;
}

/* Formularios, Tablas y Componentes Arkia Pay */
.admin-pay-theme .form-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #3d3454;
  margin-bottom: 5px;
}

.admin-pay-theme .form-control {
  font-family: var(--font-ui);
  border: 1px solid #dfd7ee;
  border-radius: 8px;
  background: #ffffff;
  color: #08112a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-pay-theme .form-control:focus {
  border-color: #7a52ff;
  box-shadow: 0 0 0 3px rgba(122, 82, 255, 0.14);
  outline: none;
}

.admin-pay-theme .btn-primary,
.admin-pay-theme .btn-submit {
  font-family: var(--font-heading);
  background: #7a52ff;
  border-color: #7a52ff;
  color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(122, 82, 255, 0.22);
  transition: all 0.15s ease;
}

.admin-pay-theme .btn-primary:hover,
.admin-pay-theme .btn-submit:hover {
  background: #663be8;
  border-color: #663be8;
  box-shadow: 0 6px 18px rgba(122, 82, 255, 0.3);
}

.admin-pay-theme table th {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #706883;
  background: #faf8fd;
  border-bottom: 1px solid #ebe7f4;
}

.admin-pay-theme table td {
  border-bottom: 1px solid #f2edf8;
  font-family: var(--font-body);
}

.admin-pay-theme table td.amount,
.admin-pay-theme table td.rate,
.admin-pay-theme table td.mono {
  font-family: var(--font-numbers);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.auth-pay-theme {
  min-height: 100vh;
  background: #f5f3fb;
}

.auth-pay-theme .auth-layout {
  border-color: #e9e3f5;
  box-shadow: 0 24px 70px rgba(45, 31, 84, .12);
}

.auth-pay-theme .auth-card {
  max-width: 520px;
}

.auth-pay-theme .auth-brand {
  min-height: 45px;
  gap: 12px;
}

.auth-pay-theme .auth-brand>img {
  display: block;
  width: 174px;
  height: auto;
}

.auth-pay-theme .auth-brand-divider {
  width: 1px;
  height: 28px;
  background: #e6e0f0;
}

.auth-pay-theme .auth-brand-caption {
  color: #746c85;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.35;
}

.auth-pay-theme .auth-heading {
  margin-top: 48px;
}

.auth-pay-theme .auth-eyebrow {
  color: #6842df;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.auth-pay-theme .auth-heading h1 {
  color: #211a36;
  font-size: clamp(27px, 3vw, 33px);
}

.auth-pay-theme .auth-heading p {
  color: #777087;
}

.auth-pay-theme .auth-input-wrap>svg {
  color: #827995;
}

.auth-pay-theme .auth-input-wrap .form-control:focus {
  border-color: #7a52ff;
  box-shadow: 0 0 0 3px rgba(122, 82, 255, .12);
}

.auth-pay-theme .auth-remember input {
  accent-color: #7a52ff;
}

.auth-pay-theme .auth-submit {
  border-color: #7a52ff;
  background: #7a52ff;
  box-shadow: 0 8px 20px rgba(122, 82, 255, .19);
}

.auth-pay-theme .auth-submit:hover {
  border-color: #653fe0;
  background: #653fe0;
}

.auth-pay-theme .auth-footnote svg {
  color: #7a52ff;
}

.auth-pay-theme .auth-aside {
  background: linear-gradient(145deg, #21163f 0%, #39216d 58%, #5a37a8 100%);
}

.auth-pay-theme .auth-aside-kicker {
  color: #d7caff;
}

.auth-pay-theme .auth-aside h2 {
  max-width: 470px;
  font-size: clamp(31px, 3.6vw, 43px);
}

.auth-pay-theme .auth-aside p {
  max-width: 370px;
  color: #e0d9ef;
}

.auth-pay-theme .auth-aside-points {
  position: relative;
  z-index: 1;
  margin-top: 29px;
  display: grid;
  gap: 12px;
}

.auth-pay-theme .auth-aside-points span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f0ebfa;
  font-size: 12px;
}

.auth-pay-theme .auth-aside-points svg {
  width: 16px;
  height: 16px;
  color: #c5b2ff;
}

.auth-pay-theme .auth-aside-decoration {
  height: 145px;
  opacity: .13;
}

.admin-pay-theme .sidebar-logo-symbol {
  display: none;
}

.admin-pay-theme .admin-layout.sidebar-collapsed .sidebar-brand {
  justify-content: center !important;
  padding: 0 !important;
}

.admin-pay-theme .admin-layout.sidebar-collapsed .sidebar-logo-full {
  display: none !important;
}

.admin-pay-theme .admin-layout.sidebar-collapsed .sidebar-logo-symbol {
  display: block !important;
  width: 28px !important;
  height: 28px !important;
}

.admin-pay-theme .payout-card {
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-pay-theme .payout-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(122, 82, 255, 0.14) !important;
}

@media (max-width: 700px) {
  .auth-pay-theme .auth-card {
    padding: 28px 24px;
  }

  .auth-pay-theme .auth-brand>img {
    width: 145px;
  }

  .auth-pay-theme .auth-heading {
    margin-top: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .admin-pay-theme *,
  .admin-pay-theme *::before,
  .admin-pay-theme *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* ─── TABLAS RESPONSIVAS VERTICALES (MODO TARJETA MÓVIL) ─────────────────────── */
@media (max-width: 768px) {
  /* Contenedores de tablas: sin scroll horizontal */
  .table-wrapper,
  .table-responsive,
  .table-mayor-wrap,
  .account-table-card .table-wrapper,
  .rates-table-card .table-wrapper,
  #historyTableContainer {
    overflow-x: visible !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
  }

  /* Las tablas se convierten en bloques 100% fluidos */
  table,
  .table-ops,
  .rates-table,
  .accounts-table,
  .financial-report-table,
  .table-seller-summary,
  .commission-detail-table {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: transparent !important;
    margin: 0 !important;
  }

  /* Ocultar encabezados horizontales thead */
  table thead,
  .table-ops thead,
  .rates-table thead,
  .accounts-table thead,
  .financial-report-table thead,
  .table-seller-summary thead {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* El cuerpo de la tabla organiza las filas en tarjetas verticales */
  table tbody,
  .table-ops tbody,
  .rates-table tbody,
  .accounts-table tbody,
  .financial-report-table tbody,
  .table-seller-summary tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 4px 0 16px !important;
    box-sizing: border-box !important;
  }

  /* Cada fila es una tarjeta ARKIA Pay */
  table tbody tr,
  .table-ops tbody tr,
  .rates-table tbody tr,
  .accounts-table tbody tr,
  .financial-report-table tbody tr,
  .table-seller-summary tbody tr {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #ebe4f5 !important;
    border-radius: 14px !important;
    padding: 10px 14px !important;
    box-shadow: 0 2px 8px rgba(122, 82, 255, 0.04), 0 1px 3px rgba(8, 17, 42, 0.02) !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  }

  table tbody tr:hover,
  table tbody tr:focus-within {
    border-color: #7a52ff !important;
    box-shadow: 0 4px 14px rgba(122, 82, 255, 0.09) !important;
  }

  /* Cada celda es una línea horizontal: Label a la izquierda, Valor a la derecha */
  table tbody td,
  .table-ops tbody td,
  .rates-table tbody td,
  .accounts-table tbody td,
  .financial-report-table tbody td,
  .table-seller-summary tbody td {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 36px !important;
    padding: 7px 0 !important;
    border: none !important;
    border-bottom: 1px dashed #f2edf8 !important;
    background: transparent !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    gap: 10px !important;
    text-align: right !important;
  }

  /* Última celda sin borde inferior */
  table tbody tr > td:last-child {
    border-bottom: none !important;
    padding-bottom: 2px !important;
  }

  /* Etiqueta vertical data-label a la izquierda */
  table tbody td[data-label]::before {
    content: attr(data-label);
    font-family: var(--font-heading, "Inter", sans-serif) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #7b7291 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    text-align: left !important;
    flex-shrink: 0 !important;
    margin-right: auto !important;
    padding-right: 8px !important;
  }

  /* Alineación del contenido del valor a la derecha */
  table tbody td > *:not(::before) {
    max-width: 100%;
  }

  /* Celdas con mensajes vacíos o colspan */
  table tbody tr td[colspan] {
    display: block !important;
    text-align: center !important;
    padding: 24px 12px !important;
    border-bottom: none !important;
  }
  table tbody tr td[colspan]::before {
    display: none !important;
  }

  /* Grupo de Acciones en la tarjeta móvil */
  table tbody td[data-label="Acciones"],
  table tbody td[data-label="Detalle"],
  table tbody td.transaction-actions-cell {
    justify-content: flex-end !important;
    padding-top: 10px !important;
    margin-top: 2px !important;
    border-bottom: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .transaction-table-actions,
  .rate-table-actions,
  .account-table-actions,
  .td-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 6px !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
  }

  .table-action-icon {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 9px !important;
    background: #f7f5fd !important;
    border: 1px solid #ebe4f7 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #554a6d !important;
    opacity: 1 !important;
  }

  .table-action-icon:hover,
  .table-action-icon:active {
    background: #eee8fc !important;
    border-color: #7a52ff !important;
    color: #7a52ff !important;
  }

  /* Ajustes finos de celdas en modo tarjeta */
  .rate-table-route {
    justify-content: flex-end !important;
  }
  .rate-table-country {
    text-align: right !important;
  }
  .sub-account-meta {
    justify-content: flex-end !important;
  }
  .account-table-detail {
    text-align: right !important;
    max-width: 180px !important;
  }
}

/* ─── FLAG ICONS STYLING ─────────────────────────────────────────────────────── */
.fi {
  width: 1.35em !important;
  line-height: 1em !important;
  border-radius: 3px !important;
  vertical-align: -0.15em !important;
  box-shadow: 0 1px 3px rgba(8, 17, 42, 0.12) !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
  background-size: cover !important;
}
.fi.fi-sm {
  width: 16px !important;
  height: 12px !important;
}
.fi.fi-md {
  width: 22px !important;
  height: 16px !important;
}
.fi.fi-lg {
  width: 28px !important;
  height: 20px !important;
  border-radius: 4px !important;
}

/* Modal layout consistency across the portal */
.modal-overlay {
  z-index: 1100;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: none;
}

.modal-overlay.open {
  pointer-events: auto;
}

.modal-box {
  display: flex;
  flex: 0 1 auto;
  flex-direction: column;
  width: min(100%, 560px);
  max-width: min(100%, 560px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(17, 24, 39, .22);
}

.modal-box > .modal-header,
.modal-box > .modal-footer,
.modal-box > form > .modal-footer {
  flex: 0 0 auto;
}

.modal-box > .modal-header {
  gap: 16px;
  padding: 20px 22px 16px;
}

.modal-box > .modal-header > :first-child {
  min-width: 0;
}

.modal-box .modal-title {
  overflow-wrap: anywhere;
}

.modal-box > .modal-body,
.modal-box > form > .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal-box > form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.modal-box > form > .modal-body {
  width: 100%;
}

.modal-box > .modal-footer,
.modal-box > form > .modal-footer {
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 22px 18px;
}

.modal-box .modal-close {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 1px solid var(--border-color, #e5e7eb);
}

.account-history-modal {
  width: min(100%, 1040px);
  max-width: min(100%, 1040px);
}

.account-history-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.simulator-modal {
  display: block;
  width: min(100%, 480px);
  max-width: min(100%, 480px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.operation-modal {
  display: block;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay .form-grid-2,
.modal-overlay .form-grid-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-overlay .form-group,
.modal-overlay .form-control,
.modal-overlay select,
.modal-overlay textarea {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 700px) {
  .modal-overlay:not(.operation-modal-overlay) {
    align-items: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .modal-overlay:not(.operation-modal-overlay) > .modal-box {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .modal-box > .modal-header {
    padding: 17px 18px 14px;
  }

  .modal-box > .modal-body,
  .modal-box > form > .modal-body {
    padding: 18px;
  }

  .modal-box > .modal-footer,
  .modal-box > form > .modal-footer {
    padding: 13px 18px 16px;
  }

  .modal-overlay .form-grid-2,
  .modal-overlay .form-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .modal-box > .modal-footer > .btn,
  .modal-box > form > .modal-footer > .btn {
    flex: 1 1 120px;
  }
}