/* ==========================================================================
   IPS & Battery POS System - Enterprise SaaS Design System & Stylesheet
   Union Standard / World-Class UI/UX
   Typography: Plus Jakarta Sans & JetBrains Mono
   ========================================================================== */

:root {
    /* Color Palette */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-border: #bfdbfe;
    
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --info: #06b6d4;
    --info-light: #ecfeff;

    /* Neutrals & Surfaces */
    --surface-bg: #f8fafc;
    --surface-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    /* Sidebar Premium Royal-Navy Tokens */
    --sidebar-bg: #1e3a8a;
    --sidebar-surface: #1e40af;
    --sidebar-border: rgba(255, 255, 255, 0.12);
    --sidebar-text: #e2e8f0;
    --sidebar-text-active: #1e3a8a;
    --sidebar-hover: rgba(255, 255, 255, 0.12);
    --sidebar-active-gradient: #ffffff;

    /* Typography: Modern Bengali & English Dual Stack */
    --font-sans: 'Hind Siliguri', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Elevations & Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-pill: 9999px;
}

/* Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 14.5px;
    }
}

body {
    font-family: var(--font-sans);
    background-color: var(--surface-bg);
    color: var(--text-main);
    min-height: 100vh;
    margin: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Headings & Monospace */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.font-monospace, code, pre {
    font-family: var(--font-mono) !important;
    font-variant-numeric: tabular-nums;
}

.extra-small {
    font-size: 0.75rem;
}

/* Layout Architecture */
.wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* Mobile Sidebar Backdrop */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
}

.sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Component */
#sidebar {
    width: 270px;
    min-width: 270px;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 40%, #172554 100%);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
}

.sidebar-header {
    padding: 1.25rem 1.25rem;
    background: rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand {
    text-decoration: none;
    color: #ffffff;
}

.brand-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.brand-text .brand-sub {
    font-size: 0.72rem;
    color: #bfdbfe;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Sidebar Menu */
.sidebar-menu {
    list-style: none;
    padding: 0.75rem 0.65rem;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar-menu::-webkit-scrollbar {
    width: 4px;
}
.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.sidebar-menu .menu-header {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #93c5fd;
    padding: 1.15rem 0.85rem 0.45rem;
    font-weight: 700;
    opacity: 0.9;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.9rem;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    margin-bottom: 3px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sidebar-menu li a i {
    font-size: 1.18rem;
    margin-right: 0.75rem;
    width: 24px;
    text-align: center;
    color: #93c5fd;
    transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar-menu li a:hover {
    color: #ffffff;
    background: var(--sidebar-hover);
    transform: translateX(3px);
}

.sidebar-menu li a:hover i {
    transform: scale(1.12);
    color: #ffffff;
}

.sidebar-menu li.active a {
    color: #1e3a8a !important;
    background: #ffffff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.sidebar-menu li.active a i {
    color: #1d4ed8 !important;
}

.sidebar-menu li.active a span {
    color: #1e3a8a !important;
}

/* Sidebar Footer User Card */
.sidebar-footer {
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: auto;
}

.user-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.hover-danger:hover {
    color: #f87171 !important;
}

/* Main Content Panel */
#content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--surface-bg);
}

/* Sticky Top Navbar */
.top-navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.25rem;
    z-index: 1020;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
}

@media (min-width: 768px) {
    .top-navbar {
        padding: 0.85rem 1.75rem;
    }
}

.btn-nav-toggle {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-main);
    transition: all 0.15s ease;
}

.btn-nav-toggle:hover {
    background: var(--surface-bg);
    border-color: #cbd5e1;
}

/* Store Badge & Live Dot */
.store-badge {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    max-width: 280px;
}

.store-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.status-pulse-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.4);
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

/* POS Quick Launch Button */
.btn-pos-launch {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.45rem 1rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.btn-pos-launch:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

/* User Profile Dropdown Button */
.btn-profile-dropdown {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.65rem 0.3rem 0.35rem;
    transition: all 0.15s ease;
}

.btn-profile-dropdown:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Custom Cards */
.card-custom {
    background: var(--surface-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.card-custom:hover {
    box-shadow: var(--shadow-md);
    border-color: #bfdbfe;
}

.card-custom .card-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Stat KPI Cards */
.stat-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: #bfdbfe;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.border-success::before {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    opacity: 1;
}

.stat-card .stat-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.08);
}

/* Tables Styling */
.table {
    --bs-table-bg: transparent;
    color: var(--text-main);
    margin-bottom: 0;
}

.table thead th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--text-muted);
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    white-space: nowrap;
}

.table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

