/* ============================================================
   HR.com.tr – Modern Dashboard CSS
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --primary:        #4f46e5;
  --primary-dark:   #3730a3;
  --primary-light:  #818cf8;
  --secondary:      #7c3aed;
  --success:        #059669;
  --warning:        #d97706;
  --danger:         #dc2626;
  --info:           #0284c7;
  --purple:         #7c3aed;

  --sidebar-bg:     #1e293b;
  --sidebar-text:   #94a3b8;
  --sidebar-active: #4f46e5;
  --sidebar-w:      260px;
  --topbar-h:       64px;

  --body-bg:        #f1f5f9;
  --card-bg:        #ffffff;
  --text-primary:   #1e293b;
  --text-secondary: #64748b;
  --border:         #e2e8f0;
  --shadow:         0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.06);
  --radius:         10px;
  --radius-sm:      6px;
  --transition:     .2s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  background: var(--body-bg);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
img { max-width: 100%; }

/* ── Layout ─────────────────────────────────────────────────── */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left var(--transition);
}
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--topbar-h);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  box-shadow: var(--shadow);
}
.page-content { padding: 24px; flex: 1; }

/* ── Sidebar Brand ──────────────────────────────────────────── */
.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #334155;
}
.brand-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px;
  flex-shrink: 0;
}
.brand-name { font-size: 15px; font-weight: 700; color: #f1f5f9; display: block; }
.brand-sub  { font-size: 11px; color: var(--sidebar-text); }

/* ── Sidebar Nav ────────────────────────────────────────────── */
.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  color: var(--sidebar-text);
  font-size: 13.5px; font-weight: 500;
  transition: all var(--transition);
  border-radius: 0;
  white-space: nowrap;
  position: relative;
}
.nav-item i { width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.nav-item:hover { color: #f1f5f9; background: rgba(255,255,255,.06); }
.nav-item.active {
  color: white; background: var(--primary);
  font-weight: 600;
}
.nav-item.active::before {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0;
  width: 3px; background: white;
  border-radius: 2px 0 0 2px;
}

/* ── Sidebar Footer ─────────────────────────────────────────── */
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid #334155;
}
.sidebar-user { display: flex; align-items: center; gap: 10px; }
.sidebar-user-info { flex: 1; overflow: hidden; }
.sidebar-user-info span { display: block; font-size: 13px; font-weight: 600; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout-link { font-size: 12px; color: var(--sidebar-text); }
.logout-link:hover { color: #f87171; }
.logout-link i { margin-right: 4px; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; }

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-right { display: flex; align-items: center; gap: 12px; position: relative; }
.sidebar-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); font-size: 18px;
  padding: 6px; border-radius: var(--radius-sm);
  transition: background var(--transition);
  display: none;
}
.sidebar-toggle:hover { background: var(--body-bg); }

.topbar-user {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  user-select: none;
}
.topbar-user:hover { background: var(--body-bg); }
.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.user-role { font-size: 11px; color: var(--text-secondary); }

.user-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  min-width: 180px; z-index: 200;
  overflow: hidden;
}
.user-dropdown.show { display: block; }
.user-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; color: var(--text-primary);
  font-size: 13px; transition: background var(--transition);
}
.user-dropdown a:hover { background: var(--body-bg); }
.user-dropdown a i { width: 16px; color: var(--text-secondary); }
.user-dropdown a.text-danger { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb-item { font-size: 13px; color: var(--text-secondary); }
.breadcrumb-item a { color: var(--text-secondary); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; margin-right: 6px; color: var(--border); }
.breadcrumb-item.active { color: var(--text-primary); font-weight: 500; }

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px;
}
.page-title { font-size: 22px; font-weight: 700; color: var(--text-primary); }
.page-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
}
.card-title { font-size: 14px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; }
.card-title i { margin-right: 8px; }
.card-body { padding: 18px; }

