:root {
    --g-900: #064e3b;
    --g-800: #065f46;
    --g-700: #047857;
    --g-600: #059669;
    --g-500: #10b981;
    --g-100: #d1fae5;
    --g-50:  #ecfdf5;

    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --amber-50:  #fffbeb;

    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50:  #f8fafc;

    --danger: #dc2626;
    --danger-light: #fee2e2;
    --info: #0284c7;
    --info-light: #e0f2fe;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background: var(--slate-50);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { color: var(--slate-900); margin: 0 0 0.5rem; font-weight: 700; }
a { color: var(--g-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Shell Layout */
.shell { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: 260px;
    background: #0d3827;
    background: linear-gradient(180deg, #093322 0%, #062317 100%);
    color: #fff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    z-index: 50;
    border-right: 1px solid rgba(255,255,255,0.08);
}
.sidebar-header {
    padding: 1.25rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand { display: flex; align-items: center; gap: 0.65rem; }
.brand-icon { font-size: 1.8rem; }
.brand-text strong { display: block; font-size: 0.95rem; letter-spacing: 0.02em; color: #fff; }
.brand-text small { color: #86efac; font-size: 0.75rem; }
.btn-sidebar-close { display: none; background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; }

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem 0.65rem;
}
.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.nav-section-title {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #4ade80;
    padding: 0.85rem 0.75rem 0.35rem;
    opacity: 0.85;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.85rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    transition: all 0.15s ease;
    position: relative;
}
.sidebar-nav a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
    transform: translateX(2px);
}
.sidebar-nav a.active {
    background: var(--g-600);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}
.sidebar-nav a.pos-link {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-top: 4px;
    margin-bottom: 8px;
}
.sidebar-nav a.pos-link:hover, .sidebar-nav a.pos-link.active {
    background: var(--g-500);
    color: #064e3b;
    font-weight: 700;
    border-color: var(--g-500);
}
.badge-alert-pill {
    margin-left: auto;
    background: var(--amber-500);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
}

.sidebar-footer {
    padding: 0.85rem;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.user-info-box { display: flex; align-items: center; gap: 0.5rem; }
.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--g-600);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
}
.user-details { display: flex; flex-direction: column; }
.u-name { font-size: 0.82rem; font-weight: 600; color: #fff; }
.btn-logout {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: 0.15s;
}
.btn-logout:hover { background: var(--danger); color: #fff; }

/* Main Section */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* Topbar */
.topbar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 40;
}
.topbar-left { display: flex; align-items: center; gap: 1rem; }
.topbar-title h1 { font-size: 1.25rem; margin: 0; color: var(--slate-900); }
.today-date { font-size: 0.78rem; color: var(--slate-500); }
.topbar-right { display: flex; align-items: center; gap: 0.85rem; }
.btn-pos-fast {
    background: linear-gradient(135deg, var(--g-700), var(--g-600));
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
    text-decoration: none;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-pos-fast:hover { background: var(--g-800); text-decoration: none; }
/* User Dropdown in Topbar */
.user-dropdown {
    position: relative;
    display: inline-block;
}

button.topbar-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--slate-100);
    border: 1px solid transparent;
    padding: 0.45rem 0.85rem;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--slate-800);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    user-select: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

button.topbar-user-badge:hover,
button.topbar-user-badge:focus-visible,
.user-dropdown.open button.topbar-user-badge {
    background: #e2e8f0;
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.user-caret {
    font-size: 0.75rem;
    color: var(--slate-500);
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.user-dropdown.open .user-caret {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 30px -4px rgba(15, 23, 42, 0.15), 0 4px 8px -2px rgba(15, 23, 42, 0.05);
    padding: 0.5rem;
    z-index: 1050;
    display: none;
    animation: fadeInDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-dropdown.open .user-dropdown-menu {
    display: block;
}

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.65rem 0.5rem;
}

.dropdown-user-avatar {
    width: 36px;
    height: 36px;
    background: var(--g-600);
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dropdown-user-name {
    font-size: 0.88rem;
    color: var(--slate-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-role {
    align-self: flex-start;
    font-size: 0.65rem;
    padding: 1px 6px;
    margin-top: 2px;
}

.dropdown-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.4rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-700);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    text-align: left;
    box-sizing: border-box;
    font-family: inherit;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
    background: #f1f5f9;
    color: var(--slate-900);
    text-decoration: none;
}

.dropdown-item-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.dropdown-logout-form {
    margin: 0;
    padding: 0;
}

.dropdown-logout-btn {
    color: #dc2626 !important;
    font-weight: 600;
}

.dropdown-logout-btn:hover {
    background: #fee2e2 !important;
    color: #b91c1c !important;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--g-500);
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}
.burger { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; color: var(--slate-700); }

@media (max-width: 768px) {
    .btn-pos-fast { display: none !important; }
    .topbar {
        padding: 0.65rem 1rem !important;
    }
    .topbar-left {
        gap: 0.65rem !important;
        min-width: 0 !important;
        flex: 1 !important;
    }
    .topbar-title {
        min-width: 0 !important;
    }
    .topbar-title h1 {
        font-size: 1.05rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    .today-date {
        display: none !important;
    }
    button.topbar-user-badge {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.78rem !important;
        flex-shrink: 0 !important;
    }
    .user-dropdown-menu {
        right: 0 !important;
        min-width: 200px !important;
    }
}

/* Content Wrapper */
.content { padding: 1.5rem; flex: 1; }

/* ================================================================
   MODERN ALERTS & NOTIFICATIONS DESIGN SYSTEM
   ================================================================ */

/* In-Page Alert Cards */
.alert {
    position: relative;
    padding: 1.1rem 1.35rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.92rem;
    line-height: 1.55;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    animation: alertSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes alertSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert:hover {
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

.alert-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.alert-content {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}

.alert-title {
    font-weight: 800;
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}

.alert-text {
    font-size: 0.88rem;
    opacity: 0.95;
    line-height: 1.5;
}

.alert-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    color: currentColor;
    opacity: 0.45;
    padding: 6px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.alert-close-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.08);
    transform: scale(1.1);
}

/* Alert Themes */
.alert-success {
    background: linear-gradient(135deg, rgba(236, 253, 245, 0.92) 0%, rgba(240, 253, 244, 0.92) 100%);
    color: #065f46;
    border: 1px solid #a7f3d0;
    border-left: 6px solid #10b981;
}
.alert-success .alert-icon-wrap {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
}
.alert-success .alert-title {
    color: #064e3b;
}

.alert-error,
.alert-danger {
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.92) 0%, rgba(255, 241, 242, 0.92) 100%);
    color: #991b1b;
    border: 1px solid #fecaca;
    border-left: 6px solid #ef4444;
}
.alert-error .alert-icon-wrap,
.alert-danger .alert-icon-wrap {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
}
.alert-error .alert-title,
.alert-danger .alert-title {
    color: #7f1d1d;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 251, 235, 0.92) 0%, rgba(254, 252, 232, 0.92) 100%);
    color: #92400e;
    border: 1px solid #fde68a;
    border-left: 6px solid #f59e0b;
}
.alert-warning .alert-icon-wrap {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
}
.alert-warning .alert-title {
    color: #78350f;
}

.alert-info {
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.92) 0%, rgba(236, 254, 255, 0.92) 100%);
    color: #075985;
    border: 1px solid #bae6fd;
    border-left: 6px solid #0284c7;
}
.alert-info .alert-icon-wrap {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
}
.alert-info .alert-title {
    color: #0c4a6e;
}

.alert-glow {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

/* Alert Dismiss Countdown Progress Bar */
.alert-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3.5px;
    width: 100%;
    background: currentColor;
    opacity: 0.35;
    animation: alertCountdown 5s linear forwards;
}

@keyframes alertCountdown {
    from { width: 100%; }
    to { width: 0%; }
}

/* ================================================================
   SWEETALERT2 CUSTOM PREMIUM STYLING
   ================================================================ */

.swal2-container {
    z-index: 99999 !important;
}

.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.swal2-popup.modern-swal-popup {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    border-radius: 24px !important;
    padding: 2.25rem 2rem 2rem !important;
    background: #ffffff !important;
    box-shadow: 0 30px 80px -15px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.9) inset !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.swal2-actions.modern-swal-actions,
.swal2-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
    margin-top: 1.6rem !important;
    flex-wrap: wrap !important;
}

.modern-swal-title {
    font-size: 1.38rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-top: 0.75rem !important;
    margin-bottom: 0.35rem !important;
    letter-spacing: -0.02em !important;
    line-height: 1.3 !important;
}

.modern-swal-html {
    font-size: 0.94rem !important;
    color: #475569 !important;
    line-height: 1.6 !important;
    margin: 0.5rem 0 1.25rem !important;
}

/* SweetAlert Icon Polish */
.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.12) !important;
}
.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.12) !important;
}
.swal2-icon.swal2-success {
    border-color: #10b981 !important;
    color: #10b981 !important;
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.12) !important;
}
.swal2-icon.swal2-info,
.swal2-icon.swal2-question {
    border-color: #0284c7 !important;
    color: #0284c7 !important;
    box-shadow: 0 0 0 8px rgba(2, 132, 199, 0.12) !important;
}

