:root {
  --bg: #f5f8fc;
  --bg-2: #eef3f9;
  --surface: #ffffff;
  --surface-soft: #f9fbfe;
  --text: #142033;
  --text-2: #41516a;
  --muted: #6d7b92;
  --line: #dbe5f0;
  --line-strong: #c8d6e5;
  --primary: #1e5eff;
  --primary-2: #4d88ff;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --purple: #7c3aed;
  --teal: #0f9f95;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 16px 34px rgba(15, 23, 42, 0.08);
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --sidebar-w: 300px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(77,136,255,0.12), transparent 24%),
    radial-gradient(circle at top right, rgba(15,159,149,0.08), transparent 18%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

body.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-wrap {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  background: rgba(255,255,255,0.76);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(219,229,240,0.9);
  border-radius: 34px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.auth-showcase {
  padding: 44px;
  background: linear-gradient(180deg, #f6faff 0%, #edf4ff 100%);
  border-right: 1px solid var(--line);
}
.auth-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,255,0.95));
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-badge, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.auth-title { margin: 18px 0 10px; font-size: 34px; line-height: 1.06; }
.auth-copy, .muted { color: var(--muted); }
.auth-feature-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.auth-feature {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.auth-feature strong { display: block; margin-bottom: 6px; }
.auth-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.auth-meta span {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  color: var(--text-2);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.auth-card form { display: grid; gap: 16px; margin-top: 18px; }
label { display: grid; gap: 8px; color: var(--text); font-weight: 600; font-size: 14px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(30,94,255,0.45);
  box-shadow: 0 0 0 4px rgba(30,94,255,0.10);
}

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
button:hover, .btn:hover { transform: translateY(-1px); }
.btn, .btn-primary, button[type="submit"] {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #1950d1);
  box-shadow: 0 10px 18px rgba(30, 94, 255, 0.20);
}
.btn-secondary, .btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: #c8d7ff;
  box-shadow: none;
}
.btn-success { background: linear-gradient(135deg, var(--success), #15803d); color: #fff; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.btn-purple { background: linear-gradient(135deg, var(--purple), #6d28d9); color: #fff; }
.btn-teal { background: linear-gradient(135deg, var(--teal), #0f766e); color: #fff; }
.btn-soft {
  background: #eff5ff;
  color: var(--primary);
  border-color: #d9e6ff;
  box-shadow: none;
}

.alert {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  border: 1px solid transparent;
}
.alert.success { background: #ecfdf3; color: #166534; border-color: #bbf7d0; }
.alert.error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #edf4ff;
  color: var(--primary);
}
.badge.success { background: #ecfdf3; color: #166534; }
.badge.warning { background: #fff7ed; color: #b45309; }
.badge.danger { background: #fef2f2; color: #b91c1c; }
.badge.purple { background: #f5f3ff; color: #6d28d9; }
.badge.teal { background: #ecfeff; color: #0f766e; }

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 22px 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,250,255,0.95));
  border-right: 1px solid rgba(219,229,240,0.95);
}
.brand-block {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  box-shadow: 0 16px 20px rgba(30,94,255,0.20);
}
.brand { font-weight: 800; font-size: 20px; }
.sidebar-caption { color: var(--muted); font-size: 13px; margin-top: 4px; }
.sidebar-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #f9fbff, #eff6ff);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.sidebar-kpi-label, .nav-group-title {
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}
.sidebar-kpi-value { font-size: 28px; font-weight: 800; margin: 6px 0; }
.sidebar-kpi-sub { color: var(--text-2); font-size: 13px; line-height: 1.5; }
.sidebar nav { display: grid; gap: 14px; }
.nav-group { display: grid; gap: 8px; }
.nav-list { display: grid; gap: 6px; }
.nav-single, .nav-parent, .nav-child, .nav-logout {
  display: block;
  border-radius: 14px;
  color: var(--text-2);
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-single, .nav-parent, .nav-logout { padding: 11px 12px; font-weight: 700; }
.nav-parent { color: var(--text); background: #fbfdff; border: 1px solid transparent; }
.nav-children {
  display: grid;
  gap: 6px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 2px solid #e2eaf5;
}
.nav-child { padding: 9px 11px; font-size: 14px; }
.nav-single:hover, .nav-child:hover, .nav-parent:hover, .nav-logout:hover,
.nav-single.active, .nav-child.active, .nav-parent.active {
  background: #edf4ff;
  color: var(--primary);
  transform: translateX(2px);
}

.main-content {
  padding: 22px;
  min-width: 0;
}
.content-inner {
  max-width: 1440px;
  margin: 0 auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid rgba(219,229,240,0.95);
  border-radius: 26px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
}
.topbar h1 { margin: 8px 0 6px; font-size: clamp(26px, 3vw, 38px); line-height: 1.05; }
.topbar-right {
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: 280px;
}
.status-strip { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 700;
}
.status-pill.good { color: #166534; background: #ecfdf3; border-color: #bbf7d0; }
.status-pill.info { color: var(--primary); background: #edf4ff; border-color: #c8d7ff; }
.user-chip {
  padding: 12px 15px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7faff);
  font-weight: 700;
  color: var(--text);
}

.page-shell {
  display: grid;
  gap: 18px;
}
.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(77,136,255,0.13), transparent 23%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.96));
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 200px;
  height: 200px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15,159,149,0.12), transparent 65%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr);
  gap: 18px;
  position: relative;
  z-index: 1;
}
.hero-title { margin: 14px 0 10px; font-size: clamp(28px, 3vw, 42px); line-height: 1.02; }
.hero-copy { color: var(--text-2); font-size: 15px; max-width: 760px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 20px;
}
.hero-meta .meta-card,
.mini-card,
.card,
.soft-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.meta-card { padding: 14px 16px; }
.meta-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.meta-value { font-size: 22px; font-weight: 800; margin-top: 4px; }
.meta-note { color: var(--text-2); margin-top: 4px; font-size: 13px; }
.hero-side {
  display: grid;
  gap: 12px;
}
.profile-panel {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f6fbff);
}
.profile-panel h3 { margin: 0 0 12px; font-size: 18px; }
.profile-list, .mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.profile-list li, .mini-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #e2ebf5;
  color: var(--text-2);
}
.profile-list li:last-child, .mini-list li:last-child { border-bottom: 0; }
.profile-list strong, .mini-list strong { color: var(--text); }

.stat-row, .grid-2, .grid-3, .grid-4, .dashboard-grid, .split-grid {
  display: grid;
  gap: 18px;
}
.stat-row, .grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-2, .split-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.dashboard-grid { grid-template-columns: 1.3fr .9fr; }
.card, .soft-card { padding: 20px; }
.soft-card { background: linear-gradient(180deg, #fbfdff, #f6faff); }
.card-dark {
  color: #eff6ff;
  background: linear-gradient(135deg, #16325d 0%, #1b4b92 55%, #1c6aa0 100%);
  border: 1px solid rgba(89, 127, 190, 0.55);
}
.card-dark .muted, .card-dark .section-sub, .card-dark .metric-note, .card-dark .mini-list li { color: rgba(239,246,255,0.80); }
.card-dark .section-title, .card-dark .kpi, .card-dark h2, .card-dark h3, .card-dark strong { color: #fff; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.section-title { margin: 0; font-size: 20px; }
.section-sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.kpi { font-size: clamp(28px, 3vw, 40px); font-weight: 800; margin-top: 6px; line-height: 1; }
.metric-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), rgba(30,94,255,0.18));
}
.metric-card.success::before { background: linear-gradient(90deg, var(--success), rgba(22,163,74,0.12)); }
.metric-card.warning::before { background: linear-gradient(90deg, var(--warning), rgba(217,119,6,0.12)); }
.metric-card.purple::before { background: linear-gradient(90deg, var(--purple), rgba(124,58,237,0.12)); }
.metric-card.teal::before { background: linear-gradient(90deg, var(--teal), rgba(15,159,149,0.12)); }
.metric-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.metric-note { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.metric-trend { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.metric-trend.up { color: var(--success); }
.metric-trend.warn { color: var(--warning); }
.metric-trend.info { color: var(--primary); }
.actions, .info-strip { display: flex; gap: 10px; flex-wrap: wrap; }
.info-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f2f7ff;
  color: #3e5f95;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #d8e6ff;
}
.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.list-clean li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e5edf6;
  background: #fbfdff;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.table-wrap table { width: 100%; border-collapse: collapse; background: #fff; }
th, td {
  text-align: left;
  padding: 14px 14px;
  border-bottom: 1px solid #edf2f7;
  color: var(--text);
}
th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  background: #f9fbfe;
}
tr:last-child td { border-bottom: 0; }
.chart-wrap { position: relative; height: 280px; }
.empty-note { color: var(--muted); font-size: 14px; line-height: 1.6; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.summary-tile {
  padding: 16px;
  border-radius: 18px;
  background: #f9fbfe;
  border: 1px solid var(--line);
}
.summary-tile strong { display: block; font-size: 22px; margin-top: 6px; }
.timeline { display: grid; gap: 12px; }
.timeline-item {
  position: relative;
  padding: 14px 14px 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fbfdff;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: var(--primary);
}
.timeline-item.success::before { background: var(--success); }
.timeline-item.warning::before { background: var(--warning); }
.timeline-item.purple::before { background: var(--purple); }
.small { font-size: 13px; }
.subtle-sep { height: 1px; background: #e8eef6; margin: 14px 0; }
.footer-inline { margin-top: 16px; color: var(--muted); font-size: 13px; }

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: revealUp .55s ease forwards;
}
.reveal-2 { animation-delay: .08s; }
.reveal-3 { animation-delay: .16s; }
.reveal-4 { animation-delay: .24s; }
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1260px) {
  .stat-row, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-grid, .dashboard-grid, .split-grid, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .topbar { flex-direction: column; }
  .topbar-right { justify-items: start; min-width: 0; }
  .status-strip { justify-content: flex-start; }
  .main-content { padding: 14px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-showcase { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4, .stat-row, .summary-grid, .hero-meta { grid-template-columns: 1fr; }
  .auth-showcase, .auth-card, .hero-panel, .card, .soft-card { padding: 18px; }
  .topbar { padding: 16px; border-radius: 20px; }
  .hero-title { font-size: 28px; }
}

:root {
  --primary: #1668ff;
  --primary-2: #4ca5ff;
  --accent: #00b6d9;
  --accent-2: #7a5cff;
  --sidebar-w: 318px;
}

.brand-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(22,104,255,0.12), rgba(0,182,217,0.15));
  box-shadow: 0 16px 30px rgba(22,104,255,0.16);
  border: 1px solid rgba(133, 179, 255, 0.45);
  display: grid;
  place-items: center;
}
.brand-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.brand-subline { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.brand-subline .badge { padding: 6px 10px; font-size: 11px; }
.sidebar-company-card {
  padding: 18px;
  border-radius: 22px;
  margin-bottom: 18px;
  color: #eaf4ff;
  background: linear-gradient(145deg, #082041, #0f3c7a 48%, #085f83 100%);
  box-shadow: 0 18px 35px rgba(7, 28, 69, 0.32);
}
.sidebar-company-card h4 { margin: 0 0 8px; font-size: 18px; color: #fff; }
.sidebar-company-card p { margin: 0; color: rgba(234,244,255,0.78); font-size: 13px; line-height: 1.6; }
.sidebar-company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-top: 14px;
}
.sidebar-company-grid .mini-metric {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 10px 12px;
}
.sidebar-company-grid strong { display: block; font-size: 18px; color: #fff; }
.sidebar-company-grid span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(234,244,255,0.72); }

.topbar {
  background:
    radial-gradient(circle at top right, rgba(22,104,255,0.15), transparent 22%),
    radial-gradient(circle at bottom left, rgba(0,182,217,0.10), transparent 16%),
    rgba(255,255,255,0.90);
}
.topbar-right { min-width: 360px; }
.topbar-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.notification-btn, .avatar-pill {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
  box-shadow: var(--shadow-sm);
}
.notification-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.notification-btn::before {
  content: "🔔";
  font-size: 20px;
}
.notification-dot {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a55, #ff2f63);
  box-shadow: 0 0 0 3px #fff;
}
.avatar-pill {
  padding: 8px 10px 8px 8px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 10px 24px rgba(22,104,255,0.24);
}
.avatar-meta { display: grid; }
.avatar-meta strong { font-size: 13px; }
.avatar-meta span { color: var(--muted); font-size: 12px; }
.page-header-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}
.feature-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: var(--shadow-sm);
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(22,104,255,0.12), transparent 70%);
}
.feature-card h3, .feature-card h4 { margin: 0 0 8px; }
.feature-card p { margin: 0; color: var(--text-2); line-height: 1.7; }
.form-grid-2, .form-grid-3 {
  display: grid;
  gap: 14px;
}
.form-grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 16px;
}
.kpi-chip {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7fbff;
  border: 1px solid var(--line);
}
.kpi-chip span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.kpi-chip strong { display: block; margin-top: 6px; font-size: 24px; }
.doc-grid, .pay-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.doc-card, .pay-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f9fbff);
  box-shadow: var(--shadow-sm);
}
.doc-card h4, .pay-card h4 { margin: 0 0 8px; }
.doc-meta, .slip-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.progress-mini {
  position: relative;
  width: 94px;
  height: 94px;
  border-radius: 999px;
  background: conic-gradient(var(--primary) calc(var(--value) * 1%), #e6eef8 0);
  display: grid;
  place-items: center;
}
.progress-mini::before {
  content: "";
  width: 70px;
  height: 70px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.progress-mini span {
  position: absolute;
  font-size: 18px;
  font-weight: 800;
}
.inline-stat-row { display: flex; gap: 12px; flex-wrap: wrap; }
.mini-soft {
  flex: 1 1 180px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7fbff;
  border: 1px solid var(--line);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}
.toolbar .search { min-width: 240px; flex: 1 1 240px; }
.reveal { animation: revealUp .6s ease both; }
.reveal-2 { animation-delay: .08s; }
.reveal-3 { animation-delay: .14s; }
.reveal-4 { animation-delay: .20s; }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.metric-card, .card, .soft-card, .doc-card, .pay-card, .feature-card, .summary-tile, .nav-single, .nav-parent, .nav-child, .notification-btn, .avatar-pill { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.metric-card:hover, .card:hover, .soft-card:hover, .doc-card:hover, .pay-card:hover, .feature-card:hover { transform: translateY(-3px); box-shadow: 0 18px 35px rgba(15, 23, 42, 0.10); }
.data-count { display: inline-block; }
.auth-hero-logo {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 20px 34px rgba(15,35,82,0.18);
}
.auth-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.page-note {
  padding: 16px 18px;
  border: 1px dashed #c7d8ef;
  border-radius: 18px;
  background: #f8fbff;
  color: var(--text-2);
}
@media (max-width: 1200px) {
  .dashboard-grid, .hero-grid, .page-header-grid, .doc-grid, .pay-grid, .stat-row, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .topbar, .page-header-grid, .dashboard-grid, .hero-grid, .grid-3, .grid-2, .form-grid-2, .form-grid-3, .doc-grid, .pay-grid, .stat-row, .grid-4 { grid-template-columns: 1fr; }
  .topbar-right, .status-strip, .topbar-tools { justify-items: start; justify-content: flex-start; }
}


/* Design lock refinement: keep premium style, reduce logo dominance, restore cleaner layout balance */
:root {
  --sidebar-w: 292px;
}
.sidebar {
  padding: 18px 16px;
}
.brand-block {
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.brand-logo-wrap {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  padding: 8px;
  background: linear-gradient(180deg, #08182e, #0a1e39);
  box-shadow: 0 12px 24px rgba(8, 27, 58, 0.16);
  border: 1px solid rgba(110, 160, 255, 0.16);
}
.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand {
  font-size: 18px;
  line-height: 1.15;
}
.sidebar-caption {
  font-size: 12px;
  line-height: 1.45;
  max-width: 150px;
}
.brand-subline {
  margin-top: 5px;
}
.brand-subline .badge {
  padding: 5px 9px;
  font-size: 10px;
}
.sidebar-company-card {
  padding: 14px 15px;
  border-radius: 18px;
  background: linear-gradient(145deg, #0b2243, #11396e 54%, #0f5473 100%);
  box-shadow: 0 12px 24px rgba(7, 28, 69, 0.18);
}
.sidebar-company-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
}
.sidebar-company-card p {
  font-size: 12px;
  line-height: 1.5;
}
.sidebar-company-grid {
  gap: 8px;
  margin-top: 12px;
}
.sidebar-company-grid .mini-metric {
  padding: 8px 10px;
  border-radius: 14px;
}
.sidebar-company-grid strong {
  font-size: 15px;
}
.sidebar-panel {
  padding: 14px;
  border-radius: 18px;
}
.nav-single, .nav-parent, .nav-logout {
  padding: 10px 11px;
}
.nav-child {
  padding: 8px 10px;
}
.topbar {
  padding: 18px 20px;
  border-radius: 22px;
}
.topbar h1 {
  font-size: clamp(24px, 2.7vw, 36px);
}
.topbar-right {
  min-width: 320px;
}
.notification-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}
.avatar-pill {
  padding: 7px 10px 7px 7px;
}
.avatar-circle {
  width: 36px;
  height: 36px;
}
@media (max-width: 980px) {
  :root { --sidebar-w: 1fr; }
  .sidebar-caption {
    max-width: none;
  }
}


/* ===== People directory + hierarchy module ===== */
.directory-toolbar { width: 100%; }
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #d6e5fb;
  background: #fff;
  color: var(--text-2);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.pill-toggle.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--purple));
}
.profile-card-mini { min-height: 100%; }
.profile-hero {
  display: grid;
  gap: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfdff, #f2f8ff);
  border: 1px solid var(--line);
}
.profile-identity {
  display: flex;
  gap: 14px;
  align-items: center;
}
.profile-identity strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}
.profile-identity p { margin: 0; color: var(--muted); }
.profile-avatar-lg {
  width: 64px;
  height: 64px;
  font-size: 22px;
  box-shadow: 0 14px 26px rgba(30, 94, 255, 0.16);
}
.profile-grid-lite {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.profile-grid-lite div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
}
.profile-grid-lite span, .mini-soft span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.profile-grid-lite strong, .mini-soft strong { display:block; margin-top:6px; font-size:16px; }
.table-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tiny-avatar {
  width: 34px;
  height: 34px;
  font-size: 13px;
}
.small-text { font-size: 12px; }
.click-row { cursor: pointer; }
.click-row:hover td { background: #f8fbff; }
.org-chart-wrap {
  overflow-x: auto;
  padding: 8px 2px 12px;
}
.org-chart-tree, .org-children {
  list-style: none;
  margin: 0;
  padding: 0;
}
.org-chart-tree {
  display: flex;
  justify-content: center;
}
.org-chart-tree > .org-node {
  padding-top: 0;
}
.org-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 0;
  animation: revealUp .55s ease both;
}
.org-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 20px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(124,58,237,.25), rgba(30,94,255,.35));
}
.org-root::before { display: none; }
.org-children {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  padding-top: 24px;
}
.org-children::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(15,159,149,.18), rgba(30,94,255,.35), rgba(124,58,237,.18));
}
.org-card {
  position: relative;
  width: 236px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.org-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: #bfd2f4;
  box-shadow: 0 24px 40px rgba(31, 71, 147, 0.14);
}
.org-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -24px auto;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(30,94,255,.10), transparent 68%);
}
.org-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.org-avatar {
  width: 42px;
  height: 42px;
  box-shadow: 0 12px 24px rgba(30, 94, 255, 0.16);
}
.org-role { color: var(--text-2); font-weight: 700; }
.org-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.org-report-pill {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
}
@media (max-width: 960px) {
  .profile-grid-lite { grid-template-columns: 1fr; }
  .org-card { width: 200px; }
  .org-children { gap: 8px; }
}


