:root {
  --bg: #f4f7fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-deep: #0b3b39;
  --brand-soft: #ccfbf1;
  --brand-tint: #f0fdfa;
  --gold: #d97706;
  --gold-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --success: #15803d;
  --success-soft: #dcfce7;
  --info: #0369a1;
  --info-soft: #e0f2fe;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 10px 30px -18px rgba(15, 23, 42, 0.28);
  --shadow-lg: 0 30px 60px -30px rgba(15, 23, 42, 0.35);
  --radius: 14px;
  --radius-sm: 10px;
  --sidebar: 268px;
  --font: "Segoe UI", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 14.5px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
svg.icon { flex: none; vertical-align: middle; }
::selection { background: var(--brand-soft); }

/* ---------- Shell ---------- */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: var(--sidebar);
  background: linear-gradient(180deg, #0b2b2a 0%, #0a1b26 55%, #08131c 100%);
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow-y: auto;
  scrollbar-width: thin;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px 18px;
  color: #fff;
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: #fff;
  box-shadow: 0 8px 20px -8px var(--brand);
  letter-spacing: -1px;
}
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px; object-fit: contain;
  background: #fff; padding: 4px;
  box-shadow: 0 8px 20px -8px var(--brand);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16.5px; font-weight: 700; }
.brand-text span { font-size: 10.5px; color: var(--brand-soft); letter-spacing: 1.5px; text-transform: uppercase; }

