/* ============================================================
   ROCI GROUP HR  —  Design System (Personio-inspired)
   ============================================================ */

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --primary:        #2563EB;
  --primary-hover:  #1D55D4;
  --primary-active: #1648B8;
  --primary-soft:   #EFF4FF;
  --primary-text:   #1D55D4;

  --sidebar-w: 242px;
  --topbar-h:  60px;

  --bg:        #F3F5FB;
  --surface:   #FFFFFF;
  --surface-2: #F8FAFE;
  --surface-3: #F1F4FB;

  --border:    #E2E8F2;
  --border-2:  #C8D3E8;

  --text:   #18243A;
  --text-2: #4A5675;
  --text-3: #7C8DB5;
  --text-4: #B0BDD4;

  --sb-bg:        #1A2636;
  --sb-hover:     rgba(255,255,255,.055);
  --sb-active-bg: rgba(255,255,255,.10);
  --sb-border:    rgba(255,255,255,.07);
  --sb-text:      rgba(255,255,255,.55);
  --sb-text-ac:   #FFFFFF;
  --sb-section:   rgba(255,255,255,.25);
  --sb-accent:    #3B82F6;

  --success:      #16A34A;
  --success-soft: #DCFCE7;
  --success-text: #14532D;
  --warning:      #D97706;
  --warning-soft: #FEF3C7;
  --warning-text: #78350F;
  --danger:       #DC2626;
  --danger-soft:  #FEE2E2;
  --danger-text:  #7F1D1D;
  --info:         #2563EB;
  --info-soft:    #DBEAFE;
  --info-text:    #1E3A8A;
  --neutral-soft: #F3F4F6;
  --neutral-text: #374151;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 2px 8px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.16);

  --r-xs: 3px;
  --r-sm: 5px;
  --r:    8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 16px;
}

