/* ============================================================
   Naira Workspace — Design System
   Navy / White / Cyan (identitas Naira Digital) · light & modern
   ============================================================ */

:root {
  --navy-950: #060B1E;
  --navy-900: #0A1229;
  --navy-850: #0D1733;
  --navy-800: #111E42;
  --navy-700: #1A2B5E;
  --navy-100: #DCE4F7;
  --navy-50: #EEF2FC;
  --cyan-500: #22D3EE;
  --cyan-600: #06B6D4;
  --cyan-700: #0891B2;
  --cyan-50: #E4FAFE;
  --ink: #0B1226;
  --muted: #5A6482;
  --muted-2: #8A93AC;
  --line: #E3E9F4;
  --bg: #F1F5FC;
  --white: #FFFFFF;
  --green: #10B981;
  --green-bg: #E7F8F1;
  --amber: #D97706;
  --amber-bg: #FBF0DC;
  --rose: #E11D48;
  --rose-bg: #FDEBEE;
  --violet: #7C3AED;
  --violet-bg: #F1ECFE;
  --blue: #2563EB;
  --blue-bg: #E8F0FE;
  --slate-bg: #EFF2F8;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(10, 18, 41, .05), 0 10px 28px -14px rgba(10, 18, 41, .14);
  --shadow-lg: 0 18px 48px -14px rgba(6, 11, 30, .38);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(900px 420px at 88% -10%, rgba(34, 211, 238, .12), transparent 60%),
                    radial-gradient(800px 380px at -10% 12%, rgba(124, 58, 237, .07), transparent 55%);
  min-height: 100vh;
  font-size: 14.5px;
  line-height: 1.5;
}
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); font-size: 14px; color: var(--ink); }
a { color: var(--cyan-700); text-decoration: none; }
.hidden { display: none !important; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #C9D4EA; border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }

#app { display: flex; min-height: 100vh; }

/* ---------------- Sidebar ---------------- */
.sidebar {
  width: 258px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-850) 100%);
  color: #fff;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  z-index: 40;
  overflow: hidden;
}
.sidebar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(340px 220px at 15% 0%, rgba(34, 211, 238, .16), transparent 65%);
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 16px; position: relative; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan-500), var(--cyan-700));
  color: var(--navy-950); font-weight: 800; font-size: 20px;
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -4px rgba(34, 211, 238, .55);
}
.brand-text { font-weight: 800; font-size: 17px; letter-spacing: .12em; color: #fff; line-height: 1.1; }
.brand-text span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .22em; color: var(--cyan-500); margin-top: 2px; }
.sidebar-close { display: none; }
.side-nav { flex: 1; overflow-y: auto; padding: 6px 12px 14px; display: flex; flex-direction: column; gap: 3px; position: relative; }
.nav-group-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .34); padding: 18px 12px 6px;
}
.nav-group-label:first-child { padding-top: 8px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: rgba(255, 255, 255, .64); font-weight: 500; font-size: 14px;
  border: 1px solid transparent;
  transition: all .15s ease;
  position: relative;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-item.active {
  color: #fff; font-weight: 600;
  background: linear-gradient(90deg, rgba(34, 211, 238, .17), rgba(34, 211, 238, .04));
  border-color: rgba(34, 211, 238, .28);
}
.nav-item.active::before {
  content: ""; position: absolute; left: -12px; top: 22%; bottom: 22%; width: 4px;
  background: linear-gradient(180deg, var(--cyan-500), var(--cyan-700));
  border-radius: 0 4px 4px 0;
}
.nav-item .nav-badge {
  margin-left: auto; background: rgba(239, 68, 68, .92); color: #fff;
  font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 99px;
}
.sidebar-foot { padding: 14px 16px 18px; border-top: 1px solid rgba(255, 255, 255, .08); position: relative; }
.agent-chip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
  padding: 10px 12px; border-radius: 12px;
}
.agent-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan-500); box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); flex-shrink: 0; }
.agent-chip strong { display: block; font-size: 13px; color: #fff; }
.agent-chip small { font-size: 11px; color: rgba(255, 255, 255, .5); }

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(6, 11, 30, .5); z-index: 35; }

