/* ================================================================
   POS SYSTEM - PREMIUM STYLESHEET v2.0
   Modern, Smooth, Professional
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Light Theme */
    --bg: #f5f7fb;
    --bg-soft: #fafbfd;
    --surface: #ffffff;
    --surface-2: #f9fafb;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-soft: #94a3b8;
    --border: #e5e7eb;
    --border-soft: #f3f4f6;

    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-soft: #eef2ff;
    --primary-grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    --success: #10b981;
    --success-soft: #d1fae5;
    --danger: #ef4444;
    --danger-soft: #fee2e2;
    --warning: #f59e0b;
    --warning-soft: #fef3c7;
    --info: #06b6d4;
    --info-soft: #cffafe;

    --sidebar-bg: #ffffff;
    --sidebar-text: #475569;
    --sidebar-active-bg: var(--primary-soft);
    --sidebar-active-text: var(--primary);

    --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
    --shadow-sm: 0 1px 3px rgba(15,23,42,0.08), 0 1px 2px rgba(15,23,42,0.04);
    --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.08), 0 2px 4px -1px rgba(15,23,42,0.04);
    --shadow-lg: 0 10px 25px -5px rgba(15,23,42,0.1), 0 4px 6px -2px rgba(15,23,42,0.05);
    --shadow-xl: 0 25px 50px -12px rgba(15,23,42,0.25);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

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

[data-theme="dark"] {
    --bg: #0b1120;
    --bg-soft: #0f172a;
    --surface: #131c2f;
    --surface-2: #1a2541;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-soft: #64748b;
    --border: #243049;
    --border-soft: #1a2541;

    --primary-soft: rgba(99, 102, 241, 0.15);
    --success-soft: rgba(16, 185, 129, 0.15);
    --danger-soft: rgba(239, 68, 68, 0.15);
    --warning-soft: rgba(245, 158, 11, 0.15);
    --info-soft: rgba(6, 182, 212, 0.15);

    --sidebar-bg: #0f172a;
    --sidebar-text: #94a3b8;
    --sidebar-active-bg: rgba(99, 102, 241, 0.15);
    --sidebar-active-text: #818cf8;
}

* { box-sizing: border-box; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
*::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }

html, body { height: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s, color 0.3s;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-hover); }

/* ================================================================
   LOGIN
================================================================ */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.login-wrap { width: 100%; max-width: 440px; }
.login-card {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.login-logo {
    width: 76px; height: 76px;
    background: var(--primary-grad);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    font-size: 34px; color: #fff;
    box-shadow: 0 12px 30px rgba(102,126,234,0.4);
}

/* ================================================================
   LAYOUT
================================================================ */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s;
    z-index: 100;
}
.sidebar-header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}
.sidebar-logo {
    width: 38px; height: 38px;
    background: var(--primary-grad);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}
.sidebar-header h5 {
    margin: 0; color: var(--text);
    font-size: 16px; font-weight: 700; letter-spacing: -0.02em;
}
.sidebar-header small { color: var(--text-muted); font-size: 11px; }

.sidebar-menu { padding: 12px 12px 30px; list-style: none; margin: 0; }
.sidebar-menu li { padding: 0; margin: 2px 0; }
.sidebar-menu a {
    color: var(--sidebar-text);
    padding: 10px 14px;
    display: flex; align-items: center; gap: 12px;
    border-radius: 8px;
    font-weight: 500; font-size: 13.5px;
    transition: var(--transition);
}
.sidebar-menu a:hover {
    background: var(--surface-2);
    color: var(--text);
}
.sidebar-menu a.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 600;
}
.sidebar-menu i { width: 18px; font-size: 16px; }
.sidebar-section {
    padding: 16px 14px 6px;
    font-size: 10px; text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-soft);
    font-weight: 700;
}

.main-content { margin-left: 260px; flex: 1; min-width: 0; }

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 14px 28px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 90;
    backdrop-filter: blur(10px);
}
.topbar-title {
    font-size: 18px; font-weight: 700; margin: 0;
    letter-spacing: -0.02em;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.user-badge {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 12px;
    background: var(--surface-2);
    border-radius: 100px;
    font-size: 13px;
}
.user-avatar {
    width: 28px; height: 28px;
    background: var(--primary-grad);
    border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 12px;
}

.page-content { padding: 28px; max-width: 1600px; }

/* ================================================================
   PAGE HEADER
================================================================ */
.page-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
    gap: 16px; flex-wrap: wrap;
}
.page-header h1 {
    margin: 0;
    font-size: 24px; font-weight: 700;
    letter-spacing: -0.025em;
}
.page-header p { color: var(--text-muted); margin: 4px 0 0; }

/* ================================================================
   CARDS
================================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    margin-bottom: 20px;
    transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-sm); }
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-soft);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.card-header h6, .card-header h5 {
    margin: 0; font-weight: 700; letter-spacing: -0.01em;
    display: flex; align-items: center; gap: 8px;
}
.card-body { padding: 20px; }

/* ================================================================
   STATS
================================================================ */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex; align-items: center; gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; right: 0;
    width: 100px; height: 100px;
    background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
    opacity: 0.5;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.stat-icon {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    z-index: 1;
}
.stat-icon.bg-primary-soft { background: var(--primary-soft); color: var(--primary); }
.stat-icon.bg-success-soft { background: var(--success-soft); color: var(--success); }
.stat-icon.bg-warning-soft { background: var(--warning-soft); color: var(--warning); }
.stat-icon.bg-danger-soft { background: var(--danger-soft); color: var(--danger); }
.stat-icon.bg-info-soft { background: var(--info-soft); color: var(--info); }
.stat-content { flex: 1; min-width: 0; z-index: 1; }
.stat-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stat-value {
    font-size: 22px; font-weight: 700;
    color: var(--text);
    letter-spacing: -0.025em;
    line-height: 1.2;
}
.stat-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ================================================================
   TABLES
================================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.table {
    width: 100%;
    color: var(--text);
    border-collapse: separate;
    border-spacing: 0;
}
.table thead th {
    background: var(--surface-2);
    font-weight: 600; font-size: 11px;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
    font-size: 14px;
}
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: none; }
.table-sm thead th { padding: 8px 12px; font-size: 10px; }
.table-sm tbody td { padding: 8px 12px; font-size: 13px; }

/* ================================================================
   BUTTONS
================================================================ */
.btn {
    padding: 9px 16px;
    border-radius: 8px;
    font-weight: 600; font-size: 13.5px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 6px;
    line-height: 1.4;
    text-decoration: none;
    user-select: none;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(79,70,229,0.2);
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
    transform: translateY(-1px);
}
.btn-gradient {
    background: var(--primary-grad);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}