.table-responsive {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
    -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Badges & Pills */
.badge {
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    letter-spacing: -0.01em;
}

.badge-in-stock {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0;
}

.badge-low-stock {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a;
}

.badge-out-stock {
    background-color: #fee2e2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca;
}

/* Form Controls & Inputs */
.form-control, .form-select {
    border-radius: var(--radius-md);
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    font-size: 0.9rem;
    padding: 0.55rem 0.85rem;
    transition: all 0.15s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control::placeholder {
    color: #94a3b8;
}

.input-group-text {
    border-radius: var(--radius-md);
    border-color: #cbd5e1;
    background-color: #f8fafc;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 0.5rem 1rem;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn:active {
    transform: scale(0.98);
}

/* POS Terminal UI */
.pos-container {
    height: calc(100vh - 110px);
    min-height: 580px;
}

.pos-products-panel {
    height: calc(100vh - 195px);
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.pos-products-panel::-webkit-scrollbar {
    width: 5px;
}
.pos-products-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

#posProductsCol {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#posCartCol {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cartSlideIn {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* POS Modern Sleek Controls & Search Bar */
.pos-search-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.pos-search-input-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 50rem;
    transition: all 0.2s ease;
    height: 42px;
}

.pos-search-input-box:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pos-search-input-box input::placeholder {
    color: #94a3b8;
    font-size: 0.88rem;
}

.pos-category-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.pos-category-scroll::-webkit-scrollbar {
    display: none;
}

.cat-filter-btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.84rem;
    padding: 0.35rem 0.95rem !important;
    border-radius: 50rem !important;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.cat-filter-btn:hover {
    background: #e2e8f0;
    color: var(--text-dark);
}

.cat-filter-btn.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.pos-view-toggle {
    background: #f1f5f9;
    padding: 3px;
    border-radius: 50rem;
    border: 1px solid #e2e8f0;
}
.pos-view-toggle .btn {
    border-radius: 50rem !important;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border: none;
}

#btnToggleCart {
    height: 38px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}
#btnToggleCart:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.pos-search-item {
    transition: background-color 0.15s ease;
}

.pos-search-item:hover {
    background-color: #f1f5f9 !important;
}

.pos-cart-panel {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: cartSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.pos-cart-items {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.pos-cart-items::-webkit-scrollbar {
    width: 4px;
}
.pos-cart-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.pos-product-item {
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    overflow: hidden;
}

.pos-product-item:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.16);
    transform: translateY(-2px);
}

.pos-product-thumb {
    height: 110px;
    object-fit: contain;
    padding: 8px;
    width: 100%;
    transition: all 0.2s ease;
}

/* When Cart is open (Active), transform products into a clean serial list */
.pos-container.cart-active #posProductsGrid > .pos-grid-item {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

@media (min-width: 1650px) {
    .pos-container.cart-active #posProductsGrid > .pos-grid-item {
        width: 50% !important;
        max-width: 50% !important;
        flex: 0 0 50% !important;
    }
}

.pos-container.cart-active .pos-product-item {
    flex-direction: row !important;
    align-items: center;
    padding: 10px 14px;
    gap: 14px;
}

.pos-container.cart-active .pos-product-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.pos-container.cart-active .pos-product-item .pos-product-thumb {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px;
    max-width: 72px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 4px !important;
    margin: 0 !important;
    flex-shrink: 0;
}

.pos-container.cart-active .pos-product-item .pos-card-body {
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 !important;
    gap: 12px;
}

.pos-container.cart-active .pos-product-item .pos-card-info {
    flex: 1 1 auto;
    min-width: 0;
}

.pos-container.cart-active .pos-product-item .pos-card-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.pos-container.cart-active .pos-product-item .pos-product-title {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-dark);
}

.pos-container.cart-active .pos-product-item .pos-product-price {
    font-size: 1.05rem;
    font-weight: 700;
}

.pos-container.cart-active #posProductsListContainer table th,
.pos-container.cart-active #posProductsListContainer table td {
    padding: 0.45rem 0.5rem;
    font-size: 0.85rem;
}

/* A4 Commercial Invoice Sheet */
.invoice-box {
    max-width: 840px;
    margin: 0 auto;
    padding: 35px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Thermal 80mm Receipt */
.thermal-receipt {
    width: 78mm;
    margin: 0 auto;
    background: #ffffff;
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.35;
    color: #000000;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.thermal-receipt table {
    width: 100%;
    border-collapse: collapse;
}

.thermal-receipt th, .thermal-receipt td {
    padding: 3px 0;
}

.thermal-receipt .divider {
    border-top: 1px dashed #000000;
    margin: 8px 0;
}

/* Comprehensive Print Rules */
@media print {
    body * {
        visibility: hidden !important;
    }
    #printable-area, #printable-area * {
        visibility: visible !important;
    }
    #printable-area {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }
    .invoice-box {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }
    .thermal-receipt {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 auto !important;
        width: 78mm !important;
    }
    #sidebar, .top-navbar, .sidebar-backdrop, footer, .no-print {
        display: none !important;
    }
    body, #content, .wrapper, main {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* ==========================================================================
   Mobile & Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991.98px) {
    #sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
        box-shadow: var(--shadow-xl);
    }

    #sidebar.active {
        transform: translateX(0);
    }

    .pos-container {
        height: auto;
        min-height: auto;
    }

    .pos-products-panel {
        height: auto;
        max-height: 60vh;
    }

    .pos-cart-panel {
        height: auto;
        margin-top: 1rem;
    }

    .pos-cart-items {
        max-height: 350px;
    }
}

@media (max-width: 575.98px) {
    html {
        font-size: 13.5px;
    }

    .stat-card .stat-value {
        font-size: 1.35rem;
    }

    .top-navbar {
        padding: 0.65rem 0.85rem;
    }

    .store-badge {
        max-width: 160px;
    }
}
