/* ============================================================
   ENTERPRISE DESIGN SYSTEM — KPI Platform
   Primary: #2C3E50  |  Action: #3498DB  |  BG: #F8F9FA
   Success: #27AE60  |  Danger: #E74C3C
   Font: Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --nav-width: 262px;
  --nav-mini: 72px;
  --primary:       #2C3E50;
  --primary-light: #34495e;
  --primary-hover: #1a252f;
  --action:        #3498DB;
  --action-hover:  #2980b9;
  --action-light:  rgba(52,152,219,0.1);
  --success:       #27AE60;
  --success-light: rgba(39,174,96,0.1);
  --danger:        #E74C3C;
  --danger-light:  rgba(231,76,60,0.1);
  --warning:       #F39C12;
  --warning-light: rgba(243,156,18,0.1);
  --bg:            #F0F2F5;
  --surface:       #FFFFFF;
  --border:        #E2E8F0;
  --border-light:  #F1F5F9;
  --text-main:     #1E293B;
  --text-sub:      #475569;
  --text-muted:    #94A3B8;
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12);
  --radius:     12px;
  --radius-sm:  8px;
  --radius-xs:  6px;
  --sidebar-bg:        #1E2D3D;
  --sidebar-bg2:       #172435;
  --sidebar-text:      rgba(203,213,225,0.85);
  --sidebar-text-hov:  #F1F5F9;
  --sidebar-active-bg: rgba(52,152,219,0.18);
  --sidebar-active-txt:#74B9E8;
}

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background: var(--bg) !important;
  color: var(--text-main) !important;
  font-size: 14px;
  line-height: 1.6;
}

/* ── Wrapper ──────────────────────────────────── */
.wrapper {
  display: flex;
  min-height: 100vh;
}

/* ════════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════════ */
.sidebar {
  width: var(--nav-width);
  min-height: 100vh;
  background: var(--sidebar-bg) !important;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 1050;
  transition: width 0.25s cubic-bezier(.4,0,.2,1),
              transform 0.25s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  border-right: 1px solid rgba(255,255,255,0.04);
  box-shadow: 4px 0 24px rgba(0,0,0,0.12);
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.sidebar-content::-webkit-scrollbar { width: 4px; }
.sidebar-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Brand */
.sidebar-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none !important;
  flex-shrink: 0;
}

.sidebar-brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--action) 0%, #1a6fa8 100%);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(52,152,219,0.4);
}
.sidebar-brand-icon svg { width: 20px; height: 20px; color: white; stroke-width: 2; }

.sidebar-brand-info { overflow: hidden; }

.sidebar-brand-name {
  font-size: 15px;
  font-weight: 800;
  color: white;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.sidebar-brand-sub {
  font-size: 10.5px;
  color: rgba(255,255,255,0.38);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
  margin-top: 1px;
}

/* Nav items */
.sidebar-nav {
  list-style: none;
  padding: 10px 0;
  margin: 0;
  flex: 1;
}

.sidebar-header {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  padding: 18px 20px 5px;
}

.sidebar-item { margin: 1px 10px; }

.sidebar-link {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--sidebar-text) !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.07) !important;
  color: var(--sidebar-text-hov) !important;
}

.sidebar-item.active > .sidebar-link,
.sidebar-link.active {
  background: var(--action) !important;
  color: white !important;
  box-shadow: 0 3px 10px rgba(52,152,219,0.35);
}

.sidebar-item.active > .sidebar-link [data-feather],
.sidebar-item.active > .sidebar-link svg { opacity: 1 !important; }

.sidebar-link [data-feather],
.sidebar-link svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.15s;
  stroke-width: 2.2;
}

.sidebar-link:hover [data-feather],
.sidebar-link:hover svg { opacity: 1; }

/* Accordion sub-menu */
.sidebar-item > ul.collapse,
.sidebar-item > ul.collapsing {
  list-style: none;
  padding: 3px 0 3px 12px;
  margin: 0;
}
.sidebar-item > ul .sidebar-item { margin: 1px 0; }
.sidebar-item > ul .sidebar-link {
  font-size: 12.5px;
  padding: 7px 14px;
  color: rgba(203,213,225,0.65) !important;
}
.sidebar-item > ul .sidebar-link:hover { color: white !important; }

/* Chevron for accordion */
.sidebar-link .chevron {
  margin-left: auto;
  width: 14px; height: 14px;
  opacity: 0.5;
  transition: transform 0.2s;
}
.sidebar-link[aria-expanded="true"] .chevron { transform: rotate(180deg); }

/* Footer */
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(52,152,219,0.15);
  color: #74B9E8;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.sidebar-admin-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ════════════════════════════════════════════════
   MAIN AREA
