/* =====================================================================
   NRP macOS THEME — nrp-macos.css
   Lapisan tema macOS (Sonoma/Sequoia) di atas seluruh modul. Dimuat PALING AKHIR.
   - Tidak mengubah fungsi/DB/API: hanya tampilan, ikon, animasi, efek.
   - Mengikuti pilihan Mode Tampilan yang sudah ada:
       body.ui-3d    => macOS Gelap (bawaan)
       body.ui-light => macOS Terang
   - Aktif bila <body class="mx"> (ditambahkan oleh nrp-macos.js).
   - Menghormati prefers-reduced-motion. Cetak/PDF tidak terpengaruh (tetap putih).
   ===================================================================== */

/* ---------- 1. TOKEN WARNA ---------- */
body.mx{
  --mx-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Inter","Segoe UI",Roboto,"Helvetica Neue",Arial,system-ui,sans-serif;
  --mx-accent:#0a84ff; --mx-accent-2:#409cff; --mx-accent-soft:rgba(10,132,255,.18);
  --mx-green:#30d158; --mx-red:#ff453a; --mx-orange:#ff9f0a; --mx-yellow:#ffd60a; --mx-purple:#bf5af2; --mx-teal:#64d2ff;
  --mx-label:#f5f5f7; --mx-label-2:rgba(235,235,245,.62); --mx-label-3:rgba(235,235,245,.34);
  --mx-sep:rgba(84,84,88,.62); --mx-sep-soft:rgba(255,255,255,.07);
  --mx-bg:#161618; --mx-card:rgba(44,44,46,.78); --mx-card-solid:#2c2c2e; --mx-elev:rgba(58,58,60,.86);
  --mx-side:rgba(36,36,38,.72); --mx-bar:rgba(30,30,32,.72);
  --mx-fill:rgba(120,120,128,.24); --mx-fill-2:rgba(120,120,128,.16); --mx-fill-3:rgba(120,120,128,.1);
  --mx-input:rgba(118,118,128,.24);
  --mx-shadow-1:0 1px 2px rgba(0,0,0,.35),0 8px 24px -8px rgba(0,0,0,.45);
  --mx-shadow-2:0 0 0 .5px rgba(255,255,255,.12),0 24px 70px -12px rgba(0,0,0,.65),0 8px 24px rgba(0,0,0,.35);
  --mx-wall:radial-gradient(1100px 700px at 8% -10%,rgba(10,132,255,.22),transparent 60%),radial-gradient(900px 600px at 100% 0%,rgba(191,90,242,.18),transparent 55%),radial-gradient(900px 700px at 60% 110%,rgba(48,209,88,.10),transparent 60%),linear-gradient(180deg,#1a1a1d,#101012);
  --mx-ease:cubic-bezier(.22,1,.36,1); --mx-spring:cubic-bezier(.34,1.56,.64,1);
  --mx-r:12px; --mx-r-lg:16px;
  /* petakan variabel lama agar markup inline lama ikut selaras */
  --ink:var(--mx-label); --ink-soft:var(--mx-label-2); --line:var(--mx-sep);
  --emerald:var(--mx-green); --emerald-dark:#25b84c; --red:var(--mx-red); --gold:var(--mx-orange);
  --glass-bg:var(--mx-card); --glass-border:var(--mx-sep-soft); --radius:12px;
}
body.mx.ui-light{
  --mx-accent:#007aff; --mx-accent-2:#3395ff; --mx-accent-soft:rgba(0,122,255,.12);
  --mx-green:#28a745; --mx-red:#ff3b30; --mx-orange:#ff9500; --mx-yellow:#ffcc00; --mx-purple:#af52de; --mx-teal:#32ade6;
  --mx-label:#1d1d1f; --mx-label-2:rgba(60,60,67,.66); --mx-label-3:rgba(60,60,67,.36);
  --mx-sep:rgba(60,60,67,.16); --mx-sep-soft:rgba(60,60,67,.09);
  --mx-bg:#f2f2f7; --mx-card:rgba(255,255,255,.82); --mx-card-solid:#ffffff; --mx-elev:rgba(255,255,255,.92);
  --mx-side:rgba(246,246,248,.72); --mx-bar:rgba(248,248,250,.74);
  --mx-fill:rgba(120,120,128,.16); --mx-fill-2:rgba(120,120,128,.11); --mx-fill-3:rgba(120,120,128,.07);
  --mx-input:rgba(255,255,255,.9);
  --mx-shadow-1:0 0 0 .5px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.05),0 10px 28px -12px rgba(0,0,0,.16);
  --mx-shadow-2:0 0 0 .5px rgba(0,0,0,.14),0 24px 70px -14px rgba(0,0,0,.35),0 8px 24px rgba(0,0,0,.12);
  --mx-wall:radial-gradient(1100px 700px at 8% -10%,rgba(0,122,255,.16),transparent 60%),radial-gradient(900px 600px at 100% 0%,rgba(175,82,222,.12),transparent 55%),radial-gradient(900px 700px at 60% 110%,rgba(52,199,89,.10),transparent 60%),linear-gradient(180deg,#f7f7fb,#eceef5);
}


/* ---------- 1b. SELARASKAN TEMA TRANSAKSI LAMA (--tm-*) DENGAN macOS ---------- */
html body.mx{--tm-bg:var(--mx-card-solid);--tm-card:var(--mx-fill-3);--tm-card2:transparent;--tm-line:var(--mx-sep);--tm-text:var(--mx-label);--tm-sub:var(--mx-label-2);--tm-gold:var(--mx-label);--tm-accent:var(--mx-accent);--tm-accent2:var(--mx-accent-2);--tm-blue:var(--mx-accent);--tm-input:var(--mx-input);--tm-red:var(--mx-red);--tm-glow:transparent}
html body.mx .trx-modal .trx-ico{border:0!important;color:#fff!important}
html body.mx .trx-modal .trx-sec-title i{font-size:1em;width:22px;height:22px;display:inline-flex;align-items:center;justify-content:center;font-weight:700}
html body.mx .trx-modal .btn{border-radius:9px!important;min-height:38px}
html body.mx .trx-modal .btn.btn-em,html body.mx .trx-modal .btn.btn-primary{background:linear-gradient(180deg,var(--mx-accent-2),var(--mx-accent))!important;box-shadow:0 6px 16px -6px color-mix(in srgb,var(--mx-accent) 75%,transparent)}
html body.mx .trx-modal .trx-actions{background:var(--mx-elev)!important;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-top:.5px solid var(--mx-sep);padding:10px 16px!important;position:sticky;bottom:0;z-index:4;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}

/* ---------- 2. DASAR ---------- */
html body.mx,html body.mx.ui-3d,html body.mx.ui-light{font-family:var(--mx-font)!important;color:var(--mx-label)!important;background:var(--mx-wall) fixed!important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;letter-spacing:-.003em}
html body.mx #app,html body.mx .main-col{background:transparent!important}
html body.mx ::selection{background:var(--mx-accent);color:#fff}
html body.mx a{color:var(--mx-accent)}
html body.mx *{-webkit-tap-highlight-color:transparent}
html body.mx :focus-visible{outline:3px solid color-mix(in srgb,var(--mx-accent) 45%,transparent)!important;outline-offset:1px;border-radius:8px}
/* scrollbar overlay ala macOS */
html body.mx *{scrollbar-width:thin;scrollbar-color:rgba(128,128,134,.5) transparent}
html body.mx ::-webkit-scrollbar{width:11px;height:11px}
html body.mx ::-webkit-scrollbar-thumb{background:rgba(128,128,134,.5);border-radius:10px;border:3px solid transparent;background-clip:content-box}
html body.mx ::-webkit-scrollbar-thumb:hover{background:rgba(128,128,134,.8);background-clip:content-box;border:3px solid transparent}
html body.mx ::-webkit-scrollbar-track{background:transparent}

/* ---------- 3. SIDEBAR (source list + vibrancy) ---------- */
html body.mx .sidebar{background:var(--mx-side)!important;-webkit-backdrop-filter:saturate(180%) blur(28px);backdrop-filter:saturate(180%) blur(28px);border-right:.5px solid var(--mx-sep)!important;color:var(--mx-label)!important;box-shadow:none!important;width:268px;transition:transform .42s var(--mx-ease)}
html body.mx .side-brand{border-bottom:0!important;height:76px;padding:0 18px;gap:12px}
html body.mx .side-brand .mark{width:40px;height:40px;border-radius:10px;background:linear-gradient(160deg,var(--mx-accent-2),var(--mx-accent))!important;box-shadow:0 1px 1px rgba(255,255,255,.35) inset,0 6px 14px -4px color-mix(in srgb,var(--mx-accent) 70%,transparent)!important}
html body.mx .side-brand .txt div:first-child{font-weight:700;font-size:15.5px;color:var(--mx-label)!important;letter-spacing:-.01em}
html body.mx .side-brand .txt div:last-child{color:var(--mx-label-2)!important;font-size:11.5px}
html body.mx .side-role{background:var(--mx-fill-3)!important;border:0!important;border-radius:10px;color:var(--mx-label-2)!important}
html body.mx .side-role b{color:var(--mx-label)!important}
html body.mx .nav-scroll{padding:6px 10px 18px!important}
html body.mx .nav-group-label{color:var(--mx-label-3)!important;font-size:11px!important;font-weight:600;letter-spacing:.01em;text-transform:none!important;padding:14px 10px 5px!important}
html body.mx .nav-item{position:relative;display:flex;align-items:center;gap:10px;padding:6px 10px!important;margin:1px 0;border-radius:8px!important;color:var(--mx-label)!important;font-size:13.5px!important;font-weight:500;border:0!important;background:transparent!important;box-shadow:none!important;transition:background .18s ease,transform .22s var(--mx-ease),color .18s ease;cursor:pointer;user-select:none}
html body.mx .nav-item .ic{flex:0 0 auto;width:26px;height:26px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;font-size:13px;color:#fff!important;background:var(--mx-ic,var(--mx-accent));box-shadow:0 .5px 0 rgba(255,255,255,.35) inset,0 1px 2px rgba(0,0,0,.25);transition:transform .25s var(--mx-spring)}
html body.mx .nav-item .ic svg{width:15px;height:15px;display:block}
html body.mx .nav-item:hover{background:var(--mx-fill-2)!important}
html body.mx .nav-item:hover .ic{transform:scale(1.1) rotate(-3deg)}
html body.mx .nav-item:active{transform:scale(.975);background:var(--mx-fill)!important}
html body.mx .nav-item.active{background:var(--mx-accent)!important;color:#fff!important;box-shadow:0 4px 14px -6px color-mix(in srgb,var(--mx-accent) 80%,transparent)!important}
html body.mx .nav-item.active .ic{background:rgba(255,255,255,.22)!important;box-shadow:none}
html body.mx .nav-badge{background:var(--mx-red)!important;color:#fff!important;border-radius:10px;font-size:10.5px;font-weight:700;margin-left:auto;padding:1px 7px;min-width:19px;text-align:center}
html body.mx .side-foot{border-top:.5px solid var(--mx-sep)!important}
html body.mx .logout-btn{background:var(--mx-fill-2)!important;border:0!important;color:var(--mx-label)!important;border-radius:9px}

/* ---------- 4. TOOLBAR (topbar) ---------- */
html body.mx .main-col{margin-left:268px}
html body.mx .topbar{background:var(--mx-bar)!important;-webkit-backdrop-filter:saturate(180%) blur(26px);backdrop-filter:saturate(180%) blur(26px);border-bottom:.5px solid var(--mx-sep)!important;color:var(--mx-label)!important;height:60px!important;box-shadow:none!important}
html body.mx .topbar h2,html body.mx .topbar h5{color:var(--mx-label)!important;font-weight:700;font-size:17px;letter-spacing:-.015em}
html body.mx .topbar .sub{color:var(--mx-label-2)!important;font-size:12px}
html body.mx .date-pill{background:var(--mx-fill-2)!important;border:0!important;color:var(--mx-label-2)!important;border-radius:999px;font-weight:500}
html body.mx .hamburger{background:var(--mx-fill-2)!important;color:var(--mx-label)!important;border:0!important;border-radius:9px;transition:transform .2s var(--mx-spring)}
html body.mx .hamburger:active{transform:scale(.9)}
html body.mx .notif-btn,html body.mx .update-icon-btn,html body.mx .ai-agent-btn,html body.mx .ai-btn{background:var(--mx-fill-2)!important;border:0!important;color:var(--mx-label)!important;border-radius:10px!important;box-shadow:none!important;transition:background .18s,transform .22s var(--mx-spring)}
html body.mx .notif-btn:hover,html body.mx .update-icon-btn:hover,html body.mx .ai-agent-btn:hover{background:var(--mx-fill)!important;transform:translateY(-1px) scale(1.06)}
html body.mx .tu-trigger{background:var(--mx-fill-3)!important;border:0!important;border-radius:999px!important;color:var(--mx-label)!important}
html body.mx .tu-info b{color:var(--mx-label)!important}
html body.mx .tu-menu,html body.mx .notif-panel{background:var(--mx-elev)!important;-webkit-backdrop-filter:saturate(180%) blur(30px);backdrop-filter:saturate(180%) blur(30px);border:.5px solid var(--mx-sep)!important;border-radius:14px!important;box-shadow:var(--mx-shadow-2)!important;color:var(--mx-label)!important;transform-origin:top right}
html body.mx .tu-menu button{border-radius:7px!important;color:var(--mx-label)!important}
html body.mx .tu-menu button:hover{background:var(--mx-accent)!important;color:#fff!important}
html body.mx .tu-menu hr{border:0;border-top:.5px solid var(--mx-sep)}
html body.mx .tu-theme-seg button{background:var(--mx-fill-2)!important;color:var(--mx-label)!important;border:0!important}
html body.mx .tu-theme-seg button.active{background:var(--mx-accent)!important;color:#fff!important}

/* ---------- 5. KONTEN: card, KPI, toolbar halaman ---------- */
html body.mx .content{padding:22px 24px!important}
html body.mx .card,html body.mx .kpi-card,html body.mx .page-toolbar,html body.mx .print-filters,html body.mx .analysis-panel{background:var(--mx-card)!important;-webkit-backdrop-filter:saturate(160%) blur(18px);backdrop-filter:saturate(160%) blur(18px);border:.5px solid var(--mx-sep-soft)!important;border-radius:var(--mx-r-lg)!important;box-shadow:var(--mx-shadow-1)!important;color:var(--mx-label)!important}
html body.mx .card-head{border-bottom:.5px solid var(--mx-sep)!important}
html body.mx .card-head h3,html body.mx .kpi-card .val,html body.mx .page-toolbar b{color:var(--mx-label)!important;letter-spacing:-.012em;font-weight:700}
html body.mx .card-head .desc,html body.mx .kpi-card .lbl,html body.mx .kpi-card .delta,html body.mx .page-toolbar span{color:var(--mx-label-2)!important}
html body.mx .kpi-card{transition:transform .35s var(--mx-ease),box-shadow .35s var(--mx-ease)}
html body.mx .kpi-card:hover{transform:translateY(-3px);box-shadow:var(--mx-shadow-2)!important}
html body.mx .empty-state{color:var(--mx-label-2)!important}

/* ---------- 6. TOMBOL (push button macOS) ---------- */
html body.mx .btn{position:relative;overflow:hidden;font-family:var(--mx-font);font-weight:600;font-size:13px;color:var(--mx-label)!important;background:var(--mx-fill-2)!important;border:.5px solid var(--mx-sep)!important;border-radius:9px!important;padding:7px 14px;box-shadow:0 .5px 1px rgba(0,0,0,.12),0 1px 0 rgba(255,255,255,.08) inset!important;transition:transform .22s var(--mx-spring),background .18s ease,box-shadow .22s ease,filter .18s}
html body.mx .btn:hover{background:var(--mx-fill)!important;transform:translateY(-1px);box-shadow:0 6px 14px -8px rgba(0,0,0,.45)!important}
html body.mx .btn:active{transform:scale(.96);filter:brightness(.93)}
html body.mx .btn[disabled],html body.mx .btn:disabled{opacity:.45;pointer-events:none}
html body.mx .btn-em,html body.mx .btn-primary{background:linear-gradient(180deg,var(--mx-accent-2),var(--mx-accent))!important;color:#fff!important;border:0!important;box-shadow:0 1px 0 rgba(255,255,255,.28) inset,0 6px 16px -6px color-mix(in srgb,var(--mx-accent) 75%,transparent)!important}
html body.mx .btn-em:hover,html body.mx .btn-primary:hover{filter:brightness(1.07);background:linear-gradient(180deg,var(--mx-accent-2),var(--mx-accent))!important}
html body.mx .btn-red{background:linear-gradient(180deg,#ff6a60,var(--mx-red))!important;color:#fff!important;border:0!important}
html body.mx .btn-gold{background:linear-gradient(180deg,#ffb340,var(--mx-orange))!important;color:#fff!important;border:0!important}
html body.mx .btn-sm{padding:4px 10px;font-size:12px;border-radius:8px!important}
html body.mx .nrp-ripple{position:absolute;border-radius:50%;pointer-events:none;background:rgba(255,255,255,.38);transform:scale(0);animation:mxRipple .6s var(--mx-ease) forwards}
@keyframes mxRipple{to{transform:scale(1);opacity:0}}

/* ---------- 7. FORM ---------- */
html body.mx .form-field label{color:var(--mx-label-2)!important;font-weight:600;font-size:12px}
html body.mx input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]),html body.mx select,html body.mx textarea{font-family:var(--mx-font);background:var(--mx-input)!important;color:var(--mx-label)!important;border:.5px solid var(--mx-sep)!important;border-radius:9px!important;padding:8px 11px;transition:box-shadow .2s ease,border-color .2s ease,background .2s ease}
html body.mx input::placeholder,html body.mx textarea::placeholder{color:var(--mx-label-3)!important}
html body.mx input:focus,html body.mx select:focus,html body.mx textarea:focus{outline:0!important;border-color:var(--mx-accent)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--mx-accent) 28%,transparent)!important}
html body.mx input[type=checkbox],html body.mx input[type=radio]{accent-color:var(--mx-accent)}
html body.mx option{background:var(--mx-card-solid);color:var(--mx-label)}

/* ---------- 8. TABEL ---------- */
html body.mx table{color:var(--mx-label)!important;border-collapse:separate;border-spacing:0}
html body.mx th{background:var(--mx-fill-3)!important;color:var(--mx-label-2)!important;font-weight:600;font-size:11.5px;letter-spacing:.01em;text-transform:none!important;border-bottom:.5px solid var(--mx-sep)!important}
html body.mx td{border-bottom:.5px solid var(--mx-sep-soft)!important;color:var(--mx-label)}
html body.mx tbody tr{transition:background .15s ease}
html body.mx tbody tr:hover td{background:var(--mx-accent-soft)!important}
html body.mx .nrp-tblwrap,html body.mx .trx-tablewrap{border-radius:12px}

/* ---------- 9. TAG / BADGE ---------- */
html body.mx .tag{border-radius:999px!important;font-weight:600;letter-spacing:0}
html body.mx .tag-green{background:color-mix(in srgb,var(--mx-green) 18%,transparent)!important;color:var(--mx-green)!important}
html body.mx .tag-red{background:color-mix(in srgb,var(--mx-red) 16%,transparent)!important;color:var(--mx-red)!important}
html body.mx .tag-gold{background:color-mix(in srgb,var(--mx-orange) 18%,transparent)!important;color:var(--mx-orange)!important}
html body.mx .tag-gray{background:var(--mx-fill-2)!important;color:var(--mx-label-2)!important}

/* ---------- 10. MODAL = JENDELA macOS + animasi buka/tutup ---------- */
html body.mx .modal-bg{display:flex!important;align-items:center;justify-content:center;background:rgba(0,0,0,.34)!important;-webkit-backdrop-filter:blur(0px);backdrop-filter:blur(0px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .28s ease,backdrop-filter .35s ease,-webkit-backdrop-filter .35s ease,visibility 0s linear .35s}
html body.mx .modal-bg.show{opacity:1;visibility:visible;pointer-events:auto;-webkit-backdrop-filter:blur(10px) saturate(140%);backdrop-filter:blur(10px) saturate(140%);transition:opacity .28s ease,backdrop-filter .35s ease,-webkit-backdrop-filter .35s ease,visibility 0s}
html body.mx .modal-bg>.modal,html body.mx .modal-bg>div{position:relative;background:var(--mx-elev)!important;-webkit-backdrop-filter:saturate(180%) blur(40px);backdrop-filter:saturate(180%) blur(40px);color:var(--mx-label)!important;border:.5px solid var(--mx-sep)!important;border-radius:14px!important;box-shadow:var(--mx-shadow-2)!important;padding-top:46px!important;transform:translateY(18px) scale(.94);opacity:0;transition:transform .42s var(--mx-spring),opacity .26s ease}
html body.mx .modal-bg.show>.modal,html body.mx .modal-bg.show>div{transform:none;opacity:1}
html body.mx .modal h3{letter-spacing:-.015em;font-weight:700;color:var(--mx-label)!important}
html body.mx .mx-titlebar{position:sticky;top:-46px;height:40px;margin:-46px 0 6px;display:flex;align-items:center;gap:8px;padding:0 14px;border-bottom:.5px solid var(--mx-sep);border-radius:14px 14px 0 0;background:var(--mx-elev);-webkit-backdrop-filter:blur(24px);backdrop-filter:blur(24px);z-index:6;user-select:none}
html body.mx .mx-dot{width:12px;height:12px;border-radius:50%;border:.5px solid rgba(0,0,0,.2);padding:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:9px;line-height:1;color:transparent;transition:filter .15s,transform .15s var(--mx-spring)}
html body.mx .mx-dot.r{background:#ff5f57}html body.mx .mx-dot.y{background:#febc2e}html body.mx .mx-dot.g{background:#28c840}
html body.mx .mx-titlebar:hover .mx-dot.r{color:rgba(80,0,0,.75)}
html body.mx .mx-dot:hover{filter:brightness(1.1);transform:scale(1.12)}
html body.mx .mx-dot.off{background:var(--mx-fill);pointer-events:none}
html body.mx .mx-title{position:absolute;left:0;right:0;text-align:center;font-size:12.5px;font-weight:600;color:var(--mx-label-2);pointer-events:none}

/* ---------- 11. TOAST = banner notifikasi macOS ---------- */
html body.mx .toast{background:var(--mx-elev)!important;-webkit-backdrop-filter:saturate(180%) blur(30px);backdrop-filter:saturate(180%) blur(30px);color:var(--mx-label)!important;border:.5px solid var(--mx-sep)!important;border-radius:16px;box-shadow:var(--mx-shadow-2);padding:12px 16px;font-weight:500;animation:mxToastIn .5s var(--mx-spring)!important;border-left:4px solid var(--mx-accent)!important}
html body.mx .toast.ok{border-left-color:var(--mx-green)!important}
html body.mx .toast.err,html body.mx .toast.error{border-left-color:var(--mx-red)!important}
html body.mx .toast.offline,html body.mx .toast.nokoneksi{border-left-color:var(--mx-orange)!important}
@keyframes mxToastIn{from{opacity:0;transform:translateX(40px) scale(.92)}to{opacity:1;transform:none}}

/* ---------- 12. TRANSISI HALAMAN (buka/tutup) ---------- */
html body.mx #content.mx-in>*{animation:mxPageIn .5s var(--mx-ease) both}
html body.mx #content.mx-in>*:nth-child(2){animation-delay:.04s}
html body.mx #content.mx-in>*:nth-child(3){animation-delay:.08s}
@keyframes mxPageIn{from{opacity:0;transform:translateY(14px) scale(.985);filter:blur(4px)}to{opacity:1;transform:none;filter:none}}
html body.mx .mx-ghost{position:absolute;pointer-events:none;z-index:5;animation:mxPageOut .26s ease forwards}
@keyframes mxPageOut{to{opacity:0;transform:translateY(-8px) scale(.985);filter:blur(5px)}}

/* ---------- 13. DASHBOARD IKON = Launchpad / Dock ---------- */
html body.mx .di-grid{gap:18px!important}
html body.mx .di-tile{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:18px;transition:transform .35s var(--mx-spring)}
html body.mx .di-tile:hover{transform:translateY(-8px) scale(1.09)}
html body.mx .di-tile:active{transform:scale(.94)}
html body.mx .di-img{position:relative;width:84px!important;height:84px!important;border-radius:22.5%!important;background:var(--mx-tile,linear-gradient(160deg,#5ac8fa,#0a84ff))!important;box-shadow:0 1px 0 rgba(255,255,255,.4) inset,0 -10px 18px rgba(0,0,0,.12) inset,0 14px 24px -10px rgba(0,0,0,.55)!important;transition:box-shadow .3s ease}
html body.mx .di-tile:hover .di-img{box-shadow:0 1px 0 rgba(255,255,255,.45) inset,0 -10px 18px rgba(0,0,0,.12) inset,0 22px 34px -12px rgba(0,0,0,.6)!important}
html body.mx .di-img::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(180deg,rgba(255,255,255,.28),transparent 48%);pointer-events:none}
html body.mx .di-img svg{width:46px;height:46px;color:#fff;filter:drop-shadow(0 2px 3px rgba(0,0,0,.28))}
html body.mx .di-img img{border-radius:inherit}
html body.mx .di-lbl{color:var(--mx-label)!important;font-weight:600;font-size:12.5px;text-align:center;text-shadow:none}
html body.mx .di-ph{color:#fff}
html body.mx .di-edit{background:var(--mx-fill-3)!important;border-color:var(--mx-sep)!important}

/* ---------- 14. LOGIN ---------- */
html body.mx #loginScreen{font-family:var(--mx-font)}
html body.mx #loginScreen .lg2-card,html body.mx #loginScreen .login-card,html body.mx #loginScreen [class*="card"]{-webkit-backdrop-filter:saturate(180%) blur(34px);backdrop-filter:saturate(180%) blur(34px);border-radius:22px!important;box-shadow:var(--mx-shadow-2)!important;animation:mxLoginIn .8s var(--mx-ease) both}
@keyframes mxLoginIn{from{opacity:0;transform:translateY(24px) scale(.96)}to{opacity:1;transform:none}}
html body.mx #loginScreen button[type=submit],html body.mx #loginScreen .btn-login,html body.mx #loginScreen button{border-radius:11px!important;transition:transform .22s var(--mx-spring),filter .2s}
html body.mx #loginScreen button:active{transform:scale(.97)}

/* ---------- 15. KOMPONEN LAIN (verifikasi, kasir, absen, summary transaksi) ---------- */
html body.mx .trx-sec,html body.mx details.trx-sec,html body.mx .trx-summary,html body.mx .nrp-pos-opts,html body.mx .nrp-attach{background:var(--mx-fill-3)!important;border:.5px solid var(--mx-sep-soft)!important;border-radius:14px!important;color:var(--mx-label)!important}
html body.mx .trx-sec-title,html body.mx .trx-head h3{color:var(--mx-label)!important}
html body.mx .trx-sec-title i{background:var(--mx-accent)!important;color:#fff!important;border-radius:50%}
html body.mx .trx-ico{background:linear-gradient(160deg,var(--mx-accent-2),var(--mx-accent))!important;border-radius:12px!important;box-shadow:0 6px 14px -6px color-mix(in srgb,var(--mx-accent) 70%,transparent)}
html body.mx .trx-summary b{color:var(--mx-label)!important}
html body.mx .rx-menu-list,html body.mx details.rx-menu .rx-menu-list{background:var(--mx-elev)!important;-webkit-backdrop-filter:blur(26px);backdrop-filter:blur(26px);border:.5px solid var(--mx-sep)!important;border-radius:12px!important;box-shadow:var(--mx-shadow-2)!important}
html body.mx .analysis-mini-grid>div,html body.mx .analysis-compare>div,html body.mx .analysis-alert{background:var(--mx-fill-3)!important;border-color:var(--mx-sep-soft)!important;color:var(--mx-label)!important;border-radius:12px}
html body.mx .chart3d-wrap{background:var(--mx-fill-3)!important;border-radius:14px}
html body.mx .tu-avatar{border-radius:50%!important;box-shadow:0 0 0 2px var(--mx-fill)}
html body.mx .ai-agent-panel,html body.mx #aiAgentPanel{border-radius:18px!important;box-shadow:var(--mx-shadow-2)!important;overflow:hidden}

/* ---------- 16. RESPONSIF (laptop, tablet, Android) ---------- */
@media (max-width:900px){
  html body.mx .main-col{margin-left:0!important}
  html body.mx .sidebar{transform:translateX(-104%);box-shadow:none!important;width:min(84vw,310px)}
  html body.mx .sidebar.open{transform:translateX(0);box-shadow:24px 0 70px -10px rgba(0,0,0,.5)!important}
  html body.mx .content{padding:14px 12px!important}
  html body.mx .topbar{padding-left:10px!important;padding-right:10px!important}
  html body.mx .btn{min-height:38px}
  html body.mx .btn-sm{min-height:32px}
}
@media (max-width:560px){
  html body.mx .modal-bg{align-items:flex-end}
  html body.mx .modal-bg>.modal,html body.mx .modal-bg>div{width:100%!important;max-width:100%!important;max-height:94vh;border-radius:18px 18px 0 0!important;transform:translateY(60px)}
  html body.mx .di-img{width:72px!important;height:72px!important}
  html body.mx .di-img svg{width:40px;height:40px}
  html body.mx .mx-title{display:none}
}
@media (hover:none){html body.mx .nav-item:hover,html body.mx .btn:hover,html body.mx .kpi-card:hover,html body.mx .di-tile:hover{transform:none}}

/* ---------- 17. AKSESIBILITAS & CETAK ---------- */
@media (prefers-reduced-motion:reduce){
  html body.mx *,html body.mx *::before,html body.mx *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
@media print{
  html body.mx,html body.mx.ui-3d,html body.mx.ui-light{background:#fff!important;color:#000!important}
  html body.mx .mx-titlebar,html body.mx .mx-ghost{display:none!important}
  html body.mx .card,html body.mx .kpi-card{-webkit-backdrop-filter:none;backdrop-filter:none;background:#fff!important;border:1px solid #ccc!important;box-shadow:none!important;color:#000!important}
  html body.mx #content.mx-in>*{animation:none!important}
}

/* ---------- FIX: glif ikon putih (menimpa aturan warna svg lama) ---------- */
html body.mx #navScroll .nav-item .ic svg,html body.mx #content .di-img svg,html body.mx .di-tile .di-img svg{color:#fff!important;stroke:currentColor!important;filter:drop-shadow(0 1px 1px rgba(0,0,0,.25))}
/* aturan lama 'body *{color:...}' juga mewarnai path/rect di dalam svg -> paksa anak svg mewarisi warna svg */
html body.mx #navScroll .nav-item .ic svg *,html body.mx #content .di-img svg *,html body.mx .di-tile .di-img svg *{color:inherit!important;stroke:currentColor!important}
html body.mx #navScroll .nav-item .ic{opacity:1}

/* FIX: gradien tema lama pada #content menutupi wallpaper macOS dan berhenti di ujung konten (tepi keras) */
html body.mx #content,html body.mx .content{background:transparent!important}
@media print{html body.mx #content,html body.mx .content{background:#fff!important}}
