/* WAFFIY HR — gaya utama (CSS biasa, mobile-first, tiada build) */
:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-soft: #ccfbf1;
  --teal2: #14b8a6;
  --navy: #0f2b46;
  --navy-2: #1a3a5c;
  --bg: #f4f6f8;
  --card: #fff;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #e5e9ee;
  --border-2: #f1f4f7;
  --zinc-100: #f1f4f7;
  --zinc-50: #f8fafc;
  --red: #dc2626;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 43, 70, .04), 0 2px 8px rgba(15, 43, 70, .05);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --bn-h: 64px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.45;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
body.sheet-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
h1 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; color: var(--navy); margin: 0; }
h3 { margin: 0; }
table { border-collapse: collapse; }
form { margin: 0; }
.ic { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.muted { color: var(--muted); font-size: 13.5px; margin: 2px 0 16px; }
.small { font-size: 12px; color: var(--muted-2); }
.note { font-size: 12px; color: var(--muted-2); margin-top: 12px; }
.text-primary { color: var(--primary); }
.text-navy { color: var(--navy); }
.text-red { color: var(--red); }
.bold { font-weight: 700; }
.semibold { font-weight: 600; }
.nowrap { white-space: nowrap; }
.link { color: var(--primary); font-weight: 600; }
.link:hover { text-decoration: underline; }
.mt-3 { margin-top: 12px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.right { text-align: right; }
.center { text-align: center; }
.only-mobile { display: block; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px;
  padding: calc(var(--sat) + 8px) 14px 8px; min-height: calc(56px + var(--sat));
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-t { display: none; line-height: 1.15; }
.brand-t b { display: block; font-size: 15px; color: var(--navy); letter-spacing: .02em; }
.brand-t small { font-size: 11px; color: var(--muted-2); }
.logo-tile {
  display: inline-flex; align-items: flex-end; justify-content: center; gap: 3px; width: 36px; height: 36px; padding-bottom: 9px;
  border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--navy));
}
.logo-tile i { display: block; width: 4px; border-radius: 3px; background: #fff; }
.logo-tile i:nth-child(1) { height: 9px; } .logo-tile i:nth-child(2) { height: 16px; } .logo-tile i:nth-child(3) { height: 12px; }
.logo-tile.lg { width: 64px; height: 64px; padding-bottom: 16px; border-radius: 18px; gap: 5px; box-shadow: 0 8px 20px rgba(13, 148, 136, .3); }
.logo-tile.lg i { width: 7px; }
.logo-tile.lg i:nth-child(1) { height: 16px; } .logo-tile.lg i:nth-child(2) { height: 28px; } .logo-tile.lg i:nth-child(3) { height: 21px; }
.page-title { flex: 1; font-size: 16px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.today-chip { display: none; font-size: 12.5px; color: var(--muted); background: var(--zinc-100); border-radius: 999px; padding: 6px 12px; }
.top-ic {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff; color: var(--navy); cursor: pointer; font-family: inherit;
}
.dot-count {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff;
}

/* ---------- Shell ---------- */
.shell { display: block; }
.sidebar { display: none; }
.main { width: 100%; max-width: 1180px; padding: 16px 14px calc(var(--bn-h) + var(--sab) + 28px); min-width: 0; margin: 0 auto; }

/* ---------- Nav (sidebar + helaian menu) ---------- */
.nav-title { margin: 16px 12px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin-bottom: 2px; border-radius: 10px; position: relative;
  font-size: 14px; font-weight: 500; color: #475569; cursor: pointer; list-style: none;
}
.nav-link .nl { flex: 1; }
.nav-link .ic { color: var(--muted-2); }
.nav-link:hover { background: var(--zinc-100); color: var(--navy); }
.nav-link.active { background: var(--primary-soft); color: #0b5e57; font-weight: 600; }
.nav-link.active .ic { color: var(--primary); }
.nav-link.child { padding: 8px 12px 8px 22px; font-size: 13.5px; }
.nav-link .dotm { width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; margin: 0 8px 0 6px; }
.nav-link.child.active .dotm { background: var(--primary); }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group .chev { margin-left: auto; color: var(--muted-2); transition: transform .15s; display: inline-flex; }
.nav-group[open] .chev { transform: rotate(90deg); }
.nav-group[open] .grp-total { display: none; }
.grp-active, .grp-active .ic { color: #0b5e57; }
.nav-badge {
  margin-left: auto; min-width: 22px; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; background: var(--zinc-100); color: var(--muted);
}
.nav-badge.hot { background: #fee2e2; color: var(--red); }
.grp-total + .chev { margin-left: 6px; }
.user-foot { border-top: 1px solid var(--border); padding: 12px; }
.user-foot .person { gap: 10px; }
.user-foot .who { line-height: 1.2; min-width: 0; }
.user-foot .who b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-foot .who span { font-size: 12px; color: var(--muted-2); }
.foot-btns { display: flex; gap: 8px; margin-top: 10px; }
.foot-btns form { flex: 1; }
.fbtn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; font-size: 13px; font-weight: 600; color: #475569; cursor: pointer; font-family: inherit;
}
.fbtn.out { color: var(--red); background: #fef2f2; border-color: #fee2e2; }

/* ---------- Navigasi bawah (telefon) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr; align-items: end;
  height: calc(var(--bn-h) + var(--sab)); padding-bottom: var(--sab); background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(15, 43, 70, .06);
}
.bn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--bn-h); color: var(--muted-2); font-size: 10.5px; font-weight: 600; }
.bn.on { color: var(--primary); }
.bn.on::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--primary); }
.bn-badge { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bn-fab-wrap { position: relative; height: var(--bn-h); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 6px; }
.fab {
  position: absolute; top: -22px; width: 58px; height: 58px; border-radius: 50%; border: 4px solid #fff; color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(15, 43, 70, .28);
}
.fab.in { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.fab.out { background: linear-gradient(135deg, #f87171, #dc2626); }
.fab.done { background: linear-gradient(135deg, #94a3b8, #64748b); }
.fab:active { transform: scale(.94); }
.fab-l { font-size: 10.5px; font-weight: 700; color: var(--navy); }

/* ---------- Helaian bawah ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(15, 23, 42, .5); opacity: 0; pointer-events: none; transition: opacity .2s; }
body.sheet-open .sheet-bg { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: #fff; border-radius: 22px 22px 0 0;
  padding: 10px 16px calc(var(--sab) + 16px); transform: translateY(105%); transition: transform .25s ease; max-height: 88vh; display: flex; flex-direction: column;
  box-shadow: 0 -10px 40px rgba(15, 23, 42, .2);
}
.sheet.open { transform: none; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: #d5dbe2; margin: 0 auto 12px; flex-shrink: 0; }
.sheet h3 { font-size: 16px; margin-bottom: 12px; color: var(--navy); }
.menu-scroll { overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.sheet-menu .user-foot { margin: 0 -16px; padding-bottom: 0; flex-shrink: 0; }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 16px; border-radius: 16px; color: #fff; font-weight: 700; font-size: 14px; min-height: 96px;
}
.tile .ic { background: rgba(255, 255, 255, .22); padding: 8px; border-radius: 10px; width: 40px; height: 40px; }
.t-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.t-amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.t-violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.t-blue { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.t-rose { background: linear-gradient(135deg, #fb7185, #e11d48); }
.t-navy { background: linear-gradient(135deg, #1a3a5c, #0f2b46); }
.t-green { background: linear-gradient(135deg, #34d399, #059669); }

/* ---------- Page ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.page-head h1 { display: none; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.page-head > div:first-child { min-width: 0; }
.page-head .muted { margin-top: 0; }

/* ---------- Hero (dashboard) ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 20px 20px 52px; margin-bottom: -34px; color: #fff;
  background: linear-gradient(120deg, var(--navy), #11507a 55%, var(--primary));
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.hero::before { width: 220px; height: 220px; right: -60px; top: -90px; }
.hero::after { width: 140px; height: 140px; right: 70px; bottom: -80px; }
.hero small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #99f6e4; }
.hero h2 { margin: 6px 0 4px; font-size: 22px; letter-spacing: -.01em; }
.hero p { margin: 0; font-size: 13.5px; color: #cbd5e1; position: relative; z-index: 1; }
.hero small, .hero h2 { position: relative; z-index: 1; }
.stat-row { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 8px 16px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.kpi .ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.kpi .n { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.kpi .l { font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.kpi .s { font-size: 11px; color: var(--muted-2); }
.i-teal { background: #ccfbf1; color: #0d9488; } .i-amber { background: #fef3c7; color: #d97706; }
.i-violet { background: #ede9fe; color: #7c3aed; } .i-blue { background: #dbeafe; color: #2563eb; }
.i-rose { background: #ffe4e6; color: #e11d48; } .i-green { background: #dcfce7; color: #16a34a; }
.shortcuts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.sc { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px; border-radius: 14px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 11.5px; font-weight: 600; text-align: center; }
.sc .ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }

/* ---------- Card ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.card-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px 6px; gap: 8px; }
.card-h h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
.card-b { padding: 10px 16px 16px; }
.card-b.pt { padding-top: 16px; }
.grid > .card, .grid > div > .card:last-child { margin-bottom: 0; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.g-2, .g-3, .g-4, .g-6, .g-main, .g-wide { grid-template-columns: 1fr; }
.g-4 { grid-template-columns: 1fr 1fr; }
.g-stats { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) {
  .g-3 { grid-template-columns: repeat(3, 1fr); }
  .g-2-md { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .g-2-md { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .g-2 { grid-template-columns: 1fr 1fr; }
  .g-4 { grid-template-columns: repeat(4, 1fr); }
  .g-6 { grid-template-columns: repeat(6, 1fr); }
  .g-main { grid-template-columns: 1.4fr 1fr; }
  .g-wide { grid-template-columns: 1.65fr 1fr; }
  .g-stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1023px) { .g-2-md { grid-template-columns: 1fr; } }
@media (min-width: 640px) and (max-width: 1023px) { .g-2-md { grid-template-columns: 1fr 1fr; } }

/* ---------- Forms ---------- */
.form > * + * { margin-top: 14px; }
.label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #334155; }
.input {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid #d8dee6; background: #fff; padding: 0 14px;
  font-size: 16px; font-family: inherit; color: inherit; outline: none; appearance: none; -webkit-appearance: none;
}
select.input { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 34px; }
textarea.input { height: auto; min-height: 90px; padding: 10px 14px; resize: vertical; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13, 148, 136, .16); }
.input.sm { height: 36px; width: 96px; font-size: 14px; padding: 0 10px; border-radius: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.filter {
  display: grid; gap: 12px; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 16px; align-items: end; box-shadow: var(--shadow);
}
@media (min-width: 640px) { .filter { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .filter { grid-template-columns: repeat(3, 1fr); } .filter.f4 { grid-template-columns: repeat(4, 1fr); } }
.filter .actions { display: flex; gap: 8px; grid-column: 1 / -1; }
.filter-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.filter-inline > div { flex: 1 1 140px; }
.filter-inline .input { width: 100%; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form .input { flex: 1; min-width: 120px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 12px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap;
  background: var(--navy); color: #fff; transition: background .15s, transform .05s;
}
.btn:hover { background: var(--navy-2); }
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-teal { background: var(--primary); }
.btn-teal:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--text); border-color: #d8dee6; }
.btn-outline:hover { background: var(--zinc-100); }
.btn-danger { background: #fff; color: var(--red); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }
.btn-red { background: var(--red); }
.btn-red:hover { background: #b91c1c; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 32px; font-size: 16px; border-radius: 14px; }
.icon-del { border: 0; background: none; cursor: pointer; font-size: 15px; color: #ef4444; padding: 6px; border-radius: 8px; }
.icon-del:hover { background: #fef2f2; }
.decide { display: flex; gap: 6px; white-space: nowrap; }

/* ---------- Alerts ---------- */
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; border: 1px solid; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert-info { background: #f0fdfa; border-color: #99f6e4; color: #115e59; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.tbl { width: 100%; font-size: 13.5px; }
.tbl th { white-space: nowrap; border-bottom: 1px solid var(--border); padding: 10px 12px; text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); background: var(--zinc-50); }
.tbl th:first-child { border-radius: 10px 0 0 10px; } .tbl th:last-child { border-radius: 0 10px 10px 0; }
.tbl td { border-bottom: 1px solid var(--border-2); padding: 12px; vertical-align: middle; }
.tbl tbody tr:hover td { background: var(--zinc-50); }
.tbl tr.total td { background: var(--zinc-50); font-weight: 700; }
.tbl.compact td { padding: 8px 10px; }
.sub { font-size: 11.5px; color: var(--muted-2); }

/* ---------- Badges & pills ---------- */
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; white-space: nowrap; letter-spacing: .01em; }
.b-pending { background: #fef3c7; color: #b45309; }
.b-approved { background: #dcfce7; color: #15803d; }
.b-rejected { background: #fee2e2; color: #b91c1c; }
.b-muted { background: var(--zinc-100); color: var(--muted); }
.pill-red {
  margin-left: 6px; display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 6px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
}
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 999px;
  background: linear-gradient(135deg, var(--navy), var(--primary)); color: #fff; font-size: 11.5px; font-weight: 700;
}
.avatar.lg { width: 38px; height: 38px; }
.person { display: flex; align-items: center; gap: 10px; }
.empty { padding: 36px 0; text-align: center; font-size: 13px; color: var(--muted-2); }

/* ---------- Tabs ---------- */
.utabs { display: flex; gap: 20px; border-bottom: 1px solid var(--border); margin-bottom: 16px; font-size: 14px; font-weight: 600; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.utabs::-webkit-scrollbar { display: none; }
.utabs a { margin-bottom: -1px; padding: 8px 0 10px; border-bottom: 2px solid transparent; color: var(--muted); }
.utabs a:hover { color: #334155; }
.utabs a.on { border-color: var(--primary); color: var(--navy); }
.seg { display: flex; gap: 2px; padding: 4px; background: #e8edf2; border-radius: 12px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; max-width: 100%; width: fit-content; }
.seg::-webkit-scrollbar { display: none; }
.seg a { padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.seg a.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(15, 43, 70, .12); }
.seg-n { margin-left: 4px; font-size: 11.5px; color: var(--muted-2); }

/* ---------- Stat boxes ---------- */
.stat { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: #fff; box-shadow: var(--shadow); }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { margin-top: 2px; font-size: 19px; font-weight: 800; color: var(--navy); }
.stat .v.big { font-size: 28px; text-align: right; }
.stat .s { font-size: 11.5px; color: var(--muted-2); }
.bar { margin-top: 10px; height: 5px; border-radius: 4px; background: var(--zinc-100); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal2), var(--primary)); border-radius: 4px; }

/* ---------- Dashboard ---------- */
.cat { position: relative; display: block; border: 1px solid var(--border); border-radius: 14px; padding: 12px 6px; text-align: center; background: #fff; transition: .15s; }
.cat:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.cat .n { position: absolute; right: 8px; top: 6px; font-size: 12px; font-weight: 800; color: var(--red); }
.cat .ic-box { width: 38px; height: 38px; border-radius: 12px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; }
.cat .l { font-size: 11.5px; font-weight: 600; }
.g-cats { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 1024px) { .g-cats { grid-template-columns: repeat(7, 1fr); } }
.big-num { font-size: 40px; font-weight: 800; line-height: 1; color: var(--navy); }
.bars { display: flex; flex: 1; align-items: flex-end; gap: 10px; height: 110px; padding-bottom: 4px; min-width: 0; }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bars .col span { font-size: 11px; font-weight: 700; color: #52525b; }
.bars .col i { display: block; width: 100%; max-width: 34px; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #2dd4bf, #0d9488); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { border-radius: 999px; background: var(--zinc-100); padding: 3px 10px; font-size: 11px; color: var(--muted); }
.chip b { color: #334155; }
.donut { position: relative; width: 110px; height: 110px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut .pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; color: var(--navy); }
.legend-row { display: flex; justify-content: space-between; padding: 0 4px; margin-top: 8px; font-size: 13px; }
.legend-box { display: flex; justify-content: space-between; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.week { min-width: 640px; }
.week-head, .week-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.week-head { border-bottom: 1px solid var(--border); }
.week-head div { padding: 8px; text-align: center; font-size: 12px; font-weight: 600; color: #52525b; }
.week-head .we { color: #f87171; }
.week-head .td { background: #fffbeb; color: var(--navy); border-radius: 8px 8px 0 0; }
.week-row { margin-top: 6px; }
.week-row div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 8px; background: var(--navy); color: #fff; padding: 6px 10px; font-size: 11.5px; font-weight: 600; }
.ann { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-2); }
.ann:last-child { border-bottom: 0; }
.ann-date { min-width: 52px; border-right: 3px solid var(--navy); padding-right: 10px; text-align: center; font-size: 12px; font-weight: 700; color: var(--primary); }
.ann-date span { color: var(--teal2); }
.ann-body { flex: 1; min-width: 0; }
.ann-body .tt { font-weight: 600; }
.ann-body .bd { font-size: 13px; color: var(--muted); white-space: pre-line; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-2); }
.list-row:last-child { border-bottom: 0; }

/* ---------- Clock card ---------- */
.clock-card { text-align: center; }
.clock-time { font-size: 38px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin: 6px 0; font-variant-numeric: tabular-nums; }

/* ---------- Calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .dn { padding: 6px 2px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.cal .dn.we { color: #f87171; }
.cal .cell { min-height: 62px; border: 1px solid var(--border); border-radius: 10px; padding: 3px; background: #fff; min-width: 0; }
.cal .cell.blank { border-color: transparent; background: none; }
.cal .cell.today { box-shadow: 0 0 0 2px var(--primary); }
.cal .num { text-align: right; font-size: 11.5px; font-weight: 700; color: #52525b; margin-bottom: 3px; padding-right: 3px; }
.cal .num.we { color: #f87171; }
.ev { margin-bottom: 3px; border-radius: 4px; padding: 1px 3px; font-size: 9.5px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-hol { background: #fee2e2; color: #b91c1c; font-weight: 600; white-space: normal; }
.ev-leave { background: #ccfbf1; color: #115e59; font-weight: 500; }
.legend { display: flex; gap: 16px; margin-top: 16px; font-size: 12px; color: var(--muted); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.nav-pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: #fff; font-size: 13px; font-weight: 600; }
.pager-btn:hover { background: var(--zinc-100); }
.pager-title { border-radius: 12px; border: 1px solid var(--border); background: #fff; padding: 10px 16px; font-size: 13.5px; font-weight: 700; }
@media (min-width: 768px) {
  .cal { gap: 6px; } .cal .cell { min-height: 92px; padding: 6px; } .ev { font-size: 10.5px; padding: 2px 6px; }
  .cal .num { font-size: 12px; }
}

/* ---------- Shift / matrix ---------- */
.shift { border-radius: 8px; padding: 6px 8px; text-align: center; color: #fff; font-size: 12px; }
.shift.work { background: var(--navy); }
.shift.off { background: #cbd5e1; font-weight: 600; }
.shift.leave { background: #7c3aed; font-weight: 600; }
.shift small { display: block; font-size: 11px; opacity: .8; }
.dept-row td { background: var(--zinc-50); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #52525b; }
.matrix { font-size: 12.5px; }
.matrix th, .matrix td { padding: 8px 6px; }
.matrix .sticky { position: sticky; left: 0; background: #fff; z-index: 1; }
.matrix .sticky2 { position: sticky; left: 40px; background: #fff; z-index: 1; min-width: 150px; }
.hm { display: inline-block; border-radius: 6px; background: #fef3c7; color: #92400e; padding: 2px 6px; font-weight: 600; white-space: nowrap; }
.zero { color: #d4d4d8; }

/* ---------- Org chart ---------- */
.org-top { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.org-line { width: 1px; height: 24px; background: #cbd5e1; margin: 16px auto; }
.pcard { border: 1px solid var(--border); background: #fff; border-radius: 14px; padding: 12px 16px; text-align: center; box-shadow: var(--shadow); }
.pcard.top { border-color: var(--navy); background: var(--navy); color: #fff; }
.pcard .av { margin: 0 auto 6px; width: 36px; height: 36px; border-radius: 999px; background: var(--teal2); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pcard .nm { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.pcard .ps { font-size: 11px; color: var(--muted); }
.pcard.top .ps { color: #99f6e4; }
.dept-box { border: 1px solid var(--border); background: var(--zinc-50); border-radius: 14px; padding: 12px; }
.dept-box .hd { margin-bottom: 12px; border-radius: 10px; background: var(--primary); color: #fff; padding: 8px 12px; text-align: center; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.dept-box .pcard + .pcard { margin-top: 8px; }

/* ---------- Payslip ---------- */
.slip-head { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 12px; }
.slip-row { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-2); padding: 7px 0; font-size: 14px; }
.slip-row:last-child { border-bottom: 0; }
.slip-row.total { font-weight: 800; color: var(--navy); }

/* ---------- Notifications ---------- */
.notif { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-2); }
.notif:last-child { border-bottom: 0; }
.notif .msg { font-size: 14px; }
.notif.unread .msg { font-weight: 600; }
.notif.read .msg { color: var(--muted); }
.red-dot { margin-top: 6px; width: 8px; height: 8px; border-radius: 999px; background: #ef4444; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(circle at 15% 10%, #14b8a6 0, transparent 45%), linear-gradient(135deg, var(--navy), #11507a 60%, var(--primary)); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 24px; padding: 32px 26px; box-shadow: 0 30px 60px -15px rgba(0, 0, 0, .4); }
.login-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.login-brand { text-align: center; font-size: 22px; font-weight: 800; letter-spacing: .08em; color: var(--navy); }

/* ---------- Desktop ---------- */
@media (min-width: 768px) {
  body { font-size: 14px; }
  .topbar { padding: 0 20px; min-height: 60px; }
  .brand { width: 236px; }
  .brand-t { display: block; }
  .page-title { font-size: 17px; }
  .today-chip { display: inline-block; }
  .only-mobile { display: none; }
  .shell { display: flex; align-items: flex-start; }
  .sidebar {
    display: flex; flex-direction: column; width: 256px; flex-shrink: 0; position: sticky; top: 60px; height: calc(100vh - 60px);
    background: #fff; border-right: 1px solid var(--border);
  }
  .side-scroll { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
  .main { padding: 24px 28px 40px; margin: 0; }
  .bottom-nav, .sheet, .sheet-bg { display: none !important; }
  .page-head h1 { display: block; }
  .input { height: 38px; font-size: 14px; border-radius: 10px; }
  .btn { height: 38px; font-size: 14px; border-radius: 10px; }
  .btn-lg { height: 44px; font-size: 15px; }
  .btn-sm { height: 32px; }
  .hero { padding: 26px 28px 56px; }
  .hero h2 { font-size: 26px; }
  .stat-row { grid-template-columns: repeat(4, 1fr); margin: 0 16px 20px; gap: 14px; }
  .kpi .n { font-size: 26px; }
  .shortcuts { display: none; }
  .tile-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 767px) {
  .filter .actions .btn, .head-actions .btn { flex: 1; }
  .card-b { padding-left: 14px; padding-right: 14px; }
  .tbl td, .tbl th { padding-left: 10px; padding-right: 10px; }
}

/* ---------- Print ---------- */
@media print {
  .no-print, .topbar, .sidebar, .bottom-nav, .sheet, .sheet-bg, .filter, .filter-inline, .utabs, .seg, .alert { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; }
  .page-head h1 { display: block; }
}

/* ---------- Pembetulan lebar (telefon) ---------- */
.grid > *, .row2 > *, .g-main > *, .g-wide > *, .filter > *, .filter-inline > * { min-width: 0; }
input[type="date"].input, input[type="time"].input, input[type="number"].input { min-width: 0; max-width: 100%; }
input[type="date"].input, input[type="time"].input { display: block; -webkit-appearance: none; appearance: none; }
.main { overflow-x: clip; }

/* ---------- Lebar penuh (desktop) ---------- */
@media (min-width: 768px) {
  .main { max-width: none; width: auto; flex: 1; min-width: 0; margin: 0; }
}
@media (min-width: 1024px) {
  /* jadual di kiri ambil ruang tinggal, borang di kanan lebar tetap */
  .g-wide { grid-template-columns: minmax(0, 1fr) 380px; }
  .g-main { grid-template-columns: minmax(0, 1fr) 380px; }
}
.tbl td { overflow-wrap: break-word; }
.tbl .person > div { min-width: 140px; }

/* Panel tambah (boleh kembang) */
.add-panel { margin-bottom: 16px; }
.add-panel > summary { list-style: none; cursor: pointer; display: inline-flex; margin-bottom: 12px; }
.add-panel > summary::-webkit-details-marker { display: none; }
@media (min-width: 900px) { .add-panel .form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; } .add-panel .form > * + * { margin-top: 0; } .add-panel .form .btn-block { grid-column: 1 / -1; justify-self: start; width: auto; min-width: 200px; } }
@media (min-width: 768px) and (max-width: 1279px) {
  .tbl td, .tbl th { padding-left: 8px; padding-right: 8px; }
  .col-join { display: none; }
  .tbl .person > div { min-width: 0; }
  .tbl .person .avatar { display: none; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .g-2, .g-main, .g-wide { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Navigasi bawah: kaca (glassmorphism) ---------- */
@media (max-width: 767px) {
  .bottom-nav {
    left: 12px; right: 12px; bottom: calc(var(--sab) + 10px); height: var(--bn-h); padding-bottom: 0;
    border-radius: 28px; border: 1px solid rgba(255, 255, 255, .75);
    background: linear-gradient(135deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .34));
    backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 0 10px 32px rgba(15, 43, 70, .18), inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .25);
  }
  .bn.on::before { top: 6px; width: 20px; border-radius: 4px; opacity: .9; }
  .bn.on { color: var(--primary-dark); }
  .bn { color: #64748b; }
  .fab {
    border: 3px solid rgba(255, 255, 255, .85); top: -26px;
    box-shadow: 0 10px 24px rgba(15, 43, 70, .32), inset 0 2px 0 rgba(255, 255, 255, .35);
  }
  .fab-l { text-shadow: 0 1px 0 rgba(255, 255, 255, .7); }
  .main { padding-bottom: calc(var(--bn-h) + var(--sab) + 44px); }
  .sheet-bg { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
  .sheet { background: rgba(255, 255, 255, .88); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); border-top: 1px solid rgba(255, 255, 255, .8); }
}

/* ---------- Tetapan payroll ---------- */
.set-sec { border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px 14px; background: var(--zinc-50); }
.set-t { font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.set-fields { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .set-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Kotak nota ---------- */
.box { border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.5; background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e3a5f; }
.box b.h { display: block; margin-bottom: 2px; }
.box.tip { background: #f0fdfa; border-left-color: var(--primary); color: #115e59; }
.box.warn { background: #fffbeb; border-left-color: #f59e0b; color: #78350f; }

/* ---------- Log aktiviti & WhatsApp ---------- */
.stat-strip { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-bottom: 16px; }
@media (min-width: 768px) { .stat-strip { grid-template-columns: repeat(5, 1fr); } }
.stat-strip .stat .v { font-size: 22px; }
.audit-tbl td { font-size: 13px; }
.audit-d { min-width: 260px; max-width: 520px; overflow-wrap: anywhere; }
.row-crit td { background: #fef2f2 !important; }
.row-warn td { background: #fffbeb !important; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: #22c55e; color: #fff; font-size: 12.5px; font-weight: 700; vertical-align: middle; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.wa-btn:hover { background: #16a34a; }

/* ---------- Kad tetapan: ikon tajuk, senarai cuti umum ---------- */
.align-start { align-items: start; }
.card-h h3 { display: flex; align-items: center; gap: 10px; }
.hico { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; }
.hol-list { max-height: 400px; overflow-y: auto; margin: 0 -6px 14px; padding: 0 6px; scrollbar-width: thin; }
.hol-year { position: sticky; top: 0; z-index: 1; background: #fff; padding: 8px 2px 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted-2); border-bottom: 1px solid var(--border-2); }
.hol-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border-2); border-radius: 10px; }
.hol-row.past { opacity: .5; }
.hol-row.next { background: #f0fdfa; }
.hol-date { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; background: #ffe4e6; color: #be123c; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.hol-date b { font-size: 17px; }
.hol-date span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.hol-row.past .hol-date { background: var(--zinc-100); color: var(--muted); }
.hol-info { flex: 1; min-width: 0; }
.hol-name { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.hol-name .badge { margin-left: 6px; font-size: 10px; padding: 1px 8px; }
.hol-form { display: grid; gap: 10px; grid-template-columns: 1fr; padding-top: 14px; border-top: 1px dashed var(--border); }
@media (min-width: 640px) { .hol-form { grid-template-columns: 150px 1fr 130px auto; } }
.hol-form, .hol-form { grid-template-columns: 1fr 1fr !important; }
.hol-form input[name=name], .hol-form .btn { grid-column: 1 / -1; }

/* ---------- Jadual kedai, lokasi, cuti umum (buka/tutup) ---------- */
.sch { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.sch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border-2); }
.sch-row:last-child { border-bottom: 0; }
.sch-head { display: none; background: var(--zinc-50); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); }
.sch-day { font-weight: 700; color: var(--navy); }
.sch-open { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.sch-open input { width: 18px; height: 18px; accent-color: var(--primary); }
@media (min-width: 640px) {
  .sch-row { grid-template-columns: 140px 110px 1fr 1fr; padding: 8px 14px; }
  .sch-head { display: grid; }
}
.loc-row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; padding: 12px; margin-bottom: 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--zinc-50); }
.loc-row .loc-name, .loc-row .loc-act { grid-column: 1 / -1; }
.loc-row .loc-name .input { margin-bottom: 6px; }
.loc-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.loc-add { background: #fff; border-style: dashed; }
@media (min-width: 900px) {
  .loc-row { grid-template-columns: 1.6fr 1fr 1fr 110px; align-items: start; }
  .loc-row .loc-name { grid-column: auto; }
  .loc-row .loc-act { grid-column: 1 / -1; }
}
.geo { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.geo.ok { color: #15803d; } .geo.bad { color: #b91c1c; } .geo.warn { color: #b45309; }
.hol-date.open { background: #fef3c7; color: #b45309; }
.hol-row form { margin: 0; }
.ev-hol-open { background: #fef3c7; color: #92400e; font-weight: 600; white-space: normal; }
.hol-form { grid-template-columns: 1fr 1fr !important; }
/* ---------- Cuti umum: butang Buka | Tutup, nota ---------- */
.seg2 { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: #fff; flex-shrink: 0; }
.seg2 button { border: 0; background: transparent; padding: 4px 11px; font-size: 11.5px; font-weight: 700; color: var(--muted-2); cursor: pointer; font-family: inherit; }
.seg2 button:hover { background: var(--zinc-100); }
.seg2 button.on-open { background: #dcfce7; color: #15803d; }
.seg2 button.on-closed { background: #fee2e2; color: #b91c1c; }
.hol-note { margin-bottom: 4px; padding: 2px 6px; border-radius: 6px; background: #fef3c7; color: #92400e; font-size: 10.5px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ---------- Mohon cuti: pratonton & cuti umum akan datang ---------- */
.leave-preview { border-radius: 12px; background: var(--zinc-50); border: 1px dashed #cbd5e1; padding: 10px 12px; font-size: 13px; }
.lp-main { font-weight: 500; }
.lp-note { margin-top: 5px; font-size: 12.5px; color: #92400e; }
.lp-note.tutup { color: #b91c1c; } .lp-note.rehat { color: var(--muted); }
.hol-chips { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hol-chips { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .hol-chips { grid-template-columns: repeat(3, 1fr); } }
.hol-chip { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.hol-chip.closed { border-color: #fecaca; background: #fff7f7; }
.hol-chip .hol-name { font-size: 13.5px; }
/* ---------- Carta organisasi (pokok + suntingan seret-dan-lepas) ---------- */
.org-canvas { overflow-x: auto; padding: 8px 4px 16px; border-radius: 14px; transition: background .25s, box-shadow .25s; min-height: 140px; }
.org-canvas.editing { background: radial-gradient(circle, #cbd5e1 1px, transparent 1.4px) 0 0 / 18px 18px, #fbfdff; outline: 2px dashed rgba(13,148,136,.45); outline-offset: -2px; padding: 18px 10px 26px; }
.org-canvas.drop-root { outline-color: var(--primary); background-color: #f0fdfa; }
.otree, .otree ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.otree { width: max-content; min-width: 100%; }
.otree ul { padding-top: 24px; position: relative; }
.otree li { position: relative; padding: 24px 8px 0; display: flex; flex-direction: column; align-items: center; }
.otree.root > li { padding-top: 0; }
.otree li::before, .otree li::after { content: ""; position: absolute; top: 0; width: 50%; height: 24px; border-top: 2px solid #cbd5e1; }
.otree li::before { right: 50%; }
.otree li::after { left: 50%; border-left: 2px solid #cbd5e1; }
.otree.root > li::before, .otree.root > li::after { display: none; }
.otree li:only-child::before, .otree li:only-child::after { display: none; }
.otree li:only-child { padding-top: 24px; }
.otree.root > li:only-child { padding-top: 0; }
.otree li:first-child::before, .otree li:last-child::after { border: 0 none; }
.otree li:last-child::before { border-right: 2px solid #cbd5e1; border-radius: 0 10px 0 0; }
.otree li:first-child::after { border-radius: 10px 0 0 0; }
.otree ul::before { content: ""; position: absolute; top: 0; left: 50%; border-left: 2px solid #cbd5e1; height: 24px; }
.ocard { position: relative; width: 168px; padding: 12px 10px 10px; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.ocard .oav { width: 38px; height: 38px; margin: 0 auto 6px; border-radius: 50%; background: linear-gradient(135deg, var(--teal2), var(--primary)); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ocard .onm { font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--navy); overflow-wrap: anywhere; }
.ocard .ops { font-size: 11px; color: var(--muted); margin-top: 2px; }
.ocard .odp { display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 999px; background: var(--zinc-100); font-size: 10px; font-weight: 600; color: var(--muted); }
.ocard.group { background: linear-gradient(135deg, var(--primary), #0f766e); border-color: transparent; color: #fff; padding: 12px 10px; }
.ocard.group .ogl { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; overflow-wrap: anywhere; }
.ocard.group .ogc { font-size: 10.5px; opacity: .85; margin-top: 2px; }
.otree.root > li > .ocard.emp { background: linear-gradient(135deg, var(--navy), #1a3a5c); border-color: transparent; }
.otree.root > li > .ocard.emp .onm { color: #fff; }
.otree.root > li > .ocard.emp .ops { color: #99f6e4; }
.otree.root > li > .ocard.emp .odp { background: rgba(255,255,255,.14); color: #e2e8f0; }
/* mod suntingan */
.ocard.edit { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.ocard.edit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,43,70,.16); border-color: var(--primary); }
.ocard .ox { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: #ef4444; color: #fff; font-size: 14px; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.ocard.edit:hover .ox, .ocard.edit:focus-within .ox { display: flex; animation: popIn .18s ease-out; }
@media (hover: none) { .ocard.edit .ox { display: flex; } }
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.ocard.dragging { opacity: .28; filter: grayscale(.5); transform: scale(.96); }
.ocard.drop-in { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(13,148,136,.28), 0 10px 24px rgba(13,148,136,.25); transform: scale(1.04); animation: dropPulse 1s ease-in-out infinite; }
.ocard.drop-in::after { content: "＋ bawahan"; position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); padding: 1px 9px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; white-space: nowrap; }
.ocard.drop-before::before, .ocard.drop-after::before { content: ""; position: absolute; top: -4px; bottom: -4px; width: 6px; border-radius: 6px; background: var(--primary); box-shadow: 0 0 10px rgba(13,148,136,.7); }
.ocard.drop-before::before { left: -10px; }
.ocard.drop-after::before { right: -10px; }
@keyframes dropPulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(13,148,136,.28), 0 10px 24px rgba(13,148,136,.2); } 50% { box-shadow: 0 0 0 8px rgba(13,148,136,.12), 0 10px 24px rgba(13,148,136,.3); } }
.ocard.ghost, .ochip.ghost { position: fixed; z-index: 9999; pointer-events: none; margin: 0; transform: rotate(3deg) scale(1.06); opacity: .96; box-shadow: 0 18px 40px rgba(15,43,70,.35); cursor: grabbing; }
body.org-dragging, body.org-dragging * { cursor: grabbing !important; user-select: none !important; }
.org-empty { padding: 40px 10px; text-align: center; color: var(--muted-2); border: 2px dashed var(--border); border-radius: 14px; }
/* bar suntingan + dulang pekerja */
.org-bar { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow); overflow: hidden; animation: slideDown .35s cubic-bezier(.2,.8,.2,1); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.org-bar[hidden] { display: none; }
.org-bar-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; background: linear-gradient(90deg, #f0fdfa, #fff); border-bottom: 1px solid var(--border-2); }
.org-bar-t { display: flex; flex-direction: column; gap: 2px; min-width: 220px; flex: 1; }
.org-bar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.pulse { animation: dropPulse 1.2s ease-in-out infinite; }
.org-tray { padding: 10px 14px 14px; transition: background .2s; }
.org-tray.tray-drop { background: #fef2f2; outline: 2px dashed #ef4444; outline-offset: -4px; }
.org-tray.tray-drop::after { content: "Lepaskan di sini untuk keluarkan dari carta"; display: block; margin-top: 8px; text-align: center; font-size: 12px; font-weight: 700; color: #b91c1c; }
.org-tray-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--navy); }
.org-tray-h b { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; text-align: center; font-size: 11.5px; }
.org-tray-h .input { width: 180px; }
.org-chips { display: flex; flex-wrap: wrap; gap: 8px; max-height: 190px; overflow-y: auto; }
.ochip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--border); border-radius: 999px; background: #fff; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s; animation: popIn .25s ease-out; }
.ochip:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 6px 16px rgba(15,43,70,.14); }
.ochip.dragging { opacity: .3; }
.ochip-t { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.ochip-t b { font-size: 12.5px; color: var(--navy); }
.ochip-t small { font-size: 10.5px; color: var(--muted); }
.ochip .oav { width: 30px; height: 30px; margin: 0; border-radius: 50%; background: linear-gradient(135deg, var(--teal2), var(--primary)); color: #fff; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.org-tray-empty { font-size: 13px; color: var(--muted-2); padding: 6px 2px; }
@media print { .org-canvas { overflow: visible; zoom: .7; } .org-card { box-shadow: none; } }

.zoombar { display: inline-flex; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.zoombar button { border: 0; background: transparent; padding: 0 14px; height: 38px; font-size: 14px; font-weight: 700; color: var(--navy); cursor: pointer; font-family: inherit; }
.zoombar button + button { border-left: 1px solid var(--border); }
.zoombar button:hover { background: var(--zinc-100); }
[hidden] { display: none !important; }

/* ---------- Toast (pop-up notifikasi) ---------- */
.toasts { position: fixed; z-index: 95; top: calc(var(--sat) + 66px); left: 50%; transform: translateX(-50%); width: min(440px, calc(100vw - 24px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
@media (min-width: 768px) { .toasts { left: auto; right: 24px; transform: none; top: 74px; } }
.toast { pointer-events: auto; position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; padding: 12px 38px 14px 12px; border-radius: 14px; background: rgba(255,255,255,.97); border: 1px solid var(--border); box-shadow: 0 14px 36px rgba(15,43,70,.22); font-size: 13.5px; font-weight: 600; color: var(--text); transform: translateY(-140%); opacity: 0; transition: transform .38s cubic-bezier(.2,.9,.3,1.12), opacity .25s; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.toast.in { transform: none; opacity: 1; }
.toast.out { transform: translateY(-140%); opacity: 0; }
.t-ic { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #fff; }
.t-msg { flex: 1; line-height: 1.35; overflow-wrap: anywhere; }
.t-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--muted-2); font-size: 18px; line-height: 1; cursor: pointer; }
.t-x:hover { background: var(--zinc-100); color: var(--text); }
.t-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; animation: toastBar linear forwards; }
@keyframes toastBar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.toast-success .t-ic, .toast-success .t-bar { background: #16a34a; }
.toast-error .t-ic, .toast-error .t-bar { background: #dc2626; }
.toast-error { border-color: #fecaca; }
.toast-info .t-ic, .toast-info .t-bar { background: #0d9488; }
@media print { .toasts { display: none; } }
/* ---------- System Setting: kad lipat, dua lajur sama tinggi, rel skrol ---------- */
.acc { padding: 0; overflow: hidden; }
.acc-h { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; background: transparent; font-family: inherit; text-align: left; cursor: pointer; color: inherit; }
.acc-h:hover { background: var(--zinc-50); }
.acc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.acc-t b { font-size: 15px; font-weight: 700; color: var(--navy); }
.acc-t small { margin-top: 2px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-chev { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 10px; background: var(--zinc-100); color: var(--muted); flex-shrink: 0; transition: transform .3s ease, background .2s, color .2s; }
.acc.open .acc-chev { transform: rotate(90deg); background: var(--primary-soft); color: var(--primary-dark); }
.acc.open > .acc-h { border-bottom: 1px solid var(--border-2); }
.acc-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s cubic-bezier(.3,.8,.3,1); }
.acc.open .acc-b { grid-template-rows: 1fr; }
.acc-in { min-height: 0; overflow: hidden; }
.acc:not(.open) .acc-in { visibility: hidden; transition: visibility 0s .38s; }
.acc.no-anim .acc-b, .acc.no-anim .acc-chev { transition: none; }
.acc-in > .card-b { padding-top: 16px; }
@media (max-width: 640px) { .acc-t small { white-space: normal; } .acc-h .badge { display: none; } }
.set-cols { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 16px; }
.set-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.set-col .card { margin-bottom: 0; }
@media (min-width: 1200px) {
  .set-cols { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .set-col > .card.fill { flex: 1; display: flex; flex-direction: column; }
  .card.fill > .card-b { flex: 1; display: flex; flex-direction: column; min-height: 0; }
  .hol-wrap { position: relative; flex: 1; min-height: 260px; margin-bottom: 14px; }
  .hol-wrap .hol-list { position: absolute; inset: 0; max-height: none; margin: 0 -6px; }
}
/* rel skrol (gaya pembaris) */
html.rail-page { scrollbar-width: none; }
html.rail-page::-webkit-scrollbar { display: none; }
html.rail-page .main { padding-right: 58px; }
.scrollrail { position: fixed; z-index: 35; right: 10px; top: 86px; bottom: 28px; width: 34px; user-select: none; -webkit-user-select: none; touch-action: none; cursor: ns-resize; }
.scrollrail.off { display: none; }
.sr-ticks { position: absolute; inset: 0; }
.sr-tick { position: absolute; right: 0; width: 6px; height: 1px; background: #cbd5e1; display: block; }
.sr-tick.maj { width: 12px; background: #64748b; }
.sr-num { position: absolute; right: 16px; transform: translateY(-50%); font: 600 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace; color: #94a3b8; font-style: normal; opacity: 0; transition: opacity .2s; }
.scrollrail:hover .sr-num, .scrollrail.active .sr-num { opacity: 1; }
.sr-ind { position: absolute; right: 0; width: 30px; height: 2px; background: var(--primary); transform: translateY(-1px); box-shadow: 0 0 8px rgba(13,148,136,.6); pointer-events: none; transition: width .2s; }
.scrollrail:hover .sr-ind, .scrollrail.active .sr-ind { width: 46px; }
.sr-pct { position: absolute; right: calc(100% + 6px); top: 50%; transform: translateY(-50%); padding: 2px 6px; border-radius: 5px; background: var(--primary); color: #fff; font: 700 10px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; white-space: nowrap; }
.sr-secs { position: absolute; inset: 0; pointer-events: none; }
.sr-sec { position: absolute; right: 40px; transform: translateY(-50%); pointer-events: auto; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.96); color: var(--muted); font: 700 10px/1.3 inherit; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; cursor: pointer; font-family: inherit; opacity: 0; transform: translate(10px, -50%); transition: opacity .25s, transform .35s cubic-bezier(.3,.8,.3,1), top .45s cubic-bezier(.3,.8,.3,1), background .2s, color .2s; box-shadow: 0 2px 8px rgba(15,43,70,.1); pointer-events: none; }
.scrollrail.awake .sr-sec { pointer-events: auto; }
.sr-sec:hover { background: var(--primary-soft); color: var(--primary-dark); border-color: var(--teal2); }
.sr-sec.cur { background: var(--navy); color: #fff; border-color: var(--navy); }
.scrollrail.awake .sr-sec { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 767px) {
  .scrollrail { right: 3px; width: 24px; top: 70px; bottom: 110px; }
  html.rail-page .main { padding-right: 30px; }
  .sr-sec { right: 30px; }
  .sr-num { display: none; }
}
@media print { .scrollrail { display: none; } }

/* ---------- Salary Slip (payroll terperinci) ---------- */
.slip-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.slip-back { font-size: 14px; color: var(--muted); }
.slip-pick { max-width: 320px; min-width: 200px; }
.slip-sum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.slip-sum-i { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.slip-sum-i span { font-size: 12px; font-weight: 600; color: var(--muted); }
.slip-sum-i b { font-size: 20px; color: var(--navy); text-align: right; }
.slip-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
@media (min-width: 760px) { .slip-sum { grid-template-columns: repeat(4, 1fr); } .slip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .slip-grid { grid-template-columns: repeat(4, 1fr); } }
.slip-col { padding: 0; margin: 0; overflow: hidden; }
.slip-h { padding: 12px 16px; font-size: 13px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--border-2); background: var(--zinc-50); }
.slip-b { padding: 14px 16px 18px; }
.slip-b > .label { display: block; margin: 12px 0 5px; font-size: 12.5px; font-weight: 700; }
.slip-b > .label:first-child { margin-top: 0; }
.slip-t { margin: 16px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); }
.slip-t:first-child { margin-top: 0; }
.slip-hr { border: 0; border-top: 1px solid var(--border-2); margin: 16px 0 4px; }
.pl { padding: 10px 0; border-bottom: 1px dashed var(--border-2); }
.pl:last-child { border-bottom: 0; }
.pl-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.pl-label { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: var(--text); }
.pl-labelin { flex: 1; min-width: 0; border: 0; border-bottom: 1px dashed var(--border); background: transparent; font: inherit; font-size: 13px; font-weight: 700; padding: 3px 0; }
.pl-labelin:focus { outline: none; border-bottom-color: var(--primary); }
.pl-mode { border: 1px solid var(--border); border-radius: 8px; background: #fff; font: inherit; font-size: 11.5px; font-weight: 700; padding: 3px 6px; color: var(--primary-dark); max-width: 150px; }
.pl-tag { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--zinc-100); color: var(--muted); }
.pl-del { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fee2e2; color: #dc2626; font-size: 16px; line-height: 1; cursor: pointer; }
.pl .input { width: 100%; }
.pl-view { background: var(--zinc-50); color: var(--text); text-align: right; }
.pl-edit { text-align: right; display: none; }
.pl[data-mode="fixed"] .pl-view, .pl[data-mode="custom"] .pl-view { display: none; }
.pl[data-mode="fixed"] .pl-edit, .pl[data-mode="custom"] .pl-edit { display: block; }
.pl[data-mode="none"] .pl-view { color: var(--muted-2); }
.pl-how, .pl-note { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.pl-note:empty { display: none; }
.pl-more { margin-top: 6px; }
.pl-more summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--primary-dark); list-style: none; }
.pl-more summary::-webkit-details-marker { display: none; }
.pl-more summary::before { content: '▸ '; }
.pl-more[open] summary::before { content: '▾ '; }
.pl-more-b { padding: 8px 0 2px; }
.pl-flags { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); align-items: center; }
.pl-flags label { display: inline-flex; gap: 4px; align-items: center; font-weight: 600; color: var(--text); }
.pl-empty { font-size: 12px; color: var(--muted); margin-top: 6px; }
.pl-tbl { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 8px; }
.pl-tbl th, .pl-tbl td { padding: 4px 6px; border-bottom: 1px solid var(--border-2); text-align: left; }
.pl-tbl th { color: var(--muted); font-weight: 700; }
.tg { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 0; cursor: pointer; }
.tg input { position: absolute; opacity: 0; pointer-events: none; }
.tg i { width: 38px; height: 22px; border-radius: 999px; background: #cbd5e1; position: relative; flex-shrink: 0; transition: background .2s; }
.tg i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.tg input:checked + i { background: var(--navy); }
.tg input:checked + i::after { transform: translateX(16px); }
.tg input:disabled + i { opacity: .55; }
.tg input:focus-visible + i { outline: 2px solid var(--primary); outline-offset: 2px; }
.tg-s { font-size: 12px; white-space: nowrap; padding: 0; }
.rate { display: flex; align-items: center; gap: 10px; }
.rate .input { flex: 1; text-align: right; }
.rate .input[readonly] { background: var(--zinc-50); }
.add-line { margin-top: 12px; border-color: var(--navy); color: var(--navy); font-weight: 700; }
.custom-list:empty { display: none; }
@media print { .slip-bar, .add-line, .pl-del { display: none !important; } }

@media (max-width: 640px) { .hide-sm { display: none; } }

/* ---------- Mod demo ---------- */
.demo-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #f59e0b; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.demo-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: 13px; }
.demo-note b { letter-spacing: .06em; }
.demo-note form { margin: 0; }

/* ---------- Komisen jualan ---------- */
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .row3 { grid-template-columns: 1fr; } }
.scr-tbl { min-width: 760px; }
.scr-tbl td { padding: 6px 4px; }
.scr-tbl .input { padding-left: 10px; padding-right: 10px; }
.scr-tbl .input { min-width: 0; width: 100%; }
.scr-tbl .sc-u { width: 58px; text-align: center; padding-left: 6px; padding-right: 6px; }
.scr-tbl .sc-a { width: 92px; text-align: right; padding-left: 8px; padding-right: 8px; }
.scr-no { text-align: center; font-weight: 700; color: var(--muted); width: 36px; }
.scr-del { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fee2e2; color: #dc2626; font-size: 16px; line-height: 1; cursor: pointer; }
.sc-sum { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
@media (min-width: 760px) { .sc-sum { grid-template-columns: repeat(4, 1fr); } }
.sc-sum > div { background: var(--zinc-50); border: 1px solid var(--border-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.sc-sum span { font-size: 12px; color: var(--muted); font-weight: 600; }
.sc-sum b { font-size: 17px; color: var(--navy); }

.sc-layout { display: grid; gap: 14px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.sc-side { display: flex; flex-direction: column; gap: 14px; }
.sc-side .card { margin: 0; }
.sc-act { display: grid; gap: 8px; margin-top: 16px; }
@media (min-width: 1100px) { .sc-layout { grid-template-columns: minmax(0, 1fr) 340px; } .sc-side { position: sticky; top: 76px; } .sc-act { grid-template-columns: 1fr 1fr; } }
