/* ===============================
   RESET & VARIABLES
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c3e50;
    --primary-light: #34495e;
    --secondary: #3498db;
    --secondary-light: #5dade2;
    --success: #27ae60;
    --success-light: #2ecc71;
    --danger: #e74c3c;
    --danger-light: #ec7063;
    --warning: #f39c12;
    --warning-light: #f1c40f;
    --info: #3498db;
    --info-light: #5dade2;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --gray-light: #bdc3c7;
    --white: #ffffff;
    --sidebar-width: 280px;
    --header-height: 60px;
    --border-radius: 6px;
    --border-radius-lg: 12px;
    --box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --box-shadow-lg: 0 12px 24px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* ===============================
   GLOBAL STYLES
=============================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6fa;
    color: var(--dark);
    line-height: 1.5;
    overflow: hidden;
    height: 100vh;
}

/* ===============================
   AUTHENTICATION SCREENS
=============================== */
.auth-container {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--primary);
    padding: 15px;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.auth-container.active {
    display: flex;
}

.auth-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    text-align: center;
    margin-bottom: 25px;
}

.logo-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary);
    margin-bottom: 10px;
}

.logo h2 {
    color: var(--primary);
    margin-bottom: 3px;
    font-size: 22px;
}

.logo p {
    color: var(--gray);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-box .form-group {
    position: relative;
    margin-bottom: 15px;
}

.auth-box .input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    z-index: 1;
    font-size: 14px;
}

.auth-box input,
.auth-box select {
    width: 100%;
    padding: 10px 35px 10px 35px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

.auth-box input:focus,
.auth-box select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.auth-box .btn-block {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    margin-top: 10px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.auth-links a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 13px;
    transition: var(--transition);
}

.auth-links a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ===============================
   MAIN APP LAYOUT
=============================== */
.app-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Sidebar Toggle Button (Mobile) */
.sidebar-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: var(--transition);
}

.sidebar-toggle:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* Sidebar — off-canvas by default at EVERY breakpoint so the content keeps the full
   width. It never occupies layout space until opened; the top-bar hamburger (and, on
   touch layouts, the floating .sidebar-toggle) slides it in as an overlay. */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary);
    color: var(--white);
    height: 100vh;
    display: flex;
    flex-direction: column;
    transition: left 0.3s ease;
    overflow-y: auto;
    position: fixed;
    left: -100%;
    top: 0;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.sidebar-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    display: block;
}

.sidebar-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
    margin-bottom: 10px;
}

.sidebar-header h3 {
    margin-bottom: 3px;
    font-size: 18px;
}

.sidebar-header p {
    font-size: 11px;
    opacity: 0.8;
}

.sidebar-menu {
    flex: 1;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
}

.menu-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    border-radius: 8px;
    margin: 2px 10px;
}

.menu-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    transform: translateX(5px);
}

.menu-item.active {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.menu-item i {
    width: 20px;
    font-size: 16px;
    text-align: center;
}

.sidebar-footer {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-divider {
    padding: 12px 16px 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    border-bottom: 1px solid #eee;
    margin: 4px 0 4px;
}
.sidebar-divider span {
    display: inline-block;
    padding-bottom: 4px;
}

.user-info-sidebar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 5px;
}

.user-info-sidebar i {
    font-size: 20px;
    color: var(--secondary);
}

.app-version {
    font-size: 9px;
    opacity: 0.5;
    text-align: center;
    margin-top: 8px;
}

/* Main Content */
.main-content {
    flex: 1;
    background: #f5f6fa;
    overflow-y: auto;
    padding: 20px;
    transition: var(--transition);
}

.top-bar {
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--box-shadow);
    flex-wrap: wrap;
    gap: 15px;
    min-height: 65px;
    border: 1px solid rgba(0,0,0,0.05);
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
}

.home-btn {
    background: var(--primary);
    color: white;
    border-radius: 8px;
}

.home-btn:hover {
    background: var(--secondary);
}

.top-bar h2 {
    color: var(--primary);
    font-size: 22px;
    font-weight: 600;
}

