/*
 * design-system.css v2 — Sistema Libro de Visitas BNPHU
 * Rediseño moderno minimalista — inspiración: Linear, Vercel, Notion
 * Prefijo: ds-  (sin colisiones con va-/vr-)
 */

/* ================================================================
   FUENTES
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400&family=Playfair+Display:wght@700;900&display=swap');

/* ================================================================
   VARIABLES
   ================================================================ */
:root {
  /* Fondos */
  --ds-bg:          #f6f7fb;
  --ds-surface:     #ffffff;
  --ds-surface-2:   #f9fafb;
  --ds-surface-3:   #f0f2f7;

  /* Bordes */
  --ds-border:      #e4e7ef;
  --ds-border-2:    #edf0f7;

  /* Texto */
  --ds-text:        #0d0f1c;
  --ds-text-2:      #374151;
  --ds-muted:       #6b7280;
  --ds-subtle:      #9ca3af;

  /* Acento — Índigo vibrante */
  --ds-accent:      #5b5ef4;
  --ds-accent-h:    #4749d8;
  --ds-accent-lt:   #eef0ff;
  --ds-accent-glow: rgba(91, 94, 244, 0.14);

  /* Estados */
  --ds-success:     #059669;
  --ds-success-lt:  #d1fae5;
  --ds-danger:      #e11d48;
  --ds-danger-lt:   #ffe4e6;
  --ds-warning:     #d97706;
  --ds-warning-lt:  #fef3c7;

  /* Estructura */
  --ds-radius-xs:   4px;
  --ds-radius-sm:   7px;
  --ds-radius:      10px;
  --ds-radius-lg:   14px;
  --ds-radius-xl:   20px;

  /* Sombras */
  --ds-shadow-xs:   0 1px 2px rgba(0,0,0,0.04);
  --ds-shadow:      0 1px 3px rgba(0,0,0,0.05), 0 4px 14px rgba(0,0,0,0.04);
  --ds-shadow-md:   0 4px 20px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
  --ds-shadow-lg:   0 8px 36px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.04);

  /* Transición estándar */
  --t: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   TIPOGRAFÍA GLOBAL
   ================================================================ */
* {
  font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}
body {
  color: var(--ds-text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================================================
   LAYOUT
   ================================================================ */
.home_content {
  background-color: var(--ds-bg);
}
.home_content .text {
  margin: 24px 28px !important;
  font-size: 14px !important;
  color: var(--ds-text) !important;
  font-weight: 400 !important;
}

/* Oculta banner legado */
.home_content > nav.navbar { display: none !important; }

/* ================================================================
   SIDEBAR  (overrides sobre style.css — estructura intacta)
   ================================================================ */
.sidebar {
  background: #0d0e1c !important;
  border-right: 1px solid rgba(255,255,255,0.05) !important;
  box-shadow: 4px 0 24px rgba(0,0,0,0.28) !important;
}
.sidebar .logo_contend .logo .logo_name {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px !important;
  color: #fff !important;
}
.sidebar #btn {
  color: rgba(255,255,255,0.55) !important;
  font-size: 18px !important;
  transition: color var(--t) !important;
}
.sidebar #btn:hover { color: #fff !important; }

/* Links */
.sidebar ul li a {
  color: rgba(255,255,255,0.80) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 9px !important;
  letter-spacing: 0.01em;
  transition: background var(--t), color var(--t) !important;
}
.sidebar ul li a:hover {
  background: rgba(255,255,255,0.07) !important;
  color: rgba(255,255,255,0.95) !important;
}
.sidebar ul li a:hover i {
  color: var(--ds-accent) !important;
}
.sidebar ul li i {
  color: rgba(255,255,255,0.72) !important;
  font-size: 18px;
  transition: color var(--t);
}

/* Tooltip */
.sidebar ul li .tooltip {
  background: #1c1d32 !important;
  color: rgba(255,255,255,0.88) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35) !important;
  border-radius: 7px !important;
}