/* ── Stat Cards ─────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent, var(--primary));
  box-shadow: var(--shadow);
  padding: 18px 16px;
  display: flex; align-items: center; gap: 14px;
  position: relative;
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.stat-info { flex: 1; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--text-primary); display: block; line-height: 1.2; }
.stat-label { font-size: 12px; color: var(--text-secondary); display: block; margin-top: 2px; }
.stat-link {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--body-bg); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; transition: all var(--transition);
}
.stat-link:hover { background: var(--primary); color: white; }
.stat-progress { width: 100%; }

/* ── Grids ───────────────────────────────────────────────────── */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap; text-decoration: none;
  line-height: 1.4;
}
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-xs { padding: 3px 7px; font-size: 11px; }
.btn-lg { padding: 10px 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }
.btn-success { background: var(--success); color: white; border-color: var(--success); }
.btn-success:hover { background: #047857; color: white; }
.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; color: white; }
.btn-warning { background: var(--warning); color: white; border-color: var(--warning); }
.btn-outline-primary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: white; }
.btn-outline-secondary { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn-outline-secondary:hover { background: var(--body-bg); color: var(--text-primary); }
.btn-outline-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger); color: white; }
.btn-outline-success { background: transparent; color: var(--success); border-color: var(--success); }
.btn-outline-success:hover { background: var(--success); color: white; }
.btn-outline-warning { background: transparent; color: var(--warning); border-color: var(--warning); }
.btn-outline-warning:hover { background: var(--warning); color: white; }
.btn-group { display: flex; gap: 4px; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.form-label.required::after { content: ' *'; color: var(--danger); }
.form-control {
  width: 100%; padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-primary);
  background: var(--card-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.form-control::placeholder { color: #94a3b8; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; }

.input-icon { position: relative; }
.input-icon > i:first-child {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: var(--text-secondary); font-size: 13px; pointer-events: none;
}
.input-icon .form-control { padding-left: 34px; }
.input-icon-right {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-secondary); padding: 0;
}

.filter-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-row .flex-1 { flex: 1; min-width: 200px; }

.range-group { display: flex; align-items: center; gap: 12px; }
.score-range { flex: 1; accent-color: var(--primary); }
.range-val {
  min-width: 30px; text-align: center; font-weight: 700;
  color: var(--primary); font-size: 15px;
}

/* ── Tables ──────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  padding: 11px 14px; font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-secondary);
  background: #f8fafc; border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: #fafbff; }
.table tbody tr:last-child td { border-bottom: none; }
.table-sm th, .table-sm td { padding: 7px 12px; }
.table-summary td { background: #f8fafc; padding: 10px 14px; border-top: 2px solid var(--border); }
.text-end { text-align: right !important; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-primary   { background: rgba(79,70,229,.12); color: #4f46e5; }
.badge-success   { background: rgba(5,150,105,.12);  color: #059669; }
.badge-danger    { background: rgba(220,38,38,.12);  color: #dc2626; }
.badge-warning   { background: rgba(217,119,6,.12);  color: #d97706; }
.badge-info      { background: rgba(2,132,199,.12);  color: #0284c7; }
.badge-secondary { background: rgba(100,116,139,.12);color: #64748b; }
.badge-purple    { background: rgba(124,58,237,.12); color: #7c3aed; }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 13.5px; position: relative;
  margin-bottom: 16px;
}
.alert i { flex-shrink: 0; margin-top: 2px; }
.alert-success { background: rgba(5,150,105,.1); color: #065f46; border: 1px solid rgba(5,150,105,.2); }
.alert-error   { background: rgba(220,38,38,.08); color: #991b1b; border: 1px solid rgba(220,38,38,.2); }
.alert-warning { background: rgba(217,119,6,.1);  color: #92400e; border: 1px solid rgba(217,119,6,.2); }
.alert-info    { background: rgba(2,132,199,.08); color: #075985; border: 1px solid rgba(2,132,199,.2); }
.alert-close {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 18px; color: currentColor; opacity: .6; flex-shrink: 0;
}
.alert-dismissible { padding-right: 36px; }

/* ── Avatar ──────────────────────────────────────────────────── */
.avatar-sm {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.avatar-lg {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}

/* ── Progress Bars ───────────────────────────────────────────── */
.progress-bar-wrap {
  width: 100%; height: 6px;
  background: var(--border); border-radius: 3px;
  overflow: hidden;
}
.progress-bar {
  height: 100%; border-radius: 3px;
  transition: width .5s ease;
}

/* ── Score cells ─────────────────────────────────────────────── */
.score-cell { display: flex; flex-direction: column; gap: 3px; }
.score-bar {
  height: 4px; background: var(--border); border-radius: 2px; overflow: hidden;
  position: relative;
}
.score-bar::after {
  content: ''; position: absolute; left: 0; top: 0;
  width: var(--w, 0%); height: 100%;
  background: var(--c, var(--primary));
  transition: width .5s;
}

/* ── Dashboard Components ────────────────────────────────────── */
.perf-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.perf-row:last-child { border-bottom: none; }
.perf-info { flex: 1; }
.perf-info span { font-size: 13px; font-weight: 500; display: block; }
.perf-score { font-size: 13px; font-weight: 700; color: var(--text-secondary); white-space: nowrap; }

.announcement-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.announcement-item:last-child { border-bottom: none; }
.ann-icon { color: var(--primary); font-size: 16px; margin-top: 2px; flex-shrink: 0; }
.ann-body strong { display: block; font-size: 13px; font-weight: 600; }
.ann-body p { font-size: 12.5px; color: var(--text-secondary); margin: 3px 0; }

.info-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow);
}
.info-card i { font-size: 20px; flex-shrink: 0; }
.info-card div { display: flex; flex-direction: column; gap: 2px; }
.info-card small { font-size: 11px; color: var(--text-secondary); }
.info-card strong { font-size: 14px; font-weight: 600; }

/* ── Detail Grid ─────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-item { display: flex; flex-direction: column; gap: 3px; }
.detail-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); font-weight: 600; }

/* ── Leave Balance ───────────────────────────────────────────── */
.leave-balance-item { margin-bottom: 14px; }
.leave-balance-item:last-child { margin-bottom: 0; }

.leave-type-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--border);
}
.leave-type-row:last-child { border-bottom: none; }
.leave-type-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* ── Pipeline / ATS ─────────────────────────────────────────── */
.pipeline { display: flex; gap: 8px; flex-wrap: wrap; }
.pipeline-stage {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--card-bg); border: 1.5px solid var(--border);
  color: var(--text-secondary); transition: all var(--transition);
  font-size: 13px;
}
.pipeline-stage:hover, .pipeline-stage.active {
  border-color: var(--primary); color: var(--primary);
}
.pipeline-count {
  min-width: 22px; height: 22px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

/* ── Progress Steps ──────────────────────────────────────────── */
.progress-steps {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.progress-step {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-secondary);
}
.progress-step.done .step-circle { background: var(--success); color: white; }
.progress-step.current .step-circle { background: var(--primary); color: white; box-shadow: 0 0 0 4px rgba(79,70,229,.2); }
.step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--border); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.step-line { width: 60px; height: 2px; background: var(--border); margin: 0 4px; margin-bottom: 20px; }
.step-line.done { background: var(--success); }