.top-bar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.store-switcher { position: relative; margin: 0 4px; }
.store-switcher-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 6px; border: 1px solid #c8e6c9;
  background: #e8f5e9; color: #2e7d32; font-size: 12px; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: background .15s;
}
.store-switcher-btn:hover { background: #c8e6c9; }
.store-dropdown {
  position: absolute; top: 100%; right: 0; min-width: 200px;
  background: #fff; border: 1px solid #ddd; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15); z-index: 9999;
  max-height: 300px; overflow-y: auto; margin-top: 4px;
}
.store-dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; cursor: pointer; font-size: 13px; font-weight: 500;
  color: #333; border-bottom: 1px solid #f0f0f0; transition: background .1s;
}
.store-dropdown-item:last-child { border-bottom: none; }
.store-dropdown-item:hover { background: #f0f7ff; }
.store-dropdown-item.active { background: #e8f5e9; color: #2e7d32; font-weight: 700; }
.store-dropdown-item .store-icon { font-size: 14px; width: 20px; text-align: center; }
.store-dropdown-item.active .store-icon { color: #2e7d32; }
.store-dropdown-section { padding: 8px 14px 4px; font-size: 11px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: .5px; }

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #ddd;
    color: var(--gray);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-icon:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--danger);
    color: white;
    font-size: 9px;
    padding: 2px 4px;
    border-radius: 8px;
    min-width: 15px;
}

/* ===============================
   SCREENS
=============================== */
.screen {
    display: none;
    animation: fadeIn 0.3s ease;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===============================
   DASHBOARD CARDS
=============================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.dashboard-card {
    background: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    border-color: var(--secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.card-title {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 3px;
}

.card-value {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary);
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* ===============================
   CARDS - UNIFIED DESIGN
============================== */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    overflow: hidden;
}

.card-header {
    padding: 15px 18px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #f8f9fa;
}

.card-header h3 {
    font-size: 15px;
    color: var(--primary);
    font-weight: 600;
}

.inventory-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.inventory-actions .btn {
    white-space: nowrap;
}

.card-body {
    padding: 18px;
}

.card-footer {
    padding: 12px 18px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

/* ===============================
   CARDS
=============================== */
.card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
    overflow: hidden;
}

.card-header {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.card-header h3 {
    color: var(--primary);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card-body {
    padding: 15px;
}

/* ===============================
   TABLES
=============================== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background: var(--primary);
    color: var(--white);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table .badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-success {
    background: var(--success);
    color: var(--white);
}

.badge-danger {
    background: var(--danger);
    color: var(--white);
}

.badge-warning {
    background: var(--warning);
    color: var(--white);
}
.badge-info {
    background: var(--info);
    color: var(--white);
}

.badge-primary {
    background: var(--primary);
    color: var(--white);
}

.badge-secondary {
    background: var(--gray);
    color: var(--white);
}

/* ===============================
   MULTI-CURRENCY PRICES
============================== */
.multi-price {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.price-tag {
    font-size: 10px;
    padding: 2px 5px;
    background: var(--light);
    border-radius: 3px;
    white-space: nowrap;
}

/* ===============================
   FORMS
============================== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-weight: 500;
    font-size: 12px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
}

.form-control::placeholder {
    color: #aaa;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: normal;
    color: var(--dark);
    font-size: 13px;
}
.help-text {
    margin-top: 4px;
    font-size: 11px;
    color: #888;
    line-height: 1.4;
}
.inv-settings-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 10px;
}
.inv-settings-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
}
.inv-settings-toggle input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ===============================
   BUTTONS - MODERN UNIFIED DESIGN
============================== */
.btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled::before {
    display: none;
}

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

.btn-primary:hover {
    background: #2980b9;
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #219a52;
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-warning:hover {
    background: #e67e22;
}

.btn-info {
    background: var(--info);
    color: var(--white);
}

.btn-info:hover {
    background: #2980b9;
}

.btn-secondary {
    background: var(--gray);
    color: var(--white);
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--white);
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 4px 8px;
    font-size: 11px;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 11px;
}

/* ===============================
   POS LAYOUT
=============================== */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    height: calc(100vh - 120px);
    min-height: 700px;
}

.pos-products-section {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 15px;
    overflow-y: auto;
    box-shadow: var(--box-shadow);
    min-width: 0;
}

/* Search + category/currency/barcode/till controls stay pinned to the top of the
   product list while the products below scroll. */
.pos-toolbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--white);
    padding-bottom: 2px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.search-bar .search-wrapper {
    position: relative;
    flex: 1;
}

.search-bar .search-wrapper i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 14px;
    z-index: 1;
    pointer-events: none;
}

.search-bar input {
    width: 100%;
    padding: 8px 8px 8px 32px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 13px;
}

/* Search suggestions dropdown. It is positioned with position:fixed, anchored to the
   input via getBoundingClientRect() on every open (see _positionSuggestionPanel), so it
   is never clipped by any scroll container and its OWN list always scrolls reliably. */
.search-suggestions {
    position: fixed;
    background: #fff;
    border: 1px solid #d9dee3;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    z-index: 9990;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}
.search-suggestions .ss-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f5;
    font-size: 13px;
}
.search-suggestions .ss-item:last-child { border-bottom: 0; }
.search-suggestions .ss-item.active,
.search-suggestions .ss-item:hover { background: #eef6fd; }
.search-suggestions .ss-main { min-width: 0; }
.search-suggestions .ss-name {
    font-weight: 600;
    color: var(--primary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-suggestions .ss-sub { color: var(--gray); font-size: 11px; display: block; margin-top: 2px; }
.search-suggestions .ss-price { color: var(--secondary); font-weight: 700; white-space: nowrap; }
.search-suggestions .ss-empty { padding: 14px; color: var(--gray); font-size: 13px; text-align: center; }

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}

.barcode-input {
    position: relative;
}

.barcode-input i {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 14px;
}

.barcode-input input {
    width: 100%;
    padding: 8px 8px 8px 30px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 13px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.product-card {
    border: 1px solid #eee;
    padding: 8px;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
    border-color: var(--secondary);
}

.product-card img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 6px;
}

.product-card.low-stock {
    border-left: 3px solid var(--danger);
}

.product-card i {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 6px;
}

.product-card strong {
    font-size: 12px;
    display: block;
    margin-bottom: 3px;
}

.product-card div {
    font-size: 12px;
}

.product-card small {
    font-size: 10px;
    color: var(--gray);
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.view-btn {
    background: var(--white);
    border: 1px solid var(--gray-light);
    padding: 6px 10px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

.view-btn:hover {
    background: var(--light);
}

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

/* Products List View */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.product-list-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.product-list-item:hover {
    border-color: var(--secondary);
    box-shadow: var(--box-shadow);
}

.product-list-item.low-stock {
    border-left: 3px solid var(--danger);
}

.product-list-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
}

.product-list-item i {
    font-size: 28px;
    color: var(--secondary);
    margin-right: 12px;
    width: 40px;
    text-align: center;
}

.product-list-item .product-info {
    flex: 1;
}

.product-list-item .product-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.product-list-item .product-stock {
    font-size: 11px;
    color: var(--gray);
}

.product-list-item .product-price {
    font-weight: 600;
    color: var(--primary);
    margin-right: 12px;
}

/* ===============================
   SHOPPING CART - ENHANCED VERSION
=============================== */

/* The cart is a slide-in drawer on EVERY screen size so the product grid always gets
   the full width. A floating shopping-trolley button (bottom-right) toggles it. */
.cart-section {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(460px, 100vw);
    height: 100dvh;
    background: var(--white);
    border-radius: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    overflow-y: auto;
    min-height: 0;
    border-left: 1px solid #eef2f6;
    transform: translateX(105%);
    transition: transform .3s ease;
    z-index: 1200;
}
.cart-section.open { transform: translateX(0); }

/* Floating shopping-trolley button (bottom-right) — always available, all sizes. */
.pos-cart-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary);
    color: #fff;
    border: 0;
    cursor: pointer;
    border-radius: 28px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 22px rgba(52,152,219,0.45);
    z-index: 1300;
    transition: all .2s ease;
}
.pos-cart-toggle:hover { filter: brightness(1.06); }
.pos-cart-toggle i { font-size: 18px; }
.pos-cart-toggle .cart-badge {
    background: #fff;
    color: var(--secondary);
    border-radius: 14px;
    padding: 1px 9px;
    font-size: 14px;
    font-weight: 800;
    min-width: 24px;
    text-align: center;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary);
}

.cart-header h3 {
    color: var(--primary);
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-header h3 i {
    color: var(--secondary);
    font-size: 24px;
}

.cart-item-count {
    background: var(--secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(52,152,219,0.3);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    max-height: 450px;
    min-height: 350px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

/* Custom scrollbar for cart items */
.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: #2980b9;
}

.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    background: white;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

.empty-cart-message i {
    font-size: 64px;
    margin-bottom: 15px;
    color: var(--secondary);
    opacity: 0.3;
}

.empty-cart-message p {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark);
}

.empty-cart-message small {
    font-size: 14px;
    color: var(--gray);
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-row:hover {
    background: #f8fafc;
    border-color: var(--secondary);
    box-shadow: 0 4px 12px rgba(52,152,219,0.15);
    transform: translateY(-2px);
}

.cart-item-details {
    flex: 2;
}

.cart-item-name {
    font-weight: 600;
    color: var(--primary);
    font-size: 16px;
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 14px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-price strong {
    color: var(--success);
    font-size: 16px;
    background: #e8f5e9;
    padding: 3px 8px;
    border-radius: 20px;
}

.cart-item-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #f8fafc;
    padding: 5px;
    border-radius: 8px;
}

.cart-item-controls .btn-icon {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: bold;
}

.cart-item-controls .btn-decrease {
    background: #fff3e0;
    color: #f39c12;
}

.cart-item-controls .btn-decrease:hover {
    background: #f39c12;
    color: white;
    transform: scale(1.05);
}

.cart-item-controls .btn-increase {
    background: #e3f2fd;
    color: var(--secondary);
}

.cart-item-controls .btn-increase:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.05);
}

.cart-item-controls .btn-remove {
    background: #ffebee;
    color: var(--danger);
}

.cart-item-controls .btn-remove:hover {
    background: var(--danger);
    color: white;
    transform: scale(1.05);
}

.cart-item-quantity {
    min-width: 45px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    color: var(--primary);
    background: white;
    padding: 8px 0;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* Cart Summary */
.cart-summary {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px dashed #dee2e6;
}

.summary-row:last-of-type {
    border-bottom: none;
}

.summary-row.total {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
    border-top: 2px solid var(--secondary);
    padding-top: 15px;
    margin-top: 10px;
    border-bottom: none;
}

.summary-value {
    font-weight: 600;
    color: var(--dark);
    background: white;
    padding: 3px 12px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Cart Actions */
.cart-actions {
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
}

.cart-actions .form-group {
    margin-bottom: 15px;
}

.cart-actions label {
    display: block;
    margin-bottom: 5px;
    color: var(--primary);
    font-weight: 500;
    font-size: 13px;
}

.cart-actions .form-control {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.cart-actions .form-control:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

.payment-fields {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.change-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e8f5e9;
    padding: 12px;
    border-radius: 8px;
}

.change-display label {
    margin-bottom: 0;
    color: var(--success);
    font-weight: 600;
}

.change-amount {
    font-size: 20px;
    font-weight: bold;
    color: var(--success);
    background: white;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.action-buttons {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.pos-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 15px;
}

.pos-action-buttons .btn {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-buttons .btn {
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-buttons .btn-success {
    background: var(--success);
    color: white;
}

.action-buttons .btn-success:hover {
    background: var(--success);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39,174,96,0.3);
}

.action-buttons .btn-warning {
    background: var(--warning);
    color: white;
}

.action-buttons .btn-warning:hover {
    background: var(--warning);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243,156,18,0.3);
}

.action-buttons .btn-danger {
    background: var(--danger);
    color: white;
}

.action-buttons .btn-danger:hover {
    background: var(--danger);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231,76,60,0.3);
}

/* Held Sales */
.held-sales {
    margin-top: 15px;
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.held-sales h4 {
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.held-sales-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.held-sales-list .held-item {
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.held-sales-list .held-item:hover {
    background: white;
    border-color: var(--secondary);
    transform: translateX(5px);
}

.held-item-info {
    flex: 1;
}

.held-item-time {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 3px;
}

.held-item-details {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
}

.held-item-total {
    font-weight: bold;
    color: var(--success);
    font-size: 14px;
}

.held-item .btn-retrieve {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.held-item .btn-retrieve:hover {
    background: #2980b9;
    transform: scale(1.05);
}

/* ===============================
   FILTERS
============================== */
.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.filters select,
.filters input {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    width: 100%;
    transition: all 0.3s ease;
}

.filters select:focus,
.filters input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 14px;
}

.search-box input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    outline: none;
}

/* ===============================
   QUICK ACTIONS
============================== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.quick-actions .btn {
    padding: 14px 16px;
    font-size: 13px;
}

.quick-actions .btn {
    padding: 10px;
    font-size: 13px;
}

/* ===============================
   MODALS
=============================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal-content {
    background: var(--white);
    margin: 30px auto;
    width: 90%;
    max-width: 500px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

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

.modal-header {
    padding: 18px 20px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    opacity: 0.9;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: white;
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
    max-height: 65vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8f9fa;
    position: sticky;
    bottom: 0;
}

/* ===============================
   SETTINGS SECTIONS
=============================== */
.settings-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-section {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.settings-header {
    padding: 12px 15px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.settings-header:hover {
    background: var(--secondary);
}

.settings-header h3 {
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-header i {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.settings-content {
    display: none;
    padding: 15px;
}

.settings-content.active {
    display: block;
}

/* Additional styles for the category/unit lists */
.category-item, .unit-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.category-item:hover, .unit-item:hover {
    background: #e9ecef;
}

.category-item span, .unit-item span {
    flex: 1;
    font-size: 14px;
}

.category-item button, .unit-item button {
    margin-left: 10px;
    padding: 4px 8px;
    font-size: 12px;
}

.add-form {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.add-form input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.add-form button {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.add-form button:hover {
    background: var(--secondary);
}

/* ===============================
   SUPPORT PANEL
=============================== */
.support-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    background: white;
    box-shadow: -3px 0 15px rgba(0,0,0,0.1);
    z-index: 10000;
    overflow-y: auto;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.support-panel-header {
    padding: 12px 15px;
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.support-panel-header h3 {
    margin: 0;
    font-size: 16px;
}

.support-panel-header h3 i {
    margin-right: 6px;
    color: var(--secondary);
}

.close-support {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.close-support:hover {
    opacity: 0.8;
}

.support-panel-body {
    padding: 15px;
}

.support-logo {
    text-align: center;
    margin-bottom: 15px;
}

.support-logo img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary);
    margin-bottom: 6px;
}

.support-logo h3 {
    color: var(--primary);
    margin-bottom: 2px;
    font-size: 16px;
}

.support-logo p {
    color: var(--gray);
    font-size: 11px;
}

.support-section {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 12px;
    margin-bottom: 12px;
}

.support-section h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 6px;
}

.support-section h4 i {
    color: var(--secondary);
    font-size: 13px;
}

.support-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #eee;
    font-size: 13px;
}

.contact-item:hover {
    background: var(--secondary);
    color: white;
    transform: translateX(3px);
}

.contact-item i {
    width: 24px;
    height: 24px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.contact-item:hover i {
    background: white;
    color: var(--secondary);
}

.help-centre-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 600;
}

.help-centre-cta:hover {
    transform: translateX(3px);
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.35);
}

.help-centre-cta > i:first-child {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.help-centre-cta > span {
    flex: 1;
    line-height: 1.3;
}

.help-centre-cta small {
    display: block;
    font-weight: 400;
    font-size: 11px;
    opacity: 0.85;
    margin-top: 2px;
}

.help-centre-cta > i:last-child {
    font-size: 12px;
    opacity: 0.8;
}

.help-centre-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.help-centre-link {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    background: white;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 12px;
    color: var(--text-primary, #2c3e50);
}

.help-centre-link i {
    color: var(--secondary);
    font-size: 12px;
    width: 18px;
    text-align: center;
}

.help-centre-link:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.whatsapp-qr {
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: var(--border-radius);
}

.whatsapp-qr p {
    margin-bottom: 6px;
    color: var(--gray);
    font-size: 11px;
}

.whatsapp-qr img {
    width: 100px;
    height: 100px;
    border-radius: var(--border-radius);
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px;
}

.hours-grid div {
    padding: 6px;
    background: white;
    border-radius: var(--border-radius);
    font-size: 11px;
    border-left: 2px solid var(--secondary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq-item {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.faq-question {
    padding: 10px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: var(--transition);
    font-size: 12px;
}

.faq-question:hover {
    background: #e0e0e0;
}

.faq-question i {
    color: var(--secondary);
    font-size: 11px;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 10px;
    background: #fafafa;
    border-top: 1px solid #ddd;
    display: none;
    line-height: 1.4;
    font-size: 12px;
}

/* Support Overlay */
.support-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
}

/* ===============================
   NOTIFICATIONS - ENHANCED
============================== */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 99999;
    width: 320px;
    pointer-events: none;
}

.notification {
    background: var(--white);
    color: var(--dark);
    padding: 10px 12px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.3s ease;
    pointer-events: auto;
    border: none;
    border-left: 4px solid;
}

.notification {
    background: var(--white);
    color: var(--dark);
    padding: 14px 16px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    border: none;
    border-left: 5px solid;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.hide {
    opacity: 0;
    transform: translateX(120%) scale(0.9);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon i {
    font-size: 18px;
    color: white;
}

.notification.success {
    border-left-color: var(--success);
}

.notification.success .notification-icon {
    background: var(--success);
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.error .notification-icon {
    background: var(--danger);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification.warning .notification-icon {
    background: var(--warning);
}

.notification.info {
    border-left-color: var(--info);
}

.notification.info .notification-icon {
    background: var(--info);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-close {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(0,0,0,0.1);
    color: var(--dark);
}

.notification-close i {
    font-size: 12px;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(0,0,0,0.1);
}

.notification-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    animation: notificationProgress 4s linear forwards;
}

.notification.success .notification-progress::after {
    background: var(--success);
}

.notification.error .notification-progress::after {
    background: var(--danger);
}

.notification.warning .notification-progress::after {
    background: var(--warning);
}

.notification.info .notification-progress::after {
    background: var(--info);
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===============================
   REPORTS
=============================== */
.report-content .dashboard-grid {
    margin-bottom: 12px;
}

/* ===============================
   PRODUCT IMAGE INPUT - CAMERA & UPLOAD
============================== */
.image-input-section {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    background: #fafafa;
}

.image-options {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.image-options .btn {
    flex: 1;
}

.image-options .btn.active {
    background: var(--secondary);
    color: white;
}

.image-source-section {
    margin-bottom: 10px;
}

.camera-container {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.camera-container video {
    width: 100%;
    max-height: 200px;
    display: block;
}

.camera-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.image-preview {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.image-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--secondary);
}

.btn-remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.btn-remove-image:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.report-content .table {
    background: var(--white);
}

#reportCharts {
    margin-bottom: 15px;
    height: 250px;
}

/* ===============================
   CUSTOM DIALOG ANIMATION
=============================== */
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===============================
   LOW STOCK INDICATOR
=============================== */
.lowStock {
    background-color: #fff3cd !important;
}

.lowStock td {
    color: #856404;
}

/* ===============================
   CLICKABLE INVENTORY ROWS (product details)
=============================== */
#inventoryTableBody tr.inv-clickable {
    cursor: pointer;
}

#inventoryTableBody tr.inv-clickable:hover td {
    background-color: #f1f5ff;
}

#inventoryTableBody tr.inv-clickable.lowStock:hover td {
    background-color: #fdf3d7;
}

/* ===============================
   CASH WIDGET - ENHANCED
=============================== */
.cash-widget {
    background: var(--primary);
    color: white;
    border: none;
    padding: 20px;
}

.cash-widget:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cash-widget .card-header {
    background: transparent;
    border: none;
    padding: 0;
}

.cash-widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.cash-widget-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cash-widget-title {
    flex: 1;
}

.cash-widget-title h3 {
    color: white;
    font-size: 16px;
    margin-bottom: 4px;
}

.cash-widget-title .badge {
    font-size: 10px;
    padding: 3px 8px;
}

.cash-widget-body {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
}

.cash-balance-display {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.cash-label {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.cash-amount {
    font-size: 28px;
    font-weight: bold;
    color: white;
}

.cash-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cash-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.cash-detail-item span:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
}

.cash-detail-item span:last-child {
    font-weight: 600;
}

.cash-widget .btn {
    padding: 6px 12px;
    font-size: 12px;
}

.cash-widget .btn i {
    margin-right: 4px;
}

/* ===============================
   DASHBOARD CARDS - UNIFIED DESIGN
============================== */
.dashboard-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.card-title {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.card-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

/* Card Header */
.dashboard-card .card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0;
}

.dashboard-card .card-header h3 {
    font-size: 14px;
    color: var(--primary);
}

/* Cash Widget Enhancement */
.cash-widget {
    background: var(--primary);
    color: white;
}

.cash-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.3);
}

.cash-widget .card-icon {
    background: rgba(255,255,255,0.2);
    box-shadow: none;
}

.cash-widget .card-title {
    color: rgba(255,255,255,0.8);
}

.cash-widget .card-value {
    color: white;
}

/* Variants for different cards */
.dashboard-card.sales .card-icon {
    background: var(--success);
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

.dashboard-card.inventory .card-icon {
    background: var(--danger);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.dashboard-card.customers .card-icon {
    background: #9b59b6;
    box-shadow: 0 4px 10px rgba(155, 89, 182, 0.3);
}

.dashboard-card.reports .card-icon {
    background: var(--warning);
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

.dashboard-card.expenses .card-icon {
    background: var(--danger);
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.dashboard-card.suppliers .card-icon {
    background: #1abc9c;
    box-shadow: 0 4px 10px rgba(26, 188, 156, 0.3);
}

.cash-modal-icon {
    width: 80px;
    height: 80px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
}

.cash-modal-closed h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.cash-modal-closed p {
    color: var(--gray);
    margin-bottom: 15px;
}

.cash-modal-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
}

.cash-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cash-date {
    font-weight: 600;
    color: var(--primary);
    font-size: 13px;
}

.cash-date i {
    margin-right: 6px;
    color: var(--secondary);
}

.cash-main-balance {
    text-align: center;
    padding: 15px;
    background: var(--primary);
    border-radius: 10px;
    color: white;
    margin-bottom: 15px;
}

.cash-main-balance span {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.cash-main-balance strong {
    font-size: 24px;
}

.cash-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cash-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    font-size: 13px;
}

.cash-breakdown-item span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cash-breakdown-item span:last-child {
    font-weight: 600;
    color: var(--primary);
}

.modal-body h5 {
    color: var(--primary);
    margin: 15px 0 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cash-register-status .badge {
    padding: 5px 12px;
    font-size: 12px;
}

/* Cash Management Tab Buttons */
.cash-tab-btn {
    padding: 6px 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-size: 11px;
    white-space: nowrap;
    transition: all 0.2s;
    color: #555;
}
.cash-tab-btn:hover {
    background: #f0f0f0;
}
.cash-tab-btn.active {
    background: white;
    border-bottom-color: white;
    color: #667eea;
    font-weight: bold;
}

/* Modal close button styling */
.modal .close,
.modal .close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    opacity: 0.8;
    transition: all 0.2s;
}

.modal .close:hover,
.modal .close-btn:hover {
    opacity: 1;
    color: var(--danger);
    transform: scale(1.1);
}

.modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal .modal-header h3 {
    margin: 0;
    flex: 1;
}

.modal .modal-header h3 i {
    margin-right: 8px;
    color: var(--secondary);
}

/* ===============================
   TEXT UTILITIES
=============================== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

.text-warning {
    color: var(--warning);
}

.text-info {
    color: var(--info);
}

.hide-mobile {
    display: inline;
}

/* ===============================
   RESPONSIVE DESIGN
=============================== */
@media (max-width: 1024px) {
    .pos-layout {
        grid-template-columns: 1fr;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-items {
        max-height: 350px;
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: flex;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 100;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 260px;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-close {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px 10px;
    }
    
    .top-bar {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        border-radius: var(--border-radius);
        margin-bottom: 15px;
        padding: 8px 12px;
        height: auto;
        min-height: 50px;
        width: 100%;
    }
    
    .top-bar-left h2 {
        font-size: 16px;
    }
    
    .hide-mobile {
        display: none;
    }
    
    .screen {
        padding-top: 0;
        margin-top: 0;
    }
    
    .dashboard-grid {
        margin-top: 0;
        gap: 10px;
    }
    
.pos-layout {
        grid-template-columns: 1fr;
        height: auto;
        gap: 10px;
        margin-top: 0;
    }
    
    .cart-items {
        max-height: 300px;
        min-height: 250px;
    }
    
    .cart-header h3 {
        font-size: 18px;
    }
    
    .cart-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .cart-item-details {
        width: 100%;
    }
    
    .cart-item-controls {
        width: 100%;
        justify-content: flex-end;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .action-buttons .btn {
        padding: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .filters {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px auto;
    }
    
    .support-panel {
        width: 100%;
    }
    
    .filter-bar {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .card-header {
        padding: 10px 12px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .header-actions .btn {
        flex: 1;
    }
    
    .table th,
    .table td {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .settings-header {
        padding: 10px 12px;
    }
    
    .settings-header h3 {
        font-size: 13px;
    }
    
    .settings-content {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 20px 15px;
    }
    
    .logo-img {
        width: 60px;
        height: 60px;
    }
    
    .logo h2 {
        font-size: 20px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    }
    
    .card-header h3 {
        justify-content: center;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
    
.header-actions .btn {
        width: 100%;
        margin: 2px 0;
    }
    
    .cart-header h3 { font-size: 15px; }
    .cart-item-qty-input { width: 46px !important; }
    .cart-total { font-size: 20px !important; }
    
    .cart-items {
        max-height: 250px;
        min-height: 200px;
    }
    
    .cart-item-controls {
        gap: 5px;
    }
    
    .cart-item-controls .btn-icon {
        width: 42px;
        height: 42px;
    }
    
    .cart-item-quantity {
        min-width: 40px;
        font-size: 16px;
        padding: 6px 0;
    }
    
    .summary-row {
        font-size: 13px;
    }
    
    .summary-row.total {
        font-size: 18px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 6px;
    }
    
    .product-card {
        padding: 6px;
    }
    
    .product-card img {
        width: 40px;
        height: 40px;
    }
    
    .product-card i {
        font-size: 28px;
    }
    
    .product-card strong {
        font-size: 11px;
    }
    
    .product-card div {
        font-size: 11px;
    }
    
    .top-bar-actions {
        gap: 4px;
    }
    
    .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    
    .filters select,
    .filters input {
        font-size: 11px;
        padding: 5px 6px;
    }
    
    .search-box input {
        padding: 5px 5px 5px 28px;
        font-size: 11px;
    }
    
    .search-box i {
        font-size: 11px;
        left: 6px;
    }
    
    .support-panel {
        width: 100%;
    }
    
    .support-section {
        padding: 10px;
    }
    
    .contact-item {
        padding: 6px;
        font-size: 12px;
    }
    
    .contact-item i {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
    }
    
    .hours-grid div {
        font-size: 10px;
        padding: 4px;
    }
    
    .faq-question {
        padding: 8px;
        font-size: 11px;
    }
    
    .faq-answer {
        padding: 8px;
        font-size: 11px;
    }
}

/* Landscape Mode for Mobile (phones + tablets) — hide sidebar behind floating toggle */
@media (max-width: 1024px) and (orientation: landscape) and (hover: none) {
    .sidebar-toggle {
        display: flex;
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 100;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        width: 240px;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .sidebar-close {
        display: block;
    }
    
    .sidebar:not(.active) {
        left: -100%;
    }
    
    .main-content {
        margin-left: 0;
        padding: 15px 10px;
    }
    
    .top-bar {
        position: relative;
        margin-bottom: 10px;
        padding: 8px 12px;
    }
    
.pos-layout {
        grid-template-columns: 1fr;
        gap: 10px;
        height: auto;
        min-height: 0;
    }
    
    .cart-items {
        max-height: 250px;
        min-height: 150px;
    }
    
    .cart-item-row {
        flex-direction: row;
        padding: 10px;
    }
    
    .cart-item-controls {
        width: auto;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .support-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* ===============================
   PRINT STYLES
=============================== */
@media print {
    .sidebar,
    .top-bar,
    .btn,
    .modal-footer,
    .no-print,
    .support-panel,
    .sidebar-toggle,
    .notification-container,
    .quick-actions,
    .cart-actions,
    .cart-section,
    .pos-cart-toggle,
    .held-sales {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .screen {
        display: block !important;
    }
    
    #receiptModal .modal-content {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===============================
   ANIMATIONS
=============================== */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Scanner Styles */
#scanner-container {
    width: 100%;
    height: 250px;
    background: #000;
    border-radius: var(--border-radius);
    overflow: hidden;
}

#scanner-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#scanner-result {
    margin-top: 8px;
    font-size: 13px;
    color: var(--primary);
}

/* Support Menu Item */
.support-menu-item {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.support-menu-item i {
    color: #f39c12;
}

/* Home Button */
.home-btn {
    background: var(--primary);
    color: white;
}

.home-btn:hover {
    background: var(--secondary);
}

/* Scanner styles for product addition */
.barcode-input-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

.barcode-input-group input {
    flex: 1;
}

.scan-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scan-btn:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.scan-btn i {
    font-size: 18px;
}

/* Scanner modal */
.scanner-container {
    width: 100%;
    height: 300px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 15px;
}

.scanner-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.scanner-status {
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    color: var(--gray);
}

.scanner-status i {
    margin-right: 5px;
    color: var(--secondary);
}

.scanner-result {
    text-align: center;
    margin: 10px 0;
    min-height: 50px;
}

.scanner-result .success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    animation: pulse 1s;
}

.scanner-result .success i {
    color: #28a745;
    margin-right: 5px;
}

.scanner-instructions {
    text-align: center;
    margin: 15px 0;
    padding: 10px;
    background: #e3f2fd;
    border-radius: 5px;
}

.scanner-instructions p {
    margin: 5px 0;
}

.scanner-instructions .small {
    font-size: 12px;
    color: var(--gray);
}

.scanner-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color, #ddd);
  z-index: 1;
}

.divider span {
  background: var(--card-bg, white);
  padding: 0 10px;
  position: relative;
  z-index: 2;
  color: var(--text-secondary, #666);
}

.btn-google {
  background: white;
  color: #444;
  border: 1px solid #ddd;
  margin-bottom: 15px;
}

.btn-google:hover {
  background: #f5f5f5;
}

.btn-google i {
  color: #4285f4;
  margin-right: 8px;
}

/* Add to your style.css or in <style> tags */
.btn-google {
  background: white;
  color: #444;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-google:hover {
  background: #f5f5f5;
}

.divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
  color: #666;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ddd;
  z-index: 1;
}

.divider span {
  background: white;
  padding: 0 10px;
  position: relative;
  z-index: 2;
  font-size: 14px;
}

/* Input with icon styling */
.input-with-icon {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}

.input-with-icon .form-control {
  padding-left: 40px;
  width: 100%;
}

/* Alternative: If you prefer the icon inside the input border */
.input-with-icon .form-control:focus + .input-icon {
  color: var(--primary);
}

/* Password wrapper for toggle icon positioning */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-wrapper input {
  padding-right: 40px !important;
  width: 100%;
}
.auth-box .password-wrapper input {
  padding-left: 35px;
}

/* Password toggle icon */
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  font-size: 16px;
  z-index: 2;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.toggle-password:hover {
  color: var(--primary);
}

/* Form group styling */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
  font-size: 14px;
}

/* Form control base styling */
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: white;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Button styling */
.btn-block {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 10px;
}

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

.btn-primary:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #6c757d;
  color: white;
  border: none;
}

.btn-secondary:hover {
  background: #5a6268;
}

/* Auth card styling */
.auth-card {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  animation: slideUp 0.3s ease;
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-header h2 {
  color: #333;
  margin: 10px 0;
  font-size: 24px;
}

.auth-header p {
  color: #666;
  font-size: 14px;
}

.auth-links a {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Success message styling */
.success-message {
  text-align: center;
  padding: 20px 0;
}

.success-message h3 {
  color: #2ecc71;
  margin: 15px 0 10px;
}

.success-message p {
  margin: 10px 0;
  color: #555;
}

.email-instructions {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  font-size: 12px;
  border-left: 3px solid var(--primary);
}

.email-instructions a {
  color: var(--primary);
  text-decoration: none;
}

.email-instructions a:hover {
  text-decoration: underline;
}

.text-muted {
  color: #6c757d;
}

/* Animation */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 25px;
    margin: 15px;
  }
  
  .auth-header h2 {
    font-size: 20px;
  }
  
  .form-control {
    padding: 8px 12px;
  }
  
  .input-icon {
    left: 10px;
    font-size: 14px;
  }
  
  .input-with-icon .form-control {
    padding-left: 35px;
  }
}

/* Scanner confirmation panel */
.btn-warning {
  background: #f39c12;
  color: white;
}
.btn-warning:hover {
  background: #e67e22;
}
#scanner-confirmation {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  animation: fadeIn 0.3s ease;
}
#scanned-code {
  font-family: monospace;
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
  background: white;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Add to your existing CSS */
.export-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.export-buttons-group,
.import-buttons-group,
.backup-buttons-group {
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 8px;
}

.export-buttons-group h4,
.import-buttons-group h4,
.backup-buttons-group h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.export-buttons-group button,
.import-buttons-group button,
.backup-buttons-group button {
    margin-right: 10px;
    margin-bottom: 10px;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
}

.report-content {
    margin-top: 20px;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow-x: auto;
    border: 1px solid #eef0f2;
    line-height: 1.6;
}
.report-content h5 {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px;
}
.report-content hr {
    border: none;
    border-top: 1px solid #eef0f2;
    margin: 20px 0;
}
.report-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
}
.report-controls select,
.report-controls input[type="date"] {
    min-width: 160px;
}
.report-controls .export-buttons {
    display: flex;
    gap: 8px;
}
.report-summary {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 0;
    border: 1px solid #e8ecf4;
}

.report-summary h5 {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px;
}

.report-summary p {
    margin: 4px 0;
    font-size: 14px;
    color: #555;
}

.cash-balance, .cash-status {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 16px;
}
.cash-balance strong {
    font-size: 20px;
    color: #2c3e50;
}

#editSaleCart .cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #eee;
}
#editSaleCart .edit-qty {
  text-align: center;
  margin-right: 8px;
}
.cart-summary {
  text-align: right;
  margin-top: 15px;
  border-top: 1px solid #ddd;
  padding-top: 10px;
}

/* Financial Reports Styles */
.financial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin: 15px 0;
}

.financial-card {
  background: var(--white);
  padding: 15px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  border-left: 4px solid var(--gray);
}

.financial-card.income {
  border-left-color: var(--success);
}

.financial-card.expense {
  border-left-color: var(--danger);
}

.financial-card.profit {
  border-left-color: var(--primary);
}

.financial-card.summary {
  border-left-color: var(--warning);
}

.financial-card h6 {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}

.financial-card p {
  margin: 5px 0;
  font-size: 14px;
}

.financial-card hr {
  margin: 10px 0;
  border: none;
  border-top: 1px solid var(--light);
}

.financial-card strong {
  color: var(--dark);
}

.report-details {
  margin-top: 20px;
}

.report-details h5 {
  margin-bottom: 10px;
  font-size: 16px;
}

.text-success {
  color: var(--success) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.progress-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.progress-bar div {
  height: 8px;
  background: var(--success);
  border-radius: 4px;
  min-width: 20px;
  max-width: 100px;
}

/* ===============================
   BULK ACTIONS BAR
============================== */
.bulk-actions-bar {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.bulk-actions-bar.visible {
  display: flex;
}

.bulk-actions-bar .row-checkbox,
.bulk-actions-bar input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

tr.selected {
  background-color: rgba(52, 152, 219, 0.1) !important;
}

tr:hover.selected {
  background-color: rgba(52, 152, 219, 0.15) !important;
}

.row-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* ===============================
   SALES TABLES STYLES
   ============================== */
.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--light);
}

.screen-header h2 {
  color: var(--dark);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.screen-header h2 i {
  color: var(--info);
}

.summary-cards {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.summary-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--box-shadow);
  flex: 1;
  min-width: 200px;
}

.summary-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.summary-content {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 2px;
}

.summary-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
}

.filter-bar {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: flex-end;
  background: var(--light);
  padding: 15px;
  border-radius: var(--border-radius);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-group .form-control {
  min-width: 140px;
}

.table-container {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.sales-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sales-table thead {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
}

.sales-table thead th {
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.sales-table thead th i {
  margin-right: 5px;
  opacity: 0.8;
}

.sales-table tbody tr {
  border-bottom: 1px solid var(--light);
  transition: var(--transition);
}

.sales-table tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.sales-table tbody tr:last-child {
  border-bottom: none;
}

.sales-table tbody td {
  padding: 12px;
  color: var(--dark);
  vertical-align: middle;
}

.sales-table .date-cell {
  white-space: nowrap;
}

.sales-table .date-cell .date {
  font-weight: 500;
  color: var(--dark);
}

.sales-table .date-cell .time {
  font-size: 0.8rem;
  color: var(--gray);
}

.sales-table .receipt-cell {
  font-family: monospace;
  font-weight: 600;
  color: var(--info);
}

.sales-table .amount-cell {
  font-weight: 700;
  color: var(--success);
  font-size: 1rem;
}

.sales-table .payment-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.sales-table .payment-badge.cash {
  background: rgba(46, 204, 113, 0.1);
  color: #27ae60;
}

.sales-table .payment-badge.card {
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
}

.sales-table .payment-badge.mobile {
  background: rgba(155, 89, 182, 0.1);
  color: #9b59b6;
}

.sales-table .payment-badge.bank {
  background: rgba(241, 196, 15, 0.1);
  color: #f1c40f;
}

.sales-table .actions-cell {
  white-space: nowrap;
}

.sales-table .btn-action {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-right: 5px;
  cursor: pointer;
  transition: var(--transition);
}

.sales-table .btn-action:hover {
  transform: translateY(-1px);
  box-shadow: var(--box-shadow);
}

.sales-table .btn-action.btn-primary {
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
  border: none;
}

.sales-table .btn-action.btn-primary:hover {
  background: #3498db;
  color: white;
}

.sales-table .btn-action.btn-danger {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: none;
}

.sales-table .btn-action.btn-danger:hover {
  background: #e74c3c;
  color: white;
}

.sales-table .empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray);
}

.sales-table .empty-state i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.3;
}

.sales-table .empty-state p {
  font-size: 1rem;
}

.loading-row td {
  text-align: center;
  padding: 40px;
  color: var(--gray);
}

.loading-row i {
  margin-right: 10px;
}

/* Responsive Table */
@media (max-width: 768px) {
  .summary-cards {
    flex-direction: column;
  }
  
  .summary-card {
    min-width: 100%;
  }
  
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group .form-control {
    min-width: 100%;
  }
  
  .sales-table {
    font-size: 0.8rem;
  }
  
  .sales-table thead th,
  .sales-table tbody td {
    padding: 10px 8px;
  }
}

.status-active {
  color: var(--success);
  font-weight: 600;
}
.status-warning {
  color: var(--warning);
  font-weight: 600;
}
.status-danger {
  color: var(--danger);
  font-weight: 600;
}

/* ===============================
   OFFLINE & SYNC UI
============================== */
.sync-status {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sync-status.online {
  background: #d4edda;
  color: #155724;
}
.sync-status.offline {
  background: #f8d7da;
  color: #721c24;
}
.sync-status.syncing {
  background: #fff3cd;
  color: #856404;
}
.sync-status.pending {
  background: #cce5ff;
  color: #004085;
}
.offline-badge {
  display: none;
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 9999;
  background: #e74c3c;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  align-items: center;
  gap: 6px;
}
.offline-badge.show {
  display: flex;
}

/* Auth loading overlay */
.auth-loading-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.auth-loading-overlay.active {
  display: flex;
}
.auth-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}
@keyframes auth-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.auth-loading-text {
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* ===============================
   PO PRODUCT SEARCH DROPDOWN
============================== */

#poProductDropdown .dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  border-bottom: 1px solid #eee;
  transition: background 0.15s;
}

#poProductDropdown .dropdown-item:last-child {
  border-bottom: none;
}

#poProductDropdown .dropdown-item:hover,
#poProductDropdown .dropdown-item.active {
  background: #e8f0fe;
  color: #1a73e8;
}

#poProductDropdown .dropdown-item.disabled {
  color: #999;
  cursor: default;
  font-style: italic;
}

/* ===============================
   MOBILE MODAL & OVERLAY SAFETY NET
   Constrains fixed-position dialogs (including JS-inline overlays) so they never
   overflow the viewport or overlap the app chrome on phones/tablets.
=============================== */
@media (max-width: 768px) {
  .modal-content {
    width: 96% !important;
    max-width: 100% !important;
    margin: 8px auto !important;
    max-height: calc(100vh - 16px) !important;
  }

  .modal {
    overflow-y: auto;
  }

  .modal-body {
    max-height: calc(100vh - 150px);
    padding: 14px;
  }

  .modal-header {
    padding: 12px 14px;
  }

  .modal-header h3 {
    font-size: 15px;
  }

  .modal-footer {
    padding: 12px 14px;
  }

  /* JS-inline confirmation / prompt / generic overlays */
  #customConfirmModal > div,
  #customModal > div,
  #customPromptModal > div,
  #saleConfirmModal > div,
  #serialSaleModal > div,
  #tillManagementModal > div,
  #cashManagementModal > div {
    max-width: 94vw !important;
    max-height: 92vh !important;
    overflow-y: auto;
    width: 94vw !important;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .modal-body {
    padding: 12px;
  }

  .modal-header {
    padding: 10px 12px;
  }

  .modal-footer {
    padding: 10px 12px;
    flex-wrap: wrap;
  }

  .modal-footer .btn {
    flex: 1 1 100%;
    margin: 2px 0;
  }

  /* Stack the admin till-actions / till-reset two-button row on narrow screens */
  #cashScreenTabContent > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
/* ===============================
   Big screens & portrait tablets (POS screen)
   =============================== */
@media (min-width: 1200px) {
    .pos-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .search-bar input { font-size: 15px; padding: 11px 12px 11px 34px; }
    .pos-products-section .filter-bar {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 12px;
    }
    .pos-products-section .filter-bar select,
    .pos-products-section .filter-bar input,
    .barcode-input input { font-size: 14px; padding: 10px; }

    .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .product-card { padding: 12px; }
    .product-card img { width: 64px; height: 64px; object-fit: contain; }
    .product-card i { font-size: 38px; }
    .product-card strong { font-size: 13px; }
    .product-card div { font-size: 13px; }

    .cart-section { padding: 24px; }
    .cart-header h3 { font-size: 22px; }
    .cart-items { max-height: none; min-height: 400px; }
    .summary-row { font-size: 16px; }
}

/* Portrait tablets & compact POS screens (700-1023px): the cart stays a slide-in
   drawer (grid stays single-column) at every size. */
@media (min-width: 700px) and (max-width: 1023px) and (orientation: portrait) {
    .pos-layout {
        grid-template-columns: minmax(0, 1fr);
        height: auto;
        min-height: 0;
        gap: 0;
    }
    .pos-products-section { max-height: none; }
    .cart-items { max-height: none; min-height: 260px; }
}

/* ===============================
   Sticky table headers for long lists
   (sales history, inventory, reports) so the header stays visible while
   the rows below it scroll within the wrapper.
=============================== */
.table-responsive .table,
.table-responsive .sales-table {
    border-collapse: separate;
    border-spacing: 0;
}
.table-responsive .table thead th,
.table-responsive .sales-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

/* POS filter-bar action button lines up with the selects/inputs in the same grid. */
.pos-products-section .filter-bar .pos-filter-action { width: 100%; }
