/* ===== OPERIX AI — DESIGN SYSTEM ===== */
:root {
  --primary: #00856F;
  --primary-dark: #006B57;
  --primary-mid: #00A878;
  --primary-light: #E8F5F1;
  --primary-gradient: linear-gradient(135deg, #00A878 0%, #006B57 100%);
  --sidebar-width: 240px;
  --sidebar-bg: #0d1f1a;
  --sidebar-text: #8aada5;
  --topbar-height: 62px;
  --bg: #f0f4f2;
  --surface: #ffffff;
  --border: #e2e8e4;
  --text: #1a2e28;
  --text-muted: #5a7a72;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --radius: 12px;
}

[data-bs-theme="dark"] {
  --bg: #0a1a14;
  --surface: #0d1f1a;
  --border: #1a3328;
  --text: #e8f5f1;
  --text-muted: #8aada5;
  --sidebar-bg: #060f0c;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, sans-serif; margin: 0; }

/* ===== LAYOUT ===== */
.app-wrapper { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 100;
  transition: transform 0.3s ease;
  border-right: 1px solid rgba(255,255,255,0.04);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand-x-icon { flex-shrink: 0; display: flex; align-items: center; }
.brand-name { color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-ai { color: var(--primary-mid); }

.sidebar-section-label {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  color: #3a5a52; padding: 16px 18px 6px; text-transform: uppercase;
}
.sidebar-nav { padding: 0 10px 8px; list-style: none; margin: 0; }
.sidebar-nav .nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--sidebar-text); text-decoration: none;
  font-size: 0.86rem; font-weight: 500;
  transition: all 0.18s; margin-bottom: 1px;
  position: relative;
}
.sidebar-nav .nav-link:hover { background: rgba(0,168,120,0.1); color: #fff; }
.sidebar-nav .nav-link.active { background: var(--primary-gradient); color: #fff; box-shadow: 0 4px 14px rgba(0,107,87,0.4); }
.sidebar-nav .nav-link i { width: 18px; text-align: center; font-size: 0.88rem; }
.sidebar-badge { margin-left: auto; background: #ef4444; color: #fff; font-size: 0.65rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; min-width: 18px; text-align: center; }

.sidebar-footer-brand { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.04); }
.sidebar-tagline { display: block; font-size: 0.68rem; color: #3a5a52; }
.sidebar-domain { display: block; font-size: 0.73rem; color: var(--primary-mid); font-weight: 600; margin-top: 2px; }

.sidebar-footer { padding: 10px; }
.sidebar-footer .nav-link { display: flex; align-items: center; gap: 10px; padding: 9px 12px; color: #ef4444; border-radius: 8px; text-decoration: none; font-size: 0.86rem; font-weight: 500; transition: background 0.2s; }
.sidebar-footer .nav-link:hover { background: rgba(239,68,68,0.1); }

/* ===== MAIN CONTENT ===== */
.main-content { margin-left: var(--sidebar-width); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }

/* ===== TOPBAR ===== */
.topbar {
  height: var(--topbar-height); background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 50;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-breadcrumb { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.sidebar-toggle, .theme-toggle { color: var(--text-muted); border: none; background: none; font-size: 1rem; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.sidebar-toggle:hover, .theme-toggle:hover { background: var(--bg); color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 10px; }

.topbar-alert-btn { position: relative; width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); text-decoration: none; font-size: 1rem; transition: all 0.2s; }
.topbar-alert-btn:hover { background: var(--bg); color: var(--primary); }
.topbar-alert-dot { position: absolute; top: 4px; right: 4px; background: #ef4444; color: #fff; font-size: 0.58rem; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.user-badge { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 10px; border-radius: 8px; transition: background 0.2s; }
.user-badge:hover { background: var(--bg); }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 0.8rem; font-weight: 600; color: var(--text); line-height: 1.2; }
.user-role { font-size: 0.68rem; color: var(--text-muted); }

/* ===== PAGE CONTENT ===== */
.page-content { padding: 28px 24px; flex: 1; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.page-title { font-size: 1.45rem; font-weight: 800; margin: 0 0 4px; color: var(--text); letter-spacing: -0.02em; }
.page-subtitle { color: var(--text-muted); font-size: 0.82rem; margin: 0; }
.text-primary-brand { color: var(--primary) !important; }

/* ===== CARD PANEL ===== */
.card-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.panel-title { margin: 0; font-size: 0.88rem; font-weight: 700; color: var(--text); }
.panel-body { padding: 20px; }

/* ===== KPI CARDS ===== */
.kpi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.kpi-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; }
.kpi-primary::before { background: var(--primary-gradient); }
.kpi-blue::before { background: linear-gradient(90deg,#3b82f6,#60a5fa); }
.kpi-yellow::before { background: linear-gradient(90deg,#f59e0b,#fcd34d); }
.kpi-red::before { background: linear-gradient(90deg,#ef4444,#fca5a5); }

.kpi-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.kpi-value { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.kpi-label { font-size: 0.74rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.kpi-trend { position: absolute; top: 14px; right: 14px; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.kpi-trend.up { background: #dcfce7; color: #16a34a; }
.kpi-trend.down { background: #fef9c3; color: #ca8a04; }
.kpi-primary .kpi-icon { background: var(--primary-light); color: var(--primary); }
.kpi-blue .kpi-icon { background: #dbeafe; color: #2563eb; }
.kpi-yellow .kpi-icon { background: #fef9c3; color: #ca8a04; }
.kpi-red .kpi-icon { background: #fee2e2; color: #dc2626; }

/* ===== ALERTS (Quick panel in dashboard) ===== */
.alert-quick-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.alert-quick-row:last-child { border-bottom: none; }
.alert-quick-row:hover { background: var(--bg); }
.alert-quick-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.aq-red { background: #fee2e2; color: #dc2626; }
.aq-yellow { background: #fef9c3; color: #ca8a04; }
.aq-purple { background: #ede9fe; color: #7c3aed; }
.aq-orange { background: #ffedd5; color: #ea580c; }
.alert-quick-body { flex: 1; min-width: 0; }
.alert-quick-name { font-size: 0.82rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-quick-meta { font-size: 0.7rem; color: var(--text-muted); }
.alert-quick-time { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; flex-shrink: 0; }

/* ===== ALERTAS PAGE ===== */
.alert-summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); transition: transform 0.2s; }
.alert-summary-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.alert-card-icon { font-size: 1.5rem; margin-bottom: 10px; }
.alert-card-value { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.alert-card-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.alert-card-red .alert-card-icon { color: #dc2626; }
.alert-card-red .alert-card-value { color: #dc2626; }
.alert-card-yellow .alert-card-icon { color: #ca8a04; }
.alert-card-yellow .alert-card-value { color: #ca8a04; }
.alert-card-purple .alert-card-icon { color: #7c3aed; }
.alert-card-purple .alert-card-value { color: #7c3aed; }
.alert-card-orange .alert-card-icon { color: #ea580c; }
.alert-card-orange .alert-card-value { color: #ea580c; }

.badge-alert-count { background: #fee2e2; color: #dc2626; font-size: 0.78rem; font-weight: 700; padding: 6px 14px; border-radius: 20px; display: flex; align-items: center; }
.alerta-tipo { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-flex; align-items: center; }
.tipo-falta { background: #fee2e2; color: #dc2626; }
.tipo-retardo { background: #fef9c3; color: #ca8a04; }
.tipo-doble { background: #ede9fe; color: #7c3aed; }
.tipo-salida { background: #ffedd5; color: #ea580c; }
.alert-row-new { background: rgba(239,68,68,0.02); }

/* ===== TABLE STYLES ===== */
.table thead th { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); border-bottom: 1px solid var(--border); padding: 10px 16px; background: var(--bg); }
.table tbody td { padding: 11px 16px; font-size: 0.875rem; color: var(--text); vertical-align: middle; border-bottom: 1px solid var(--border); }
.table tbody tr:last-child td { border-bottom: none; }
.table-hover tbody tr:hover { background: var(--primary-light); }

/* ===== BADGES ===== */
.status-badge { font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 3px; }
.status-green { background: #dcfce7; color: #16a34a; }
.status-yellow { background: #fef9c3; color: #ca8a04; }
.status-red { background: #fee2e2; color: #dc2626; }

.dept-badge { font-size: 0.7rem; font-weight: 600; padding: 2px 10px; border-radius: 6px; background: var(--primary-light); color: var(--primary-dark); }
.shift-badge { font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 3px; }
.shift-matutino { background: #fef9c3; color: #a16207; }
.shift-vespertino { background: #ffedd5; color: #c2410c; }
.shift-nocturno { background: #ede9fe; color: #6d28d9; }
.shift-madrugada { background: #dbeafe; color: #1d4ed8; }

.avatar-sm { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-gradient); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 0.68rem; font-weight: 700; flex-shrink: 0; }
.rank-badge { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; }
.rank-1 { background: #fef08a; color: #a16207; }
.rank-2 { background: #e2e8f0; color: #475569; }
.rank-3 { background: #fed7aa; color: #9a3412; }
.badge-punctuality { font-size: 0.82rem; font-weight: 800; color: var(--primary); }
.client-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-gradient); display: inline-block; flex-shrink: 0; }

/* ===== BUTTONS ===== */
.btn-brand { background: var(--primary-gradient); border: none; color: #fff; font-weight: 700; border-radius: 8px; padding: 9px 20px; transition: all 0.2s; box-shadow: 0 3px 12px rgba(0,107,87,0.3); }
.btn-brand:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,107,87,0.4); }
.btn-brand:active { transform: translateY(0); }

/* ===== LOGIN PAGE ===== */
.login-body { background: #060f0c; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.login-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.2; }
.orb1 { width: 500px; height: 500px; background: #00856F; top: -100px; left: -100px; animation: float1 8s ease-in-out infinite; }
.orb2 { width: 400px; height: 400px; background: #006B57; bottom: -80px; right: -60px; animation: float2 10s ease-in-out infinite; }
.orb3 { width: 250px; height: 250px; background: #00A878; top: 50%; left: 50%; transform: translate(-50%,-50%); animation: float3 6s ease-in-out infinite; }
@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,20px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-20px,30px)} }
@keyframes float3 { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-50%,-50%) scale(1.15)} }

.login-container { display: flex; width: 100%; max-width: 960px; min-height: 580px; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.5); position: relative; z-index: 1; margin: 20px; }

.login-brand-panel { flex: 1; background: linear-gradient(160deg, #0d1f1a 0%, #081410 100%); padding: 48px 40px; display: flex; align-items: center; border-right: 1px solid rgba(255,255,255,0.05); }
.login-brand-content { width: 100%; }
.login-logo-area { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.login-brand-text { display: flex; flex-direction: column; }
.login-brand-name { color: #fff; font-size: 1.8rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.login-brand-name span { color: var(--primary-mid); }
.login-brand-by { color: #3a5a52; font-size: 0.72rem; font-weight: 500; margin-top: 2px; }
.login-brand-divider { width: 48px; height: 3px; background: var(--primary-gradient); border-radius: 2px; margin-bottom: 16px; }
.login-brand-tagline { color: #e8f5f1; font-size: 1rem; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.login-brand-sub { color: #5a7a72; font-size: 0.78rem; margin: 0 0 20px; }
.login-brand-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.brand-pill { font-size: 0.7rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; border: 1px solid rgba(0,168,120,0.4); color: var(--primary-mid); }
.brand-feature { display: flex; align-items: center; gap: 10px; color: #8aada5; font-size: 0.8rem; padding: 5px 0; }
.brand-feature i { color: var(--primary-mid); font-size: 0.72rem; }

.login-form-panel { width: 380px; background: #fff; padding: 48px 40px; display: flex; align-items: center; flex-shrink: 0; }
.login-card { width: 100%; }
.login-card-header { margin-bottom: 28px; }
.login-title { font-size: 1.5rem; font-weight: 800; color: #0d1f1a; margin: 0 0 6px; }
.login-subtitle { color: #64748b; font-size: 0.82rem; margin: 0; }

.login-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #cbd5e1; font-size: 0.75rem; }
.login-divider::before, .login-divider::after { content:''; flex:1; height:1px; background: #e2e8f0; }

.btn-checkin-public { border: 2px solid var(--primary); color: var(--primary); background: transparent; font-weight: 700; border-radius: 8px; padding: 10px 20px; font-size: 0.875rem; text-align: center; text-decoration: none; display: block; transition: all 0.2s; }
.btn-checkin-public:hover { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(0,133,111,0.3); }

.login-demo-hint { text-align: center; color: #94a3b8; font-size: 0.75rem; padding: 10px 12px; background: #f8fafc; border-radius: 8px; }

/* ===== CHECK-IN PAGE ===== */
.checkin-card { padding: 40px; max-width: 500px; margin: 0 auto; }
.checkin-icon-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
.checkin-pulse { width: 80px; height: 80px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(0,133,111,0.4)} 50%{box-shadow:0 0 0 14px rgba(0,133,111,0)} }

.camera-frame { background: #0a1a14; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; position: relative; display: flex; align-items: center; justify-content: center; }
.camera-placeholder { text-align: center; color: #5a7a72; z-index: 2; position: relative; }
.camera-overlay { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.scan-line { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,transparent,var(--primary-mid),transparent); animation: scan 2s linear infinite; top: 0; }
@keyframes scan { 0%{top:0} 100%{top:100%} }
.corner { position: absolute; width: 22px; height: 22px; border-color: var(--primary-mid); border-style: solid; }
.corner.tl { top:12px;left:12px;border-width:3px 0 0 3px;border-radius:3px 0 0 0; }
.corner.tr { top:12px;right:12px;border-width:3px 3px 0 0;border-radius:0 3px 0 0; }
.corner.bl { bottom:12px;left:12px;border-width:0 0 3px 3px;border-radius:0 0 0 3px; }
.corner.br { bottom:12px;right:12px;border-width:0 3px 3px 0;border-radius:0 0 3px 0; }

.success-animation { display: flex; justify-content: center; margin-bottom: 8px; }
.success-circle { width: 80px; height: 80px; background: var(--primary-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 8px 24px rgba(0,133,111,0.4); }
@keyframes popIn { 0%{transform:scale(0);opacity:0} 100%{transform:scale(1);opacity:1} }

.checkin-summary { background: var(--bg); border-radius: 10px; padding: 16px 20px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 0.875rem; }
.summary-row:not(:last-child) { border-bottom: 1px solid var(--border); }

/* ===== TOAST ===== */
.custom-toast { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow-md); min-width: 280px; margin-top: 8px; animation: slideIn 0.3s ease; }
@keyframes slideIn { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }
.toast-icon-success { color: var(--primary); }
.toast-text { font-size: 0.875rem; font-weight: 500; flex: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .login-container { flex-direction: column; min-height: unset; }
  .login-brand-panel { padding: 32px 24px; }
  .login-form-panel { width: 100%; padding: 32px 24px; }
  .login-brand-features, .login-brand-pills { display: none; }
  .page-header { flex-direction: column; }
}

/* ===== PERSONAL MODULE ===== */

/* KPI Mini Strip */
.kpi-mini { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:16px; display:flex; align-items:center; gap:14px; box-shadow:var(--shadow); }
.kpi-mini-icon { width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:1.1rem; flex-shrink:0; }
.kpi-mi-green { background:var(--primary-light); color:var(--primary); }
.kpi-mi-blue  { background:#dbeafe; color:#2563eb; }
.kpi-mi-yellow{ background:#fef9c3; color:#ca8a04; }
.kpi-mi-purple{ background:#ede9fe; color:#7c3aed; }
.kpi-mini-val { font-size:1.6rem; font-weight:800; line-height:1; letter-spacing:-0.02em; }
.kpi-mini-lbl { font-size:0.72rem; color:var(--text-muted); font-weight:500; }

/* Employee Cards */
.emp-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; transition:box-shadow 0.2s, transform 0.2s; }
.emp-card:hover { box-shadow:var(--shadow-md); transform:translateY(-2px); }
.emp-card-inactive { opacity:0.65; }
.emp-card-header { display:flex; align-items:flex-start; gap:12px; padding:16px 16px 12px; border-bottom:1px solid var(--border); }
.emp-avatar-lg { width:46px; height:46px; border-radius:12px; background:var(--primary-gradient); color:#fff; display:flex; align-items:center; justify-content:center; font-size:0.9rem; font-weight:800; flex-shrink:0; }
.emp-card-info { flex:1; min-width:0; }
.emp-card-name { font-size:0.9rem; font-weight:700; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.emp-card-position { font-size:0.75rem; color:var(--text-muted); margin-top:1px; }
.emp-card-num { font-size:0.68rem; font-weight:700; color:var(--primary); margin-top:2px; letter-spacing:0.04em; }
.emp-card-body { padding:12px 16px; display:flex; flex-direction:column; gap:5px; }
.emp-card-row { display:flex; align-items:center; gap:8px; font-size:0.78rem; color:var(--text-muted); }
.emp-card-row i { width:14px; text-align:center; color:var(--primary); font-size:0.72rem; flex-shrink:0; }
.emp-card-footer { display:flex; align-items:center; gap:8px; padding:10px 16px; background:var(--bg); border-top:1px solid var(--border); }
.emp-stat { display:flex; flex-direction:column; align-items:center; }
.emp-stat-val { font-size:0.88rem; font-weight:800; line-height:1; color:var(--text); }
.emp-stat-lbl { font-size:0.62rem; color:var(--text-muted); margin-top:1px; }
.btn-outline-primary-brand { border:1px solid var(--primary); color:var(--primary); background:transparent; font-size:0.75rem; font-weight:600; border-radius:6px; padding:4px 10px; text-decoration:none; transition:all 0.18s; white-space:nowrap; }
.btn-outline-primary-brand:hover { background:var(--primary); color:#fff; }

/* Empty state */
.empty-state { text-align:center; padding:60px 20px; color:var(--text-muted); }

/* Form sections in modal */
.form-section-title { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:var(--primary); border-bottom:1px solid var(--primary-light); padding-bottom:6px; margin-bottom:16px; margin-top:8px; }
.form-lbl { font-size:0.78rem; font-weight:600; color:var(--text-muted); margin-bottom:4px; }

/* Ficha de empleado */
.ficha-profile { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.ficha-avatar { width:72px; height:72px; border-radius:16px; background:var(--primary-gradient); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.4rem; font-weight:800; flex-shrink:0; box-shadow:0 4px 14px rgba(0,133,111,0.3); }
.ficha-profile-info { flex:1; min-width:200px; }
.ficha-name { font-size:1.3rem; font-weight:800; color:var(--text); letter-spacing:-0.02em; }
.ficha-position { font-size:0.85rem; color:var(--text-muted); margin-top:2px; }
.ficha-meta { display:flex; flex-wrap:wrap; gap:14px; margin-top:8px; }
.ficha-meta span { font-size:0.78rem; color:var(--text-muted); display:flex; align-items:center; gap:4px; }
.ficha-meta i { color:var(--primary); }
.ficha-stats { display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.ficha-stat { display:flex; flex-direction:column; align-items:center; text-align:center; }
.ficha-stat-val { font-size:1.4rem; font-weight:800; line-height:1; }
.ficha-stat-lbl { font-size:0.68rem; color:var(--text-muted); font-weight:500; margin-top:2px; }

/* Data rows in ficha */
.ficha-row { display:flex; align-items:center; justify-content:space-between; padding:10px 16px; border-bottom:1px solid var(--border); gap:12px; }
.ficha-row:last-child { border-bottom:none; }
.ficha-lbl { font-size:0.75rem; font-weight:600; color:var(--text-muted); flex-shrink:0; min-width:150px; }
.ficha-val { font-size:0.85rem; color:var(--text); font-weight:500; text-align:right; }

/* Nav tabs override */
.nav-tabs .nav-link { font-size:0.82rem; font-weight:600; color:var(--text-muted); border:none; border-bottom:2px solid transparent; padding:8px 16px; border-radius:0; }
.nav-tabs .nav-link:hover { color:var(--primary); border-bottom-color:var(--primary-light); background:none; }
.nav-tabs .nav-link.active { color:var(--primary); border-bottom:2px solid var(--primary); background:none; }
.nav-tabs { border-bottom:1px solid var(--border); }

/* View Toggle */
.view-toggle-btn { font-size:0.88rem; padding:6px 12px; border:1px solid var(--border); color:var(--text-muted); background:var(--surface); border-radius:6px; cursor:pointer; transition:all 0.2s; }
.view-toggle-btn:hover { color:var(--primary); border-color:var(--primary); }
.view-toggle-btn.active { background:var(--primary); border-color:var(--primary); color:#fff; }

/* Grid/List View Styles */
#employeeGridView.list-view { display:flex; flex-direction:column; gap:0; }
#employeeGridView.list-view .emp-grid-item { width:100% !important; }
#employeeGridView.list-view .emp-card { display:flex; align-items:center; }
#employeeGridView.list-view .emp-card-header { flex:1; min-width:0; padding:12px 16px; border-bottom:none; }
#employeeGridView.list-view .emp-card-body { display:none; }
#employeeGridView.list-view .emp-card-footer { margin-left:auto; border-top:none; }