/* ---------------- Main / Topbar ---------------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 24px; background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.topbar-title { min-width: 0; margin-right: 4px; }
.topbar-title h1 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title p { font-size: 12px; color: var(--muted-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; }
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid var(--line); background: var(--white);
  color: var(--navy-700); transition: all .15s ease;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--navy-50); color: var(--navy-900); }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 6px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: var(--white);
  transition: all .15s ease;
}
.user-chip:hover { border-color: var(--cyan-600); background: var(--cyan-50); }
.user-avatar {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--cyan-500); font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
}
.user-info strong { display: block; font-size: 13px; line-height: 1.15; }
.user-info small { font-size: 11px; color: var(--muted-2); }
.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 6px; min-width: 210px;
}
.user-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 9px; color: var(--ink); font-weight: 500; font-size: 13.5px;
  transition: background .12s ease;
}
.user-menu-item svg { width: 16px; height: 16px; color: var(--muted); }
.user-menu-item:hover { background: var(--navy-50); }
.user-menu-item.danger { color: var(--rose); }
.user-menu-item.danger svg { color: var(--rose); }
.user-menu-head { padding: 8px 11px 7px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.user-menu-head strong { display: block; font-size: 13px; }
.user-menu-head small { font-size: 11.5px; color: var(--muted-2); }

/* ---------------- View & layout ---------------- */
.view { padding: 26px; display: flex; flex-direction: column; gap: 24px; max-width: 1400px; width: 100%; margin: 0 auto; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.page-head p { color: var(--muted-2); font-size: 13px; margin-top: 3px; }
.page-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px 0;
}
.card-head h3 { font-size: 15px; font-weight: 700; flex: 1; min-width: 0; }
.card-head .sub { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.card-body { padding: 18px 20px 20px; }
.card-body.flush { padding: 12px 20px 14px; }
.card-actions { display: flex; align-items: center; gap: 8px; }

/* ---------------- KPI / grid ---------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.kpi {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi .kpi-ic {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
}
.kpi .kpi-ic svg { width: 20px; height: 20px; }
.kpi .kpi-val { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.kpi .kpi-val small { font-size: 15px; font-weight: 700; color: var(--muted-2); }
.kpi .kpi-lbl { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi .kpi-note { font-size: 11.5px; color: var(--muted-2); }
.kpi.accent-cyan .kpi-ic { background: var(--cyan-50); color: var(--cyan-700); }
.kpi.accent-navy .kpi-ic { background: var(--navy-50); color: var(--navy-700); }
.kpi.accent-green .kpi-ic { background: var(--green-bg); color: var(--green); }
.kpi.accent-amber .kpi-ic { background: var(--amber-bg); color: var(--amber); }
.kpi.accent-rose .kpi-ic { background: var(--rose-bg); color: var(--rose); }
.kpi.accent-violet .kpi-ic { background: var(--violet-bg); color: var(--violet); }

.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--radius-sm); font-weight: 600; font-size: 13.5px;
  border: 1px solid transparent; transition: all .15s ease; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan-500), var(--cyan-700));
  color: #05222B; box-shadow: 0 6px 16px -6px rgba(6, 182, 212, .6);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 8px 20px -6px rgba(6, 182, 212, .7); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-800); }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--navy-800); }
.btn-ghost:hover { background: var(--navy-50); border-color: var(--navy-100); }
.btn-danger { background: var(--rose); color: #fff; }
.btn-danger:hover { background: #BE123C; }
.btn-soft-danger { background: var(--rose-bg); color: var(--rose); }
.btn-soft-danger:hover { background: #FBD9DE; }
.btn-soft { background: var(--navy-50); color: var(--navy-800); }
.btn-soft:hover { background: var(--navy-100); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }

.icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn.sm svg { width: 15px; height: 15px; }
.icon-btn.danger { color: var(--rose); }
.icon-btn.danger:hover { background: var(--rose-bg); border-color: #F6C7CF; }

/* ---------------- Pills & badges ---------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700;
  white-space: nowrap; letter-spacing: .01em;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill svg { width: 13px; height: 13px; }
.pill-green { background: var(--green-bg); color: var(--green); }
.pill-amber { background: var(--amber-bg); color: var(--amber); }
.pill-rose { background: var(--rose-bg); color: var(--rose); }
.pill-navy { background: var(--navy-50); color: var(--navy-700); }
.pill-blue { background: var(--blue-bg); color: var(--blue); }
.pill-cyan { background: var(--cyan-50); color: var(--cyan-700); }
.pill-violet { background: var(--violet-bg); color: var(--violet); }
.pill-gray { background: var(--slate-bg); color: var(--muted); }

.badge-count {
  background: var(--navy-50); color: var(--navy-700); font-size: 11px; font-weight: 700;
  border-radius: 99px; padding: 2px 9px; margin-left: 8px;
}

/* ---------------- Tabel ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.tbl th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2); padding: 11px 14px; background: var(--bg); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .1s ease; }
.tbl tbody tr:hover { background: #FAFCFF; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl th.num { text-align: right; }
.tbl .act { text-align: right; white-space: nowrap; }
.tbl th.act { text-align: right; }
.tbl .act .icon-btn { margin-left: 4px; }
.td-main { font-weight: 600; color: var(--ink); }
.td-sub { font-size: 12px; color: var(--muted-2); margin-top: 1px; }
.person { display: flex; align-items: center; gap: 10px; }
.person b { display: block; font-weight: 600; }
.person small { color: var(--muted-2); font-size: 12px; }
.avatar {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
  color: #fff; letter-spacing: .02em;
}
.clickable { cursor: pointer; }

/* ---------------- Filter bar ---------------- */
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-input {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; max-width: 380px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px;
  height: 38px; transition: border-color .15s ease, box-shadow .15s ease;
}
.search-input:focus-within { border-color: var(--cyan-600); box-shadow: 0 0 0 3px rgba(34, 211, 238, .16); }
.search-input svg { width: 16px; height: 16px; color: var(--muted-2); flex-shrink: 0; }
.search-input input { border: none; outline: none; width: 100%; background: transparent; font-size: 13.5px; }
.fselect {
  height: 38px; padding: 0 32px 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); font-size: 13px; font-weight: 500; color: var(--ink);
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A93AC' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.fselect:focus { outline: none; border-color: var(--cyan-600); }

.pill-tabs { display: inline-flex; gap: 4px; background: var(--slate-bg); padding: 4px; border-radius: 11px; flex-wrap: wrap; }
.pill-tabs button {
  border: none; background: transparent; padding: 6px 13px; border-radius: 8px;
  font-weight: 600; font-size: 12.5px; color: var(--muted); transition: all .15s ease;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
}
.pill-tabs button .cnt {
  background: rgba(90, 100, 130, .14); color: var(--muted); font-size: 10.5px; font-weight: 800;
  border-radius: 99px; padding: 0 6px; line-height: 16px;
}
.pill-tabs button:hover { color: var(--ink); }
.pill-tabs button.active { background: var(--white); color: var(--navy-900); box-shadow: 0 1px 3px rgba(10, 18, 41, .12); }
.pill-tabs button.active .cnt { background: var(--cyan-50); color: var(--cyan-700); }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; font-weight: 700; color: var(--navy-800); letter-spacing: .01em; }
.field label .req { color: var(--rose); }
.field .hint { font-size: 11.5px; color: var(--muted-2); }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); padding: 9px 12px; font-size: 13.5px; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--cyan-600); box-shadow: 0 0 0 3px rgba(34, 211, 238, .15); }
.textarea { resize: vertical; min-height: 74px; line-height: 1.5; }
.input.invalid, .select.invalid { border-color: var(--rose); }
.input-icon { position: relative; }
.input-icon > svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted-2); pointer-events: none;
}
.input-icon .input { padding-left: 36px; }
.input-prefix { position: relative; }
.input-prefix span {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 600; color: var(--muted-2); pointer-events: none;
}
.input-prefix .input { padding-left: 34px; }
.input-append { display: flex; align-items: center; gap: 6px; }
.input-append .input { flex: 1; }