/* Perfil */
.sidebar .profile_content .profile {
  border-top: 1px solid rgba(255,255,255,0.06) !important;
}
.sidebar.active .profile_content .profile {
  background: rgba(255,255,255,0.04) !important;
}
.profile .profile_details .name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.9) !important;
}
.profile .profile_details .job {
  font-size: 11px !important;
  color: rgba(255,255,255,0.4) !important;
}
.profile #log_out {
  background: transparent !important;
  color: rgba(255,255,255,0.38) !important;
  transition: color var(--t) !important;
}
.profile #log_out:hover { color: var(--ds-danger) !important; }

/* ================================================================
   PAGE HEADER
   ================================================================ */
.ds-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ds-border);
}
.ds-page-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ds-page-title {
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: var(--ds-text) !important;
  margin-bottom: 0 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.5px !important;
}
.ds-page-subtitle {
  font-size: 0.79rem;
  color: var(--ds-muted);
  margin-top: 0.2rem;
  font-weight: 400;
}

/* ================================================================
   SEARCH  (ds-search-wrap)
   ================================================================ */
.ds-search-wrap {
  min-width: 220px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--ds-border) !important;
  transition: border-color var(--t), box-shadow var(--t);
}
.ds-search-wrap:focus-within {
  border-color: var(--ds-accent) !important;
  box-shadow: 0 0 0 3px var(--ds-accent-glow) !important;
}
.ds-search-icon-addon {
  background: var(--ds-surface) !important;
  border: none !important;
  color: var(--ds-subtle);
  font-size: 0.95rem;
  padding: 0 0.5rem 0 0.65rem;
}
.ds-search-input {
  border: none !important;
  box-shadow: none !important;
  font-size: 0.84rem !important;
  background: var(--ds-surface) !important;
  outline: none !important;
}
.ds-search-input:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ================================================================
   FILTER BAR
   ================================================================ */
.ds-filter-bar {
  background: var(--ds-surface);
  border: 1.5px solid var(--ds-border);
  border-radius: var(--ds-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--ds-shadow-xs);
}

/* ================================================================
   SECTION TITLE
   ================================================================ */
.ds-section-title {
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  color: var(--ds-subtle) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* ================================================================
   FORM CARD
   ================================================================ */
.ds-form-card {
  background: var(--ds-surface);
  border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow);
  border: 1.5px solid var(--ds-border);
  padding: 2rem;
}
.ds-form-section {
  background: var(--ds-surface-2);
  border-radius: var(--ds-radius);
  padding: 1.25rem;
  border: 1.5px solid var(--ds-border);
  margin-top: 0.75rem;
}
.ds-form-section-title {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ds-subtle);
  margin-bottom: 1rem;
}

/* ================================================================
   CARD
   ================================================================ */
.card {
  border: 1.5px solid var(--ds-border) !important;
  border-radius: var(--ds-radius-lg) !important;
  box-shadow: var(--ds-shadow) !important;
  background: var(--ds-surface) !important;
}
.card-body { padding: 1.25rem !important; }
.card-title {
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: var(--ds-text) !important;
  margin-bottom: 0.75rem !important;
  letter-spacing: -0.1px !important;
}

/* ================================================================
   TABLA GLOBAL (Bootstrap .table)
   ================================================================ */
