/* ============================================================
   Toko Lily Sembako — Professional POS Design System
   ============================================================ */

:root {
    --pos-primary: #059669;
    --pos-primary-dark: #047857;
    --pos-primary-light: #d1fae5;
    --pos-sidebar: #0f172a;
    --pos-sidebar-hover: #1e293b;
    --pos-sidebar-active: #059669;
    --pos-bg: #f1f5f9;
    --pos-surface: #ffffff;
    --pos-text: #0f172a;
    --pos-text-muted: #64748b;
    --pos-border: #e2e8f0;
    --pos-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
    --pos-shadow-lg: 0 4px 24px rgba(15, 23, 42, 0.08);
    --pos-radius: 12px;
    --pos-radius-lg: 16px;
    --pos-sidebar-width: 260px;
    --pos-font: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ---- Base ---- */
body {
    margin: 0;
    background: var(--pos-bg);
    font-family: var(--pos-font);
    color: var(--pos-text);
    -webkit-font-smoothing: antialiased;
}

/* ---- Sidebar ---- */
.pos-sidebar {
    width: var(--pos-sidebar-width);
    height: 100vh;
    background: var(--pos-sidebar);
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
}

.pos-sidebar-brand {
    padding: 24px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pos-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.pos-brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--pos-primary), #34d399);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.pos-brand-text {
    line-height: 1.2;
}

.pos-brand-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.pos-brand-tagline {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

.pos-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 5px 12px;
    background: rgba(5, 150, 105, 0.15);
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #6ee7b7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pos-sidebar-nav {
    flex: 1;
    padding: 16px 12px;
}

.pos-nav-section {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 8px 12px 6px;
    margin-top: 8px;
}

.pos-nav-section:first-child {
    margin-top: 0;
}

.pos-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s ease;
}

.pos-nav-link i {
    font-size: 17px;
    width: 20px;
    text-align: center;
    opacity: 0.85;
}

.pos-nav-link:hover {
    background: var(--pos-sidebar-hover);
    color: white;
}

.pos-nav-link.active {
    background: var(--pos-sidebar-active);
    color: white;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

.pos-nav-link.active i {
    opacity: 1;
}

.pos-sidebar-footer {
    padding: 16px 12px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pos-nav-link.logout-link {
    color: #fca5a5;
}

.pos-nav-link.logout-link:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fecaca;
}

.pos-nav-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ---- Main Content ---- */
.pos-main {
    margin-left: var(--pos-sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pos-topbar {
    background: var(--pos-surface);
    border-bottom: 1px solid var(--pos-border);
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.pos-page-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--pos-text);
}

.pos-page-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    color: var(--pos-text-muted);
}

.pos-topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pos-datetime {
    text-align: right;
    font-size: 12px;
    color: var(--pos-text-muted);
    line-height: 1.4;
}

.pos-datetime strong {
    display: block;
    font-size: 13px;
    color: var(--pos-text);
    font-weight: 600;
}

.pos-notif-dropdown {
    position: relative;
}

.pos-notif-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: 1px solid var(--pos-border);
    border-radius: 50%;
    background: var(--pos-bg);
    color: var(--pos-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s;
}

.pos-notif-btn:hover {
    background: var(--pos-surface);
}

.pos-notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pos-notif-menu {
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    padding: 0;
    border: 1px solid var(--pos-border);
    box-shadow: var(--pos-shadow-lg, 0 8px 24px rgba(0,0,0,.12));
}

.pos-notif-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pos-border);
    background: var(--pos-bg);
}

.pos-notif-menu-footer {
    padding: 10px 16px;
    text-align: center;
    border-top: 1px solid var(--pos-border);
    font-size: 13px;
}

.pos-notif-menu-footer a {
    color: var(--pos-primary);
    text-decoration: none;
    font-weight: 500;
}

.pos-notif-menu-footer a:hover {
    text-decoration: underline;
}

.pos-notif-item {
    white-space: normal !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--pos-border);
}

.pos-notif-item.unread {
    background: #f0fdf4;
}

.pos-notif-item-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.pos-notif-item-text {
    font-size: 12px;
    color: var(--pos-text-muted);
    line-height: 1.4;
}

.pos-notif-item-time {
    font-size: 11px;
    color: var(--pos-text-muted);
    margin-top: 4px;
}

.pos-user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    background: var(--pos-bg);
    border-radius: 30px;
    border: 1px solid var(--pos-border);
}

.pos-user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--pos-primary), #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    font-weight: 700;
}