/* ── Goals Grid ─────────────────────────────────────────────── */
.goals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.goal-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  border-left: 4px solid var(--border);
  box-shadow: var(--shadow);
}
.goal-card.priority-high   { border-left-color: var(--danger); }
.goal-card.priority-medium { border-left-color: var(--warning); }
.goal-card.priority-low    { border-left-color: var(--success); }
.goal-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.goal-card-header h4 { font-size: 14px; font-weight: 600; line-height: 1.3; }
.goal-card-header small { font-size: 12px; color: var(--text-secondary); }
.goal-desc { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.4; }
.goal-progress { margin-bottom: 10px; }
.goal-footer { display: flex; align-items: center; justify-content: space-between; }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-box {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,.15); width: 100%; max-width: 500px;
  max-height: 90vh; overflow-y: auto;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 15px; font-weight: 700; }
.modal-header button { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-secondary); line-height: 1; }
.modal-body { padding: 20px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--border); }

/* ── Chart ───────────────────────────────────────────────────── */
.chart-container { position: relative; }

/* ── Salary Slip ─────────────────────────────────────────────── */
.salary-slip {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  box-shadow: var(--shadow-md);
}
.slip-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.slip-company { display: flex; gap: 14px; align-items: flex-start; }
.slip-logo {
  width: 48px; height: 48px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: white; font-size: 22px; flex-shrink: 0;
}
.slip-company h2 { font-size: 18px; font-weight: 800; color: var(--text-primary); }
.slip-company p { font-size: 12px; color: var(--text-secondary); margin-top: 3px; }
.slip-title { text-align: right; }
.slip-title h3 { font-size: 20px; font-weight: 900; color: var(--text-primary); letter-spacing: .05em; }
.slip-title p { font-size: 14px; color: var(--text-secondary); }
.slip-divider { height: 2px; background: var(--border); margin: 20px 0; }
.slip-emp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.slip-emp-grid div small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); }
.slip-emp-grid div strong { display: block; font-size: 13px; color: var(--text-primary); }
.slip-body { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin: 20px 0; }
.slip-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); margin-bottom: 10px; }
.slip-table { width: 100%; }
.slip-table td { padding: 7px 0; font-size: 13px; border-bottom: 1px solid #f1f5f9; }
.slip-table .slip-subtotal td { font-weight: 700; border-top: 2px solid var(--border); border-bottom: none; padding-top: 8px; }
.slip-net {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--primary); color: white;
  border-radius: var(--radius-sm); margin: 20px 0;
}
.slip-net span { font-size: 14px; font-weight: 600; letter-spacing: .1em; }
.slip-net strong { font-size: 24px; font-weight: 900; }
.slip-notes { background: var(--body-bg); border-radius: var(--radius-sm); padding: 12px; margin: 16px 0; font-size: 12.5px; }
.slip-footer { display: flex; justify-content: space-between; margin-top: 40px; }
.slip-sign { text-align: center; }
.sign-line { width: 160px; height: 1px; background: var(--text-primary); margin-bottom: 8px; }
.slip-sign small { font-size: 11px; color: var(--text-secondary); }