.table-responsive {
  border-radius: var(--ds-radius-lg);
  border: 1.5px solid var(--ds-border);
  box-shadow: var(--ds-shadow);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--ds-surface);
}
.table-responsive .table {
  box-shadow: none !important;
  border: none !important;
  margin-bottom: 0;
}
.table {
  font-size: 0.84rem;
  background: var(--ds-surface);
  border-radius: var(--ds-radius-lg);
  overflow: hidden;
  box-shadow: var(--ds-shadow);
  margin-bottom: 1.25rem;
  border: 1.5px solid var(--ds-border);
}
.table thead th {
  background: var(--ds-surface-2) !important;
  font-size: 0.67rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.09em !important;
  color: var(--ds-subtle) !important;
  padding: 0.85rem 1rem !important;
  border-bottom: 1.5px solid var(--ds-border) !important;
  border-top: none !important;
  white-space: nowrap;
}
.table td, .table th { vertical-align: middle !important; }
.table tbody td {
  padding: 0.75rem 1rem !important;
  color: var(--ds-text-2) !important;
  border-top: none !important;
  border-bottom: 1px solid var(--ds-border-2) !important;
  font-size: 0.84rem;
}
.table tbody tr:last-child td { border-bottom: none !important; }
.table tbody tr:hover td { background-color: var(--ds-accent-lt) !important; }
.table-bordered { border: 1.5px solid var(--ds-border) !important; }
.table-bordered thead th {
  border: none !important;
  border-bottom: 1.5px solid var(--ds-border) !important;
}
.table-bordered tbody td {
  border: none !important;
  border-bottom: 1px solid var(--ds-border-2) !important;
}

/* ================================================================
   FORM CONTROLS
   ================================================================ */
.form-control,
.form-select,
select.form-control {
  border-radius: var(--ds-radius-sm) !important;
  border: 1.5px solid var(--ds-border) !important;
  font-size: 0.875rem !important;
  color: var(--ds-text) !important;
  background: var(--ds-surface) !important;
  padding: 0.45rem 0.75rem !important;
  transition: border-color var(--t), box-shadow var(--t) !important;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--ds-accent) !important;
  box-shadow: 0 0 0 3px var(--ds-accent-glow) !important;
  outline: none !important;
}
.form-control::placeholder { color: var(--ds-subtle) !important; }
.form-label, label {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--ds-text-2) !important;
  margin-bottom: 0.3rem !important;
  letter-spacing: 0.01em;
}
.form-check-label { font-size: 0.875rem !important; }
.form-check-input:checked {
  background-color: var(--ds-accent) !important;
  border-color: var(--ds-accent) !important;
}

/* ================================================================
   BOTONES
   ================================================================ */
.btn {
  border-radius: var(--ds-radius-sm) !important;
  font-weight: 500 !important;
  font-size: 0.84rem !important;
  transition: all var(--t) !important;
  letter-spacing: 0.01em;
  border-width: 1.5px !important;
}
.btn-primary {
  background: var(--ds-accent) !important;
  border-color: var(--ds-accent) !important;
  color: #fff !important;
  box-shadow: 0 1px 4px rgba(91,94,244,0.3) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--ds-accent-h) !important;
  border-color: var(--ds-accent-h) !important;
  box-shadow: 0 4px 14px rgba(91,94,244,0.38) !important;
  transform: translateY(-1px);
}
.btn-danger {
  background: var(--ds-danger) !important;
  border-color: var(--ds-danger) !important;
  color: #fff !important;
  box-shadow: 0 1px 4px rgba(225,29,72,0.2) !important;
}
.btn-danger:hover {
  background: #c81a3f !important;
  border-color: #c81a3f !important;
  box-shadow: 0 4px 14px rgba(225,29,72,0.32) !important;
  transform: translateY(-1px);
}
.btn-success {
  background: var(--ds-success) !important;
  border-color: var(--ds-success) !important;
  color: #fff !important;
}
.btn-warning {
  background: var(--ds-warning) !important;
  border-color: var(--ds-warning) !important;
  color: #fff !important;
}
.btn-light {
  background: var(--ds-surface-2) !important;
  border-color: var(--ds-border) !important;
  color: var(--ds-text-2) !important;
}
.btn-light:hover { background: var(--ds-surface-3) !important; }
.btn-secondary {
  background: var(--ds-surface-2) !important;
  border-color: var(--ds-border) !important;
  color: var(--ds-text-2) !important;
}
.btn-outline-primary {
  border-color: var(--ds-accent) !important;
  color: var(--ds-accent) !important;
  background: transparent !important;
}
.btn-outline-primary:hover {
  background: var(--ds-accent) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(91,94,244,0.28) !important;
  transform: translateY(-1px);
}
.btn-outline-secondary {
  border-color: var(--ds-border) !important;
  color: var(--ds-muted) !important;
  background: transparent !important;
}
.btn-outline-secondary:hover {
  background: var(--ds-surface-2) !important;
  color: var(--ds-text-2) !important;
}
.btn-outline-danger {
  border-color: var(--ds-danger) !important;
  color: var(--ds-danger) !important;
  background: transparent !important;
}
.btn-outline-danger:hover {
  background: var(--ds-danger) !important;
  color: #fff !important;
}
.btn-lg {
  padding: 0.65rem 1.5rem !important;
  font-size: 0.95rem !important;
  border-radius: var(--ds-radius) !important;
}
.btn-sm {
  font-size: 0.76rem !important;
  padding: 0.25rem 0.65rem !important;
}