/* Modern SweetAlert Buttons */
.modern-swal-confirm-btn {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    padding: 0.75rem 1.65rem !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 6px 18px -4px rgba(5, 150, 105, 0.45) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
}

.modern-swal-confirm-btn:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px -4px rgba(5, 150, 105, 0.6) !important;
}

.modern-swal-confirm-btn:active {
    transform: scale(0.97) !important;
}

.modern-swal-danger-btn {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    padding: 0.75rem 1.65rem !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 6px 18px -4px rgba(239, 68, 68, 0.45) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
}

.modern-swal-danger-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px -4px rgba(239, 68, 68, 0.6) !important;
}

.modern-swal-danger-btn:active {
    transform: scale(0.97) !important;
}

.modern-swal-cancel-btn {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    padding: 0.75rem 1.45rem !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: auto !important;
}

.modern-swal-cancel-btn:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
    transform: translateY(-1px) !important;
}

.modern-swal-cancel-btn:active {
    transform: scale(0.97) !important;
}

.modern-swal-confirm-btn,
.modern-swal-danger-btn {
    pointer-events: auto !important;
}

/* Modern SweetAlert Toast */
.modern-toast-popup {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    border-radius: 16px !important;
    padding: 0.85rem 1.25rem !important;
    background: #ffffff !important;
    box-shadow: 0 14px 35px -8px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05) !important;
    border: none !important;
}