.switch-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; border-radius: 99px; background: #CBD5E6;
  transition: background .18s ease; cursor: pointer;
}
.switch .track::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .18s ease;
  box-shadow: 0 1px 3px rgba(10, 18, 41, .3);
}
.switch input:checked + .track { background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600)); }
.switch input:checked + .track::after { transform: translateX(18px); }

/* summary order */
.summary-box {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 9px;
}
.sum-row { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.sum-row span:first-child { color: var(--muted); }
.sum-row strong { font-weight: 700; }
.sum-row.total { border-top: 1px dashed #CBD5E6; padding-top: 9px; font-size: 15px; }
.sum-row.total strong { font-size: 18px; letter-spacing: -.01em; }
.sum-row .num-inline { display: inline-flex; align-items: center; gap: 6px; }

/* item rows (order form) */
.oi-head {
  display: grid; grid-template-columns: 1fr 88px 130px 120px 34px; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-2); padding: 0 2px 6px;
}
.oi-row {
  display: grid; grid-template-columns: 1fr 88px 130px 120px 34px; gap: 10px;
  align-items: center; margin-bottom: 9px;
}
.oi-row .line-total { font-weight: 700; font-size: 13px; text-align: right; white-space: nowrap; }

/* ---------------- Detail rows ---------------- */
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.detail-row { padding: 11px 0; border-bottom: 1px solid #EEF2F9; display: flex; flex-direction: column; gap: 2px; }
.detail-row:nth-last-child(-n+2) { border-bottom: none; }
.detail-row .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.detail-row .val { font-size: 14px; font-weight: 600; color: var(--ink); word-break: break-word; }
.detail-row .val.light { font-weight: 500; }
.text-block { white-space: pre-wrap; }

/* ---------------- Tools grid ---------------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 18px; }
.tool-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(34, 211, 238, .5); }
.tool-thumb {
  height: 132px; background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  position: relative; overflow: hidden; flex-shrink: 0;
}
.tool-thumb::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(240px 120px at 80% -10%, rgba(34, 211, 238, .4), transparent 70%),
              radial-gradient(180px 110px at 10% 110%, rgba(124, 58, 237, .35), transparent 70%);
}
.tool-thumb img { width: 100%; height: 100%; object-fit: cover; position: relative; }
.tool-thumb .thumb-letter {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 44px; font-weight: 800; color: rgba(255, 255, 255, .92); letter-spacing: .02em;
  text-shadow: 0 4px 18px rgba(6, 11, 30, .5);
}
.tool-thumb .thumb-status { position: absolute; top: 10px; left: 10px; z-index: 2; }
.tool-thumb .thumb-price { position: absolute; bottom: 10px; right: 10px; z-index: 2; }
.glass-chip {
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px;
  display: inline-flex; align-items: center; gap: 6px;
}
.tool-body { padding: 15px 16px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tool-body .tool-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.tool-body .tool-name .ver { font-size: 10.5px; font-weight: 700; color: var(--cyan-700); background: var(--cyan-50); padding: 1px 7px; border-radius: 99px; letter-spacing: .02em; }
.tool-body .tool-desc {
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tool-body .tool-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted-2); margin-top: auto; padding-top: 6px; }
.tool-body .tool-tags svg { width: 13px; height: 13px; }

/* ---------------- Empty state ---------------- */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 54px 20px; color: var(--muted-2); text-align: center;
}
.empty-state svg { width: 46px; height: 46px; color: #C6D0E4; }
.empty-state p { font-size: 14px; font-weight: 500; }
.empty-state small { font-size: 12.5px; max-width: 340px; line-height: 1.5; }

/* ---------------- Modal ---------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6, 11, 30, .55);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 16px; z-index: 100; overflow-y: auto;
  animation: fadeIn .16s ease;
}
.modal-panel {
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 620px; margin: auto 0;
  animation: popIn .18s cubic-bezier(.2, .9, .3, 1.2);
  overflow: hidden;
}
.modal-panel.wide { max-width: 880px; }
.modal-panel.narrow { max-width: 440px; }
.modal-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px 0;
}
.modal-head h3 { font-size: 17px; font-weight: 700; flex: 1; letter-spacing: -.01em; }
.modal-head p { font-size: 12.5px; color: var(--muted-2); margin-top: 2px; }
.modal-body { padding: 18px 22px; }
.modal-foot {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 0 22px 20px; flex-wrap: wrap;
}
.modal-foot .pull-left { margin-right: auto; }
.confirm-icon {
  width: 46px; height: 46px; border-radius: 13px; background: var(--rose-bg); color: var(--rose);
  display: grid; place-items: center; flex-shrink: 0;
}
.confirm-icon svg { width: 22px; height: 22px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------------- Toast ---------------- */
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px;
  background: var(--navy-900); color: #fff; font-size: 13.5px; font-weight: 500;
  padding: 11px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  animation: toastIn .2s ease; max-width: 92vw;
}
.toast svg { width: 17px; height: 17px; flex-shrink: 0; }
.toast.success svg { color: #34D399; }
.toast.error svg { color: #FB7185; }
.toast.info svg { color: var(--cyan-500); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- Auth screen ---------------- */
.auth-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(900px 500px at 80% -10%, rgba(34, 211, 238, .18), transparent 60%),
              radial-gradient(700px 420px at 10% 110%, rgba(124, 58, 237, .14), transparent 60%),
              linear-gradient(160deg, var(--navy-950), var(--navy-900) 55%, var(--navy-850));
}
.auth-card {
  width: 100%; max-width: 400px; background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  padding: 36px 32px 32px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  animation: popIn .25s cubic-bezier(.2, .9, .3, 1.15);
}
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 26px; text-align: center; }
.auth-logo .brand-mark { width: 56px; height: 56px; font-size: 27px; border-radius: 16px; }
.auth-logo h1 { color: #fff; font-size: 21px; font-weight: 800; letter-spacing: .1em; }
.auth-logo p { color: rgba(255, 255, 255, .55); font-size: 13px; margin-top: -8px; }
.auth-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.auth-field label { color: rgba(255, 255, 255, .8); font-size: 12.5px; font-weight: 600; }
.auth-input {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px; padding: 0 14px; height: 46px;
  transition: border-color .15s ease, background .15s ease;
}
.auth-input:focus-within { border-color: var(--cyan-500); background: rgba(255, 255, 255, .1); }
.auth-input svg { width: 17px; height: 17px; color: rgba(255, 255, 255, .5); flex-shrink: 0; }
.auth-input input {
  border: none; outline: none; background: transparent; color: #fff; width: 100%;
  font-size: 14.5px;
}
.auth-input input::placeholder { color: rgba(255, 255, 255, .35); }
.auth-btn {
  width: 100%; height: 46px; border: none; border-radius: 12px; margin-top: 8px;
  background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600));
  color: #05222B; font-weight: 800; font-size: 14.5px; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  box-shadow: 0 12px 26px -10px rgba(34, 211, 238, .65);
  transition: filter .15s ease, transform .1s ease;
}
.auth-btn:hover { filter: brightness(1.07); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn svg { width: 18px; height: 18px; }
.auth-note {
  margin-top: 18px; font-size: 12.5px; color: rgba(255, 255, 255, .62); text-align: center;
  background: rgba(34, 211, 238, .1); border: 1px dashed rgba(34, 211, 238, .35);
  border-radius: 10px; padding: 10px 12px; line-height: 1.55;
}
.auth-note code { color: var(--cyan-500); font-weight: 700; }
.auth-error {
  background: rgba(225, 29, 72, .18); border: 1px solid rgba(225, 29, 72, .4); color: #FDA4AF;
  border-radius: 10px; padding: 9px 13px; font-size: 13px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.auth-error svg { width: 15px; height: 15px; flex-shrink: 0; }
.auth-copy { text-align: center; margin-top: 22px; font-size: 11.5px; color: rgba(255, 255, 255, .35); letter-spacing: .04em; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; color: rgba(255, 255, 255, .45); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .14); }
.auth-google {
  width: 100%; height: 46px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .28); background: #fff; color: #3C4043;
  font-family: var(--font); font-weight: 700; font-size: 14px; letter-spacing: .01em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
  box-shadow: 0 8px 22px -12px rgba(0,0,0,.5);
}
.auth-google:hover { background: #F6F9FD; box-shadow: 0 12px 26px -12px rgba(0,0,0,.55); }
.auth-google:active { transform: translateY(1px); }
.auth-google svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------------- misc helpers ---------------- */
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.muted { color: var(--muted); } .muted-2 { color: var(--muted-2); }
.small { font-size: 12px; } .xs { font-size: 11.5px; }
.money { font-weight: 700; font-variant-numeric: tabular-nums; }
.text-right { text-align: right; }
.pos-rel { position: relative; }
.links-stack { display: flex; flex-direction: column; gap: 7px; }
.link-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  background: var(--navy-50); color: var(--navy-800); border-radius: 9px;
  padding: 7px 12px; font-size: 13px; font-weight: 600; word-break: break-all;
}
.link-chip svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--cyan-700); }
.link-chip:hover { background: var(--navy-100); }
.section-sub { font-size: 13px; font-weight: 700; color: var(--navy-800); letter-spacing: .01em; }
.section-block { display: flex; flex-direction: column; gap: 10px; }
.info-banner {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--cyan-50); border: 1px solid rgba(34, 211, 238, .45); color: var(--cyan-700);
  border-radius: 12px; padding: 11px 14px; font-size: 13px; line-height: 1.5;
}
.info-banner svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.stats-note { display: flex; gap: 6px; align-items: center; color: var(--muted-2); font-size: 12px; }