/* ================================================================
   ALERTAS
   ================================================================ */
.alert {
  border-radius: var(--ds-radius) !important;
  font-size: 0.875rem !important;
  border: none !important;
  font-weight: 500;
}
.alert-success { background: var(--ds-success-lt) !important; color: #065f46 !important; }
.alert-danger   { background: var(--ds-danger-lt)  !important; color: #9f1239 !important; }
.alert-info     { background: var(--ds-accent-lt)  !important; color: #3730a3 !important; }
.alert-warning  { background: var(--ds-warning-lt) !important; color: #92400e !important; }

/* ================================================================
   BADGE
   ================================================================ */
.badge {
  border-radius: 5px !important;
  font-weight: 600 !important;
  font-size: 0.68rem !important;
  padding: 0.28rem 0.5rem !important;
  letter-spacing: 0.01em;
}

/* ================================================================
   CHART BOXES
   ================================================================ */
.chart-box-lg { height: 340px; }
.chart-box-md { height: 280px; }

.ds-page-subtitle {
  color: var(--ds-muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.ds-analytics-hero {
  background:
    radial-gradient(circle at top right, rgba(91, 94, 244, 0.15), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(25, 42, 86, 0.98));
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.ds-analytics-hero .form-label,
.ds-analytics-hero .ds-filter-hint {
  color: rgba(248, 250, 252, 0.88);
}

.ds-analytics-hero .form-control {
  background: rgba(255, 255, 255, 0.96);
}

.ds-kpi-card {
  overflow: hidden;
  position: relative;
}

.ds-kpi-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #2563eb, #14b8a6);
}

.ds-kpi-label {
  color: var(--ds-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ds-kpi-value {
  color: var(--ds-text);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 0.4rem;
}

.ds-kpi-foot {
  color: var(--ds-muted);
  font-size: 0.8rem;
  margin-top: 0.55rem;
}

.ds-filter-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem;
}

.ds-filter-chip button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
}

.ds-map-card {
  background:
    linear-gradient(180deg, rgba(241, 245, 249, 0.9), rgba(226, 232, 240, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 1rem;
}

.ds-map-stage {
  background:
    radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.12), transparent 18%),
    radial-gradient(circle at 80% 70%, rgba(20, 184, 166, 0.14), transparent 20%),
    linear-gradient(180deg, #dbeafe 0%, #eff6ff 100%);
  border-radius: 16px;
  min-height: 350px;
  overflow: hidden;
  position: relative;
}

.ds-map-svg {
  display: block;
  height: 100%;
  width: 100%;
}

.ds-map-land {
  fill: rgba(148, 163, 184, 0.28);
  stroke: rgba(71, 85, 105, 0.16);
  stroke-width: 2;
}

.ds-map-marker {
  cursor: pointer;
}

.ds-map-marker circle {
  fill: rgba(37, 99, 235, 0.78);
  stroke: rgba(255, 255, 255, 0.95);
  stroke-width: 3;
  transition: transform 0.2s ease, fill 0.2s ease;
  transform-origin: center;
}

.ds-map-marker text {
  fill: #0f172a;
  font-size: 13px;
  font-weight: 700;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.ds-map-marker.is-active circle,
.ds-map-marker:hover circle {
  fill: rgba(14, 165, 233, 0.95);
  transform: scale(1.08);
}

@media (max-width: 767.98px) {
  .chart-box-lg,
  .chart-box-md {
    height: 260px;
  }

  .ds-map-stage {
    min-height: 280px;
  }

  .ds-kpi-value {
    font-size: 1.7rem;
  }
}

/* ================================================================
   LOGIN
   ================================================================ */
body.ds-login {
  background: #0b0c1a !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
  position: relative !important;
}
body.ds-login::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(91,94,244,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(91,94,244,0.07) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.ds-login-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}
.ds-login-card {
  background: rgba(255,255,255,0.99);
  border-radius: 22px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 72px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
}
.ds-login-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}
.ds-login-brand-title {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--ds-text) !important;
  margin: 0.75rem 0 0.15rem !important;
  letter-spacing: -0.3px !important;
}
.ds-login-brand-sub {
  font-size: 0.78rem;
  color: var(--ds-muted);
}
.ds-login-field { margin-bottom: 1rem; }
.ds-login-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ds-text-2);
  margin-bottom: 0.3rem;
  display: block;
}
.ds-login-btn {
  margin-top: 0.75rem;
  padding: 0.7rem 1rem !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  width: 100%;
}
.ds-login-footer {
  color: rgba(255,255,255,0.38);
  font-size: 0.75rem;
  margin-top: 1.5rem;
  text-align: center;
}

/* ================================================================
   BANNER BNPHU
   ================================================================ */
.bnphu-banner-topbar {
  height: 3px;
  background: linear-gradient(90deg, #5b5ef4, #818cf8, #c8a84b, #818cf8, #5b5ef4);
}
.bnphu-banner {
  background: linear-gradient(135deg, #0d1332 0%, #1a3a8f 55%, #1e45a8 100%);
  padding: 20px 32px 18px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.bnphu-banner-logo {
  background: rgba(255,255,255,0.96);
  border-radius: 8px;
  padding: 6px;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.32);
}
.bnphu-banner-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.bnphu-banner-text { flex: 1; text-align: center; }
.bnphu-banner-text h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.8rem !important;
  font-weight: 900 !important;
  color: #fff !important;
  letter-spacing: 0.3px !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.bnphu-banner-text p {
  font-family: 'Inter', 'Poppins', sans-serif !important;
  font-size: 0.62rem !important;
  color: rgba(255,255,255,0.52) !important;
  letter-spacing: 3.5px !important;
  text-transform: uppercase !important;
  margin: 6px 0 0 !important;
}
.bnphu-banner-bottom {
  height: 12px;
  background: #1a3a8f;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
@media (max-width: 576px) {
  .bnphu-banner { padding: 14px 16px; gap: 12px; }
  .bnphu-banner-logo { width: 46px; height: 46px; }
  .bnphu-banner-logo img { width: 34px; height: 34px; }
  .bnphu-banner-text h2 { font-size: 1.25rem !important; }
  .bnphu-banner-text p { letter-spacing: 1.5px !important; }
}

/* Login banner compacto */
.ds-login-card .bnphu-banner-topbar {
  border-radius: 20px 20px 0 0;
  margin: -2.5rem -2rem 0;
}
.ds-login-card .bnphu-banner {
  border-radius: 0;
  margin: 0 -2rem 1.5rem;
  padding: 16px 24px 14px;
}
.ds-login-card .bnphu-banner-bottom { margin: 0 -2rem; }
.ds-login-card .bnphu-banner-text h2 { font-size: 1.35rem !important; }

/* ================================================================
   WIDGETS VISITAS.PHP — visitas activas + usuarios registrados
   ================================================================ */
.vr-widgets-section {
  padding: 14px 0 4px;
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.3s ease, padding 0.3s ease;
}
/* Fila de widgets: centrada y columnas de igual altura */
.vr-widgets-section .row {
  align-items: stretch;
}
.vr-widgets-section .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}
.vr-widgets-oculto {
  opacity: 0 !important;
  pointer-events: none !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  transform: translateY(-8px);
}
.vr-widget-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vr-widget-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: #f8f9fb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}
.vr-widget-header i { font-size: 1rem; color: #4f46e5; }
.vr-widget-title-link {
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.vr-widget-title-link:hover { color: #4f46e5; text-decoration: underline; }
.vr-widget-refresh {
  margin-left: auto;
  cursor: pointer;
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.15s;
}
.vr-widget-refresh:hover { color: #4f46e5; }
.vr-widget-body {
  padding: 10px 14px;
  overflow-y: auto;
  height: 240px;
}
.vr-widget-loading {
  text-align: center;
  color: #9ca3af;
  font-size: 0.8rem;
  padding: 18px 0;
}
/* KPIs del widget activas */
.vr-kpi-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.vr-kpi-chip {
  flex: 1;
  background: #f1f5ff;
  border-radius: 8px;
  padding: 7px 8px;
  text-align: center;
}
.vr-kpi-chip-val {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1d4ed8;
  line-height: 1;
}
.vr-kpi-chip-lbl {
  font-size: 0.68rem;
  color: #6b7280;
  margin-top: 2px;
}
.vr-kpi-chip.vr-chip-grupo { background: #f5f3ff; }
.vr-kpi-chip.vr-chip-grupo .vr-kpi-chip-val { color: #7c3aed; }
.vr-kpi-chip.vr-chip-ind   { background: #f0fdf4; }
.vr-kpi-chip.vr-chip-ind   .vr-kpi-chip-val { color: #059669; }
/* Lista mini */
.vr-widget-list { list-style: none; padding: 0; margin: 0; }
.vr-widget-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.78rem;
}
.vr-widget-list-item:last-child { border-bottom: none; }
.vr-widget-avatar-xs {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vr-widget-item-nombre {
  font-weight: 500;
  color: #111827;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.vr-widget-item-meta {
  color: #9ca3af;
  font-size: 0.7rem;
  white-space: nowrap;
}
.vr-widget-list-item.vr-clickable {
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.12s;
}
.vr-widget-list-item.vr-clickable:hover { background: #f0f4ff; }

/* Individual vs Grupo en widget de visitas activas */
.vr-item-grupo {
  background: #faf5ff;
  border-left: 3px solid #7c3aed;
  padding-left: 6px;
  border-radius: 0 6px 6px 0;
}
.vr-item-ind {
  border-left: 3px solid #2563eb;
  padding-left: 6px;
  border-radius: 0 6px 6px 0;
}
.vr-avatar-grupo { background: #7c3aed !important; }

/* Info stack dentro del item */
.vr-widget-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.vr-widget-item-subtexto {
  font-size: 0.67rem;
  color: #7c3aed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Columna derecha: badge + hora + servicio */
.vr-widget-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.vr-widget-item-servicio {
  font-size: 0.65rem;
  color: #9ca3af;
}
.vr-badge-grupo-xs {
  font-size: 0.6rem;
  font-weight: 600;
  background: #ede9fe;
  color: #6d28d9;
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
}
.vr-widget-empty {
  text-align: center;
  color: #9ca3af;
  font-size: 0.78rem;
  padding: 16px 0;
}
@media (max-width: 768px) {
  .vr-widget-body { height: 180px; }
  .vr-widgets-section .row > [class*="col-"] { min-width: 100%; }
}

/* ---- Avatar empleados en tabla de usuarios ---- */
.ds-usr-avatar {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: #5b5ef4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  letter-spacing: 0.5px;
  overflow: hidden;
}
