:root {
  --bg: #f3f4f6;
  --sidebar: #111111;
  --sidebar-2: #1a1a1a;
  --text: #111;
  --muted: #6b7280;
  --card: #fff;
  --line: #ececec;
  --accent: #ff5a1f;
  --green: #16a34a;
  --red: #ef4444;
  --amber: #f59e0b;
  --orange: #f97316;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, Segoe UI, system-ui, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
.topbar {
  height: 56px; background: #0f0f0f; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 18px; position: sticky; top: 0; z-index: 30;
}
.brand { font-weight: 800; font-size: 22px; letter-spacing: -0.6px; flex-shrink: 0; }
.brand span { color: var(--accent); }
.brand small { font-weight: 500; opacity: .7; margin-left: 8px; font-size: 12px; }
.search {
  flex: 1; max-width: 420px; margin: 0 auto; background: #2a2a2a; border: 0; color: #fff;
  border-radius: 999px; padding: 10px 16px; width: 100%;
}
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-left: auto; flex-shrink: 0; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #a855f7; display: grid; place-items: center; font-weight: 700;
}
.shell { display: flex; min-height: calc(100vh - 56px); }
.sidebar {
  width: 250px; background: var(--sidebar); color: #ddd; padding: 16px 12px; display: flex; flex-direction: column;
}
.company-pill {
  background: #fff; color: #111; border-radius: 12px; padding: 10px 12px; font-weight: 700; font-size: 12px; margin-bottom: 14px;
}
.nav a, .nav details summary {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #cfcfcf; cursor: pointer;
}
.nav a.active, .nav a:hover, .nav details summary:hover { background: #2a2a2a; color: #fff; }
.nav .beta { background: #eab308; color: #111; font-size: 10px; font-weight: 800; border-radius: 999px; padding: 2px 7px; margin-left: auto; }
.nav details { border-radius: 10px; }
.nav details[open] { background: #191919; }
.nav details summary { list-style: none; }
.nav details a { padding-left: 36px; font-size: 13px; }
.nav .grow { flex: 1; }
.sidebar .settings-link { margin-top: auto; }
.main { flex: 1; padding: 22px 26px 40px; }
.page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.page-head h1 { margin: 0; font-size: 28px; font-weight: 700; }
.btn {
  border: 0; background: #171717; color: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn.light { background: #fff; color: #111; border: 1px solid #e5e7eb; }
.btn.green { background: #dcfce7; color: #166534; }
.btn.red { background: #ef4444; }
.btn.ghost { background: transparent; color: #111; border: 1px solid #e5e7eb; }
.card { background: var(--card); border-radius: 16px; padding: 18px; box-shadow: 0 1px 0 rgba(0,0,0,.03); }
.hello h2 { margin: 0; font-size: 28px; }
.hello p { color: var(--muted); margin: 6px 0 10px; }
.hello .co { color: var(--accent); font-weight: 800; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: 160px 1fr; gap: 8px; align-items: center; }
.kpi { display: flex; gap: 22px; flex-wrap: wrap; }
.kpi div { min-width: 70px; }
.kpi small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .4px; }
.kpi b { font-size: 22px; }
.bar { width: 4px; height: 28px; border-radius: 4px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.tabs { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.tabs a, .chip {
  background: #fff; border: 1px solid #eee; border-radius: 999px; padding: 7px 12px; font-size: 13px;
}
.tabs a.active { background: #111; color: #fff; border-color: #111; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: #6b7280; font-weight: 600; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 8px; border-bottom: 1px solid #f3f4f6; font-size: 14px; vertical-align: middle; }
.person { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.dot {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700;
}
select, input, textarea {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff;
}
label { font-size: 13px; font-weight: 600; display: block; margin: 10px 0 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.muted { color: var(--muted); font-size: 13px; }
.badge { border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; display: inline-block; }
.badge.in { background: #dcfce7; color: #166534; }
.badge.out { background: #ffedd5; color: #9a3412; }
.badge.ok { background: #dcfce7; color: #166534; }
.badge.no { background: #fee2e2; color: #991b1b; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.high { background: #fee2e2; color: #991b1b; }
.badge.med { background: #ffedd5; color: #9a3412; }
.badge.low { background: #dcfce7; color: #166534; }
.flash { background: #dcfce7; color: #166534; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; }
.form-tabs { display: flex; gap: 8px; margin: 16px 0; }
.form-tabs button { background: transparent; border: 1px solid transparent; padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.form-tabs button.active { background: #fff; border-color: #e5e7eb; }
.pane { display: none; }
.pane.active { display: block; }
.modal-bg { position: fixed; inset: 0; background: rgba(17,17,17,.45); display: none; place-items: center; z-index: 50; }
.modal-bg.open { display: grid; }
.modal { background: #fff; border-radius: 16px; width: min(720px, 94vw); padding: 20px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal .day { background: #fff; border-radius: 12px; min-height: 72px; padding: 8px; border: 1px solid #eee; }
.cal .day.present { background: #dcfce7; }
.cal .day.off { background: #e5e7eb; }
.cal .day.leave { background: #ffedd5; }
.cal .day.absent { background: #fecaca; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: #111; }
.login-card { width: 380px; background: #fff; border-radius: 16px; padding: 28px; }
.report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.report-card { border: 1px dashed #e5e7eb; border-radius: 16px; padding: 16px; background: #fff; }
.report-card h3 { margin: 8px 0; font-size: 16px; }
@media (max-width: 960px) {
  .sidebar { display: none; }
  .grid-2, .grid-3, .report-grid, .stats { grid-template-columns: 1fr; }
}

/* Pagination Styling */
.custom-pagination {
  box-sizing: border-box;
}
.custom-pagination a, .custom-pagination span {
  box-sizing: border-box;
}
nav[role="navigation"] svg {
  width: 14px !important;
  height: 14px !important;
  max-width: 14px !important;
  max-height: 14px !important;
  display: inline-block !important;
}