.pos-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--pos-text);
}

.pos-content {
    padding: 24px 28px 32px;
    flex: 1;
}

/* ---- Cards ---- */
.card {
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius-lg);
    box-shadow: var(--pos-shadow);
    background: var(--pos-surface);
    overflow: hidden;
}

.card-header {
    background: var(--pos-surface);
    border-bottom: 1px solid var(--pos-border);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 20px;
    color: var(--pos-text);
}

.card-body {
    padding: 20px;
}

/* ---- Stat Cards ---- */
.pos-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.pos-stat-card {
    background: var(--pos-surface);
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius-lg);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: var(--pos-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pos-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--pos-shadow-lg);
}

.pos-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.pos-stat-icon.green { background: #d1fae5; color: #059669; }
.pos-stat-icon.blue { background: #dbeafe; color: #2563eb; }
.pos-stat-icon.amber { background: #fef3c7; color: #d97706; }
.pos-stat-icon.red { background: #fee2e2; color: #dc2626; }
.pos-stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.pos-stat-icon.teal { background: #ccfbf1; color: #0d9488; }

.pos-stat-info h6 {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--pos-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pos-stat-info .value {
    font-size: 26px;
    font-weight: 800;
    color: var(--pos-text);
    line-height: 1.1;
}

.pos-stat-info .value-sm {
    font-size: 18px;
}

/* ---- Store Banner (Dashboard) ---- */
.pos-store-banner {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: var(--pos-radius-lg);
    overflow: hidden;
    box-shadow: var(--pos-shadow);
    border: 1px solid var(--pos-border);
}

.pos-store-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.pos-store-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.88) 0%,
        rgba(15, 23, 42, 0.65) 45%,
        rgba(15, 23, 42, 0.15) 100%
    );
    display: flex;
    align-items: center;
    padding: 0 32px;
}

.pos-store-banner-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pos-store-banner-main {
    flex: 1;
    min-width: 0;
}

.pos-store-banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: rgba(5, 150, 105, 0.85);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.pos-store-banner-main h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.2;
}

.pos-store-banner-main p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin: 0;
    max-width: 480px;
}

.pos-store-banner-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.pos-store-banner-contact span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.pos-store-banner-contact i {
    color: #6ee7b7;
}

@media (max-width: 768px) {
    .pos-store-banner {
        height: 180px;
    }

    .pos-store-banner-overlay {
        padding: 0 20px;
        background: linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.92) 0%,
            rgba(15, 23, 42, 0.75) 100%
        );
    }

    .pos-store-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .pos-store-banner-main h2 {
        font-size: 22px;
    }

    .pos-store-banner-main p {
        font-size: 12px;
        display: none;
    }

    .pos-store-banner-contact {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 6px;
    }

    .pos-store-banner-contact span {
        font-size: 11px;
        padding: 4px 10px;
    }
}

/* ---- Content Panel ---- */
.pos-panel {
    background: var(--pos-surface);
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius-lg);
    box-shadow: var(--pos-shadow);
    margin-bottom: 20px;
}

.pos-panel-header {
    padding: 14px 20px;
    border-bottom: 1px solid var(--pos-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pos-panel-header h5 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pos-panel-header h5 i {
    color: var(--pos-primary);
}

.pos-panel-body {
    padding: 20px;
}

.pos-panel-body.p-0 {
    padding: 0;
}

/* ---- Tables ---- */
.table {
    margin-bottom: 0;
    font-size: 14px;
}

.table th {
    background: #f8fafc;
    color: var(--pos-text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-color: var(--pos-border);
    padding: 10px 14px;
    white-space: nowrap;
}

.table td {
    border-color: var(--pos-border);
    padding: 12px 14px;
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background: #f8fafc;
}

.table-bordered {
    border-color: var(--pos-border);
}

/* ---- Buttons ---- */
.btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    transition: all 0.15s ease;
}

.btn-primary {
    background: var(--pos-primary);
    border-color: var(--pos-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--pos-primary-dark);
    border-color: var(--pos-primary-dark);
}

.btn-success {
    background: #16a34a;
    border-color: #16a34a;
}

.btn-success:hover {
    background: #15803d;
    border-color: #15803d;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-pos-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---- Forms ---- */
.form-control,
.form-select {
    border-radius: 10px;
    border-color: var(--pos-border);
    font-size: 14px;
    padding: 9px 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--pos-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.form-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--pos-text);
    margin-bottom: 6px;
}

/* ---- Alerts ---- */
.alert {
    border-radius: var(--pos-radius);
    border: none;
    font-size: 14px;
    font-weight: 500;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
}

/* ---- Badges ---- */
.badge {
    font-weight: 600;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
}

/* ---- Page Actions Bar ---- */
.pos-page-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.pos-produk-search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 480px;
}

.pos-search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    background: var(--pos-surface);
    border: 1px solid var(--pos-border);
    border-radius: 0 0 10px 10px;
    box-shadow: var(--pos-shadow);
    max-height: 260px;
    overflow-y: auto;
}