════════════════════════════════════════════════ */
.main {
  flex: 1;
  margin-left: var(--nav-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.25s cubic-bezier(.4,0,.2,1);
}

/* ════════════════════════════════════════════════
   TOP NAVBAR
════════════════════════════════════════════════ */
.navbar,
nav.navbar {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 0 28px !important;
  height: 64px;
  display: flex !important;
  align-items: center;
  box-shadow: 0 1px 0 var(--border), 0 2px 8px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 900;
  flex-wrap: nowrap !important;
}

.navbar-expand .navbar-collapse { display: flex !important; flex: 1; }

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  color: var(--text-sub);
  flex-shrink: 0;
  margin-right: 12px;
  border: none;
  background: none;
}
.sidebar-toggle:hover { background: var(--bg); color: var(--primary); }

.hamburger {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.hamburger::before, .hamburger::after {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: absolute;
}
.hamburger::before { top: -5px; }
.hamburger::after  { top: 5px; width: 13px; }

/* Server time chip */
.server-time-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-sub);
  white-space: nowrap;
}
.server-time-chip strong { color: var(--primary); font-weight: 700; }
.server-time-chip .dot {
  width: 7px; height: 7px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(39,174,96,0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(39,174,96,0.25); }
  50%      { box-shadow: 0 0 0 4px rgba(39,174,96,0.12); }
}

/* User button */
.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 5px;
  border-radius: 40px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none !important;
  color: var(--text-main) !important;
}
.user-dropdown-btn:hover {
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.user-avatar-wrap {
  width: 34px; height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--action), #1a6fa8);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.user-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar-initials { color: white; font-size: 12px; font-weight: 700; }

.user-info { text-align: left; }
.user-info-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1.3;
}
.user-info-role {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  display: block;
}

.user-caret {
  width: 14px; height: 14px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.user-dropdown-btn.open .user-caret { transform: rotate(180deg); }

/* Custom vanilla-JS dropdown menu */
.user-dd-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 9999;
  animation: ddFadeIn 0.15s ease;
}
.user-dd-menu.open { display: block; }

@keyframes ddFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.user-dd-menu .dropdown-header {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 8px 8px;
}
.user-dd-menu .dropdown-item {
  border-radius: var(--radius-xs) !important;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px !important;
  color: var(--text-main) !important;
  transition: background 0.12s;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.user-dd-menu .dropdown-item:hover { background: var(--bg) !important; }
.user-dd-menu .dropdown-item.active-filial { color: var(--action) !important; font-weight: 700; }
.user-dd-menu .dropdown-item.logout-item { color: var(--danger) !important; }
.user-dd-menu .dropdown-item.logout-item:hover { background: var(--danger-light) !important; }
.user-dd-menu .dropdown-divider { margin: 6px 0; border-top: 1px solid var(--border); }

/* ════════════════════════════════════════════════
   PAGE CONTENT
════════════════════════════════════════════════ */
.content-wrapper {
  flex: 1;
  padding: 28px 28px 48px;
}

.content {
  flex: 1;
  padding: 24px 28px 48px;
}

/* Section header */
.content-header { padding: 0 0 20px; }
.content-header h1 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  letter-spacing: -0.4px;
}

/* ════════════════════════════════════════════════
   STAT CARDS (KPI Dashboard)
════════════════════════════════════════════════ */
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
  height: 100%;
}
.kpi-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.kpi-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kpi-icon svg, .kpi-icon [data-feather] { width: 22px; height: 22px; stroke-width: 2; }

.kpi-icon-blue   { background: var(--action-light);  color: var(--action); }
.kpi-icon-green  { background: var(--success-light); color: var(--success); }
.kpi-icon-red    { background: var(--danger-light);  color: var(--danger); }
.kpi-icon-navy   { background: rgba(44,62,80,0.08);  color: var(--primary); }
.kpi-icon-orange { background: var(--warning-light); color: var(--warning); }

.kpi-body { flex: 1; }
.kpi-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1;
}
.kpi-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.kpi-trend {
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.kpi-trend.up   { color: var(--success); }
.kpi-trend.down { color: var(--danger); }

/* ════════════════════════════════════════════════
   CARDS
════════════════════════════════════════════════ */
.card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-xs) !important;
}

.card-header {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
  padding: 16px 20px !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  font-weight: 700 !important;
  font-size: 14px;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-body { padding: 20px !important; }

.card-footer {
  background: #FAFBFC !important;
  border-top: 1px solid var(--border) !important;
  padding: 10px 20px !important;
  border-radius: 0 0 var(--radius) var(--radius) !important;
  font-size: 12.5px;
}

/* ════════════════════════════════════════════════
   TABLES
════════════════════════════════════════════════ */
.table {
  font-size: 13.5px;
  color: var(--text-main) !important;
  margin-bottom: 0 !important;
}

.table thead th {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted) !important;
  background: #F8FAFC !important;
  border-bottom: 1px solid var(--border) !important;
  border-top: none !important;
  padding: 13px 16px !important;
  white-space: nowrap;
}

