/* Paket 4: tampilan workspace staff mengikuti mockup (navy, emas, kartu bergradasi, ikon).
   Hanya berlaku di workspace (bukan web profile) dan tidak untuk portal klien (body.is-client). Dimuat paling akhir. */

/* ---------- struktur: berlaku di mode terang dan gelap ---------- */
.v8-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.v8-hide { display: none !important; }
.side .logo { display: flex; align-items: center; gap: 10px; padding: 0 6px 26px; text-decoration: none; }
.side .logo::after { display: none; }
.logo .v8-rings { width: 42px; height: 34px; flex: none; }
.logo .v8-lt b { display: block; font: 600 1.45rem/1 var(--serif); color: #f4e6c6; white-space: nowrap; }
.logo .v8-lt small { display: block; margin-top: 5px; font-size: .47rem; letter-spacing: .2em; color: #aeb8c9; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.side nav a { display: flex; align-items: center; gap: 14px; }
.me { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; }
.me > *:not(.v8-ava):not(#who):not(#role) { grid-column: 1 / -1; }
.me .v8-ava { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem var(--serif);
  color: #e8cf9a; border: 1px solid rgba(216, 188, 132, .5); background: rgba(216, 188, 132, .1); }
.me #who { align-self: end; }
.me #role { align-self: start; font-size: .75rem; opacity: .8; }
#newproject { display: inline-flex; align-items: center; gap: 8px; }
#newproject[hidden] { display: none; }
#newproject .v8-i, .v8-hero .btn .v8-i { width: 16px; height: 16px; }
.v8-hero .btn { display: inline-flex; align-items: center; gap: 8px; }

.v8-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  margin-bottom: 18px; padding: 26px 28px; border-radius: 14px; color: #f6ead0; border: 1px solid rgba(216, 188, 132, .28);
  background: radial-gradient(520px 220px at 88% 10%, rgba(216, 188, 132, .2), transparent 70%), linear-gradient(135deg, #0d1b33, #060d19); }
.v8-hero::after { content: ''; position: absolute; right: 150px; top: -20px; width: 230px; height: 190px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 42 34%22 fill=%22none%22 stroke=%22%23e8cf9a%22 stroke-width=%221.4%22%3E%3Ccircle cx=%2214%22 cy=%2217%22 r=%2211%22/%3E%3Ccircle cx=%2228%22 cy=%2217%22 r=%2211%22/%3E%3C/svg%3E") center / contain no-repeat; opacity: .13; pointer-events: none; }
.v8-hero > * { position: relative; z-index: 1; }
.v8-hero h2 { margin: 0; font: 600 2.2rem/1.1 var(--serif); color: #f6ead0; }
.v8-hero p { margin: 8px 0 0; color: #c3ccdb; font-size: .9rem; }
.v8-hero em { display: block; margin-top: 8px; font: italic 500 1.4rem/1.2 var(--serif); color: #e0b95e; }

.kpi .v8-kic { display: none; }

/* ---------- tema gelap (staff) ---------- */
html[data-theme="dark"] body:not(.is-client) { --bg: #060d19; --card: #0e1b30; --line: rgba(216, 188, 132, .18); --soft: rgba(255, 255, 255, .05); --text: #eef1f6; --muted: #94a1b5; --gold: #d8bc84; --gold-l: #e8cf9a;
  background: radial-gradient(1200px 600px at 30% -10%, #10213b 0%, #060d19 60%) fixed, #060d19; }

/* sidebar */
html[data-theme="dark"] body:not(.is-client) .side { width: 236px; padding: 26px 14px 20px; background: #070f1d; border-right: 1px solid rgba(216, 188, 132, .14); overflow: hidden; }
html[data-theme="dark"] body:not(.is-client) .side::before { content: ''; position: absolute; left: -30px; bottom: 150px; width: 250px; height: 340px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 260 360%22 fill=%22none%22 stroke=%22%23d8bc84%22 stroke-width=%221%22%3E%3Cpath d=%22M30 350C60 260 70 180 120 90%22/%3E%3Cpath d=%22M60 270C90 250 110 255 130 240C110 225 85 235 60 270z%22/%3E%3Cpath d=%22M75 215C50 195 40 170 55 150C75 165 85 190 75 215z%22/%3E%3Cpath d=%22M95 165C125 150 140 150 160 130C135 120 110 135 95 165z%22/%3E%3Cpath d=%22M110 125C95 100 100 80 115 65C128 85 125 105 110 125z%22/%3E%3Cpath d=%22M45 320C25 300 20 280 30 262C50 278 55 300 45 320z%22/%3E%3C/svg%3E") center / contain no-repeat; opacity: .28; pointer-events: none; }
html[data-theme="dark"] body:not(.is-client) .side > * { position: relative; }
html[data-theme="dark"] body:not(.is-client) .side nav { gap: 6px; }
html[data-theme="dark"] body:not(.is-client) .side nav a { height: 44px; padding: 0 16px; border-radius: 10px; color: #c3ccdb; font-weight: 500; font-size: .92rem; border: 1px solid transparent; }
html[data-theme="dark"] body:not(.is-client) .side nav a:hover { background: rgba(216, 188, 132, .08); color: #f4e6c6; }
html[data-theme="dark"] body:not(.is-client) .side nav a.on { color: #f4e6c6; background: linear-gradient(90deg, rgba(216, 188, 132, .34), rgba(216, 188, 132, .08)); border-color: rgba(216, 188, 132, .4); }
html[data-theme="dark"] body:not(.is-client) .me { padding: 14px; border: 1px solid rgba(216, 188, 132, .2); border-radius: 14px; background: linear-gradient(180deg, #0e1b30, #091324); }
html[data-theme="dark"] body:not(.is-client) .me b { color: #f2f4f8; font-weight: 600; font-size: .85rem; }
html[data-theme="dark"] body:not(.is-client) .me .theme-toggle { justify-content: space-between; flex-direction: row-reverse; width: 100%; margin-top: 12px; padding: 4px 0; border: 0; background: transparent; color: #d9deea; font-size: .82rem; }
html[data-theme="dark"] body:not(.is-client) .me .theme-toggle .tt-track { width: 40px; height: 22px; }
html[data-theme="dark"] body:not(.is-client) .me .theme-toggle .tt-knob { top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; color: #7a5a1c; }
html[data-theme="dark"] body:not(.is-client) .me .theme-toggle .tt-knob { transform: translateX(18px); background: #fff; }
html[data-theme="dark"] body:not(.is-client) .me .btn { min-height: 44px; margin-top: 12px; background: transparent; color: #eef1f6; border: 1px solid rgba(216, 188, 132, .45); border-radius: 10px; font-weight: 600; }

/* bilah atas */
html[data-theme="dark"] body:not(.is-client) .top { height: 64px; padding: 0 28px; background: rgba(6, 13, 25, .8); border-bottom: 1px solid rgba(216, 188, 132, .14); box-shadow: none; backdrop-filter: blur(8px); }
html[data-theme="dark"] body:not(.is-client) .sbox input { height: 42px; padding: 0 18px 0 46px; border-radius: 999px; border: 1px solid rgba(216, 188, 132, .25); font-size: .85rem;
  background: rgba(255, 255, 255, .03) url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23e8cf9a%22 stroke-width=%221.8%22 stroke-linecap=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%227%22/%3E%3Cpath d=%22M20 20l-4-4%22/%3E%3C/svg%3E") no-repeat 16px center / 18px 18px; }
html[data-theme="dark"] body:not(.is-client) #view { padding: 24px 28px 32px; }

/* judul */
html[data-theme="dark"] body:not(.is-client) .pagehead h2 { font-size: 2.5rem; font-weight: 600; color: #f6ead0; }
html[data-theme="dark"] body:not(.is-client) .pagehead h2::after { display: none; }
html[data-theme="dark"] body:not(.is-client) .sec h3 { display: flex; align-items: center; gap: 12px; font-size: 1.45rem; font-weight: 700; color: #f2f4f8; }
html[data-theme="dark"] body:not(.is-client) .sec h3::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #d8bc84; flex: none; }
html[data-theme="dark"] body:not(.is-client) .sec h3.v8-has::before { display: none; }
html[data-theme="dark"] body:not(.is-client) .sec h3 .v8-i { color: #d8bc84; width: 22px; height: 22px; }
html[data-theme="dark"] body:not(.is-client) .hint, html[data-theme="dark"] body:not(.is-client) .sub, html[data-theme="dark"] body:not(.is-client) .ow-note { color: #94a1b5; }

/* kartu */
html[data-theme="dark"] body:not(.is-client) .box, html[data-theme="dark"] body:not(.is-client) .tablewrap, html[data-theme="dark"] body:not(.is-client) .pcard, html[data-theme="dark"] body:not(.is-client) .cal, html[data-theme="dark"] body:not(.is-client) .p2-close, html[data-theme="dark"] body:not(.is-client) .bg-card, html[data-theme="dark"] body:not(.is-client) .act-feed, html[data-theme="dark"] body:not(.is-client) .pf-chart, html[data-theme="dark"] body:not(.is-client) .soon {
  background: linear-gradient(180deg, #0e1b30 0%, #091324 100%); border: 1px solid rgba(216, 188, 132, .2); border-radius: 14px; box-shadow: none; }
html[data-theme="dark"] body:not(.is-client) .tablewrap { overflow-x: auto; }
html[data-theme="dark"] body:not(.is-client) .act-feed { padding: 18px 22px; }
html[data-theme="dark"] body:not(.is-client) .rows .row { border-bottom-color: rgba(255, 255, 255, .07); }
html[data-theme="dark"] body:not(.is-client) .rows .row:hover, html[data-theme="dark"] body:not(.is-client) tbody tr:hover { background: rgba(216, 188, 132, .06); }
html[data-theme="dark"] body:not(.is-client) .date { width: 50px; padding: 6px 0; border-radius: 10px; background: rgba(216, 188, 132, .07); border: 1px solid rgba(216, 188, 132, .35); }
html[data-theme="dark"] body:not(.is-client) .date small { color: #e8cf9a; }
html[data-theme="dark"] body:not(.is-client) .date b { color: #f6ead0; font-size: 1.4rem; }
html[data-theme="dark"] body:not(.is-client) .tag { color: #e8cf9a; }
html[data-theme="dark"] body:not(.is-client) .tag.late { color: #ff9d96; }

/* kartu angka: gradasi + ikon transparan */
html[data-theme="dark"] body:not(.is-client) .kpis { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
html[data-theme="dark"] body:not(.is-client) .kpi, html[data-theme="dark"] body:not(.is-client) .hm-cell, html[data-theme="dark"] body:not(.is-client) .pf-kpi { --k: 216, 188, 132; position: relative; overflow: hidden; border-radius: 14px; border: 1px solid rgba(var(--k), .4); box-shadow: none;
  background: linear-gradient(135deg, rgba(var(--k), .2) 0%, rgba(var(--k), .05) 45%, #091324 100%); }
html[data-theme="dark"] body:not(.is-client) .kpi::after, html[data-theme="dark"] body:not(.is-client) .hm-cell::after, html[data-theme="dark"] body:not(.is-client) .pf-kpi::after { content: ''; position: absolute; right: 14px; bottom: 12px; top: auto; left: auto; border-radius: 0; width: 58px; height: 58px; pointer-events: none;
  background: rgb(var(--k)); opacity: .2; -webkit-mask: var(--wm) center / contain no-repeat; mask: var(--wm) center / contain no-repeat; }
html[data-theme="dark"] body:not(.is-client) .pf-kpi::before { display: none; }
html[data-theme="dark"] body:not(.is-client) .kpi { display: grid; grid-template-columns: 52px 1fr; grid-template-areas: "ic lb" "ic nm"; column-gap: 16px; align-items: center; padding: 20px; }
html[data-theme="dark"] body:not(.is-client) .kpi .v8-kic { display: flex; grid-area: ic; grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 12px; align-items: center; justify-content: center; position: relative; z-index: 1;
  color: rgb(var(--k)); border: 1px solid rgba(var(--k), .55); background: rgba(var(--k), .14); }
html[data-theme="dark"] body:not(.is-client) .kpi .v8-kic .v8-i { width: 26px; height: 26px; }
html[data-theme="dark"] body:not(.is-client) .kpi span:not(.v8-kic) { grid-area: lb; align-self: end; position: relative; z-index: 1; font: 600 1.06rem var(--serif); color: #e6eaf2; text-transform: capitalize; letter-spacing: 0; }
html[data-theme="dark"] body:not(.is-client) .kpi b { grid-area: nm; align-self: start; position: relative; z-index: 1; font: 600 2.25rem/1.1 var(--serif); color: #f2f4f8; background: none; -webkit-text-fill-color: currentColor; }
html[data-theme="dark"] body:not(.is-client) .kpi.alert b { color: #f2f4f8; background: none; }
html[data-theme="dark"] body:not(.is-client) .kpis .kpi:nth-child(1) { --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 9l2-5h14l2 5M3 9a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0M5 12v8h14v-8%22/%3E%3C/svg%3E"); }
html[data-theme="dark"] body:not(.is-client) .kpis .kpi:nth-child(2) { --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%226%22 width=%2218%22 height=%2214%22 rx=%222%22/%3E%3Cpath d=%22M3 10h18M16 15h2%22/%3E%3C/svg%3E"); }
html[data-theme="dark"] body:not(.is-client) .kpis .kpi:nth-child(2).alert { --k: 229, 103, 95; }
html[data-theme="dark"] body:not(.is-client) .kpis .kpi:nth-child(3) { --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M12 7v5l3 2%22/%3E%3C/svg%3E"); --k: 224, 160, 80; }
html[data-theme="dark"] body:not(.is-client) .hm-cell { padding: 16px 20px; }
html[data-theme="dark"] body:not(.is-client) .hm-cell > *:not(.hm-spark) { position: relative; z-index: 1; }
html[data-theme="dark"] body:not(.is-client) .hm-cell .hm-l { font: 600 1.06rem var(--serif); letter-spacing: 0; text-transform: none; color: #e6eaf2; }
html[data-theme="dark"] body:not(.is-client) .hm-cell b { color: #f2f4f8; font-size: 2rem; }
html[data-theme="dark"] body:not(.is-client) .hm-cell small { color: #c3ccdb; }
html[data-theme="dark"] body:not(.is-client) .hm-strip .hm-cell:nth-child(1) { --k: 52, 197, 138; --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 17l6-6 4 4 8-8M15 7h6v6%22/%3E%3C/svg%3E"); }
html[data-theme="dark"] body:not(.is-client) .hm-strip .hm-cell:nth-child(2) { --k: 109, 151, 232; --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%226%22 width=%2218%22 height=%2214%22 rx=%222%22/%3E%3Cpath d=%22M3 10h18M16 15h2%22/%3E%3C/svg%3E"); }
html[data-theme="dark"] body:not(.is-client) .hm-strip .hm-cell:nth-child(3) { --k: 216, 188, 132; --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 20v-6M12 20V6M19 20v-9%22/%3E%3C/svg%3E"); }
html[data-theme="dark"] body:not(.is-client) .hm-cell.warn small { color: #ff9d96; }
html[data-theme="dark"] body:not(.is-client) .hm-cell.down small { color: #ff9d96; }
html[data-theme="dark"] body:not(.is-client) .hm-cell .hm-spark { right: 84px; top: 16px; width: 80px; z-index: 1; }
html[data-theme="dark"] body:not(.is-client) .pf-kpis { gap: 18px; }
html[data-theme="dark"] body:not(.is-client) .pf-kpi { padding: 18px 20px; }
html[data-theme="dark"] body:not(.is-client) .pf-kpi > * { position: relative; z-index: 1; }
html[data-theme="dark"] body:not(.is-client) .pf-kpi span { color: #c3ccdb; }
html[data-theme="dark"] body:not(.is-client) .pf-kpi b { color: #f2f4f8; }
html[data-theme="dark"] body:not(.is-client) .pf-kpis .pf-kpi:nth-child(1) { --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 9l2-5h14l2 5M3 9a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0M5 12v8h14v-8%22/%3E%3C/svg%3E"); }
html[data-theme="dark"] body:not(.is-client) .pf-kpis .pf-kpi:nth-child(2) { --k: 109, 151, 232; --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%226%22 width=%2218%22 height=%2214%22 rx=%222%22/%3E%3Cpath d=%22M3 10h18M16 15h2%22/%3E%3C/svg%3E"); }
html[data-theme="dark"] body:not(.is-client) .pf-kpis .pf-kpi:nth-child(3) { --k: 52, 197, 138; --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 17l6-6 4 4 8-8M15 7h6v6%22/%3E%3C/svg%3E"); }
html[data-theme="dark"] body:not(.is-client) .pf-kpis .pf-kpi:nth-child(4) { --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 20v-6M12 20V6M19 20v-9%22/%3E%3C/svg%3E"); }
html[data-theme="dark"] body:not(.is-client) .pf-kpi.neg { --k: 229, 103, 95; }

/* badge */
html[data-theme="dark"] body:not(.is-client) .badge { padding: 3px 11px; font-weight: 600; color: #e8cf9a; background: rgba(216, 188, 132, .1); border: 1px solid rgba(216, 188, 132, .4); }
html[data-theme="dark"] body:not(.is-client) .badge.navy { color: #a9c4ff; background: rgba(109, 151, 232, .16); border-color: rgba(109, 151, 232, .5); }
html[data-theme="dark"] body:not(.is-client) .badge.ok { color: #7ee3b5; background: rgba(52, 197, 138, .14); border-color: rgba(52, 197, 138, .4); }
html[data-theme="dark"] body:not(.is-client) .badge.bad { color: #ff9d96; background: rgba(229, 103, 95, .12); border-color: rgba(229, 103, 95, .45); }
html[data-theme="dark"] body:not(.is-client) .badge.warn { color: #e8cf9a; background: rgba(216, 188, 132, .1); border-color: rgba(216, 188, 132, .4); }
html[data-theme="dark"] body:not(.is-client) .badge.mute { color: #94a1b5; background: transparent; border-color: rgba(255, 255, 255, .15); }
html[data-theme="dark"] body:not(.is-client) .hm-k { border: 1px solid rgba(216, 188, 132, .4); background: rgba(216, 188, 132, .1); color: #e8cf9a; }
html[data-theme="dark"] body:not(.is-client) .hm-k.high { color: #ff9d96; background: rgba(229, 103, 95, .12); border-color: rgba(229, 103, 95, .45); }
html[data-theme="dark"] body:not(.is-client) .hm-k.ag-event { color: #a9c4ff; background: rgba(109, 151, 232, .16); border-color: rgba(109, 151, 232, .5); }
html[data-theme="dark"] body:not(.is-client) .hm-k.ag-invoice, html[data-theme="dark"] body:not(.is-client) .hm-k.ag-bill { color: #7ee3b5; background: rgba(52, 197, 138, .14); border-color: rgba(52, 197, 138, .4); }
html[data-theme="dark"] body:not(.is-client) .hm-day { background: rgba(216, 188, 132, .06); border-bottom-color: rgba(255, 255, 255, .07); }

/* tombol */
html[data-theme="dark"] body:not(.is-client) .btn, html[data-theme="dark"] body:not(.is-client) .auth button { min-height: 40px; border: 0; border-radius: 10px; font-weight: 700; color: #1a1205; box-shadow: none; background: linear-gradient(180deg, #ecd29b, #c49b5c); }
html[data-theme="dark"] body:not(.is-client) .btn:hover, html[data-theme="dark"] body:not(.is-client) .auth button:hover { background: linear-gradient(180deg, #f3deae, #cfa767); }
html[data-theme="dark"] body:not(.is-client) .btn.sm { min-height: 34px; }
html[data-theme="dark"] body:not(.is-client) .btn.ghost, html[data-theme="dark"] body:not(.is-client) .auth button.ghost { background: transparent; color: #e8cf9a; border: 1px solid rgba(216, 188, 132, .45); }
html[data-theme="dark"] body:not(.is-client) .btn.ghost:hover, html[data-theme="dark"] body:not(.is-client) .auth button.ghost:hover { background: rgba(216, 188, 132, .1); }
html[data-theme="dark"] body:not(.is-client) .btn.danger { background: transparent; color: #ff9d96; border: 1px solid rgba(229, 103, 95, .45); }

/* formulir */
html[data-theme="dark"] body:not(.is-client) input, html[data-theme="dark"] body:not(.is-client) select, html[data-theme="dark"] body:not(.is-client) textarea { border-radius: 10px; border: 1px solid rgba(216, 188, 132, .25); background: rgba(255, 255, 255, .04); }
html[data-theme="dark"] body:not(.is-client) input:focus, html[data-theme="dark"] body:not(.is-client) select:focus, html[data-theme="dark"] body:not(.is-client) textarea:focus { border-color: #d8bc84; outline: 0; box-shadow: 0 0 0 3px rgba(216, 188, 132, .18); }
html[data-theme="dark"] body:not(.is-client) .sbox input:focus { background-color: rgba(255, 255, 255, .06); }
html[data-theme="dark"] body:not(.is-client) dialog { background: linear-gradient(180deg, #0e1b30, #091324); border: 1px solid rgba(216, 188, 132, .3); border-radius: 14px; }

/* tabel */
html[data-theme="dark"] body:not(.is-client) table { font-size: .9rem; }
html[data-theme="dark"] body:not(.is-client) th { background: transparent; color: #94a1b5; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, .08); }
html[data-theme="dark"] body:not(.is-client) td { border-bottom-color: rgba(255, 255, 255, .06); }
html[data-theme="dark"] body:not(.is-client) tr.total td, html[data-theme="dark"] body:not(.is-client) .fin tr.total td, html[data-theme="dark"] body:not(.is-client) tr.pf-total td { border-top-color: rgba(216, 188, 132, .5); }

/* kalender */
html[data-theme="dark"] body:not(.is-client) .cal { padding: 18px 20px; }
html[data-theme="dark"] body:not(.is-client) .calhead b { font: 700 1.2rem var(--serif); color: #f2f4f8; }
html[data-theme="dark"] body:not(.is-client) .calgrid { gap: 4px 0; }
html[data-theme="dark"] body:not(.is-client) .calgrid .dow { color: #94a1b5; }
html[data-theme="dark"] body:not(.is-client) .calgrid button, html[data-theme="dark"] body:not(.is-client) .calgrid span.d { width: 34px; height: 34px; margin: 0 auto; border-radius: 8px; font-size: .8rem; color: #d9deea; }
html[data-theme="dark"] body:not(.is-client) .calgrid button { background: #1f5fd0; color: #fff; font-weight: 700; }
html[data-theme="dark"] body:not(.is-client) .calgrid button:hover { background: #2a6fe6; }
html[data-theme="dark"] body:not(.is-client) .calgrid button.tk { background: #13624a; color: #bff3dc; box-shadow: none; }
html[data-theme="dark"] body:not(.is-client) .calgrid button.tk:hover { background: #197a5b; }
html[data-theme="dark"] body:not(.is-client) .calgrid .today { box-shadow: inset 0 0 0 1.5px #e8cf9a; color: #f6ead0; font-weight: 700; }
html[data-theme="dark"] body:not(.is-client) .cal-legend { color: #c3ccdb; }
html[data-theme="dark"] body:not(.is-client) .cal-legend .lg-ev { background: #2f6fe0; }
html[data-theme="dark"] body:not(.is-client) .cal-legend .lg-tk { background: #1f9d6e; }

/* detail project */
html[data-theme="dark"] body:not(.is-client) .pcard { padding: 22px 24px; }
html[data-theme="dark"] body:not(.is-client) .phead h2 { font-size: 2.8rem; color: #f6ead0; }
html[data-theme="dark"] body:not(.is-client) .tabs { gap: 2px 36px; padding: 0 4px; border-bottom: 1px solid rgba(216, 188, 132, .14); }
html[data-theme="dark"] body:not(.is-client) .tabs button { padding: 12px 0; color: #aab4c6; font-weight: 500; font-size: .92rem; border-radius: 0; }
html[data-theme="dark"] body:not(.is-client) .tabs button:hover { color: #e8cf9a; background: none; }
html[data-theme="dark"] body:not(.is-client) .tabs button.on { color: #fff; font-weight: 700; }
html[data-theme="dark"] body:not(.is-client) .tabs button::after { left: 0; right: 0; height: 2px; border-radius: 0; background: #d8bc84; box-shadow: 0 4px 12px rgba(216, 188, 132, .55); }
html[data-theme="dark"] body:not(.is-client) .meta dt { color: #94a1b5; }
html[data-theme="dark"] body:not(.is-client) .ow-hero, html[data-theme="dark"] body:not(.is-client) .ow-card { border-radius: 14px; border: 1px solid rgba(216, 188, 132, .25); box-shadow: none; }
html[data-theme="dark"] body:not(.is-client) .ow-role { color: #f1dba8; letter-spacing: .16em; }
html[data-theme="dark"] body:not(.is-client) .ow-edit { background: rgba(6, 13, 25, .7); }
html[data-theme="dark"] body:not(.is-client) .ow-mood { background: linear-gradient(180deg, #0e1b30, #091324); }
html[data-theme="dark"] body:not(.is-client) .bar { background: rgba(255, 255, 255, .08); }
html[data-theme="dark"] body:not(.is-client) .bar i, html[data-theme="dark"] body:not(.is-client) .bar.navy i { background: linear-gradient(90deg, #c49b5c, #ecd29b); }

/* mode Hari-H dan portal tetap mengikuti tema dasar */
@media (max-width: 900px) {
  html[data-theme="dark"] body:not(.is-client) .side { width: 260px; }
  html[data-theme="dark"] body:not(.is-client) .top { padding: 0 14px; }
  html[data-theme="dark"] body:not(.is-client) #view { padding: 16px 14px; }
  .v8-hero { padding: 20px 18px; }
  .v8-hero h2 { font-size: 1.7rem; }
}

/* =====================================================================
   Paket 5: halaman Klien, Project, Vendor, Keuangan, Profit, Arsip, Pengaturan persis mockup
   ===================================================================== */
/* struktur dasar (terang dan gelap) */
.v8-ph-t { min-width: 0; }
.v8-sub { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.v8-namecell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.v8-av { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 .95rem var(--serif); color: #e8cf9a;
  border: 1px solid rgba(216, 188, 132, .5); background: rgba(216, 188, 132, .1); }
.v8-vgrid, .v8-agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.v8-agrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.v8-vcard, .v8-acard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; min-width: 0; }
.v8-vcard { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.v8-vcard.off { opacity: .6; }
.v8-vtop { display: flex; gap: 14px; align-items: center; min-width: 0; }
.v8-vic { flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: #d8bc84; border: 1px solid rgba(216, 188, 132, .45); background: rgba(216, 188, 132, .08); }
.v8-vic .v8-i { width: 24px; height: 24px; }
.v8-vname { font: 600 1.3rem/1.15 var(--serif); word-break: break-word; }
.v8-vcard .p2-lines div { white-space: normal; font-size: .85rem; }
.v8-vfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; font-size: .8rem; }
.v8-acard { overflow: hidden; }
.v8-acover { position: relative; height: 150px; overflow: hidden; background: radial-gradient(260px 120px at 85% 0%, rgba(216, 188, 132, .28), transparent 70%), linear-gradient(135deg, #1b3157, #0a1527); }
.v8-acover::before { content: ''; position: absolute; right: -30px; bottom: -40px; width: 200px; height: 160px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 42 34%22 fill=%22none%22 stroke=%22%23e8cf9a%22 stroke-width=%221.4%22%3E%3Ccircle cx=%2214%22 cy=%2217%22 r=%2211%22/%3E%3Ccircle cx=%2228%22 cy=%2217%22 r=%2211%22/%3E%3C/svg%3E") center / contain no-repeat; opacity: .16; }
.v8-acover::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(0deg, #0a1527, transparent); }
.v8-acover .badge { position: absolute; right: 12px; top: 12px; z-index: 1; }
.v8-amono { position: absolute; left: 18px; bottom: 6px; z-index: 1; font: 700 4.2rem/1 var(--serif); color: rgba(232, 207, 154, .28); }
.v8-abody { padding: 14px 18px 18px; }
.v8-atitle { font: 600 1.4rem/1.2 var(--serif); }
.v8-two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .v8-two { grid-template-columns: 1fr; } }
.v8-side .sec { padding: 16px 18px 0; margin-bottom: 4px; }
.v8-side .sec h3 { font-size: 1.3rem; }
.v8-side .row .grow .sub { font-size: .75rem; }
.v8-kp { margin: 4px 0 16px; }
.tablewrap td .v8-namecell { white-space: normal; }

/* tema gelap */
html[data-theme="dark"] body:not(.is-client) .toolbar, html[data-theme="dark"] body:not(.is-client) .p2-filters { gap: 12px; align-items: center; }
html[data-theme="dark"] body:not(.is-client) .toolbar input[type=search], html[data-theme="dark"] body:not(.is-client) .p2-filters input[type=search], html[data-theme="dark"] body:not(.is-client) .p2-filters input:not([type]) { height: 42px; padding: 0 18px 0 46px; border-radius: 999px; border: 1px solid rgba(216, 188, 132, .25);
  background: rgba(255, 255, 255, .03) url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23e8cf9a%22 stroke-width=%221.8%22 stroke-linecap=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%227%22/%3E%3Cpath d=%22M20 20l-4-4%22/%3E%3C/svg%3E") no-repeat 16px center / 18px 18px; }
html[data-theme="dark"] body:not(.is-client) .toolbar select, html[data-theme="dark"] body:not(.is-client) .p2-filters select { -webkit-appearance: none; appearance: none; height: 42px; padding: 0 40px 0 16px; border-radius: 10px; border: 1px solid rgba(216, 188, 132, .4);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23e8cf9a%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M6 9l6 6 6-6%22/%3E%3C/svg%3E") no-repeat right 14px center / 14px; color: #e8cf9a; font-weight: 600; font-size: .82rem; }
html[data-theme="dark"] body:not(.is-client) .toolbar select option, html[data-theme="dark"] body:not(.is-client) .p2-filters select option { background: #0e1b30; color: #eef1f6; }
html[data-theme="dark"] body:not(.is-client) .v8-sub { color: #c3ccdb; }
html[data-theme="dark"] body:not(.is-client) .pagehead { align-items: flex-end; margin-bottom: 18px; }
html[data-theme="dark"] body:not(.is-client) .pagehead .pbtns .btn:not(.ghost) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; }
html[data-theme="dark"] body:not(.is-client) .pagehead .pbtns .btn.ghost { min-height: 44px; padding: 0 18px; }
html[data-theme="dark"] body:not(.is-client) .tabs:has(> button:only-child) { display: none; }
html[data-theme="dark"] body:not(.is-client) .tablewrap td, html[data-theme="dark"] body:not(.is-client) .tablewrap th { padding: 14px 16px; }
html[data-theme="dark"] body:not(.is-client) .tablewrap td { font-size: .86rem; color: #dfe4ee; }
html[data-theme="dark"] body:not(.is-client) .tablewrap td .sub { color: #94a1b5; font-size: .74rem; margin-top: 2px; }
html[data-theme="dark"] body:not(.is-client) .v8-code { color: #e8cf9a; font-weight: 600; }
html[data-theme="dark"] body:not(.is-client) .v8-strong { color: #f2f4f8; font-weight: 600; }
html[data-theme="dark"] body:not(.is-client) .v8-strong .sub { font-weight: 400; }
html[data-theme="dark"] body:not(.is-client) td.num { color: #e8cf9a; font-weight: 600; }
html[data-theme="dark"] body:not(.is-client) .tablewrap tbody tr { transition: background .15s; }
html[data-theme="dark"] body:not(.is-client) .v8-vcard, html[data-theme="dark"] body:not(.is-client) .v8-acard { background: linear-gradient(180deg, #0e1b30 0%, #091324 100%); border: 1px solid rgba(216, 188, 132, .2); }
html[data-theme="dark"] body:not(.is-client) .v8-vcard:hover, html[data-theme="dark"] body:not(.is-client) .v8-acard:hover { border-color: rgba(216, 188, 132, .5); transform: translateY(-2px); }
html[data-theme="dark"] body:not(.is-client) .v8-vcard, html[data-theme="dark"] body:not(.is-client) .v8-acard { transition: transform .2s, border-color .2s; }
html[data-theme="dark"] body:not(.is-client) .v8-vname, html[data-theme="dark"] body:not(.is-client) .v8-atitle { color: #f6ead0; }
html[data-theme="dark"] body:not(.is-client) .v8-vcard .p2-lines { color: #c3ccdb; }
html[data-theme="dark"] body:not(.is-client) .v8-vfoot { color: #c3ccdb; }
html[data-theme="dark"] body:not(.is-client) .v8-vfoot b { color: #e8cf9a; font-weight: 700; }
html[data-theme="dark"] body:not(.is-client) .v8-side { padding: 0 0 8px; }
html[data-theme="dark"] body:not(.is-client) .v8-side .rows .row { padding: 12px 18px; }
html[data-theme="dark"] body:not(.is-client) .v8-side .row .tag { font-size: .8rem; color: #e8cf9a; }
html[data-theme="dark"] body:not(.is-client) .kpis .kpi[data-tone][data-tone] { --k: 216, 188, 132; }
html[data-theme="dark"] body:not(.is-client) .kpis .kpi[data-tone="green"][data-tone] { --k: 52, 197, 138; }
html[data-theme="dark"] body:not(.is-client) .kpis .kpi[data-tone="blue"][data-tone] { --k: 109, 151, 232; }
html[data-theme="dark"] body:not(.is-client) .kpis .kpi[data-tone="red"][data-tone] { --k: 229, 103, 95; }
html[data-theme="dark"] body:not(.is-client) .kpis .kpi[data-tone="orange"][data-tone] { --k: 224, 160, 80; }
html[data-theme="dark"] body:not(.is-client) .kpis .kpi[data-wm="store"][data-wm] { --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 9l2-5h14l2 5M3 9a3 3 0 0 0 6 0 3 3 0 0 0 6 0 3 3 0 0 0 6 0M5 12v8h14v-8%22/%3E%3C/svg%3E"); }
html[data-theme="dark"] body:not(.is-client) .kpis .kpi[data-wm="wallet"][data-wm] { --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%226%22 width=%2218%22 height=%2214%22 rx=%222%22/%3E%3Cpath d=%22M3 10h18M16 15h2%22/%3E%3C/svg%3E"); }
html[data-theme="dark"] body:not(.is-client) .kpis .kpi[data-wm="clock"][data-wm] { --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%2212%22 r=%229%22/%3E%3Cpath d=%22M12 7v5l3 2%22/%3E%3C/svg%3E"); }
html[data-theme="dark"] body:not(.is-client) .kpis .kpi[data-wm="trend"][data-wm] { --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 17l6-6 4 4 8-8M15 7h6v6%22/%3E%3C/svg%3E"); }
html[data-theme="dark"] body:not(.is-client) .kpis .kpi[data-wm="chart"][data-wm] { --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 20v-6M12 20V6M19 20v-9%22/%3E%3C/svg%3E"); }
html[data-theme="dark"] body:not(.is-client) .kpis .kpi:nth-child(4) { --wm: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.2%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 20v-6M12 20V6M19 20v-9%22/%3E%3C/svg%3E"); }
html[data-theme="dark"] body:not(.is-client) .pf-chart { --pf-a: #6d97e8; --pf-b: #d8bc84; }
html[data-theme="dark"] body:not(.is-client) .sec .btn { min-height: 40px; padding: 0 18px; }
@media (max-width: 700px) { .v8-vgrid, .v8-agrid { grid-template-columns: 1fr; } }

/* penyesuaian tata letak toolbar dan keuangan */
.v8-ph-t h2 { margin: 0; }
html[data-theme="dark"] body:not(.is-client) .toolbar input[type=search], html[data-theme="dark"] body:not(.is-client) .p2-filters input[type=search], html[data-theme="dark"] body:not(.is-client) .p2-filters input:not([type]) { flex: 1 1 280px; max-width: 420px; width: auto; }
html[data-theme="dark"] body:not(.is-client) .toolbar select, html[data-theme="dark"] body:not(.is-client) .p2-filters select { width: auto; flex: 0 0 auto; min-width: 170px; }
html[data-theme="dark"] body:not(.is-client) .toolbar > :last-child:not(input) { margin-left: auto; }
html[data-theme="dark"] body:not(.is-client) .p2-filters select:last-child { margin-left: auto; }
html[data-theme="dark"] body:not(.is-client) .v8-kp .kpi b { font-size: 1.85rem; }
html[data-theme="dark"] body:not(.is-client) .v8-two { grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr); }
html[data-theme="dark"] body:not(.is-client) .v8-two .tablewrap td, html[data-theme="dark"] body:not(.is-client) .v8-two .tablewrap th { padding: 12px 10px; }
@media (max-width: 1100px) { html[data-theme="dark"] body:not(.is-client) .v8-two { grid-template-columns: 1fr; } }