/* ===== Project management module ===== */
.project-progress {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(180deg, #edf3fb, #e6eef8);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}
.project-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  box-shadow: 0 10px 18px rgba(30, 94, 255, 0.18);
}
.project-form-stack {
  display: grid;
  gap: 14px;
}
.project-member-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.project-member-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: var(--shadow-sm);
}
.project-member-check input {
  width: auto;
  margin-top: 3px;
}
.member-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.member-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}
.project-inline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.project-inline-edit {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: var(--shadow-sm);
}
.project-mini-form {
  display: grid;
  gap: 12px;
}
.calendar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.project-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 12px;
  margin-top: 18px;
}
.project-calendar-head {
  padding: 0 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.project-calendar-day {
  min-height: 150px;
  display: grid;
  align-content: flex-start;
  gap: 8px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: var(--shadow-sm);
}
.project-calendar-day.is-other-month {
  opacity: 0.58;
  background: #fbfdff;
}
.project-calendar-day.is-today {
  border-color: #bed5ff;
  box-shadow: 0 18px 34px rgba(30, 94, 255, 0.12);
}
.project-calendar-date {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.project-calendar-count {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}
.project-calendar-event {
  display: grid;
  gap: 6px;
  padding: 9px 10px;
  border-radius: 16px;
  border: 1px solid #d7e6ff;
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
  color: var(--text);
}
.project-calendar-event strong {
  font-size: 12px;
  line-height: 1.4;
}
.project-calendar-event:hover {
  border-color: #bfd4ff;
}
@media (max-width: 1180px) {
  .project-member-check-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-calendar-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .project-calendar-head { display: none; }
}
@media (max-width: 760px) {
  .project-member-check-grid, .project-inline-grid, .project-calendar-grid { grid-template-columns: 1fr; }
  .project-calendar-day { min-height: auto; }
}


.avatar-photo{padding:0;overflow:hidden;background:#e8eefc;color:transparent}
.avatar-photo img{width:100%;height:100%;object-fit:cover;display:block}
.info-help{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;border:1px solid var(--line-strong);font-size:11px;color:var(--muted);margin-left:6px;cursor:help;background:#fff}
.project-compact .hero-title{font-size:2rem}
.project-compact .card,.project-compact .metric-card,.project-compact .soft-card{padding:16px;border-radius:18px}
.project-compact .summary-grid{gap:12px}
.project-compact .summary-tile{padding:12px 14px}
.user-picker{position:relative}
.user-picker-input{padding-right:40px}
.user-picker-results{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-md);z-index:30;max-height:260px;overflow:auto;display:none}
.user-picker.open .user-picker-results{display:block}
.user-picker-item{display:flex;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line);cursor:pointer}
.user-picker-item:last-child{border-bottom:none}
.user-picker-item:hover{background:#f8fbff}
.user-picker-meta{display:flex;flex-direction:column;gap:2px;font-size:12px;color:var(--muted)}
.user-picker-selected{margin-top:8px;display:flex;gap:8px;flex-wrap:wrap}
.user-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;background:#edf4ff;color:var(--primary);font-weight:600}
.user-chip button{min-height:auto;padding:0;border:none;background:none;color:var(--primary);box-shadow:none}
.inline-hint{font-size:12px;color:var(--muted)}
.table-person .avatar-circle{flex:0 0 auto}

.avatar-photo {
  padding: 0;
  overflow: hidden;
  background: #e8eefc;
  color: transparent;
  border-radius: 999px;
  flex-shrink: 0;
}
.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 999px;
}
.info-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  color: var(--muted);
  margin-left: 6px;
  cursor: help;
  background: #fff;
  vertical-align: middle;
}
.info-help::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(260px, 75vw);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  z-index: 60;
}
.info-help:hover::after,
.info-help:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}
.user-picker {
  position: relative;
}
.user-picker-input {
  padding-right: 40px;
}
.user-picker-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  z-index: 30;
  max-height: 280px;
  overflow: auto;
  display: none;
}
.user-picker.open .user-picker-results {
  display: block;
}
.user-picker-item {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
}
.user-picker-item:last-child {
  border-bottom: none;
}
.user-picker-item:hover,
.user-picker-item.active {
  background: #f8fbff;
}
.user-picker-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}
.user-picker-selected {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.user-picker-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
}


