/* ==================================================================
   LACI MENU PONSEL -- 1.155.0
   ==================================================================

   Laci samping yang dibuka tombol ☰ di header (App\Widgets\
   SideBarWidgetView). Tampilannya disamakan dengan sidebar desktop
   (ss-sisi.css): kartu akun + saldo, menu berkelompok dengan pil aktif,
   tombol keluar di dasar.

   Posisi buka/tutup tetap milik aturan lama (.sidebar-content /.active,
   .sidebar-overlay) di <style> view-nya; berkas ini hanya mengatur rupa
   dan lebar. Semua selektor diawali #sidebarLeft / .lc supaya tidak
   bocor ke halaman lain -- berkas ini dimuat di setiap halaman.
   ================================================================== */

#sidebarLeft.lc {
    --lc-hijau: #0a7c3f;
    --lc-hijau-tua: #065f2f;
    --lc-hijau-lembut: #ecfdf3;
    --lc-hijau-garis: #c6efd6;
    --lc-teks: #0f172a;
    --lc-abu: #475569;
    --lc-abu-muda: #94a3b8;
    --lc-garis: #e2e8f0;

    width: min(300px, 86vw);
    left: calc(-1 * min(300px, 86vw) - 20px);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    border-right: 1px solid var(--lc-garis);
    box-shadow: 8px 0 30px rgba(15, 23, 42, .12);
    color: var(--lc-teks);
    font-family: inherit;
}

#sidebarLeft.lc.active {
    left: 0;
}

/* ---------------- Kepala ---------------- */

.lc-kepala {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: calc(14px + var(--safe-area-inset-top, env(safe-area-inset-top, 0px))) 14px 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.lc-merek {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    min-width: 0;
}

.lc-merek__logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(10, 124, 63, .18);
    flex: 0 0 auto;
}

.lc-merek__nama {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--lc-teks);
}

.lc-merek__nama b {
    font-weight: 800;
    color: var(--lc-hijau);
}

.lc-tutup {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.lc-tutup:hover,
.lc-tutup:focus-visible {
    background: #f1f5f9;
    color: var(--lc-teks);
}

.lc-tutup .material-symbols-outlined {
    font-size: 22px;
}

/* ---------------- Kartu akun ---------------- */

.lc-akun {
    flex: 0 0 auto;
    margin: 12px 12px 2px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--lc-garis);
    background: linear-gradient(135deg, #f8fafc 0%, rgba(236, 253, 243, .7) 100%);
}

.lc-akun__profil {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    text-decoration: none !important;
}

.lc-akun__avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--lc-hijau) 0%, #22c55e 100%);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-akun__teks {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    line-height: 1.2;
}

.lc-akun__nama {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--lc-teks);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-akun__peran {
    align-self: flex-start;
    padding: 1px 7px;
    border-radius: 6px;
    background: rgba(10, 124, 63, .1);
    color: var(--lc-hijau);
    font-size: 10px;
    font-weight: 700;
}

.lc-akun__dompet {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 8px 8px 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
}

.lc-akun__dompet-ikon {
    color: #f59e0b;
    font-size: 20px;
}

.lc-akun__dompet-teks {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.lc-akun__dompet-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--lc-abu-muda);
}

.lc-akun__dompet-nilai {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--lc-teks);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-akun__isi {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 6px 9px;
    border-radius: 8px;
    background: var(--lc-hijau-lembut);
    color: var(--lc-hijau) !important;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none !important;
}

.lc-akun__isi .material-symbols-outlined {
    font-size: 16px;
}

/* ---------------- Daftar menu ---------------- */

.lc-gulir {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 12px 14px;
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
}

.lc-judul {
    margin: 0;
    padding: 16px 12px 6px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--lc-abu-muda);
}

.lc-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 3px;
    padding: 10px 12px;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--lc-abu) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s ease, color .15s ease;
}

.lc-item .material-symbols-outlined {
    flex: 0 0 auto;
    font-size: 22px;
    color: var(--lc-abu-muda);
}

.lc-item__nama {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lc-item:hover,
.lc-item:active {
    background: #f1f5f9;
    color: var(--lc-teks) !important;
}

/* Aktif: pil hijau + garis penanda di kanan -- bentuk, bukan warna saja. */
.lc-item--aktif,
.lc-item--aktif:hover {
    background: var(--lc-hijau-lembut);
    border-color: var(--lc-hijau-garis);
    color: var(--lc-hijau-tua) !important;
    font-weight: 700;
}

.lc-item--aktif .material-symbols-outlined {
    color: var(--lc-hijau) !important;
    font-variation-settings: 'FILL' 1;
}

.lc-item--aktif:not(:has(.lc-pil, .lc-hitung:not([hidden])))::after {
    content: "";
    width: 5px;
    height: 16px;
    border-radius: 999px;
    background: var(--lc-hijau);
    flex: 0 0 auto;
}

.lc-ikon-hijau { color: var(--lc-hijau) !important; }
.lc-ikon-kuning { color: #f59e0b !important; }
.lc-ikon-merah { color: #dc2626 !important; }

.lc-hitung,
.lc-pil {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.5;
}

.lc-hitung {
    min-width: 22px;
    text-align: center;
    border: 1px solid var(--lc-hijau-garis);
    background: var(--lc-hijau-lembut);
    color: var(--lc-hijau);
}

.lc-hitung[hidden] {
    display: none;
}

/* Chat belum dibaca: merah muda -- menunggu dibalas, bukan sekadar isi. */
.lc-hitung--chat {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #e11d48;
}

.lc-pil--beta { background: #eef2ff; color: #4338ca; letter-spacing: .06em; }
.lc-pil--tunggu { background: #fef3c7; color: #92400e; }
.lc-pil--tolak { background: #fee2e2; color: #b91c1c; }

/* ---------------- Kaki ---------------- */

.lc-kaki {
    flex: 0 0 auto;
    padding: 10px 12px calc(12px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
    border-top: 1px solid #f1f5f9;
    background: rgba(248, 250, 252, .7);
}

.lc-kaki form {
    margin: 0;
}

.lc-keluar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #e11d48;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.lc-keluar:hover,
.lc-keluar:active {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.lc-keluar .material-symbols-outlined {
    font-size: 20px;
}

.lc-hak {
    margin: 6px 0 0;
    text-align: center;
    font-size: 10px;
    color: var(--lc-abu-muda);
}