.table tbody td {
  padding: 13px 16px !important;
  vertical-align: middle;
  border-color: var(--border-light) !important;
  border-bottom: 1px solid var(--border-light) !important;
  border-top: none !important;
}

.table tbody tr:last-child td { border-bottom: none !important; }
.table-hover tbody tr { transition: background 0.1s; }
.table-hover tbody tr:hover { background: #F0F7FF !important; }
.table-light { --bs-table-bg: #F8FAFC !important; }

/* ════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════ */
.btn {
  font-family: 'Inter', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 18px !important;
  transition: all 0.15s !important;
  letter-spacing: 0.1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-sm { padding: 5px 12px !important; font-size: 12.5px !important; }
.btn-xs { padding: 3px 9px !important; font-size: 11.5px !important; }

.btn-primary {
  background: var(--action) !important;
  border-color: var(--action) !important;
  color: white !important;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--action-hover) !important;
  border-color: var(--action-hover) !important;
  box-shadow: 0 4px 14px rgba(52,152,219,0.4) !important;
  transform: translateY(-1px);
}

.btn-outline-primary {
  border-color: var(--action) !important;
  color: var(--action) !important;
  background: transparent !important;
}
.btn-outline-primary:hover {
  background: var(--action) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(52,152,219,0.25) !important;
}

.btn-outline-danger {
  border-color: var(--danger) !important;
  color: var(--danger) !important;
  background: transparent !important;
}
.btn-outline-danger:hover {
  background: var(--danger) !important;
  color: white !important;
}

.btn-outline-secondary {
  border-color: var(--border) !important;
  color: var(--text-sub) !important;
  background: var(--surface) !important;
}
.btn-outline-secondary:hover {
  background: var(--bg) !important;
  color: var(--primary) !important;
  border-color: #CBD5E1 !important;
}

.btn-success {
  background: var(--success) !important;
  border-color: var(--success) !important;
  color: white !important;
}

.btn-danger {
  background: var(--danger) !important;
  border-color: var(--danger) !important;
  color: white !important;
}

/* ════════════════════════════════════════════════
   FORMS
════════════════════════════════════════════════ */
.form-control,
.form-select {
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid var(--border) !important;
  font-size: 13.5px !important;
  font-family: 'Inter', sans-serif !important;
  padding: 9px 13px !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
  background: var(--surface) !important;
  color: var(--text-main) !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--action) !important;
  box-shadow: 0 0 0 3px rgba(52,152,219,0.14) !important;
  outline: none !important;
}
.form-control-sm { padding: 6px 10px !important; font-size: 12.5px !important; }

.form-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  letter-spacing: 0.1px;
}

.form-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.form-check-input {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border) !important;
  border-radius: 4px !important;
  cursor: pointer;
  transition: all 0.15s;
}
.form-check-input:checked {
  background-color: var(--action) !important;
  border-color: var(--action) !important;
}
.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(52,152,219,0.2) !important;
}

/* ════════════════════════════════════════════════
   BADGES
════════════════════════════════════════════════ */
.badge {
  font-family: 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  letter-spacing: 0.2px;
}

.badge.bg-primary,
.bg-primary { background: var(--action) !important; color: white !important; }
.badge.bg-success,
.bg-success { background: var(--success) !important; color: white !important; }
.badge.bg-danger,
.bg-danger  { background: var(--danger) !important;  color: white !important; }
.badge.bg-warning { background: var(--warning) !important; color: white !important; }

.bg-primary-subtle { background: var(--action-light) !important; }
.bg-success-subtle { background: var(--success-light) !important; }
.bg-danger-subtle  { background: var(--danger-light)  !important; }
.bg-secondary-subtle { background: rgba(148,163,184,0.12) !important; }

.text-primary { color: var(--action) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-sub) !important; }

/* Schedule day badge */
.badge-day {
  display: inline-block;
  background: var(--action-light) !important;
  color: var(--action) !important;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  margin: 2px;
}
.loc-badge { font-size: 12px; color: var(--text-muted); }

/* ════════════════════════════════════════════════
   PROGRESS BARS
════════════════════════════════════════════════ */
.progress {
  height: 7px !important;
  border-radius: 10px !important;
  background: var(--border) !important;
  overflow: hidden;
}
.progress-bar {
  border-radius: 10px !important;
  transition: width 0.9s ease !important;
}
.progress-bar.bg-success { background: var(--success) !important; }
.progress-bar.bg-danger  { background: var(--danger) !important; }
.progress-bar.bg-primary { background: var(--action) !important; }

