/* ============================================================ tokens */
:root {
  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --ink: #101828;
  --muted: #475467;
  --muted-2: #667085;
  --line: #d5dbe3;
  --line-soft: #e7ecf2;
  --primary: #0b5ed7;
  --primary-dark: #084db0;
  --primary-soft: #e8f0fe;
  --success: #067647;
  --success-soft: #ecfdf3;
  --warning: #b54708;
  --warning-soft: #fffaeb;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --platinum: #5b21b6;
  --platinum-2: #7c3aed;
  --platinum-soft: #ede9fe;
  --gold: #92400e;
  --gold-2: #d97706;
  --gold-soft: #fef3c7;
  --silver: #475467;
  --silver-2: #98a2b3;
  --silver-soft: #eef2f6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 26px rgba(16, 24, 40, .035);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 2%, rgba(37, 99, 235, .11), transparent 27%),
    radial-gradient(circle at 92% 0%, rgba(124, 58, 237, .11), transparent 29%),
    radial-gradient(circle at 50% 100%, rgba(16, 185, 129, .08), transparent 34%),
    linear-gradient(135deg, #eef4ff 0%, #f8f3ff 42%, #eefbf6 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  background: linear-gradient(90deg, #2563eb, #7c3aed 35%, #06b6d4 68%, #10b981 86%, #f59e0b);
}

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

h1, h2, h3, p { margin: 0; }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon.xs { width: 13px; height: 13px; }
.icon.sm { width: 15px; height: 15px; }
.icon.lg { width: 22px; height: 22px; }

.muted { color: var(--muted); }
.danger-text { color: var(--danger); }
.up { color: var(--success); font-weight: 700; }

/* ============================================================ shell */
.app { min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: 248px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px 14px;
  background:
    radial-gradient(circle at 18% 0%, rgba(124, 58, 237, .42), transparent 34%),
    radial-gradient(circle at 88% 100%, rgba(6, 182, 212, .18), transparent 38%),
    linear-gradient(180deg, #0b1736 0%, #10214a 55%, #0b1736 100%);
  border-right: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 8px 0 34px rgba(15, 23, 42, .16);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #7c3aed, #2563eb 55%, #06b6d4);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .38);
}
.brand-mark .icon { width: 21px; height: 21px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 14.5px; letter-spacing: -.01em; color: #fff; }
.brand-text span { font-size: 11px; color: #9fb0d6; margin-top: 3px; }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label {
  margin: 14px 10px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #7186b5;
}
.nav-label:first-child { margin-top: 0; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 9px;
  color: #b9c6e6;
  font-size: 13.2px;
  font-weight: 550;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.nav-item .icon { width: 17px; height: 17px; color: #7f93c4; }
.nav-item[data-screen="dashboard"] .icon { color: #60a5fa; }
.nav-item[data-screen="installations"] .icon { color: #22d3ee; }
.nav-item[data-screen="schedule"] .icon { color: #fbbf24; }
.nav-item[data-screen="teams"] .icon { color: #34d399; }
.nav-item[data-screen="holidays"] .icon { color: #f472b6; }
.nav-item[data-screen="reports"] .icon { color: #a78bfa; }
.nav-item[data-screen="mobile"] .icon { color: #2dd4bf; }
.nav-item[data-screen="settings"] .icon { color: #94a3b8; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, .95), rgba(124, 58, 237, .92));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .32);
}
.nav-item.active .icon { color: #fff; }
.nav-count {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: #c7d2fe;
  font-size: 10.5px;
  font-weight: 700;
}
.nav-item.active .nav-count { background: rgba(255, 255, 255, .2); color: #fff; }

.sidebar-note {
  margin-top: auto;
  display: flex;
  gap: 9px;
  padding: 11px 10px;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 11px;
  background: rgba(255, 255, 255, .055);
}
.sidebar-note strong { display: block; font-size: 11.5px; color: #e0e7ff; }
.sidebar-note p { margin-top: 2px; font-size: 10.5px; color: #9fb0d6; line-height: 1.35; }
.mock-dot {
  width: 8px;
  height: 8px;
  margin-top: 3px;
  flex: none;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, .16);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.sidebar-user > div:nth-child(2) { min-width: 0; }
.sidebar-user strong { display: block; font-size: 12px; color: #fff; }
.sidebar-user span:not(.avatar) { display: block; font-size: 10.5px; color: #9fb0d6; }
.sidebar-user .iconbtn { margin-left: auto; color: #9fb0d6; }
.sidebar-user .iconbtn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidebar-user .avatar { background: linear-gradient(145deg, #7c3aed, #2563eb); color: #fff; }

.avatar {
  width: 34px;
  height: 34px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .02em;
}
.avatar.sm { width: 26px; height: 26px; font-size: 9px; }
.avatar.green { background: #d1fadf; color: #067647; }
.avatar.amber { background: #fef0c7; color: #b54708; }
.avatar.purple { background: #ede9fe; color: #5b21b6; }

.main { margin-left: 248px; min-width: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 12px 28px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .82), rgba(245, 243, 255, .76) 52%, rgba(238, 250, 255, .82));
  border-bottom: 1px solid rgba(147, 164, 191, .24);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .72);
  backdrop-filter: blur(12px);
}
.menu-btn { display: none; }
.topbar-title { min-width: 0; }
.topbar-title h1 { font-size: 19px; line-height: 1.2; letter-spacing: -.025em; }
.topbar-title p { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.topbar-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }

.search {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0 11px;
  height: 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #98a2b3;
}
.search .icon { width: 16px; height: 16px; }
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12.5px;
}
.search input::placeholder { color: #98a2b3; }
.top-search { width: 230px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: linear-gradient(135deg, #2563eb, #6d28d9);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 5px 14px rgba(37, 99, 235, .22);
  transition: background .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:hover { background: linear-gradient(135deg, #1d4ed8, #5b21b6); box-shadow: 0 7px 18px rgba(37, 99, 235, .28); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: rgba(255, 255, 255, .82); border-color: rgba(148, 163, 184, .42); color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: #fff; border-color: rgba(37, 99, 235, .35); }
.btn.small { min-height: 30px; padding: 5px 10px; font-size: 11.5px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.btn .icon { width: 16px; height: 16px; }

.iconbtn {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}
.iconbtn:hover { background: #f2f4f7; color: var(--ink); }
.iconbtn .icon { width: 18px; height: 18px; }

.bell-wrap { position: relative; }
.bell {
  position: relative;
  background: var(--surface);
  border-color: var(--line);
}
.bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
.bell-pop {
  position: absolute;
  top: 44px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .16);
  overflow: hidden;
}
.bell-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line-soft); }
.bell-pop-head strong { font-size: 13px; }
.bell-pop-foot { padding: 10px 14px; border-top: 1px solid var(--line-soft); text-align: center; }
.bell-pop-foot a { color: var(--primary); font-size: 12px; font-weight: 700; }

.avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px 2px 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
}
.avatar-name { font-size: 12px; font-weight: 700; padding-right: 6px; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(16, 24, 40, .4);
}

.content { padding: 24px 28px 60px; max-width: 1660px; margin: 0 auto; }

.screen { display: none; animation: screen-in .25s ease both; }
.screen.active { display: block; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

/* ============================================================ surfaces */
.card {
  background: linear-gradient(180deg, #ffffff 0%, #fdfdff 100%);
  border: 1px solid rgba(203, 213, 225, .72);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 26px rgba(37, 99, 235, .035);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.card:hover { border-color: rgba(147, 197, 253, .7); box-shadow: 0 2px 4px rgba(16, 24, 40, .04), 0 14px 34px rgba(37, 99, 235, .07); }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(37, 99, 235, .045), rgba(124, 58, 237, .025) 42%, rgba(255, 255, 255, 0) 78%);
}
.card-head h2 {
  position: relative;
  padding-left: 10px;
  font-size: 15px;
  letter-spacing: -.015em;
}
.card-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2563eb, #7c3aed);
}
.card-sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.card-body { padding: 18px; }
.card-foot { display: flex; justify-content: center; padding: 11px 18px; border-top: 1px solid var(--line-soft); }
.card-foot a, .link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--primary);
  font-size: 11.8px;
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
}
.link:hover { text-decoration: underline; }

.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.mock-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: rgba(255, 255, 255, .55);
  color: var(--muted);
  font-size: 11.5px;
}
.mock-strip .mock-dot { width: 7px; height: 7px; box-shadow: none; }
.mock-spacer { flex: 1; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.page-head h2 { position: relative; padding-bottom: 8px; font-size: 22px; letter-spacing: -.03em; }
.page-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4);
}
.page-head p { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================ hero */
.hero-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .20), transparent 27%),
    radial-gradient(circle at 8% 100%, rgba(6, 182, 212, .28), transparent 34%),
    linear-gradient(120deg, #1d4ed8 0%, #5b21b6 54%, #0e7490 100%);
  color: #fff;
  box-shadow: 0 20px 44px rgba(37, 99, 235, .25);
}
.hero-banner::before,
.hero-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  pointer-events: none;
}
.hero-banner::before { width: 230px; height: 230px; right: -70px; top: -120px; }
.hero-banner::after { width: 130px; height: 130px; right: 150px; bottom: -80px; }
.hero-copy { position: relative; z-index: 1; max-width: 720px; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  color: #e0e7ff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}
.hero-pill .mock-dot { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, .16); }
.hero-copy h2 { margin-top: 10px; font-size: 26px; letter-spacing: -.035em; line-height: 1.15; }
.hero-copy p { margin-top: 6px; max-width: 620px; color: #dbeafe; font-size: 12.5px; line-height: 1.55; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hero-primary { background: #fff; color: #1d4ed8; box-shadow: 0 8px 20px rgba(0, 0, 0, .16); }
.hero-primary:hover { background: #eff6ff; }
.hero-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; box-shadow: none; }
.hero-ghost:hover { background: rgba(255, 255, 255, .2); }
.hero-stats { position: relative; z-index: 1; display: flex; gap: 10px; align-items: center; }
.hero-stats > div {
  min-width: 76px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  text-align: center;
  backdrop-filter: blur(5px);
}
.hero-stats strong { display: block; font-size: 24px; letter-spacing: -.04em; line-height: 1.1; }
.hero-stats span { display: block; margin-top: 2px; color: #dbeafe; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

/* ============================================================ kpi */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
}
.kpi {
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 11px;
  padding: 15px 14px;
  align-items: flex-start;
}
.kpi::after {
  content: "";
  position: absolute;
  width: 74px;
  height: 74px;
  right: -24px;
  top: -28px;
  border-radius: 50%;
  background: currentColor;
  opacity: .07;
  pointer-events: none;
}
.kpi:nth-child(1) { background: linear-gradient(135deg, #eff6ff, #dbeafe); border-color: #bfdbfe; color: #1d4ed8; }
.kpi:nth-child(2) { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fde68a; color: #b45309; }
.kpi:nth-child(3) { background: linear-gradient(135deg, #ecfdf3, #d1fadf); border-color: #a6f4c5; color: #047857; }
.kpi:nth-child(4) { background: linear-gradient(135deg, #fef3f2, #fee4e2); border-color: #fecdca; color: #b42318; }
.kpi:nth-child(5) { background: linear-gradient(135deg, #f8fafc, #eef2f6); border-color: #d0d5dd; color: #475467; }
.kpi:nth-child(6) { background: linear-gradient(135deg, #f5f3ff, #ede9fe); border-color: #ddd6fe; color: #6d28d9; }
.kpi-icon {
  width: 37px;
  height: 37px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, .66);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 4px 10px rgba(16, 24, 40, .04);
}
.kpi-icon .icon { width: 18px; height: 18px; }
.kpi-icon.blue { background: var(--primary-soft); color: var(--primary); }
.kpi-icon.amber { background: var(--warning-soft); color: var(--warning); }
.kpi-icon.green { background: var(--success-soft); color: var(--success); }
.kpi-icon.red { background: var(--danger-soft); color: var(--danger); }
.kpi-icon.slate { background: var(--silver-soft); color: var(--silver); }
.kpi-icon.purple { background: var(--platinum-soft); color: var(--platinum); }
.kpi-value { color: var(--ink); font-size: 25px; font-weight: 780; line-height: 1.05; letter-spacing: -.035em; }
.kpi-label { margin-top: 2px; font-size: 11.5px; color: #475467; }
.kpi-note { margin-top: 3px; font-size: 10.5px; color: #667085; }

/* ============================================================ tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(239, 246, 255, .8), rgba(245, 243, 255, .55), rgba(255, 255, 255, 0));
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .065em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.3px;
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: linear-gradient(90deg, rgba(239, 246, 255, .55), rgba(245, 243, 255, .3), transparent); }
.table.compact td { padding: 9px 12px; font-size: 11.8px; }
.table.compact th { padding: 8px 12px; }

.gi-cell { display: flex; flex-direction: column; min-width: 142px; }
.gi-cell strong { font-size: 12.5px; }
.gi-cell span { margin-top: 1px; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.package-cell { display: flex; gap: 4px; flex-wrap: wrap; }
.team-cell { display: flex; align-items: center; gap: 7px; min-width: 112px; }
.team-cell strong { display: block; font-size: 11.8px; }
.team-cell span:not(.avatar) { display: block; font-size: 10px; color: var(--muted); }
.team-load strong { display: block; font-size: 11.3px; white-space: nowrap; }
.team-load span { display: block; font-size: 9.3px; color: var(--muted); white-space: nowrap; }
.day-cell { display: flex; flex-direction: column; min-width: 95px; }
.day-cell strong { font-size: 11.8px; }
.day-cell span { font-size: 10px; color: var(--muted); }
.progress-cell { min-width: 118px; }
.progress-cell .progress { width: 92px; }
.progress-cell > span { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.progress-cell .schedule-note { color: #98a2b3; font-size: 9.5px; }
.monitor-table th, .monitor-table td { padding-left: 9px; padding-right: 9px; }
.monitor-table .progress-cell { min-width: 138px; }
.monitor-table .progress-cell .progress { width: 86px; }
.status-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.status-time { font-size: 9.5px; color: var(--muted); white-space: nowrap; }
.monitor-table .gi-cell span { max-width: 230px; }
.update-cell { display: flex; flex-direction: column; min-width: 64px; white-space: nowrap; }
.update-cell strong { font-size: 11.5px; }
.update-cell span { font-size: 10px; color: var(--muted); }

.progress {
  height: 6px;
  border-radius: 999px;
  background: #edf1f6;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #2f80ed);
  transition: width .25s ease;
}
.progress.large { height: 9px; }

/* ============================================================ badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.3px;
  font-weight: 750;
  white-space: nowrap;
  line-height: 1.5;
}
.badge .icon { width: 11px; height: 11px; }
.badge.package { background: #f2f4f7; color: #344054; border: 1px solid #e4e7ec; }
.badge.soft { background: #f8fafc; color: var(--muted); border: 1px solid var(--line); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.success { background: var(--success-soft); color: var(--success); }
.badge.warn { background: var(--warning-soft); color: var(--warning); }

.tier-platinum { background: var(--platinum-soft); color: var(--platinum); }
.tier-gold { background: var(--gold-soft); color: var(--gold); }
.tier-silver { background: var(--silver-soft); color: var(--silver); }

.status-dikerjakan { background: var(--primary-soft); color: var(--primary); }
.status-terjadwal { background: #eef4ff; color: #3538cd; }
.status-selesai { background: var(--success-soft); color: var(--success); }
.status-terlambat { background: var(--danger-soft); color: var(--danger); }
.status-ditunda { background: var(--warning-soft); color: var(--warning); }
.status-belum-dijadwalkan { background: var(--silver-soft); color: var(--silver); }
.status-batal { background: #f2f4f7; color: #475467; }

/* ============================================================ segmented + filters */
.segmented, .notif-filter {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
}
.segmented button, .notif-filter button {
  padding: 5px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}
.segmented button.active, .notif-filter button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}

/* ============================================================ notifications */
.notif-filter { margin: 10px 14px 0; }
.notif-list { padding: 2px 14px 10px; }
.notif-item {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread {
  margin: 0 -6px 0;
  padding-left: 6px;
  padding-right: 6px;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(37, 99, 235, .075), rgba(124, 58, 237, .035) 60%, transparent);
}
.notif-item.unread::after {
  content: "";
  position: absolute;
  top: 17px;
  right: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}
.notif-icon {
  width: 31px;
  height: 31px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
}
.notif-icon .icon { width: 15px; height: 15px; }
.notif-icon.green { background: var(--success-soft); color: var(--success); }
.notif-icon.amber { background: var(--warning-soft); color: var(--warning); }
.notif-icon.red { background: var(--danger-soft); color: var(--danger); }
.notif-icon.slate { background: var(--silver-soft); color: var(--silver); }
.notif-body { min-width: 0; padding-right: 9px; }
.notif-body strong { display: block; font-size: 11.8px; line-height: 1.35; }
.notif-body p { margin-top: 2px; font-size: 10.8px; color: var(--muted); line-height: 1.35; }
.notif-body time { display: block; margin-top: 3px; font-size: 9.8px; color: #98a2b3; }
.notif-item button { position: absolute; inset: 0; background: transparent; border: 0; cursor: pointer; }

/* ============================================================ attention */
.attention-list { padding: 5px 16px 12px; }
.attention-item {
  display: flex;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.attention-item:last-child { border-bottom: 0; }
.attention-flag {
  width: 4px;
  flex: none;
  border-radius: 999px;
  background: var(--warning);
}
.attention-flag.red { background: var(--danger); }
.attention-flag.amber { background: var(--warning); }
.attention-flag.slate { background: var(--silver-2); }
.attention-body { min-width: 0; flex: 1; }
.attention-body strong { display: block; font-size: 11.8px; }
.attention-body p { margin-top: 2px; font-size: 10.7px; color: var(--muted); }
.attention-body button { margin-top: 5px; padding: 0; border: 0; background: none; color: var(--primary); font-size: 10.5px; font-weight: 750; }

/* ============================================================ gantt */
.gantt { padding: 10px 18px 16px; }
.gantt-head { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; align-items: center; padding-bottom: 5px; }
.gantt-days { display: grid; grid-template-columns: repeat(7, 1fr); }
.gantt-day {
  padding: 3px 0;
  border-left: 1px solid var(--line-soft);
  text-align: center;
  font-size: 9.5px;
  color: var(--muted);
  line-height: 1.35;
}
.gantt-day strong { display: block; font-size: 10.5px; color: var(--ink); }
.gantt-day.weekend { background: #f8fafc; color: #98a2b3; }
.gantt-day.weekend strong { color: #98a2b3; }
.gantt-day .today-label { display: block; width: max-content; margin: 2px auto 0; padding: 1px 4px; border-radius: 4px; background: var(--primary); color: #fff; font-size: 7px; font-weight: 750; letter-spacing: .02em; }
.gantt-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 6px; }
.gantt-label { min-width: 0; }
.gantt-label strong { display: block; font-size: 10.8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt-label span { display: block; font-size: 9.5px; color: var(--muted); }
.gantt-track {
  position: relative;
  height: 31px;
  border-radius: 7px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(14.2857% - 1px), #eef2f6 calc(14.2857% - 1px) 14.2857%),
    #fbfcfe;
}
.gantt-track .weekend-shade {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(148, 163, 184, .07);
}
.gantt-bar {
  position: absolute;
  top: 4px;
  height: 23px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 7px;
  overflow: hidden;
  color: #fff;
  font-size: 9.3px;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(16, 24, 40, .12);
}
.gantt-bar.tier-platinum, .gantt-bar.platinum { background: linear-gradient(90deg, var(--platinum), var(--platinum-2)); }
.gantt-bar.tier-gold, .gantt-bar.gold { background: linear-gradient(90deg, #92400e, var(--gold-2)); }
.gantt-bar.tier-silver, .gantt-bar.silver { background: linear-gradient(90deg, #475467, #98a2b3); }
.gantt-bar.overdue { background: linear-gradient(90deg, #912018, #f04438); }
.gantt-bar .bar-progress {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(255, 255, 255, .24);
}
.gantt-bar span { position: relative; }
.gantt-empty {
  position: absolute;
  inset: 4px 7px;
  display: flex;
  align-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 0 8px;
  color: #98a2b3;
  font-size: 9.3px;
}
.today-line {
  position: absolute;
  top: -9px;
  bottom: -5px;
  width: 2px;
  border-radius: 2px;
  background: var(--primary);
  z-index: 3;
  pointer-events: none;
}
.today-line::before { display: none; }
.legend { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9.8px; white-space: nowrap; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot.platinum, .tier-dot.platinum { background: var(--platinum); }
.dot.gold, .tier-dot.gold { background: var(--gold-2); }
.dot.silver, .tier-dot.silver { background: var(--silver-2); }
.dot.danger { background: var(--danger); }
.dot.green { background: var(--success); }
.dot.amber { background: #f79009; }
.dot.slate { background: #98a2b3; }

/* ============================================================ map */
.map-card .card-head { border-bottom: 1px solid var(--line-soft); }
.map-canvas { position: relative; padding: 8px 12px 10px; }
.map-canvas svg { display: block; width: 100%; height: auto; border-radius: 10px; }
.map-label { fill: #98a2b3; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.map-pin { color: var(--success); }
.map-pin.ok { color: var(--success); }
.map-pin.work { color: #f79009; }
.map-pin.late { color: var(--danger); }
.map-pin.idle { color: #98a2b3; }
.map-pin circle { fill: currentColor; }
.map-pin path { stroke: currentColor; stroke-width: 1.6; }
.map-legend { display: flex; gap: 10px; flex-wrap: wrap; padding: 2px 6px 0; }
.map-legend span { display: inline-flex; gap: 4px; align-items: center; font-size: 9.5px; color: var(--muted); }

/* ============================================================ tier chart */
.tier-chart { display: flex; align-items: center; gap: 18px; padding: 18px; }
.donut {
  width: 126px;
  height: 126px;
  flex: none;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--platinum) 0 43.75%, var(--gold-2) 43.75% 81.25%, var(--silver-2) 81.25% 100%);
}
.donut::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--surface); }
.donut-center { position: relative; text-align: center; line-height: 1.1; }
.donut-center strong { display: block; font-size: 24px; letter-spacing: -.04em; }
.donut-center span { font-size: 10px; color: var(--muted); }
.tier-legend { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.tier-legend > div { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.tier-legend strong { font-weight: 700; }
.tier-legend span:last-child { margin-left: auto; color: var(--muted); font-size: 10px; }
.tier-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.insight {
  display: flex;
  gap: 8px;
  margin: 0 18px 16px;
  padding: 9px 10px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: #1849a9;
  font-size: 10.5px;
  line-height: 1.4;
}
.insight .icon { width: 14px; height: 14px; margin-top: 1px; }
.insight.warn { background: var(--warning-soft); color: #93370d; }

/* ============================================================ bottleneck */
.bottleneck-list { padding: 9px 18px 16px; display: flex; flex-direction: column; gap: 11px; }
.bottleneck-item { display: flex; flex-direction: column; gap: 4px; }
.bottleneck-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bottleneck-top strong { font-size: 11.3px; }
.bottleneck-top span { font-size: 10px; color: var(--muted); white-space: nowrap; }
.bottleneck-item .progress { height: 5px; }
.bottleneck-item small { font-size: 9.8px; color: #98a2b3; }

/* ============================================================ region + holidays */
.region-list { padding: 12px 18px 16px; display: flex; flex-direction: column; gap: 11px; }
.region-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) 38px; gap: 10px; align-items: center; }
.region-row span { font-size: 11.3px; color: var(--muted); }
.region-row strong { font-size: 11px; text-align: right; }
.region-list.wide { padding: 18px; gap: 14px; }
.region-list.wide .region-row { grid-template-columns: 150px minmax(0, 1fr) 46px; }
.region-list.wide .region-row span { font-size: 12.3px; color: var(--ink); }

.holiday-mini { display: flex; flex-direction: column; gap: 2px; padding: 6px 18px 4px; }
.holiday-mini > div { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.holiday-mini > div:last-child { border-bottom: 0; }
.holiday-mini strong { display: block; font-size: 11.5px; }
.holiday-mini p { font-size: 10px; color: var(--muted); }
.date-chip {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.date-chip small { font-size: 7px; letter-spacing: .06em; margin-top: 2px; }

/* ============================================================ filter + list */
.filter-card { margin-bottom: 18px; padding: 14px 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .search { flex: 1; min-width: 190px; max-width: 320px; height: 36px; }
.filters select {
  height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 11.5px;
  outline: none;
}
.filter-summary { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 10.5px; color: var(--muted); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-soft); font-size: 10.8px; color: var(--muted); }
.pagination > div { display: flex; gap: 4px; }

/* ============================================================ detail */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11.8px;
  font-weight: 650;
}
.back-link:hover { color: var(--ink); }
.back-link .icon { width: 14px; height: 14px; }

.detail-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  padding: 20px 22px;
  border-top: 4px solid var(--hero-accent, var(--primary));
  background:
    radial-gradient(circle at 94% 8%, rgba(124, 58, 237, .10), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8f5ff 48%, #eef7ff 100%);
}
.detail-hero::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -60px;
  bottom: -100px;
  border-radius: 50%;
  background: var(--hero-accent, var(--primary));
  opacity: .06;
  pointer-events: none;
}
.detail-title-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.detail-title-row h2 { font-size: 24px; letter-spacing: -.035em; margin-right: 2px; }
.detail-address { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--muted); font-size: 11.8px; }
.detail-address .icon { width: 14px; height: 14px; }
.detail-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.detail-meta > div { padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--line-soft); border-radius: 9px; }
.detail-meta span { display: block; font-size: 9.2px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: #98a2b3; }
.detail-meta strong { display: block; margin-top: 2px; font-size: 11.2px; }
.detail-hero-progress { display: flex; align-items: center; gap: 11px; }
.ring {
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(var(--ring-color, var(--primary)) calc(var(--p, 0) * 1%), #e8edf3 0);
}
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.ring strong { position: relative; font-size: 19px; letter-spacing: -.04em; }
.ring span { position: relative; display: block; margin-top: -1px; font-size: 8.5px; color: var(--muted); text-align: center; }
.ring-text strong { display: block; font-size: 11.5px; }
.ring-text span { display: block; margin-top: 2px; font-size: 9.8px; color: var(--muted); }
.detail-hero-actions { display: flex; flex-direction: column; gap: 7px; min-width: 148px; }
.detail-hero-actions .btn { justify-content: flex-start; }

.tabs {
  display: flex;
  gap: 4px;
  margin: 16px 0;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow-x: auto;
}
.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.tabs button.active {
  background: linear-gradient(135deg, #2563eb, #6d28d9);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, .24);
}
.tab-count { padding: 1px 5px; border-radius: 999px; background: #f2f4f7; color: var(--muted); font-size: 9.5px; }
.tabs button.active .tab-count { background: rgba(255, 255, 255, .2); color: #fff; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .72fr); gap: 18px; align-items: start; }
.detail-main { min-width: 0; overflow: hidden; }

.checklist-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.checklist-head > div:first-child { flex: 1; }
.checklist-head h3 { font-size: 14.5px; }
.checklist-head p { margin-top: 2px; font-size: 10.8px; color: var(--muted); }
.checklist-head .progress { width: 120px; flex: none; }
.checklist { padding: 2px 18px 18px; }
.check-item {
  margin-top: 9px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}
.check-item.done { background: #fbfefc; border-color: #d1fadf; }
.check-main { display: flex; align-items: center; gap: 11px; padding: 11px 12px; }
.check-mark {
  width: 23px;
  height: 23px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1.5px solid #d0d5dd;
  border-radius: 50%;
  color: transparent;
  background: #fff;
}
.check-item.done .check-mark { background: var(--success); border-color: var(--success); color: #fff; }
.check-mark .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.check-text { flex: 1; min-width: 0; }
.check-text strong { display: block; font-size: 12.3px; line-height: 1.35; }
.check-text p { margin-top: 2px; font-size: 10.2px; color: var(--muted); }
.photo-count {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 6px;
  background: #f2f4f7;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  white-space: nowrap;
}
.photo-count .icon { width: 11px; height: 11px; }
.check-toggle { width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #98a2b3; }
.check-toggle:hover { background: #f2f4f7; color: var(--ink); }
.check-expand { border-top: 1px dashed var(--line); padding: 11px 12px 12px; background: #fff; }
.check-expand p { margin: 0 0 8px; font-size: 10.5px; color: var(--muted); }
.photo-mini-row { display: flex; gap: 7px; flex-wrap: wrap; }
.photo-mini {
  width: 86px;
  height: 62px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .8);
  cursor: pointer;
}
.photo-mini .icon { width: 16px; height: 16px; }
.photo-mini span { position: absolute; left: 4px; right: 4px; bottom: 3px; color: #fff; font-size: 7.5px; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,.4); }

.battery-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border: 1px solid #e9d7fe;
  border-radius: 9px;
  background: #fcfaff;
}
.battery-summary > div strong { display: block; font-size: 14px; color: var(--platinum); }
.battery-summary > div span { display: block; font-size: 9.5px; color: var(--muted); }
.battery-summary .btn { margin-left: auto; }
.cell-table { width: 100%; border-collapse: collapse; margin-top: 9px; font-size: 10.3px; }
.cell-table th { text-align: left; padding: 5px 6px; color: var(--muted); font-size: 8.5px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line-soft); }
.cell-table td { padding: 5px 6px; border-bottom: 1px solid var(--line-soft); }
.cell-table .ok { color: var(--success); font-weight: 700; }
.cell-table .miss { color: var(--danger); font-weight: 700; }

.ba-upload {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 9px;
  background: #fbfcfe;
}
.ba-upload .upload-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary); }
.ba-upload strong { display: block; font-size: 10.8px; }
.ba-upload p { margin-top: 1px; font-size: 9.5px; color: var(--muted); }
.ba-upload .btn { margin-left: auto; }

.summary-block { padding: 0 0 15px; margin-bottom: 15px; border-bottom: 1px solid var(--line-soft); }
.summary-block:last-of-type { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.summary-block h3 { margin-bottom: 9px; font-size: 12.5px; }
.summary-text { font-size: 10.8px; line-height: 1.55; color: var(--muted); }

/* ============================================================ detail sidebar */
.side-card .card-head { padding: 13px 15px; }
.side-card .card-body { padding: 13px 15px; }
.spec-list { display: flex; flex-direction: column; gap: 9px; }
.spec-row { display: flex; gap: 9px; align-items: flex-start; }
.spec-row .spec-icon { width: 27px; height: 27px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--surface-2); color: var(--muted); }
.spec-row .spec-icon .icon { width: 13px; height: 13px; }
.spec-row div { min-width: 0; }
.spec-row span { display: block; font-size: 9.2px; text-transform: uppercase; letter-spacing: .05em; color: #98a2b3; font-weight: 700; }
.spec-row strong { display: block; margin-top: 1px; font-size: 10.7px; line-height: 1.35; }
.locked-note { display: flex; gap: 6px; align-items: center; margin-top: 12px; padding: 8px 9px; border-radius: 8px; background: var(--success-soft); color: #05603a; font-size: 9.5px; }
.locked-note .icon { width: 13px; height: 13px; }

.member-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.member-row:last-child { border-bottom: 0; }
.member-row div { min-width: 0; }
.member-row strong { display: block; font-size: 10.8px; }
.member-row span:not(.avatar) { display: block; font-size: 9.5px; color: var(--muted); }
.member-row .badge { margin-left: auto; }

.mini-activity { display: flex; flex-direction: column; gap: 10px; padding: 3px 15px 14px; }
.mini-activity > div { display: flex; gap: 8px; }
.mini-activity .dot-line { display: flex; flex-direction: column; align-items: center; padding-top: 3px; }
.mini-activity .dot-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; }
.mini-activity .dot-line::after { content: ""; width: 1px; flex: 1; min-height: 18px; background: var(--line); margin-top: 3px; }
.mini-activity > div:last-child .dot-line::after { display: none; }
.mini-activity p { font-size: 10.2px; line-height: 1.4; }
.mini-activity time { display: block; margin-top: 2px; font-size: 9.2px; color: #98a2b3; }

/* ============================================================ daily */
.daily-list { display: flex; flex-direction: column; gap: 11px; padding: 16px 18px 0; }
.daily-card { border: 1px solid var(--line-soft); border-radius: 11px; padding: 13px; background: #fff; }
.daily-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.daily-title { display: flex; align-items: center; gap: 9px; }
.daily-day { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 800; }
.daily-title strong { display: block; font-size: 11.7px; }
.daily-title span { display: block; font-size: 9.7px; color: var(--muted); }
.daily-progress { text-align: right; }
.daily-progress strong { display: block; font-size: 13px; }
.daily-progress span { font-size: 9.3px; color: var(--muted); }
.daily-note { margin-top: 8px; font-size: 10.5px; color: var(--muted); line-height: 1.45; }
.daily-photos { display: flex; gap: 5px; margin-top: 8px; }
.daily-photos .photo-mini { width: 52px; height: 40px; border-radius: 6px; }
.daily-form { margin: 13px 18px 18px; padding: 14px; border: 1px dashed #cbd5e1; border-radius: 11px; background: #fbfcfe; }
.daily-form h3 { font-size: 12.5px; margin-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.form-grid .full { grid-column: 1 / -1; }
.form-stack { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  height: 35px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 500;
  outline: none;
}
.field textarea { height: 70px; padding: 8px 9px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 94, 215, .1); }
.form-note { font-size: 9.8px; color: var(--muted); line-height: 1.4; }
.inline-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ============================================================ photos */
.photo-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px 0; flex-wrap: wrap; }
.photo-filter { display: inline-flex; gap: 2px; padding: 3px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; }
.photo-filter button { border: 0; background: transparent; color: var(--muted); padding: 4px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.photo-filter button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); gap: 9px; padding: 13px 18px 18px; }
.photo-card { border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; background: #fff; cursor: pointer; }
.photo-thumb { position: relative; height: 96px; display: grid; place-items: center; color: rgba(255,255,255,.8); }
.photo-thumb .icon { width: 19px; height: 19px; opacity: .85; }
.photo-thumb span { position: absolute; left: 6px; right: 6px; bottom: 5px; color: #fff; font-size: 8px; font-weight: 650; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.photo-card p { padding: 6px 7px; font-size: 9.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ph-1 { background: linear-gradient(145deg, #1e3a8a, #3b82f6 55%, #93c5fd); }
.ph-2 { background: linear-gradient(145deg, #064e3b, #10b981 55%, #a7f3d0); }
.ph-3 { background: linear-gradient(145deg, #78350f, #d97706 55%, #fde68a); }
.ph-4 { background: linear-gradient(145deg, #312e81, #6366f1 55%, #c7d2fe); }
.ph-5 { background: linear-gradient(145deg, #7f1d1d, #ef4444 55%, #fecaca); }
.ph-6 { background: linear-gradient(145deg, #164e63, #06b6d4 55%, #a5f3fc); }
.ph-7 { background: linear-gradient(145deg, #3f3f46, #71717a 55%, #d4d4d8); }
.ph-8 { background: linear-gradient(145deg, #581c87, #a855f7 55%, #e9d5ff); }

/* ============================================================ activity */
.activity-list { padding: 16px 18px; display: flex; flex-direction: column; }
.activity-row { display: flex; gap: 11px; padding-bottom: 15px; position: relative; }
.activity-row:last-child { padding-bottom: 0; }
.activity-row::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: -2px; width: 1px; background: var(--line); }
.activity-row:last-child::before { display: none; }
.activity-icon { width: 21px; height: 21px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); z-index: 1; }
.activity-icon .icon { width: 11px; height: 11px; }
.activity-icon.green { background: var(--success-soft); color: var(--success); }
.activity-icon.amber { background: var(--warning-soft); color: var(--warning); }
.activity-body { min-width: 0; }
.activity-body p { font-size: 10.8px; line-height: 1.45; }
.activity-body p strong { font-weight: 750; }
.activity-body time { display: block; margin-top: 2px; font-size: 9.3px; color: #98a2b3; }

/* ============================================================ teams */
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.team-card { padding: 15px; }
.team-card-head { display: flex; align-items: flex-start; gap: 9px; }
.team-card-head .avatar { width: 38px; height: 38px; font-size: 12px; }
.team-card-head > div:nth-child(2) { min-width: 0; flex: 1; }
.team-card-head strong { display: block; font-size: 13px; }
.team-card-head span { display: block; margin-top: 2px; font-size: 10px; color: var(--muted); }
.team-badge { margin-left: auto; }
.team-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 13px; }
.team-stats > div { padding: 7px 8px; border-radius: 8px; background: var(--surface-2); }
.team-stats span { display: block; font-size: 8.8px; text-transform: uppercase; letter-spacing: .04em; color: #98a2b3; font-weight: 700; }
.team-stats strong { display: block; font-size: 13px; margin-top: 1px; }
.team-card-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.team-card-foot .progress { flex: 1; }
.team-card-foot span { font-size: 9.5px; color: var(--muted); white-space: nowrap; }

/* ============================================================ holidays */
.date-cell { display: flex; align-items: center; gap: 9px; }
.date-box { width: 34px; height: 34px; flex: none; display: grid; place-items: center; align-content: center; border-radius: 8px; background: var(--danger-soft); color: var(--danger); font-size: 13px; font-weight: 800; line-height: 1; }
.date-box small { font-size: 6.5px; letter-spacing: .05em; margin-top: 1px; }

/* ============================================================ reports */
.stat-card { padding: 17px 18px; }
.stat-card span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #98a2b3; }
.stat-card strong { display: block; margin-top: 5px; font-size: 27px; letter-spacing: -.04em; }
.stat-card p { margin-top: 3px; font-size: 10.5px; color: var(--muted); }

/* ============================================================ phones */
.phone-row { display: flex; gap: 28px; justify-content: center; align-items: flex-start; flex-wrap: wrap; padding: 6px 0 22px; }
.phone {
  width: 312px;
  height: 646px;
  flex: none;
  position: relative;
  padding: 9px;
  border-radius: 42px;
  background: #101828;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .22);
}
.phone::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 22px;
  border-radius: 0 0 13px 13px;
  background: #101828;
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 34px;
  overflow: hidden;
  background: #f7f9fc;
  position: relative;
}
.phone-status { display: flex; align-items: center; justify-content: space-between; padding: 9px 17px 3px; font-size: 9px; font-weight: 750; color: var(--ink); }
.phone-status .signal { display: flex; gap: 3px; align-items: center; }
.phone-status .signal i { width: 3px; height: 3px; border-radius: 50%; background: var(--ink); }
.phone-appbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 15px 11px; background: linear-gradient(135deg, #eff6ff, #f5f3ff 55%, #ecfeff); border-bottom: 1px solid var(--line-soft); }
.phone-appbar strong { display: block; font-size: 13.5px; letter-spacing: -.02em; }
.phone-appbar span { display: block; margin-top: 1px; font-size: 8.5px; color: var(--muted); }
.phone-appbar .avatar { width: 30px; height: 30px; font-size: 9px; }
.phone-body { flex: 1; overflow-y: auto; padding: 10px 13px 76px; }
.phone-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-top: 1px solid var(--line-soft);
  padding-bottom: 5px;
}
.phone-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #98a2b3; font-size: 7.5px; font-weight: 700; }
.phone-nav a.active { color: var(--primary); }
.phone-nav .icon { width: 17px; height: 17px; }
.phone-offline {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  margin-bottom: 9px;
  border-radius: 8px;
  background: var(--warning-soft);
  color: #93370d;
  font-size: 8.7px;
  font-weight: 650;
}
.phone-offline .icon { width: 13px; height: 13px; }
.phone-offline button { margin-left: auto; border: 0; background: transparent; color: #93370d; padding: 0; }
.phone-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-bottom: 10px; }
.phone-summary > div { padding: 8px 9px; border-radius: 9px; background: #fff; border: 1px solid var(--line-soft); }
.phone-summary span { display: block; font-size: 7.5px; text-transform: uppercase; letter-spacing: .05em; color: #98a2b3; font-weight: 750; }
.phone-summary strong { display: block; margin-top: 2px; font-size: 15px; letter-spacing: -.03em; }
.phone-task { padding: 10px; margin-bottom: 8px; border: 1px solid var(--line-soft); border-radius: 11px; background: #fff; }
.phone-task-top { display: flex; align-items: flex-start; gap: 6px; }
.phone-task-top strong { display: block; font-size: 11px; }
.phone-task-top span { display: block; margin-top: 1px; font-size: 8px; color: var(--muted); }
.phone-task-top .badge { margin-left: auto; font-size: 8px; padding: 2px 5px; }
.phone-task .progress { height: 5px; margin-top: 9px; }
.phone-task-foot { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 6px; font-size: 8px; color: var(--muted); }
.phone-task-foot strong { color: var(--ink); font-size: 9px; }
.phone-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 9px; border: 0; border-radius: 7px; background: var(--primary); color: #fff; font-size: 8.5px; font-weight: 750; }
.phone-btn.ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.phone-btn .icon { width: 11px; height: 11px; }
.phone-section-title { display: flex; align-items: center; justify-content: space-between; margin: 12px 1px 7px; font-size: 10px; font-weight: 800; }
.phone-section-title span { font-size: 8px; color: var(--muted); font-weight: 600; }
.phone-progress-card { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 11px; background: #fff; border: 1px solid var(--line-soft); margin-bottom: 9px; }
.phone-progress-card .ring { width: 58px; height: 58px; }
.phone-progress-card .ring::before { inset: 5px; }
.phone-progress-card .ring strong { font-size: 13px; }
.phone-progress-card .ring span { font-size: 6px; }
.phone-progress-card > div:last-child { flex: 1; }
.phone-progress-card strong { display: block; font-size: 10.5px; }
.phone-progress-card p { margin-top: 2px; font-size: 8.5px; color: var(--muted); }
.phone-check { display: flex; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.phone-check:last-child { border-bottom: 0; }
.phone-check .mark { width: 18px; height: 18px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid #d0d5dd; color: transparent; }
.phone-check.done .mark { background: var(--success); border-color: var(--success); color: #fff; }
.phone-check .mark .icon { width: 10px; height: 10px; stroke-width: 2.4; }
.phone-check > div:nth-child(2) { flex: 1; min-width: 0; }
.phone-check strong { display: block; font-size: 9.5px; line-height: 1.3; }
.phone-check p { margin-top: 1px; font-size: 7.8px; color: var(--muted); }
.phone-check .photo-count { padding: 2px 4px; font-size: 7px; }
.phone-photo-btn { display: inline-flex; align-items: center; gap: 3px; margin-top: 4px; padding: 4px 6px; border: 1px solid #b2ddff; border-radius: 5px; background: #eff8ff; color: #175cd3; font-size: 7.7px; font-weight: 700; }
.phone-photo-btn .icon { width: 9px; height: 9px; }
.phone-save {
  position: sticky;
  bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  margin-top: 10px;
  padding: 9px;
  border: 0;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 9.5px;
  font-weight: 750;
  box-shadow: 0 8px 20px rgba(11, 94, 215, .22);
}
.phone-camera-stage {
  position: relative;
  height: 345px;
  border-radius: 13px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 25%, rgba(255,255,255,.12), transparent 38%),
    linear-gradient(155deg, #334155, #0f172a 65%, #020617);
  display: grid;
  place-items: center;
  color: #94a3b8;
}
.phone-camera-stage::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; }
.phone-camera-stage .icon { width: 30px; height: 30px; opacity: .55; }
.camera-watermark {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 9px;
  border-radius: 8px;
  background: rgba(2, 6, 23, .68);
  color: #fff;
  font-size: 7.8px;
  line-height: 1.5;
  backdrop-filter: blur(3px);
}
.camera-watermark strong { display: block; font-size: 9px; }
.camera-watermark span { color: rgba(255,255,255,.72); }
.camera-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 11px; }
.camera-controls .thumb { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(145deg, #1e3a8a, #3b82f6); }
.camera-controls .shutter { width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 5px solid #d0d5dd; justify-self: center; }
.camera-controls .flip { justify-self: end; }

/* ============================================================ toast / lightbox */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 100;
  max-width: min(92vw, 420px);
  padding: 10px 14px;
  border-radius: 10px;
  background: #101828;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(16, 24, 40, .24);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 24, 40, .72);
  backdrop-filter: blur(3px);
}
.lightbox-card { position: relative; width: min(560px, 100%); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 28px 80px rgba(0,0,0,.3); }
.lightbox-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255,255,255,.9); border-color: rgba(255,255,255,.4); }
.lightbox-photo { height: 300px; display: grid; place-items: center; color: rgba(255,255,255,.85); }
.lightbox-photo .icon { width: 42px; height: 42px; opacity: .8; }
.lightbox-meta { display: flex; flex-direction: column; gap: 3px; padding: 13px 16px 16px; }
.lightbox-meta strong { font-size: 13px; }
.lightbox-meta span { font-size: 10px; color: var(--muted); }

/* ============================================================ switch */
.switch { position: relative; width: 38px; height: 22px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #d0d5dd; transition: background .15s ease; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .15s ease; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(16px); }
.check-list { display: flex; flex-direction: column; gap: 7px; font-size: 11px; color: var(--muted); }
.check-list label { display: flex; align-items: center; gap: 7px; }
.check-list input { accent-color: var(--primary); }
.check { color: var(--success); font-weight: 800; }
.rule-list { padding: 8px 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.rule-list > div { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.rule-list > div:last-child { border-bottom: 0; }
.rule-icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--muted); }
.rule-icon .icon { width: 15px; height: 15px; }
.rule-list strong { display: block; font-size: 11.3px; }
.rule-list p { margin-top: 2px; font-size: 10.2px; color: var(--muted); }

/* ============================================================ responsive */
@media (max-width: 1460px) {
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1400px) {
  .grid-main { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-search { width: 190px; }
}

@media (max-width: 1040px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 12px 40px rgba(16,24,40,.18); }
  .sidebar.open { transform: none; }
  .sidebar-overlay.open { display: block; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-grid; }
  .content { padding: 20px 20px 50px; }
  .topbar { padding: 11px 20px; }
}

@media (max-width: 820px) {
  .top-search { display: none; }
  .hero-banner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-stats { width: 100%; }
  .hero-stats > div { flex: 1; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .detail-hero { grid-template-columns: minmax(0, 1fr) auto; }
  .detail-hero-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .filters .search { max-width: none; flex-basis: 100%; }
  .page-head { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .content { padding: 16px 14px 44px; }
  .topbar { padding: 10px 14px; }
  .hero-banner { padding: 18px; border-radius: 16px; }
  .hero-copy h2 { font-size: 20px; }
  .hero-copy p { font-size: 11px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
  .hero-actions .hero-primary { grid-column: 1 / -1; }
  .hero-actions .btn { width: 100%; padding: 8px 9px; font-size: 11px; }
  .hero-stats { gap: 7px; }
  .hero-stats > div { min-width: 0; padding: 8px 6px; }
  .hero-stats strong { font-size: 20px; }
  .topbar-title h1 { font-size: 16px; }
  .topbar-title p { font-size: 10px; }
  .filter-btn span, .avatar-name { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .kpi { padding: 12px; }
  .kpi-value { font-size: 21px; }
  .kpi-icon { width: 32px; height: 32px; }
  .segmented { display: none; }
  .card-head { padding: 13px 14px; }
  .card-body { padding: 14px; }
  .notif-filter { margin-left: 10px; margin-right: 10px; }
  .notif-list { padding-left: 10px; padding-right: 10px; }
  .detail-hero { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .detail-hero-progress { justify-content: flex-start; }
  .detail-title-row h2 { font-size: 20px; }
  .detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gantt-head, .gantt-row { grid-template-columns: 110px minmax(0, 1fr); gap: 8px; }
  .gantt-label strong { font-size: 9.5px; }
  .gantt-day strong { font-size: 9px; }
  .gantt-day { font-size: 8px; }
  .gantt { padding-left: 12px; padding-right: 12px; }
  .legend { display: none; }
  .tier-chart { flex-direction: column; align-items: flex-start; }
  .tier-legend { width: 100%; }
  .detail-hero-actions .btn { flex: 1; }
  .tabs { margin: 12px 0; }
  .checklist-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .checklist-head .progress { width: 100%; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .phone { transform: scale(.92); transform-origin: top center; margin-bottom: -40px; }

  /* Tabel jadi kartu di layar kecil */
  .monitor-table thead, .responsive-table thead { display: none; }
  .monitor-table, .monitor-table tbody, .monitor-table tr, .monitor-table td,
  .responsive-table, .responsive-table tbody, .responsive-table tr, .responsive-table td { display: block; width: 100%; }
  .monitor-table tr, .responsive-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
  .monitor-table tr:last-child, .responsive-table tr:last-child { border-bottom: 0; }
  .monitor-table td, .responsive-table td { border: 0; padding: 4px 0; }
  .monitor-table td[data-label]:not([data-label="Instalasi"]):not([data-label="Aksi"]),
  .responsive-table td[data-label]:not([data-label="Instalasi"]):not([data-label="Aksi"]) { display: flex; align-items: center; gap: 8px; }
  .monitor-table td[data-label]:not([data-label="Instalasi"]):not([data-label="Aksi"])::before,
  .responsive-table td[data-label]:not([data-label="Instalasi"]):not([data-label="Aksi"])::before {
    content: attr(data-label);
    min-width: 62px;
    flex: none;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #98a2b3;
  }
  .monitor-table td[data-label="Aksi"], .responsive-table td[data-label="Aksi"] { display: flex; justify-content: flex-end; padding-top: 8px; }
  .monitor-table .progress-cell, .responsive-table .progress-cell { min-width: 0; flex: 1; }
  .monitor-table .progress-cell .progress, .responsive-table .progress-cell .progress { width: 100%; }
  .responsive-table .day-cell, .responsive-table .update-cell, .responsive-table .team-cell { min-width: 0; }
  .pagination { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pagination > div { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .pause { display: none; }
  .phone { transform: scale(.82); margin-bottom: -90px; }
}

@media (max-width: 360px) {
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================ login */
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, .14), transparent 26%),
    radial-gradient(circle at 90% 90%, rgba(124, 58, 237, .12), transparent 30%),
    linear-gradient(135deg, #eef4ff 0%, #f8f3ff 46%, #eefbf6 100%);
}
.login-card {
  width: min(430px, calc(100% - 40px));
  margin: auto;
  padding: 28px;
  border: 1px solid rgba(203, 213, 225, .8);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(37, 99, 235, .13);
  backdrop-filter: blur(8px);
}
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.login-brand strong { display: block; font-size: 15px; letter-spacing: -.02em; }
.login-brand span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.login-card h1 { font-size: 24px; letter-spacing: -.035em; line-height: 1.15; }
.login-sub { margin-top: 7px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.login-form { display: flex; flex-direction: column; gap: 13px; margin-top: 22px; }
.login-form .field input { height: 42px; }
.login-form .btn { min-height: 44px; margin-top: 2px; }
.login-error { padding: 9px 11px; border-radius: 9px; background: var(--danger-soft); color: var(--danger); font-size: 11.5px; font-weight: 650; }
.login-note { display: flex; gap: 9px; margin-top: 20px; padding: 11px 12px; border: 1px dashed var(--line); border-radius: 10px; background: rgba(248, 250, 252, .75); color: var(--muted); }
.login-note .icon { width: 15px; height: 15px; margin-top: 1px; flex: none; }
.login-note p { font-size: 10.5px; line-height: 1.5; }
.login-side {
  position: relative;
  display: grid;
  place-items: center;
  padding: 42px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 255, 255, .18), transparent 26%),
    radial-gradient(circle at 8% 100%, rgba(6, 182, 212, .24), transparent 34%),
    linear-gradient(125deg, #0b1736 0%, #1d4ed8 45%, #5b21b6 100%);
}
.login-side::before,
.login-side::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); }
.login-side::before { width: 420px; height: 420px; right: -160px; top: -180px; }
.login-side::after { width: 260px; height: 260px; left: -120px; bottom: -140px; }
.login-side-inner { position: relative; z-index: 1; max-width: 500px; }
.login-side h2 { margin-top: 14px; font-size: clamp(26px, 3vw, 40px); line-height: 1.08; letter-spacing: -.045em; }
.login-side > .login-side-inner > p { margin-top: 12px; max-width: 440px; color: #dbeafe; font-size: 13px; line-height: 1.65; }
.login-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.login-features > div { padding: 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: rgba(255,255,255,.09); backdrop-filter: blur(5px); }
.login-features .icon { width: 18px; height: 18px; color: #93c5fd; }
.login-features strong { display: block; margin-top: 8px; font-size: 12px; }
.login-features span { display: block; margin-top: 2px; color: #c7d2fe; font-size: 9.8px; line-height: 1.4; }

/* ============================================================ sidebar collapse */
.sidebar-toggle {
  width: 32px;
  height: 32px;
  flex: none;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: #b9c6e6;
  transition: background .15s ease, color .15s ease, transform .2s ease;
}
.sidebar-toggle:hover { background: rgba(255, 255, 255, .13); color: #fff; }
.sidebar-toggle .icon { width: 16px; height: 16px; }
.brand { flex-wrap: wrap; }
.brand-text { min-width: 0; flex: 1; }
.main { transition: margin-left .2s ease; }

@media (min-width: 1041px) {
  .sidebar { transition: width .2s ease, padding .2s ease; }
  .app.sidebar-collapsed .sidebar {
    width: 72px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .app.sidebar-collapsed .main { margin-left: 72px; }
  .app.sidebar-collapsed .brand { flex-direction: column; gap: 9px; padding-left: 0; padding-right: 0; }
  .app.sidebar-collapsed .brand-text,
  .app.sidebar-collapsed .nav-label,
  .app.sidebar-collapsed .nav-item > span,
  .app.sidebar-collapsed .sidebar-note,
  .app.sidebar-collapsed .sidebar-user > div:not(.avatar),
  .app.sidebar-collapsed .sidebar-user .iconbtn { display: none; }
  .app.sidebar-collapsed .sidebar-toggle { margin: 0 auto; transform: rotate(180deg); }
  .app.sidebar-collapsed .nav { gap: 6px; }
  .app.sidebar-collapsed .nav-item { justify-content: center; padding: 9px 0; }
  .app.sidebar-collapsed .nav-item .icon { width: 20px; height: 20px; }
  .app.sidebar-collapsed .nav-label + .nav-item { margin-top: 8px; }
  .app.sidebar-collapsed .sidebar-user { justify-content: center; padding-top: 12px; }
  .app.sidebar-collapsed .sidebar-user .avatar { width: 34px; height: 34px; }
}

/* ============================================================ modal + forms */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(16, 24, 40, .62); backdrop-filter: blur(3px); }
.modal-card {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid rgba(203, 213, 225, .75);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(16, 24, 40, .28);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 17px 19px; border-bottom: 1px solid var(--line-soft); }
.modal-head h2 { font-size: 17px; letter-spacing: -.02em; }
.modal-head p { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.modal-body { padding: 18px 19px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 19px; border-top: 1px solid var(--line-soft); background: var(--surface-2); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-row .full { grid-column: 1 / -1; }
.form-stack .field input, .form-stack .field select { height: 38px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 15px; }
.file-drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed #b9c7da; border-radius: 11px; background: #fbfcfe; }
.file-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-drop .upload-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.file-drop strong { display: block; font-size: 12px; }
.file-drop p { margin-top: 2px; font-size: 10.5px; color: var(--muted); }
.file-drop.has-file { border-color: #86efac; background: #f0fdf4; }
.file-drop.has-file .upload-icon { background: var(--success-soft); color: var(--success); }
.preview-image { width: 100%; max-height: 220px; object-fit: contain; margin-top: 10px; border-radius: 10px; background: #f2f4f7; }

/* ============================================================ misc app states */
.empty-state { padding: 30px 18px; text-align: center; color: var(--muted); }
.empty-state .icon { width: 32px; height: 32px; margin: 0 auto 8px; color: #b6c2d2; }
.empty-state strong { display: block; color: var(--ink); font-size: 13px; }
.empty-state p { margin-top: 3px; font-size: 11px; line-height: 1.5; }
.skeleton { position: relative; overflow: hidden; border-radius: 8px; background: #edf1f6; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.btn.danger { background: linear-gradient(135deg, #b42318, #d92d20); box-shadow: 0 5px 14px rgba(180, 35, 24, .2); }
.btn.danger:hover { background: linear-gradient(135deg, #912018, #b42318); }
.muted-sm { font-size: 10px; color: var(--muted); }
.divider { height: 1px; background: var(--line-soft); margin: 14px 0; }
.badge.tier-platinum, .badge.tier-gold, .badge.tier-silver { border: 1px solid transparent; }
.check-item .check-main { cursor: pointer; }
.check-item .check-main .btn { margin-left: 4px; }
.check-detail-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.check-detail-actions .btn { min-height: 28px; }
.lightbox-card img { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #0f172a; }
.bell-pop { z-index: 60; }
.topbar-actions .avatar-btn { cursor: pointer; }
.notif-item button { z-index: 1; }
.notif-item > div, .notif-item > span { position: relative; z-index: 2; pointer-events: none; }
.notif-item > div a, .notif-item > div button { pointer-events: auto; }
.row-click { cursor: pointer; }
.row-click:hover { background: linear-gradient(90deg, rgba(239, 246, 255, .7), rgba(245, 243, 255, .4), transparent); }
.gantt-empty { white-space: nowrap; overflow: hidden; }
.settings-badge-on { background: var(--success-soft); color: var(--success); }

@media (max-width: 900px) {
  .login-screen { grid-template-columns: minmax(0, 1fr); }
  .login-side { display: none; }
  .login-card { margin: 32px auto; }
}
@media (max-width: 640px) {
  .modal { padding: 10px; }
  .modal-card { max-height: calc(100vh - 20px); border-radius: 13px; }
  .form-row, .form-row.three { grid-template-columns: minmax(0, 1fr); }
  .login-card { padding: 22px; }
  .login-card h1 { font-size: 21px; }
}