/* ── App Shell ────────────────────────────────────────────── */
.app-shell { display: flex; height: 100vh; overflow: hidden; }

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  background: var(--sb-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 50;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--sb-border);
  flex-shrink: 0;
}
.sidebar-brand-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.sidebar-brand-name { font-size: .8rem; font-weight: 700; color: #fff; letter-spacing: .03em; }
.sidebar-brand-sub  { font-size: .68rem; color: var(--sb-text); margin-top: 1px; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.sidebar-section {
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--sb-section);
  padding: 14px 18px 5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  margin: 1px 8px;
  border-radius: var(--r-sm);
  font-size: .82rem;
  font-weight: 500;
  color: var(--sb-text);
  cursor: pointer;
  transition: background .15s, color .15s;
  position: relative;
  user-select: none;
  white-space: nowrap;
}
.nav-item svg { flex-shrink: 0; opacity: .7; transition: opacity .15s; }
.nav-item:hover { background: var(--sb-hover); color: var(--sb-text-ac); }
.nav-item:hover svg { opacity: 1; }
.nav-item.active { background: var(--sb-active-bg); color: var(--sb-text-ac); }
.nav-item.active svg { opacity: 1; }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%) translateX(-8px);
  width: 3px; height: 60%;
  background: var(--sb-accent);
  border-radius: 0 2px 2px 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 99px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  border-top: 1px solid var(--sb-border);
  padding: 12px;
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
}
.sidebar-avatar {
  width: 32px; height: 32px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name  { font-size: .8rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role  { font-size: .68rem; color: var(--sb-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-logout {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sb-text);
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.sidebar-logout:hover { background: rgba(255,255,255,.08); color: var(--sb-text-ac); }

/* ── Main ─────────────────────────────────────────────────── */
.main { flex: 1; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  min-height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  gap: 16px;
  flex-shrink: 0;
}
.topbar-title { font-size: 1rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.topbar-sub   { font-size: .78rem; color: var(--text-3); }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Pages ────────────────────────────────────────────────── */
.page { display: none; flex: 1; overflow-y: auto; overflow-x: hidden; height: 100%; flex-direction: column; }
.page.active { display: flex; }
.page-body { padding: 24px 28px; flex: 1; }

/* ── Grid ─────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.card + .card { margin-top: 16px; }

.card-header {
  padding: 15px 20px 13px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-2);
}
.card-header h3 { font-size: .875rem; font-weight: 700; color: var(--text); }
.card-header-sub { font-size: .75rem; color: var(--text-3); }
.card-body { padding: 20px; }

/* ── Stat Cards ───────────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s, transform .2s;
}
.stat-card:hover { box-shadow: var(--shadow-sm); }
.stat-icon {
  width: 42px; height: 42px;
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon.blue   { background: var(--info-soft);    color: var(--info);    }
.stat-icon.green  { background: var(--success-soft); color: var(--success); }
.stat-icon.amber  { background: var(--warning-soft); color: var(--warning); }
.stat-icon.red    { background: var(--danger-soft);  color: var(--danger);  }
.stat-icon.indigo { background: #EDE9FE; color: #7C3AED; }
.stat-icon.rose   { background: #FFE4E6; color: #E11D48; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.stat-label { font-size: .73rem; color: var(--text-3); margin-top: 2px; font-weight: 500; }

/* ── Tables ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.table-wrap thead th {
  padding: 0 16px;
  height: 36px;
  text-align: left;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .045em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table-wrap tbody tr { border-bottom: 1px solid var(--border); transition: background .1s; }
.table-wrap tbody tr:last-child { border-bottom: none; }
.table-wrap tbody tr:hover { background: #F7F9FF; }
.table-wrap td { padding: 0 16px; height: 52px; vertical-align: middle; color: var(--text-2); }

.user-cell { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-text);
  display: flex; align-items: center; justify-content: center;
  font-size: .74rem; font-weight: 700;
  flex-shrink: 0;
}
.cell-name { font-weight: 600; color: var(--text); font-size: .82rem; }
.cell-sub  { font-size: .71rem; color: var(--text-3); margin-top: 1px; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  height: 34px;
  border-radius: var(--r-sm);
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s, box-shadow .15s, border-color .15s, color .15s;
  border: 1px solid transparent;
  line-height: 1;
  flex-shrink: 0;
}
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn-primary   { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

.btn-ghost     { background: transparent; color: var(--text-2); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }

.btn-danger    { background: var(--danger-soft); color: var(--danger-text); border-color: transparent; }
.btn-danger:hover { background: #FECACA; }

.btn-danger-solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger-solid:hover { background: #B91C1C; }

.btn-success   { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #15803D; }

.btn-soft      { background: var(--primary-soft); color: var(--primary-text); border-color: transparent; }
.btn-soft:hover { background: #DBEAFE; }

.btn-soft-primary { background: var(--primary-soft); color: var(--primary-text); border-color: transparent; }
.btn-soft-primary:hover { background: #DBEAFE; }

.btn-sm   { height: 28px; padding: 0 10px; font-size: .74rem; }
.btn-lg   { height: 42px; padding: 0 20px; font-size: .875rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 0; width: 34px; }
.btn-icon.btn-sm { width: 28px; }

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: .71rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-pending  { background: var(--warning-soft);  color: var(--warning-text); }
.badge-approved { background: var(--success-soft);  color: var(--success-text); }
.badge-rejected { background: var(--danger-soft);   color: var(--danger-text);  }
.badge-active   { background: var(--success-soft);  color: var(--success-text); }
.badge-inactive { background: var(--neutral-soft);  color: var(--neutral-text); }
.badge-info     { background: var(--info-soft);     color: var(--info-text);    }
.badge-neutral  { background: var(--neutral-soft);  color: var(--neutral-text); }

/* ── Forms ────────────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-size: .76rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: .01em;
}
.opt { font-weight: 400; color: var(--text-4); font-size: .71rem; }
.form-hint { font-size: .71rem; color: var(--text-3); margin-top: 2px; }

input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=number], input[type=date], input[type=month], input[type=url],
select, textarea {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  padding: 0 11px;
  height: 36px;
  color: var(--text);
  font-size: .82rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
input::placeholder, textarea::placeholder { color: var(--text-4); }
input:disabled, textarea:disabled, select:disabled {
  background: var(--surface-3);
  color: var(--text-3);
  cursor: not-allowed;
}
textarea {
  height: auto;
  padding: 9px 11px;
  resize: vertical;
  min-height: 76px;
  line-height: 1.5;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237C8DB5' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}

.input-wrap { position: relative; }
.input-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-4);
  display: flex;
  pointer-events: none;
}
.input-wrap input { padding-left: 34px; }

/* Password strength */
.password-strength { display: flex; gap: 5px; margin-top: 6px; }
.strength-bar {
  height: 3px; flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background .2s;
}
.strength-bar.weak   { background: var(--danger); }
.strength-bar.medium { background: var(--warning); }
.strength-bar.strong { background: var(--success); }

/* ── Alerts / Errors ──────────────────────────────────────── */
.auth-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--danger-soft);
  color: var(--danger-text);
  border-radius: var(--r-sm);
  padding: 9px 12px;
  font-size: .8rem;
  font-weight: 500;
}

/* ── Modals ───────────────────────────────────────────────── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14,20,32,.45);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: fadeIn .15s ease;
}
.overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: slideUp .2s ease;
}
.modal.modal-lg { max-width: 620px; }

.modal-hd {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}
.modal-hd h3 { font-size: .95rem; font-weight: 700; color: var(--text); }
.modal-hd-sub { font-size: .76rem; color: var(--text-3); margin-top: 2px; }
.modal-close {
  width: 30px; height: 30px;
  border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  transition: background .15s, color .15s;
  flex-shrink: 0;
  margin-top: -2px;
}
.modal-close:hover { background: var(--surface-3); color: var(--text); }

.modal-bd {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-ft {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  background: var(--surface-2);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

/* ── Invite box ───────────────────────────────────────────── */
.invite-box {
  background: var(--warning-soft);
  border: 1px solid #FDE68A;
  border-radius: var(--r-sm);
  padding: 12px 14px;
}
.invite-box h5 {
  display: flex; align-items: center; gap: 7px;
  font-size: .77rem; font-weight: 600;
  color: var(--warning-text);
  margin-bottom: 8px;
}
.invite-url { display: flex; gap: 6px; }
.invite-url input { background: #fff; border: 1px solid #FDE68A; font-size: .74rem; height: 30px; }

/* ── Toasts ───────────────────────────────────────────────── */
.toasts {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex; flex-direction: column;
  gap: 8px; z-index: 9999;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 16px;
  border-radius: var(--r-md);
  font-size: .82rem; font-weight: 500;
  color: #fff; background: var(--text);
  box-shadow: var(--shadow-lg);
  animation: slideLeft .2s ease, fadeOut .4s ease 3s forwards;
  pointer-events: auto; max-width: 360px;
}
.toast.ok   { background: var(--success); }
.toast.err  { background: var(--danger);  }
.toast.warn { background: var(--warning); }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 2px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 3px;
}
.tab {
  padding: 5px 14px;
  border-radius: var(--r-xs);
  font-size: .78rem; font-weight: 500;
  color: var(--text-3);
  transition: background .15s, color .15s;
}
.tab:hover { color: var(--text-2); }
.tab.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-xs); }

/* ── Period Nav ───────────────────────────────────────────── */
.period-nav { display: flex; align-items: center; gap: 10px; }
.period-nav h3 { font-size: .9rem; font-weight: 700; color: var(--text); min-width: 140px; text-align: center; }

/* ── Calendar ─────────────────────────────────────────────── */
.cal-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cal-nav h3 { flex: 1; font-size: .9rem; font-weight: 700; color: var(--text); text-align: center; }
.cal-grid-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-head {
  text-align: center;
  font-size: .67rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-3); padding: 8px 4px;
}
.cal-day {
  min-height: 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px;
  font-size: .74rem;
  transition: background .1s;
}
.cal-day:hover { background: var(--surface-2); }
.cal-day.other { background: var(--surface-3); opacity: .45; }
.cal-day.weekend { background: var(--surface-3); }
.cal-day.today { border-color: var(--primary); border-width: 2px; }
.cal-day-num { font-size: .74rem; font-weight: 700; color: var(--text-2); margin-bottom: 3px; }
.today .cal-day-num { color: var(--primary); }
.cal-event {
  font-size: .65rem; font-weight: 600;
  padding: 2px 5px; border-radius: 3px;
  margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}