.pos-search-suggestions.show {
    display: block;
}

.pos-search-suggestion-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    background: none;
    font-size: 14px;
    color: var(--pos-text);
    cursor: pointer;
    border-bottom: 1px solid var(--pos-border);
}

.pos-search-suggestion-item:hover,
.pos-search-suggestion-item:focus {
    background: #f0fdf4;
    outline: none;
}

.pos-table-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
}

.pos-table-actions form {
    display: inline-flex;
    margin: 0;
}

.pos-table-actions .btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pos-input-compact {
    max-width: 220px;
    min-width: 160px;
}

/* ---- Tom Select ---- */
.ts-wrapper.single .ts-control {
    border-radius: 10px !important;
    min-height: 42px !important;
    border: 1px solid var(--pos-border) !important;
    box-shadow: none !important;
    padding: 6px 12px !important;
}

.ts-dropdown {
    border-radius: 10px !important;
    border: 1px solid var(--pos-border) !important;
    box-shadow: var(--pos-shadow-lg) !important;
}

.ts-control input {
    font-size: 14px !important;
}

/* ============================================================
   KASIR POS Layout
   ============================================================ */
.pos-kasir-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
}

.pos-kasir-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pos-scan-box {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: var(--pos-radius-lg);
    padding: 20px 24px;
    color: white;
}

.pos-scan-box label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
}

.pos-scan-box input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 10px;
    width: 100%;
}

.pos-scan-box input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.pos-scan-box input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--pos-primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.3);
    outline: none;
    color: white;
}

.pos-product-add {
    background: var(--pos-surface);
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius-lg);
    padding: 20px;
    box-shadow: var(--pos-shadow);
}

.pos-cart-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--pos-text-muted);
}

.pos-cart-empty i {
    font-size: 48px;
    opacity: 0.3;
    display: block;
    margin-bottom: 12px;
}

.pos-checkout-panel {
    background: var(--pos-surface);
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius-lg);
    box-shadow: var(--pos-shadow-lg);
    position: sticky;
    top: 80px;
    overflow: hidden;
}

.pos-checkout-header {
    background: linear-gradient(135deg, var(--pos-primary), #34d399);
    color: white;
    padding: 18px 20px;
    text-align: center;
}

.pos-checkout-header h5 {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.85;
}

.pos-checkout-total {
    font-size: 32px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
}

.pos-checkout-body {
    padding: 20px;
}

.pos-payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.pos-payment-btn {
    padding: 10px 8px;
    border: 2px solid var(--pos-border);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--pos-text-muted);
    transition: all 0.15s ease;
}

.pos-payment-btn i {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.pos-payment-btn.active,
.pos-payment-btn:hover {
    border-color: var(--pos-primary);
    color: var(--pos-primary);
    background: var(--pos-primary-light);
}

.pos-checkout-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ============================================================
   LOGIN Page
   ============================================================ */
.pos-login-page {
    min-height: 100vh;
    background: url('../images/toko-lily.png') center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.pos-login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    pointer-events: none;
}

.pos-login-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 150, 105, 0.2) 0%,
        transparent 45%,
        rgba(15, 23, 42, 0.35) 100%
    );
    pointer-events: none;
}