/* ── Auth ────────────────────────────────────────────────────── */
.auth-body { background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-container { width: 100%; max-width: 460px; padding: 20px; }
.auth-card { background: white; border-radius: 16px; padding: 36px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-logo {
  width: 60px; height: 60px; background: var(--primary); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 28px; margin: 0 auto 12px;
}
.auth-brand h1 { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.auth-brand p { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-demo { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; }
.auth-demo p { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; }
.demo-accounts { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.demo-account {
  flex: 1; padding: 10px 8px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer; text-align: center;
  transition: all var(--transition);
}
.demo-account:hover { border-color: var(--primary); background: rgba(79,70,229,.04); }
.demo-account i { display: block; font-size: 18px; color: var(--primary); margin-bottom: 4px; }
.demo-account span { display: block; font-size: 12px; font-weight: 600; }
.demo-account small { display: block; font-size: 10px; color: var(--text-secondary); }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-secondary); }
.empty-state i { font-size: 48px; opacity: .25; margin-bottom: 14px; display: block; }
.empty-state p { font-size: 14px; margin-bottom: 16px; }

/* ── Misc helpers ────────────────────────────────────────────── */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 20px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 20px; }
.me-1 { margin-right: 4px; }
.me-2 { margin-right: 8px; }
.ms-1 { margin-left: 4px; }
.ms-2 { margin-left: 8px; }
.p-0  { padding: 0; }
.p-3  { padding: 12px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.d-flex { display: flex; }
.d-none { display: none !important; }
.d-inline { display: inline; }
.d-block { display: block; }
.d-md-block { display: block; }
.flex-1 { flex: 1; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.align-items-center { align-items: center; }
.align-items-start  { align-items: flex-start; }
.justify-content-between { justify-content: space-between; }
.justify-content-center  { justify-content: center; }
.justify-content-end     { justify-content: flex-end; }
.text-center   { text-align: center; }
.text-muted    { color: var(--text-secondary) !important; }
.text-primary  { color: var(--primary) !important; }
.text-success  { color: var(--success) !important; }
.text-danger   { color: var(--danger) !important; }
.text-warning  { color: var(--warning) !important; }
.fw-medium { font-weight: 500; }
.fw-bold   { font-weight: 700; }
.small     { font-size: 12px; }
.border-top    { border-top: 1px solid var(--border) !important; }
.border-bottom { border-bottom: 1px solid var(--border) !important; }
.bg-light { background: var(--body-bg); }
.color-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.rank-badge {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
code { background: var(--body-bg); padding: 2px 6px; border-radius: 4px; font-size: 12px; color: var(--primary); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-2-col  { grid-template-columns: 1fr; }
  .grid-3-col  { grid-template-columns: 1fr 1fr; }
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
  .slip-body   { grid-template-columns: 1fr; }
  .slip-emp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.show { display: block; }
  .sidebar-toggle { display: flex; }
  .main-wrapper { margin-left: 0; }
  .grid-3-col  { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 14px; }
  .topbar { padding: 0 14px; }
  .d-md-block { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .demo-accounts { flex-direction: column; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .goals-grid { grid-template-columns: 1fr; }
  .pipeline   { gap: 6px; }
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  .salary-slip { box-shadow: none; border: none; padding: 0; }
  .slip-net { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