.chart-wrap{position:relative;min-height:320px}
.award-wall{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}
.award-card{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,var(--surface),var(--surface-soft));box-shadow:var(--shadow-sm)}
.award-icon{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;font-size:24px;flex:none}
.award-photo img,.award-photo{width:56px;height:56px;border-radius:18px;object-fit:cover;overflow:hidden}
body.theme-dark{--bg:#08111f;--bg-2:#0d1728;--surface:#101c2f;--surface-soft:#142237;--text:#ebf3ff;--text-2:#cad6ea;--muted:#9db0cc;--line:#24344d;--line-strong:#314664;background:linear-gradient(180deg,#07101d 0%,#0b1525 100%)}
body.theme-dark .sidebar,body.theme-dark .topbar,body.theme-dark .card,body.theme-dark .soft-card,body.theme-dark .feature-card,body.theme-dark .mini-soft,body.theme-dark input,body.theme-dark select,body.theme-dark textarea{background:#101c2f;color:var(--text);border-color:var(--line)}
body.theme-dark .sidebar-company-card{background:linear-gradient(145deg,#0d2344,#12366d 48%,#12698f 100%)}
body.theme-dark .notification-btn,body.theme-dark .avatar-pill{background:#0f1a2c}
body.theme-dark .btn-outline{background:#13243a;color:#d7e7ff;border-color:#36527e}
body.theme-dark .muted,body.theme-dark .small-text{color:var(--muted)}


body[data-theme="dark"]{background:linear-gradient(180deg,#07101d 0%,#0b1525 100%)}
.user-picker-item{width:100%;text-align:left;background:#fff;border:0}
body.theme-dark .user-picker-results, body[data-theme="dark"] .user-picker-results{background:#101c2f;border-color:var(--line)}
body.theme-dark .user-picker-item, body[data-theme="dark"] .user-picker-item{background:#101c2f;color:var(--text)}
body.theme-dark .user-picker-item:hover, body.theme-dark .user-picker-item.active, body[data-theme="dark"] .user-picker-item:hover, body[data-theme="dark"] .user-picker-item.active{background:#14263d}
.chart-wrap canvas{display:block;width:100% !important;height:100% !important;min-height:320px}
.payslip-shell{max-width:980px;margin:0 auto;padding:24px;background:#fff;color:#111827}
.payslip-header{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:start;border-bottom:2px solid #dbe5f0;padding-bottom:14px;margin-bottom:18px}
.payslip-title{font-size:28px;font-weight:800;margin:0}
.payslip-company{font-size:13px;color:#4b5563;line-height:1.5}
.payslip-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.payslip-cell{border:1px solid #dbe5f0;border-radius:12px;padding:10px 12px;background:#f8fbff}
.payslip-cell span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;margin-bottom:4px}
.payslip-cell strong{font-size:14px;color:#111827}
.payslip-table{width:100%;border-collapse:collapse;margin-top:10px}
.payslip-table th,.payslip-table td{border:1px solid #dbe5f0;padding:10px 12px;vertical-align:top}
.payslip-table th{background:#eef4ff;font-size:12px;text-transform:uppercase;letter-spacing:.05em}
.payslip-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.payslip-note{font-size:12px;color:#6b7280;margin-top:18px;line-height:1.6}
@media print{body{background:#fff!important}.app-shell,.topbar,.sidebar,.page-shell>.page-header-grid,.page-shell>.hero-panel,.page-shell>.stat-row,.page-shell>.grid-2,.page-shell>.section-head,.actions,.notification-btn,.avatar-pill,.topbar-tools,.topbar-right .status-strip,.topbar-right .alert,.page-note,.btn{display:none!important}.main-content,.content-inner,.page-shell{padding:0!important;margin:0!important}.card{box-shadow:none!important;border:0!important;padding:0!important;background:#fff!important}.payslip-shell{padding:0!important;max-width:none!important}}
.award-library-toolbar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-bottom:16px}
.award-library-toolbar input,.award-library-toolbar select{max-width:320px}
.award-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.award-manage-card{display:grid;gap:10px}
.award-link{display:block;color:inherit;text-decoration:none}
.award-detail-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:18px}
.live-filter-empty{padding:14px;border:1px dashed var(--line);border-radius:14px;color:var(--muted);margin-top:12px}

body.theme-dark, body[data-theme="dark"] { color: var(--text); }
body.theme-dark .feature-card, body.theme-dark .summary-tile, body.theme-dark .sidebar-panel, body.theme-dark .doc-card, body.theme-dark .pay-card, body[data-theme="dark"] .feature-card, body[data-theme="dark"] .summary-tile, body[data-theme="dark"] .sidebar-panel, body[data-theme="dark"] .doc-card, body[data-theme="dark"] .pay-card { background: linear-gradient(180deg,#101c2f,#13233a); color: var(--text); border-color: var(--line); }
body.theme-dark .feature-card h1, body.theme-dark .feature-card h2, body.theme-dark .feature-card h3, body.theme-dark .feature-card h4, body.theme-dark .card h1, body.theme-dark .card h2, body.theme-dark .card h3, body.theme-dark .card h4, body.theme-dark .soft-card h1, body.theme-dark .soft-card h2, body.theme-dark .soft-card h3, body.theme-dark .soft-card h4, body.theme-dark .summary-tile strong, body.theme-dark .sidebar-panel, body.theme-dark .sidebar-kpi-value, body[data-theme="dark"] .feature-card h1, body[data-theme="dark"] .feature-card h2, body[data-theme="dark"] .feature-card h3, body[data-theme="dark"] .feature-card h4, body[data-theme="dark"] .card h1, body[data-theme="dark"] .card h2, body[data-theme="dark"] .card h3, body[data-theme="dark"] .card h4, body[data-theme="dark"] .soft-card h1, body[data-theme="dark"] .soft-card h2, body[data-theme="dark"] .soft-card h3, body[data-theme="dark"] .soft-card h4, body[data-theme="dark"] .summary-tile strong, body[data-theme="dark"] .sidebar-panel, body[data-theme="dark"] .sidebar-kpi-value { color: var(--text) !important; }
body.theme-dark p, body.theme-dark li, body.theme-dark td, body.theme-dark th, body.theme-dark label, body.theme-dark .section-sub, body.theme-dark .meta-label, body.theme-dark .small, body.theme-dark .small-text, body.theme-dark .feature-card p, body.theme-dark .sidebar-kpi-sub, body[data-theme="dark"] p, body[data-theme="dark"] li, body[data-theme="dark"] td, body[data-theme="dark"] th, body[data-theme="dark"] label, body[data-theme="dark"] .section-sub, body[data-theme="dark"] .meta-label, body[data-theme="dark"] .small, body[data-theme="dark"] .small-text, body[data-theme="dark"] .feature-card p, body[data-theme="dark"] .sidebar-kpi-sub { color: var(--text-2) !important; }
body.theme-dark table tbody tr:nth-child(odd), body[data-theme="dark"] table tbody tr:nth-child(odd) { background: rgba(255,255,255,0.015); }
body.theme-dark .mini-soft, body[data-theme="dark"] .mini-soft { background:#0f1a2c; color:var(--text); border-color:var(--line); }

body.theme-dark .hero-panel, body[data-theme="dark"] .hero-panel { background: radial-gradient(circle at top right, rgba(77,136,255,0.18), transparent 23%), linear-gradient(180deg,#101c2f,#13233a); color: var(--text); border-color: var(--line); }
body.theme-dark .hero-title, body.theme-dark .hero-copy, body[data-theme="dark"] .hero-title, body[data-theme="dark"] .hero-copy { color: var(--text) !important; }


/* ===== v5 fixes: dark theme contrast, leave breakdown, calendar overflow ===== */
.leave-breakdown-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.leave-breakdown-tile{padding:14px 16px;border-radius:18px;border:1px solid var(--line);background:linear-gradient(180deg,#ffffff,#f8fbff);display:grid;gap:6px;box-shadow:var(--shadow-sm)}
.leave-breakdown-tile span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.leave-breakdown-tile strong{font-size:22px;color:var(--text)}
.leave-breakdown-tile small{color:var(--text-2);line-height:1.5}
.project-calendar-day{min-height:190px}
.project-calendar-events{display:grid;gap:8px;max-height:220px;overflow:auto;padding-right:4px}
.project-calendar-events::-webkit-scrollbar{width:8px}
.project-calendar-events::-webkit-scrollbar-thumb{background:rgba(125,144,174,.45);border-radius:999px}
body.theme-dark .auth-wrap,body[data-theme="dark"] .auth-wrap,body.theme-dark .auth-showcase,body[data-theme="dark"] .auth-showcase,body.theme-dark .auth-card,body[data-theme="dark"] .auth-card,body.theme-dark .auth-feature,body[data-theme="dark"] .auth-feature,body.theme-dark .auth-meta span,body[data-theme="dark"] .auth-meta span,body.theme-dark .profile-grid-lite div,body[data-theme="dark"] .profile-grid-lite div,body.theme-dark .list-clean li,body[data-theme="dark"] .list-clean li,body.theme-dark .table-wrap table,body[data-theme="dark"] .table-wrap table,body.theme-dark .page-note,body[data-theme="dark"] .page-note,body.theme-dark .profile-hero,body[data-theme="dark"] .profile-hero,body.theme-dark .kpi-chip,body[data-theme="dark"] .kpi-chip,body.theme-dark .leave-breakdown-tile,body[data-theme="dark"] .leave-breakdown-tile{background:linear-gradient(180deg,#101c2f,#13233a) !important;color:var(--text) !important;border-color:var(--line) !important}
body.theme-dark .auth-title,body[data-theme="dark"] .auth-title,body.theme-dark .auth-feature strong,body[data-theme="dark"] .auth-feature strong,body.theme-dark .profile-grid-lite strong,body[data-theme="dark"] .profile-grid-lite strong,body.theme-dark .list-clean li strong,body[data-theme="dark"] .list-clean li strong,body.theme-dark .leave-breakdown-tile strong,body[data-theme="dark"] .leave-breakdown-tile strong,body.theme-dark .table-wrap td strong,body[data-theme="dark"] .table-wrap td strong{color:var(--text) !important}
body.theme-dark .auth-copy,body[data-theme="dark"] .auth-copy,body.theme-dark .auth-meta span,body[data-theme="dark"] .auth-meta span,body.theme-dark .profile-grid-lite span,body[data-theme="dark"] .profile-grid-lite span,body.theme-dark .list-clean li span,body[data-theme="dark"] .list-clean li span,body.theme-dark .leave-breakdown-tile span,body[data-theme="dark"] .leave-breakdown-tile span,body.theme-dark .leave-breakdown-tile small,body[data-theme="dark"] .leave-breakdown-tile small,body.theme-dark .table-wrap td,body[data-theme="dark"] .table-wrap td,body.theme-dark .table-wrap th,body[data-theme="dark"] .table-wrap th,body.theme-dark .table-wrap a,body[data-theme="dark"] .table-wrap a{color:var(--text-2) !important}
body.theme-dark .table-wrap th,body[data-theme="dark"] .table-wrap th{background:#0d1728 !important}
body.theme-dark .click-row:hover td,body[data-theme="dark"] .click-row:hover td,body.theme-dark .list-clean li:hover,body[data-theme="dark"] .list-clean li:hover{background:#152742 !important}
body.theme-dark .project-calendar-day,body[data-theme="dark"] .project-calendar-day{background:linear-gradient(180deg,#101c2f,#13233a);border-color:var(--line)}
body.theme-dark .project-calendar-event,body[data-theme="dark"] .project-calendar-event{background:linear-gradient(180deg,#13243a,#172c46);border-color:#284162}
body.theme-dark .project-calendar-count,body[data-theme="dark"] .project-calendar-count{background:#14263d;color:#d9e7ff}