.org-chip {
  margin: 4px 16px 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: flex;
  gap: 10px;
  align-items: center;
}
.org-chip .org-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(20, 184, 166, 0.16); color: #5eead4;
  display: grid; place-items: center; flex: none;
}
.org-chip strong { display: block; color: #f1f5f9; font-size: 13px; }
.org-chip span { display: block; color: #94a3b8; font-size: 11px; }

.nav { flex: 1; padding: 0 12px 16px; }
.nav-section { margin-bottom: 18px; }
.nav-label {
  font-size: 10.5px; letter-spacing: 1.4px;
  color: #64748b; padding: 0 12px 6px; font-weight: 700;
}
.nav-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; background: none; border: 0; cursor: pointer; font: inherit;
  text-align: start;
}
.nav-toggle:hover { color: #94a3b8; }
.nav-toggle .icon { color: inherit; transition: transform 0.18s ease; }
.nav-section.collapsed .nav-toggle .icon { transform: rotate(-90deg); }
.nav-section.collapsed .nav-items { display: none; }
.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: 10px;
  color: #b6c2d2; font-size: 13.5px;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
  position: relative;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav-link.active {
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.2), rgba(20, 184, 166, 0.06));
  color: #fff; font-weight: 600;
}
.nav-link.active::before {
  content: ""; position: absolute; inset-inline-start: -12px;
  width: 3px; height: 20px; border-radius: 4px; background: #2dd4bf;
}
.nav-link .icon { color: #7dd3c7; opacity: 0.9; }
.nav-link.active .icon { color: #2dd4bf; }
.nav-badge {
  margin-inline-start: auto; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 999px; background: #b91c1c; color: #fff;
  font-size: 10.5px; display: grid; place-items: center; font-weight: 700;
}
.sidebar-footer {
  padding: 14px 14px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 8px; border-radius: 10px;
}
.user-card:hover { background: rgba(255, 255, 255, 0.05); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: linear-gradient(145deg, #334155, #1e293b);
  color: #e2e8f0; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.1);
}
.user-card .user-meta { min-width: 0; flex: 1; }
.user-card strong { display: block; font-size: 12.5px; color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-card span { display: block; font-size: 10.5px; color: #7c8ba1; }
.logout-btn {
  background: transparent; border: 0; color: #94a3b8; cursor: pointer;
  padding: 7px; border-radius: 8px; display: grid; place-items: center;
}
.logout-btn:hover { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }

.main { margin-inline-start: var(--sidebar); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 64px; background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  padding: 0 30px; position: sticky; top: 0; z-index: 30;
}
.topbar-context { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.topbar-context .sep { color: var(--line-strong); }
.topbar-spacer { flex: 1; }
.topbar-date { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.topbar-user { display: flex; align-items: center; gap: 9px; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
.topbar-user .avatar { width: 33px; height: 33px; background: var(--brand-tint); color: var(--brand-dark); border-color: var(--brand-soft); }
.topbar-user strong { font-size: 12.5px; display: block; }
.topbar-user span { font-size: 10.5px; color: var(--muted); display: block; }
.menu-toggle {
  display: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; padding: 8px; color: var(--ink); cursor: pointer;
}
.content { padding: 28px 30px 48px; max-width: 1500px; width: 100%; }

/* ---------- Language switcher ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.lang-switcher { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.lang-switcher select {
  appearance: none; cursor: pointer;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 30px 6px 10px;
  font-size: 11.5px; font-weight: 600; line-height: 1.2;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
[dir="rtl"] .lang-switcher select {
  padding: 6px 10px 6px 30px;
  background-position: 9px 50%, 14px 50%;
}
.lang-switcher select:hover { border-color: var(--brand); color: var(--brand-dark); }
.lang-switcher select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.auth-lang { position: fixed; top: 18px; inset-inline-end: 20px; z-index: 60; }
.auth-lang .lang-switcher select {
  background-color: rgba(15, 23, 42, 0.75); color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.35);
}
.auth-lang .lang-switcher select:hover { color: #fff; border-color: #2dd4bf; }

/* ---------- Page head ---------- */
.page-head {
  display: flex; align-items: flex-end; gap: 18px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.page-head h1 { font-size: 23px; letter-spacing: -0.3px; }
.page-subtitle { color: var(--muted); font-size: 13px; margin-top: 4px; }
.page-actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink-2); padding: 9px 15px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.15s; white-space: nowrap; line-height: 1.2;
}
.btn:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-tint); }
.btn-primary {
  background: linear-gradient(180deg, #128f86, var(--brand));
  border-color: var(--brand); color: #fff;
  box-shadow: 0 6px 16px -8px rgba(15, 118, 110, 0.8);
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-danger { background: #fff; border-color: #fecaca; color: var(--danger); }
.btn-danger:hover { background: var(--danger-soft); border-color: #fca5a5; color: #b91c1c; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.btn-icon { padding: 7px; border-radius: 8px; }
.btn[disabled], .btn.disabled { opacity: 0.5; pointer-events: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-header {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.card-header h2 { font-size: 15px; }
.card-subtitle { color: var(--muted); font-size: 12px; }
.card-actions { margin-inline-start: auto; display: flex; gap: 7px; }
.card-body { padding: 20px; }
.card-body.flush { padding: 0; }

/* ---------- Company accordion (platform users) ---------- */
.company-accordion .card-header { padding: 12px 16px; }
.company-toggle {
  display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0;
  padding: 4px 0; background: none; border: 0; color: inherit; font: inherit;
  text-align: start; cursor: pointer;
}
.company-caret { display: inline-flex; color: var(--muted); transition: transform 0.18s ease; }
.company-accordion.collapsed .company-caret { transform: rotate(-90deg); }
.company-title { display: grid; gap: 2px; min-width: 0; }
.company-title h2 { margin: 0; font-size: 15px; transition: color 0.15s ease; }
.company-toggle:hover .company-title h2,
.company-toggle:focus-visible .company-title h2 { color: var(--brand); }
.company-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.company-accordion.collapsed .company-panel { display: none; }
.stack { display: grid; gap: 18px; }
[hidden] { display: none !important; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-sidebar { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: 18px; align-items: start; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; gap: 13px; align-items: center;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat-card::after {
  content: ""; position: absolute; inset-inline-start: 0; inset-block: 0;
  width: 3px; background: var(--brand); opacity: 0.75;
}
.stat-icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
}
.stat-icon.gold { background: var(--gold-soft); color: var(--gold); }
.stat-icon.blue { background: var(--info-soft); color: var(--info); }
.stat-icon.red { background: var(--danger-soft); color: var(--danger); }
.stat-value { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; }
.stat-label { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.stat-card a.stat-link { font-size: 11px; color: var(--brand); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th {
  background: var(--surface-2); color: var(--muted); font-size: 11px;
  font-weight: 700; letter-spacing: 0.2px; text-align: start;
  padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table tbody td { padding: 12px 16px; border-bottom: 1px solid #eef2f7; vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fbfdfe; }
.table .num { font-variant-numeric: tabular-nums; direction: ltr; text-align: start; white-space: nowrap; }
.table .actions { text-align: end; white-space: nowrap; }
.table .primary-cell { display: flex; align-items: center; gap: 10px; }
.table .primary-cell .avatar { width: 32px; height: 32px; background: var(--brand-tint); color: var(--brand-dark); border-color: var(--brand-soft); font-size: 11px; }
.cell-title { font-weight: 600; color: var(--ink); display: block; }
.cell-sub { color: var(--muted); font-size: 11px; display: block; }
.table tfoot td { padding: 12px 16px; font-weight: 700; background: var(--surface-2); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1.6; white-space: nowrap;
  background: #f1f5f9; color: #475569;
}
.badge-success { background: var(--success-soft); color: #166534; }
.badge-warning { background: var(--gold-soft); color: #92400e; }
.badge-danger { background: var(--danger-soft); color: #991b1b; }
.badge-info { background: var(--info-soft); color: #075985; }
.badge-brand { background: var(--brand-soft); color: var(--brand-dark); }
.badge-outline { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

/* Working-hours table (narrow settings column) */
.hours-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.hours-table thead th {
  padding: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 700;
  text-align: start; white-space: nowrap;
}
.hours-table tbody td { padding: 3px 0; vertical-align: middle; }
.hours-table th:first-child, .hours-table td:first-child { width: 26%; }
.hours-table th:nth-child(2), .hours-table td:nth-child(2),
.hours-table th:nth-child(3), .hours-table td:nth-child(3) { width: 33%; }
.hours-table th:last-child, .hours-table td:last-child { width: 8%; }
.hours-table .hours-day { font-weight: 600; white-space: nowrap; }
.hours-table .input { min-height: 36px; padding: 6px 8px; }
.hours-table .hours-closed { text-align: end; }
.hours-table td:nth-child(2) .input { margin-inline-end: 8px; }
.form-field > label, .field-label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.required { color: var(--danger); }
.input {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 9px 12px; background: #fff; color: var(--ink); font-size: 13px;
  transition: border 0.15s, box-shadow 0.15s; min-height: 39px;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12); }
.input:disabled { background: var(--surface-2); color: var(--muted); }
textarea.input { min-height: 80px; resize: vertical; }
select.input { cursor: pointer; }
.help { font-size: 11px; color: var(--muted); }
.errorlist { list-style: none; padding: 0; margin: 0; color: var(--danger); font-size: 11.5px; }
.errorlist li::before { content: "• "; }
.form-actions { display: flex; gap: 9px; align-items: center; padding-top: 8px; }
.fieldset-title {
  font-size: 12px; font-weight: 700; color: var(--brand-dark);
  border-bottom: 1px solid var(--line); padding-bottom: 7px; margin-bottom: 2px;
  grid-column: span 2;
}
.checkbox-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.checkbox-list label { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; }
.checkbox { accent-color: var(--brand); width: 16px; height: 16px; }
.form-card { max-width: 980px; }
.form-note { background: var(--brand-tint); border: 1px solid var(--brand-soft); color: var(--brand-deep); padding: 11px 14px; border-radius: 10px; font-size: 12px; }

/* ---------- Filters ---------- */
.filters {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0;
}
.filters .form-field { min-width: 140px; }
.filters .form-field.grow { flex: 1; min-width: 210px; }
.filters .input { min-height: 36px; padding: 7px 10px; background: #fff; }
.filters > .input, .filters > .select { flex: 1 1 160px; width: auto; min-width: 150px; }
.filters .btn { min-height: 36px; }
.filter-meta { margin-inline-start: auto; font-size: 11.5px; color: var(--muted); align-self: center; }

/* ---------- Empty & messages ---------- */
.empty-state { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty-state .empty-icon {
  width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 12px;
  background: var(--surface-2); color: var(--muted-2); display: grid; place-items: center;
  border: 1px solid var(--line);
}
.empty-state h3 { font-size: 14px; color: var(--ink-2); margin-bottom: 3px; }
.empty-state p { font-size: 12px; }
.empty-state .btn { margin-top: 14px; }
.messages { display: grid; gap: 8px; margin-bottom: 18px; }
.alert {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 14px; border-radius: 10px; font-size: 12.5px;
  border: 1px solid var(--line); background: #fff;
}
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-error, .alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ---------- Detail ---------- */
.detail-header {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.detail-avatar {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(145deg, var(--brand), #0b3b39);
  color: #fff; display: grid; place-items: center;
  font-size: 20px; font-weight: 800;
  box-shadow: 0 10px 24px -12px rgba(15, 118, 110, 0.8);
}
.detail-title h1 { font-size: 21px; }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.info-item { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.info-item > span { font-size: 11.5px; color: var(--muted); }
.info-item > strong { font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: end; overflow-wrap: anywhere; }
.info-item:nth-child(2n+1) { padding-inline-end: 18px; }
.info-item dt { font-size: 10.5px; color: var(--muted); margin-bottom: 1px; }
.info-item dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.section-title { font-size: 12px; font-weight: 700; color: var(--brand-dark); margin: 0 0 4px; }
.timeline { display: grid; gap: 0; }
.timeline-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.timeline-item:last-child { border-bottom: 0; }
.timeline-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); margin-top: 7px; flex: none; }
.timeline-title { font-size: 12.5px; font-weight: 600; }
.timeline-meta { font-size: 11px; color: var(--muted); }

/* ---------- Salary card ---------- */
.salary-hero {
  background: linear-gradient(135deg, #0b3b39, #0f766e);
  color: #fff; border-radius: var(--radius); padding: 20px;
  position: relative; overflow: hidden;
}
.salary-hero::after {
  content: ""; position: absolute; width: 170px; height: 170px;
  border-radius: 50%; border: 26px solid rgba(255, 255, 255, 0.06);
  inset-inline-end: -60px; top: -70px;
}
.salary-hero .label { font-size: 11px; color: #99f6e4; }
.salary-hero .value { font-size: 26px; font-weight: 800; direction: ltr; text-align: start; letter-spacing: -0.5px; }
.salary-hero .value small { font-size: 12px; font-weight: 500; color: #99f6e4; margin-inline-start: 5px; }
.salary-rows { display: grid; gap: 8px; margin-top: 12px; font-size: 12px; }
.salary-row { display: flex; justify-content: space-between; gap: 10px; color: #d1fae5; }
.salary-row strong { color: #fff; font-variant-numeric: tabular-nums; direction: ltr; }
.payslip-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-radius: 12px; background: var(--brand-tint);
  border: 1px solid var(--brand-soft); margin-top: 12px;
}
.payslip-total strong { font-size: 18px; color: var(--brand-dark); font-variant-numeric: tabular-nums; direction: ltr; }

/* ---------- Dashboard widgets ---------- */
.hero-banner {
  background:
    radial-gradient(circle at 92% 15%, rgba(45, 212, 191, 0.18), transparent 38%),
    linear-gradient(120deg, #0b2b2a, #0d3b42 58%, #0f766e);
  border-radius: 18px; padding: 26px 28px; color: #fff;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  margin-bottom: 20px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.hero-banner::before {
  content: ""; position: absolute; inset-inline-end: -40px; bottom: -90px;
  width: 230px; height: 230px; border-radius: 50%;
  border: 30px solid rgba(255, 255, 255, 0.04);
}
.hero-banner h1 { font-size: 23px; margin-bottom: 5px; }
.hero-banner p { color: #a7f3d0; font-size: 12.5px; max-width: 640px; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14); color: #d1fae5; font-size: 11px;
}
.hero-actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.hero-banner .btn-primary { background: #2dd4bf; border-color: #2dd4bf; color: #042f2e; }
.hero-banner .btn-primary:hover { background: #99f6e4; border-color: #99f6e4; }
.hero-banner .btn { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.hero-banner .btn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.module-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.module-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; font-size: 11.5px; color: var(--muted);
}
.module-pill.active { border-color: var(--brand-soft); background: var(--brand-tint); color: var(--brand-dark); }
.module-pill .icon { color: var(--brand); }

.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quick-action {
  display: flex; align-items: center; gap: 9px; padding: 10px 11px;
  border: 1px solid var(--line); border-radius: 10px; color: var(--ink-2);
  font-size: 12px; background: #fff; transition: 0.15s;
}
.quick-action:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-dark); }
.quick-action .icon { color: var(--brand); }

/* ---------- Setup / auth ---------- */
.setup-body, .auth-body {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 90% 8%, rgba(20, 184, 166, 0.25), transparent 34%),
    radial-gradient(circle at 5% 95%, rgba(15, 118, 110, 0.18), transparent 38%),
    #071720;
  color: #e2e8f0;
}
.auth-shell { flex: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; min-height: 100vh; }
.auth-brand {
  padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.14), transparent 40%),
    linear-gradient(150deg, #07201f, #0a2f3a);
}
.auth-brand .brand { padding: 0; }
.auth-copy { max-width: 460px; margin-block: auto; padding-block: 60px; }
.auth-copy h1 { font-size: 34px; line-height: 1.35; margin-bottom: 14px; }
.auth-copy h1 span { color: #5eead4; }
.auth-copy p { color: #94a3b8; font-size: 14px; line-height: 1.9; }
.auth-points { display: grid; gap: 12px; margin-top: 26px; }
.auth-point { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: #cbd5e1; }
.auth-point .tick {
  width: 22px; height: 22px; border-radius: 7px; background: rgba(45, 212, 191, 0.14);
  color: #2dd4bf; display: grid; place-items: center; flex: none;
}
.auth-panel { display: grid; place-items: center; padding: 40px; background: #0a1a24; }
.auth-card {
  width: 100%; max-width: 390px; background: #fff; color: var(--ink);
  border-radius: 18px; padding: 34px 32px; box-shadow: var(--shadow-lg);
}
.auth-card h2 { font-size: 20px; margin-bottom: 4px; }
.auth-card .muted { color: var(--muted); font-size: 12.5px; margin-bottom: 22px; }
.auth-card .form-field { margin-bottom: 14px; }
.auth-card .btn { width: 100%; margin-top: 6px; padding: 11px; }
.auth-foot { margin-top: 20px; font-size: 11.5px; color: #64748b; text-align: center; }
.auth-error {
  background: #fef2f2; color: #991b1b; border: 1px solid #fecaca;
  border-radius: 9px; padding: 9px 12px; font-size: 12px; margin-bottom: 14px;
}

.setup-shell { flex: 1; display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 100vh; }
.setup-aside {
  background: linear-gradient(160deg, #07201f, #0a2f3a 70%, #0b3b39);
  padding: 34px 30px; display: flex; flex-direction: column; gap: 30px;
}
.setup-aside .brand { padding: 0; }
.setup-aside h2 { font-size: 18px; color: #f1f5f9; }
.setup-aside .muted { color: #94a3b8; font-size: 12px; line-height: 1.8; }
.wizard-steps { display: grid; gap: 4px; }
.wizard-step { display: flex; gap: 12px; padding: 13px 10px; border-radius: 12px; align-items: flex-start; }
.wizard-step.active { background: rgba(45, 212, 191, 0.1); }
.wizard-step.done { opacity: 0.75; }
.step-num {
  width: 27px; height: 27px; border-radius: 9px; flex: none;
  background: rgba(255, 255, 255, 0.08); color: #94a3b8;
  display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
}
.wizard-step.active .step-num { background: #2dd4bf; color: #042f2e; }
.wizard-step.done .step-num { background: rgba(45, 212, 191, 0.16); color: #5eead4; }
.wizard-step strong { display: block; font-size: 12.5px; color: #e2e8f0; }
.wizard-step span { font-size: 10.5px; color: #64748b; }
.setup-aside-foot { margin-top: auto; font-size: 10.5px; color: #475569; line-height: 1.8; }
.setup-main { padding: 42px 48px; display: flex; flex-direction: column; }
.setup-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 30px; }
.setup-top .muted { font-size: 11.5px; color: #94a3b8; }
.setup-card {
  background: #fff; color: var(--ink); border-radius: 18px;
  padding: 32px 34px; max-width: 880px; width: 100%;
  box-shadow: var(--shadow-lg);
}
.setup-card-head { margin-bottom: 22px; }
.setup-card-head h1 { font-size: 22px; margin-bottom: 5px; }
.setup-card-head p { color: var(--muted); font-size: 12.5px; }
.setup-footer { margin-top: auto; padding-top: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 880px; width: 100%; }
.setup-footer .btn { min-width: 120px; }
.setup-footer .spacer { flex: 1; }
.wizard-locked { font-size: 11px; color: #64748b; display: inline-flex; align-items: center; gap: 5px; }

.sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sector-option { position: relative; }
.sector-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sector-card {
  border: 1.5px solid var(--line); border-radius: 13px; padding: 15px;
  height: 100%; cursor: pointer; transition: all 0.15s; background: #fff;
  display: flex; flex-direction: column; gap: 7px;
}
.sector-card:hover { border-color: var(--brand); box-shadow: 0 8px 20px -16px rgba(15, 118, 110, 0.7); }
.sector-option input:checked + .sector-card {
  border-color: var(--brand); background: var(--brand-tint);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
.sector-icon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; background: var(--surface-2); color: var(--brand-dark);
}
.sector-card h3 { font-size: 13px; }
.sector-card p { font-size: 10.5px; color: var(--muted); line-height: 1.6; flex: 1; }
.sector-meta { font-size: 10px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 6px; padding: 2px 6px; display: inline-flex; width: fit-content; }

.module-option { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.module-option:hover { border-color: var(--line-strong); }
.module-option input { margin-top: 4px; }
.module-option .icon-circle { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.module-option h3 { font-size: 13px; display: flex; align-items: center; gap: 7px; }
.module-option p { font-size: 11px; color: var(--muted); margin-top: 2px; }
.blueprint { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.blueprint-box { border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; background: var(--surface-2); }
.blueprint-box h4 { font-size: 11.5px; color: var(--brand-dark); margin-bottom: 8px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-size: 10.5px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); padding: 3px 8px; border-radius: 999px; }

/* ---------- Module cards ---------- */
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.module-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.module-card.installed { border-color: var(--brand-soft); background: linear-gradient(180deg, #fff, var(--brand-tint)); }
.module-card.planned { background: var(--surface-2); }
.module-head { display: flex; gap: 10px; align-items: flex-start; }
.module-head .icon-circle { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.module-card.planned .icon-circle { background: #e2e8f0; color: var(--muted); }
.module-head h3 { font-size: 14px; }
.module-head p { font-size: 10.5px; color: var(--muted); }
.module-card .muted { font-size: 11px; color: var(--muted); }
.role-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.role-chip { font-size: 10px; background: #fff; border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; color: var(--muted); }
.color-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); flex: 0 0 auto; vertical-align: middle; }
.role-chip .color-dot { width: 13px; height: 13px; }
.catalog-thumb { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 9px; border: 1px solid var(--line); background: #fff; object-fit: cover; flex: 0 0 auto; }
.catalog-thumb-empty { color: var(--muted); background: var(--brand-tint); }
.quick-input { width: 92px; padding: 4px 6px; font-size: 11px; text-align: end; }
.attribute-terms-scroll { max-height: 190px; overflow: auto; padding-inline-end: 2px; }
.attribute-picker { min-width: 230px; }
.attribute-editor { display: grid; gap: 12px; }
.product-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.product-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 12px; font-size: 12px; color: var(--muted); cursor: pointer; }
.product-tab.active { color: var(--brand-dark); border-bottom-color: var(--brand); font-weight: 600; }
.product-tab:hover { color: var(--brand-dark); }
.product-tab-panel { min-height: 40px; }
.barcode-scanner { position: fixed; inset: 0; z-index: 210; background: rgba(2, 6, 23, .72); display: grid; place-items: center; padding: 20px; }
.barcode-scanner-box { width: min(520px, 100%); background: #fff; border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.barcode-scanner video { width: 100%; max-height: 360px; border-radius: 8px; background: #0f172a; }
.attribute-editor-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.variation-editor { display: grid; gap: 12px; }
.variation-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.attribute-editor-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.attribute-editor-head .checkbox-line { margin-bottom: 2px; }
.attribute-editor-row .attribute-picker { min-width: 0; }
.attribute-search { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; background: #fff; }
.attribute-options { display: flex; flex-wrap: wrap; gap: 5px; max-height: 132px; overflow: auto; margin-top: 6px; }
.term-option { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; background: #fff; cursor: pointer; }
.term-option input { margin: 0; }

/* ---------- Cards / list view switch ---------- */
.view-switch {
  display: inline-flex; gap: 2px; padding: 3px; background: #fff;
  border: 1px solid var(--line-strong); border-radius: 10px;
}
.view-switch-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--muted);
}
.view-switch-btn:hover { color: var(--brand); }
.view-switch-btn.active { background: var(--brand); color: #fff; }
.view-switch-btn.active:hover { color: #fff; }

/* Platform module cards */
.module-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.module-metrics > div {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 7px 10px;
}
.module-metrics .metric-label { display: block; font-size: 10.5px; color: var(--muted); }
.module-metrics strong { font-size: 15px; font-weight: 700; }

/* ---------- In-app modal (confirmation / alert) ---------- */
body.modal-open { overflow: hidden; }
.app-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.app-modal[hidden] { display: none; }
.app-modal-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 24, 0.45); }
.app-modal-card {
  position: relative; z-index: 1; width: min(440px, 100%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 22px 22px 18px;
}
.app-modal-text { font-size: 14px; line-height: 1.7; color: var(--ink); margin-bottom: 18px; }
.app-modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.app-modal-actions .btn[hidden] { display: none; }

/* ---------- Point of sale ---------- */
.pos-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr); gap: 18px; align-items: start; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pos-product {
  text-align: start; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 4px;
  cursor: pointer; transition: border-color .12s, box-shadow .12s;
}
.pos-product:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.pos-price { font-weight: 700; color: var(--brand-dark); }
.pos-cart-table th, .pos-cart-table td { padding: 8px; }
.pos-totals { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin: 12px 0; font-size: 14px; }
.pos-totals #grandTotal { font-size: 18px; }
.pos-pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1024px) { .pos-layout { grid-template-columns: 1fr; } }

/* ---------- Pagination ---------- */
.pagination { display: flex; align-items: center; gap: 6px; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pagination .spacer { flex: 1; }
.pagination .page-info { font-size: 11.5px; color: var(--muted); }
.page-btn {
  min-width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px;
  display: grid; place-items: center; font-size: 11.5px; color: var(--ink-2); background: #fff;
  padding: 0 8px;
}
.page-btn:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-tint); }
.page-btn.current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Misc ---------- */
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.tiny { font-size: 10.5px; }
.strong { font-weight: 700; }
.numeric { font-variant-numeric: tabular-nums; direction: ltr; }
.flex { display: flex; gap: 8px; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flex-wrap { flex-wrap: wrap; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; }
.w-100 { width: 100%; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.link-muted { color: var(--muted); }
.link-muted:hover { color: var(--brand); }
.warning-box { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 10px; padding: 11px 14px; font-size: 11.5px; }
.info-box { background: var(--info-soft); border: 1px solid #bae6fd; color: #075985; border-radius: 10px; padding: 11px 14px; font-size: 11.5px; }
.inline-form { display: inline-flex; }
.table .inline-form { display: inline-flex; }
.amount { font-variant-numeric: tabular-nums; direction: ltr; }
.amount-negative { color: var(--danger); }
.amount-positive { color: var(--success); }
.stat-split { display: flex; gap: 16px; }
.stat-split > div { flex: 1; }
hr.soft { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

/* Supervisor task board */
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.board-onsite { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.board-column {
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--line);
  border-radius: var(--radius, 10px);
  padding: 10px;
  min-height: 120px;
}
.board-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink-2);
}
.board-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  margin-bottom: 8px;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.board-card:hover {
  border-color: var(--brand, #0f766e);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, 0.08));
}
.board-card-title { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink); }
.board-card-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
@media (max-width: 1024px) {
  .board, .board-onsite { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .board, .board-onsite { grid-template-columns: 1fr; }
}

@media (max-width: 1240px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(100%); transition: transform 0.2s ease; box-shadow: var(--shadow-lg); }
  [dir="ltr"] .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-inline-start: 0; }
  .menu-toggle { display: grid; place-items: center; }
  .grid-sidebar { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-shell { grid-template-columns: 1fr; }
  .setup-aside { display: none; }
  .setup-main { padding: 24px 18px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .sidebar-overlay { position: fixed; inset: 0; background: rgba(2, 6, 23, 0.5); z-index: 35; display: none; }
  .sidebar-overlay.show { display: block; }
}
@media (max-width: 760px) {
  .content { padding: 18px 14px 36px; }
  .topbar { padding: 0 14px; height: 58px; }
  .topbar-date, .topbar-user .user-text { display: none; }
  .stat-grid, .grid-2, .grid-3, .module-grid, .sector-grid, .form-grid, .form-grid-3, .info-list, .blueprint, .quick-actions { grid-template-columns: 1fr; }
  .form-grid .span-2, .fieldset-title { grid-column: span 1; }
  .page-head h1 { font-size: 19px; }
  .page-actions { margin-inline-start: 0; width: 100%; }
  .hero-banner { padding: 20px; }
  .hero-actions { margin-inline-start: 0; }
  .filters { padding: 12px 14px; }
  .filters .form-field { min-width: 100%; }
  .setup-card { padding: 22px 18px; }
  .detail-avatar { width: 52px; height: 52px; font-size: 16px; }
}

/* ---------- Print ---------- */
@media print {
  .sidebar, .topbar, .page-actions, .btn, .messages, .no-print { display: none !important; }
  .main { margin: 0; }
  .content { padding: 0; max-width: none; }
  body { background: #fff; font-size: 12px; }
  .card { box-shadow: none; border-color: #ddd; }
  .payslip-total { border: 1px solid #ddd; }
}

/* ---------- Work calendar & tasks ---------- */
.calendar-grid { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--brand-tint); border-bottom: 1px solid var(--line); }
.calendar-weekdays span { padding: 8px 6px; font-size: 10px; font-weight: 700; color: var(--brand-deep); text-align: center; }
.calendar-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-day { min-height: 108px; padding: 6px; border-top: 1px solid var(--line); border-inline-end: 1px solid var(--line); background: #fff; }
.calendar-day:nth-child(7n) { border-inline-end: 0; }
.calendar-day.outside { background: #f8fafc; }
.calendar-day.today { background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand-soft); }
.calendar-day-number { font-size: 10.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.calendar-day.outside .calendar-day-number { color: var(--muted-2); }
.calendar-items { display: flex; flex-direction: column; gap: 2px; }
.calendar-item { display: block; padding: 2px 4px; border-radius: 5px; font-size: 9px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--brand-soft); color: var(--brand-deep); }
.calendar-item.task { background: #e0f2fe; color: #075985; }
.calendar-item.task.overdue { background: var(--danger-soft); color: #991b1b; }
.calendar-item.event { background: #ede9fe; color: #5b21b6; }
.calendar-item.leave { background: var(--success-soft); color: #166534; }
.calendar-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 10.5px; color: var(--muted); }
.calendar-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 4px; }
.calendar-legend .task-dot { background: #0ea5e9; }
.calendar-legend .event-dot { background: #8b5cf6; }
.calendar-legend .leave-dot { background: #22c55e; }
.checkbox-line { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); }

