/* AutoBoulevard · versión 2.0. Shared visual system and responsive layouts. */
.table-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 0; flex-wrap:wrap; }
.recovery-row { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:10px 0; }
.recovery-row span { min-width:0; overflow-wrap:anywhere; }
.audit-change { padding:12px; margin:10px 0; background:#f4f6fa; border-radius:8px; overflow-wrap:anywhere; font-size:12px; }
#recoveryOutput details { padding:12px 0; border-bottom:1px solid var(--line); }
#recoveryOutput pre { overflow:auto; max-height:400px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12px; padding:12px; background:#f4f6fa; }
:root {
  --bg: #f4f6fa; --ink: #18263b; --ink-soft: #617087; --ink-faint: #738198;
  --line: #e3e8f0; --navy: #203f70; --navy-soft: #edf2fa;
  --radius: 16px; --radius-sm: 9px; --radius-lg: 20px;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 3px 14px rgba(24,38,59,.035);
}
body { font-family: var(--font-body); }
.sidebar { background: #fff; height: 100dvh; }
.sidebar-brand { padding: 28px 22px 22px; gap: 10px; }
.sidebar-brand img { max-width: 150px; }
.sidebar-brand-text { font-size: 10px; color: #617087; letter-spacing: .08em; }
.sidebar-product { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.sidebar-product .sidebar-brand-text { font-size: 9px; letter-spacing: .015em; }
.sidebar-product .version-badge { align-self: center; font-size: 9px; padding: 3px 6px; }
.version-badge { display: inline-flex; align-items: center; align-self: flex-start; flex-shrink: 0; padding: 4px 9px; border: 1px solid #dfd0aa; border-radius: 6px; background: #faf6eb; color: #795c24; font-size: 10px; font-weight: 700; letter-spacing: .025em; line-height: 1.5; white-space: nowrap; }
.sidebar-nav { padding: 12px; }
.nav-section { padding: 16px 12px 7px; font-size: 9px; letter-spacing: .13em; }
.nav-item { border-radius: 9px; padding: 11px 12px; margin: 3px 0; gap: 12px; }
.nav-item.active { background: #203f70; color: #fff; box-shadow: 0 4px 10px #203f701a; }
.nav-item.active::before { display: none; }
.nav-item svg { width: 19px; height: 19px; }
.sync-status { margin: 0 20px; padding: 13px 0; font-size: 11px; }
.sidebar-user { margin: 0 12px 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #f8fafc; }
.user-avatar { border-radius: 10px; background: #e5ecf7; color: #203f70; }
.section { padding: 32px; }
.page-header { padding: 0 0 16px; align-items: center; }
.page-eyebrow { font-size: 10px; letter-spacing: .12em; color: #738198; font-weight: 700; margin-bottom: 8px; }
.page-title { font-size: 28px; letter-spacing: -.035em; line-height: 1.25; }
.page-subtitle { margin-top: 7px; font-size: 13px; }
.page-actions { gap: 10px; }
.btn { min-height: 40px; border-radius: 9px; }
.btn-primary { box-shadow: 0 4px 10px #203f7020; }
.card { min-width: 0; overflow: hidden; }
.card-header { padding: 20px; border-bottom-color: #edf0f5; }
.card-title, .modal-title { font-family: var(--font-body); text-transform: none; letter-spacing: -.015em; font-size: 14px; }
.card-body { padding: 22px 20px; }
.dash-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.dash-grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.status-bar { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.status-chip { padding: 16px 18px; min-height: 86px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.status-chip:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #18263b0a; }
.status-chip-count { font-family: var(--font-body); font-size: 28px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.status-chip-label { font-size: 10px; letter-spacing: .025em; margin-top: 4px; margin-bottom: 0; }
.status-chip-amount { color: #617087; margin-top: 5px; overflow-wrap: anywhere; }
.status-chip-icon { width: 40px; height: 40px; border-radius: 12px; }
.filters { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; gap: 10px; }
.filters > * { min-width: 0; }
.filter-select, .search-input input { min-height: 42px; border-radius: 8px; }
.table-wrap { max-width: 100%; box-shadow: var(--shadow-sm); overscroll-behavior-x: contain; }
thead th { background: #f8fafc; color: #617087; font-family: var(--font-body); font-size: 10px; letter-spacing: .045em; padding: 15px 16px; }
tbody td { padding: 15px 16px; }
tbody tr { border-bottom-color: #edf0f5; }
tbody tr:hover { background: #f5f8fc; }
.td-amount { font-variant-numeric: tabular-nums; }
.table-empty { padding: 48px 20px; color: #617087; }
.badge { border-radius: 6px; padding: 4px 8px; }
.alert-banner { margin: 24px 32px 0; border-radius: 12px; }
.form-group { min-width: 0; }
.form-group input, .form-group select, .form-group textarea { min-height: 44px; max-width: 100%; border-radius: 8px; }
.modal-header, .modal-body, .modal-footer { padding: 20px 24px; }
.modal-close { min-width: 40px; min-height: 40px; justify-content: center; align-items: center; }
.daily-alert-content { width: 100%; max-width: min(480px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
#graficoBarras { overflow-x: auto; }
#graficoBarras > div { min-width: 64px !important; }
.login-product { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #617087; font-size: 12px; margin-bottom: 28px; }
.login-brand-mobile { display: none; }
body:has(.login-wrapper) { background: #f4f6fa; overflow: auto; }
.bg-orb { opacity: .08; }
.bg-grid { opacity: .4; }
.brand-title { font-family: var(--font-body); text-transform: none; letter-spacing: -.04em; }
.brand-subtitle { max-width: 380px; margin-left: auto; margin-right: auto; }
.brand-feature { box-shadow: none; padding: 17px 18px; }
.form-panel { background: #fff; width: 44%; min-width: 440px; }
.form-header h2 { letter-spacing: -.04em; font-size: 30px; color: #18263b; }
.btn-submit { background: #203f70; box-shadow: 0 4px 14px #203f7026; }
.btn-submit::before { background: #183359; }
.toggle-pass { min-width: 36px; min-height: 36px; }
@media (min-width: 901px) {
  .status-bar { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
  .status-chip { min-width: 0; padding: 14px 10px; min-height: 86px; flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 10px; }
  .status-chip-icon { width: 40px; height: 40px; border-radius: 10px; }
  .status-chip-icon svg { width: 21px; height: 21px; }
  .status-chip-info { width: auto; flex: 1; min-width: 0; }
  .status-chip-count { font-size: clamp(16px,1.35vw,23px); overflow-wrap: anywhere; }
  .status-chip-label { margin: 4px 0 0; font-size: 9px; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .status-bar { gap: 8px; }
  .status-chip { padding: 12px 8px; gap: 6px; }
  .status-chip-icon { width: 28px; height: 34px; }
  .status-chip-count { font-size: 16px; }
  .status-chip-label { font-size: 8px; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .section { padding: 24px; }
  .dash-grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 601px) and (max-width: 900px) {
  .sidebar-brand { padding: 20px 6px; align-items: center; }
  .sidebar-brand img { max-width: 40px; }
  .sidebar-brand .version-badge { display: none; }
  .sidebar-product { display: none; }
  .sidebar-nav { padding: 6px; }
  .nav-item { padding: 12px; justify-content: center; }
  .sidebar-user { margin: 4px; padding: 8px 4px; }
  .sync-status { margin: 0 6px; }
  .section { padding: 24px; }
  .dash-grid-3 { grid-template-columns: 1fr; }
  .nav-item[title] { cursor: pointer; }
}
@media (max-width: 900px) {
  .form-panel { width: 100%; min-width: 0; background: #fff; padding: 40px 24px; }
  .login-brand-mobile { display: block; margin-bottom: 24px; }
  .login-brand-mobile img { width: 160px; height: auto; }
  .form-card { max-width: 380px; }
}
@media (max-width: 600px) {
  .main { width: 100%; margin-left: 0; }
  .mobile-topbar { position: sticky; top: 0; z-index: 80; min-height: 64px; padding: 10px 16px; background: #ffffffed; backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); gap: 12px; }
  .mobile-topbar-title { flex: 1; font-family: var(--font-body); font-size: 15px; letter-spacing: -.025em; }
  .mobile-topbar .version-badge { align-self: center; font-size: 9px; }
  .mobile-menu-btn { min-height: 42px; min-width: 42px; background: #f1f4f8; border-radius: 9px; }
  .sidebar { width: min(280px,85vw); transition: transform .25s ease; }
  .sidebar-brand { align-items: flex-start; }
  .navigation-open { overflow: hidden; }
  .section { padding: 22px 16px; }
  .page-header { padding: 0 0 20px; gap: 16px; }
  .page-title { font-size: 25px; }
  .page-eyebrow { font-size: 9px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; white-space: normal; }
  .btn, .btn-sm, .btn-icon { min-height: 44px; }
  .btn-icon { min-width: 44px; }
  .status-bar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .status-chip { width: auto; min-width: 0; padding: 15px 12px; min-height: 112px; gap: 8px; flex-wrap: nowrap; align-content: center; }
  .status-chip-icon { width: 30px; height: 30px; }
  .status-chip-count { font-size: 25px; }
  .status-chip-label { font-size: 9px; }
  .dash-grid, .dash-grid-3 { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .card-header, .card-body { padding: 16px; }
  .filters { display: grid; grid-template-columns: minmax(0,1fr); padding: 12px; }
  .filters > * { width: 100%; min-width: 0 !important; max-width: none !important; }
  input, select, textarea, .filter-select, .search-select-input { font-size: 16px !important; }
  .form-grid, .form-grid.cols-3 { grid-template-columns: minmax(0,1fr); }
  .form-span2, .form-section-title { grid-column: auto; }
  .alert-banner { margin: 16px 16px 0; padding: 12px; flex-wrap: wrap; font-size: 12px; }
  .alert-banner span { flex: 1; min-width: 0; }
  .alert-banner a { margin-left: 26px; }
  .modal-overlay { padding: 12px; align-items: center; }
  .modal { max-height: calc(100dvh - 24px); border-radius: 16px; }
  .modal-header, .modal-body, .modal-footer { padding: 16px; }
  .modal-footer .btn { flex: 1; white-space: normal; }
  .table-wrap table { min-width: 640px; }
  .table-wrap { scrollbar-width: thin; }
  .table-actions { gap: 6px; }
  .detail-stats { grid-template-columns: minmax(0,1fr); }
  #overlayRecibo > div { width: 100% !important; max-width: 380px; }
  .form-panel { min-height: 100dvh; padding: 32px 24px; }
  .form-card { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Sidebar refresh: centered brand, clear groups and compact navigation. */
.sidebar {
  background: linear-gradient(180deg, #fff 0%, #f8fafd 100%);
  border-right: 1px solid #dfe6ef;
  box-shadow: 4px 0 24px rgba(24, 38, 59, .025);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e2 transparent;
}
.sidebar-brand {
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  padding: 26px 12px 20px;
  gap: 15px;
  border-bottom: 1px solid #e8edf4;
  background: #fff;
}
.sidebar-brand img { width: 152px; max-width: 100%; margin: 0 auto; }
.sidebar-product { justify-content: center; gap: 7px; width: 100%; }
.sidebar-product .sidebar-brand-text { color: #42536d; font-size: 9px; font-weight: 700; letter-spacing: .025em; }
.sidebar-product .version-badge { background: #eef3fb; border-color: #dbe5f4; color: #365987; border-radius: 999px; font-size: 9px; padding: 3px 7px; }
.sidebar-nav { padding: 8px 12px 14px; }
.sidebar .nav-section {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 19px 11px 8px;
  font-size: 9px;
  letter-spacing: .14em;
  color: #7d8ba1;
}
.sidebar .nav-section::after { content: ''; height: 1px; flex: 1; background: #e3e9f1; }
.sidebar .nav-item {
  min-height: 44px;
  padding: 6px 10px;
  gap: 10px;
  margin: 4px 0;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #52617a;
  font-size: 12px;
  font-weight: 550;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.sidebar .nav-item svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 8px;
  background: #edf1f7;
  color: #607492;
}
.sidebar .nav-item:hover { background: #eef3fa; border-color: #e0e8f4; color: #234474; }
.sidebar .nav-item:hover svg { background: #e1eafa; color: #234474; }
.sidebar .nav-item.active {
  background: linear-gradient(110deg, #203f70, #2d5288);
  border-color: #244677;
  color: #fff;
  box-shadow: 0 4px 12px rgba(32, 63, 112, .16);
  font-weight: 650;
}
.sidebar .nav-item.active svg { background: #ffffff18; color: #fff; }
.sidebar .nav-item:focus-visible { outline: 2px solid #5b86bf; outline-offset: 2px; }
.sidebar .nav-badge { min-width: 22px; padding: 3px 6px; font-size: 9px; background: #b43d4b; }
.sidebar .nav-item.active .nav-badge { background: #fff; color: #9e3041; }
.sidebar .sync-status { margin: 0 22px; padding: 14px 0; border-top: 1px solid #e3e9f1; font-size: 10px; color: #718199; flex-shrink: 0; }
.sidebar .sidebar-user { margin: 0 12px 14px; padding: 12px 10px; border-color: #dfe7f2; background: #fff; border-radius: 12px; box-shadow: 0 3px 12px #203f7006; flex-shrink: 0; }
.sidebar .user-avatar { width: 33px; height: 33px; border-radius: 10px; background: #203f70; }
.sidebar .user-name { font-size: 12px; }
.sidebar .user-role { margin-top: 2px; font-size: 10px; }
.sidebar .btn-logout { background: #f2f5fa; border-radius: 8px; }
.sidebar .btn-logout:hover { background: #fbecef; color: #ad3b4b; }
@media (min-width: 601px) and (max-width: 900px) {
  .sidebar-brand { padding: 22px 6px 18px; }
  .sidebar-brand img { width: 42px; }
  .sidebar .sidebar-nav { padding: 5px 6px 10px; }
  .sidebar .nav-section { padding: 15px 0 7px; font-size: 7px; letter-spacing: 0; justify-content: center; }
  .sidebar .nav-section::after { display: none; }
  .sidebar .nav-item { padding: 5px; gap: 0; justify-content: center; }
  .sidebar .nav-item svg { width: 30px; height: 30px; }
  .sidebar .nav-badge { position: absolute; top: -3px; right: -3px; min-width: 16px; padding: 2px 4px; font-size: 8px; }
  .sidebar .sync-status { margin: 0 8px; padding: 12px 0; }
  .sidebar .sidebar-user { margin: 0 6px 10px; padding: 8px 4px; }
}
@media (max-width: 600px) {
  .sidebar-brand { align-items: center; padding: 24px 12px 18px; }
  .sidebar-brand img { width: 152px; max-width: 152px; }
  .sidebar .nav-item { min-height: 46px; font-size: 13px; }
  .sidebar .nav-section { padding-top: 16px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) { .sidebar .nav-item { transition: none; } }

.sidebar .user-avatar { border-radius: 50%; background: #edf3fb; color: #365987; border: 1px solid #dbe5f2; }
.sidebar .user-avatar svg { display: block; width: 20px; height: 20px; }
.sidebar .sync-status { font-size: 11px; }