.pos-login-card {
    width: 960px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.pos-login-brand {
    background: rgba(15, 23, 42, 0.45);
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.pos-login-brand::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 40px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    top: -80px;
    right: -80px;
}

.pos-login-brand-icon {
    width: 64px;
    height: 64px;
    background: rgba(5, 150, 105, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.pos-login-brand h1 {
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -0.5px;
}

.pos-login-brand .subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #6ee7b7;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 32px;
}

.pos-login-brand .desc {
    font-size: 15px;
    line-height: 1.7;
    color: #94a3b8;
    max-width: 320px;
}

.pos-login-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pos-login-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.07);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pos-login-feature i {
    color: var(--pos-primary);
    font-size: 16px;
}

.pos-login-brand .location {
    margin-top: auto;
    padding-top: 40px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pos-login-form-side {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pos-login-form-side h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #0f172a;
}

.pos-login-form-side .form-desc {
    color: #475569;
    font-size: 14px;
    margin-bottom: 32px;
}

.pos-login-form-side .form-control {
    height: 48px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.pos-login-form-side .form-control:focus {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(5, 150, 105, 0.5);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.pos-login-form-side .form-label {
    font-weight: 600;
    color: #334155;
    font-size: 13px;
}

.pos-login-form-side .input-group-icon {
    position: relative;
}

.pos-login-form-side .input-group-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pos-text-muted);
    font-size: 16px;
    z-index: 2;
}

.pos-login-form-side .input-group-icon .form-control {
    padding-left: 42px;
}

.pos-login-form-side .btn-login {
    height: 50px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pos-login-system-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(5, 150, 105, 0.15);
    color: #047857;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(5, 150, 105, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.pos-login-form-side .alert-danger {
    background: rgba(254, 226, 226, 0.85);
    border: 1px solid rgba(239, 68, 68, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* ============================================================
   Laba Rugi Cards
   ============================================================ */
.pos-finance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pos-finance-card {
    border-radius: var(--pos-radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--pos-shadow);
}

.pos-finance-card.income {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
}

.pos-finance-card.cost {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
}

.pos-finance-card.profit {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
}

.pos-finance-card h6 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.85;
    margin-bottom: 10px;
}

.pos-finance-card .amount {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
}

.pos-finance-card i {
    font-size: 28px;
    opacity: 0.7;
    margin-bottom: 12px;
    display: block;
}

/* ============================================================
   Struk Receipt
   ============================================================ */
.pos-receipt-page {
    background: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    font-family: 'Courier New', monospace;
}

.pos-receipt-paper {
    background: white;
    width: 58mm;
    padding: 16px;
    box-shadow: var(--pos-shadow-lg);
    font-size: 12px;
    line-height: 1.5;
}

.pos-receipt-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
}

/* ============================================================
   Mobile Sidebar Toggle Components
   ============================================================ */
.pos-hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--pos-border);
    border-radius: 10px;
    background: var(--pos-bg);
    color: var(--pos-text);
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    flex-shrink: 0;
}

.pos-hamburger:hover {
    background: var(--pos-surface);
}

.pos-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.pos-sidebar-overlay.show {
    opacity: 1;
}

.pos-sidebar-close {
    display: none;
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 10;
}

