/* =====================================================================
   TEMA "CONYEST" v3  —  lime + hijau hutan, kartu putih membulat.
   Acuan: component_v2.webp (warna, komponen, sidebar) dan screen-master.png
   (pola data table & halaman master). Semua warna lewat variabel CSS agar
   mode terang/gelap cukup mengganti variabel (lihat theme.css).
   ===================================================================== */
:root{
  --lime:#8DE31B; --lime-2:#79C90F; --lime-soft:#EAF8CC; --lime-ink:#16382F;
  --forest:#1E4A40; --forest-2:#15372F; --forest-3:#2F6A5B; --forest-soft:#E2EEEA;
  --ink:#12362E; --ink-2:#31564C; --muted:#7B8A85; --line:#E8ECEA;
  --canvas:#E9EBEE; --panel:#F7F8F7; --surface:#FFFFFF; --surface-2:#F3F5F4; --on-ink:#FFFFFF;
  --red:#E5252A; --red-soft:#FDEBEB; --amber:#E9930C; --amber-soft:#FFF2D9; --blue:#3C78E8; --blue-soft:#E7EFFD;
  --mint:#EAF8CC; --peach:#FFF2D9; --sky:#E7EFFD; --lilac:#E2EEEA;
  --brand:var(--forest); --brand-dark:var(--forest-2); --brand-soft:var(--forest-soft);
  --radius-xl:30px; --radius-lg:22px; --radius-md:14px; --sbw:272px;
  --shadow-card:0 1px 0 rgba(18,54,46,.03);
  --shadow-pop:0 24px 50px -18px rgba(18,54,46,.32);
  --font:'Poppins','Plus Jakarta Sans','Inter',system-ui,sans-serif;
  --ease:cubic-bezier(.22,.8,.24,1);
}
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--font); font-size:14px; color:var(--ink); background:var(--canvas);
  -webkit-font-smoothing:antialiased; min-height:100vh; margin:0;
}
::selection{ background:var(--lime); color:var(--lime-ink); }
*{ scrollbar-width:thin; scrollbar-color:#CBD3D0 transparent; }
a{ color:inherit; } a:hover{ text-decoration:none; }
[x-cloak]{ display:none !important; }
.bi{ line-height:1; vertical-align:-.125em; }
:focus-visible{ outline:2px solid var(--forest-3); outline-offset:2px; }

/* ---------------------------------------------------------------- kerangka */
.shell{
  display:flex; max-width:1680px; margin:20px auto; background:var(--panel); border-radius:var(--radius-xl);
  box-shadow:0 40px 90px -46px rgba(18,54,46,.35); min-height:calc(100vh - 40px); overflow:clip; position:relative;
}
.main-wrap{ flex:1; min-width:0; display:flex; flex-direction:column; background:transparent; }
.topbar{
  position:sticky; top:0; z-index:30; display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:16px 34px; background:color-mix(in srgb, var(--panel) 86%, transparent); backdrop-filter:blur(10px);
}
.topbar .crumbs{ font-size:11.5px; color:var(--muted); line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topbar .crumbs b{ color:var(--ink-2); font-weight:600; }
.topbar .page-title{ font-weight:700; font-size:19px; letter-spacing:-.02em; color:var(--ink); line-height:1.25; }
.content{ flex:1; padding:6px 34px 64px; width:100%; max-width:1920px; margin:0 auto; }
.print-only{ display:none; }

.icon-btn{
  width:40px; height:40px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; flex:none;
  background:var(--surface); border:1px solid var(--line); color:var(--ink); cursor:pointer; transition:background .18s, color .18s, border-color .18s, transform .18s var(--ease);
}
.icon-btn:hover{ background:var(--forest); color:#fff; border-color:var(--forest); }
.icon-btn:active{ transform:scale(.94); }
.theme-toggle .bi-sun-fill{ display:none; }

/* pencarian menu di topbar */
.top-search{ position:relative; width:min(340px, 34vw); }
.top-search .field{ display:flex; align-items:center; gap:9px; height:40px; padding:0 14px; border-radius:999px; background:var(--surface); border:1px solid var(--line); color:var(--muted); transition:border-color .18s, box-shadow .18s; }
.top-search .field:focus-within{ border-color:var(--forest-3); box-shadow:0 0 0 4px color-mix(in srgb, var(--lime) 30%, transparent); }
.top-search input{ border:0; outline:0; background:transparent; width:100%; font-size:13px; color:var(--ink); font-family:inherit; }
.top-search kbd{ font:600 10px var(--font); padding:2px 6px; border-radius:6px; background:var(--surface-2); color:var(--muted); border:1px solid var(--line); }
.top-search .results{ position:absolute; left:0; right:0; top:calc(100% + 8px); background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-pop); padding:6px; max-height:360px; overflow:auto; z-index:70; }
.top-search .results a{ display:flex; flex-direction:column; padding:8px 12px; border-radius:11px; font-size:13px; font-weight:600; }
.top-search .results a small{ font-weight:400; color:var(--muted); font-size:11px; }
.top-search .results a:hover, .top-search .results a.on{ background:var(--lime-soft); }

.user-chip{ display:flex; align-items:center; gap:10px; padding:4px 4px 4px 14px; border-radius:999px; }
.user-chip .nm{ font-weight:600; font-size:13.5px; line-height:1.15; text-align:right; }
.user-chip .rl{ font-size:11px; color:var(--muted); }

/* ---------------------------------------------------------------- sidebar */
.sb{ background:transparent; color:var(--ink); display:flex; flex-direction:column; min-height:0; }
.sb-pinned{ position:sticky; top:20px; height:calc(100vh - 40px); width:var(--sbw); flex:0 0 var(--sbw); align-self:flex-start; overflow:hidden; }
.sb-rail{
  position:sticky; top:20px; height:calc(100vh - 40px); width:84px; flex:0 0 84px; align-self:flex-start; z-index:40; overflow:visible;
  padding:14px 0 14px 14px;
}
.sb-rail > .rail-box{ background:var(--forest-2); border-radius:34px; height:100%; display:flex; flex-direction:column; min-height:0; box-shadow:0 22px 44px -22px rgba(18,54,46,.7); }
.shell.sb-hidden.mode-pinned .sb, .shell.sb-hidden.mode-rail .sb{ display:none; }

.shell.mode-floating{ display:flex; gap:20px; align-items:flex-start; padding:20px; max-width:none; margin:0; background:transparent; box-shadow:none; border-radius:0; overflow:visible; min-height:100vh; }
.shell.mode-floating .sb-floating{
  position:sticky; top:20px; width:var(--sbw); flex:0 0 var(--sbw); height:calc(100vh - 40px); overflow:hidden; z-index:20;
  background:var(--surface); border-radius:28px; border:1px solid var(--line); box-shadow:0 26px 60px -30px rgba(18,54,46,.45);
}
.shell.mode-floating .main-wrap{ background:var(--panel); border-radius:28px; min-height:calc(100vh - 40px); box-shadow:0 26px 70px -44px rgba(18,54,46,.4); overflow:clip; }
.shell.mode-floating.sb-hidden .sb-floating{ display:none; }
.sb-backdrop{ background:rgba(15,40,33,.4); }

.sb-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:26px 20px 14px 24px; }
.sb-logo{ display:flex; align-items:center; gap:9px; font-weight:700; font-size:19px; letter-spacing:-.02em; color:var(--forest-2); }
.sb-logo .mark{ display:flex; align-items:center; justify-content:center; width:30px; height:30px; font-size:25px; color:var(--lime-2); }
.sb-modes{ display:inline-flex; background:var(--surface-2); border-radius:999px; padding:3px; gap:2px; }
.sb-modes button{ width:27px; height:26px; border-radius:999px; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:13px; transition:.15s; }
.sb-modes button:hover{ color:var(--ink); }
.sb-modes button.on{ background:var(--surface); color:var(--ink); box-shadow:0 1px 4px rgba(18,54,46,.14); }

.sb-profile{ display:none; }
.sb-search{ margin:2px 18px 10px; display:flex; align-items:center; gap:8px; padding:9px 14px; border-radius:999px; background:var(--surface); border:1px solid var(--line); color:var(--muted); font-size:13px; }
.sb-floating .sb-search{ background:var(--surface-2); }
.sb-search input{ flex:1; min-width:0; border:0; outline:0; background:transparent; font-size:13px; color:var(--ink); font-family:inherit; }

.sb-scroll{ flex:1 1 auto; min-height:0; overflow-y:auto; padding:4px 14px 10px; }
.sb-item, .sb-group-head{ display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:11px 14px; border-radius:14px; font-size:14px; font-weight:500; color:var(--ink-2); white-space:nowrap; line-height:1.25; transition:background .16s, color .16s; }
.sb-item:hover, .sb-group-head:hover{ background:color-mix(in srgb, var(--ink) 6%, transparent); color:var(--ink); }
.sb-item > .bi, .sb-group-head .lbl > .bi{ flex:none; width:20px; text-align:center; font-size:18px; }
.sb .txt{ display:block; flex:1 1 auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sb-item.active{ background:var(--lime); color:var(--lime-ink); font-weight:600; }
.sb-item.active:hover{ background:var(--lime-2); }
.sb-group-head{ justify-content:space-between; }
.sb-group-head .lbl{ display:flex; align-items:center; gap:12px; flex:1; min-width:0; }
.sb-group-head.has-active{ color:var(--ink); font-weight:600; }
.sb-group-head.has-active .lbl > .bi{ color:var(--forest-3); }
.sb-chev{ flex:none; width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:10px; color:var(--muted); transition:transform .22s var(--ease), background .2s, color .2s; }
.sb-group-head:hover .sb-chev{ background:color-mix(in srgb, var(--ink) 8%, transparent); }
.sb-chev.open{ transform:rotate(180deg); background:var(--forest); color:#fff; }
.sb-sub{ margin:2px 0 8px 24px; padding-left:8px; border-left:1.5px solid var(--line); }
.sb-sub .sb-item{ padding:8px 12px; font-size:13px; gap:10px; }
.sb-sub .sb-item::before{ content:''; flex:none; width:5px; height:5px; border-radius:50%; background:currentColor; opacity:.3; }
.sb-sub .sb-item.active::before{ opacity:1; }

.sb-promo{ margin:8px 14px 8px; padding:16px 16px 14px; border-radius:20px; background:var(--forest); color:#fff; position:relative; overflow:hidden; }
.sb-promo::after{ content:''; position:absolute; right:-26px; bottom:-30px; width:110px; height:110px; border-radius:50%; background:radial-gradient(circle at 30% 30%, rgba(141,227,27,.28), transparent 70%); }
.sb-promo p{ font-size:13px; line-height:1.4; font-weight:500; margin:0 0 12px; color:rgba(255,255,255,.92); position:relative; z-index:1; }
.sb-promo a{ position:relative; z-index:1; display:inline-flex; align-items:center; gap:6px; background:var(--lime); color:var(--lime-ink); font-weight:600; font-size:12.5px; padding:7px 14px; border-radius:10px; }
.sb-promo a:hover{ background:#a1ee3a; }
.sb-foot{ margin:0 14px; padding:8px 0 16px; }
.sb-signout{ display:flex; align-items:center; gap:10px; width:100%; color:var(--muted); font-weight:500; font-size:13.5px; padding:9px 14px; border-radius:14px; }
.sb-signout:hover{ color:var(--red); background:var(--red-soft); }

/* rail: hanya ikon, kolom hijau gelap seperti rel master data */
.sb-rail .sb-head{ flex-direction:column; align-items:center; padding:16px 0 8px; gap:10px; }
.sb-rail .sb-logo .mark{ width:42px; height:42px; border-radius:50%; background:var(--lime); color:var(--lime-ink); font-size:20px; }
.sb-rail .sb-scroll{ overflow:visible; padding:6px 0; display:flex; flex-direction:column; align-items:center; }
.rail-btn{ position:relative; width:44px; height:44px; margin:3px auto; border-radius:50%; display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,.62); cursor:pointer; transition:background .16s, color .16s; }
.rail-btn:hover{ background:rgba(255,255,255,.1); color:#fff; }
.rail-btn.active{ background:var(--lime); color:var(--lime-ink); }
.rail-btn .bi{ font-size:19px; }
.sb-rail .icon-btn{ background:rgba(255,255,255,.1); border-color:transparent; color:#fff; }
.sb-rail .icon-btn:hover{ background:var(--lime); color:var(--lime-ink); }
.flyout{ position:absolute; left:100%; top:-6px; padding-left:14px; z-index:80; }
.flyout .box{ min-width:240px; background:var(--surface); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow-pop); padding:8px; }
.flyout .ttl{ padding:8px 12px 6px; font-size:11px; font-weight:600; color:var(--muted); }
.flyout .sb-item{ padding:8px 12px; font-size:13px; }
.sb-rail .sb-foot{ margin:0; padding:10px 0 16px; display:flex; flex-direction:column; align-items:center; gap:12px; }

/* layar sempit: sidebar menjadi laci */
@media (max-width:899px){
  .shell, .shell.mode-floating{ display:block; margin:0; padding:0; border-radius:0; box-shadow:none; background:var(--panel); min-height:100vh; }
  .shell .sb, .shell.mode-floating .sb-floating{
    position:fixed; top:12px; bottom:12px; left:12px; width:min(300px, calc(100vw - 24px)); height:auto; flex:none; z-index:60; overflow:hidden;
    display:flex; flex-direction:column; background:var(--surface); border-radius:26px; box-shadow:var(--shadow-pop); padding:0;
  }
  .shell .sb-rail{ padding:0; } .shell .sb-rail > .rail-box{ border-radius:26px; }
  .shell.sb-hidden .sb, .shell.mode-floating.sb-hidden .sb-floating{ display:none !important; }
  .shell .main-wrap, .shell.mode-floating .main-wrap{ border-radius:0; box-shadow:none; min-height:100vh; }
  .topbar{ padding:12px 16px; } .content{ padding:6px 16px 56px; }
  .top-search, .user-chip .nm, .user-chip .rl{ display:none; }
}

/* ---------------------------------------------------------------- tombol & input */
.btn-primary, .btn-outline, .btn-danger, .btn-dark{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; font-family:inherit; font-weight:600; font-size:13.5px; line-height:1.2;
  padding:10px 20px; border-radius:999px; cursor:pointer; transition:background .18s, border-color .18s, transform .18s var(--ease), box-shadow .18s; white-space:nowrap;
}
.btn-primary{ background:var(--lime); color:var(--lime-ink); border:1px solid transparent; }
.btn-primary:hover{ background:#a0ee38; color:var(--lime-ink); transform:translateY(-1px); box-shadow:0 10px 22px -12px rgba(121,201,15,.9); }
.btn-dark{ background:var(--forest-2); color:#fff; border:1px solid transparent; }
.btn-dark:hover{ background:var(--forest); color:#fff; transform:translateY(-1px); }
.btn-outline{ background:var(--surface); color:var(--ink); border:1px solid var(--line); }
.btn-outline:hover{ border-color:var(--forest-3); background:var(--surface-2); }
.btn-danger{ background:var(--surface); color:var(--red); border:1px solid color-mix(in srgb, var(--red) 35%, transparent); }
.btn-danger:hover{ background:var(--red-soft); }
.btn-sm{ padding:7px 15px !important; font-size:12.5px !important; }
.btn-primary:active, .btn-outline:active, .btn-dark:active{ transform:scale(.97); }

.input-field{
  background:var(--surface-2); border:1px solid transparent; border-radius:999px; height:48px; padding:0 20px; font-size:14px; width:100%; color:var(--ink);
  font-family:inherit; transition:border-color .16s, box-shadow .16s, background .16s;
}
.input-field:focus{ outline:none; background-color:var(--surface); border-color:var(--forest-3); box-shadow:0 0 0 4px color-mix(in srgb, var(--lime) 28%, transparent); }
select.input-field{ border-radius:999px; padding-right:34px; appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237B8A85' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; }
textarea.input-field{ border-radius:24px; height:auto; padding:13px 20px; }
.dt-table .input-field, .roster-table .input-field, .compact .input-field, .toolbar .input-field{ height:40px; padding:0 16px; font-size:13px; }
input[type=file].input-field{ padding-top:10px; height:auto; }
input[type=checkbox], input[type=radio]{ accent-color:var(--forest); }
input[type=checkbox]{ width:16px; height:16px; border-radius:5px; }
.form-label{ display:block; font-size:12px; font-weight:600; color:var(--muted); margin-bottom:6px; }

/* ---------------------------------------------------------------- kartu & panel */
.card-soft{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); box-shadow:var(--shadow-card); }
.panel{ background:var(--surface); border:1px solid var(--line); border-radius:26px; padding:22px; box-shadow:var(--shadow-card); }
.panel + .panel{ margin-top:18px; }

.page-head{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:16px; margin:6px 0 20px; }
.page-head .crumb{ font-size:11.5px; color:var(--muted); margin-bottom:4px; }
.page-head .crumb a:hover{ color:var(--ink); }
.page-head .crumb i{ font-size:9px; margin:0 4px; }
.page-head h1, .content h1{ font-size:26px; font-weight:700; letter-spacing:-.025em; line-height:1.2; color:var(--ink); }
.page-head p.sub{ color:var(--muted); font-size:13px; margin-top:6px; max-width:720px; }
.page-head .actions{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; }

/* toolbar + chips ala master data */
.toolbar{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:14px; }
.toolbar .search{ flex:1 1 280px; max-width:460px; display:flex; align-items:center; gap:9px; height:42px; padding:0 16px; border-radius:999px; background:var(--surface-2); color:var(--muted); border:1px solid transparent; transition:.16s; }
.toolbar .search:focus-within{ background:var(--surface); border-color:var(--forest-3); box-shadow:0 0 0 4px color-mix(in srgb, var(--lime) 26%, transparent); }
.toolbar .search input{ flex:1; border:0; outline:0; background:transparent; font-size:13.5px; color:var(--ink); font-family:inherit; min-width:0; }
.toolbar .spacer{ flex:1; }
.toolbar select, .toolbar .pill-input{ height:42px; border-radius:999px; background:var(--surface); border:1px solid var(--line); padding:0 34px 0 16px; font-size:13px; font-weight:500; color:var(--ink); font-family:inherit; appearance:none; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237B8A85' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; }
.toolbar .pill-input{ background-image:none; padding:0 16px; cursor:text; min-width:150px; }
.toolbar select:hover, .toolbar .pill-input:hover{ border-color:var(--forest-3); }

.chips{ display:flex; gap:8px; overflow-x:auto; padding:2px 2px 14px; margin:0 -2px; scrollbar-width:none; }
.chips::-webkit-scrollbar{ display:none; }
.chip-tab{ flex:none; display:inline-flex; align-items:center; gap:7px; height:36px; padding:0 16px; border-radius:999px; font-size:13px; font-weight:500; color:var(--ink-2); background:var(--surface-2); border:1px solid transparent; transition:background .16s, color .16s, transform .16s var(--ease); white-space:nowrap; cursor:pointer; }
.chip-tab:hover{ background:var(--lime-soft); color:var(--ink); }
.chip-tab.on{ background:var(--forest-2); color:#fff; font-weight:600; }
.chip-tab .n{ font-size:11px; font-weight:600; padding:1px 7px; border-radius:999px; background:color-mix(in srgb, currentColor 14%, transparent); }

/* tab konten (garis bawah + indikator lime, seperti tab Income/Expense) */
.tabs{ position:relative; display:flex; gap:4px; overflow-x:auto; border-bottom:1px solid var(--line); margin-bottom:22px; scrollbar-width:none; }
.tabs::-webkit-scrollbar{ display:none; }
.tab-btn{ position:relative; flex:none; display:inline-flex; align-items:center; gap:8px; padding:12px 18px; font-size:13.5px; font-weight:500; color:var(--muted); white-space:nowrap; cursor:pointer; transition:color .16s; border-radius:12px 12px 0 0; }
.tab-btn:hover{ color:var(--ink); background:color-mix(in srgb, var(--ink) 4%, transparent); }
.tab-btn.on{ color:var(--ink); font-weight:600; }
.tab-btn .n{ font-size:11px; font-weight:600; padding:1px 8px; border-radius:999px; background:var(--surface-2); color:var(--ink-2); }
.tab-btn.on .n{ background:var(--lime); color:var(--lime-ink); }
.tab-ind{ position:absolute; bottom:-1px; height:3px; border-radius:3px 3px 0 0; background:var(--lime-2); transition:left .3s var(--ease), width .3s var(--ease); pointer-events:none; }
.tab-panel{ animation:tabIn .38s var(--ease) both; }
@keyframes tabIn{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.pill-toggle{ display:inline-flex; gap:2px; padding:4px; border-radius:999px; background:var(--surface-2); }
.pill-toggle a, .pill-toggle button{ padding:7px 16px; border-radius:999px; font-size:13px; font-weight:500; color:var(--muted); transition:.16s; }
.pill-toggle a:hover, .pill-toggle button:hover{ color:var(--ink); }
.pill-toggle a.active, .pill-toggle button.active{ background:var(--forest-2); color:#fff; font-weight:600; }

/* ---------------------------------------------------------------- tabel data (pola master data) */
.dt-wrapper{ overflow:auto; border-radius:18px; border:0; }
.dt-table{ width:100%; border-collapse:separate; border-spacing:0; font-size:13.5px; min-width:920px; }
.dt-table thead th{
  position:sticky; top:0; z-index:2; background:var(--surface-2); text-align:left; font-size:10.5px; font-weight:600; text-transform:uppercase; letter-spacing:.06em;
  color:var(--muted); padding:13px 16px; white-space:nowrap; border:0;
}
.dt-table thead th:first-child{ border-radius:14px 0 0 14px; } .dt-table thead th:last-child{ border-radius:0 14px 14px 0; }
.dt-table tbody td{ padding:14px 16px; border-bottom:1px solid var(--line); vertical-align:middle; background:var(--surface); transition:background .14s; }
.dt-table tbody tr:last-child td{ border-bottom:0; }
.dt-table tbody tr:hover td{ background:color-mix(in srgb, var(--lime-soft) 45%, var(--surface)); }
.dt-table tbody tr.is-sel td{ background:var(--lime-soft); }
.dt-freeze{ position:sticky; left:0; z-index:1; }
.dt-table thead th.dt-freeze{ z-index:3; }
.dt-sort-link{ display:inline-flex; align-items:center; gap:5px; color:var(--muted); } .dt-sort-link:hover{ color:var(--ink); }
.dt-sort-ic{ font-size:10px; color:var(--forest-3); }
.num{ text-align:right; font-variant-numeric:tabular-nums; }
.cell-main{ display:flex; align-items:center; gap:12px; min-width:0; }
.cell-main .t{ font-weight:600; font-size:13.5px; line-height:1.3; color:var(--ink); }
.cell-main .s{ font-size:11px; color:var(--muted); margin-top:1px; }
.avatar-ic{ flex:none; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:600; font-size:12px; background:var(--lime-soft); color:var(--forest-2); }
.val-pill{ display:inline-block; padding:4px 12px; border-radius:999px; font-size:12px; font-weight:600; background:var(--lime-soft); color:var(--forest-2); }
.val-pill.strong{ background:var(--forest-2); color:#fff; }
.row-actions{ display:inline-flex; align-items:center; gap:6px; }
.ibtn{ width:32px; height:32px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:var(--surface-2); color:var(--ink-2); font-size:14px; border:0; cursor:pointer; transition:.16s; }
.ibtn:hover{ background:var(--forest-2); color:#fff; }
.ibtn.danger:hover{ background:var(--red); }
.table-foot{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; padding:16px 4px 0; font-size:12.5px; color:var(--muted); }
.table-foot b{ color:var(--ink); font-weight:600; }
.table-foot select{ height:30px; border-radius:999px; border:1px solid var(--line); background:var(--surface-2); padding:0 10px; font-size:12px; margin-left:6px; color:var(--ink); font-family:inherit; }
.pager{ display:flex; align-items:center; gap:6px; }
.pager a, .pager span{ min-width:34px; height:34px; padding:0 10px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; font-size:12.5px; font-weight:600; color:var(--ink-2); background:var(--surface-2); transition:.16s; }
.pager a:hover{ background:var(--lime-soft); color:var(--ink); }
.pager .on{ background:var(--forest-2); color:#fff; }
.pager .off{ opacity:.4; }
.pager .gap{ background:transparent; }
.sel-bar{ display:none; align-items:center; gap:10px; padding:8px 14px; border-radius:999px; background:var(--forest-2); color:#fff; font-size:12.5px; margin-bottom:12px; width:max-content; }
.sel-bar.show{ display:inline-flex; animation:tabIn .25s var(--ease) both; }
.sel-bar button{ color:var(--lime); font-weight:600; }

/* status & badge */
.status-pill{ display:inline-flex; align-items:center; gap:6px; padding:4px 12px; border-radius:999px; font-size:12px; font-weight:600; white-space:nowrap; }
.status-pill .dot{ width:6px; height:6px; border-radius:999px; flex:none; }
.status-pill.green{ background:var(--lime-soft); color:#2C6B12; } .status-pill.green .dot{ background:var(--lime-2); }
.status-pill.amber{ background:var(--amber-soft); color:#9A6207; } .status-pill.amber .dot{ background:var(--amber); }
.status-pill.blue{ background:var(--blue-soft); color:#2459BD; } .status-pill.blue .dot{ background:var(--blue); }
.status-pill.gray{ background:var(--surface-2); color:var(--ink-2); } .status-pill.gray .dot{ background:#9AA8A3; }
.status-pill.red{ background:var(--red-soft); color:#C21F25; } .status-pill.red .dot{ background:var(--red); }
.avatar-initials{ width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:600; color:#fff; flex:none; box-shadow:0 0 0 2px var(--surface); }
.menu-panel{ position:absolute; left:0; top:100%; margin-top:8px; min-width:230px; background:var(--surface); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow-pop); padding:6px; z-index:60; }
.menu-panel a{ display:block; padding:9px 12px; border-radius:12px; font-size:13.5px; color:var(--ink-2); }
.menu-panel a:hover{ background:var(--lime-soft); color:var(--ink); }
.menu-panel .menu-title{ padding:8px 12px 4px; font-size:11px; font-weight:600; color:var(--muted); }
.drop{ position:absolute; right:0; margin-top:6px; width:210px; background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-pop); padding:6px; z-index:50; text-align:left; }
.drop a, .drop button{ display:flex; align-items:center; gap:9px; width:100%; text-align:left; padding:9px 12px; border-radius:11px; font-size:13px; color:var(--ink-2); }
.drop a:hover, .drop button:hover{ background:var(--lime-soft); color:var(--ink); }
.drop .danger{ color:var(--red); } .drop .danger:hover{ background:var(--red-soft); color:var(--red); }

/* ---------------------------------------------------------------- KPI & komponen dashboard */
.kpi-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:16px; }
.kpi-card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:20px 22px; position:relative; overflow:hidden; transition:transform .25s var(--ease), box-shadow .25s; }
.kpi-card:hover{ transform:translateY(-3px); box-shadow:0 20px 36px -24px rgba(18,54,46,.5); }
.kpi-card .lbl{ font-size:13px; font-weight:500; color:var(--ink-2); display:flex; align-items:center; justify-content:space-between; gap:8px; }
.kpi-card .val{ font-size:30px; font-weight:600; letter-spacing:-.03em; margin-top:18px; line-height:1.1; color:var(--forest-2); font-variant-numeric:tabular-nums; }
.kpi-card .sub{ font-size:12px; color:var(--muted); margin-top:8px; }
.kpi-card .val.good{ color:#2C8A12; } .kpi-card .val.bad{ color:var(--red); }
.kpi-card.dark{ background:linear-gradient(150deg, var(--forest) 0%, var(--forest-2) 100%); border-color:transparent; color:#fff; }
.kpi-card.dark::before{ content:''; position:absolute; right:-40px; top:-60px; width:210px; height:210px; border-radius:50%; border:1.5px solid rgba(255,255,255,.12); }
.kpi-card.dark .lbl, .kpi-card.dark .sub{ color:rgba(255,255,255,.72); }
.kpi-card.dark .val{ color:#fff; }
.kpi-card.accent{ background:var(--lime); border-color:transparent; } .kpi-card.accent .val, .kpi-card.accent .lbl{ color:var(--lime-ink); } .kpi-card.accent .sub{ color:rgba(22,56,47,.7); }
.chg{ display:inline-flex; align-items:center; gap:3px; font-size:11px; font-weight:600; padding:3px 9px; border-radius:999px; background:var(--lime); color:var(--lime-ink); }
.chg.down{ background:var(--red); color:#fff; }
.sec-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:16px; }
.sec-head h2{ font-weight:600; font-size:17px; letter-spacing:-.015em; color:var(--ink); }
.sec-head .sub{ font-size:12px; color:var(--muted); margin-top:3px; }
.pill-link{ display:inline-flex; align-items:center; gap:2px; font-size:12px; font-weight:600; padding:6px 13px; border-radius:999px; background:var(--surface-2); color:var(--ink); white-space:nowrap; transition:.16s; }
.pill-link:hover{ background:var(--forest-2); color:#fff; }
.li{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 0; border-bottom:1px solid var(--line); }
.li:last-child{ border-bottom:0; }
.li .t{ font-weight:600; font-size:13.5px; } .li .s{ font-size:11.5px; color:var(--muted); margin-top:2px; }
.empty{ padding:26px 0; text-align:center; color:var(--muted); font-size:13px; }
.bar{ height:8px; border-radius:99px; background:var(--surface-2); overflow:hidden; } .bar > i{ display:block; height:100%; border-radius:99px; background:var(--lime-2); transform-origin:left; animation:grow 1.1s var(--ease) both .2s; }
.mbar-simple{ height:8px; border-radius:6px; background:var(--surface-2); overflow:hidden; } .mbar-simple i{ display:block; height:100%; background:var(--forest); border-radius:6px; transform-origin:left; animation:grow 1s var(--ease) both .2s; }
@keyframes grow{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }
.tint-mint{ background:var(--lime-soft); } .tint-peach{ background:var(--amber-soft); } .tint-sky{ background:var(--blue-soft); } .tint-lilac{ background:var(--forest-soft); }
.tile{ border-radius:20px; padding:16px; }
.tile .k{ font-size:12px; font-weight:500; color:var(--ink-2); } .tile .v{ font-size:21px; font-weight:600; margin-top:6px; letter-spacing:-.02em; color:var(--forest-2); } .tile .n{ font-size:12px; margin-top:2px; color:var(--muted); }
.attn-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px; }
.attn{ display:flex; gap:12px; align-items:flex-start; padding:15px 16px; border-radius:20px; color:inherit; background:var(--surface-2); transition:transform .22s var(--ease), box-shadow .22s; }
.attn:hover{ box-shadow:0 14px 26px -16px rgba(18,54,46,.5); transform:translateY(-2px); }
.attn .ic{ flex:none; width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:17px; background:var(--surface); }
.attn .c{ font-size:24px; font-weight:600; line-height:1; letter-spacing:-.02em; } .attn .l{ font-size:12.5px; font-weight:600; margin-top:6px; } .attn .h{ font-size:11px; color:var(--muted); margin-top:2px; }
.attn.red{ background:var(--red-soft); } .attn.red .ic{ color:var(--red); }
.attn.amber{ background:var(--amber-soft); } .attn.amber .ic{ color:var(--amber); }
.attn.blue{ background:var(--blue-soft); } .attn.blue .ic{ color:var(--blue); }
.attn.green{ background:var(--lime-soft); } .attn.green .ic{ color:#3F8A12; }
.attn.red .c, .attn.amber .c, .attn.blue .c, .attn.green .c{ color:var(--ink); }
.insight{ display:flex; gap:11px; align-items:flex-start; padding:12px 0; border-bottom:1px solid var(--line); font-size:13px; line-height:1.5; }
.insight:last-child{ border-bottom:0; }
.insight .ic{ flex:none; width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; background:var(--surface-2); }
.insight .ic.red{ background:var(--red-soft); color:var(--red); } .insight .ic.amber{ background:var(--amber-soft); color:var(--amber); } .insight .ic.green{ background:var(--lime-soft); color:#3F8A12; } .insight .ic.blue{ background:var(--blue-soft); color:var(--blue); }
.ess-btn{ display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:20px; border:1px solid var(--line); background:var(--surface); font-weight:600; font-size:13px; color:inherit; transition:.2s var(--ease); }
.ess-btn:hover{ border-color:var(--forest-3); transform:translateY(-2px); box-shadow:0 14px 26px -18px rgba(18,54,46,.5); }
.ess-btn .ic{ width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:18px; background:var(--lime-soft); color:var(--forest-2); }
.delta{ font-size:11.5px; font-weight:600; } .delta.up{ color:#2C8A12; } .delta.down{ color:var(--red); }
.stepper{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.stepper .st{ padding:6px 14px; border-radius:999px; font-size:12px; font-weight:600; background:var(--surface-2); color:var(--muted); }
.stepper .st.done{ background:var(--lime-soft); color:#2C6B12; } .stepper .st.now{ background:var(--forest-2); color:#fff; }
.note-box{ background:var(--amber-soft); border:1px solid color-mix(in srgb, var(--amber) 30%, transparent); color:#7A5200; border-radius:16px; padding:11px 15px; font-size:12.5px; }
.legend-chip{ display:inline-flex; align-items:center; gap:7px; padding:5px 12px; border-radius:999px; background:var(--surface-2); font-size:12px; font-weight:500; color:var(--ink-2); }
.legend-chip i{ width:10px; height:10px; border-radius:4px; display:inline-block; }
.chip{ display:inline-block; min-width:40px; padding:4px 8px; border-radius:999px; font-size:11px; font-weight:600; color:#fff; line-height:1.1; }
.chip.off{ background:var(--surface-2); color:var(--muted); } .chip.empty{ background:transparent; color:#C3CBC8; font-weight:500; }
.lg{ display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; vertical-align:middle; }

/* mini kalender dashboard */
.mini-cal{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.mini-cal .mc-h{ text-align:center; font-size:11px; font-weight:600; color:var(--muted); padding:4px 0; }
.mini-cal .mc-h.wk{ color:var(--red); }
.mini-cal .mc-d{ position:relative; height:42px; border-radius:13px; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:13px; font-weight:500; transition:background .15s; }
.mini-cal .mc-d.out{ opacity:.35; } .mini-cal .mc-d.wk .n{ color:var(--red); } .mini-cal .mc-d:hover{ background:var(--surface-2); }
.mini-cal .mc-d.hol-national{ background:var(--red-soft); } .mini-cal .mc-d.hol-national .n{ color:var(--red); font-weight:700; }
.mini-cal .mc-d.hol-company{ background:var(--amber-soft); } .mini-cal .mc-d.hol-company .n{ color:#B5740A; font-weight:700; }
.mini-cal .mc-d.today{ background:var(--forest-2); } .mini-cal .mc-d.today .n{ color:#fff !important; font-weight:700; }
.mini-cal .dots{ display:flex; gap:2px; height:5px; margin-top:2px; } .mini-cal .dots i{ width:5px; height:5px; border-radius:50%; display:block; }

/* ---------------------------------------------------------------- roster & kalender */
.roster-wrap{ overflow:auto; border:1px solid var(--line); border-radius:18px; max-height:max(460px, calc(100vh - 360px)); background:var(--surface); }
.roster-table{ border-collapse:separate; border-spacing:0; font-size:12.5px; min-width:100%; }
.roster-table th, .roster-table td{ border-bottom:1px solid var(--line); border-right:1px solid var(--line); background:var(--surface); }
.roster-table thead th{ position:sticky; top:0; z-index:3; background:var(--surface-2); padding:8px 4px; text-align:center; font-size:11px; color:var(--muted); min-width:50px; }
.roster-table thead th.wk{ background:var(--red-soft); color:var(--red); } .roster-table thead th.hol{ background:var(--red-soft); color:var(--red); }
.roster-table thead th.emp, .roster-table td.emp{ position:sticky; left:0; z-index:4; min-width:250px; text-align:left; padding:8px 12px; box-shadow:1px 0 0 var(--line); }
.roster-table thead th.emp{ z-index:6; }
.roster-table td.rc{ padding:4px; text-align:center; cursor:pointer; min-width:50px; height:42px; transition:background .12s; }
.roster-table td.rc:hover{ background:var(--lime-soft); }
.roster-table td.rc.wk{ background:var(--surface-2); } .roster-table td.rc.hol{ background:var(--red-soft); }
.cell-menu{ position:fixed; z-index:90; min-width:210px; background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow-pop); padding:6px; }
.cell-menu button{ display:flex; align-items:center; gap:10px; width:100%; padding:8px 10px; border-radius:10px; font-size:13px; text-align:left; }
.cell-menu button:hover{ background:var(--lime-soft); } .cell-menu .sw{ width:12px; height:12px; border-radius:4px; flex-shrink:0; }

.cal-grid{ display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); border:1px solid var(--line); border-radius:18px; overflow:hidden; background:var(--surface); }
.cal-head{ padding:11px; text-align:center; font-size:11px; font-weight:600; color:var(--muted); background:var(--surface-2); border-bottom:1px solid var(--line); }
.cal-head.wk{ color:var(--red); }
.cal-cell{ min-height:118px; padding:6px 7px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); background:var(--surface); overflow:hidden; transition:background .14s; }
.cal-cell:hover{ background:color-mix(in srgb, var(--lime-soft) 40%, var(--surface)); }
.cal-cell:nth-child(7n){ border-right:0; } .cal-cell.out{ background:var(--surface-2); opacity:.55; } .cal-cell.wk{ background:color-mix(in srgb, var(--red-soft) 35%, var(--surface)); }
.cal-cell.today{ box-shadow:inset 0 0 0 2px var(--lime-2); }
.cal-day{ font-size:12px; font-weight:600; color:var(--ink-2); margin-bottom:4px; } .cal-cell.today .cal-day{ color:var(--forest-2); }
.cal-item{ font-size:11px; font-weight:500; padding:2px 7px; border-radius:7px; margin-bottom:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cal-more{ font-size:11px; color:var(--muted); padding-left:4px; }
@media (max-width:760px){ .cal-cell{ min-height:84px; } .cal-item{ font-size:10px; } }
.yr-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:2px; text-align:center; }
.yr-h{ font-size:10px; font-weight:600; color:var(--muted); padding-bottom:2px; }
.yr-d{ position:relative; display:flex; align-items:center; justify-content:center; height:28px; font-size:12px; border-radius:9px; color:var(--ink-2); }
a.yr-d:hover{ background:var(--lime-soft); } .yr-d.wk{ color:var(--red); } .yr-d.hol{ background:var(--red-soft); color:var(--red); font-weight:700; }
.yr-d.today{ background:var(--forest-2); color:#fff; font-weight:700; }
.yr-dot{ position:absolute; bottom:2px; left:50%; transform:translateX(-50%); width:4px; height:4px; border-radius:50%; background:var(--lime-2); } .yr-d.today .yr-dot{ background:var(--lime); }
.tg-scroll{ max-height:68vh; overflow:auto; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.tg{ min-width:640px; }
.tg-top, .tg-allday, .tg-grid{ display:grid; grid-template-columns:56px repeat(var(--cols), minmax(0,1fr)); }
.tg-top{ position:sticky; top:0; z-index:6; background:var(--surface-2); border-bottom:1px solid var(--line); }
.tg-allday{ position:sticky; top:58px; z-index:5; background:var(--surface); border-bottom:1px solid var(--line); }
.tg-corner{ border-right:1px solid var(--line); } .tg-corner.small{ font-size:10px; color:var(--muted); display:flex; align-items:center; justify-content:center; text-align:center; }
.tg-dayhead{ display:flex; flex-direction:column; align-items:center; justify-content:center; padding:8px 4px; border-right:1px solid var(--line); color:var(--ink-2); height:58px; }
.tg-dayhead .dow{ font-size:11px; font-weight:600; color:var(--muted); } .tg-dayhead .num{ font-size:18px; font-weight:700; line-height:1.1; margin-top:2px; text-align:center; }
.tg-dayhead.wk .dow, .tg-dayhead.wk .num{ color:var(--red); }
.tg-dayhead.today .num{ background:var(--forest-2); color:#fff; border-radius:999px; min-width:30px; height:30px; display:flex; align-items:center; justify-content:center; }
.tg-allcell{ padding:4px; border-right:1px solid var(--line); min-height:34px; } .tg-allcell.wk{ background:var(--surface-2); }
.tg-grid{ position:relative; } .tg-hours{ position:relative; border-right:1px solid var(--line); }
.tg-hour{ position:absolute; right:6px; transform:translateY(-7px); font-size:10px; color:var(--muted); background:var(--surface); padding:0 2px; }
.tg-col{ position:relative; border-right:1px solid var(--line); background-image:repeating-linear-gradient(to bottom, var(--line) 0, var(--line) 1px, transparent 1px, transparent 56px); }
.tg-col.wk{ background-color:var(--surface-2); }
.tg-block{ position:absolute; box-sizing:border-box; padding:2px 6px; border-radius:9px; font-size:11px; font-weight:500; overflow:hidden; line-height:1.25; } .tg-block .sub{ font-weight:400; opacity:.85; font-size:10px; }
.tg-now{ position:absolute; left:0; right:0; height:0; border-top:2px solid var(--red); z-index:3; }
.tg-now::before{ content:''; position:absolute; left:-4px; top:-5px; width:8px; height:8px; border-radius:50%; background:var(--red); }

/* ---------------------------------------------------------------- animasi */
.reveal{ opacity:0; transform:translateY(14px); transition:opacity .6s var(--ease), transform .6s var(--ease); transition-delay:calc(var(--i, 0) * 70ms); }
.reveal.in{ opacity:1; transform:none; }
.pulse-dot{ position:relative; } .pulse-dot::after{ content:''; position:absolute; inset:-4px; border-radius:50%; border:2px solid currentColor; opacity:0; animation:pulse 2s infinite; }
@keyframes pulse{ 0%{ transform:scale(.6); opacity:.6; } 100%{ transform:scale(1.6); opacity:0; } }
.shimmer{ background:linear-gradient(100deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface) 70%, var(--surface-2)) 50%, var(--surface-2) 70%); background-size:200% 100%; animation:shim 1.4s infinite; }
@keyframes shim{ to{ background-position:-200% 0; } }
.ring{ --p:0; width:92px; height:92px; border-radius:50%; display:grid; place-items:center; background:conic-gradient(var(--lime-2) calc(var(--p) * 1%), var(--surface-2) 0); transition:--p 1s; }
.ring > span{ width:72px; height:72px; border-radius:50%; background:var(--surface); display:grid; place-items:center; font-weight:600; font-size:17px; color:var(--forest-2); }
@media (prefers-reduced-motion:reduce){ *, *::before, *::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; } .reveal{ opacity:1; transform:none; } }

/* ---------------------------------------------------------------- cetak */
@media print{
  body{ background:#fff !important; } .no-print{ display:none !important; }
  .shell{ margin:0; box-shadow:none; border-radius:0; background:#fff; } .main-wrap{ border-radius:0; } .content{ padding:0; }
  .reveal{ opacity:1 !important; transform:none !important; }
}

/* kartu laporan */
.rpt-card{ display:flex; gap:16px; padding:18px; border-radius:22px; background:var(--surface); border:1px solid var(--line); color:inherit; transition:transform .25s var(--ease), box-shadow .25s, border-color .2s; }
.rpt-card .ic{ flex:none; width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:20px; transition:transform .35s var(--ease); }
.rpt-card .go{ color:var(--muted); transition:color .2s, gap .2s; } .rpt-card .go i{ transition:transform .25s var(--ease); }
.rpt-card:hover{ transform:translateY(-4px); border-color:var(--forest-3); box-shadow:0 22px 36px -24px rgba(18,54,46,.55); }
.rpt-card:hover .ic{ transform:scale(1.1) rotate(-6deg); } .rpt-card:hover .go{ color:var(--ink); } .rpt-card:hover .go i{ transform:translateX(4px); }

/* sidebar tersembunyi → muncul saat kursor di tepi kiri */
.sb-hotzone{ position:fixed; left:0; top:0; bottom:0; width:14px; z-index:45; }
.sb-hotzone::after{ content:''; position:absolute; left:3px; top:50%; width:4px; height:64px; margin-top:-32px; border-radius:4px; background:var(--forest-3); opacity:.28; transition:opacity .2s, height .2s; }
.sb-hotzone:hover::after{ opacity:.7; height:96px; margin-top:-48px; }
.shell.sb-hidden .sb.peek{
  display:flex !important; flex-direction:column; position:fixed !important; left:14px; top:14px; bottom:14px; width:var(--sbw) !important; height:auto !important; flex:none; z-index:70;
  background:var(--surface); border:1px solid var(--line); border-radius:28px; box-shadow:var(--shadow-pop); padding:0; overflow:hidden; animation:peekIn .28s var(--ease) both;
}
@keyframes peekIn{ from{ opacity:0; transform:translateX(-28px); } to{ opacity:1; transform:none; } }

/* ---------------------------------------------------------------- Menu Utama (launcher modul) + pindah modul */
.apps-home{ max-width:1040px; margin:0 auto; padding:18px 8px 40px; }
.apps-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:18px; flex-wrap:wrap; margin-bottom:34px; }
.apps-title{ font-size:26px; font-weight:700; letter-spacing:-.02em; margin:0; color:var(--ink); }
.apps-sub{ margin:4px 0 0; color:var(--muted); font-size:13.5px; }
.apps-search{ min-width:260px; }
.apps-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(128px,1fr)); gap:30px 18px; justify-items:center; }
.app-tile{ position:relative; display:flex; flex-direction:column; align-items:center; gap:11px; width:128px; text-align:center; color:var(--ink); }
.app-tile .ico{ position:relative; display:flex; align-items:center; justify-content:center; width:78px; height:78px; border-radius:23px; background:#16161c; box-shadow:0 14px 26px -16px rgba(0,0,0,.65), inset 0 0 0 1px rgba(255,255,255,.06); transition:transform .18s var(--ease), box-shadow .18s var(--ease); }
.app-tile .ico i, .app-mini .ico i{ font-size:35px; color:var(--c1); }
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .app-tile .ico i, .app-mini .ico i{ background:linear-gradient(135deg,var(--c1),var(--c2)); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }
}
.app-tile .lb{ font-size:13px; font-weight:500; line-height:1.25; }
a.app-tile:hover .ico, a.app-tile:focus-visible .ico{ transform:translateY(-4px) scale(1.04); box-shadow:0 22px 34px -18px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.12); }
.app-tile .bd, .app-mini .bd{ position:absolute; top:-6px; right:-6px; min-width:21px; height:21px; padding:0 6px; border-radius:99px; background:var(--lime); color:var(--lime-ink); font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.app-tile.planned{ opacity:.5; cursor:default; }
.app-tile.planned .ico{ filter:grayscale(.6); }
.app-tile .soon{ margin-top:-6px; font-size:10px; font-weight:600; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }
.apps-hint{ margin:46px 0 0; text-align:center; color:var(--muted); font-size:12.5px; }
.apps-hint kbd{ padding:1px 6px; border-radius:6px; background:var(--surface-2); border:1px solid var(--line); font-size:11px; }

/* kartu modul aktif di atas sidebar */
.sb-app{ display:flex; align-items:center; gap:10px; margin:4px 16px 10px; padding:10px 12px; border-radius:16px; background:var(--surface-2); }
.sb-app .ico{ flex:none; display:flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:12px; background:#16161c; }
.sb-app .ico i{ font-size:19px; color:var(--c1); }
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .sb-app .ico i{ background:linear-gradient(135deg,var(--c1),var(--c2)); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }
}
.sb-app b{ font-size:13.5px; font-weight:600; color:var(--ink); }
.sb-app small{ font-size:11px; color:var(--muted); }

/* panel pindah modul di topbar */
.app-switch .app-mini{ position:relative; display:flex !important; flex-direction:column; align-items:center; gap:6px; padding:10px 4px !important; border-radius:14px; text-align:center; }
.app-switch .app-mini:hover, .app-switch .app-mini.on{ background:var(--lime-soft); }
.app-mini .ico{ display:flex; align-items:center; justify-content:center; width:46px; height:46px; border-radius:14px; background:#16161c; }
.app-mini .ico i{ font-size:22px; }
.app-mini .lb{ font-size:11px; line-height:1.2; font-weight:500; color:var(--ink); }
.app-mini .bd{ top:2px; right:8px; min-width:17px; height:17px; font-size:10px; }
@media (max-width:640px){ .apps-grid{ grid-template-columns:repeat(3,1fr); gap:24px 8px; } .app-tile{ width:auto; } .app-tile .ico{ width:68px; height:68px; } }

/* ---------------------------------------------------------------- Keamanan Akun */
.sec-ic{ flex:none; width:44px; height:44px; border-radius:14px; display:inline-flex; align-items:center; justify-content:center; font-size:20px; background:var(--lime-soft); color:var(--forest-2); }
.sec-ic.ok{ background:#E4F8EC; color:#1E7B3A; } .sec-ic.off{ background:var(--surface-2); color:var(--muted); } .sec-ic.warn{ background:#FFF1D6; color:#A86A00; }
html[data-theme="dark"] .sec-ic{ color:var(--lime); } html[data-theme="dark"] .sec-ic.ok{ background:var(--lime-soft); color:var(--lime); } html[data-theme="dark"] .sec-ic.warn{ background:rgba(232,163,23,.16); color:#F2C46B; }
.sec-choice{ transition:transform .2s var(--ease), box-shadow .2s var(--ease); } .sec-choice:hover{ transform:translateY(-3px); box-shadow:var(--shadow-pop); }
.sec-qr{ padding:10px; border-radius:18px; background:#fff; display:inline-block; box-shadow:0 10px 30px -18px rgba(0,0,0,.5); }
.sec-secret{ display:block; padding:10px 12px; border-radius:12px; background:var(--surface-2); font-size:13px; letter-spacing:.08em; word-break:break-all; }
.sec-code-input{ width:170px; text-align:center; font-size:20px; letter-spacing:.3em; font-weight:600; }
.sec-codes{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-top:12px; } .sec-codes code{ padding:8px 10px; border-radius:10px; background:var(--surface-2); font-size:13px; text-align:center; }
.sec-note{ display:flex; gap:8px; align-items:flex-start; padding:10px 12px; border-radius:14px; font-size:13px; background:var(--surface-2); } .sec-note.warn{ background:#FFF1D6; color:#7A4B00; }
html[data-theme="dark"] .sec-note.warn{ background:rgba(232,163,23,.14); color:#F2C46B; }
.sec-meter{ display:flex; gap:4px; margin-top:8px; } .sec-meter i{ flex:1; height:5px; border-radius:99px; background:var(--line); transition:background .25s; }
.sec-meter[data-s="1"] i:nth-child(-n+1){ background:#E5484D; } .sec-meter[data-s="2"] i:nth-child(-n+2){ background:#F2A33A; } .sec-meter[data-s="3"] i:nth-child(-n+3){ background:#9CCB2B; } .sec-meter[data-s="4"] i{ background:#2FA55A; }
/* cetak kode pemulihan: hanya kotak kodenya (kelas body.print-recovery dipasang tombol Cetak di halaman Keamanan) */
@media print{ body.print-recovery *{ visibility:hidden; } body.print-recovery .sec-recovery, body.print-recovery .sec-recovery *{ visibility:visible; } body.print-recovery .sec-recovery{ position:absolute; left:0; top:0; } }

/* ---------------------------------------------------------------- Analitik */
.an-bar{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin:4px 0 8px; }
.an-nav{ overflow-x:auto; max-width:100%; } .an-nav a{ white-space:nowrap; }
.an-filter{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; } .an-filter .input-field{ width:auto; min-width:150px; padding-top:8px; padding-bottom:8px; }
.an-meta{ font-size:12px; color:var(--muted); margin-bottom:16px; }
.an-insights{ display:grid; gap:8px; margin-bottom:18px; }
.an-insight{ display:flex; gap:10px; align-items:flex-start; padding:11px 14px; border-radius:16px; font-size:13px; background:var(--surface-2); border-left:4px solid var(--forest); animation:tabIn .5s var(--ease) both; }
.an-insight.warn{ border-left-color:#E9930C; background:#FFF6E2; color:#6A4300; } .an-insight.bad{ border-left-color:#E5252A; background:#FDECEC; color:#7A1218; } .an-insight.info{ border-left-color:#3C78E8; }
html[data-theme="dark"] .an-insight.warn{ background:rgba(233,147,12,.14); color:#F2C46B; } html[data-theme="dark"] .an-insight.bad{ background:rgba(229,37,42,.14); color:#FFB4B4; }
.an-ic-warn{ color:#E9930C; } .an-ic-bad{ color:#E5252A; }
.an-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,420px),1fr)); gap:18px; }
.an-card{ padding:18px 20px 16px; margin:0 !important; } .an-span2{ grid-column:span 2; } @media (max-width:900px){ .an-span2{ grid-column:auto; } }
.an-card-h{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:10px; } .an-card-h h3{ font-size:14.5px; font-weight:600; margin:0; } .an-card-h small{ font-size:11.5px; color:var(--muted); }
.an-canvas{ position:relative; height:270px; } .an-span2 .an-canvas{ height:300px; }
.an-empty{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; height:170px; color:var(--muted); font-size:13px; text-align:center; } .an-empty i{ font-size:28px; opacity:.5; }
.an-card{ transition:transform .25s var(--ease), box-shadow .25s var(--ease); } .an-card:hover{ transform:translateY(-2px); box-shadow:0 20px 40px -28px rgba(18,54,46,.5); }
@media print{ .an-card{ break-inside:avoid; box-shadow:none; } .an-canvas{ height:220px; } }

/* daftar perangkat push */
.push-dev{ display:flex; align-items:center; gap:12px; padding:12px 4px; border-top:1px solid var(--line); transition:opacity .2s; } .push-dev:first-of-type{ border-top:0; } .push-dev.off{ opacity:.62; }
.push-ic{ flex:none; width:38px; height:38px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; background:var(--surface-2); color:var(--forest-2); font-size:17px; } html[data-theme="dark"] .push-ic{ color:var(--lime); }
.push-act{ display:flex; align-items:center; gap:6px; flex:none; }
.sw-btn{ position:relative; width:40px; height:24px; border-radius:99px; background:var(--line); transition:background .2s; } .sw-btn i{ position:absolute; left:3px; top:3px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.3); transition:transform .22s var(--ease); }
.sw-btn.on{ background:var(--lime-2); } .sw-btn.on i{ transform:translateX(16px); }
@media (max-width:640px){ .push-dev{ flex-wrap:wrap; } .push-act{ width:100%; justify-content:flex-end; } }

/* ---------------------------------------------------------------- Akses Menu */
.ma-how{ display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:10px; }
.ma-how > div{ display:flex; gap:10px; align-items:flex-start; padding:11px 14px; border-radius:16px; background:var(--surface-2); font-size:12.5px; color:var(--ink-2); line-height:1.45; }
.ma-how b:first-child{ flex:none; width:22px; height:22px; border-radius:50%; background:var(--forest-2); color:#fff; font-size:11px; display:flex; align-items:center; justify-content:center; }
.ma-bar{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:12px 16px; border-radius:18px; background:var(--surface); border:1px solid var(--line); }
.ma-app{ border:1px solid var(--line); border-radius:20px; background:var(--surface); overflow:hidden; transition:box-shadow .25s var(--ease); } .ma-app:hover{ box-shadow:0 18px 36px -28px rgba(18,54,46,.5); }
.ma-app-h{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:10px 14px; }
.ma-app-t{ display:flex; align-items:center; gap:12px; flex:1 1 220px; min-width:0; }
.ma-app-t b{ display:block; font-size:14px; } .ma-app-t small{ display:block; font-size:11.5px; color:var(--muted); }
.ma-ic{ flex:none; width:36px; height:36px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:#16161c; } .ma-ic i{ color:var(--c1); font-size:17px; }
.ma-chev{ margin-left:auto; font-size:12px; color:var(--muted); transition:transform .3s var(--ease); } .ma-chev.is-open{ transform:rotate(180deg); }
.ma-app-b{ border-top:1px solid var(--line); padding:4px 14px 10px; }
.ma-grp{ padding:12px 2px 4px; font-size:10.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }
.ma-row{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 14px; padding:8px 8px; border-radius:12px; transition:background .15s; } .ma-row:hover{ background:var(--surface-2); } .ma-row.on{ background:var(--lime-soft); }
.ma-ctl{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; justify-content:flex-end; }
.ma-inh{ display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:99px; font-size:11px; font-weight:600; background:var(--surface-2); color:var(--muted); }
.ma-inh.deny{ background:#FDE9EA; color:#A3202A; } .ma-inh.allow{ background:#E4F8EC; color:#1E6B34; }
html[data-theme="dark"] .ma-inh.deny{ background:rgba(229,72,77,.16); color:#FFB4B4; } html[data-theme="dark"] .ma-inh.allow{ background:var(--lime-soft); color:var(--lime); }
.tri{ display:inline-flex; padding:3px; gap:2px; border-radius:99px; background:var(--surface-2); flex:none; }
.tri label{ position:relative; cursor:pointer; } .tri input{ position:absolute; inset:0; opacity:0; cursor:pointer; margin:0; }
.tri span{ display:block; padding:5px 13px; border-radius:99px; font-size:12px; font-weight:600; color:var(--muted); transition:background .2s,color .2s,box-shadow .2s; }
.tri input:checked + span.inh{ background:var(--surface); color:var(--ink); box-shadow:0 1px 4px rgba(0,0,0,.16); }
.tri input:checked + span.alw{ background:var(--lime); color:var(--lime-ink); } .tri input:checked + span.dny{ background:#E5484D; color:#fff; }
.tri input:focus-visible + span{ outline:2px solid var(--lime-2); outline-offset:1px; } .tri input:disabled{ cursor:not-allowed; } .tri.is-locked, .tri:has(input:disabled){ opacity:.5; }