.btn-gradient:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(102,126,234,0.4); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #d97706; color: #fff; }
.btn-info { background: var(--info); color: #fff; }
.btn-outline {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover { background: var(--surface-2); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 10px; }
.btn-icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }
.btn-block { width: 100%; justify-content: center; }

/* ================================================================
   FORMS
================================================================ */
.form-group { margin-bottom: 16px; }
.form-label {
    font-weight: 500;
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
    color: var(--text);
}
.form-label.required::after { content: ' *'; color: var(--danger); }
.form-control, .form-select {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 9px 12px;
    border-radius: 8px;
    width: 100%;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}
.form-control::placeholder { color: var(--text-soft); }
.form-control[readonly] { background: var(--surface-2); color: var(--text-muted); }
.input-group {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.input-group .form-control { border: none; }
.input-group-text {
    background: var(--surface-2);
    padding: 9px 12px;
    color: var(--text-muted);
    display: flex; align-items: center;
    border-right: 1px solid var(--border);
}
.form-help { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Radio/checkbox custom */
.radio-group { display: flex; gap: 8px; }
.radio-card {
    flex: 1; padding: 12px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    background: var(--surface);
}
.radio-card:hover { border-color: var(--primary); }
.radio-card.active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}
.radio-card input { display: none; }

/* ================================================================
   BADGES
================================================================ */
.badge {
    padding: 3px 9px;
    font-size: 11px;
    border-radius: 100px;
    font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px;
    line-height: 1.4;
}
.badge-success { background: var(--success-soft); color: #065f46; }
.badge-warning { background: var(--warning-soft); color: #92400e; }
.badge-danger { background: var(--danger-soft); color: #991b1b; }
.badge-info { background: var(--info-soft); color: #155e75; }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-secondary { background: var(--surface-2); color: var(--text-muted); }
[data-theme="dark"] .badge-success { color: #6ee7b7; }
[data-theme="dark"] .badge-warning { color: #fcd34d; }
[data-theme="dark"] .badge-danger { color: #fca5a5; }
[data-theme="dark"] .badge-info { color: #67e8f9; }

/* ================================================================
   ALERTS
================================================================ */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
    display: flex; align-items: flex-start; gap: 10px;
    border-left: 4px solid;
}
.alert-success { background: var(--success-soft); color: #065f46; border-left-color: var(--success); }
.alert-danger { background: var(--danger-soft); color: #991b1b; border-left-color: var(--danger); }
.alert-warning { background: var(--warning-soft); color: #92400e; border-left-color: var(--warning); }
.alert-info { background: var(--info-soft); color: #155e75; border-left-color: var(--info); }
[data-theme="dark"] .alert-success { color: #6ee7b7; }
[data-theme="dark"] .alert-danger { color: #fca5a5; }
[data-theme="dark"] .alert-warning { color: #fcd34d; }
[data-theme="dark"] .alert-info { color: #67e8f9; }

/* ================================================================
   TOAST
================================================================ */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; }
.toast-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 10px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 12px;
    animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 14px;
}
.toast-item.toast-success { border-left: 4px solid var(--success); }
.toast-item.toast-danger { border-left: 4px solid var(--danger); }
.toast-item.toast-warning { border-left: 4px solid var(--warning); }
.toast-item.toast-info { border-left: 4px solid var(--info); }
.toast-item i { font-size: 20px; flex-shrink: 0; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-fadeout { opacity: 0 !important; transform: translateX(100%) !important; transition: 0.3s; }

/* ================================================================
   POS INTERFACE
================================================================ */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 20px;
    height: calc(100vh - 130px);
}
.pos-products {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    overflow-y: auto;
}
.pos-cart {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    user-select: none;
}
.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.product-card:active { transform: translateY(0); }
.product-icon {
    width: 56px; height: 56px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    margin: 0 auto 10px;
}
.product-card .name {
    font-weight: 600;
    font-size: 13.5px;
    margin-bottom: 4px;
    color: var(--text);
    line-height: 1.3;
    height: 35px; overflow: hidden;
}
.product-card .price {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}
.product-card .stock-badge {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
}
.product-card.out-of-stock { opacity: 0.5; cursor: not-allowed; }

.cart-items { flex: 1; overflow-y: auto; margin: 12px 0; padding-right: 4px; }
.cart-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 13.5px; }
.cart-item-meta { color: var(--text-muted); font-size: 12px; }
.qty-control {
    display: flex; align-items: center; gap: 4px;
    background: var(--surface-2);
    border-radius: 6px;
    padding: 2px;
}
.qty-control button {
    width: 24px; height: 24px;
    border: none;
    background: var(--surface);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}
.qty-control button:hover { background: var(--primary); color: #fff; }
.qty-control span { width: 28px; text-align: center; font-weight: 600; }
.cart-empty {
    text-align: center; padding: 40px 20px;
    color: var(--text-muted);
}
.cart-empty i { font-size: 40px; margin-bottom: 10px; opacity: 0.5; }

.cart-totals {
    border-top: 2px dashed var(--border);
    padding-top: 14px; margin-top: 8px;
}
.cart-total-row {
    display: flex; justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}
.cart-total-row.grand {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
    letter-spacing: -0.02em;
}

/* ================================================================
   MOBILE
================================================================ */
.mobile-toggle { display: none; }
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); z-index: 1000; box-shadow: var(--shadow-xl); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .sidebar-overlay {
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 999;
        opacity: 0; visibility: hidden;
        transition: var(--transition);
    }
    .sidebar.open ~ .sidebar-overlay { opacity: 1; visibility: visible; }
    .mobile-toggle { display: inline-flex; }
}
@media (max-width: 768px) {
    .pos-layout { grid-template-columns: 1fr; height: auto; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .page-content { padding: 16px; }
    .topbar { padding: 12px 16px; }
    .stat-value { font-size: 18px; }
}

/* ================================================================
   AGENT MOBILE VIEW
================================================================ */
.agent-view {
    max-width: 480px; margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
}
.agent-header {
    background: var(--primary-grad);
    color: #fff;
    padding: 20px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: var(--shadow-md);
}
.agent-stat {
    background: var(--surface);
    margin: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.agent-customer-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin: 10px 16px;
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    transition: var(--transition);
}
.agent-customer-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.agent-pay-btn {
    background: var(--success);
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    width: 100%;
    font-size: 15px; font-weight: 700;
    border: none; margin-top: 10px;
    cursor: pointer;
    transition: var(--transition);
}
.agent-pay-btn:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,185,129,0.3); }

/* ================================================================
   MODAL
================================================================ */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h5 { margin: 0; font-weight: 700; }
.modal-close {
    background: none; border: none;
    width: 32px; height: 32px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }
.modal-body { padding: 20px; }
.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex; gap: 8px; justify-content: flex-end;
}

/* ================================================================
   UTILITIES
================================================================ */
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-end { text-align: right; }
.text-center { text-align: center; }
.text-bold { font-weight: 700; }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 24px; }
.p-0 { padding: 0 !important; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }
.d-inline-block { display: inline-block; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

.row { display: flex; flex-wrap: wrap; margin: -10px; }
.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 { padding: 10px; }
.col-2 { flex: 0 0 16.66%; max-width: 16.66%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.33%; max-width: 33.33%; }
.col-5 { flex: 0 0 41.66%; max-width: 41.66%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.33%; max-width: 58.33%; }
.col-8 { flex: 0 0 66.66%; max-width: 66.66%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (max-width: 992px) {
    .col-2 { flex: 0 0 50%; max-width: 50%; }
    .col-3 { flex: 0 0 50%; max-width: 50%; }
    .col-4 { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 576px) {
    .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 { flex: 0 0 100%; max-width: 100%; }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 56px; opacity: 0.3; margin-bottom: 16px; display: block; }
.empty-state h6 { color: var(--text); margin: 0 0 8px; font-size: 16px; font-weight: 600; }

.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* Pulse animation for loading */
.pulse { animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Print */
@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .main-content { margin-left: 0; }
    body { background: #fff; color: #000; }
    .card { border: 1px solid #ccc; box-shadow: none; }
}

/* ================================================================
   ENTERPRISE MODULES + POS CART SCROLL FIX
================================================================ */
.pos-layout { min-height: 0; }
.pos-cart {
    max-height: calc(100vh - 130px);
    overflow: hidden;
    min-height: 0;
}
.cart-items {
    flex: 1 1 auto;
    min-height: 140px;
    max-height: 42vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}
.cart-items::-webkit-scrollbar { width: 8px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--border); border-radius: 20px; }
.cart-totals, #btnCheckout { flex-shrink: 0; }
.feature-grid, .module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.feature-card, .module-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.module-card { text-decoration: none; color: var(--text); }
.feature-card:hover, .module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.feature-icon, .module-card-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    flex-shrink: 0;
    font-size: 20px;
}
.feature-card h6, .module-card h6 { margin: 0 0 4px; font-size: 14px; font-weight: 750; }
.feature-card p, .module-card p { margin: 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.45; }
.module-group-title { margin: 28px 0 12px; font-size: 15px; font-weight: 800; color: var(--text); }
.pro-page-header h1 { letter-spacing: -0.03em; }
.public-verify { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.verify-card { max-width: 520px; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-xl); padding: 34px; text-align: center; }
.verify-logo { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 38px; }
.verify-form { margin-top: 20px; text-align: left; }
@media (max-width: 768px) {
    .pos-cart { max-height: none; overflow: visible; }
    .cart-items { max-height: 320px; }
    .module-grid, .feature-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   WHITECODER DEVELOPER CONTROL + POS ORDER SUMMARY SCROLL FIX
================================================================ */
.pos-layout {
    height: calc(100dvh - 130px);
    min-height: 560px;
    overflow: hidden;
}
.pos-cart {
    max-height: calc(100dvh - 130px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}
.pos-cart::-webkit-scrollbar { width: 8px; }
.pos-cart::-webkit-scrollbar-thumb { background: var(--border); border-radius: 20px; }
.cart-items {
    flex: 0 0 auto !important;
    max-height: 34dvh !important;
    min-height: 130px;
    overflow-y: auto !important;
}
.cart-totals, #installmentFields, #btnCheckout { flex-shrink: 0; }
@media (max-width: 768px) {
    .pos-layout { height: auto; min-height: 0; overflow: visible; }
    .pos-cart { max-height: 78dvh !important; overflow-y: auto !important; }
    .cart-items { max-height: 280px !important; }
}
.whitecoder-build-footer {
    margin-top: 28px;
    padding: 16px 4px 4px;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}
.whitecoder-build-footer strong { color: var(--primary); }
.whitecoder-top-notification { position: relative; text-decoration: none; }
.whitecoder-top-notification span {
    position: absolute; top: -4px; right: -4px;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: var(--danger); color: #fff;
    font-size: 10px; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800;
}
.whitecoder-lock-screen { min-height: 62vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.whitecoder-lock-card {
    max-width: 560px; width: 100%; text-align: center;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 28px; padding: 44px; box-shadow: var(--shadow-xl);
}
.whitecoder-lock-icon {
    width: 82px; height: 82px; margin: 0 auto 18px; border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary); font-size: 42px;
}
.whitecoder-lock-card h2 { margin: 0 0 10px; letter-spacing: -0.03em; }
.whitecoder-lock-card p { color: var(--text-muted); margin: 0 0 24px; }
.whitecoder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 20px; }
.whitecoder-stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 18px; box-shadow: var(--shadow-sm);
}
.whitecoder-stat small { color: var(--text-muted); font-weight: 650; }
.whitecoder-stat strong { display:block; margin-top:8px; font-size:24px; letter-spacing:-0.04em; }
.whitecoder-badge { display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px; font-size:12px; font-weight:750; }
.whitecoder-badge.locked { background:#fee2e2; color:#991b1b; }
.whitecoder-badge.unlocked { background:#d1fae5; color:#065f46; }
.whitecoder-badge.blocked { background:#fef3c7; color:#92400e; }
.whitecoder-chat-wrap { display:grid; grid-template-columns: minmax(0,1fr) 360px; gap:18px; }
.whitecoder-chat-list { max-height: 62vh; overflow-y:auto; padding-right:6px; }
.whitecoder-message { border:1px solid var(--border); border-radius:18px; padding:14px; background:var(--surface); margin-bottom:12px; }
.whitecoder-message.developer { border-left:4px solid var(--primary); }
.whitecoder-message.admin { border-left:4px solid var(--success); }
.whitecoder-message .meta { color:var(--text-muted); font-size:12px; margin-bottom:6px; display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; }
.whitecoder-message p { margin:0; white-space:pre-wrap; }
.whitecoder-table-actions { display:flex; gap:6px; flex-wrap:wrap; }
@media (max-width: 992px) { .whitecoder-chat-wrap { grid-template-columns: 1fr; } }



/* WHITECODER FINAL FIXES 2026 */
.pos-layout{height:calc(100dvh - 126px)!important;min-height:560px;overflow:hidden!important;align-items:stretch;}
.pos-products{min-height:0;overflow-y:auto!important;}
.pos-cart{height:calc(100dvh - 126px)!important;max-height:calc(100dvh - 126px)!important;display:flex!important;flex-direction:column!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;padding-bottom:18px!important;}
.cart-items{flex:0 0 auto!important;max-height:30dvh!important;min-height:110px!important;overflow-y:auto!important;overscroll-behavior:contain;}
.cart-totals,#installmentFields,#btnCheckout{flex:0 0 auto!important;}
@media(max-width:768px){.pos-layout{height:auto!important;min-height:0!important;overflow:visible!important}.pos-cart{height:auto!important;max-height:82dvh!important;overflow-y:auto!important}.cart-items{max-height:260px!important}}
.developer-body{background:#f5f7fb;color:#101828;}
.developer-layout{display:grid;grid-template-columns:280px 1fr;min-height:100vh;}
.developer-sidebar{background:#080b16;color:#fff;padding:20px;display:flex;flex-direction:column;gap:18px;position:sticky;top:0;height:100vh;}
.developer-brand{display:flex;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid rgba(255,255,255,.12)}.developer-brand-icon{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#fff,#c7d2fe);color:#111827;display:flex;align-items:center;justify-content:center;font-size:22px}.developer-brand h5{margin:0;font-size:18px}.developer-brand small{color:#9ca3af}.developer-menu{display:flex;flex-direction:column;gap:6px}.developer-menu a{color:#d1d5db;text-decoration:none;padding:12px;border-radius:12px;display:flex;gap:10px;align-items:center;font-weight:600}.developer-menu a:hover,.developer-menu a.active{background:rgba(255,255,255,.1);color:#fff}.developer-note{margin-top:auto;background:rgba(255,255,255,.08);padding:14px;border-radius:14px;color:#d1d5db;font-size:12px}.developer-main{min-width:0}.developer-topbar{background:#fff;border-bottom:1px solid #e5e7eb;padding:22px 28px;display:flex;justify-content:space-between;align-items:center}.developer-topbar h1{margin:0;font-size:24px}.developer-topbar p{margin:4px 0 0;color:#667085}.developer-user{text-align:right;font-size:13px}.developer-user span{font-weight:800}.developer-content{padding:24px}.developer-hero{background:linear-gradient(135deg,#111827,#312e81);color:#fff;border-radius:24px;padding:26px;display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px;box-shadow:var(--shadow-lg)}.developer-hero h2{font-size:26px;margin:12px 0 6px}.developer-hero p{color:#d1d5db;max-width:760px}.developer-status{padding:18px;border-radius:18px;background:rgba(255,255,255,.12);min-width:180px;text-align:center}.developer-status i{font-size:34px;display:block;margin-bottom:8px}.developer-status.success{color:#86efac}.developer-status.danger{color:#fca5a5}.label-sheet{display:flex;gap:8px;flex-wrap:wrap;align-items:flex-start}.print-label{width:var(--label-w,50mm);height:var(--label-h,25mm);border:1px dashed #98a2b3;border-radius:4px;padding:2mm;background:#fff;color:#111;text-align:center;display:flex;flex-direction:column;justify-content:center;page-break-inside:avoid}.pl-name{font-size:9px;font-weight:800;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pl-bars{font-family:monospace;font-size:18px;letter-spacing:1px;line-height:1}.pl-code{font-size:9px}.pl-price{font-size:10px;font-weight:900}.no-print{}
@media print{.no-print,.sidebar,.topbar,.developer-sidebar,.developer-topbar{display:none!important}.main-content,.developer-main{margin:0!important}.page-content,.developer-content{padding:0!important}.card{box-shadow:none!important;border:0!important}.print-label{border:1px solid #000!important}.label-sheet{gap:2mm}.whitecoder-build-footer{display:none!important}}
@media(max-width:900px){.developer-layout{grid-template-columns:1fr}.developer-sidebar{position:relative;height:auto}.developer-topbar{display:block}.developer-hero{display:block}.developer-status{margin-top:14px}.developer-content{padding:14px}}

/* Final POS drawer/order-summary scroll hard fix */
.pos-layout{height:calc(100dvh - 126px)!important;min-height:560px!important;overflow:hidden!important;align-items:stretch!important;}
.pos-cart{height:calc(100dvh - 126px)!important;max-height:calc(100dvh - 126px)!important;display:flex!important;flex-direction:column!important;overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important;padding-bottom:22px!important;scrollbar-gutter:stable;}
.pos-cart .cart-items{flex:0 0 auto!important;max-height:28dvh!important;min-height:96px!important;overflow-y:auto!important;overscroll-behavior:contain!important;}
.pos-cart .cart-totals{flex:0 0 auto!important;}
.pos-cart #btnCheckout{flex:0 0 auto!important;position:sticky!important;bottom:0!important;z-index:2!important;box-shadow:0 -10px 24px rgba(255,255,255,.92)!important;}
@media(max-width:768px){.pos-layout{height:auto!important;min-height:0!important;overflow:visible!important}.pos-cart{height:auto!important;max-height:82dvh!important;overflow-y:auto!important}.pos-cart .cart-items{max-height:250px!important}}

/* ================================================================
   WHITEcoder POS v3 REAL BUSINESS UX UPGRADE
   Sinhala comments: ලංකාවේ shop/showroom workflow එකට compact, clear, fast UI එකක්.
================================================================ */
:root {
    --wc-accent-1:#2563eb;
    --wc-accent-2:#7c3aed;
    --wc-accent-3:#06b6d4;
    --glass: rgba(255,255,255,.82);
}
body { letter-spacing:-.006em; }
.sidebar { width: 284px; }
.main-content { margin-left: 284px; }
.sidebar-header { padding:18px 18px 14px; }
.sidebar-tools { padding: 10px 14px 8px; border-bottom:1px solid var(--border); background:linear-gradient(180deg,var(--surface),var(--surface-2)); position:sticky; top:0; z-index:2; }
.sidebar-search { display:flex; align-items:center; gap:8px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:9px 11px; box-shadow:var(--shadow-xs); }
.sidebar-search input { border:0; outline:0; background:transparent; color:var(--text); min-width:0; width:100%; font-size:13px; }
.sidebar-pos-btn { margin-top:10px; display:flex !important; align-items:center; justify-content:space-between; gap:10px; padding:11px 12px !important; border-radius:14px !important; color:#fff !important; background:linear-gradient(135deg,var(--wc-accent-1),var(--wc-accent-2)) !important; box-shadow:0 10px 22px rgba(37,99,235,.22); }
.sidebar-pos-btn span { flex:1; font-weight:800; }
kbd { border:1px solid rgba(255,255,255,.55); border-bottom-width:2px; background:rgba(255,255,255,.18); color:inherit; border-radius:6px; padding:1px 6px; font-size:10px; }
.sidebar-menu { padding-bottom:84px; }
.sidebar-section { margin-top:8px; position:sticky; top:104px; background:var(--sidebar-bg); z-index:1; }
.sidebar-menu a { min-height:38px; }
.topbar { box-shadow:0 8px 30px rgba(15,23,42,.035); }
.page-content { width:100%; }
.card { box-shadow:0 1px 0 rgba(15,23,42,.03), 0 10px 28px rgba(15,23,42,.035); }
.card-header { gap:12px; }
.btn { white-space:nowrap; }
.btn-gradient, .btn-primary { background:linear-gradient(135deg,var(--wc-accent-1),var(--wc-accent-2)); border:0; color:#fff; }
.btn-gradient:hover, .btn-primary:hover { transform:translateY(-1px); box-shadow:0 12px 26px rgba(37,99,235,.22); }
.alert { border-radius:14px; }
.form-control, .form-select { min-height:40px; border-radius:12px; }
.table-wrap { overflow:auto; max-width:100%; }
.table th { position:sticky; top:0; z-index:1; background:var(--surface-2); }
.table td, .table th { vertical-align:middle; }
.badge { border-radius:999px; font-weight:700; letter-spacing:.01em; }
.empty-state { padding:36px 20px; }
.empty-state i { opacity:.8; }

/* POS cashier cockpit */
.pos-layout { display:grid; grid-template-columns:minmax(0,1fr) 430px; gap:18px; height:calc(100vh - 114px); align-items:stretch; }
.pos-products, .pos-cart { background:var(--surface); border:1px solid var(--border); border-radius:22px; box-shadow:var(--shadow-sm); min-height:0; }
.pos-products { padding:18px; display:flex; flex-direction:column; overflow:hidden; }
.pos-toolbar { display:grid; grid-template-columns:minmax(240px,1fr) 210px auto; gap:10px; align-items:center; margin-bottom:12px; }
.pos-helper-bar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:12px; color:var(--text-muted); font-size:12px; }
.pos-helper-chip { display:inline-flex; align-items:center; gap:6px; border:1px solid var(--border); background:var(--surface-2); padding:6px 9px; border-radius:999px; }
.product-grid { flex:1; overflow:auto; display:grid; grid-template-columns:repeat(auto-fill,minmax(154px,1fr)); gap:12px; padding:2px 2px 10px; }
.product-card { position:relative; border-radius:18px; border:1px solid var(--border); background:linear-gradient(180deg,var(--surface),var(--surface-2)); padding:14px; min-height:156px; display:flex; flex-direction:column; justify-content:space-between; cursor:pointer; box-shadow:0 1px 0 rgba(15,23,42,.04); }
.product-card:hover { transform:translateY(-2px); border-color:rgba(37,99,235,.35); box-shadow:0 14px 32px rgba(15,23,42,.09); }
.product-card .product-icon { width:40px; height:40px; margin:0 0 8px; border-radius:14px; background:linear-gradient(135deg,rgba(37,99,235,.12),rgba(124,58,237,.12)); }
.product-card .name { height:auto; min-height:38px; font-size:13px; }
.product-card .price { font-size:15px; }
.product-code { font-size:11px; color:var(--text-muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pos-cart { padding:16px; display:flex; flex-direction:column; overflow:hidden; }
.cart-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.cart-title { margin:0; font-weight:900; font-size:16px; display:flex; align-items:center; gap:8px; }
.cart-actions { display:flex; gap:6px; }
.cart-scroll-area { flex:1; min-height:140px; display:flex; flex-direction:column; overflow:hidden; }
.cart-items { flex:1; overflow-y:auto; padding-right:4px; margin:8px 0; min-height:120px; }
.cart-item { display:grid; grid-template-columns:minmax(0,1fr) auto auto 24px; align-items:center; gap:8px; padding:11px 0; }
.cart-item-name { font-size:13px; line-height:1.25; }
.qty-control button { width:28px; height:28px; border-radius:8px; }
.qty-control span { width:30px; }
.payment-box { background:var(--surface-2); border:1px solid var(--border); border-radius:18px; padding:12px; margin-top:10px; }
.payment-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.change-amount { display:flex; align-items:center; justify-content:space-between; gap:8px; color:var(--success); font-weight:900; margin-top:8px; }
.cart-totals { flex:0 0 auto; }
.cart-total-row.grand { font-size:22px; }
.radio-group { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.radio-card { border:1px solid var(--border); border-radius:16px; padding:10px; text-align:center; cursor:pointer; background:var(--surface-2); }
.radio-card.active { border-color:rgba(37,99,235,.5); background:linear-gradient(135deg,rgba(37,99,235,.10),rgba(124,58,237,.10)); box-shadow:inset 0 0 0 1px rgba(37,99,235,.08); }
.radio-card input { display:none; }

/* Enterprise module center */
.enterprise-hero { border:1px solid var(--border); border-radius:26px; padding:24px; margin-bottom:18px; background:linear-gradient(135deg,rgba(37,99,235,.10),rgba(124,58,237,.10),rgba(6,182,212,.08)); position:relative; overflow:hidden; }
.enterprise-hero:after { content:""; position:absolute; inset:auto -80px -120px auto; width:260px; height:260px; border-radius:50%; background:rgba(37,99,235,.10); filter:blur(2px); }
.enterprise-hero h1 { font-size:28px; margin:0; letter-spacing:-.04em; }
.enterprise-hero p { max-width:850px; color:var(--text-muted); margin:8px 0 0; }
.enterprise-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-top:18px; }
.enterprise-kpi { background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:14px; box-shadow:var(--shadow-xs); }
.enterprise-kpi span { color:var(--text-muted); font-size:12px; }
.enterprise-kpi strong { display:block; font-size:24px; letter-spacing:-.04em; }
.module-controlbar { display:flex; gap:10px; align-items:center; justify-content:space-between; margin-bottom:14px; flex-wrap:wrap; }
.module-controlbar .sidebar-search { min-width:280px; max-width:520px; flex:1; }
.module-tabs { display:flex; gap:8px; flex-wrap:wrap; }
.module-tab { border:1px solid var(--border); background:var(--surface); color:var(--text-muted); padding:8px 12px; border-radius:999px; cursor:pointer; font-weight:700; font-size:12px; }
.module-tab.active { color:#fff; background:linear-gradient(135deg,var(--wc-accent-1),var(--wc-accent-2)); border-color:transparent; }
.module-group-title { margin:22px 0 10px; font-size:14px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-muted); display:flex; align-items:center; gap:8px; }
.module-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px; }
.module-card { background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:15px; color:var(--text); display:flex; gap:12px; min-height:112px; box-shadow:var(--shadow-xs); }
.module-card:hover { transform:translateY(-2px); color:var(--text); border-color:rgba(37,99,235,.34); box-shadow:0 16px 38px rgba(15,23,42,.09); }
.module-card-icon { width:44px; height:44px; border-radius:15px; background:linear-gradient(135deg,rgba(37,99,235,.12),rgba(124,58,237,.12)); color:var(--wc-accent-1); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:20px; }
.module-card h6 { margin:0 0 4px; font-size:14px; font-weight:900; color:var(--text); }
.module-card p { margin:0; color:var(--text-muted); font-size:12.5px; line-height:1.35; }
.module-card .module-meta { display:flex; gap:6px; flex-wrap:wrap; margin-top:9px; }
.module-meta span { border:1px solid var(--border); border-radius:999px; padding:2px 7px; color:var(--text-muted); font-size:10px; }
.feature-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; }
.feature-card { background:var(--surface); border:1px solid var(--border); border-radius:18px; padding:15px; display:flex; gap:12px; box-shadow:var(--shadow-xs); }
.feature-icon { width:42px; height:42px; flex-shrink:0; border-radius:14px; display:flex; align-items:center; justify-content:center; background:var(--primary-soft); color:var(--primary); font-size:18px; }
.feature-card h6 { margin:0 0 4px; font-weight:900; }
.feature-card p { margin:0; color:var(--text-muted); font-size:12px; }
.pro-page-header { background:linear-gradient(135deg,rgba(37,99,235,.06),rgba(124,58,237,.06)); border:1px solid var(--border); border-radius:22px; padding:18px; }
.required:after { content:' *'; color:var(--danger); }
.no-print { }
.whitecoder-build-footer { position:fixed; right:14px; bottom:10px; color:var(--text-soft); font-size:11px; opacity:.8; }

@media print {
    .sidebar,.topbar,.no-print,.whitecoder-build-footer,.btn,.sidebar-overlay { display:none !important; }
    .main-content { margin:0 !important; }
    .page-content { padding:0 !important; max-width:none; }
    .card { box-shadow:none; border:1px solid #ddd; }
    body { background:#fff !important; color:#000 !important; }
}
@media (max-width:1180px){ .pos-layout { grid-template-columns:1fr; height:auto; } .pos-cart { min-height:520px; } .enterprise-kpis { grid-template-columns:repeat(2,1fr); } }
@media (max-width:992px){ .sidebar { width:284px; } .main-content{ margin-left:0; } .sidebar-section{ position:static; } }
@media (max-width:768px){ .pos-toolbar { grid-template-columns:1fr; } .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .enterprise-kpis { grid-template-columns:1fr; } .module-grid { grid-template-columns:1fr; } .cart-item { grid-template-columns:minmax(0,1fr) auto; } .cart-item > div:nth-child(3), .cart-item > button { justify-self:end; } .payment-grid{grid-template-columns:1fr;} }

/* ================================================================
   WHITE CODER POS UX UPDATE v4 - live search, large forms, print clean
================================================================ */
:root{--field-h:48px;--field-pad:12px 14px;--wc-soft-line:rgba(15,23,42,.08)}
.form-control,.form-select,.comfortable-field{min-height:var(--field-h)!important;padding:var(--field-pad)!important;border-radius:14px!important;font-size:14px!important;line-height:1.35!important;background:var(--surface)!important;color:var(--text)!important;}
textarea.form-control, textarea.comfortable-field{min-height:96px!important;resize:vertical;}
.form-label{font-weight:800!important;color:var(--text)!important;margin-bottom:7px!important;}
.form-help,.text-muted small,small.text-muted{line-height:1.45;}
.input-group{border-radius:15px!important;min-height:var(--field-h);}
.input-group-text{padding:0 14px!important;}
.card{border-radius:22px!important;overflow:visible;}
.card-header{padding:18px 20px!important;align-items:center!important;}
.card-body{padding:22px!important;}
.card-body.p-0{padding:0!important;}
.table-wrap{overflow:auto!important;max-width:100%;border-radius:0 0 18px 18px;}
.table{min-width:760px;}
.table tbody td{white-space:normal!important;word-break:break-word;line-height:1.45;}
.table thead th{white-space:nowrap;}
.text-nowrap{white-space:nowrap!important;}
.table-count-pill{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--border);background:var(--surface-2);color:var(--text-muted);border-radius:999px;padding:7px 10px;font-size:12px;font-weight:800;white-space:nowrap;}
.smart-table-tools{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:14px 16px;border-bottom:1px solid var(--border);background:linear-gradient(180deg,var(--surface),var(--surface-2));}
.smart-search-box{position:relative;flex:1;min-width:250px;}
.smart-search-box>i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--text-muted);z-index:2;pointer-events:none;}
.smart-search-box>.form-control,.smart-search-box>input{padding-left:42px!important;width:100%;}
.empty-state.compact{padding:26px 16px!important;}
.empty-state.compact i{font-size:32px!important;margin-bottom:8px!important;}
.filter-panel{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;align-items:end;padding:16px;background:linear-gradient(135deg,rgba(37,99,235,.045),rgba(124,58,237,.045));border:1px solid var(--border);border-radius:20px;margin-bottom:16px;}
.filter-panel .filter-actions{display:flex;gap:8px;align-items:end;}
.form-section-title{display:flex;align-items:center;gap:8px;font-weight:900;color:var(--text);font-size:13px;text-transform:uppercase;letter-spacing:.08em;margin:10px 0 12px;padding-bottom:10px;border-bottom:1px solid var(--border);}
.form-grid{display:grid;gap:14px;}
.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr));}
.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr));}
.form-grid.four{grid-template-columns:repeat(4,minmax(0,1fr));}
.form-span-2{grid-column:span 2;}.form-span-3{grid-column:span 3;}.form-span-full{grid-column:1/-1;}
.modal-backdrop{padding:18px!important;align-items:flex-start!important;overflow:auto;}
.modal-card{width:min(980px,96vw)!important;max-width:96vw!important;max-height:none!important;margin:20px auto!important;border-radius:24px!important;overflow:visible!important;}
.modal-body{padding:22px!important;}
.modal-footer{position:sticky;bottom:0;background:var(--surface);z-index:4;border-radius:0 0 24px 24px;}
.native-select-hidden{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}
.searchable-select{position:relative;z-index:6;}
.searchable-select-list{display:none;position:absolute;z-index:1002;left:0;right:0;top:calc(100% + 6px);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-xl);border-radius:16px;max-height:280px;overflow:auto;padding:6px;}
.searchable-select-list button{display:block;width:100%;text-align:left;border:0;background:transparent;color:var(--text);padding:10px 12px;border-radius:12px;cursor:pointer;font-weight:600;line-height:1.35;}
.searchable-select-list button:hover{background:var(--primary-soft);color:var(--primary);}
.searchable-empty{padding:14px;color:var(--text-muted);text-align:center;}
.pro-form-card .card-body{padding:24px!important;}
.pro-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px;align-items:start;}
.pro-record-card{margin-top:16px;}
.pro-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap;}
.status-filter-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap;}
.status-filter-row .module-tab{font-size:12px;}
.item-name-cell strong,.customer-name-cell strong{font-size:14px;}
.info-stack{display:flex;flex-direction:column;gap:2px;min-width:0;}
.info-stack small{color:var(--text-muted);}
.action-buttons{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap;}
.barcode-page-layout{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:18px;align-items:start;}
.barcode-item-list{max-height:540px;overflow:auto;border:1px solid var(--border);border-radius:18px;background:var(--surface);}
.barcode-item-row{display:grid;grid-template-columns:auto minmax(0,1fr) 86px;gap:10px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--border-soft);}
.barcode-item-row:last-child{border-bottom:0;}
.barcode-item-row:hover{background:var(--surface-2);}
.barcode-item-row input[type="checkbox"]{width:19px;height:19px;accent-color:var(--primary);}
.barcode-item-row .qty-box{max-width:74px;text-align:center;}
.barcode-preview-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px;}
.barcode-print-area{background:#fff;color:#000;padding:10px;border-radius:16px;border:1px solid var(--border);min-height:260px;}
.label-sheet{display:flex;gap:2mm;flex-wrap:wrap;align-items:flex-start;justify-content:flex-start;}
.print-label.barcode-only{width:var(--label-w,50mm);height:var(--label-h,25mm);border:1px dashed #98a2b3;border-radius:4px;padding:1.5mm;background:#fff;color:#111;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;page-break-inside:avoid;overflow:hidden;}
.print-label.barcode-only svg{display:block;width:100%;height:75%;max-height:18mm;}
.print-label.barcode-only .barcode-human{font-size:8px;font-weight:800;letter-spacing:.08em;line-height:1;margin-top:1mm;color:#000;}
.barcode-selection-summary{font-weight:900;color:var(--primary);}
@media(max-width:1180px){.barcode-page-layout{grid-template-columns:1fr}.form-grid.three,.form-grid.four{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:768px){.form-grid.two,.form-grid.three,.form-grid.four,.pro-form-grid{grid-template-columns:1fr}.form-span-2,.form-span-3{grid-column:auto}.filter-panel{grid-template-columns:1fr}.smart-search-box{min-width:100%}.barcode-item-row{grid-template-columns:auto minmax(0,1fr);}.barcode-item-row .qty-box{grid-column:2}.modal-card{width:100%!important;margin:8px auto!important}.card-body{padding:16px!important}.table{min-width:680px}}

@media print{
    body.printing-barcodes *{visibility:hidden!important;}
    body.printing-barcodes .barcode-print-area,body.printing-barcodes .barcode-print-area *{visibility:visible!important;}
    body.printing-barcodes .barcode-print-area{position:absolute!important;left:0!important;top:0!important;width:100%!important;border:0!important;padding:0!important;margin:0!important;background:#fff!important;}
    body.printing-barcodes .print-label.barcode-only{border:0!important;border-radius:0!important;margin:0!important;box-shadow:none!important;}
}
/* Bootstrap-like large columns used by PHP pages */
.col-lg-3{flex:0 0 25%;max-width:25%;padding:10px}.col-lg-4{flex:0 0 33.333%;max-width:33.333%;padding:10px}.col-lg-5{flex:0 0 41.666%;max-width:41.666%;padding:10px}.col-lg-6{flex:0 0 50%;max-width:50%;padding:10px}.col-lg-7{flex:0 0 58.333%;max-width:58.333%;padding:10px}.col-lg-8{flex:0 0 66.666%;max-width:66.666%;padding:10px}.col-lg-9{flex:0 0 75%;max-width:75%;padding:10px}.col-lg-12{flex:0 0 100%;max-width:100%;padding:10px}
@media(max-width:992px){.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{flex:0 0 100%;max-width:100%}}

/* ================================================================
   WHITE CODER POS UX UPDATE v5 - login, compact POS, reports, attendance
================================================================ */
.login-body-v5{min-height:100vh;margin:0;background:radial-gradient(circle at 15% 20%,rgba(79,70,229,.18),transparent 30%),radial-gradient(circle at 85% 0%,rgba(16,185,129,.12),transparent 28%),#f6f8fc;display:flex;align-items:center;justify-content:center;padding:24px;color:#0f172a;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;}
.login-shell-v5{width:min(1060px,100%);display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:30px;box-shadow:0 30px 90px rgba(15,23,42,.16);overflow:hidden;}
.login-brand-v5{padding:54px;background:linear-gradient(135deg,#111827,#312e81);color:#fff;display:flex;flex-direction:column;justify-content:space-between;min-height:620px;}
.login-brand-logo-v5{width:64px;height:64px;border-radius:20px;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;font-size:28px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);}
.login-brand-v5 h1{font-size:42px;line-height:1.05;margin:24px 0 14px;letter-spacing:-.05em;}
.login-brand-v5 p{font-size:15px;color:rgba(255,255,255,.75);max-width:450px;}
.login-feature-list-v5{display:grid;gap:12px;margin-top:28px;}
.login-feature-list-v5 span{display:flex;gap:10px;align-items:center;font-weight:700;color:rgba(255,255,255,.86);}
.login-feature-list-v5 i{color:#86efac;}
.login-panel-v5{padding:54px;display:flex;align-items:center;}
.login-panel-card-v5{width:100%;}
.login-panel-card-v5 h2{font-size:30px;letter-spacing:-.04em;margin:0 0 8px;}
.login-panel-card-v5 .subtitle{margin:0 0 28px;color:#64748b;}
.login-panel-v5 .form-control{background:#fff!important;border:1px solid #e2e8f0!important;min-height:56px!important;border-radius:18px!important;}
.login-panel-v5 .btn{min-height:54px;border-radius:18px;font-weight:900;}
.login-alert-v5{display:flex;gap:10px;align-items:flex-start;border-radius:18px;padding:14px 16px;margin-bottom:18px;font-weight:700;}
.login-alert-v5.error{background:#fee2e2;color:#991b1b;}.login-alert-v5.success{background:#dcfce7;color:#166534;}
.login-meta-v5{display:flex;justify-content:space-between;gap:10px;margin-top:18px;color:#64748b;font-size:12px;flex-wrap:wrap;}
@media(max-width:900px){.login-shell-v5{grid-template-columns:1fr}.login-brand-v5{min-height:auto;padding:34px}.login-panel-v5{padding:34px}.login-brand-v5 h1{font-size:32px}}

.dashboard-hero{background:linear-gradient(135deg,rgba(79,70,229,.12),rgba(16,185,129,.08));border:1px solid var(--border);border-radius:28px;padding:26px;margin-bottom:22px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;}
.dashboard-hero h1{margin:0;font-size:28px;letter-spacing:-.04em;}.dashboard-hero p{margin:6px 0 0;color:var(--text-muted);max-width:700px}.dashboard-actions{display:flex;gap:10px;flex-wrap:wrap}.dashboard-kpi-grid,.report-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-bottom:18px}.dashboard-chart-card{min-height:360px}.dashboard-chart-card canvas{max-height:300px}.dashboard-split-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:18px}@media(max-width:1100px){.dashboard-split-grid{grid-template-columns:1fr}}

.compact-pos.pos-layout{grid-template-columns:minmax(0,1fr) 400px!important;gap:14px!important;}
.compact-pos .product-grid{grid-template-columns:repeat(auto-fill,minmax(118px,1fr))!important;gap:8px!important;}
.compact-pos .product-card{padding:9px!important;min-height:112px!important;border-radius:14px!important;}
.compact-pos .product-card .product-icon{width:30px!important;height:30px!important;border-radius:10px!important;font-size:15px!important;margin-bottom:4px!important;}
.compact-pos .product-card .name{font-size:11.5px!important;line-height:1.25!important;min-height:30px!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.compact-pos .product-card .price{font-size:13px!important;font-weight:900!important;}
.compact-pos .product-card .stock-badge{font-size:10px!important;padding:3px 6px!important;}
.compact-pos .pos-cart{border-radius:20px!important;}.compact-pos .cart-item{padding:10px!important;gap:8px!important}.compact-pos .cart-items{max-height:260px!important}.mini-input{min-height:38px!important;padding:7px 9px!important;border-radius:10px!important}.change-amount{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding:12px 14px;border-radius:16px;background:var(--primary-soft);font-weight:900;color:var(--primary)}.payment-box{border:1px solid var(--border);border-radius:18px;padding:14px;background:linear-gradient(180deg,var(--surface),var(--surface-2));}.payment-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cart-line-total{font-weight:900}.cart-remove{min-width:34px!important;height:34px!important;padding:0!important}

.pro-filter-tools{align-items:stretch}.pro-filter-tools .pro-table-filter{max-width:210px;min-width:180px!important;}
.compact-enterprise-hero p{max-width:760px!important}.module-controlbar{position:sticky;top:72px;z-index:5;background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:12px;margin-bottom:18px;box-shadow:var(--shadow-sm)}

.report-page-header{background:linear-gradient(135deg,rgba(15,23,42,.05),rgba(79,70,229,.05));border:1px solid var(--border);border-radius:24px;padding:20px}.report-section{break-inside:avoid;page-break-inside:avoid}.report-filter-panel{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.report-print-header{display:none}.print-only{display:none}.attendance-kpis{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.report-table th,.report-table td{font-size:12.5px}
@media print{.print-only,.report-print-header{display:block!important}.report-print-header{text-align:center;border-bottom:2px solid #111;margin-bottom:14px;padding-bottom:10px}.report-print-header h1{font-size:20px;margin:0 0 5px}.report-print-header p{margin:0;font-size:12px}.report-kpi-grid,.attendance-kpis{grid-template-columns:repeat(3,1fr)!important;gap:8px!important}.stat-card{break-inside:avoid;page-break-inside:avoid;border:1px solid #ddd!important;box-shadow:none!important}.report-section{margin-bottom:14px!important}.report-section .card-header{padding:10px 0!important;border-bottom:1px solid #111!important}.report-section .card-body{padding:0!important}.table-wrap{overflow:visible!important}.table{min-width:0!important;width:100%!important}.table th,.table td{font-size:10.5px!important;padding:5px!important;border:1px solid #ddd!important}.badge{border:1px solid #111!important;background:#fff!important;color:#111!important}.card{border:0!important;margin-bottom:12px!important}.card-header{background:#fff!important}.empty-filter-row{display:none!important}}
@media(max-width:1180px){.compact-pos.pos-layout{grid-template-columns:1fr!important}.compact-pos .product-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))!important}}
@media(max-width:768px){.payment-grid{grid-template-columns:1fr}.compact-pos .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.compact-pos .product-card{min-height:106px!important}.login-brand-v5,.login-panel-v5{padding:24px}.login-brand-v5 h1{font-size:28px}}

/* Login v5 actual template selectors */
body.pos-login-v5{min-height:100vh;margin:0;background:radial-gradient(circle at 15% 20%,rgba(79,70,229,.18),transparent 30%),radial-gradient(circle at 85% 0%,rgba(16,185,129,.12),transparent 28%),#f6f8fc;display:flex;align-items:center;justify-content:center;padding:24px;color:#0f172a;font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;}
.pos-login-v5 .login-shell-v5{width:min(1060px,100%);display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:30px;box-shadow:0 30px 90px rgba(15,23,42,.16);overflow:hidden;}
.pos-login-v5 .login-brand-v5{padding:54px;background:linear-gradient(135deg,#111827,#312e81);color:#fff;display:flex;flex-direction:column;justify-content:center;min-height:620px;}
.pos-login-v5 .login-brand-logo{width:64px;height:64px;border-radius:20px;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;font-size:28px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);margin-bottom:28px;}
.pos-login-v5 .login-brand-v5 h1{font-size:42px;line-height:1.05;margin:0 0 14px;letter-spacing:-.05em;}
.pos-login-v5 .login-brand-v5 p{font-size:15px;color:rgba(255,255,255,.75);max-width:450px;}
.pos-login-v5 .login-feature-list{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:34px;}
.pos-login-v5 .login-feature-list span{display:flex;gap:10px;align-items:center;font-weight:800;color:rgba(255,255,255,.9);background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.13);padding:12px 14px;border-radius:16px;}
.pos-login-v5 .login-feature-list i{color:#86efac;}
.pos-login-v5 .login-panel-v5{padding:54px;display:flex;flex-direction:column;justify-content:center;}
.pos-login-v5 .login-panel-head{display:flex;gap:14px;align-items:center;margin-bottom:26px;}
.pos-login-v5 .login-mini-icon{width:54px;height:54px;border-radius:18px;background:#eef2ff;color:#4f46e5;display:flex;align-items:center;justify-content:center;font-size:23px;}
.pos-login-v5 .login-panel-head h2{font-size:30px;letter-spacing:-.04em;margin:0;}
.pos-login-v5 .login-panel-head p{margin:4px 0 0;color:#64748b;}
.pos-login-v5 .form-control{background:#fff!important;border:1px solid #e2e8f0!important;min-height:56px!important;border-radius:0 18px 18px 0!important;}
.pos-login-v5 .input-group-text{border:1px solid #e2e8f0!important;border-right:0!important;background:#f8fafc!important;border-radius:18px 0 0 18px!important;color:#64748b!important;}
.pos-login-v5 .btn{min-height:54px;border-radius:18px;font-weight:900;}.pos-login-v5 .btn-block{width:100%;justify-content:center}.pos-login-v5 .alert{border-radius:18px}.pos-login-v5 .login-security-note{margin:18px 0 0;color:#64748b;font-size:12.5px;display:flex;gap:8px;align-items:flex-start;}
@media(max-width:900px){.pos-login-v5 .login-shell-v5{grid-template-columns:1fr}.pos-login-v5 .login-brand-v5{min-height:auto;padding:34px}.pos-login-v5 .login-panel-v5{padding:34px}.pos-login-v5 .login-brand-v5 h1{font-size:32px}.pos-login-v5 .login-feature-list{grid-template-columns:1fr}}

/* ================================================================
   WHITE CODER POS UX UPDATE v6 - dashboard overflow + smoothness
================================================================ */
html, body { max-width: 100%; overflow-x: hidden; }
.app-layout, .main-content, .page-content, .card, .card-body, .dashboard-hero, .stat-card, .table-wrap { min-width: 0; }
.main-content { width: calc(100% - 260px); max-width: calc(100% - 260px); }
.page-content { width: 100%; max-width: 1600px; margin: 0 auto; overflow-x: clip; }
.row { width: calc(100% + 20px); max-width: calc(100% + 20px); }
[class*="col-"], [class^="col-"] { min-width: 0; }
.dashboard-hero > div { min-width: 0; }
.dashboard-hero h1, .dashboard-hero p, .topbar-title, .card-header h6, .card-header h5 { overflow-wrap: anywhere; }
.dashboard-actions { max-width: 100%; justify-content: flex-end; }
.dashboard-actions .btn { max-width: 100%; }
.dashboard-kpi-grid, .report-kpi-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: stretch; }
.stat-card { padding: 18px; gap: 12px; align-items: flex-start; }
.stat-card::before { pointer-events: none; }
.stat-card:hover { transform: none; }
.stat-icon { width: 48px; height: 48px; font-size: 21px; }
.stat-value { font-size: clamp(18px, 1.8vw, 22px); overflow-wrap: anywhere; word-break: break-word; }
.stat-meta { overflow-wrap: anywhere; }
.dashboard-chart-card { min-height: 0; }
.dashboard-chart-card .card-body { height: min(330px, 42vh); }
.dashboard-chart-card canvas { width: 100% !important; height: 100% !important; max-height: 300px; display: block; }
.table tbody td { overflow-wrap: anywhere; }
.table td strong, .table td small { overflow-wrap: anywhere; }
.btn, .card, .product-card, .stat-card, .sidebar-menu a, .form-control, .form-select { transition: background-color .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, opacity .16s ease; }
.btn:hover, .product-card:hover { transform: none !important; }
@media (max-width: 992px) {
    .main-content { width: 100%; max-width: 100%; margin-left: 0; }
    .page-content { padding: 18px; }
    .topbar { padding: 12px 16px; }
    .topbar-actions { gap: 6px; }
}
@media (max-width: 680px) {
    .dashboard-hero { padding: 18px; border-radius: 20px; }
    .dashboard-hero h1 { font-size: 23px; }
    .dashboard-actions { width: 100%; justify-content: stretch; }
    .dashboard-actions .btn { flex: 1 1 100%; justify-content: center; }
    .stat-card { padding: 15px; }
    .stat-icon { width: 42px; height: 42px; font-size: 18px; }
    .user-badge { display: none; }
}

/* ================================================================
   WHITE CODER POS UX UPDATE v6 - layout fixes, compact POS, larger inputs
================================================================ */
:root{--field-h:52px;--field-pad:13px 15px;}
.page-header,.pro-page-header,.enterprise-hero,.module-controlbar,.smart-table-tools,.filter-panel{overflow:visible!important;}
.form-control,.form-select,.comfortable-field{min-height:52px!important;padding:13px 15px!important;font-size:14.5px!important;border-radius:15px!important;}
.form-control:focus,.form-select:focus{box-shadow:0 0 0 4px rgba(37,99,235,.12)!important;border-color:rgba(37,99,235,.42)!important;}
.form-group{min-width:0;}
.form-grid,.pro-form-grid,.filter-panel{min-width:0;}
.pro-form-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr))!important;gap:16px!important;}
.form-grid.three{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;}
.form-grid.two{grid-template-columns:repeat(auto-fit,minmax(260px,1fr))!important;}
.form-span-2,.form-span-3,.form-span-full{grid-column:1/-1;}
.filter-panel{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;align-items:end!important;}
.filter-panel .filter-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;}
.smart-table-tools{display:grid!important;grid-template-columns:minmax(260px,1fr) auto auto;align-items:center!important;gap:10px!important;}
.smart-table-tools .smart-search-box{min-width:260px!important;width:100%;}
.pro-filter-tools{grid-template-columns:minmax(280px,1fr) repeat(auto-fit,minmax(180px,220px)) auto!important;}
.pro-filter-tools .pro-table-filter{width:100%!important;max-width:none!important;}
.searchable-select{width:100%;z-index:20!important;}
.searchable-select:focus-within{z-index:1200!important;}
.searchable-select-list{max-height:340px!important;box-shadow:0 24px 70px rgba(15,23,42,.18)!important;}
.native-select-hidden{position:absolute!important;left:0!important;bottom:0!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;}
.input-group{display:flex!important;align-items:stretch!important;width:100%;}
.input-group .form-control{min-width:0!important;}
.input-group-text{display:flex!important;align-items:center!important;border-radius:15px 0 0 15px!important;}
.input-group .form-control{border-radius:0 15px 15px 0!important;}

/* Compact POS item cards: more items visible on one screen */
.compact-pos.pos-layout{grid-template-columns:minmax(0,1fr) 390px!important;gap:12px!important;height:calc(100dvh - 108px)!important;min-height:560px!important;}
.compact-pos .pos-toolbar{display:grid!important;grid-template-columns:minmax(240px,1fr) 190px auto!important;gap:10px!important;align-items:center!important;}
.compact-pos .product-grid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))!important;gap:7px!important;padding:2px 2px 12px!important;}
.compact-pos .product-card{min-height:98px!important;padding:8px!important;border-radius:13px!important;gap:5px!important;}
.compact-pos .product-card .product-icon{width:26px!important;height:26px!important;border-radius:9px!important;font-size:13px!important;margin-bottom:3px!important;}
.compact-pos .product-card .name{font-size:11px!important;line-height:1.18!important;min-height:26px!important;-webkit-line-clamp:2!important;}
.compact-pos .product-card .product-code{font-size:9.5px!important;line-height:1.1!important;max-height:22px!important;overflow:hidden!important;}
.compact-pos .product-card .price{font-size:12.2px!important;line-height:1.1!important;}
.compact-pos .product-card .stock-badge{font-size:9px!important;line-height:1!important;padding:2px 5px!important;}
.compact-pos .pos-helper-bar{gap:6px!important;}
.compact-pos .pos-helper-chip{font-size:10.5px!important;padding:5px 8px!important;}
.compact-pos .pos-cart{max-height:100%;overflow:auto;}
.compact-pos .cart-scroll-area{min-height:120px;}
.compact-pos .cart-items{max-height:300px!important;overflow:auto;}
.compact-pos .cart-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto 34px!important;align-items:center!important;padding:9px!important;}
.mini-input{width:92px!important;min-height:40px!important;font-size:13px!important;}
.mini-input.wide{width:110px!important;}

/* Payment collection live customer/invoice finder */
.due-finder-panel{border:1px solid var(--border);background:linear-gradient(180deg,var(--surface),var(--surface-2));border-radius:18px;padding:12px;margin:0 0 14px;}
.due-result-list{max-height:260px;overflow:auto;display:grid;gap:8px;margin-top:10px;}
.due-result-item{width:100%;border:1px solid var(--border);background:var(--surface);border-radius:14px;padding:11px 12px;text-align:left;cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;}
.due-result-item:hover,.due-result-item.active{border-color:rgba(37,99,235,.45);background:var(--primary-soft);}
.due-result-item strong{display:block;font-size:13px;color:var(--text);}
.due-result-item small{display:block;color:var(--text-muted);font-size:11.5px;margin-top:2px;}
.due-result-amount{font-weight:900;color:var(--success);white-space:nowrap;}
.due-empty{padding:16px;border:1px dashed var(--border);border-radius:14px;text-align:center;color:var(--text-muted);}

@media(max-width:1180px){
    .compact-pos.pos-layout{grid-template-columns:1fr!important;height:auto!important;overflow:visible!important;}
    .compact-pos .pos-toolbar{grid-template-columns:1fr!important;}
    .smart-table-tools,.pro-filter-tools{grid-template-columns:1fr!important;}
}
@media(max-width:768px){
    .form-grid.two,.form-grid.three,.form-grid.four,.pro-form-grid,.filter-panel{grid-template-columns:1fr!important;}
    .compact-pos .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
    .compact-pos .cart-item{grid-template-columns:minmax(0,1fr) auto!important;}
    .due-result-item{grid-template-columns:1fr;}
}

/* ================================================================
   FIELD AGENT COLLECTION WORKFLOW UPDATE
================================================================ */
.agent-view-v2{max-width:560px;background:#f6f8fb;color:var(--text);}
.agent-header-v2{border-radius:0 0 24px 24px;padding:18px 18px 22px;background:linear-gradient(135deg,#1e293b,#4f46e5);position:sticky;top:0;z-index:50;}
.agent-header-actions{display:flex;gap:8px;align-items:center}.agent-header-actions button,.agent-header-actions a{width:42px;height:42px;border:1px solid rgba(255,255,255,.25);border-radius:14px;background:rgba(255,255,255,.12);color:#fff;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-size:18px}
.agent-kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:14px 14px 4px}.agent-stat.compact{margin:0;padding:14px 10px;border-radius:18px;text-align:left}.agent-stat.compact span{display:block;font-size:11px;color:var(--text-muted);font-weight:800;text-transform:uppercase;letter-spacing:.04em}.agent-stat.compact strong{display:block;font-size:15px;margin-top:5px;color:var(--text)}.agent-stat.compact small{display:block;margin-top:2px;color:var(--text-muted);font-size:10.5px}
.agent-warning{margin:12px 14px 0;padding:12px 14px;border-radius:16px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;display:flex;gap:10px;font-size:12.5px;line-height:1.45}.agent-warning i{font-size:17px;flex-shrink:0}
.agent-mobile-tools{padding:14px;display:grid;grid-template-columns:minmax(0,1fr) 148px;gap:10px;align-items:center}.agent-mobile-tools .form-control,.agent-mobile-tools .form-select{min-height:46px!important;border-radius:16px!important;background:#fff!important}
.agent-section-title{display:flex;align-items:center;justify-content:space-between;padding:4px 16px 8px}.agent-section-title h6{margin:0;font-size:14px;font-weight:900}.agent-section-title span{background:#111827;color:#fff;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:900}
.agent-collection-card{margin:10px 14px;padding:14px;border-radius:22px;background:#fff}.agent-card-top{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px}.agent-route-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);background:#f8fafc;border-radius:999px;padding:5px 9px;color:#475569;font-size:11px;font-weight:800;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.agent-priority{border-radius:999px;padding:5px 9px;font-size:10px;font-weight:900;text-transform:uppercase;background:#e2e8f0;color:#334155}.agent-priority.high{background:#fef3c7;color:#92400e}.agent-priority.urgent{background:#fee2e2;color:#991b1b}.agent-priority.low{background:#dcfce7;color:#166534}
.agent-customer-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start}.agent-customer-main h4{margin:0 0 6px;font-size:16px;font-weight:950;letter-spacing:-.02em}.agent-customer-main p{margin:3px 0;color:#64748b;font-size:12.5px;line-height:1.35}.agent-due-box{text-align:right;background:linear-gradient(135deg,#f8fafc,#eef2ff);border:1px solid #e2e8f0;border-radius:16px;padding:10px;min-width:112px}.agent-due-box small,.agent-due-box span{display:block;color:#64748b;font-size:10.5px;font-weight:800}.agent-due-box strong{display:block;color:#059669;font-size:15px;margin:3px 0;font-weight:950}.agent-address{margin-top:11px;border-top:1px dashed #e2e8f0;padding-top:10px;color:#475569;font-size:12px;line-height:1.4}.agent-card-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.agent-card-meta span{background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:5px 8px;font-size:11px;color:#475569}.agent-actions-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.agent-actions-grid .btn{min-height:42px;border-radius:14px;font-weight:900}.agent-modal-summary{background:#f8fafc;border:1px solid var(--border);border-radius:18px;padding:14px;margin-bottom:14px;display:grid;gap:5px}.agent-modal-summary strong{font-size:17px}.agent-modal-summary span{color:var(--text-muted);font-size:13px}.agent-modal-summary b{color:#059669}.agent-big-input{font-size:24px!important;font-weight:950!important;text-align:center!important}.agent-print-note{display:flex;gap:8px;align-items:center;background:#ecfdf5;border:1px solid #bbf7d0;color:#166534;padding:10px 12px;border-radius:14px;font-size:12px;font-weight:800}.agent-assign-result-list{max-height:380px}.due-result-item.active{background:var(--primary-soft)!important;border-color:rgba(37,99,235,.35)!important}.agent-assignment-form .due-finder-panel{margin-top:14px}
@media(max-width:520px){.agent-kpi-grid{grid-template-columns:1fr 1fr}.agent-kpi-grid .agent-stat.compact:last-child{grid-column:1/-1}.agent-mobile-tools{grid-template-columns:1fr}.agent-customer-main{grid-template-columns:1fr}.agent-due-box{text-align:left}.agent-actions-grid{grid-template-columns:1fr 1fr}.agent-actions-grid .btn-success{grid-column:1/-1}.agent-route-pill{max-width:64%}}
@media print{.agent-header-v2,.agent-mobile-tools,.agent-actions-grid,.agent-warning{display:none!important}.agent-view-v2{max-width:none;background:#fff}.agent-collection-card{box-shadow:none;border:1px solid #ddd;break-inside:avoid}}


/* ================================================================
   WhiteCoder final polish: WhatsApp chat, developer cards, agent PWA
   ================================================================ */
.whitecoder-chat-header{gap:16px;align-items:center}.whitecoder-chat-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.whitecoder-chat-whatsapp-card{display:flex;align-items:center;gap:14px;background:linear-gradient(135deg,#ecfdf5,#f8fafc);border:1px solid #bbf7d0;border-radius:20px;padding:14px 16px;margin:-4px 0 16px;box-shadow:0 12px 28px rgba(16,185,129,.10)}.whitecoder-chat-whatsapp-card>div:first-child{width:46px;height:46px;border-radius:16px;background:#22c55e;color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;box-shadow:0 10px 22px rgba(34,197,94,.24)}.whitecoder-chat-whatsapp-card strong{display:block;font-size:15px;color:#064e3b}.whitecoder-chat-whatsapp-card span{display:block;font-size:13px;color:#047857;margin-top:2px}.whitecoder-chat-whatsapp-card a{margin-left:auto;text-decoration:none;background:#16a34a;color:#fff;border-radius:999px;padding:9px 14px;font-weight:900;font-size:12px;white-space:nowrap}
.developer-hero-clean{background:radial-gradient(circle at top left,#4f46e5 0,#111827 44%,#020617 100%)}.developer-status span{display:block;font-size:11px;margin-top:6px;color:rgba(255,255,255,.74)}.developer-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.developer-mini-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:16px;display:flex;gap:12px;align-items:center;box-shadow:0 14px 34px rgba(15,23,42,.06)}.developer-mini-card i{width:46px;height:46px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:21px}.developer-mini-card span{display:block;color:#64748b;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.developer-mini-card strong{display:block;color:#0f172a;font-size:24px;line-height:1;margin-top:4px}.developer-mini-card.primary i{background:#eef2ff;color:#4f46e5}.developer-mini-card.danger i{background:#fee2e2;color:#dc2626}.developer-mini-card.success i{background:#dcfce7;color:#16a34a}.developer-mini-card.info i{background:#e0f2fe;color:#0284c7}.developer-mini-card.dark i{background:#f1f5f9;color:#0f172a}.developer-card-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px;align-items:start}.developer-stack{display:grid;gap:16px}.developer-action-card{border-radius:22px;overflow:hidden}.developer-feature-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;flex-wrap:wrap!important}.developer-feature-header small{display:block;color:#64748b;margin-top:3px}.developer-feature-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.developer-feature-tools{display:flex;gap:10px;align-items:center;margin-bottom:16px}.developer-feature-tools .smart-search-box{flex:1}.developer-feature-groups{display:grid;gap:18px}.developer-feature-group-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.developer-feature-group-title span{font-weight:950;color:#111827}.developer-feature-group-title b{background:#111827;color:#fff;border-radius:999px;font-size:11px;padding:4px 9px}.developer-feature-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}.developer-feature-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:14px;display:flex;flex-direction:column;gap:10px;min-height:205px;box-shadow:0 12px 28px rgba(15,23,42,.05);transition:.18s ease}.developer-feature-card:hover{transform:translateY(-2px);box-shadow:0 18px 38px rgba(15,23,42,.09)}.developer-feature-card.locked{border-color:#fecaca;background:linear-gradient(180deg,#fff,#fff7f7)}.developer-feature-card.unlocked{border-color:#bbf7d0;background:linear-gradient(180deg,#fff,#f8fffb)}.developer-feature-card-top,.developer-feature-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.developer-feature-icon{width:42px;height:42px;border-radius:14px;background:#f1f5f9;color:#0f172a;display:flex;align-items:center;justify-content:center;font-size:18px}.developer-feature-card.locked .developer-feature-icon{background:#fee2e2;color:#dc2626}.developer-feature-card.unlocked .developer-feature-icon{background:#dcfce7;color:#16a34a}.developer-feature-card h5{margin:0;font-size:15px;font-weight:950;color:#0f172a;line-height:1.25}.developer-feature-card code{display:block;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:7px 9px;color:#334155;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.developer-feature-card p{margin:0;color:#64748b;font-size:12.5px;line-height:1.45;flex:1}.developer-feature-card-footer span{font-size:11px;font-weight:900;color:#475569;background:#f8fafc;border:1px solid #e2e8f0;border-radius:999px;padding:5px 8px;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.agent-offline-panel{margin:12px 14px 0;background:#fff;border:1px solid #dbeafe;border-radius:18px;padding:11px;display:flex;align-items:center;justify-content:space-between;gap:10px;box-shadow:0 10px 24px rgba(37,99,235,.06)}.agent-offline-status{display:flex;align-items:center;gap:8px;color:#1d4ed8;font-weight:900;font-size:12.5px}.agent-offline-status i{font-size:18px}.agent-offline-panel.offline{border-color:#fed7aa;background:#fff7ed}.agent-offline-panel.offline .agent-offline-status{color:#9a3412}.agent-offline-actions button{border:0;border-radius:999px;background:#111827;color:#fff;padding:8px 11px;font-weight:900;font-size:12px;display:flex;align-items:center;gap:6px}.agent-offline-actions b{background:rgba(255,255,255,.16);border-radius:999px;padding:1px 6px}.agent-header-actions #agentInstallBtn{background:rgba(34,197,94,.22);border-color:rgba(187,247,208,.45)}
@media(max-width:1100px){.developer-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.developer-card-layout{grid-template-columns:1fr}.developer-stack{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.developer-stack,.developer-summary-grid{grid-template-columns:1fr}.developer-feature-tools{align-items:stretch;flex-direction:column}.whitecoder-chat-whatsapp-card{align-items:flex-start}.whitecoder-chat-whatsapp-card a{margin-left:0}.whitecoder-chat-actions{width:100%}.whitecoder-chat-actions .btn{flex:1;justify-content:center}}@media(max-width:520px){.agent-offline-panel{align-items:stretch;flex-direction:column}.agent-offline-actions button{width:100%;justify-content:center}}

/* Professional Report Center update */
.report-category-strip{display:flex;gap:8px;overflow:auto;padding:8px 2px 14px;margin-bottom:10px;scrollbar-width:thin;}
.report-category-strip a{white-space:nowrap;text-decoration:none;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:999px;padding:9px 14px;font-weight:700;font-size:12px;box-shadow:0 8px 20px rgba(15,23,42,.04);}
.report-category-strip a.active{background:linear-gradient(135deg,var(--primary),var(--secondary));color:#fff;border-color:transparent;}
.report-card-header{align-items:flex-start!important;gap:12px;}
.report-card-header h6{margin-bottom:3px;}
.report-card-header small{display:block;color:var(--text-muted);font-size:12px;line-height:1.4;}
.report-table td.text-end,.report-table th.text-end{text-align:right;}
.report-section{margin-bottom:18px;}
.report-section .table-wrap{max-height:none;}
@media(max-width:768px){.report-card-header{flex-direction:column;align-items:stretch!important}.report-card-header>.d-flex{justify-content:flex-start;flex-wrap:wrap}.report-category-strip a{font-size:11.5px;padding:8px 12px}}
@media print{
  body.thermal-report-print{background:#fff!important;}
  body.thermal-report-print .main-content{margin:0!important;width:80mm!important;max-width:80mm!important;}
  body.thermal-report-print .page-content{padding:2mm!important;width:80mm!important;max-width:80mm!important;}
  body.thermal-report-print .report-print-header h1{font-size:13px!important;}
  body.thermal-report-print .report-print-header p{font-size:9px!important;}
  body.thermal-report-print .report-kpi-grid{display:block!important;}
  body.thermal-report-print .stat-card{padding:5px!important;margin:0 0 4px!important;border:1px dashed #bbb!important;}
  body.thermal-report-print .stat-icon{display:none!important;}
  body.thermal-report-print .stat-label{font-size:9px!important;}
  body.thermal-report-print .stat-value{font-size:11px!important;}
  body.thermal-report-print .stat-meta{font-size:8px!important;}
  body.thermal-report-print .report-section{width:76mm!important;max-width:76mm!important;overflow:hidden!important;page-break-inside:auto!important;}
  body.thermal-report-print .report-section .card-header h6{font-size:11px!important;}
  body.thermal-report-print .report-section .card-header small{font-size:8px!important;}
  body.thermal-report-print .report-table{width:100%!important;table-layout:auto!important;}
  body.thermal-report-print .report-table th,body.thermal-report-print .report-table td{font-size:7.5px!important;padding:2px!important;word-break:break-word!important;}
}