/* ---------------- Wizard order (3 langkah) ---------------- */
.wz-steps { display: flex; align-items: center; margin: 0 0 18px; }
.wz-step { display: flex; align-items: center; gap: 9px; color: var(--muted-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.wz-step .num {
  width: 27px; height: 27px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 12.5px;
  background: var(--slate-bg); color: var(--muted);
}
.wz-step.active { color: var(--navy-900); }
.wz-step.active .num { background: linear-gradient(135deg, var(--cyan-500), var(--cyan-600)); color: #05222B; box-shadow: 0 5px 12px -5px rgba(6, 182, 212, .65); }
.wz-step.done { color: var(--cyan-700); }
.wz-step.done .num { background: linear-gradient(135deg, #10B981, #059669); color: #fff; }
.wz-conn { flex: 1; min-width: 16px; height: 2px; background: var(--slate-bg); border-radius: 99px; margin: 0 9px; }
.wz-conn.done { background: #10B981; }

.wz-sub { font-size: 13px; color: var(--muted-2); margin-bottom: 14px; }
.wz-search-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.wz-search-row .search-input { max-width: none; min-width: 200px; flex: 1; height: 42px; }
.wz-results { max-height: 232px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; }
.wz-result {
  display: flex; align-items: center; gap: 11px; padding: 10px 13px;
  border-bottom: 1px solid #F0F3F9; cursor: pointer; transition: background .12s ease;
}
.wz-result:last-child { border-bottom: none; }
.wz-result:hover { background: var(--cyan-50); }
.wz-result.sel { background: var(--cyan-50); box-shadow: inset 0 0 0 1.5px var(--cyan-600); border-radius: 0; }
.wz-result .grow { flex: 1; min-width: 0; }
.wz-result b { display: block; font-size: 13.5px; }
.wz-result small { color: var(--muted-2); font-size: 12px; display: block; margin-top: 1px; }
.wz-result .contact { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.wz-result .tick { color: var(--green); font-weight: 800; }
.wz-empty-hint { padding: 22px; text-align: center; color: var(--muted-2); font-size: 13px; }
.wz-sel-chip {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--bg); border: 1.5px solid var(--cyan-600); border-radius: 14px; margin-bottom: 4px;
}
.wz-sel-chip .grow { flex: 1; min-width: 0; }
.wz-sel-chip b { font-size: 14.5px; display: block; }
.wz-sel-chip small { color: var(--muted); }
.wz-quickadd { background: var(--bg); border: 1px dashed #C6D0E4; border-radius: 14px; padding: 14px 16px 16px; margin-bottom: 14px; }
.wz-quickadd h5 { font-size: 13px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
/* ikon SVG tanpa aturan ukuran akan melebar (default ~500px) — kunci ukurannya */
.wz-quickadd h5 svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--cyan-700); }
#wzBody svg { max-width: 18px; max-height: 18px; flex-shrink: 0; }
.wz-nav { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wz-nav .grow { margin-right: auto; }
.wz-nav .btn { padding: 10px 18px; }
.wz-empty-rows { text-align: center; padding: 18px; color: var(--muted-2); font-size: 13px; border: 1px dashed #D7DFEC; border-radius: 12px; margin-bottom: 12px; }
.wz-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #EEF2F9; font-size: 13.5px; }
.wz-summary-row:last-of-type { border-bottom: none; }
.wz-summary-row .l { color: var(--muted); }
.wz-summary-row .v { font-weight: 600; text-align: right; }
.wz-summary-items { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.wz-summary-items .srow { display: flex; justify-content: space-between; gap: 10px; padding: 9px 13px; border-bottom: 1px solid #F0F3F9; font-size: 13px; }
.wz-summary-items .srow:last-child { border-bottom: none; }
.wz-summary-items .srow b { font-weight: 600; }
.wz-summary-items .srow small { display: block; color: var(--muted-2); margin-top: 1px; }
.wz-arch-note { display: flex; gap: 9px; align-items: flex-start; background: var(--amber-bg); border: 1px solid #EFD8A6; color: #92400E; border-radius: 11px; padding: 10px 13px; font-size: 12.5px; line-height: 1.5; margin-bottom: 13px; }
.wz-arch-note svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.wz-cust-lock { display: inline-flex; align-items: center; gap: 6px; }
.wz-cust-lock svg { width: 14px; height: 14px; }


/* ---------------- Modal detail pelanggan ---------------- */
.modal-panel.cust-modal { max-width: 820px; max-height: 85vh; display: flex; flex-direction: column; }
.modal-panel.cust-modal .modal-body { overflow-y: auto; }
.modal-head.custom { padding-bottom: 0; flex-shrink: 0; }
.modal-panel.cust-modal .modal-foot { flex-shrink: 0; }
.modal-panel.cust-modal .modal-body { padding-bottom: 18px; }
.cust-head { display: flex; align-items: center; gap: 13px; width: 100%; }
.cust-head-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cust-name { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.cust-meta { font-size: 12.5px; color: var(--muted-2); }
.cust-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.cust-sum .s { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; min-width: 0; }
.cust-sum .s span { display: block; font-size: 10.5px; color: var(--muted-2); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.cust-sum .s b { display: block; font-size: 16.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-sum .s b.money { font-size: 14.5px; font-weight: 800; }
.cust-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; }
.cust-cell { background: #FAFCFF; border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; min-width: 0; }
.cust-cell .lbl { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.cust-cell .lbl svg { width: 13px; height: 13px; flex-shrink: 0; }
.cust-cell .val { font-size: 13.5px; font-weight: 600; margin-top: 3px; word-break: break-word; }
.cust-cell .val.light { font-weight: 500; color: var(--muted); }
.cust-notes { margin-top: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.cust-notes .lbl { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); }
.cust-notes .lbl svg { width: 13px; height: 13px; flex-shrink: 0; }
.cust-notes .val { margin-top: 4px; white-space: pre-wrap; font-size: 13.5px; color: var(--ink); }
.cust-hint { font-size: 12px; color: var(--muted-2); margin: 0 0 8px; }
.cust-orders-scroll { max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.cust-orders-scroll .tbl { margin: 0; min-width: 620px; }
.cust-orders-scroll .tbl th { position: sticky; top: 0; z-index: 2; }
.cust-orders-scroll .empty-tbl { padding: 24px 14px; text-align: center; color: var(--muted-2); font-size: 13px; }
.cust-foot-hint { font-size: 11.5px; color: var(--muted-2); margin-right: auto; }

/* ---------------- Aksi baris tabel pelanggan ---------------- */
.cust-tbl .act { white-space: nowrap; }
.cust-tbl .row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.cust-tbl .row-actions .btn { height: 32px; padding: 0 10px; font-size: 12px; display: inline-flex; align-items: center; }
.cust-tbl .row-actions .btn svg, .cust-tbl .row-more svg { width: 16px; height: 16px; flex-shrink: 0; }
.cust-tbl .row-more { display: none; }
.menu-list { display: flex; flex-direction: column; gap: 7px; }
.menu-li { display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 13px; border: 1px solid var(--line); background: #fff; border-radius: 11px; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: background .12s ease, border-color .12s ease; }
.menu-li svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--muted); }
.menu-li:hover { background: var(--navy-50); border-color: var(--navy-100); }
.menu-li.danger { color: var(--rose); }
.menu-li.danger svg { color: var(--rose); }
.menu-li.primary svg { color: var(--cyan-700); }

@media (max-width: 860px) {
  .cust-tbl .row-actions { display: none; }
  .cust-tbl .row-more { display: inline-flex; }
}
@media (max-width: 600px) {
  .cust-cols { grid-template-columns: 1fr; }
  .cust-sum { gap: 8px; }
  .cust-sum .s { padding: 8px 10px; }
  .cust-sum .s b { font-size: 14px; }
  .cust-sum .s b.money { font-size: 13px; }
}



/* daftar pekerjaan di dalam detail order */
.od-job { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; margin-bottom: 8px; }
.od-job b { font-size: 13px; }
.od-job .pill { font-size: 10.5px; margin-left: 6px; }
.od-job .od-job-deadline { margin-left: auto; color: var(--muted-2); white-space: nowrap; }
.od-job .btn { flex-shrink: 0; }
.job-hero .pill svg { width: 12px; height: 12px; }
.job-progress-box .jp-note svg { width: 13px; height: 13px; vertical-align: -2px; }
.chk-all svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ================= Modul Pekerjaan (kanban/daftar) ================= */
.job-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.job-filters .search-input { flex: 1 1 300px; max-width: none; min-width: 210px; }
.job-filters .fselect { flex: 0 1 auto; }
.job-filters .filter-count { flex: 0 1 auto; margin-left: auto; white-space: nowrap; }
@media (max-width: 1240px) {
  .job-filters .filter-count { flex: 1 0 100%; text-align: right; margin-left: 0; }
}
@media (max-width: 640px) {
  .job-filters .search-input { flex: 1 1 100%; min-width: 0; }
  .job-filters .fselect { flex: 1 1 44%; min-width: 0; }
}
.job-board { display: flex; gap: 14px; align-items: flex-start; overflow-x: auto; padding-bottom: 8px; }
.jb-col { flex: 0 0 278px; width: 278px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; max-height: calc(100vh - 250px); min-height: 130px; }
.jb-col-head { display: flex; align-items: center; gap: 8px; padding: 11px 13px; font-size: 12.5px; font-weight: 700; border-bottom: 1px solid var(--line); background: #fff; flex-shrink: 0; }
.jb-col-head .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.jb-col-head .cnt { margin-left: auto; background: var(--navy-50); color: var(--navy-700); border-radius: 99px; font-size: 11px; font-weight: 800; padding: 1px 8px; }
.jb-cards { display: flex; flex-direction: column; gap: 10px; padding: 10px; overflow-y: auto; flex: 1; }
.jb-col-empty { padding: 22px 12px; text-align: center; color: var(--muted-2); font-size: 12px; font-weight: 500; }
.job-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; cursor: pointer; box-shadow: 0 1px 2px rgba(10,18,41,.04); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; flex-shrink: 0; }
.job-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: rgba(34,211,238,.55); }
.job-card .jc-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.job-card .jc-no { font-weight: 800; font-size: 12px; letter-spacing: .01em; flex-shrink: 0; }
.job-card .jc-type { flex-shrink: 0; }
.job-card .jc-prio { margin-left: auto; flex-shrink: 0; }
.job-card .jc-type .pill, .job-card .jc-prio .pill { font-size: 10px; padding: 2px 7px; }
.job-card .jc-name { margin-top: 8px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.job-card .jc-name small { display: block; font-weight: 500; color: var(--muted-2); font-size: 11.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-card .jc-dl { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted-2); }
.job-card .jc-dl svg { width: 12px; height: 12px; flex-shrink: 0; }
.job-card .jc-dl .late { color: var(--rose); font-weight: 700; }
.job-card .jc-bar { margin-top: 9px; display: flex; align-items: center; gap: 8px; }
.job-card .jc-bar b { font-size: 11.5px; min-width: 32px; text-align: right; font-weight: 800; }
.pbar { flex: 1; height: 6px; background: var(--slate-bg); border-radius: 99px; overflow: hidden; }
.pbar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--cyan-500), var(--cyan-700)); transition: width .25s ease; }
.pbar.done > i { background: linear-gradient(90deg, #10B981, #059669); }
.pbar.late > i { background: linear-gradient(90deg, #F59E0B, var(--rose)); }
.job-empty { grid-column: 1 / -1; }

/* daftar */
.jtbl .num { white-space: nowrap; }
.jtbl .pcell { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.jtbl .pcell b { font-size: 12px; font-weight: 700; min-width: 34px; text-align: right; }

/* daftar pekerjaan di dalam detail order */
.od-job { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; margin-bottom: 8px; }
.od-job b { font-size: 13px; }
.od-job .pill { font-size: 10.5px; margin-left: 6px; }
.od-job .od-job-deadline { margin-left: auto; color: var(--muted-2); white-space: nowrap; }
.od-job .btn { flex-shrink: 0; }
.job-hero .pill svg { width: 12px; height: 12px; }
.job-progress-box .jp-note svg { width: 13px; height: 13px; vertical-align: -2px; }
.chk-all svg { width: 16px; height: 16px; flex-shrink: 0; }

/* detail modal pekerjaan */
.job-banner { display: flex; gap: 10px; align-items: flex-start; background: var(--rose-bg); border: 1px solid #F6C7D0; color: #BE123C; border-radius: 12px; padding: 10px 13px; font-size: 13px; margin-bottom: 14px; }
.job-banner svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.job-hero { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.job-progress-box { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; margin-bottom: 16px; }
.job-progress-box .jp-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.job-progress-box .jp-big { font-size: 24px; font-weight: 800; min-width: 64px; text-align: right; }
.job-progress-box .jp-manual { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.job-progress-box .jp-note { font-size: 11.5px; color: var(--muted-2); margin-top: 6px; }
.chk-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.chk-head { display: flex; align-items: center; gap: 10px; padding: 11px 15px; background: #fff; border-bottom: 1px solid var(--line); }
.chk-head h4 { font-size: 13.5px; font-weight: 700; }
.chk-head .cnt { margin-left: auto; font-size: 12px; color: var(--muted-2); font-weight: 600; }
.chk-all { background: var(--green-bg); border-bottom: 1px solid #C4EBD9; color: #047857; font-size: 13px; padding: 10px 15px; display: flex; align-items: center; gap: 10px; }
.chk-all button { margin-left: auto; }
.chk-list { padding: 6px 15px; background: #fff; }
.jch { display: flex; align-items: flex-start; gap: 11px; padding: 8px 0; border-bottom: 1px dashed #EEF2F9; cursor: pointer; }
.jch:last-child { border-bottom: none; }
.jch input { position: absolute; opacity: 0; pointer-events: none; }
.jch .box { width: 19px; height: 19px; border-radius: 6px; border: 1.5px solid #C6D0E4; background: #fff; flex-shrink: 0; display: grid; place-items: center; margin-top: 1px; transition: all .14s ease; }
.jch .box svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.jch .lab { flex: 1; font-size: 13.5px; color: var(--ink); }
.jch.on .box { background: linear-gradient(135deg, #10B981, #059669); border-color: #059669; }
.jch.on .box svg { opacity: 1; }
.jch.on .lab { text-decoration: line-through; color: var(--muted-2); }

/* mode toggle di header modul */
.page-head .mode-tabs { display: inline-flex; gap: 4px; background: var(--slate-bg); padding: 4px; border-radius: 11px; }
.page-head .mode-tabs button { border: none; background: transparent; padding: 7px 13px; border-radius: 8px; font-weight: 700; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; transition: all .15s ease; }
.page-head .mode-tabs button svg { width: 15px; height: 15px; }
.page-head .mode-tabs button.active { background: #fff; color: var(--navy-900); box-shadow: 0 1px 3px rgba(10,18,41,.14); }


/* ============ Pekerjaan: daftar kartu horizontal ============ */
.job-list { display: flex; flex-direction: column; gap: 10px; }
.job-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.85fr) minmax(230px, 1.15fr) minmax(330px, 1.45fr);
  gap: 12px 20px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: 0 1px 2px rgba(10,18,41,.04);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.job-row:hover { border-color: rgba(34,211,238,.5); box-shadow: var(--shadow); }
.job-row.cancelled { opacity: .6; background: #F6F8FB; }
.job-row.solved { background: #FBFFFD; }
.job-row .jr-l { min-width: 0; }
.job-row .jr-no { font-weight: 800; font-size: 14.5px; letter-spacing: .01em; }
.job-row .jr-tags { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 5px; }
.job-row .jr-tags .pill { font-size: 10px; padding: 2px 8px; }
.job-row .jr-sub { margin-top: 6px; display: flex; align-items: center; gap: 5px; color: var(--muted-2); font-size: 12px; font-weight: 600; }
.job-row .jr-sub svg { width: 13px; height: 13px; flex-shrink: 0; }
.job-row .jr-m { min-width: 0; }
.job-row .jr-cust { font-weight: 700; font-size: 14px; line-height: 1.25; }
.job-row .jr-biz { margin-top: 1px; color: var(--muted); font-size: 12.5px; }
.job-row .jr-svc { margin-top: 5px; color: var(--muted-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-row .jr-r { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.job-row .jr-dl { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--navy-800); }
.job-row .jr-date.late { color: var(--rose); font-weight: 700; }
.job-row .jr-hint { color: var(--muted-2); font-weight: 500; }
.job-row .jr-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.job-row .st-sel {
  flex: 1 1 150px; min-width: 0; height: 34px; border-radius: 9px; border: 1.5px solid var(--line);
  font-weight: 700; font-size: 12.5px; color: var(--ink); cursor: pointer; padding: 0 26px 0 10px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A93AC' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
}
.job-row .st-sel:focus { outline: none; border-color: var(--cyan-600); }
.st-antrean { background-color: var(--slate-bg); }
.st-menunggu { background-color: var(--amber-bg); }
.st-dikerjakan { background-color: #E8F0FE; }
.st-review { background-color: var(--violet-bg); }
.st-revisi { background-color: var(--rose-bg); }
.st-selesai { background-color: var(--green-bg); }
.st-dibatalkan { background-color: var(--slate-bg); color: var(--muted); }
.prog-ctl { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.prog-ctl .prog-in { width: 62px; height: 34px; border: 1.5px solid var(--line); border-radius: 9px; text-align: right; font-weight: 700; font-size: 13px; padding: 0 8px; }
.prog-ctl .prog-in:focus { outline: none; border-color: var(--cyan-600); }
.prog-ctl span { font-size: 12px; color: var(--muted-2); font-weight: 700; }
.job-row .jr-barline { display: flex; align-items: center; gap: 10px; }
.job-row .jr-barline .pbar { height: 8px; }
.job-row .jr-pct { font-size: 12px; font-weight: 800; min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.job-row .jr-actions { display: flex; justify-content: flex-end; }
.job-row .jr-actions .btn { height: 32px; }
.job-row svg { max-width: 18px; max-height: 18px; }
@media (max-width: 1080px) {
  .job-row { grid-template-columns: minmax(150px, .8fr) minmax(200px, 1fr) minmax(300px, 1.3fr); gap: 10px 14px; }
}
@media (max-width: 760px) {
  .job-row { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .job-row .jr-r { width: 100%; }
  .job-row .jr-actions { justify-content: flex-start; }
}
@media (max-width: 1080px) {

  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; height: 100vh;
    transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: grid; }
  .sidebar-overlay.show { display: block; }
  .view { padding: 18px 14px 40px; gap: 18px; }
  .topbar { padding: 11px 14px; }
  .user-info { display: none; }
  .user-chip { padding: 5px; }
  .topbar-title p { display: none; }
  .tool-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}
@media (max-width: 600px) {
  .three-col { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-row:nth-last-child(-n+2) { border-bottom: 1px solid #EEF2F9; }
  .detail-row:last-child { border-bottom: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kpi { padding: 14px; }
  .kpi .kpi-val { font-size: 20px; }
  .kpi .kpi-ic { width: 34px; height: 34px; }
  .search-input { min-width: 100%; max-width: none; }
  .page-head { flex-direction: column; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1; }
  .modal-overlay { padding: 14px 10px; align-items: flex-start; }
  .modal-panel { border-radius: 16px; }
  .oi-head, .oi-row { grid-template-columns: 1fr 68px 96px 30px; }
  .oi-head .col-sub, .oi-row .col-sub { display: none; }
  .auth-card { padding: 28px 22px 24px; }
}
@media (max-width: 400px) {
  .kpi-grid { grid-template-columns: 1fr; }
}
