/* ── Domo Gestión Operativa — CSS v1.1 ───────────────────────────────────── */
/* Paleta: Key Visual Domo SOSTENIBILIDAD 2024                                */
/* Desarrollado por Londoño Digital Lab                                       */

:root {
  /* ── Paleta oficial Key Visual 2024 ──────────────────────────── */
  --domo-primary:       #673C33;   /* Marrón principal 2024         */
  --domo-primary-light: #8a5248;   /* Hover / variante clara        */
  --domo-secondary:     #2CABBC;   /* Turquesa / acento             */
  --domo-secondary-dk:  #1e8a99;   /* Turquesa oscura / hover       */
  --domo-accent:        #FFB060;   /* Ámbar cálido / warning        */
  --domo-success:       #91D98C;   /* Verde sostenibilidad          */
  --domo-success-dk:    #5bb855;   /* Verde oscuro / hover          */
  --domo-success-light: #B9E7B5;   /* Verde muy claro               */
  --domo-danger:        #FF6872;   /* Coral / error                 */
  --domo-danger-dk:     #d94a53;   /* Coral oscuro / hover          */

  /* ── Sistema UI ──────────────────────────────────────────────── */
  --bg:          #FFEBDA;          /* Crema cálida (del Key Visual) */
  --surface:     #ffffff;
  --border:      #e8ddd9;
  --text:        #2d2320;
  --text-muted:  #7a6a65;
  --info:        #2CABBC;
  --warning:     #e67e22;
  --radius:      0.5rem;
  --shadow:      0 2px 8px rgba(103,60,51,0.10);
  --shadow-md:   0 4px 16px rgba(103,60,51,0.14);

  /* ── Tipografía ─────────────────────────────────────────────── */
  --font-title: "Montserrat", "Century Gothic", "Avenir Next", Arial, sans-serif;
  --font-body:  "Roboto", "Segoe UI", "Century Gothic", Arial, sans-serif;
  --font: var(--font-body);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}

a { color: var(--domo-primary); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--domo-primary-light); }

h1, h2, h3 { font-family: var(--font-title); }

/* ── NAVBAR ─────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--domo-primary);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.navbar-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.navbar-brand-name {
  color: white;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  display: none;
}
@media (min-width: 600px) { .navbar-brand-name { display: block; } }
.navbar-logo { height: 36px; width: auto; }
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--domo-accent);
  font-size: 1.6rem;
  cursor: pointer;
  margin-left: auto;
  padding: 0.5rem;
}
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-link {
  color: rgba(255,255,255,0.9);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  transition: background .15s;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(44,171,188,.25); color: white; text-decoration: none; }
.nav-link-logout { color: var(--domo-accent) !important; }
.nav-link-active { background: rgba(255,255,255,.15); }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { cursor: pointer; }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--domo-primary);
  border-radius: var(--radius);
  min-width: 180px;
  box-shadow: var(--shadow-md);
  padding: 0.25rem 0;
  border: 1px solid rgba(255,255,255,.1);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu .nav-link { display: block; padding: 0.55rem 1rem; }

@media (max-width: 768px) {
  .navbar-toggle { display: block; }
  .navbar-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--domo-primary);
    padding: 0.5rem 1rem 1rem;
    gap: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
  }
  .navbar-menu.open { display: flex; }
  .nav-link { display: block; padding: 0.75rem 0.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-dropdown-menu { position: static; box-shadow: none; background: rgba(255,255,255,.05); border: none; }
  .nav-dropdown:hover .nav-dropdown-menu { display: block; }
}

/* ── MAIN ────────────────────────────────────────────────────────────────── */
.main-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

