/* ============================================================
   LAKKAD LOHA - STAFF MANAGEMENT CSS
   Modern SaaS design with dark/light mode
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --primary-bg: rgba(79, 70, 229, 0.1);

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-bg: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --info: #3b82f6;
    --info-bg: rgba(59, 130, 246, 0.1);

    --sidebar-width: 260px;
    --topnav-height: 64px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 1px 3px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,.1);
    --transition: 0.2s ease;

    /* Light mode */
    --bg: #f8f9ff;
    --bg-secondary: #f1f2f8;
    --surface: #ffffff;
    --surface-2: #f8f9ff;
    --border: #e5e7f0;
    --border-light: #f0f1f8;
    --text: #0f1117;
    --text-2: #4b5169;
    --text-3: #8b93ad;
    --sidebar-bg: #ffffff;
    --sidebar-text: #4b5169;
    --sidebar-active-bg: var(--primary-bg);
    --sidebar-active-text: var(--primary);
    --topnav-bg: rgba(255,255,255,0.85);
    --input-bg: #f8f9ff;
    --scrollbar: #d1d5db;
}

[data-theme="dark"] {
    --bg: #0c0d14;
    --bg-secondary: #13141f;
    --surface: #171828;
    --surface-2: #1e2030;
    --border: #2a2d45;
    --border-light: #1e2030;
    --text: #f1f2f8;
    --text-2: #a0a6c0;
    --text-3: #5c6280;
    --sidebar-bg: #13141f;
    --sidebar-text: #a0a6c0;
    --sidebar-active-bg: rgba(79, 70, 229, 0.15);
    --sidebar-active-text: #818cf8;
    --topnav-bg: rgba(23, 24, 40, 0.9);
    --input-bg: #1e2030;
    --scrollbar: #2a2d45;
    --shadow: 0 1px 3px rgba(0,0,0,.3), 0 4px 12px rgba(0,0,0,.2);
    --shadow-md: 0 4px 16px rgba(0,0,0,.35);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius: 3px; }

/* ---------- Sidebar ---------- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 200;
    transition: transform var(--transition), background var(--transition);
    overflow-y: auto;
}

.sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-icon {
    width: 40px; height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    display: block;
    line-height: 1.2;
}

.brand-sub {
    font-size: 11px;
    color: var(--text-3);
    display: block;
}

.sidebar-close {
    background: none;
    border: none;
    color: var(--text-2);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

.sidebar-nav {
    flex: 1;
    padding: 12px 8px;
    overflow-y: auto;
}

.nav-section {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    padding: 16px 12px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    transition: all var(--transition);
    position: relative;
}

.nav-item:hover {
    background: var(--bg-secondary);
    color: var(--text);
}

.nav-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}

.nav-item i { font-size: 16px; flex-shrink: 0; }

.sidebar-footer {
    padding: 12px;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition);
}

.user-card:hover { background: var(--bg-secondary); }

.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    display: block;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.user-role {
    font-size: 11px;
    color: var(--text-3);
    display: block;
}

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

/* ---------- Topnav ---------- */
.topnav {
    height: var(--topnav-height);
    background: var(--topnav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 16px;
    transition: background var(--transition);
}

.topnav-left, .topnav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    width: 38px; height: 38px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    position: relative;
}

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

.notif-badge {
    position: absolute;
    top: 4px; right: 4px;
    width: 16px; height: 16px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--surface);
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

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

.user-avatar-sm {
    width: 26px; height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

/* Breadcrumb */
.breadcrumb { font-size: 13px; }
.breadcrumb-item { color: var(--text-3); }
.breadcrumb-item.active { color: var(--text); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-3); }

/* ---------- Notification Dropdown ---------- */
.notif-dropdown {
    width: 340px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    background: var(--surface);
    overflow: hidden;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

.notif-list { max-height: 360px; overflow-y: auto; }

.notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--transition);
    border-bottom: 1px solid var(--border-light);
}

.notif-item:hover { background: var(--bg-secondary); }
.notif-item.unread { background: var(--primary-bg); }

.notif-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notif-icon-low_stock { background: var(--warning-bg); color: var(--warning); }
.notif-icon-sale { background: var(--success-bg); color: var(--success); }
.notif-icon-info { background: var(--info-bg); color: var(--info); }