/* ── Vacation ring ────────────────────────────────────────── */
.days-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  display: flex; align-items: center; gap: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}
.days-ring { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.days-ring svg { transform: rotate(-90deg); }
.days-ring-bg   { fill: none; stroke: var(--surface-3); stroke-width: 8; }
.days-ring-fill {
  fill: none; stroke: var(--primary);
  stroke-width: 8; stroke-linecap: round;
  transition: stroke-dashoffset .6s ease;
}
.days-ring-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.days-ring-num { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.days-ring-lbl { font-size: .64rem; color: var(--text-3); font-weight: 500; margin-top: 2px; }
.days-info h3  { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.days-info p   { font-size: .82rem; color: var(--text-2); margin-bottom: 3px; }
.days-info .hl { color: var(--primary); font-weight: 700; }

/* ── Salary banner ────────────────────────────────────────── */
.salary-banner {
  background: var(--sb-bg);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.salary-banner-icon {
  width: 50px; height: 50px;
  background: rgba(255,255,255,.10);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  flex-shrink: 0;
}
.salary-banner h3    { font-size: .73rem; font-weight: 600; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.salary-banner .amount { font-size: 1.7rem; font-weight: 800; color: #fff; line-height: 1.1; }
.salary-banner .sub  { font-size: .76rem; color: rgba(255,255,255,.4); margin-top: 3px; }

/* ── Vacation preview ─────────────────────────────────────── */
.req-preview {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary-soft);
  border: 1px solid #BFDBFE;
  border-radius: var(--r-sm);
  padding: 9px 13px;
  font-size: .82rem; font-weight: 600;
  color: var(--primary-text);
}

/* ── Empty states ─────────────────────────────────────────── */
.empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px 24px; text-align: center;
}
.empty-icon {
  width: 54px; height: 54px;
  background: var(--surface-3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-4);
  margin-bottom: 14px;
}
.empty h4  { font-size: .875rem; font-weight: 700; color: var(--text-2); margin-bottom: 5px; }
.empty p   { font-size: .78rem; color: var(--text-3); max-width: 240px; line-height: 1.5; }

/* ── Settings ─────────────────────────────────────────────── */
.settings-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}
.settings-hd {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.settings-hd-icon {
  width: 36px; height: 36px;
  background: var(--primary-soft);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.settings-hd h4  { font-size: .875rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.settings-hd p   { font-size: .77rem; color: var(--text-3); line-height: 1.45; }
.settings-actions {
  display: flex; gap: 8px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ── Auth pages ───────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.auth-logo-icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: #fff; letter-spacing: .04em;
}
.auth-logo-text { font-size: .88rem; font-weight: 800; color: var(--text); letter-spacing: .02em; }
.auth-logo-sub  { font-size: .72rem; color: var(--text-3); margin-top: 1px; }
.auth-card h2   { font-size: 1.22rem; font-weight: 800; color: var(--text); margin-bottom: 5px; }
.auth-card > p  { font-size: .82rem; color: var(--text-3); margin-bottom: 22px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }

.auth-success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0; }
.auth-success-icon {
  width: 58px; height: 58px;
  background: var(--success-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--success); margin-bottom: 14px;
}
.auth-success h2 { font-size: 1.1rem; margin-bottom: 5px; }

.spinner {
  width: 30px; height: 30px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 12px;
}
.activate-loading { display: none; flex-direction: column; align-items: center; text-align: center; padding: 12px 0; color: var(--text-3); font-size: .82rem; }
.activate-loading.show { display: flex; }

/* ── Flatpickr tweaks ─────────────────────────────────────── */
.flatpickr-calendar {
  border-radius: var(--r-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  border: 1px solid var(--border) !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: .81rem !important;
}
.flatpickr-day.selected,.flatpickr-day.startRange,.flatpickr-day.endRange
  { background: var(--primary) !important; border-color: var(--primary) !important; }
.flatpickr-day.inRange
  { background: var(--primary-soft) !important; border-color: var(--primary-soft) !important; color: var(--primary-text) !important; }
.flatpickr-day:hover { background: var(--surface-3) !important; }
.flatpickr-months .flatpickr-month { color: var(--text) !important; }
.flatpickr-current-month { font-size: .84rem !important; font-weight: 700 !important; }
.flatpickr-weekday { font-weight: 600 !important; color: var(--text-3) !important; font-size: .69rem !important; }

/* ── Divider ──────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut   { to { opacity: 0; pointer-events: none; } }
@keyframes slideUp   { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideLeft { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