/* ── LOGIN ───────────────────────────────────────────────────────────────── */
.login-page {
  background: var(--domo-primary);
  background-image:
    radial-gradient(circle at 20% 80%, rgba(44,171,188,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,176,96,.10) 0%, transparent 50%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}
.login-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-card {
  background: var(--surface);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem 1.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.login-logo {
  text-align: center;
  margin-bottom: 1.25rem;
}
.login-logo img {
  height: 72px;
  width: auto;
  max-width: 100%;
}
.login-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
  text-align: center;
  color: var(--domo-primary);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.login-subtitle {
  font-size: 0.82rem;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.4;
}
.login-help {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}
.login-credit {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── FORMS ───────────────────────────────────────────────────────────────── */
.form-container { max-width: 660px; margin: 0 auto; }
.form-header {
  background: var(--domo-primary);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius) var(--radius) 0 0;
}
.form-header h1 { font-size: 1.2rem; font-family: var(--font-title); font-weight: 700; margin-bottom: 0.2rem; }
.form-header p  { font-size: 0.85rem; opacity: 0.85; }
.form-header-apertura     { background: linear-gradient(135deg, var(--domo-primary) 60%, var(--domo-primary-light)); }
.form-header-bpm          { background: linear-gradient(135deg, #2d6a4f 60%, #40916c); }
.form-header-horario      { background: linear-gradient(135deg, #1d4e89 60%, var(--domo-secondary)); }
.form-header-abastecimiento { background: linear-gradient(135deg, #7b2d8b 60%, #9b59b6); }

.form-container form {
  background: var(--surface);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text); }
.form-control {
  display: block;
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--domo-secondary);
  box-shadow: 0 0 0 3px rgba(44,171,188,.20);
}
.form-control[readonly] { background: #f5f3ef; color: var(--text-muted); }
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23673C33'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}
textarea.form-control { resize: vertical; min-height: 72px; }
.form-control-sm { padding: 0.4rem 0.6rem; font-size: 0.875rem; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; display: block; }
.form-hint-block {
  background: #fff8f0;
  border-left: 3px solid var(--domo-accent);
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.required { color: var(--domo-danger); }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group.half { flex: 1; min-width: 140px; }
.form-divider { border: none; border-top: 1.5px solid var(--border); margin: 1.5rem 0; }
.section-subtitle { font-size: 1rem; font-weight: 700; color: var(--domo-primary); margin-bottom: 1rem; font-family: var(--font-title); }

.radio-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.radio-group-inline { gap: 0.5rem; }
.radio-label {
  display: flex; align-items: center; gap: 0.4rem;
  cursor: pointer; font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 2rem;
  transition: all .15s;
}
.radio-label:hover { border-color: var(--domo-secondary); background: rgba(44,171,188,.07); }
.radio-label input[type=radio]:checked + * { font-weight: 700; }
input[type=radio]:checked ~ .radio-label { border-color: var(--domo-secondary); background: rgba(44,171,188,.07); }

.conditional-section {
  background: rgba(44,171,188,.06);
  border: 1.5px dashed var(--domo-secondary);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}
.form-actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }

/* BPM */
.bpm-table { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; }
.bpm-row { display: flex; align-items: center; gap: 1rem; padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.bpm-row:last-child { border-bottom: none; }
.bpm-row:nth-child(even) { background: #faf9f7; }
.bpm-label { font-size: 0.875rem; font-weight: 600; min-width: 180px; flex: 1; }

/* Multi-select empleados */
.multi-select-wrapper { position: relative; }
.multi-select-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1.5px solid var(--domo-secondary);
  border-radius: var(--radius); max-height: 200px; overflow-y: auto;
  z-index: 50; box-shadow: var(--shadow);
}
.multi-select-option { padding: 0.6rem 0.75rem; cursor: pointer; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
.multi-select-option:hover { background: rgba(44,171,188,.08); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.tag {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--domo-secondary); color: white;
  padding: 0.3rem 0.65rem; border-radius: 2rem;
  font-size: 0.82rem; font-weight: 600;
}
.tag-remove { cursor: pointer; background: none; border: none; font-size: 1rem; color: white; line-height: 1; }

/* Evidencias */
.evidence-previews { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.evidence-preview-item { width: 80px; height: 80px; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--border); }
.evidence-preview-item img { width: 100%; height: 100%; object-fit: cover; }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-title); font-size: 0.9rem; font-weight: 700;
  cursor: pointer; border: 2px solid transparent;
  transition: all .15s; text-decoration: none; line-height: 1.2; white-space: nowrap;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--domo-primary); color: white; border-color: var(--domo-primary); }
.btn-primary:hover { background: var(--domo-primary-light); text-decoration: none; color: white; }
.btn-secondary { background: var(--domo-secondary); color: white; border-color: var(--domo-secondary); }
.btn-secondary:hover { background: var(--domo-secondary-dk); text-decoration: none; color: white; }
.btn-outline { background: transparent; color: var(--domo-primary); border-color: var(--domo-primary); }
.btn-outline:hover { background: var(--domo-primary); color: white; text-decoration: none; }
.btn-outline-teal { background: transparent; color: var(--domo-secondary); border-color: var(--domo-secondary); }
.btn-outline-teal:hover { background: var(--domo-secondary); color: white; text-decoration: none; }
.btn-danger  { background: var(--domo-danger); color: white; border-color: var(--domo-danger); }
.btn-danger:hover { background: var(--domo-danger-dk); text-decoration: none; color: white; }
.btn-sm  { padding: 0.4rem 0.85rem; font-size: 0.82rem; }
.btn-xs  { padding: 0.25rem 0.55rem; font-size: 0.76rem; }

/* ── ALERTS ──────────────────────────────────────────────────────────────── */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; border-left: 4px solid transparent; }
.alert-success { background: rgba(145,217,140,.2); border-color: var(--domo-success-dk); color: #2a6b27; }
.alert-error   { background: rgba(255,104,114,.1); border-color: var(--domo-danger); color: #8b1c25; }
.alert-warning { background: rgba(255,176,96,.15); border-color: var(--domo-accent); color: #7a4a10; }
.alert-info    { background: rgba(44,171,188,.1);  border-color: var(--domo-secondary); color: #145d6b; }

/* ── BADGES ──────────────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 0.2em 0.6em; border-radius: 2rem; font-size: 0.76rem; font-weight: 700; }
.badge-secondary { background: #e8ddd9; color: var(--text-muted); }
.badge-warning   { background: rgba(255,176,96,.25); color: #7a4a10; }
.badge-danger    { background: rgba(255,104,114,.15); color: #8b1c25; }
.badge-critica   { background: var(--domo-danger); color: white; }
.badge-success   { background: rgba(145,217,140,.3); color: #2a6b27; }
.badge-muted     { background: #e9ecef; color: #6c757d; }
.badge-novelty   { background: var(--domo-secondary); color: white; }
.badge-status-sin_novedad    { background: rgba(145,217,140,.2); color: #2a6b27; }
.badge-status-pendiente      { background: rgba(255,176,96,.2); color: #7a4a10; }
.badge-status-en_seguimiento { background: rgba(44,171,188,.15); color: #145d6b; }
.badge-status-cerrado        { background: rgba(145,217,140,.3); color: #2a6b27; }
.badge-status-anulado        { background: rgba(255,104,114,.12); color: #8b1c25; }

/* ── TABLES ──────────────────────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th { background: var(--domo-primary); color: white; padding: 0.6rem 0.75rem; text-align: left; font-weight: 600; white-space: nowrap; font-family: var(--font-title); }
.table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-hover tr:hover td { background: rgba(44,171,188,.05); }
.table-sm td, .table-sm th { padding: 0.4rem 0.6rem; }
.row-anulado { opacity: 0.55; }

/* ── DASHBOARD ───────────────────────────────────────────────────────────── */
.dashboard-header { margin-bottom: 1.5rem; }
.dashboard-header h1 { font-size: 1.5rem; color: var(--domo-primary); font-family: var(--font-title); font-weight: 800; }
.dashboard-date { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }
.section { margin-bottom: 2rem; }
.section-title {
  font-size: 1rem; font-weight: 700; color: var(--domo-primary);
  margin-bottom: 1rem; border-bottom: 2px solid var(--domo-secondary);
  padding-bottom: 0.35rem; font-family: var(--font-title);
}

.form-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 540px) { .form-cards { grid-template-columns: repeat(4, 1fr); } }
.form-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; background: var(--surface);
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem 0.75rem; text-align: center;
  transition: all .18s; text-decoration: none; min-height: 110px;
}
.form-card:hover {
  border-color: var(--domo-secondary); background: rgba(44,171,188,.06);
  box-shadow: 0 4px 16px rgba(44,171,188,.18); text-decoration: none; transform: translateY(-2px);
}
.form-card-icon { font-size: 2rem; }
.form-card-label { font-size: 0.82rem; font-weight: 700; color: var(--domo-primary); line-height: 1.3; }

.dashboard-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 1rem; text-align: center; box-shadow: var(--shadow);
  border-top: 3px solid var(--border);
}
.stat-card.stat-pending  { border-color: var(--domo-accent); }
.stat-card.stat-critical { border-color: var(--domo-danger); }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--domo-primary); display: block; font-family: var(--font-title); }
.stat-label  { font-size: 0.8rem; color: var(--text-muted); }
.quick-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.quick-link {
  color: var(--domo-secondary); font-size: 0.9rem;
  padding: 0.4rem 0.85rem; border: 1.5px solid var(--domo-secondary);
  border-radius: 2rem; transition: all .15s;
}
.quick-link:hover { background: var(--domo-secondary); color: white; text-decoration: none; }

/* ── RECORDS DETAIL ──────────────────────────────────────────────────────── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.75rem; }
.page-header h1 { font-size: 1.3rem; color: var(--domo-primary); font-family: var(--font-title); font-weight: 700; }
.page-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.result-count { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.pagination { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-top: 1.5rem; font-size: 0.875rem; }

.detail-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1.25rem; border-left: 4px solid var(--border); }
.detail-card-novelty  { border-left-color: var(--domo-danger); }
.detail-card-followup { border-left-color: var(--domo-secondary); }
.detail-card-danger   { border-left-color: var(--domo-danger); background: rgba(255,104,114,.04); }
.detail-card-title    { font-size: 1rem; font-weight: 700; color: var(--domo-primary); margin-bottom: 0.75rem; font-family: var(--font-title); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.65rem; font-size: 0.875rem; }
.evidence-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.evidence-item { text-align: center; }
.evidence-thumb { width: 100px; height: 100px; object-fit: cover; border-radius: var(--radius); border: 2px solid var(--border); cursor: pointer; transition: transform .15s; }
.evidence-thumb:hover { transform: scale(1.05); }
.evidence-name { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; max-width: 100px; overflow: hidden; text-overflow: ellipsis; }

/* ── FOLLOW-UPS ──────────────────────────────────────────────────────────── */
.followup-list { display: flex; flex-direction: column; gap: 1rem; }
.followup-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.25rem; border-left: 5px solid var(--border); }
.followup-card.priority-alta    { border-left-color: var(--domo-danger); }
.followup-card.priority-critica { border-left-color: #8b0000; }
.followup-card.priority-media   { border-left-color: var(--domo-accent); }
.followup-card-header { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.followup-folio { font-weight: 700; color: var(--domo-primary); font-size: 1rem; }
.followup-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.followup-novelty { font-size: 0.875rem; color: var(--text); margin-bottom: 0.75rem; }
.followup-update summary { cursor: pointer; font-size: 0.875rem; color: var(--domo-secondary); font-weight: 600; padding: 0.35rem 0; }
.followup-update[open] summary { margin-bottom: 0.75rem; }

/* ── REPORT ──────────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.stats-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat-box {
  background: var(--surface); border-radius: var(--radius);
  padding: 0.85rem 0.75rem; text-align: center;
  box-shadow: var(--shadow); border-bottom: 3px solid var(--border);
}
.stat-box-teal    { border-bottom-color: var(--domo-secondary); }
.stat-box-warning { border-bottom-color: var(--domo-accent); }
.stat-box-info    { border-bottom-color: var(--domo-secondary); }
.stat-box-danger  { border-bottom-color: var(--domo-danger); }
.stat-box-critical{ border-bottom-color: #8b0000; }
.stat-box-success { border-bottom-color: var(--domo-success-dk); }
.stat-box-num  { font-size: 1.75rem; font-weight: 800; color: var(--domo-primary); display: block; font-family: var(--font-title); }
.stat-box-label{ font-size: 0.73rem; color: var(--text-muted); line-height: 1.3; }
.report-section { margin-bottom: 2rem; }
.report-section h2 {
  font-size: 1rem; font-weight: 700; color: var(--domo-primary);
  margin-bottom: 0.75rem; border-bottom: 2px solid var(--domo-secondary);
  padding-bottom: 0.35rem; font-family: var(--font-title);
}
.bpm-compliance-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bpm-compliance-item {
  background: rgba(255,104,114,.12); border-radius: var(--radius);
  padding: 0.4rem 0.75rem; font-size: 0.82rem;
  display: flex; gap: 0.5rem; align-items: center;
}
.top-list { list-style: none; padding: 0; }
.top-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }

/* ── CHARTS ──────────────────────────────────────────────────────────────── */
.chart-container {
  background: var(--surface); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
}
.chart-title {
  font-size: 0.9rem; font-weight: 700; color: var(--domo-primary);
  margin-bottom: 0.75rem; font-family: var(--font-title);
}
.chart-wrapper { position: relative; width: 100%; }
.chart-wrapper canvas { max-width: 100%; }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 600px) { .charts-grid { grid-template-columns: 1fr; } }

/* ── ANALYTIC TABLES ─────────────────────────────────────────────────────── */
.analytic-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.analytic-table th { background: var(--bg); color: var(--domo-primary); padding: 0.5rem 0.75rem; text-align: left; font-weight: 700; border-bottom: 2px solid var(--domo-secondary); }
.analytic-table td { padding: 0.45rem 0.75rem; border-bottom: 1px solid var(--border); }
.analytic-table tr:hover td { background: rgba(44,171,188,.04); }

/* Disclaimer personas */
.disclaimer-persons {
  background: rgba(255,176,96,.1);
  border: 1px solid var(--domo-accent);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ── FILTERS ─────────────────────────────────────────────────────────────── */
.filter-form { background: var(--surface); padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 0.65rem; align-items: flex-end; }
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-group label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); }
.filter-group-search { flex: 1; min-width: 160px; }
.filter-actions { display: flex; gap: 0.5rem; align-items: flex-end; }

/* ── MODALS ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 200; padding: 1rem;
}
.modal-content {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.75rem; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}
.modal-content h2 { font-size: 1.1rem; color: var(--domo-primary); margin-bottom: 1.25rem; font-family: var(--font-title); }

/* ── INFO BANNER ─────────────────────────────────────────────────────────── */
.info-banner { background: rgba(255,176,96,.15); border-left: 4px solid var(--domo-accent); padding: 0.6rem 0.85rem; border-radius: var(--radius); font-size: 0.875rem; margin-bottom: 0.75rem; }
.info-banner-neutral { background: #e9ecef; border-left-color: #adb5bd; }

/* ── INPUT GROUP ─────────────────────────────────────────────────────────── */
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius) 0 0 var(--radius); flex: 1; }
.btn-toggle-pass { border: 1.5px solid var(--border); border-left: none; padding: 0 0.85rem; background: #f5f3ef; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: 1.1rem; }

/* ── EMPTY / ERRORS ──────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state p { font-size: 1rem; }
.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 80vh; gap: 1rem; text-align: center; }
.error-page h1 { font-size: 4rem; font-family: var(--font-title); color: var(--domo-primary); opacity: 0.35; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.app-footer {
  background: var(--domo-primary);
  color: rgba(255,255,255,.6);
  text-align: center; padding: 1rem 1rem 1.25rem;
  font-size: 0.78rem; margin-top: 4rem;
}
.app-footer .footer-brand { color: rgba(255,255,255,.85); font-weight: 600; display: block; margin-bottom: 0.25rem; }
.app-footer .footer-credit { color: rgba(255,255,255,.4); font-size: 0.72rem; }

/* ── PRINT ───────────────────────────────────────────────────────────────── */
@media print {
  .no-print, .navbar, .page-actions, .filter-form { display: none !important; }
  body { background: white; }
  .main-content { padding: 0; max-width: 100%; }
  .app-footer { margin-top: 1rem; }
  .chart-container { box-shadow: none; border: 1px solid var(--border); }
  .print-header { display: block !important; }
}
.print-header { display: none; font-family: var(--font-title); }
.print-header h2 { font-size: 1.2rem; color: var(--domo-primary); }
.print-credit { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.5rem; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .form-row { flex-direction: column; }
  .form-row .form-group.half { min-width: 100%; }
  .dashboard-stats { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .radio-group { gap: 0.5rem; }
  .radio-label { font-size: 0.82rem; padding: 0.4rem 0.6rem; }
  .bpm-row { flex-direction: column; align-items: flex-start; }
  .bpm-label { min-width: unset; }
  .login-card { padding: 1.5rem 1.25rem 1.25rem; }
  .login-title { font-size: 1.15rem; }
}
@media (max-width: 320px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-box-num { font-size: 1.4rem; }
}