.notif-title { font-size: 13px; font-weight: 600; color: var(--text); }
.notif-msg { font-size: 12px; color: var(--text-2); margin-top: 2px; line-height: 1.4; }

.notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-3);
}

.notif-empty i { font-size: 32px; display: block; margin-bottom: 8px; }
.notif-empty p { font-size: 13px; margin: 0; }

/* ---------- Page Content ---------- */
.page-content {
    flex: 1;
    padding: 24px;
    max-width: 100%;
}

/* ---------- Page Header ---------- */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-3);
    margin: 4px 0 0;
}

/* ---------- Cards ---------- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: background var(--transition), border var(--transition);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: transparent;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.card-body { padding: 20px; }

/* Stat Cards */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
    position: relative;
}

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

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

.stat-icon-primary { background: var(--primary-bg); color: var(--primary); }
.stat-icon-success { background: var(--success-bg); color: var(--success); }
.stat-icon-danger { background: var(--danger-bg); color: var(--danger); }
.stat-icon-warning { background: var(--warning-bg); color: var(--warning); }
.stat-icon-info { background: var(--info-bg); color: var(--info); }

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 2px;
    font-weight: 500;
}

.stat-trend {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-trend-up { color: var(--success); }
.stat-trend-down { color: var(--danger); }

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

.table-responsive { overflow-x: auto; }

table.table {
    margin: 0;
    font-size: 13px;
    color: var(--text);
    border-color: var(--border-light);
}

.table thead th {
    background: var(--surface-2);
    color: var(--text-3);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    border-top: none;
    white-space: nowrap;
}

.table tbody td {
    padding: 12px 16px;
    border-color: var(--border-light);
    vertical-align: middle;
    color: var(--text);
}

.table tbody tr {
    transition: background var(--transition);
}

.table tbody tr:hover { background: var(--bg-secondary); }

/* ---------- Badges ---------- */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
}

/* ---------- Buttons ---------- */
.btn {
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
    cursor: pointer;
}

.btn-primary { background: var(--primary); border-color: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; transform: translateY(-1px); }

.btn-outline-primary { color: var(--primary); border-color: var(--primary); background: transparent; }
.btn-outline-primary:hover { background: var(--primary); color: white; }

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

/* ---------- Forms ---------- */
.form-control, .form-select {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    padding: 9px 12px;
    transition: all var(--transition);
}

.form-control:focus, .form-select:focus {
    background: var(--input-bg);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
    color: var(--text);
    outline: none;
}

.form-control::placeholder { color: var(--text-3); }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.form-text { font-size: 12px; color: var(--text-3); }

.input-group-text {
    background: var(--surface-2);
    border-color: var(--border);
    color: var(--text-2);
}

/* ---------- Alert Toasts ---------- */
.alert-toast {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-size: 14px;
    font-weight: 500;
    max-width: 420px;
    animation: slideInRight 0.3s ease;
}

.alert-toast button {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.6;
    margin-left: auto;
    font-size: 16px;
}

.alert-toast button:hover { opacity: 1; }

.alert-toast-success {
    background: var(--surface);
    border: 1px solid var(--success);
    color: var(--text);
}

.alert-toast-success i { color: var(--success); }

.alert-toast-danger {
    background: var(--surface);
    border: 1px solid var(--danger);
    color: var(--text);
}

.alert-toast-danger i { color: var(--danger); }

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

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

/* ---------- Status Badges ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: capitalize;
}

.status-completed { background: var(--success-bg); color: var(--success); }
.status-cancelled { background: var(--danger-bg); color: var(--danger); }
.status-refunded { background: var(--warning-bg); color: var(--warning); }
.status-present { background: var(--success-bg); color: var(--success); }
.status-absent { background: var(--danger-bg); color: var(--danger); }
.status-late { background: var(--warning-bg); color: var(--warning); }
.status-half_day { background: var(--info-bg); color: var(--info); }
.status-leave { background: var(--primary-bg); color: var(--primary); }
.status-holiday { background: var(--bg-secondary); color: var(--text-2); }
.status-in_stock { background: var(--success-bg); color: var(--success); }
.status-low_stock { background: var(--warning-bg); color: var(--warning); }
.status-out_of_stock { background: var(--danger-bg); color: var(--danger); }

/* ---------- Empty States ---------- */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-3);
}

.empty-state i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 13px;
    max-width: 320px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

/* ---------- Dropdown ---------- */
.dropdown-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 6px;
}