/* ════════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════════ */
.pagination { gap: 4px !important; }

.page-link {
  border-radius: var(--radius-sm) !important;
  border: 1px solid var(--border) !important;
  color: var(--text-sub) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 6px 13px !important;
  transition: all 0.15s !important;
  background: var(--surface) !important;
}
.page-link:hover {
  background: var(--action) !important;
  color: white !important;
  border-color: var(--action) !important;
  box-shadow: 0 3px 8px rgba(52,152,219,0.25) !important;
}
.page-item.active .page-link {
  background: var(--action) !important;
  border-color: var(--action) !important;
  color: white !important;
}
.page-item.disabled .page-link {
  color: var(--text-muted) !important;
  background: var(--bg) !important;
}

/* ════════════════════════════════════════════════
   LIST GROUPS
════════════════════════════════════════════════ */
.list-group-item {
  border-color: var(--border-light) !important;
  padding: 11px 18px !important;
  font-size: 13.5px;
  color: var(--text-main);
}
.list-group-flush .list-group-item:first-child { border-top: none !important; }

/* ════════════════════════════════════════════════
   EMPLOYEE ROW
════════════════════════════════════════════════ */
.emp-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.emp-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.emp-avatar-placeholder {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--action) 0%, #1a6fa8 100%);
  color: white;
  font-size: 12px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.emp-name { font-weight: 700; font-size: 13.5px; color: var(--primary); }
.emp-id   { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }

/* ════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════ */
.footer {
  background: var(--surface) !important;
  border-top: 1px solid var(--border) !important;
  padding: 14px 28px !important;
  font-size: 12px !important;
  color: var(--text-muted) !important;
}

/* ════════════════════════════════════════════════
   SEARCH / FILTER BAR
════════════════════════════════════════════════ */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-bar .form-control { max-width: 320px; }

/* ════════════════════════════════════════════════
   PAGE HEADER BLOCK
════════════════════════════════════════════════ */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.page-header h4, .page-header h1 {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  margin: 0 !important;
  letter-spacing: -0.3px;
}
.page-header .breadcrumb-info {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ════════════════════════════════════════════════
   ALERTS
════════════════════════════════════════════════ */
.alert {
  border-radius: var(--radius-sm) !important;
  border: none !important;
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 16px !important;
}
.alert-success { background: var(--success-light) !important; color: #166534 !important; }
.alert-danger  { background: var(--danger-light)  !important; color: #991B1B !important; }
.alert-warning { background: var(--warning-light) !important; color: #92400E !important; }

/* ════════════════════════════════════════════════
   DELETE CONFIRM PAGE
════════════════════════════════════════════════ */
.danger-card {
  background: #FFF5F5;
  border: 1.5px solid #FECACA;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.danger-icon {
  width: 64px; height: 64px;
  background: var(--danger-light);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--danger);
}
.danger-icon svg { width: 28px; height: 28px; }

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0,0,0,0.25);
  }
  .main { margin-left: 0 !important; }
  .content-wrapper { padding: 20px 16px 40px; }
}

@media (max-width: 576px) {
  .page-header { flex-direction: column; align-items: flex-start; }
  .filter-bar .form-control { max-width: 100%; }
}

/* ════════════════════════════════════════════════
   UTILITY OVERRIDES
════════════════════════════════════════════════ */
[data-feather] { width: 16px !important; height: 16px !important; vertical-align: middle; stroke-width: 2 !important; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif !important;
  color: var(--primary);
  font-weight: 700;
}

a { color: var(--action); transition: color 0.15s; }
a:hover { color: var(--action-hover); text-decoration: none; }

.fw-semibold { font-weight: 600 !important; }
.fw-bold     { font-weight: 700 !important; }

.rounded-circle { border-radius: 50% !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.border-0  { border: none !important; }
.gap-2 { gap: 8px !important; }

.input-group .btn {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
  padding: 9px 16px !important;
}
.input-group .form-control { border-right: none !important; }

.table-responsive {
  border-radius: 0 0 var(--radius) var(--radius);
  overflow-x: auto;
}

/* Day-row active state in schedule forms */
.day-row { transition: background 0.15s; cursor: default; }
.day-row.active, .day-row:has(input[type=checkbox]:checked) {
  background: #F0FBF4 !important;
}
.day-toggle { cursor: pointer; user-select: none; }

/* Login page overrides (full screen) */
body.login-page {
  background: linear-gradient(135deg, var(--primary) 0%, #1a252f 50%, #0f1923 100%) !important;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content-header for section pages */
section.content-header .container-fluid { padding: 0 0 24px; }
section.content { padding: 0; }
section.content .container-fluid { padding: 0; }