.modern-toast-title {
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.modern-toast-progress {
    background: linear-gradient(90deg, #10b981, #059669) !important;
    height: 4px !important;
    border-radius: 0 0 16px 16px !important;
}

/* Mobile Responsive SweetAlert */
@media (max-width: 600px) {
    .swal2-popup.modern-swal-popup {
        padding: 1.75rem 1.25rem 1.5rem !important;
        border-radius: 20px !important;
        width: calc(100vw - 2rem) !important;
        max-width: 100% !important;
    }
    .swal2-actions.modern-swal-actions {
        width: 100% !important;
        flex-direction: column-reverse !important;
        gap: 0.5rem !important;
    }
    .modern-swal-confirm-btn,
    .modern-swal-danger-btn,
    .modern-swal-cancel-btn {
        width: 100% !important;
        padding: 0.8rem 1rem !important;
    }
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.1rem;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--g-700); color: #fff; }
.btn-primary:hover { background: var(--g-800); }
.btn-emerald { background: var(--g-600); color: #fff; }
.btn-emerald:hover { background: var(--g-700); }
.btn-outline-emerald { background: #fff; border-color: var(--g-500); color: var(--g-700); }
.btn-outline-emerald:hover { background: var(--g-50); color: var(--g-800); border-color: var(--g-600); }
.btn-light { background: #fff; border-color: var(--border); color: var(--slate-700); }
.btn-light:hover { background: var(--slate-100); }
.btn-dark { background: var(--slate-800); color: #fff; }
.btn-dark:hover { background: var(--slate-900); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-warning { background: var(--amber-500); color: #78350f; font-weight: 700; }
.btn-warning:hover { background: var(--amber-600); color: #fff; }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.82rem; }
.btn-xs { padding: 0.25rem 0.55rem; font-size: 0.75rem; }
.btn-lg { padding: 0.8rem 1.4rem; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-text { background: none; border: 0; color: var(--g-700); font-weight: 600; cursor: pointer; text-decoration: none; font-size: 0.85rem; }
.btn-text:hover { text-decoration: underline; }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-light { background: #f1f5f9; color: #475569; }
.badge-neutral { background: #e2e8f0; color: #475569; }
.badge-admin { background: #fef3c7; color: #92400e; }
.badge-kasir { background: #d1fae5; color: #065f46; }

/* Cards */
.card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}
.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h3 { margin: 0; font-size: 1.05rem; }
.card-body { padding: 1.25rem; }
.card-footer { padding: 0.85rem 1.25rem; border-top: 1px solid var(--border); background: var(--slate-50); }
.p-0 { padding: 0 !important; }

/* Tables */
.table-responsive { width: 100%; overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}
.table th {
    background: #f8fafc;
    color: var(--slate-600);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.table tbody tr:hover { background: #f8fafc; }
.action-btn-group { display: flex; align-items: center; gap: 0.35rem; }

/* Stats Grid & KPI Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.25rem;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.stat-emerald .stat-icon { background: #d1fae5; color: #047857; }
.stat-teal .stat-icon { background: #ccfbf1; color: #0f766e; }
.stat-blue .stat-icon { background: #e0f2fe; color: #0369a1; }
.stat-amber .stat-icon { background: #fef3c7; color: #b45309; }
.stat-meta { display: flex; flex-direction: column; min-width: 0; }
.stat-label { font-size: 0.8rem; font-weight: 600; color: var(--slate-500); }
.stat-value { font-size: 1.35rem; font-weight: 800; color: var(--slate-900); margin: 0.15rem 0; }
.stat-sub { font-size: 0.75rem; color: var(--slate-400); }

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }
    .stat-card {
        padding: 0.85rem 0.85rem !important;
        gap: 0.6rem !important;
        border-radius: 12px !important;
    }
    .stat-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.2rem !important;
        border-radius: 10px !important;
    }
    .stat-label {
        font-size: 0.68rem !important;
        line-height: 1.2 !important;
    }
    .stat-value {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
        margin: 0.15rem 0 !important;
    }
    .stat-sub {
        font-size: 0.65rem !important;
    }
}
@media (max-width: 420px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #064e3b 0%, #047857 60%, #10b981 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.8rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.3);
}
.welcome-text h2 { color: #fff; font-size: 1.45rem; margin-bottom: 0.3rem; }
.welcome-text p { margin: 0; color: #d1fae5; font-size: 0.95rem; }
.welcome-actions { display: flex; gap: 0.75rem; }

@media (max-width: 768px) {
    .welcome-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 1.25rem 1.15rem !important;
        gap: 0.85rem !important;
        border-radius: 16px !important;
    }
    .welcome-text h2 {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.35rem !important;
    }
    .welcome-text p {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
    }
    .welcome-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .welcome-actions .btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem !important;
        border-radius: 10px !important;
    }
}

/* Shift Register Box */
.shift-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.shift-inactive-box p {
    font-size: 0.92rem;
    color: var(--slate-600);
    margin-bottom: 1rem;
    line-height: 1.5;
}
@media (max-width: 600px) {
    .shift-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .shift-inactive-box .btn,
    .shift-active-box .btn {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0.7rem 1rem !important;
    }
    .shift-active-box .d-flex {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: stretch !important;
    }
}

/* Page Layout */
.page-container { width: 100%; }
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.page-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--slate-900);
    margin: 0 0 0.25rem 0;
}
.page-header p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* Grid Utilities */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media(max-width: 900px) { .grid-2-col { grid-template-columns: 1fr; } }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.35rem; font-size: 0.88rem; font-weight: 600; color: var(--slate-700); }
.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    color: var(--text-main);
    background: #fff;
    transition: 0.15s;
}
.form-control:focus { outline: none; border-color: var(--g-600); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
@media(max-width: 650px) { .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 0.75rem; align-items: center; }

/* Filter Card */
.filter-card { padding: 1rem; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.85rem; align-items: end; }

/* Leaderboard */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.rank-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.8rem;
    background: var(--slate-100);
    color: var(--slate-600);
}
.rank-1 { background: #fef08a; color: #854d0e; }
.rank-2 { background: #e2e8f0; color: #334155; }
.rank-3 { background: #fed7aa; color: #9a3412; }
.leaderboard-info { flex: 1; }
.leaderboard-info strong { display: block; font-size: 0.92rem; }
.leaderboard-info small { color: var(--slate-500); }
.leaderboard-value { font-weight: 700; color: var(--g-700); font-size: 0.95rem; }

/* Bar Chart */
.bar-chart-container {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    height: 180px;
    padding-top: 20px;
}
.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
}
.bar-track {
    width: 100%;
    max-width: 38px;
    flex: 1;
    background: #f1f5f9;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #10b981 0%, #047857 100%);
    border-radius: 6px 6px 0 0;
    transition: height 0.3s ease;
}
.bar-label { margin-top: 6px; font-size: 0.72rem; color: var(--slate-500); font-weight: 600; }
.bar-tooltip {
    display: none;
    position: absolute;
    top: -24px;
    background: var(--slate-900);
    color: #fff;
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}
.bar-col:hover .bar-tooltip { display: block; }

/* ========================================================
   POS (Point of Sale) Terminal Interface
   ======================================================== */
.pos-mobile-nav {
    display: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    gap: 6px;
    margin-bottom: 0.85rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 65px;
    z-index: 30;
}
.pos-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.65rem 0.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--slate-600);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pos-tab-btn.active {
    background: linear-gradient(135deg, var(--g-700), var(--g-600));
    color: #fff;
    box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
}
.mobile-cart-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 12px;
    line-height: 1.4;
}

/* Floating Bottom Checkout Bar (Mobile) */
.pos-mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem;
    box-shadow: 0 -8px 25px rgba(0,0,0,0.12);
    z-index: 90;
    align-items: center;
    justify-content: space-between;
    animation: slideUpBar 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpBar {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
.bottom-bar-summary {
    display: flex;
    flex-direction: column;
}
.bottom-bar-items {
    font-size: 0.75rem;
    color: var(--slate-500);
    font-weight: 600;
}
.bottom-bar-total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--g-800);
}
.bottom-bar-btn {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #fff;
    border: none;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    transition: 0.2s;
}
.bottom-bar-btn:active {
    transform: scale(0.97);
}

.pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 10px var(--pos-cart-width, 450px);
    gap: 0.5rem;
    min-height: calc(100vh - 120px);
    position: relative;
}
@media(max-width: 1100px) {
    .pos-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .pos-layout-resizer {
        display: none !important;
    }
}

.pos-layout-resizer {
    width: 10px;
    cursor: col-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.15s ease;
    border-radius: 4px;
    background: transparent;
}
.pos-layout-resizer::after {
    content: '';
    width: 4px;
    height: 52px;
    border-radius: 3px;
    background: #cbd5e1;
    transition: all 0.15s ease;
}
.pos-layout-resizer:hover::after,
.pos-layout-resizer.is-dragging::after {
    background: var(--g-600);
    height: 84px;
    width: 6px;
}
.pos-layout-resizer:hover,
.pos-layout-resizer.is-dragging {
    background: rgba(16, 185, 129, 0.12);
}

.btn-width-toggle {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    cursor: pointer;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.btn-width-toggle:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.pos-products-pane { display: flex; flex-direction: column; gap: 1rem; }
.pos-search-bar { padding: 1rem; }
.search-input-wrap { position: relative; }
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 1.1rem; color: var(--slate-400); }
.pos-search-field {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 500;
}
.pos-search-field:focus { outline: none; border-color: var(--g-600); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }
.search-clear-btn {
    position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
    background: #e2e8f0; border: none; border-radius: 50%; width: 24px; height: 24px;
    cursor: pointer; font-size: 0.8rem;
}

.category-pills { display: flex; gap: 0.4rem; overflow-x: auto; padding-top: 0.75rem; }
.category-pills::-webkit-scrollbar { height: 4px; }
.category-pills::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.cat-pill {
    white-space: nowrap;
    border: 1px solid var(--border);
    background: #fff;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--slate-700);
    cursor: pointer;
    transition: 0.15s;
}
.cat-pill:hover { background: var(--slate-100); }
.cat-pill.active { background: var(--g-700); color: #fff; border-color: var(--g-700); }

/* POS Product Cards Grid */
.pos-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
    align-content: start;
}
.product-pos-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.product-pos-card:hover {
    border-color: var(--g-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.product-pos-card.out-of-stock {
    opacity: 0.55;
    background: #f8fafc;
    cursor: not-allowed;
}
.card-badge-unit {
    position: absolute;
    top: 8px; right: 8px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}
.card-prod-header { display: flex; gap: 0.4rem; margin-bottom: 0.4rem; }
.prod-code-tag { font-size: 0.72rem; color: var(--slate-500); font-weight: 600; }
.prod-stock-tag { font-size: 0.72rem; font-weight: 700; }
.stock-ok { color: var(--g-700); }
.stock-low { color: var(--amber-600); }
.prod-name { font-size: 0.95rem; margin: 0.2rem 0 0.85rem; line-height: 1.3; font-weight: 600; }
.prod-footer { display: flex; align-items: center; justify-content: space-between; }
.prod-price { font-size: 1.05rem; font-weight: 800; color: var(--g-800); }
.btn-add-cart {
    background: var(--g-50);
    color: var(--g-700);
    border: 1px solid var(--g-500);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}
.btn-add-cart:hover { background: var(--g-600); color: #fff; }

/* POS Cart Pane */
.pos-cart-pane {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
}
.cart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.85rem; }
.btn-clear-cart { background: none; border: 0; color: var(--danger); font-size: 0.8rem; font-weight: 600; cursor: pointer; }
.customer-select-wrap { margin-bottom: 1rem; }
.customer-select-wrap label { font-size: 0.82rem; font-weight: 600; color: var(--slate-600); display: block; margin-bottom: 0.25rem; }

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-height: 200px;
    max-height: 480px;
    margin-bottom: 1rem;
    background: #fafafa;
}
.empty-cart-state { text-align: center; padding: 2.5rem 1rem; color: var(--slate-400); }
.empty-cart-icon { font-size: 2.2rem; display: block; margin-bottom: 0.5rem; opacity: 0.6; }

.cart-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.cart-table th { background: #f1f5f9; padding: 6px 8px; font-size: 0.75rem; text-transform: uppercase; color: var(--slate-500); }
.cart-table td { padding: 6px 8px; border-bottom: 1px solid #f1f5f9; background: #fff; vertical-align: middle; }
.cart-item-name { font-weight: 600; font-size: 0.88rem; line-height: 1.25; color: #0f172a; }
.cart-price-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.78rem;
    margin-top: 3px;
}
.btn-edit-price {
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    color: #1e293b;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.15s ease;
}
.btn-edit-price:hover {
    background: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}
.btn-edit-price.is-nego {
    background: #ecfdf5;
    border: 1px solid #059669;
    color: #065f46;
    font-weight: 700;
}
.badge-nego-tag {
    background: #059669;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
}
.cart-orig-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.72rem;
}
.text-emerald-700 { color: #047857; }
.cart-qty-spinner { display: flex; align-items: center; gap: 2px; }
.btn-spin {
    width: 24px; height: 24px; border: 1px solid var(--border); background: var(--slate-100);
    border-radius: 4px; font-weight: bold; cursor: pointer; display: grid; place-items: center;
}
.qty-field { width: 36px; text-align: center; border: 1px solid var(--border); border-radius: 4px; padding: 2px; font-size: 0.85rem; }
.btn-remove-item { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 1rem; }

.cart-summary { background: #f8fafc; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.85rem; margin-bottom: 1rem; }
.summary-line { display: flex; align-items: center; justify-content: space-between; font-size: 0.88rem; margin-bottom: 0.35rem; }
.input-calc { width: 100px; text-align: right; padding: 3px 6px; border: 1px solid var(--border); border-radius: 4px; font-weight: 600; }
.summary-total-banner {
    display: flex; align-items: center; justify-content: space-between;
    background: #064e3b; color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
    margin-top: 0.65rem; font-weight: 700;
}
.grand-total-value { font-size: 1.45rem; color: #6ee7b7; font-weight: 800; }

.payment-methods-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 0.75rem; }
.pay-tab {
    padding: 6px 2px; font-size: 0.78rem; font-weight: 700; border: 1px solid var(--border);
    border-radius: 6px; background: #fff; cursor: pointer; transition: 0.15s;
}
.pay-tab.active { background: var(--slate-900); color: #fff; border-color: var(--slate-900); }

.cash-box { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: var(--radius-sm); padding: 0.75rem; margin-bottom: 0.75rem; }
.cash-input {
    width: 100%; font-size: 1.25rem; font-weight: 800; text-align: right;
    padding: 0.5rem; border: 2px solid #6ee7b7; border-radius: var(--radius-sm);
    background: #fff; color: #064e3b;
}
.quick-cash-chips { display: flex; gap: 4px; margin: 6px 0; overflow-x: auto; }
.chip-val {
    flex: 1; padding: 4px 6px; font-size: 0.75rem; font-weight: 700; background: #fff;
    border: 1px solid #a7f3d0; border-radius: 4px; cursor: pointer;
}
.btn-chip { background: #10b981; color: #fff; border: 0; border-radius: 4px; padding: 2px 6px; font-size: 0.72rem; font-weight: 700; cursor: pointer; }
.change-display { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 0.95rem; }
.change-amount { font-size: 1.2rem; font-weight: 800; }

.btn-checkout {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff; font-size: 1.05rem; font-weight: 800; padding: 0.9rem;
    border-radius: var(--radius); box-shadow: 0 4px 14px rgba(4, 120, 87, 0.35);
}
.btn-checkout:hover:not(:disabled) { background: #065f46; transform: translateY(-1px); }
.btn-checkout:disabled { opacity: 0.5; cursor: not-allowed; }

/* Responsive Mobile POS Overrides */
@media(max-width: 900px) {
    .pos-layout {
        display: block;
    }
    .pos-mobile-nav {
        display: flex;
    }
    .mobile-pane-hidden {
        display: none !important;
    }
    .pos-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.65rem !important;
    }
    .product-pos-card {
        padding: 0.75rem !important;
        border-radius: 12px !important;
        background: #fff;
    }
    .product-pos-card:active {
        transform: scale(0.97);
    }
    .card-badge-unit {
        top: 6px !important;
        right: 6px !important;
        font-size: 0.65rem !important;
        padding: 1px 5px !important;
    }
    .prod-code-tag {
        font-size: 0.68rem !important;
    }
    .prod-stock-tag {
        font-size: 0.68rem !important;
    }
    .prod-name {
        font-size: 0.88rem !important;
        height: 2.3rem !important;
        line-height: 1.25 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin: 0.2rem 0 0.5rem !important;
    }
    .prod-price {
        font-size: 0.98rem !important;
    }
    .btn-add-cart {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.76rem !important;
        border-radius: 6px !important;
    }
    .pos-cart-pane {
        margin-top: 0.5rem;
        padding: 1rem !important;
        margin-bottom: 4.5rem;
    }
    .payment-methods-tabs {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .pay-tab {
        padding: 8px 4px !important;
        font-size: 0.82rem !important;
    }
    .quick-cash-chips {
        flex-wrap: wrap;
    }
    .chip-val {
        flex: 1 1 calc(33.333% - 4px);
        text-align: center;
        padding: 6px !important;
    }
}

@media(min-width: 901px) {
    .pos-mobile-nav { display: none !important; }
    .pos-mobile-bottom-bar { display: none !important; }
    .pos-products-pane, .pos-cart-pane { display: flex !important; }
}

@media(max-width: 480px) {
    .content { padding: 0.65rem !important; }
    .topbar { padding: 0.65rem 0.85rem !important; }
    .topbar-title h1 { font-size: 1.05rem !important; }
    .today-date { display: none !important; }
    .pos-search-bar { padding: 0.75rem !important; }
    .pos-search-field { font-size: 0.92rem !important; padding: 0.7rem 0.85rem 0.7rem 2.4rem !important; }
}

/* Modals */
.modal-backdrop {
    position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
    z-index: 1000; padding: 1rem;
}
.modal-card {
    background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 500px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); overflow: hidden;
    animation: modalPop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-receipt-preview {
    max-width: 440px;
}
.receipt-preview-frame iframe {
    width: 100%;
    height: 380px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { margin: 0; font-size: 1.15rem; }
.modal-close { background: none; border: 0; font-size: 1.25rem; cursor: pointer; color: var(--slate-400); }
.modal-body { padding: 1.4rem; }
.modal-footer { padding: 1rem 1.4rem; border-top: 1px solid var(--border); background: var(--slate-50); display: flex; justify-content: flex-end; gap: 0.75rem; }

.meta-info-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem; padding: 1.25rem;
}

/* Helpers */
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.flex-1 { flex: 1; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.text-muted { color: var(--text-muted); }
.text-emerald { color: var(--g-700); }
.text-danger { color: var(--danger); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.bold { font-weight: 700; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1.25rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-4 { margin-top: 1.25rem !important; }
.my-3 { margin: 0.75rem 0 !important; }
.max-w-700 { max-width: 700px; }
.max-w-750 { max-width: 750px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.bg-light { background: #f8fafc !important; }

/* Responsive Drawer */
.sidebar-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 40;
}
@media(max-width: 768px) {
    .sidebar {
        position: fixed; inset: 0 auto 0 0; transform: translateX(-100%);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .sidebar.open { transform: none; }
    .sidebar-overlay.active { display: block; }
    .burger { display: block; }
    .btn-sidebar-close { display: block; }
    .content { padding: 1rem; }
}

/* Landing Page Styles */
.home-page-body { background: #f8fafc; }
.home-navbar { background: #fff; border-bottom: 1px solid var(--border); padding: 1rem 0; box-shadow: var(--shadow-sm); }
.home-nav-container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.home-brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-emoji { font-size: 2.2rem; }
.home-brand strong { font-size: 1.2rem; color: #064e3b; display: block; }
.home-brand small { color: var(--slate-500); }

.home-hero {
    background: linear-gradient(135deg, #064e3b 0%, #047857 50%, #10b981 100%);
    color: #fff; padding: 4.5rem 1.5rem; text-align: center;
}
.home-hero-content { max-width: 800px; margin: 0 auto; }
.hero-badge {
    background: rgba(255,255,255,0.18); color: #a7f3d0; padding: 0.35rem 0.85rem;
    border-radius: 20px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; display: inline-block; margin-bottom: 1rem;
}
.home-hero h1 { font-size: 2.4rem; color: #fff; margin-bottom: 1rem; line-height: 1.25; }
.home-hero p { font-size: 1.15rem; color: #d1fae5; line-height: 1.6; margin-bottom: 2rem; }
.hero-cta-group { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.home-features-section { max-width: 1100px; margin: 3rem auto; padding: 0 1.5rem; }
.section-heading h2 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.feature-card {
    background: #fff; padding: 1.5rem; border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--g-500); }
.feature-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--slate-600); line-height: 1.5; margin: 0; }

.home-footer { background: #0f172a; color: #94a3b8; text-align: center; padding: 2rem 1.5rem; margin-top: 4rem; }
.home-footer-inner strong { color: #fff; }

/* Login Page Styling */
.login-body {
    min-height: 100vh; display: grid; place-items: center; padding: 1rem;
    background: radial-gradient(circle at 10% 20%, #064e3b 0%, #047857 50%, #022c22 100%);
}
.login-card {
    width: 100%; max-width: 420px; background: #fff; border-radius: 20px; padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3); border-top: 6px solid var(--amber-500);
}
.login-brand { text-align: center; margin-bottom: 1.5rem; }
.login-logo { font-size: 3rem; margin-bottom: 0.25rem; }
.login-card h1 { font-size: 1.45rem; color: #064e3b; margin-bottom: 0.25rem; }
.login-card p { color: var(--slate-500); font-size: 0.9rem; margin: 0; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 2.75rem; }
.pw-toggle {
    position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%);
    background: none; border: 0; cursor: pointer; font-size: 1.1rem; color: var(--slate-500);
}
.login-back { display: block; text-align: center; margin-top: 1.25rem; font-size: 0.88rem; color: var(--g-700); font-weight: 600; }

/* ================================================================
   PRICE INPUT — FORMAT RUPIAH
   ================================================================ */
.price-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.price-prefix {
    position: absolute;
    left: 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    pointer-events: none;
    z-index: 1;
    user-select: none;
}
.price-formatted {
    padding-left: 2.5rem !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #0f172a;
}
.price-formatted::placeholder { font-weight: 400; color: #94a3b8; }
.price-formatted.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}
.price-error-msg {
    margin-top: 0.4rem;
    font-size: 0.83rem;
    font-weight: 600;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    animation: fadeInDown 0.2s ease;
}
.margin-preview {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    animation: fadeInDown 0.25s ease;
    display: inline-block;
}
.margin-profit {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.margin-loss {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   STOCK-ZERO HINT BADGE
   ================================================================ */
.stock-zero-hint {
    display: none;
    margin-top: 0.45rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.83rem;
    font-weight: 600;
    animation: fadeInDown 0.2s ease;
}

/* ================================================================
   MODERN SHIFT MODAL DESIGN (MOBILE & DESKTOP)
   ================================================================ */
.modal-shift-card {
    border-radius: 20px !important;
    max-width: 480px !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35) !important;
    overflow: hidden;
}

.modal-header-shift {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shift-modal-branding {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.shift-modal-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
    flex-shrink: 0;
}

.shift-modal-icon.icon-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.shift-modal-titles h3 {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.shift-modal-titles p {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

/* Tip Banner - Clean block layout, no broken flex columns */
.shift-tip-banner {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    border-radius: 12px !important;
    padding: 0.75rem 0.95rem !important;
    margin-bottom: 1.25rem !important;
}

.shift-tip-icon {
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.shift-tip-body {
    flex: 1;
    min-width: 0;
}

.shift-tip-heading {
    font-weight: 700;
    color: #92400e;
    font-size: 0.84rem;
    margin-bottom: 0.2rem;
}

.shift-tip-text {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #b45309;
    margin: 0;
}

/* Currency Input Styling */
.currency-input-box {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.currency-input-box:focus-within {
    border-color: #059669;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.currency-input-box.box-danger:focus-within {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

.currency-prefix-badge {
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.65rem 0.95rem;
    display: flex;
    align-items: center;
    border-right: 1px solid #e2e8f0;
    user-select: none;
}

.currency-main-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0.65rem 0.85rem !important;
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #064e3b !important;
    background: transparent !important;
    width: 100%;
    font-family: inherit;
}

.currency-main-input.text-danger {
    color: #dc2626 !important;
}

/* Quick Cash Chips */
.quick-cash-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.6rem;
}

.quick-cash-chip {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
    font-family: inherit;
}

.quick-cash-chip:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateY(-1px);
}

.quick-cash-chip.active {
    background: #059669;
    border-color: #059669;
    color: #fff;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.35);
}

/* Shift Summary Box in Modal Close */
.shift-summary-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.15rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.summary-line:last-child {
    margin-bottom: 0;
}

/* Modal Shift Footer & Buttons */
.modal-footer-shift {
    padding: 1rem 1.4rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
}

.btn-shift-primary {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    font-family: inherit;
}

.btn-shift-primary:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
}

.btn-shift-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.75rem 1.4rem;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    font-family: inherit;
}

.btn-shift-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.45);
}

.btn-shift-cancel {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
}

.btn-shift-cancel:hover {
    background: #f1f5f9;
    color: #0f172a;
    text-decoration: none;
}

/* Mobile specific styling for shift modals */
@media (max-width: 576px) {
    .modal-backdrop {
        padding: 0.6rem !important;
        align-items: center !important;
    }
    .modal-shift-card {
        border-radius: 20px !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .modal-header-shift {
        padding: 0.95rem 1.15rem !important;
    }
    .shift-modal-icon {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }
    .shift-modal-titles h3 {
        font-size: 1.05rem !important;
    }
    .modal-body {
        padding: 1.1rem !important;
    }
    .modal-footer-shift {
        padding: 0.85rem 1.1rem !important;
        flex-direction: column-reverse !important;
        gap: 0.5rem !important;
    }
    .btn-shift-primary,
    .btn-shift-danger,
    .btn-shift-cancel {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.92rem !important;
    }
    .currency-main-input {
        font-size: 1.25rem !important;
    }
}

/* ================================================================
   SORTABLE TABLE HEADERS
   ================================================================ */
.sort-header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--slate-600);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.15s ease;
    user-select: none;
    cursor: pointer;
}

.sort-header-link:hover {
    color: var(--g-800);
}

.sort-header-link.active-sort {
    color: var(--g-800);
}

.sort-indicator {
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--g-700);
    font-weight: 800;
}

.sort-neutral {
    opacity: 0.35;
    font-size: 0.85rem;
    color: var(--slate-500);
    transition: opacity 0.15s ease;
}

.sort-header-link:hover .sort-neutral {
    opacity: 0.8;
    color: var(--g-700);
}

/* ================================================================
   PAGINATION STYLES
   ================================================================ */
.pagination-wrapper {

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

.pagination-left {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.pagination-info {
    font-size: 0.88rem;
    color: var(--slate-600);
}

.pagination-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    color: var(--slate-600);
}

.pagination-per-page select {
    padding: 0.35rem 0.65rem;
    font-size: 0.84rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: #ffffff;
    color: var(--slate-800);
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease;
}

.pagination-per-page select:focus {
    border-color: var(--g-600);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.65rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-700);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    user-select: none;
}

.page-btn:hover:not(.disabled):not(.active) {
    background: var(--slate-100);
    border-color: #cbd5e1;
    color: var(--slate-900);
    transform: translateY(-1px);
}

.page-btn.active {
    background: var(--g-700);
    border-color: var(--g-700);
    color: #ffffff !important;
    font-weight: 700;
    cursor: default;
    box-shadow: 0 3px 8px -2px rgba(5, 150, 105, 0.4);
}

.page-btn.disabled {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8 !important;
    cursor: not-allowed;
    opacity: 0.7;
    pointer-events: none;
}

.page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 36px;
    color: var(--slate-400);
    font-weight: 700;
    user-select: none;
}

/* ================================================================
   PRINT STYLES & REPORT FORMATTING
   ================================================================ */
.print-only {
    display: none !important;
}


@media print {
    @page {
        size: auto;
        margin: 10mm 12mm;
    }

    /* Sembunyikan elemen navigasi, menu, dan kontrol UI */
    .sidebar,
    .topbar,
    .sidebar-overlay,
    .btn,
    button,
    .no-print,
    .alert,
    #flashAlert,
    .btn-sidebar-close,
    .btn-pos-fast,
    .topbar-right,
    .topbar-left,
    .filter-card,
    .filter-form,
    .pagination,
    .page-header button,
    .page-header .btn {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    /* Reset background dan layout halaman cetak */
    html, body {
        background: #ffffff !important;
        color: #000000 !important;
        font-family: Arial, Helvetica, sans-serif !important;
        font-size: 9.5pt !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .shell,
    .main,
    .content,
    .page-container,
    .card {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* Sembunyikan header web bawaan bila digantikan kop cetak */
    .page-header {
        display: none !important;
    }

    /* Cegah tabel terpotong secara horizontal */
    .table-responsive {
        overflow: visible !important;
        display: block !important;
        width: 100% !important;
    }

    table, .table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin-top: 8px !important;
        font-size: 8.5pt !important;
        page-break-inside: auto;
    }

    th, td, .table th, .table td {
        border: 1px solid #333333 !important;
        padding: 4px 6px !important;
        color: #000000 !important;
        background: transparent !important;
        word-break: normal !important;
    }

    th, .table th {
        background-color: #f1f5f9 !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        font-size: 8pt !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    tfoot tr td, .table tfoot tr td {
        font-weight: bold !important;
        background-color: #f8fafc !important;
        border-top: 2px solid #000000 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Rapikan kartu ringkasan saat dicetak */
    .stats-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    .stat-card {
        flex: 1 !important;
        border: 1px solid #64748b !important;
        background: #f8fafc !important;
        padding: 6px 10px !important;
        border-radius: 4px !important;
        box-shadow: none !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .stat-card .stat-icon {
        display: none !important;
    }

    .stat-card .stat-label {
        font-size: 7.5pt !important;
        color: #334155 !important;
        font-weight: 600 !important;
    }

    .stat-card .stat-value {
        font-size: 11pt !important;
        color: #0f172a !important;
        font-weight: 800 !important;
        display: block !important;
        margin: 2px 0 !important;
    }

    .stat-card .stat-sub {
        font-size: 7pt !important;
        color: #64748b !important;
    }

    .badge {
        border: 1px solid #cbd5e1 !important;
        background: transparent !important;
        color: #000 !important;
        padding: 1px 4px !important;
        font-size: 7.5pt !important;
    }

    tr {
        page-break-inside: avoid !important;
    }
}
