/* ============================================================
   LaundryKu — Tema Admin (elegan & profesional)
   Dibangun di atas Bootstrap 5 + Bootstrap Icons + Inter.
   ============================================================ */

:root {
    --lk-primary: #db2777;
    --lk-primary-dark: #be185d;
    --lk-primary-soft: #fdf2f8;
    /* Gradient brand "Langit Sore": ungu → pink → oranye senja. */
    --lk-gradient: linear-gradient(135deg, #7c3aed, #db2777, #f97316);
    --lk-bg: #f4f6fb;
    --lk-sidebar: #0f172a;
    --lk-sidebar-2: #1e293b;
    --lk-border: #e8ebf1;
    --lk-text: #1f2937;
    --lk-muted: #6b7280;
    --lk-radius: 14px;
    --lk-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .05);

    /* ----- Variabel shell ala SIM Klinik (sidebar + topbar) ----- */
    --primary: var(--lk-primary);
    --primary-dark: var(--lk-primary-dark);
    --sidebar: #0f2c4d;
    --sidebar-hover: #173d68;
    --sidebar-active: var(--lk-primary);
    --bg: #eef2f7;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e7ecf3;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
    --shadow-lg: 0 12px 28px rgba(16, 24, 40, .12);
}

* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

body {
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

/* ---------- Layout (shell ala SIM Klinik) ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 262px; color: #c4d2e3; position: fixed; top: 0; left: 0; bottom: 0;
    overflow-y: auto; background: var(--sidebar); display: flex; flex-direction: column;
    z-index: 60; transition: width .24s cubic-bezier(.4,0,.2,1), transform .24s ease;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 3px; }
.sidebar nav { flex: 1; padding: 8px 12px 16px; }

.sidebar .brand { padding: 20px 18px; color: #fff; white-space: nowrap; display: flex; gap: 13px; align-items: center; }
.sidebar .brand-ico { width: 42px; height: 42px; min-width: 42px; display: flex; align-items: center; justify-content: center; border-radius: 13px; background: rgba(255,255,255,.1); }
.sidebar .brand-ico img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }
.sidebar .brand-ico.has-logo { background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.sidebar .brand-text { font-size: 19px; font-weight: 700; line-height: 1.15; }
.sidebar .brand small { display: block; font-size: 11px; font-weight: 400; color: #8ea6c4; margin-top: 2px; }

.sidebar nav .label { font-size: 10.5px; text-transform: uppercase; color: #5f7da1; white-space: nowrap; letter-spacing: .08em; font-weight: 700; padding: 16px 13px 6px; }
.sidebar nav a { display: flex; align-items: center; gap: 13px; padding: 10px 13px; margin: 2px 0; border-radius: 11px; color: #c4d2e3; text-decoration: none; font-weight: 500; font-size: 14.5px; transition: background .15s, color .15s; }
.sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar nav a.active { color: #fff; font-weight: 600; background: var(--sidebar-active); box-shadow: 0 6px 16px rgba(219,39,119,.4); }
.sidebar nav a .ico { width: 24px; min-width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.sidebar nav a .ico i { font-size: 19px; line-height: 1; }
.sidebar nav a .txt { overflow: hidden; text-overflow: ellipsis; }

/* Grup menu dropdown (mis. Laporan) memakai <details>/<summary> */
.sidebar nav .nav-group { margin: 2px 0; }
.sidebar nav .nav-group > summary {
    display: flex; align-items: center; gap: 13px; padding: 10px 13px; border-radius: 11px;
    color: #c4d2e3; font-weight: 500; font-size: 14.5px; cursor: pointer; list-style: none;
    transition: background .15s, color .15s;
}
.sidebar nav .nav-group > summary::-webkit-details-marker { display: none; }
.sidebar nav .nav-group > summary:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar nav .nav-group > summary.active { color: #fff; }
.sidebar nav .nav-group > summary .ico { width: 24px; min-width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.sidebar nav .nav-group > summary .ico i { font-size: 19px; line-height: 1; }
.sidebar nav .nav-group > summary .txt { overflow: hidden; text-overflow: ellipsis; }
.sidebar nav .nav-group > summary .chev { margin-left: auto; font-size: 12px; transition: transform .2s; }
.sidebar nav .nav-group[open] > summary .chev { transform: rotate(180deg); }
.sidebar nav .subnav { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 8px 24px; padding-left: 11px; border-left: 1px solid rgba(255,255,255,.12); }
.sidebar nav .subnav a { gap: 10px; padding: 8px 12px; margin: 1px 0; font-size: 13.5px; color: #9fb3cc; border-radius: 9px; }
.sidebar nav .subnav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar nav .subnav a.active { color: #fff; font-weight: 600; background: rgba(219,39,119,.22); box-shadow: none; }
.sidebar nav .subnav a .dot { width: 6px; height: 6px; min-width: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.sidebar nav .subnav a:hover .dot,
.sidebar nav .subnav a.active .dot { opacity: 1; }

.sidebar-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.08); margin-top: auto; }
.sidebar-foot .logout-link { display: flex; align-items: center; gap: 13px; padding: 11px 13px; border-radius: 11px; color: #c4d2e3; text-decoration: none; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; }
.sidebar-foot .logout-link:hover { background: rgba(239,68,68,.16); color: #fff; }
.sidebar-foot .logout-link .ico { width: 24px; min-width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.sidebar-foot .logout-link .ico i { font-size: 19px; }

.main { flex: 1; min-width: 0; margin-left: 262px; display: flex; flex-direction: column; min-height: 100vh; transition: margin-left .24s cubic-bezier(.4,0,.2,1); }

.topbar { background: var(--card); min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; box-shadow: var(--shadow); position: sticky; top: 0; z-index: 10; }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.menu-toggle { background: #eef2f7; border: none; line-height: 1; cursor: pointer; width: 42px; height: 42px; color: #334155; border-radius: 11px; transition: background .15s, color .15s; display: flex; align-items: center; justify-content: center; }
.menu-toggle:hover { background: var(--primary); color: #fff; }
.menu-toggle i { font-size: 21px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.topbar-search { position: relative; margin-left: 6px; }
.topbar-search .ts-ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); display: flex; pointer-events: none; }
.topbar-search .ts-ico i { font-size: 16px; }
.topbar-search input { width: 240px; padding: 10px 14px 10px 40px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; background: var(--bg); color: var(--text); transition: .15s; }
.topbar-search input::placeholder { color: #94a3b8; }
.topbar-search input:focus { outline: none; width: 300px; background: var(--card); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(219,39,119,.12); }

.user-dropdown { position: relative; }
.user-chip { display: flex; align-items: center; gap: 11px; padding: 6px 14px 6px 6px; border-radius: 40px; background: #fff; border: 1px solid var(--border); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.user-chip:hover { border-color: #fbcfe8; box-shadow: 0 2px 10px rgba(219,39,119,.18); }
.user-chip .avatar { width: 38px; height: 38px; border-radius: 50%; font-size: 16px; font-weight: 700; color: #fff; flex: none; display: flex; align-items: center; justify-content: center; background: var(--primary); overflow: hidden; }
.user-chip .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-chip .user-meta { text-align: left; }
.user-chip .user-name { font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.user-chip .user-role { font-size: 12px; color: var(--muted); }
.user-chip .user-caret { display: flex; color: var(--muted); transition: transform .16s; }
.user-chip .user-caret i { font-size: 15px; }
.user-dropdown.open .user-chip .user-caret { transform: rotate(180deg); }
.user-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 200px; z-index: 200; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s; }
.user-dropdown.open .user-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; cursor: pointer; }
.user-menu a:hover { background: #f1f5f9; }
.user-menu a .ico { display: flex; }
.user-menu a .ico i { font-size: 17px; }
.user-menu a.danger { color: #dc2626; }
.user-menu a.danger:hover { background: #fef2f2; }
.user-menu-sep { height: 1px; background: var(--border); margin: 5px 6px; }

.content { padding: 24px; flex: 1; min-width: 0; }
.footer { padding: 16px 24px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Sidebar collapsed (icon-only) ---------- */
.layout.collapsed .sidebar { width: 82px; }
.layout.collapsed .main { margin-left: 82px; }
.layout.collapsed .sidebar .brand { justify-content: center; padding: 20px 0; }
.layout.collapsed .sidebar .brand-text { display: none; }
.layout.collapsed .sidebar nav { padding: 6px 0 16px; }
.layout.collapsed .sidebar nav .label { display: none; }
.layout.collapsed .sidebar nav a { justify-content: center; padding: 0; margin: 8px auto; width: 50px; height: 50px; border-radius: 14px; gap: 0; }
.layout.collapsed .sidebar nav a .txt { display: none; }
.layout.collapsed .sidebar nav a .ico { width: auto; min-width: 0; }
/* Grup dropdown saat mode ikon: tampil seperti ikon tunggal, sub-menu disembunyikan */
.layout.collapsed .sidebar nav .nav-group > summary { justify-content: center; padding: 0; margin: 8px auto; width: 50px; height: 50px; border-radius: 14px; gap: 0; }
.layout.collapsed .sidebar nav .nav-group > summary .txt,
.layout.collapsed .sidebar nav .nav-group > summary .chev { display: none; }
.layout.collapsed .sidebar nav .subnav { display: none; }
.layout.collapsed .sidebar-foot { padding: 10px 0; }
.layout.collapsed .sidebar-foot .logout-link { justify-content: center; padding: 0; margin: 0 auto; width: 50px; height: 50px; border-radius: 14px; gap: 0; }
.layout.collapsed .sidebar-foot .logout-link .txt { display: none; }

/* ---------- Cards ---------- */
.card {
    border: 1px solid var(--lk-border);
    border-radius: var(--lk-radius);
    box-shadow: var(--lk-shadow);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid var(--lk-border);
    font-weight: 600; padding: 16px 20px;
}

/* ---------- Stat cards ---------- */
.stat-card { display: flex; align-items: center; gap: 16px; padding: 20px; }
.stat-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(16, 24, 40, .03);
}
.stat-label {
    color: var(--lk-muted); font-size: .72rem; font-weight: 600;
    letter-spacing: .03em; text-transform: uppercase; margin-bottom: 3px;
}
.stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-value.stat-money { font-size: 1.2rem; }
.stat-sub { font-size: .75rem; color: var(--lk-muted); }
/* Angkat lembut kartu statistik saat hover (depth profesional) */
.card:has(> .stat-card) { transition: transform .16s ease, box-shadow .16s ease; }
.card:has(> .stat-card):hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ---------- Judul seksi dasbor (dengan aksen brand) ---------- */
.dash-section {
    display: flex; align-items: center; gap: 9px;
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--lk-muted); margin: 0 0 14px; padding-bottom: 9px;
    border-bottom: 1px solid var(--lk-border);
}
.dash-section::before {
    content: ""; width: 4px; height: 15px; border-radius: 3px; background: var(--lk-gradient);
}
.bg-soft-primary { background: var(--lk-primary-soft); color: var(--lk-primary); }
.bg-soft-success { background: #e7f6ed; color: #1a7f44; }
.bg-soft-warning { background: #fef3e2; color: #b45309; }
.bg-soft-info    { background: #e6f4fb; color: #0b6fa4; }
.bg-soft-dark    { background: #eef0f3; color: #334155; }

/* ---------- Tables ---------- */
.table { margin: 0; color: var(--lk-text); }
.table > thead th {
    background: #fafbfc;
    text-transform: uppercase; font-size: .72rem; letter-spacing: .04em;
    color: var(--lk-muted); font-weight: 600; border-bottom: 1px solid var(--lk-border);
    padding: 12px 16px;
}
.table > tbody td { padding: 13px 16px; border-color: #f1f3f7; vertical-align: middle; }
.table-hover > tbody > tr:hover > * { background: var(--lk-primary-soft); }
.table a { color: var(--lk-primary); text-decoration: none; font-weight: 600; }
.table a:hover { text-decoration: underline; }

/* Perataan: SEMUA rata kiri, kecuali kolom No. (pertama) & Aksi (.col-aksi) rata tengah. */
.table > thead th,
.table > tbody td { text-align: left !important; }
.table > thead th:first-child,
.table > tbody td:first-child { text-align: center !important; }
.table > thead th.col-aksi,
.table > tbody td.col-aksi { text-align: center !important; }

/* ---------- Buttons ---------- */
.btn { border-radius: 9px; font-weight: 500; }
.btn-primary { background: var(--lk-primary); border-color: var(--lk-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--lk-primary-dark); border-color: var(--lk-primary-dark); }
.btn-outline-primary { color: var(--lk-primary); border-color: #f6bcd8; }
.btn-outline-primary:hover { background: var(--lk-primary); border-color: var(--lk-primary); }

/* ---------- Badges ---------- */
.badge { font-weight: 600; padding: .4em .7em; border-radius: 7px; letter-spacing: .01em; }

/* ---------- Forms ---------- */
.form-control, .form-select {
    border-radius: 9px; border-color: #dfe3ea;
}
.form-control { padding: .55rem .8rem; }
/* Sisakan ruang kanan untuk ikon panah select agar tidak ketimpa teks. */
.form-select { padding: .55rem 2.2rem .55rem .8rem; background-position: right .75rem center; }
.form-select-sm { padding: .3rem 1.8rem .3rem .65rem; background-position: right .55rem center; }
.form-control:focus, .form-select:focus {
    border-color: var(--lk-primary);
    box-shadow: 0 0 0 .2rem rgba(219, 39, 119, .15);
}
.form-label { font-weight: 600; font-size: .85rem; color: #374151; margin-bottom: .35rem; }

/* ---------- Alerts ---------- */
.alert { border: none; border-radius: 11px; border-left: 4px solid; }
.alert-success { background: #e7f6ed; color: #14683a; border-left-color: #1a7f44; }
.alert-danger { background: #fdecec; color: #9b1c1c; border-left-color: #dc2626; }

/* ---------- Pagination ---------- */
.page-link { color: var(--lk-primary); border-radius: 8px !important; margin: 0 2px; border-color: var(--lk-border); }
.page-item.active .page-link { background: var(--lk-primary); border-color: var(--lk-primary); }

/* ---------- DataTables 2.x ---------- */
.dt-layout-row { align-items: center; margin-bottom: 12px; }
.dt-layout-row:last-child { margin-bottom: 0; margin-top: 14px; }

/* Label tetap teks inline biasa (jangan flex, agar "Tampil [..] data" menyatu). */
.dt-length label, .dt-search label {
    color: var(--lk-muted); font-size: .85rem; margin: 0; font-weight: 500;
    white-space: nowrap;
}
.dt-length select {
    width: auto; min-width: 4.4rem; display: inline-block; margin: 0 .45rem;
}
.dt-search input {
    width: auto; min-width: 200px; display: inline-block; margin-left: .45rem;
}

.dt-info { color: var(--lk-muted); font-size: .85rem; }
table.dataTable td .badge { vertical-align: middle; }

/* Tombol export (Excel/PDF/Print) — pakai warna solid Bootstrap (btn-success/danger/secondary) */
.dt-buttons { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.dt-buttons .dt-button { font-weight: 600; border-radius: 9px; }
.dt-buttons .dt-button:focus { box-shadow: none; }

/* Pagination DataTables (pakai .page-link bawaan Bootstrap5 integration) */
.dt-paging .pagination { margin: 0; }

/* ---------- Mobile responsive ---------- */
@media (max-width: 900px) {
    .topbar-search { display: none; }
}

@media (max-width: 768px) {
    /* Sidebar geser keluar layar, dibuka via tombol hamburger (.sidebar-open) */
    .sidebar { transform: translateX(-100%); box-shadow: none; }
    .layout.sidebar-open .sidebar { transform: translateX(0); box-shadow: 0 0 50px rgba(8,22,43,.5); }
    .main, .layout.collapsed .main { margin-left: 0; }
    .topbar { padding: 8px 14px; }
    .content { padding: 16px; }
    .user-chip { padding: 4px; }
    .user-chip .user-meta { display: none; }
}

@media (max-width: 991.98px) {
    /* Tabel: bisa di-scroll horizontal di hp tanpa harus ubah setiap view */
    .card-body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .dt-container { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-responsive, .card .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    /* Kurangi padding tabel di hp agar tidak terlalu sempit */
    .table > thead th, .table > tbody td { padding: 10px 10px; }
    /* Stat cards: 2 kolom di hp */
    .content .row .col-xl-3.col-sm-6 { flex: 0 0 50%; max-width: 50%; }
    /* Financial cards (Kas Masuk/Pengeluaran/Laba): 2 kolom di tablet */
    .content .row .col-sm-4 { flex: 0 0 50%; max-width: 50%; }
    /* DataTables: search & length full width, controls bisa wrap */
    .dt-search input { min-width: 120px; width: 100%; }
    .dt-layout-row { flex-wrap: wrap; gap: 6px; }
    /* Filter outlet: full width */
    .content form.d-flex { flex-wrap: wrap; }
    .content form.d-flex .form-select { min-width: 0 !important; width: 100%; }
}

@media (max-width: 575.98px) {
    .content { padding: 12px; }
    .stat-card { padding: 14px; gap: 12px; }
    .stat-icon { width: 44px; height: 44px; font-size: 1.2rem; }
    .stat-value { font-size: 1.2rem; }
    /* Stat cards: 1 kolom di layar sangat kecil */
    .content .row .col-xl-3.col-sm-6 { flex: 0 0 100%; max-width: 100%; }
    /* Financial cards: full width di HP kecil */
    .content .row .col-sm-4 { flex: 0 0 100%; max-width: 100%; }
    /* Tombol export DataTables: lebih kecil */
    .dt-buttons .dt-button { font-size: .78rem; padding: .28rem .55rem; }
}

/* ---------- Auth (login) — kartu dua panel ala "Welcome" (warna brand LaundryKu) ---------- */
.lk-auth {
    min-height: 100vh; display: grid; place-items: center; padding: 24px;
    background: radial-gradient(1200px 500px at 50% -10%, #7c3aed 0%, #831843 45%, #1e1b4b 100%);
}
.lk-auth-card {
    width: 100%; max-width: 880px; background: #fff;
    border-radius: 22px; overflow: hidden;
    box-shadow: 0 30px 70px rgba(30, 8, 45, .42);
    display: grid; grid-template-columns: .92fr 1.08fr;
}

/* Panel kiri — sambutan + bubble dekoratif (gradient brand "Langit Sore") */
.lk-auth-welcome {
    position: relative; overflow: hidden; color: #fff; padding: 54px 42px;
    background: var(--lk-gradient);
    display: flex; flex-direction: column; justify-content: center;
}
.lk-auth-welcome::before,
.lk-auth-welcome::after {
    content: ""; position: absolute; border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #f9a8d4, #db2777); opacity: .85;
}
.lk-auth-welcome::before { width: 220px; height: 220px; left: -46px; bottom: -34px; }
.lk-auth-welcome::after  { width: 124px; height: 124px; left: 128px; bottom: 26px; opacity: .7; }
.lk-aw-content { position: relative; z-index: 1; }
.lk-aw-logo-chip {
    width: 58px; height: 58px; border-radius: 15px; margin-bottom: 18px; padding: 6px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}
.lk-aw-logo-chip img { width: 100%; height: 100%; object-fit: contain; }
.lk-aw-title { font-weight: 800; font-size: 32px; letter-spacing: 1px; margin: 0 0 10px; }
.lk-aw-sub { font-weight: 700; font-size: 13px; letter-spacing: 2px; margin: 0 0 16px; text-transform: uppercase; }
.lk-aw-text { font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .85); max-width: 290px; }

/* Panel kanan — form */
.lk-auth-form { padding: 48px 46px; }
.lk-auth-form h3 { font-weight: 800; font-size: 30px; margin: 0 0 4px; color: var(--text); }
.lk-af-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 22px; }

.lk-field { position: relative; margin-bottom: 16px; }
.lk-field .lk-field-ico {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: #98a2b3; font-size: 16px;
}
.lk-field input {
    width: 100%; border: 1px solid transparent; background: #f4f0f5; border-radius: 10px;
    padding: 14px 64px 14px 44px; font-size: 14px; color: var(--text); transition: .15s;
}
.lk-field input::placeholder { color: #98a2b3; }
.lk-field input:focus {
    outline: none; background: #fff; border-color: var(--lk-primary);
    box-shadow: 0 0 0 4px rgba(219, 39, 119, .12);
}
.lk-field .lk-show {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--lk-primary); font-weight: 700;
    font-size: 11px; letter-spacing: .5px; cursor: pointer; padding: 0;
}
.lk-auth-row {
    display: flex; align-items: center; justify-content: space-between;
    margin: 4px 0 22px; font-size: 12.5px;
}
.lk-auth-row .form-check { margin: 0; min-height: 0; }
.lk-auth-row .form-check-label { color: var(--muted); }
.lk-auth-row .form-check-input:checked { background-color: var(--lk-primary); border-color: var(--lk-primary); }

.lk-btn-signin {
    width: 100%; border: none; border-radius: 10px; padding: 14px;
    background: var(--lk-gradient); color: #fff; font-weight: 700; font-size: 15px;
    box-shadow: 0 10px 24px rgba(219, 39, 119, .28); transition: .16s;
}
.lk-btn-signin:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.04); }
.lk-auth-note { text-align: center; color: var(--muted); font-size: 12px; margin: 20px 0 0; }

@media (max-width: 760px) {
    .lk-auth-card { grid-template-columns: 1fr; max-width: 420px; }
    .lk-auth-welcome { display: none; }
    .lk-auth-form { padding: 38px 30px; }
}

/* ---------- Warna khas per outlet (badge) ---------- */
.badge.outlet-c1 { background: #2563eb; color: #fff; }
.badge.outlet-c2 { background: #16a34a; color: #fff; }
.badge.outlet-c3 { background: #db2777; color: #fff; }
.badge.outlet-c4 { background: #ea580c; color: #fff; }
.badge.outlet-c5 { background: #7c3aed; color: #fff; }
.badge.outlet-c6 { background: #0891b2; color: #fff; }
.badge.outlet-c7 { background: #ca8a04; color: #fff; }
.badge.outlet-c8 { background: #475569; color: #fff; }

/* =====================================================================
   Modal "Tambah Data" — elegan & konsisten (gaya halaman Order Baru)
   ===================================================================== */
.btn-add {
    background: var(--lk-gradient); border: none; color: #fff; font-weight: 600;
    border-radius: 11px; padding: .5rem 1.1rem;
    box-shadow: 0 8px 20px rgba(219, 39, 119, .28); transition: .16s;
}
.btn-add:hover, .btn-add:focus {
    color: #fff; transform: translateY(-1px); filter: brightness(1.04);
    box-shadow: 0 10px 26px rgba(219, 39, 119, .36);
}
.btn-add:active { transform: translateY(0); }

.lk-modal .modal-content {
    border: none; border-radius: 20px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .22);
}
.lk-modal-head {
    display: flex; align-items: center; gap: 14px; padding: 20px 22px;
    background: var(--lk-gradient); color: #fff;
}
.lk-mh-icon {
    width: 46px; height: 46px; border-radius: 14px; flex: none;
    display: grid; place-items: center; font-size: 1.4rem;
    background: rgba(255, 255, 255, .18);
}
.lk-mh-txt { flex: 1; min-width: 0; }
.lk-mh-title { margin: 0; font-weight: 800; font-size: 1.12rem; line-height: 1.2; }
.lk-mh-sub { font-size: .82rem; opacity: .9; margin-top: 2px; }
.lk-mh-close {
    border: none; background: rgba(255, 255, 255, .16); color: #fff;
    width: 34px; height: 34px; border-radius: 10px; flex: none;
    display: grid; place-items: center; transition: .15s; font-size: .9rem;
}
.lk-mh-close:hover { background: rgba(255, 255, 255, .34); }

.lk-modal-body { padding: 22px 24px; }
.lk-modal-body .form-label { font-weight: 600; font-size: .82rem; color: var(--lk-text); margin-bottom: 5px; }
.lk-modal-body .form-control,
.lk-modal-body .form-select { border-radius: 11px; padding: .55rem .8rem; border-color: var(--lk-border); }
.lk-modal-body .form-control:focus,
.lk-modal-body .form-select:focus { border-color: var(--lk-primary); box-shadow: 0 0 0 .2rem rgba(219, 39, 119, .12); }
.lk-modal-body .card.bg-light { border-radius: 13px; }

.lk-modal-foot {
    border-top: 1px solid var(--lk-border); padding: 16px 24px; gap: 8px;
    background: #fafbfc;
}
.lk-modal-foot .btn { border-radius: 11px; font-weight: 600; }

/* =====================================================================
   Dropdown akun "premium" + halaman Profil
   ===================================================================== */
.user-menu { min-width: 250px; padding: 0 6px 6px; }
.um-head { display: flex; align-items: center; gap: 12px; padding: 14px 10px 13px; }
.um-avatar {
    width: 46px; height: 46px; border-radius: 14px; flex: none;
    display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 18px;
    background: var(--lk-gradient); box-shadow: 0 6px 16px rgba(219, 39, 119, .32);
}
.um-info { min-width: 0; }
.um-name { font-weight: 700; font-size: 14.5px; line-height: 1.25; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.um-mail { font-size: 12px; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.um-role-badge {
    display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase; color: var(--lk-primary);
    background: var(--lk-primary-soft); padding: 2px 10px; border-radius: 20px; border: 1px solid #f6bcd8;
}
.user-menu a { font-weight: 500; }
.user-menu a .ico {
    width: 30px; height: 30px; border-radius: 9px; flex: none;
    display: grid; place-items: center; background: #f1f5f9; color: var(--text); transition: .15s;
}
.user-menu a .ico i { font-size: 15px; }
.user-menu a:hover .ico { background: #e2e8f0; }
.user-menu a.danger .ico { background: #fef2f2; color: #dc2626; }

/* ---- Halaman Profil ---- */
.prof-hero {
    position: relative; border-radius: 20px; overflow: hidden; color: #fff;
    background: var(--lk-gradient); padding: 28px 28px 26px;
    box-shadow: 0 16px 40px rgba(219, 39, 119, .26); margin-bottom: 22px;
}
.prof-hero::after {
    content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px;
    background: rgba(255, 255, 255, .12); border-radius: 50%;
}
.prof-hero-row { display: flex; align-items: center; gap: 20px; position: relative; z-index: 1; flex-wrap: wrap; }
.prof-avatar {
    width: 86px; height: 86px; border-radius: 24px; flex: none; display: grid; place-items: center;
    font-size: 36px; font-weight: 800; color: #fff;
    background: rgba(255, 255, 255, .18); border: 2px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(4px);
}
.prof-name { font-size: 1.5rem; font-weight: 800; line-height: 1.15; margin: 0; }
.prof-sub { opacity: .92; font-size: .9rem; margin-top: 3px; }
.prof-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.prof-chip {
    display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600;
    background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .28);
    padding: 5px 12px; border-radius: 30px;
}
.prof-card-h { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .98rem; margin-bottom: 18px; }
.prof-card-h .ci {
    width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
    background: var(--lk-primary-soft); color: var(--lk-primary); font-size: 1.05rem;
}
.prof-form .form-label { font-weight: 600; font-size: .82rem; margin-bottom: 5px; }
.prof-form .form-control { border-radius: 11px; padding: .55rem .8rem; border-color: var(--lk-border); }
.prof-form .form-control:focus { border-color: var(--lk-primary); box-shadow: 0 0 0 .2rem rgba(219, 39, 119, .12); }
.prof-form .input-group-text { border-radius: 11px 0 0 11px; background: #fafbfc; border-color: var(--lk-border); color: var(--lk-muted); }
.prof-form .input-group .form-control { border-radius: 0 11px 11px 0; }

/* Filter cabang di Master Pegawai */
.emp-outlet-filter .input-group {
    width: auto; background: #fff; border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}
.emp-outlet-filter .input-group-text {
    background: var(--lk-primary-soft); border: 1px solid var(--lk-border);
    border-right: 0; color: var(--lk-primary); border-radius: 8px 0 0 8px;
}
.emp-outlet-filter .form-select {
    min-width: 190px; background-color: #fff; border-color: var(--lk-border);
    border-left: 0; border-radius: 0 8px 8px 0 !important; font-weight: 500; color: var(--lk-text);
}
.emp-outlet-filter .form-select:hover { border-color: #f6bcd8; }
.emp-outlet-filter .form-select:focus {
    border-color: var(--lk-primary); box-shadow: 0 0 0 .2rem rgba(219, 39, 119, .12);
}
