:root {
    --bg: #e8eef5;
    --panel: #ffffff;
    --ink: #122033;
    --muted: #5b6b7c;
    --line: #d5e0ea;
    --brand: #0f766e;
    --brand-2: #14b8a6;
    --accent: #4f46e5;
    --danger: #e11d48;
    --warn: #d97706;
    --ok: #059669;
    --shadow: 0 12px 32px rgba(15, 40, 70, 0.07);
    --sidebar: #07202b;
    --sidebar-ink: #c5dde6;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.app {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side {
    background:
        radial-gradient(800px 280px at 0% 0%, rgba(20, 184, 166, .22), transparent 55%),
        linear-gradient(180deg, #0c3340 0%, #071920 100%);
    color: var(--sidebar-ink);
    padding: 20px 14px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.brand {
    display: flex; gap: 10px; align-items: center;
    margin: 0 6px 12px; color: #fff; text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 40px; height: 38px; border-radius: 12px;
    background: linear-gradient(145deg, #2dd4bf, #0f766e);
    color: #fff; display: grid; place-items: center;
    font-weight: 800; box-shadow: 0 8px 18px rgba(15, 118, 110, .32);
}
.brand-mark-img { object-fit: contain; background: #fff; padding: 2px; }
.brand strong { display: block; font-size: 14px; letter-spacing: .01em; }
.brand small { opacity: .68; font-size: 11px; }
.nav { flex: 1; overflow: auto; padding-right: 4px; }
.nav-label {
    font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
    opacity: .48; margin: 14px 10px 6px;
}
.nav a {
    display: flex; align-items: center; gap: 10px;
    color: var(--sidebar-ink); text-decoration: none;
    padding: 8px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 500;
}
.nav a svg {
    width: 18px; height: 18px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.7;
    stroke-linecap: round; stroke-linejoin: round;
}
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.nav a.active {
    background: rgba(45, 212, 191, .16);
    color: #fff;
    box-shadow: inset 3px 0 0 #2dd4bf;
}
.side-foot {
    margin-top: 12px; padding: 12px 10px 4px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.side-user { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; color: #fff; text-decoration: none; }
.side-user:hover { text-decoration: none; color: #fff; }
.side-avatar, .chip-ava {
    width: 34px; height: 34px; border-radius: 10px; flex: none;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #14b8a6, #4f46e5); font-size: 11px; font-weight: 700; color: #fff;
}
.side-avatar-img, .user-chip img, .user-mini img, .profil-ava {
    width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex: none;
}
.side-user strong { display: block; font-size: 13px; }
.side-user small { display: block; opacity: .6; font-size: 11px; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.side .side-logout {
    width: 100%; justify-content: center;
    background: transparent; color: var(--sidebar-ink);
    border-color: rgba(255,255,255,.14);
}
.side .side-logout:hover { background: rgba(255,255,255,.08); color: #fff; }
.main { padding: 22px 28px 48px; min-width: 0; }
.top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 22px;
}
.top h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.user { font-size: 13px; color: var(--muted); }
.user-chip {
    display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
    background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px;
    box-shadow: var(--shadow);
}
.user-chip:hover { text-decoration: none; border-color: #b7c9d6; }
.user-chip b { display: block; font-size: 13px; }
.user-chip small { display: block; color: var(--muted); font-size: 11px; }
.panel.panel-list { padding: 0; overflow: hidden; }
.card-head.filter-head {
    display: flex; flex-wrap: wrap; gap: 14px 18px;
    justify-content: space-between; align-items: flex-end;
    position: relative; z-index: 4;
    padding: 16px 18px;
    background:
        radial-gradient(420px 120px at 100% 0%, rgba(79, 70, 229, .08), transparent 60%),
        linear-gradient(180deg, #f7fbfc, #eef4f8);
    border-bottom: 1px solid var(--line);
}
.filter-fields {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px; flex: 1; min-width: min(100%, 280px);
}
.filter-head .field { margin: 0; }
.filter-static { margin: 0; min-height: 38px; display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13.5px; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.card-body { padding: 6px 18px 16px; }
.table-wrap { overflow-x: auto; }
.td-aksi { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    padding: 16px; box-shadow: var(--shadow);
}
.card .k { font-size: 12px; color: var(--muted); }
.card .v { font-size: 26px; font-weight: 700; margin-top: 6px; }
.panel {
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.grow { flex: 1; }
input, select, textarea {
    border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
    font: inherit; background: #fff; color: var(--ink); width: 100%;
}
textarea { min-height: 72px; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field { margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.resep-qty { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.resep-qty .kasir-qty input { width: 84px; }
.resep-satuan { min-width: 3em; margin: 0; }
.satuan-tingkat td { vertical-align: middle; }
.tingkat-baris { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tingkat-baris .tingkat-nama { width: 140px; }
.tingkat-baris .tingkat-harga { width: 140px; }
.tingkat-baris .tingkat-isi { width: 110px; }
.opname-pecah { display: flex; gap: 8px; align-items: flex-end; min-width: 180px; }
.opname-pecah label { flex: 1; margin: 0; }
.opname-pecah input { width: 100%; }
.tingkat-bawah { font-weight: 600; min-width: 3em; margin: 0; }
#tingkat-ringkas { margin: 8px 0 0; }
input[data-angka] { text-align: right; font-variant-numeric: tabular-nums; }
.kasir-qty input[data-angka] { text-align: center; }
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; border: 0; border-radius: 10px;
    padding: 8px 12px; font: inherit; cursor: pointer; text-decoration: none;
    box-shadow: 0 6px 14px rgba(15, 118, 110, .22);
}
.btn .ico, .btn svg.ico {
    width: 16px; height: 16px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: #f3f7fa; color: var(--ink); }
.btn.warn { background: var(--warn); box-shadow: none; }
.btn.danger { background: var(--danger); box-shadow: none; }
.btn.small { padding: 5px 8px; font-size: 12px; }
.side .btn.ghost.side-logout {
    background: transparent;
    color: var(--sidebar-ink);
    border-color: rgba(255,255,255,.16);
}
.side .btn.ghost.side-logout:hover { background: rgba(255,255,255,.08); color: #fff; }
.flash { background: #e8f8ef; color: var(--ok); padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.flash-err { background: #fdecec; color: var(--danger); }
.page-lead { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; max-width: 920px; }
.field .hint { margin: 6px 0 0; }
.koneksi-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.koneksi-tab {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line); background: #fff; color: var(--muted);
    border-radius: 12px; padding: 10px 16px; font: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; box-shadow: var(--shadow);
}
.koneksi-tab .ico {
    width: 16px; height: 16px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.koneksi-tab:hover { color: var(--ink); border-color: #b7c9d6; }
.koneksi-tab[aria-selected="true"] {
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
    color: #fff; border-color: transparent;
    box-shadow: 0 6px 14px rgba(15, 118, 110, .22);
}
.koneksi-form { max-width: 720px; }
.koneksi-panel[hidden] { display: none; }
.sinkron-mode { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.sinkron-mode legend { font-size: 12px; color: var(--muted); padding: 0 4px; }
.sinkron-mode .check { margin: 6px 0; align-items: flex-start; }
.sinkron-jenis { display: none; border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.sinkron-jenis.is-on { display: block; }
.sinkron-jenis .check small { color: var(--muted); }
.sinkron-aksi { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sinkron-baris-aksi { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.modal-head .sinkron-baris-aksi { margin-left: auto; }
.pemetaan-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.pemetaan-aksi { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.pemetaan-grup { margin: 16px 0 8px; font-size: 14px; }
.pemetaan-form select { width: 100%; min-width: 220px; }
.pemetaan-form { margin-bottom: 8px; }
.modal-card-lg { width: min(980px, 100%); max-height: min(90vh, 880px); }
.preview-banner {
    display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline;
    border-radius: 12px; padding: 12px 14px; margin-bottom: 8px;
}
.preview-banner strong { font-size: 14px; }
.preview-banner.sukses { background: #e8f8ef; color: var(--ok); }
.preview-banner.belum_sukses { background: #fdecec; color: var(--danger); }
.preview-banner.kosong { background: #f4f7fa; color: var(--ink); }
.preview-bagian { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 12px; }
.preview-bagian-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.preview-bagian-head h4, .preview-bagian h4 { margin: 10px 0 6px; font-size: 14px; }
.preview-bagian-head h4 { margin: 0; }
.preview-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.preview-chip { background: #f4f7fa; border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--muted); }
.preview-chip strong { color: var(--ink); }
.preview-jurnal { margin-top: 10px; }
.preview-jurnal caption { caption-side: top; text-align: left; font-size: 12px; color: var(--muted); padding: 0 0 6px; }
.preview-jurnal code { font-size: 12px; }
.errors { background: #fdecec; color: var(--danger); padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.badge { display: inline-block; font-size: 11px; padding: 2px 7px; border-radius: 99px; background: #e7f1f6; color: var(--brand); }
.badge.n { background: #fdecec; color: var(--danger); }
.badge.p { background: #fff4e5; color: var(--warn); }
.badge.ok { background: #e8f8ef; color: var(--ok); }
.badge.role-super_admin { background: #eef2ff; color: #4338ca; }
.badge.role-admin { background: #e6fffa; color: #0f766e; }
.badge.role-kasir { background: #fff7ed; color: #c2410c; }
.badge.role-petugas { background: #f1f5f9; color: #475569; }
.profil-grid { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.profil-card { text-align: center; overflow: hidden; padding-top: 0; }
.profil-cover {
    height: 92px; margin: 0 -16px 0;
    background:
        radial-gradient(220px 80px at 80% 20%, rgba(79,70,229,.45), transparent 70%),
        linear-gradient(120deg, #0f766e, #134e4a 55%, #4f46e5);
}
.profil-ava-wrap { margin-top: -42px; margin-bottom: 10px; }
.profil-ava { width: 88px; height: 88px; border-radius: 24px; border: 4px solid #fff; display: inline-grid; place-items: center; object-fit: cover; }
.profil-ava-fallback { background: linear-gradient(145deg, #14b8a6, #4f46e5); color: #fff; font-size: 28px; font-weight: 800; }
.profil-card h2 { margin: 8px 0 4px; font-size: 20px; }
.profil-izin { list-style: none; padding: 0; margin: 16px 0 0; text-align: left; color: var(--muted); font-size: 13px; }
.role-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 18px 0; }
.role-chip {
    background: #f7fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
}
.role-chip strong { display: block; font-size: 13px; }
.role-chip span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.user-mini { display: flex; gap: 8px; align-items: center; }
.user-mini span {
    width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
    background: linear-gradient(145deg, #14b8a6, #4f46e5); color: #fff; font-size: 11px; font-weight: 700;
}
.hint { color: var(--muted); font-size: 12px; }
.pager { margin-top: 14px; }
.pager-nav { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.check { display: flex; gap: 8px; align-items: center; }
.check input { width: auto; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: #123047; }
.login-card { width: 380px; background: #fff; border-radius: 16px; padding: 28px; }

/* Login cinematic */
body.login-page {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    color: #e8f4fb;
    background: #061018;
    min-height: 100vh;
    overflow: hidden;
    --mx: 0;
    --my: 0;
    --px: 50%;
    --py: 38%;
}
.login-scene {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
    overflow: hidden;
}
.login-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(1200px 700px at 15% 10%, rgba(32, 120, 160, .35), transparent 55%),
        radial-gradient(900px 600px at 90% 90%, rgba(201, 162, 39, .14), transparent 50%),
        linear-gradient(160deg, #07141e 0%, #0b2230 48%, #0a1824 100%);
}
.login-orb { position: absolute; pointer-events: none; }
.login-orb span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    filter: blur(8px);
}
.login-orb-a {
    width: 520px; height: 520px; left: -8%; top: -12%;
    translate: calc(var(--mx) * 70px) calc(var(--my) * 50px);
}
.login-orb-a span {
    background: radial-gradient(circle, rgba(42, 176, 214, .55), rgba(18, 80, 110, .08) 62%, transparent 70%);
    animation: login-drift-a 18s ease-in-out infinite;
}
.login-orb-b {
    width: 460px; height: 460px; right: -6%; top: 18%;
    translate: calc(var(--mx) * -55px) calc(var(--my) * 40px);
}
.login-orb-b span {
    background: radial-gradient(circle, rgba(201, 162, 39, .32), transparent 68%);
    animation: login-drift-b 22s ease-in-out infinite;
}
.login-orb-c {
    width: 640px; height: 640px; left: 28%; bottom: -28%;
    translate: calc(var(--mx) * 40px) calc(var(--my) * -60px);
}
.login-orb-c span {
    background: radial-gradient(circle, rgba(20, 140, 170, .28), transparent 70%);
    animation: login-drift-c 26s ease-in-out infinite;
}
.login-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%);
    opacity: .45;
    transform: perspective(900px) rotateX(18deg) scale(1.2) translate3d(calc(var(--mx) * 18px), calc(var(--my) * 14px), 0);
    transform-origin: 50% 0;
}
.login-spot {
    position: absolute;
    width: 720px; height: 720px;
    left: var(--px); top: var(--py);
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(90, 210, 240, .28) 0%, rgba(201, 162, 39, .1) 28%, transparent 62%);
    pointer-events: none;
    mix-blend-mode: screen;
}
.login-noise {
    position: absolute; inset: 0; opacity: .07; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
.login-orbit {
    position: absolute;
    inset: -12% -20% -8% -8%;
    pointer-events: none;
    z-index: 0;
}
.floater {
    position: absolute;
    object-fit: cover;
    border-radius: 22px;
    transform: translate3d(var(--dx, 0), var(--dy, 0), 0);
    will-change: transform;
    box-shadow: 0 18px 36px rgba(0,0,0,.38);
}
.f-rental { width: 148px; top: -2%; left: -6%; }
.f-laundry { width: 118px; top: -12%; right: -2%; }
.f-salon { width: 120px; bottom: 6%; right: -10%; }
.f-cuci { width: 136px; top: 42%; right: -18%; }
.login-shell {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
    gap: 36px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 100vh;
    min-width: 0;
    padding: 36px 40px;
}
.login-brand {
    display: flex; gap: 12px; align-items: center;
    margin-bottom: 28px; color: #fff;
}
.login-mark {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #3ec3e8, #1a6a8a);
    box-shadow: 0 8px 24px rgba(42, 160, 200, .35);
    font-weight: 800; font-size: 20px;
}
.login-mark-img { object-fit: contain; background: #fff; padding: 2px; }
.login-brand strong { display: block; font-size: 16px; letter-spacing: .01em; }
.login-brand small { opacity: .68; font-size: 12px; }
.login-kicker {
    display: inline-block;
    margin: 0 0 10px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #f3e2a0;
    background: rgba(201, 162, 39, .14);
    border: 1px solid rgba(201, 162, 39, .28);
}
.login-hero { position: relative; z-index: 2; padding-right: 8px; }
.login-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.18;
    letter-spacing: -.02em;
    max-width: min(18ch, 100%);
}
.login-lead {
    margin: 0 0 22px;
    max-width: 52ch;
    color: #c5d6e2;
    font-size: 15px;
    line-height: 1.55;
}
.login-points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.login-points li { display: flex; gap: 12px; align-items: flex-start; }
.login-points li > div { min-width: 0; }
.login-ico {
    width: 28px; height: 28px; border-radius: 8px; flex: none;
    display: grid; place-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    font-size: 12px; font-weight: 700; color: #8ad7ee;
}
.login-points strong { display: block; font-size: 14px; }
.login-points span { display: block; font-size: 12px; color: #adc0ce; line-height: 1.45; margin-top: 2px; }
.login-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.login-service {
    display: flex; gap: 10px; align-items: center;
    min-width: 0;
    padding: 8px 10px 8px 8px;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(10px);
    transform: translate3d(var(--dx, 0), var(--dy, 0), 0);
}
.login-service img {
    width: 52px; height: 48px; border-radius: 10px;
    object-fit: contain;
    mix-blend-mode: lighten;
}
.login-service div { min-width: 0; }
.login-service strong { display: block; font-size: 12px; color: #fff; }
.login-service span { display: block; font-size: 11px; color: #9db3c2; line-height: 1.35; }
.login-panel { position: relative; z-index: 2; }
.login-page .login-card {
    position: relative;
    z-index: 1;
    width: auto;
    padding: 28px 26px 22px;
    border-radius: 22px;
    background: rgba(255,255,255,.94);
    color: var(--ink);
    box-shadow: 0 30px 80px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.5) inset;
    backdrop-filter: blur(18px);
}
.login-card-head h2 { margin: 0 0 6px; font-size: 22px; }
.login-card-head p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.login-form .field input {
    padding: 11px 12px;
    border-radius: 10px;
    background: #f7fafc;
}
.login-form .field input:focus {
    outline: 2px solid rgba(26, 106, 138, .28);
    border-color: var(--brand);
}
.login-submit {
    width: 100%;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 11px;
    font-weight: 700;
    margin-top: 6px;
    box-shadow: 0 10px 24px rgba(26, 106, 138, .28);
}
.login-demo { margin: 14px 0 0; }
.login-demo code {
    font-size: 11px;
    background: #eef4f8;
    padding: 1px 5px;
    border-radius: 4px;
}
.login-foot {
    margin: 14px 4px 0;
    font-size: 12px;
    color: #9fb4c3;
    text-align: center;
}
@keyframes login-drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(36px, 22px) scale(1.08); }
}
@keyframes login-drift-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-28px, 30px) scale(1.06); }
}
@keyframes login-drift-c {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -24px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
    .login-orb span { animation: none; }
}
@media (max-width: 980px) {
    html, body.login-page { overflow-x: hidden; overflow-y: auto; }
    .login-scene { overflow-x: hidden; }
    .login-shell {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px 18px 40px;
        min-height: auto;
        width: 100%;
    }
    .login-hero, .login-panel { min-width: 0; max-width: 100%; }
    .login-hero h1 {
        max-width: none;
        font-size: 28px;
        overflow-wrap: anywhere;
    }
    .login-lead, .login-points span {
        max-width: none;
        overflow-wrap: anywhere;
    }
    .login-service span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .login-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .login-orbit { display: none; }
}
.badge.ok { background: #e8f8ef; color: var(--ok); }
.panel h3 { margin: 0; font-size: 16px; }

.dash-hero {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.dash-hero h2 { margin: 0 0 4px; font-size: 22px; }
.dash-kicker { margin: 0 0 4px; font-size: 12px; color: var(--brand); font-weight: 600; }
.dash-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.dash-kpi .v { font-variant-numeric: tabular-nums; }
.dash-delta { font-size: 12px; margin-top: 8px; color: var(--muted); }
.dash-delta.up { color: var(--ok); }
.dash-delta.down { color: var(--danger); }
.dash-month {
    display: grid; grid-template-columns: 1.1fr 1.8fr; gap: 18px; align-items: center;
    background: linear-gradient(120deg, #123047 0%, #1a6a8a 70%);
    color: #fff; border-radius: 16px; padding: 18px 20px; margin-bottom: 18px;
}
.dash-month .k { font-size: 12px; opacity: .75; }
.dash-month strong { display: block; font-size: 28px; margin: 4px 0 4px; font-variant-numeric: tabular-nums; }
.dash-month ul {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
}
.dash-month li { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px 12px; }
.dash-month li span { display: block; font-size: 11px; opacity: .75; }
.dash-month li b { display: block; margin-top: 4px; font-size: 15px; font-variant-numeric: tabular-nums; }
.dash-month .dash-delta { color: #d5e8f2; }
.dash-month .dash-delta.up { color: #b7f0c9; }
.dash-month .dash-delta.down { color: #ffc9b8; }
.dash-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; margin-bottom: 18px; }
.dash-grid + .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-span-2 { grid-column: span 1; }
@media (min-width: 981px) {
    .dash-span-2 { grid-column: span 1; }
    .dash-grid { grid-template-columns: 1.45fr .75fr; }
}
.dash-panel-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 8px; margin-bottom: 14px;
}
.dash-bars {
    display: flex; align-items: stretch; gap: 6px; height: 190px;
}
.dash-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.dash-col-track {
    flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center;
    border-bottom: 1px solid var(--line);
}
.dash-col-track span {
    display: block; width: 72%; max-width: 26px; min-height: 4px;
    background: linear-gradient(180deg, #3eb5d6, #1a6a8a);
    border-radius: 6px 6px 3px 3px;
}
.dash-col.is-today .dash-col-track span { background: linear-gradient(180deg, #e0c35a, #c9a227); }
.dash-col small { font-size: 10px; color: var(--muted); margin-top: 6px; }
.dash-empty { margin: 12px 0 0; }
.dash-donut-wrap { display: flex; gap: 16px; align-items: center; }
.dash-donut {
    width: 142px; height: 142px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
}
.dash-donut-sm { width: 118px; height: 118px; }
.dash-donut-hole {
    width: 64%; height: 64%; border-radius: 50%; background: #fff;
    display: grid; place-items: center; text-align: center; padding: 6px;
}
.dash-donut-hole strong { font-size: 12px; line-height: 1.2; }
.dash-donut-sm .dash-donut-hole strong { font-size: 18px; }
.dash-donut-hole span { font-size: 10px; color: var(--muted); }
.dash-legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; }
.dash-legend li { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 4px 0; }
.dash-legend i { width: 8px; height: 8px; border-radius: 99px; flex: none; }
.dash-legend span { flex: 1; min-width: 0; }
.dash-legend b { font-variant-numeric: tabular-nums; }
.dash-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dash-rank li strong { display: block; font-size: 13px; }
.dash-rank li span { display: block; font-size: 11px; color: var(--muted); margin: 2px 0 6px; }
.dash-meter { height: 6px; background: #e7eef3; border-radius: 99px; overflow: hidden; }
.dash-meter span { display: block; height: 100%; background: linear-gradient(90deg, #1a6a8a, #2aa0c8); border-radius: 99px; }
.dash-pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.dash-step {
    background: #f3f5f8; border-radius: 12px; padding: 12px 6px; text-align: center;
}
.dash-step b { display: block; font-size: 22px; }
.dash-step span { font-size: 11px; color: var(--muted); }
.dash-piutang {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px;
}
.dash-piutang div { background: #f3f5f8; border-radius: 12px; padding: 12px; }
.dash-piutang span { display: block; font-size: 11px; color: var(--muted); }
.dash-piutang strong { display: block; margin-top: 4px; font-size: 16px; font-variant-numeric: tabular-nums; }

.pick-select { position: relative; }
.pick-menu {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 8;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    max-height: 280px; overflow: auto;
    box-shadow: 0 16px 40px rgba(20, 40, 60, .12);
}
.pick-menu button {
    display: block; width: 100%; text-align: left; background: #fff; color: var(--ink);
    border: 0; border-radius: 0; padding: 8px 10px; font: inherit; cursor: pointer; box-shadow: none;
}
.pick-menu button strong { display: block; font-size: 13px; font-weight: 600; }
.pick-menu button small { display: block; color: var(--muted); font-size: 11px; margin-top: 1px; }
.pick-menu button:hover, .pick-menu button.active { background: #f3f7fa; }
.pick-kosong { margin: 0; padding: 10px 12px; color: var(--muted); font-size: 13px; }

.search-box { position: relative; }
.search-results {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border: 1px solid var(--line); border-radius: 12px; z-index: 20;
    max-height: 320px; overflow: auto;
    box-shadow: 0 16px 40px rgba(20, 40, 60, .12);
}
.search-results button.search-hit-main {
    display: flex; width: 100%; text-align: left; background: none; border: 0;
    padding: 10px 12px 6px; cursor: pointer; font: inherit;
    justify-content: space-between; gap: 12px; align-items: center;
}
.search-results button.search-hit-main:hover { background: #f3f5f8; }
.search-results button.search-hit-main strong { display: block; font-size: 14px; }
.search-results button.search-hit-main small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.search-results button.search-hit-main b { font-variant-numeric: tabular-nums; color: var(--brand); font-size: 13px; }
.search-empty { padding: 12px; color: var(--muted); font-size: 13px; }

.kasir {
    display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 400px);
    gap: 16px; align-items: start;
}
.kasir.kasir-beli { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
.kasir-side { padding: 0; overflow: hidden; margin-bottom: 0; }
.kasir-grand {
    text-align: center;
    padding: 16px 16px 14px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(420px 120px at 50% 0%, rgba(20, 184, 166, .16), transparent 70%),
        #fff;
}
.kasir-grand strong {
    display: block;
    font-size: clamp(28px, 4.2vw, 42px);
    line-height: 1.1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}
.kasir-ticket {
    border: 0; box-shadow: none; margin: 0; border-radius: 0;
    padding: 16px 18px 18px;
}
.kasir-detail-btn { width: 100%; justify-content: center; margin: 0 0 6px; }
body.is-kasir .main { padding-bottom: 24px; }
body.is-kasir .top { margin-bottom: 14px; }
.kasir-stage, .kasir-ticket { margin-bottom: 0; }
.kasir-stage {
    min-height: 560px; display: flex; flex-direction: column;
    padding: 0; overflow: visible;
}
.kasir-stage-head {
    padding: 14px 18px 16px;
    background:
        radial-gradient(420px 120px at 100% 0%, rgba(79, 70, 229, .08), transparent 60%),
        linear-gradient(180deg, #f7fbfc, #eef4f8);
    border-bottom: 1px solid var(--line);
    border-radius: 14px 14px 0 0;
}
.kasir-stage-body {
    padding: 14px 18px 18px;
    flex: 1; display: flex; flex-direction: column; min-height: 0;
}
.kasir-pick { display: grid; grid-template-columns: 150px minmax(0, 1fr) max-content; gap: 12px; align-items: end; }
.kasir-pick.kasir-pick-cari { grid-template-columns: 50% max-content; }
.kasir-cari-btn { height: 46px; min-width: 168px; white-space: nowrap; padding: 8px 16px; flex-shrink: 0; }
.kasir-qty-pick label { white-space: nowrap; }
.kasir-qty-pick .kasir-qty { margin-top: 4px; }
.kasir-qty-pick .kasir-qty input { height: 44px; font-size: 16px; font-weight: 700; }
.kasir-qty-pick .kasir-qty button { width: 32px; height: 32px; }
.kasir-search input { padding: 12px 12px; border-radius: 12px; font-size: 15px; }
.search-hit { border-bottom: 1px solid var(--line); }
.search-hit:last-child { border-bottom: 0; }
.search-hit-main {
    display: flex; width: 100%; text-align: left; background: none; border: 0;
    padding: 10px 12px 6px; cursor: pointer; font: inherit;
    justify-content: space-between; gap: 12px; align-items: center;
}
.search-hit-main:hover { background: #f3f5f8; }
.search-hit-main em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 11px; }
.search-hit-qty {
    display: flex; align-items: center; gap: 8px; padding: 0 12px 10px; flex-wrap: wrap;
}
.search-hit-satuan { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); flex: 1 1 240px; }
.search-hit-satuan select { width: 100%; min-width: 200px; max-width: none; font-size: 12px; padding: 6px 8px; }
.kasir-line.kasir-line-beli {
    display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px;
    padding: 16px 18px;
}
.kasir-line.kasir-line-beli > div:first-child { flex: 1 1 100%; }
.kasir-line.kasir-line-beli select { width: 100%; max-width: none; }
.kasir-line.kasir-line-beli .hint { display: block; margin: 2px 0 6px; line-height: 1.35; }
.kasir-line.kasir-line-beli .kasir-line-aksi {
    display: flex; align-items: flex-end; gap: 14px 16px; width: 100%; flex-wrap: nowrap;
}
.kasir-line.kasir-line-beli .kasir-price { text-align: left; }
.kasir-line.kasir-line-beli .kasir-price input { width: 148px; margin-bottom: 0; }
.kasir-line.kasir-line-beli .kasir-line-total { margin-left: auto; text-align: right; }
.kasir-line.kasir-line-beli .kasir-line-total b {
    display: flex; align-items: center; justify-content: flex-end;
    min-height: 38px; min-width: 96px; margin: 0;
    font-size: 15px; font-weight: 700; color: var(--ink);
}
.search-hit-qty > span { font-size: 11px; color: var(--muted); }
.search-hit-qty small { color: var(--muted); font-size: 12px; min-width: 2.5ch; }
.kasir-qty-block label { margin-bottom: 4px; }
.kasir-cart-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin: 0 0 10px;
}
.kasir-cart-head h3, .kasir-ticket-head h3 { margin: 0; font-size: 15px; }
.kasir-ticket-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px;
}
[hidden] { display: none !important; }
.kasir-empty {
    flex: 1; display: grid; place-items: center; text-align: center;
    background: #f7fafc; border: 1px dashed var(--line); border-radius: 16px;
    padding: 32px 20px; min-height: 280px;
}
.kasir-empty[hidden],
.kasir-stage.has-cart .kasir-empty { display: none !important; }
.kasir-empty p { margin: 0 0 6px; }
.kasir-empty .btn { margin-top: 12px; }
.kasir-lines { display: grid; gap: 10px; }
.kasir-lines[hidden],
.kasir-stage:not(.has-cart) .kasir-lines { display: none !important; }
.kasir-stage.has-cart .kasir-lines { display: grid !important; }

.modal-back {
    position: fixed; inset: 0; z-index: 80;
    background: rgba(12, 28, 42, .48);
    display: grid; place-items: center; padding: 18px;
}
.modal-back[hidden] { display: none !important; }
.modal-card {
    width: min(760px, 100%); max-height: min(86vh, 780px);
    background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(12, 28, 42, .28);
    display: flex; flex-direction: column; overflow: hidden;
}
.modal-card-sm { width: min(520px, 100%); }
.saldo-tunggu { text-align: center; }
.saldo-tunggu img { width: 220px; height: 220px; margin: 8px auto; display: block; background: #fff; }
#saldo-kode { word-break: break-all; }
.modal-body .kasir-modul { margin: 0 0 12px; padding: 0; border: 0; }
.modal-head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-tools { padding: 12px 18px 0; }
.modal-tabs { display: flex; gap: 8px; margin: 10px 0 0; }
.modal-body { overflow: auto; padding: 12px 18px 18px; min-height: 220px; }
.racikan-aksi { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.racikan-qty { width: 120px; }
.racikan-satuan { width: 130px; }
#racikan-hasil { margin-top: 8px; }
.modal-hit {
    display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
    border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.modal-hit strong { display: block; font-size: 14px; }
.modal-hit .hint { margin: 2px 0 0; }
.modal-hit-aksi { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kasir-line {
    display: grid; grid-template-columns: minmax(120px, 1.2fr) repeat(5, auto); gap: 10px; align-items: end;
    padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfd;
}
.kasir-line strong { display: block; font-size: 14px; }
.kasir-line > label { font-size: 11px; }
.kasir-line > label input { width: 112px; margin-top: 4px; }
.kasir-line select { width: auto; min-width: 160px; max-width: 260px; margin-top: 4px; }
.kasir-qty { display: flex; align-items: center; gap: 4px; }
.kasir-qty button {
    width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line);
    background: #fff; cursor: pointer; font: inherit;
}
.kasir-qty input { width: 72px; text-align: center; padding: 6px 4px; }
.kasir-price { text-align: right; }
.kasir-price input { width: 128px; text-align: right; margin-bottom: 4px; }
.kasir-price b { display: block; font-size: 12px; color: var(--muted); }
.pay-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pay-chip {
    border: 1px solid var(--line); background: #fff; color: var(--ink);
    border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer;
}
.pay-chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.pay-chip:disabled { opacity: .4; cursor: not-allowed; }
.kasir-nol {
    background: #fff6e8; color: #8a5a00; border-radius: 8px;
    padding: 8px 10px; margin: 0 0 10px; font-size: 13px;
}
.kasir-metode-select { position: absolute; opacity: 0; pointer-events: none; height: 0; width: 0; }
.kasir-totals {
    margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line);
}
.kasir-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.kasir-total { font-size: 18px; margin: 6px 0 12px; }
.kasir-submit { width: 100%; justify-content: center; padding: 12px; font-weight: 700; }
.kasir-submit:disabled { opacity: .45; cursor: not-allowed; }
.kasir-disc input { padding: 8px 10px; }
.kasir-modul { margin: 0 0 12px; padding: 10px 0 2px; border-top: 1px dashed var(--line); }

.jenis-head {
    display: flex; justify-content: space-between; gap: 16px; align-items: flex-end;
    margin: 8px 0 14px; flex-wrap: wrap;
}
.jenis-head h3 { margin: 0 0 4px; font-size: 16px; }
.jenis-head input[type="search"] { max-width: 260px; }
.jenis-current {
    display: flex; gap: 8px; align-items: center;
    min-height: 38px; padding: 0 2px;
}
.jenis-current code, .jenis-card code {
    font-size: 11px; background: #eef3f7; color: var(--muted);
    padding: 2px 6px; border-radius: 6px;
}
.jenis-kelompok { margin-bottom: 18px; }
.jenis-kelompok h4 {
    margin: 0 0 8px; font-size: 12px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.jenis-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.jenis-card {
    display: flex; gap: 10px; align-items: flex-start;
    border: 1px solid var(--line); border-radius: 12px; padding: 12px;
    cursor: pointer; background: #fff;
}
.jenis-card input { width: auto; margin-top: 3px; flex: none; accent-color: var(--brand); }
.jenis-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jenis-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.jenis-card strong { font-size: 13.5px; }
.jenis-meta { font-size: 11px; color: var(--muted); }
.jenis-card:hover { border-color: #b7c9d6; }
.jenis-card:has(input:checked) {
    border-color: var(--brand);
    background: #f3f9fc;
    box-shadow: inset 0 0 0 1px var(--brand);
}
.modul-fitur, .modul-inti { margin: 8px 0 16px; padding-left: 18px; }
.modul-fitur li, .modul-inti li { margin-bottom: 4px; font-size: 13.5px; }
.panel h3 { margin: 0 0 8px; font-size: 15px; }

.antrian-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.antrian { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.antrian-col {
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    padding: 12px; min-height: 180px;
}
.antrian-col header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.antrian-col h3 { margin: 0; font-size: 14px; }
.antrian-col header span { font-size: 12px; color: var(--muted); }
.cucian-card {
    border: 1px solid var(--line); border-radius: 12px; padding: 10px;
    margin-bottom: 8px; background: #fff;
}
.cucian-card p { margin: 4px 0; }
.cucian-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.print-laporan-head { display: none; }
.logo-usaha-field { display: flex; gap: 16px; align-items: center; margin: 8px 0 16px; }
.logo-usaha-preview {
    width: 72px; height: 72px; object-fit: contain; border-radius: 12px;
    border: 1px solid var(--line); background: #fff; padding: 4px;
}

@media (max-width: 980px) {
    .shell { grid-template-columns: 1fr; }
    .side { height: auto; position: relative; }
    .side-foot { display: flex; gap: 10px; align-items: center; }
    .side .side-logout { width: auto; }
    .cards, .kasir, .grid-2, .grid-3, .grid-4, .dash-kpis, .dash-grid, .dash-grid + .dash-grid, .dash-month, .dash-month ul, .dash-pipe, .dash-piutang, .dash-donut-wrap, .jenis-grid, .antrian, .antrian-kpis, .profil-grid, .role-chips { grid-template-columns: 1fr; }
    .kasir-line { grid-template-columns: 1fr 1fr; }
    .kasir-pick, .kasir-pick.kasir-pick-cari { grid-template-columns: 1fr; }
    .kasir-cari-btn { width: 100%; justify-content: center; }
}
@media print {
    .side, .toolbar, .filter-head, .btn, .no-print, .top, .koneksi-tabs { display: none !important; }
    .koneksi-panel[hidden] { display: block !important; }
    .shell { display: block; }
    .main { padding: 0; }
    .panel { box-shadow: none; border: 0; }
    .print-laporan-head {
        display: flex !important;
        align-items: center;
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 10px;
        border-bottom: 2px solid var(--ink);
    }
    .print-laporan-head img {
        width: 48px; height: 48px; object-fit: contain;
    }
    .print-laporan-head strong { display: block; font-size: 16px; }
    .print-laporan-head small { color: var(--muted); font-size: 12px; }
}

.mode-panel { margin-bottom: 16px; }
.mode-form {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.mode-form h3 { margin: 0 0 4px; }
.mode-form .hint { margin: 0; max-width: 640px; }
.mode-switch {
    display: flex; align-items: center; gap: 10px; flex: none;
    font-size: 13px; font-weight: 700; cursor: pointer; user-select: none;
}
.mode-switch span { color: var(--muted); font-weight: 600; }
.mode-switch span.is-on { color: var(--ink); }
.mode-switch input[type="checkbox"] {
    appearance: none; width: 48px; height: 28px; margin: 0; border: 0; border-radius: 999px;
    background: #c5d0da; position: relative; cursor: pointer; transition: background .15s ease;
}
.mode-switch input[type="checkbox"]::after {
    content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(15, 40, 70, .22);
    transition: transform .15s ease;
}
.mode-switch input[type="checkbox"]:checked { background: var(--brand); }
.mode-switch input[type="checkbox"]:checked::after { transform: translateX(20px); }
.mode-switch input[type="checkbox"]:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
@media (max-width: 720px) {
    .mode-form { align-items: stretch; flex-direction: column; }
}

.masal-filter { max-width: 480px; }
.masal-head { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 12px; align-items: end; margin-bottom: 14px; }
.masal-head .field { margin: 0; }
input.masal-cek { width: auto; margin: 0; }
.masal-grup td { background: #f4f7f6; }
td .masal-nominal, td .masal-diskon { width: 130px; }
.masal-foot {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
}
.masal-total { font-size: 15px; }
.masal-total strong { font-variant-numeric: tabular-nums; }
@media (max-width: 980px) {
    .masal-head { grid-template-columns: 1fr; }
    .masal-foot { align-items: stretch; flex-direction: column; }
}