.dropdown-item {
    color: var(--text);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    transition: background var(--transition);
}

.dropdown-item:hover { background: var(--bg-secondary); color: var(--text); }
.dropdown-item.text-danger:hover { background: var(--danger-bg); }
.dropdown-divider { border-color: var(--border-light); margin: 4px 0; }

/* ---------- Pagination ---------- */
.pagination { gap: 4px; }
.page-link {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-2);
    border-radius: var(--radius-sm) !important;
    font-size: 13px;
    padding: 6px 12px;
    transition: all var(--transition);
}
.page-link:hover { background: var(--primary); border-color: var(--primary); color: white; }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ---------- Loading Spinner ---------- */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    backdrop-filter: blur(4px);
}

.spinner-ring {
    width: 44px; height: 44px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ---------- Modals ---------- */
.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.modal-header {
    border-bottom: 1px solid var(--border-light);
    padding: 20px 24px;
}

.modal-title { font-size: 16px; font-weight: 700; color: var(--text); }
.btn-close { filter: none; opacity: 0.5; }
[data-theme="dark"] .btn-close { filter: invert(1); }

.modal-body { padding: 24px; }
.modal-footer { border-top: 1px solid var(--border-light); padding: 16px 24px; background: transparent; }

/* ---------- Receipt ---------- */
.receipt-paper {
    background: white;
    color: #111;
    max-width: 380px;
    margin: 0 auto;
    padding: 32px 24px;
    font-family: 'Courier New', monospace;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ---------- Charts ---------- */
.chart-container { position: relative; }
.chart-container canvas { max-height: 300px; }

/* ---------- Sidebar Overlay (mobile) ---------- */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    backdrop-filter: blur(2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

    .sidebar-overlay.open {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .page-content {
        padding: 16px;
    }

    .topnav { padding: 0 16px; }
}

@media (max-width: 575.98px) {
    .page-header { flex-direction: column; align-items: flex-start; }
    .stat-value { font-size: 20px; }
    .alert-toast { right: 12px; left: 12px; max-width: none; }
}

/* ---------- Dark mode overrides for Bootstrap ---------- */
[data-theme="dark"] .table { --bs-table-bg: transparent; }
[data-theme="dark"] .table-hover tbody tr:hover { --bs-table-hover-bg: var(--bg-secondary); }
[data-theme="dark"] .modal-backdrop { background: rgba(0,0,0,0.7); }
[data-theme="dark"] .form-check-input { background-color: var(--input-bg); border-color: var(--border); }
[data-theme="dark"] .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

/* ---------- Utility classes ---------- */
.text-primary { color: var(--primary) !important; }
.text-muted { color: var(--text-3) !important; }
.text-secondary-custom { color: var(--text-2) !important; }
.bg-surface { background: var(--surface) !important; }
.border-custom { border-color: var(--border) !important; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fs-13 { font-size: 13px; }
.fs-12 { font-size: 12px; }

.rupee::before { content: '₹'; }

/* ---------- PWA Install Banner ---------- */
.pwa-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 500;
    max-width: 380px;
    width: calc(100% - 32px);
    animation: slideInUp 0.3s ease;
}

@keyframes slideInUp {
    from { transform: translateX(-50%) translateY(100%); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.pwa-banner-text { flex: 1; font-size: 13px; color: var(--text); }
.pwa-banner-text strong { display: block; font-weight: 700; margin-bottom: 2px; }
.pwa-banner-text span { color: var(--text-3); font-size: 12px; }

/* ---------- Avatar ---------- */
.avatar-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
}

.avatar-sm { width: 28px; height: 28px; }
.avatar-lg { width: 64px; height: 64px; }

/* ---------- Info row ---------- */
.info-row {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-3); min-width: 140px; font-weight: 500; }
.info-value { color: var(--text); font-weight: 500; }

/* Stock indicator bar */
.stock-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stock-bar {
    flex: 1;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.stock-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.stock-bar-fill.high { background: var(--success); }
.stock-bar-fill.medium { background: var(--warning); }
.stock-bar-fill.low { background: var(--danger); }

/* ---------- Sale Receipt Print ---------- */
@media print {
    .sidebar, .topnav, .page-header .btn, .no-print { display: none !important; }
    .main-wrapper { margin-left: 0; }
    .page-content { padding: 0; }
    body { background: white; }
}
