/* =====================================================================
   KasirKu - Custom Bootstrap 5 Theme (elegan & profesional)
   Warna utama dapat diubah dari menu Pengaturan > Tampilan
   ===================================================================== */
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans.ttf") format("truetype"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
    --app-primary: #4f46e5;
    --app-primary-rgb: 79, 70, 229;
    --app-primary-dark: color-mix(in srgb, var(--app-primary) 82%, #000);
    --app-primary-soft: color-mix(in srgb, var(--app-primary) 10%, #fff);
    --app-sidebar: #0f172a;
    --app-sidebar-2: #1e293b;
    --app-bg: #f1f5f9;
    --app-border: #e2e8f0;
    --app-text: #1e293b;
    --app-muted: #64748b;
    --app-radius: 14px;
    --app-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
    --sidebar-w: 260px;
    --topbar-h: 64px;

    --bs-primary: var(--app-primary);
    --bs-primary-rgb: var(--app-primary-rgb);
    --bs-link-color: var(--app-primary);
    --bs-link-color-rgb: var(--app-primary-rgb);
    --bs-link-hover-color: var(--app-primary-dark);
    --bs-body-font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--app-text);
    --bs-body-font-size: .9rem;
    --bs-border-color: var(--app-border);
    --bs-primary-bg-subtle: var(--app-primary-soft);
    --bs-primary-text-emphasis: var(--app-primary-dark);
    --bs-primary-border-subtle: color-mix(in srgb, var(--app-primary) 30%, #fff);
    --bs-focus-ring-color: rgba(var(--app-primary-rgb), .2);
    --bs-secondary-color: #64748b;
    --bs-success-bg-subtle: #dcfce7; --bs-success-text-emphasis: #14532d;
    --bs-danger-bg-subtle: #fee2e2; --bs-danger-text-emphasis: #7f1d1d;
    --bs-warning-bg-subtle: #fef3c7; --bs-warning-text-emphasis: #78350f;
    --bs-info-bg-subtle: #cffafe; --bs-info-text-emphasis: #164e63;
}

body { background: var(--app-bg); -webkit-font-smoothing: antialiased; letter-spacing: -.005em; }
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6, .h5, .h6 { color: #0f172a; font-weight: 700; letter-spacing: -.015em; }
.text-muted { color: var(--app-muted) !important; }
.fw-semibold { font-weight: 600 !important; }
.min-w-0 { min-width: 0; }
.text-primary { color: var(--app-primary) !important; }
.bg-primary { background-color: var(--app-primary) !important; }
.bg-primary-soft { background: var(--app-primary-soft) !important; }
.border-primary { border-color: var(--app-primary) !important; }
.text-bg-primary { background-color: var(--app-primary) !important; color: #fff !important; }
.badge { font-weight: 600; letter-spacing: .01em; padding: .38em .7em; }
.badge.text-bg-warning { color: #3b2400 !important; }

/* ---------- Buttons ---------- */
.btn { --bs-btn-font-weight: 600; --bs-btn-font-size: .875rem; border-radius: 10px; background-image: none !important; text-shadow: none !important; }
.btn-sm { border-radius: 8px; --bs-btn-font-size: .8rem; }
.btn-lg { border-radius: 12px; }
.btn-primary { --bs-btn-bg: var(--app-primary); --bs-btn-border-color: var(--app-primary); --bs-btn-hover-bg: var(--app-primary-dark); --bs-btn-hover-border-color: var(--app-primary-dark); --bs-btn-active-bg: var(--app-primary-dark); --bs-btn-active-border-color: var(--app-primary-dark); --bs-btn-disabled-bg: var(--app-primary); --bs-btn-disabled-border-color: var(--app-primary); --bs-btn-focus-shadow-rgb: var(--app-primary-rgb); box-shadow: 0 4px 12px rgba(var(--app-primary-rgb), .25); }
.btn-outline-primary { --bs-btn-color: var(--app-primary); --bs-btn-border-color: color-mix(in srgb, var(--app-primary) 45%, #fff); --bs-btn-hover-bg: var(--app-primary); --bs-btn-hover-border-color: var(--app-primary); --bs-btn-active-bg: var(--app-primary); --bs-btn-active-border-color: var(--app-primary); }
.btn-success { --bs-btn-bg: #16a34a; --bs-btn-border-color: #16a34a; --bs-btn-hover-bg: #15803d; --bs-btn-hover-border-color: #15803d; --bs-btn-active-bg: #166534; }
.btn-danger { --bs-btn-bg: #dc2626; --bs-btn-border-color: #dc2626; --bs-btn-hover-bg: #b91c1c; --bs-btn-hover-border-color: #b91c1c; --bs-btn-active-bg: #991b1b; }
.btn-warning { --bs-btn-color: #3b2400; --bs-btn-bg: #fbbf24; --bs-btn-border-color: #fbbf24; --bs-btn-hover-bg: #f59e0b; --bs-btn-hover-border-color: #f59e0b; --bs-btn-hover-color: #3b2400; }
.btn-info { --bs-btn-color: #fff; --bs-btn-bg: #0891b2; --bs-btn-border-color: #0891b2; --bs-btn-hover-bg: #0e7490; --bs-btn-hover-border-color: #0e7490; --bs-btn-hover-color: #fff; }
.btn-secondary { --bs-btn-color: #fff; --bs-btn-bg: #64748b; --bs-btn-border-color: #64748b; --bs-btn-hover-bg: #475569; --bs-btn-hover-border-color: #475569; --bs-btn-hover-color: #fff; }
.btn-dark { --bs-btn-bg: #0f172a; --bs-btn-border-color: #0f172a; }
.btn-light { --bs-btn-bg: #f1f5f9; --bs-btn-border-color: #e2e8f0; --bs-btn-hover-bg: #e2e8f0; --bs-btn-color: #334155; }
.btn-outline-secondary { --bs-btn-color: #475569; --bs-btn-border-color: #cbd5e1; --bs-btn-hover-bg: #f1f5f9; --bs-btn-hover-color: #0f172a; --bs-btn-hover-border-color: #94a3b8; }
.btn-outline-danger { --bs-btn-color: #dc2626; --bs-btn-border-color: #fca5a5; --bs-btn-hover-bg: #dc2626; --bs-btn-hover-border-color: #dc2626; }
.btn-outline-success { --bs-btn-color: #16a34a; --bs-btn-border-color: #86efac; --bs-btn-hover-bg: #16a34a; --bs-btn-hover-border-color: #16a34a; }
.btn-icon { width: 32px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn-soft-primary { background: var(--app-primary-soft); color: var(--app-primary); border: 0; }
.btn-soft-primary:hover { background: var(--app-primary); color: #fff; }
.btn-soft-danger { background: #fee2e2; color: #dc2626; border: 0; }
.btn-soft-danger:hover { background: #dc2626; color: #fff; }
.btn-soft-warning { background: #fef3c7; color: #b45309; border: 0; }
.btn-soft-warning:hover { background: #f59e0b; color: #fff; }
.btn-soft-info { background: #cffafe; color: #0e7490; border: 0; }
.btn-soft-info:hover { background: #0891b2; color: #fff; }
.btn-soft-success { background: #dcfce7; color: #15803d; border: 0; }
.btn-soft-success:hover { background: #16a34a; color: #fff; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-color: #d7dee8; border-radius: 10px; font-size: .875rem; padding: .5rem .8rem; }
.form-control-sm, .form-select-sm { border-radius: 8px; font-size: .8rem; }
.form-control-lg { border-radius: 12px; }
.form-control:focus, .form-select:focus { border-color: color-mix(in srgb, var(--app-primary) 55%, #fff); box-shadow: 0 0 0 .2rem rgba(var(--app-primary-rgb), .15); }
.form-check-input:checked { background-color: var(--app-primary); border-color: var(--app-primary); }
.form-check-input:focus { border-color: var(--app-primary); box-shadow: 0 0 0 .2rem rgba(var(--app-primary-rgb), .15); }
.form-label, .col-form-label { font-weight: 600; color: #334155; font-size: .84rem; }
.input-group-text { background: #f8fafc; border-color: #d7dee8; color: #64748b; border-radius: 10px; font-size: .875rem; }
.form-text { font-size: .78rem; }
.form-switch .form-check-input { width: 2.4em; height: 1.25em; }

/* ---------- Cards ---------- */
.card { border: 1px solid rgba(226, 232, 240, .8); border-radius: var(--app-radius); box-shadow: var(--app-shadow); --bs-card-cap-bg: transparent; }
.card-header { border-bottom: 1px solid var(--app-border); padding: 1rem 1.25rem; font-weight: 700; }
.card-body { padding: 1.25rem; }
.card-title { font-weight: 700; color: #0f172a; }
.grid-margin { margin-bottom: 1.25rem; }

/* ---------- Tables ---------- */
.table { --bs-table-hover-bg: #f8fafc; font-size: .855rem; margin-bottom: 0; vertical-align: middle; }
.table > thead th { background: #f8fafc; color: #64748b; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; border-bottom: 1px solid var(--app-border); white-space: nowrap; padding: .75rem .75rem; }
.table > tbody td { padding: .65rem .75rem; border-color: #eef2f7; }
.table-sm > tbody td, .table-sm > thead th { padding: .45rem .55rem; }
.table-responsive { border-radius: 10px; }
.lt-wrap { position: relative; border: 1px solid var(--app-border); }
.lt-wrap.lt-busy::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 50 50'%3E%3Ccircle cx='25' cy='25' r='20' fill='none' stroke='%234f46e5' stroke-width='5' stroke-dasharray='90 40'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='.8s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center/32px no-repeat; }
.lt-search { width: 240px; }
.pagination { --bs-pagination-active-bg: var(--app-primary); --bs-pagination-active-border-color: var(--app-primary); --bs-pagination-color: #475569; --bs-pagination-hover-color: var(--app-primary); --bs-pagination-focus-color: var(--app-primary); --bs-pagination-border-radius: 8px; }
.pagination .page-link { margin: 0 2px; border-radius: 8px !important; min-width: 32px; text-align: center; }

/* ---------- Nav tabs (garis) ---------- */
.nav-tabs-line { border-bottom: 1px solid var(--app-border); gap: .25rem; }
.nav-tabs-line .nav-link { border: 0; border-bottom: 2px solid transparent; color: #64748b; font-weight: 600; padding: .65rem 1rem; background: none; border-radius: 0; }
.nav-tabs-line .nav-link:hover { color: var(--app-primary); }
.nav-tabs-line .nav-link.active { color: var(--app-primary); border-bottom-color: var(--app-primary); background: none; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--app-primary); --bs-nav-pills-border-radius: 10px; }
.nav-pills .nav-link { color: #475569; font-weight: 600; }
.dropdown-menu { --bs-dropdown-link-active-bg: var(--app-primary); border: 1px solid var(--app-border); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); font-size: .875rem; padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .45rem .75rem; }
.list-group { --bs-list-group-active-bg: var(--app-primary); --bs-list-group-active-border-color: var(--app-primary); }
.progress { --bs-progress-bar-bg: var(--app-primary); border-radius: 99px; }
.modal-content { border: 0; border-radius: 16px; box-shadow: 0 20px 60px rgba(15, 23, 42, .25); }
.modal-header { border-bottom: 1px solid var(--app-border); padding: 1rem 1.25rem; }
.modal-footer { border-top: 1px solid var(--app-border); }
.alert { border-radius: 12px; border: 0; }
.breadcrumb { --bs-breadcrumb-divider-color: #94a3b8; font-size: .8rem; margin-bottom: .25rem; }
.breadcrumb a { color: #64748b; }
.breadcrumb-item.active, .breadcrumb-item.active a { color: var(--app-primary); font-weight: 600; }

/* =====================================================================
   LAYOUT : sidebar + topbar
   ===================================================================== */
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--app-sidebar); color: #cbd5e1; z-index: 1040; display: flex; flex-direction: column; transition: width .2s ease, transform .2s ease; }
.app-brand { height: var(--topbar-h); display: flex; align-items: center; gap: .7rem; padding: 0 1.15rem; border-bottom: 1px solid rgba(255, 255, 255, .06); flex-shrink: 0; }
.app-brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: contain; background: #fff; padding: 3px; }
.app-brand .brand-text { line-height: 1.15; overflow: hidden; }
.app-brand .brand-name { color: #fff; font-weight: 700; font-size: 1rem; white-space: nowrap; }
.app-brand .brand-sub { color: #94a3b8; font-size: .72rem; white-space: nowrap; }
.sidebar-menu { flex: 1; overflow-y: auto; padding: .75rem .65rem 1.5rem; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.menu-title { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: #64748b; font-weight: 700; padding: 1rem .75rem .4rem; white-space: nowrap; }
.menu-link { display: flex; align-items: center; gap: .75rem; color: #cbd5e1; padding: .58rem .8rem; border-radius: 10px; font-weight: 500; font-size: .875rem; margin-bottom: 2px; white-space: nowrap; transition: background .15s, color .15s; }
.menu-link i { width: 20px; text-align: center; font-size: .95rem; color: #94a3b8; transition: color .15s; }
.menu-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.menu-link:hover i { color: #fff; }
.menu-link.active { background: var(--app-primary); color: #fff; box-shadow: 0 6px 16px rgba(var(--app-primary-rgb), .35); }
.menu-link.active i { color: #fff; }
.menu-link .menu-badge { margin-left: auto; font-size: .65rem; }
.sidebar-foot { padding: .9rem 1rem; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .75rem; color: #64748b; }
.app-main { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin .2s ease; }
.app-topbar { position: sticky; top: 0; height: var(--topbar-h); background: rgba(255, 255, 255, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--app-border); display: flex; align-items: center; gap: .75rem; padding: 0 1.25rem; z-index: 1030; }
.app-content { padding: 1.4rem 1.5rem; flex: 1; }
.app-footer { padding: .9rem 1.5rem; font-size: .78rem; color: #94a3b8; border-top: 1px solid var(--app-border); background: #fff; }
.topbar-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--app-border); background: #fff; color: #475569; display: inline-flex; align-items: center; justify-content: center; position: relative; }
.topbar-btn:hover { background: #f8fafc; color: var(--app-primary); }
.topbar-btn .badge { position: absolute; top: -5px; right: -5px; font-size: .62rem; padding: .25em .45em; }
.topbar-chip { display: inline-flex; align-items: center; gap: .45rem; background: #f8fafc; border: 1px solid var(--app-border); border-radius: 10px; padding: .4rem .7rem; font-size: .8rem; color: #334155; white-space: nowrap; }
.topbar-chip i { color: var(--app-primary); }
.user-chip { display: flex; align-items: center; gap: .6rem; padding: .25rem .5rem .25rem .25rem; border-radius: 12px; border: 1px solid transparent; }
.user-chip:hover { background: #f8fafc; border-color: var(--app-border); }
.user-chip img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.user-chip .u-name { font-weight: 700; font-size: .85rem; color: #0f172a; line-height: 1.1; }
.user-chip .u-role { font-size: .72rem; color: #64748b; }
.notif-menu { width: 360px; max-width: calc(100vw - 20px); padding: 0; overflow: hidden; }
.notif-menu .notif-head { padding: .8rem 1rem; border-bottom: 1px solid var(--app-border); display: flex; justify-content: space-between; align-items: center; }
#notifList { max-height: 380px; overflow-y: auto; padding: .35rem; }
.notif-item { display: flex !important; gap: .7rem; white-space: normal; align-items: flex-start; }
.notif-item.unread { background: var(--app-primary-soft); }
.notif-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--app-primary-soft); color: var(--app-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.page-head h4 { margin: 0; font-size: 1.35rem; }

body.sidebar-collapsed { --sidebar-w: 76px; }
body.sidebar-collapsed .brand-text, body.sidebar-collapsed .menu-title, body.sidebar-collapsed .menu-link span, body.sidebar-collapsed .sidebar-foot, body.sidebar-collapsed .menu-badge { display: none; }
body.sidebar-collapsed .menu-link { justify-content: center; }
body.sidebar-collapsed .app-brand { justify-content: center; padding: 0; }
.sidebar-backdrop { display: none; }
@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); --sidebar-w: 260px; width: 260px; }
    .app-main { margin-left: 0; }
    body.sidebar-open .app-sidebar { transform: none; }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 1035; }
    .app-content { padding: 1rem; }
    .lt-search { width: 100%; }
}

/* ---------- KPI / stat ---------- */
.stat-card { position: relative; overflow: hidden; }
.stat-card .stat-ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.stat-card .stat-label { font-size: .76rem; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat-card .stat-value { font-size: 1.45rem; font-weight: 800; color: #0f172a; letter-spacing: -.02em; line-height: 1.2; }
.stat-card .stat-sub { font-size: .76rem; color: #64748b; }
.ic-primary { background: var(--app-primary-soft); color: var(--app-primary); }
.ic-success { background: #dcfce7; color: #16a34a; }
.ic-danger { background: #fee2e2; color: #dc2626; }
.ic-warning { background: #fef3c7; color: #d97706; }
.ic-info { background: #cffafe; color: #0891b2; }
.ic-purple { background: #ede9fe; color: #7c3aed; }
.ic-pink { background: #fce7f3; color: #db2777; }
.ic-slate { background: #e2e8f0; color: #334155; }
.chart-box { position: relative; height: 290px; }
.chart-box.sm { height: 230px; }
.chart-box canvas { display: block; }
.hero-card { background: linear-gradient(135deg, var(--app-primary), color-mix(in srgb, var(--app-primary) 55%, #0f172a)); color: #fff; border: 0; }
.hero-card h4, .hero-card h5 { color: #fff; }
.rank-num { width: 26px; height: 26px; border-radius: 8px; background: #f1f5f9; color: #475569; font-weight: 700; font-size: .75rem; display: inline-flex; align-items: center; justify-content: center; }
.rank-num.top { background: var(--app-primary); color: #fff; }

/* ---------- Filter chips (produk) ---------- */
.filter-chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--app-primary-soft); color: var(--app-primary); border-radius: 99px; padding: .3rem .4rem .3rem .75rem; font-size: .78rem; font-weight: 600; }
.filter-chip button { border: 0; background: rgba(var(--app-primary-rgb), .15); color: var(--app-primary); width: 20px; height: 20px; border-radius: 50%; line-height: 1; font-size: .8rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; }
.check-card { border: 1px solid var(--app-border); border-radius: 10px; padding: .6rem .8rem; display: flex; align-items: center; gap: .6rem; cursor: pointer; background: #fff; }
.check-card:hover { border-color: var(--app-primary); }
.img-thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; border: 1px solid var(--app-border); background: #f8fafc; }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: #94a3b8; }
.empty-state i { font-size: 2.5rem; margin-bottom: .75rem; opacity: .6; }
.kbd { display: inline-block; padding: .1rem .4rem; border-radius: 6px; background: #0f172a; color: #fff; font-size: .7rem; font-weight: 700; font-family: monospace; min-width: 26px; text-align: center; }

/* =====================================================================
   LOGIN
   ===================================================================== */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { position: relative; background: linear-gradient(140deg, var(--app-primary), color-mix(in srgb, var(--app-primary) 40%, #0f172a)); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background-size: cover; background-position: center; }
.auth-side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(15, 23, 42, .2), rgba(15, 23, 42, .65)); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side h1 { color: #fff; font-size: 2.3rem; font-weight: 800; line-height: 1.15; }
.auth-feature { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.auth-feature i { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 2rem; background: #fff; }
.auth-box { width: 100%; max-width: 400px; }
.auth-logo { width: 60px; height: 60px; border-radius: 16px; object-fit: contain; box-shadow: var(--app-shadow); background: #fff; padding: 6px; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* =====================================================================
   SwalLite (SweetAlert) & Toast
   ===================================================================== */
body.swl-open { overflow: hidden; }
.swl-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; transition: opacity .18s; }
.swl-overlay.show { opacity: 1; }
.swl-popup { background: #fff; border-radius: 18px; width: 100%; max-width: 420px; padding: 1.75rem 1.5rem 1.4rem; text-align: center; box-shadow: 0 25px 70px rgba(15, 23, 42, .3); transform: scale(.94); transition: transform .18s; position: relative; overflow: hidden; }
.swl-overlay.show .swl-popup { transform: none; }
.swl-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; }
.swl-title { font-size: 1.2rem; font-weight: 800; margin-bottom: .4rem; color: #0f172a; }
.swl-html { color: #475569; font-size: .92rem; }
.swl-input-wrap { margin-top: 1rem; text-align: left; }
.swl-validation { margin-top: .75rem; background: #fef2f2; color: #b91c1c; padding: .5rem .75rem; border-radius: 8px; font-size: .82rem; text-align: left; }
.swl-actions { display: flex; justify-content: center; gap: .5rem; margin-top: 1.4rem; flex-wrap: wrap; }
.swl-actions .btn { min-width: 110px; }
.swl-bar { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--app-primary); animation: swlbar linear forwards; }
.swl-footer { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--app-border); font-size: .8rem; color: #64748b; }
@keyframes swlbar { from { width: 100%; } to { width: 0; } }
.swl-toasts { position: fixed; z-index: 2100; display: flex; flex-direction: column; gap: .5rem; padding: 1rem; pointer-events: none; }
.swl-top-end { top: 0; right: 0; } .swl-top-start { top: 0; left: 0; } .swl-bottom-end { bottom: 0; right: 0; } .swl-top { top: 0; left: 50%; transform: translateX(-50%); }
.swl-toast { pointer-events: auto; position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: .7rem; min-width: 280px; max-width: 380px; background: #fff; border-radius: 12px; padding: .8rem .9rem; box-shadow: 0 10px 35px rgba(15, 23, 42, .18); border: 1px solid var(--app-border); transform: translateX(30px); opacity: 0; transition: all .22s; }
.swl-toast.show { transform: none; opacity: 1; }
.swl-toast > i { font-size: 1.2rem; margin-top: 1px; }
.swl-toast-body { flex: 1; min-width: 0; }
.swl-toast-title { font-weight: 700; font-size: .86rem; color: #0f172a; }
.swl-toast-text { font-size: .8rem; color: #64748b; }
.swl-toast-x { border: 0; background: none; color: #94a3b8; font-size: 1.1rem; line-height: 1; padding: 0 .1rem; }
.swl-toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; animation: swlbar linear forwards; opacity: .7; }

/* =====================================================================
   Select2Lite
   ===================================================================== */
.s2l-hidden-accessible { border: 0 !important; clip: rect(0 0 0 0) !important; height: 1px !important; margin: -1px !important; overflow: hidden !important; padding: 0 !important; position: absolute !important; width: 1px !important; }
.s2l { display: inline-block; position: relative; vertical-align: middle; }
.s2l-selection { display: flex; align-items: center; cursor: pointer; min-height: 38px; user-select: none; padding-right: 2.25rem; }
.s2l-selection.form-select-lg { min-height: 48px; }
.s2l-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s2l-placeholder { color: #94a3b8; }
.s2l-clear { position: absolute; right: 2.1rem; color: #94a3b8; font-size: 1.1rem; padding: 0 .3rem; }
.s2l-open .s2l-selection { border-color: color-mix(in srgb, var(--app-primary) 55%, #fff); box-shadow: 0 0 0 .2rem rgba(var(--app-primary-rgb), .15); }
.s2l-dropdown { z-index: 2050; background: #fff; border: 1px solid var(--app-border); border-radius: 12px; box-shadow: 0 14px 40px rgba(15, 23, 42, .16); overflow: hidden; }
.s2l-search { padding: .5rem; border-bottom: 1px solid var(--app-border); }
.s2l-results { list-style: none; margin: 0; padding: .35rem; max-height: 300px; overflow-y: auto; }
.s2l-option { padding: .5rem .65rem; border-radius: 8px; cursor: pointer; font-size: .86rem; }
.s2l-option.active { background: var(--app-primary); color: #fff; }
.s2l-option.active .text-muted, .s2l-option.active small { color: rgba(255, 255, 255, .8) !important; }
.s2l-option.disabled { opacity: .5; cursor: not-allowed; }
.s2l-message { padding: .6rem; color: #64748b; font-size: .84rem; text-align: center; }

/* =====================================================================
   Spotlight tour
   ===================================================================== */
.spl-blocker { position: fixed; inset: 0; z-index: 2200; }
.spl-hole { position: fixed; z-index: 2201; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, .62), 0 0 0 3px rgba(255, 255, 255, .9); transition: all .3s ease; pointer-events: none; }
.spl-pop { position: fixed; z-index: 2202; background: #fff; border-radius: 16px; padding: 1.1rem 1.2rem 1rem; box-shadow: 0 25px 60px rgba(15, 23, 42, .35); transition: top .3s, left .3s; }
.spl-step { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--app-primary); font-weight: 700; margin-bottom: .35rem; }
.spl-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--app-primary-soft); color: var(--app-primary); display: flex; align-items: center; justify-content: center; margin-bottom: .6rem; }
.spl-title { font-weight: 800; margin-bottom: .3rem; }
.spl-text { font-size: .86rem; color: #475569; }
.spl-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; gap: .5rem; }
.spl-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.spl-dots span { width: 6px; height: 6px; border-radius: 99px; background: #cbd5e1; }
.spl-dots span.on { width: 16px; background: var(--app-primary); }
.spl-btns { display: flex; gap: .3rem; flex-shrink: 0; }

/* =====================================================================
   POS / KASIR
   ===================================================================== */
body.pos-mode .app-content { padding: 1rem; }
.pos-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 1rem; align-items: start; }
@media (max-width: 1199.98px) { .pos-grid { grid-template-columns: 1fr; } }
.pos-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.pos-inv { font-family: ui-monospace, monospace; font-weight: 800; font-size: 1.05rem; color: #0f172a; }
.pos-clock { text-align: right; line-height: 1.1; }
.pos-clock .live-clock { font-size: 1.6rem; font-weight: 800; color: var(--app-primary); font-variant-numeric: tabular-nums; }
.pos-scan .form-control { font-size: 1.05rem; height: 48px; }
.pos-total { background: #0f172a; color: #fff; border-radius: 16px; padding: 1.1rem 1.25rem; }
.pos-total .lbl { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; font-weight: 700; }
.pos-total .val { font-size: 2.2rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pos-sum-row { display: flex; justify-content: space-between; font-size: .88rem; padding: .28rem 0; }
.pos-sum-row.disc { color: #16a34a; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: .4rem; }
.pay-methods input { display: none; }
.pay-methods label { border: 1.5px solid var(--app-border); border-radius: 10px; padding: .5rem .25rem; text-align: center; cursor: pointer; font-size: .78rem; font-weight: 700; color: #475569; background: #fff; }
.pay-methods label i { display: block; font-size: 1.1rem; margin-bottom: .2rem; }
.pay-methods input:checked + label { border-color: var(--app-primary); background: var(--app-primary-soft); color: var(--app-primary); }
.quick-cash { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.quick-cash .btn { font-size: .75rem; padding: .35rem .2rem; }
.cart-table td { vertical-align: middle; }
.cart-table .qty-input { width: 74px; text-align: center; }
.member-box { border: 1.5px dashed #cbd5e1; border-radius: 12px; padding: .7rem .8rem; }
.member-box.active { border-style: solid; border-color: #16a34a; background: #f0fdf4; }
.shortcut-bar { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .76rem; color: #64748b; }
.change-box { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; border-radius: 12px; padding: .6rem .9rem; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 1.15rem; }
.change-box.minus { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }

/* ---------- Cetak ---------- */
.kop-surat { display: flex; align-items: center; gap: 1rem; border-bottom: 3px double #0f172a; padding-bottom: .75rem; margin-bottom: 1rem; }
.kop-surat img { height: 70px; }
.kop-surat .kop-nama { font-size: 1.35rem; font-weight: 800; text-transform: uppercase; }
@media print {
    .app-sidebar, .app-topbar, .app-footer, .no-print, .lt-toolbar, .lt-pager, .btn { display: none !important; }
    .app-main { margin: 0 !important; }
    .app-content { padding: 0 !important; }
    .card { box-shadow: none !important; border: 0 !important; }
    body { background: #fff !important; }
    .print-only { display: block !important; }
}
.print-only { display: none; }