.pos-sidebar-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ============================================================
   Responsive — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .pos-kasir-layout {
        grid-template-columns: 1fr;
    }

    .pos-checkout-panel {
        position: static;
    }

    .pos-finance-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pos-stat-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* ============================================================
   Responsive — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* -- Sidebar: slide-in drawer -- */
    .pos-sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

    .pos-sidebar.open {
        transform: translateX(0);
    }

    .pos-sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .pos-sidebar-overlay.show {
        pointer-events: auto;
    }

    .pos-sidebar-close {
        display: flex;
    }

    .pos-hamburger {
        display: flex;
    }

    /* -- Main content -- */
    .pos-main {
        margin-left: 0;
    }

    /* -- Topbar -- */
    .pos-topbar {
        padding: 12px 16px;
        gap: 12px;
    }

    .pos-page-title {
        font-size: 16px;
    }

    .pos-page-subtitle {
        font-size: 12px;
    }

    .pos-topbar-right {
        gap: 8px;
    }

    .pos-datetime {
        display: none;
    }

    .pos-user-name {
        display: none;
    }

    .pos-user-chip {
        padding: 4px;
        border: none;
        background: transparent;
    }

    /* -- Content area -- */
    .pos-content {
        padding: 16px;
    }

    /* -- Stat Cards -- */
    .pos-stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .pos-stat-card {
        padding: 14px;
        gap: 10px;
    }

    .pos-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        border-radius: 10px;
    }

    .pos-stat-info h6 {
        font-size: 10px;
    }

    .pos-stat-info .value {
        font-size: 20px;
    }

    .pos-stat-info .value-sm {
        font-size: 15px;
    }

    /* -- Finance grid -- */
    .pos-finance-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .pos-finance-card {
        padding: 20px 16px;
    }

    .pos-finance-card .amount {
        font-size: 22px;
    }

    /* -- Tables responsive -- */
    .table-responsive-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pos-panel-body .table-responsive,
    .pos-panel-body.p-0 > .table-responsive {
        margin: 0;
    }

    .table th,
    .table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .table th {
        font-size: 11px;
    }

    /* -- Page Actions -- */
    .pos-page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .pos-produk-search-wrap {
        max-width: 100%;
    }

    /* -- Panels -- */
    .pos-panel-header {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pos-panel-header h5 {
        font-size: 14px;
    }

    .pos-panel-body {
        padding: 16px;
    }

    /* -- Kasir POS Layout -- */
    .pos-kasir-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .pos-checkout-panel {
        position: static;
    }

    .pos-scan-box {
        padding: 16px;
    }

    .pos-scan-box input {
        font-size: 15px;
        padding: 10px 14px;
    }

    .pos-checkout-total {
        font-size: 26px;
    }

    .pos-payment-methods {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .pos-payment-btn {
        padding: 8px 6px;
        font-size: 11px;
    }

    .pos-payment-btn i {
        font-size: 16px;
    }

    /* -- Login Page -- */
    .pos-login-page {
        padding: 16px;
    }

    .pos-login-card {
        grid-template-columns: 1fr;
        max-width: 440px;
    }

    .pos-login-brand {
        display: none;
    }

    .pos-login-form-side {
        padding: 32px 24px;
        background: rgba(255, 255, 255, 0.82);
    }

    .pos-login-form-side h2 {
        font-size: 24px;
    }

    .pos-login-form-side .form-desc {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .pos-login-form-side .form-control {
        height: 44px;
        font-size: 14px;
    }

    .pos-login-form-side .btn-login {
        height: 46px;
        font-size: 14px;
    }

    /* -- Notification dropdown -- */
    .pos-notif-menu {
        width: 300px;
        right: -60px;
    }

    /* -- Store Banner -- */
    .pos-store-banner {
        height: 160px;
    }

    .pos-store-banner-overlay {
        padding: 0 16px;
        background: linear-gradient(
            90deg,
            rgba(15, 23, 42, 0.92) 0%,
            rgba(15, 23, 42, 0.75) 100%
        );
    }

    .pos-store-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pos-store-banner-main h2 {
        font-size: 20px;
    }

    .pos-store-banner-main p {
        display: none;
    }

    .pos-store-banner-contact {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 6px;
    }

    .pos-store-banner-contact span {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* -- Cards -- */
    .card-body {
        padding: 16px;
    }

    .card-header {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* -- Buttons -- */
    .btn {
        padding: 7px 14px;
        font-size: 13px;
    }

    .btn-sm {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* -- Forms -- */
    .form-control,
    .form-select {
        font-size: 14px;
        padding: 8px 12px;
    }

    .pos-input-compact {
        max-width: 100%;
        min-width: 100%;
    }

    /* -- Receipt -- */
    .pos-receipt-page {
        padding: 16px;
    }

    .pos-receipt-actions {
        flex-direction: column;
        width: 58mm;
    }

    .pos-receipt-actions .btn {
        width: 100%;
    }
}

/* ============================================================
   Responsive — Small Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .pos-stat-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .pos-stat-card {
        padding: 12px;
    }

    .pos-stat-info .value {
        font-size: 18px;
    }

    .pos-topbar {
        padding: 10px 12px;
    }

    .pos-page-title {
        font-size: 15px;
    }

    .pos-content {
        padding: 12px;
    }

    .pos-login-form-side {
        padding: 28px 20px;
    }

    .pos-login-form-side h2 {
        font-size: 22px;
    }

    .pos-checkout-total {
        font-size: 22px;
    }

    .pos-finance-card .amount {
        font-size: 20px;
    }

    .pos-notif-menu {
        width: 280px;
        right: -80px;
    }

    .pos-store-banner {
        height: 140px;
    }

    .pos-store-banner-main h2 {
        font-size: 18px;
    }

    .pos-store-banner-badge {
        font-size: 10px;
        padding: 3px 10px;
    }
}

/* ============================================================
   Print Styles
   ============================================================ */
@media print {
    .pos-sidebar,
    .pos-topbar,
    .pos-page-actions,
    .pos-hamburger,
    .pos-sidebar-overlay,
    .no-print,
    .alert {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    .pos-main {
        margin-left: 0 !important;
        width: 100% !important;
    }

    .pos-content {
        padding: 0 !important;
    }

    .pos-panel {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        break-inside: avoid;
    }

    .pos-laporan-print {
        padding: 0;
    }

    .pos-laporan-print-header {
        border-bottom-color: #059669 !important;
    }

    .pos-receipt-actions {
        display: none;
    }
}
