/* ============================================================
   SIGMA LUGGAGE HUB — Custom Stylesheet
   File : assets/css/style.css
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    --primary:        #D61B5D;
    --primary-dark:   #B9154D;
    --primary-light:  #FBE9F0;
    --yellow:         #F9B900;
    --yellow-light:   #FFF8E1;
    --blue:           #2278BD;
    --blue-light:     #E8F4FD;
    --green:          #28A745;
    --green-light:    #EAF6ED;
    --red:            #DC3545;
    --red-light:      #FDEAEA;
    --white:          #FFFFFF;
    --bg:             #F4F6F9;
    --surface:        #FFFFFF;
    --text-dark:      #2E2E2E;
    --text-medium:    #555555;
    --text-light:     #8A8A8A;
    --border:         #E5E5E5;
    --border-dark:    #CCCCCC;
    --shadow-sm:      0 1px 4px rgba(0,0,0,0.08);
    --shadow-md:      0 4px 16px rgba(0,0,0,0.10);
    --shadow-lg:      0 8px 32px rgba(0,0,0,0.12);
    --radius:         8px;
    --radius-lg:      12px;
    --navbar-h:       60px;
    --sidebar-w:      256px;
    --bottom-nav-h:   60px;
    --transition:     all 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Roboto', Arial, sans-serif;
    font-size: 14px;
    color: var(--text-medium);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
    color: var(--text-dark);
    font-weight: 600;
}

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

/* ── Typography helpers ─────────────────────────────────────── */
.fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; }
.text-primary { color: var(--primary) !important; }
.fs-13 { font-size: 13px; }
.fs-12 { font-size: 12px; }
.text-muted { color: var(--text-light) !important; }

/* ── Bootstrap overrides ────────────────────────────────────── */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 500;
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}
.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-dark);
    padding: 6px 8px;
    border-radius: var(--radius);
    line-height: 1;
    transition: var(--transition);
}
.btn-icon:hover {
    background: var(--bg);
    color: var(--primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(214,27,93,0.12);
}
.form-label {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 13px;
    margin-bottom: 4px;
}
.form-control, .form-select {
    border-color: var(--border);
    font-size: 14px;
    border-radius: var(--radius);
}
.form-text { font-size: 12px; color: var(--text-light); }

.badge {
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 4px 8px;
    border-radius: 20px;
}
.bg-primary { background: var(--primary) !important; }

/* ── Layout Wrapper ─────────────────────────────────────────── */
#appWrapper {
    display: flex;
    min-height: 100vh;
    padding-top: var(--navbar-h);
}

#mainContent {
    flex: 1;
    min-width: 0;
    padding: 24px 20px;
    transition: margin-left 0.25s ease;
    padding-bottom: calc(var(--bottom-nav-h) + 16px);
}

@media (min-width: 992px) {
    #mainContent {
        margin-left: var(--sidebar-w);
        padding-bottom: 24px;
    }
}

/* ── Navbar ─────────────────────────────────────────────────── */
.sigma-navbar {
    height: var(--navbar-h);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    z-index: 1040;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
    letter-spacing: -0.3px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.brand-logo {
    border-radius: 4px;
    object-fit: contain;
}

/* Notification badge */
.badge-notif {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--red);
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* User avatar initials */
.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ── Global Search ──────────────────────────────────────────── */
.global-search-wrap { position: relative; }

.global-search-wrap .input-group-text {
    border-color: var(--border);
    border-radius: var(--radius) 0 0 var(--radius);
}
.global-search-wrap .form-control {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.global-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-height: 360px;
    overflow-y: auto;
    z-index: 1060;
}
.global-search-results.show { display: block; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg); }
.search-result-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.search-result-title { font-weight: 500; color: var(--text-dark); font-size: 13px; }
.search-result-sub { font-size: 12px; color: var(--text-light); }

/* ── Notifications Dropdown ─────────────────────────────────── */
.notif-dropdown {
    width: 360px;
    max-width: 95vw;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}
.notif-header { background: var(--bg); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-footer { background: var(--bg); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: var(--primary-light); }
.notif-item.unread:hover { background: #f5d5e4; }
.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.notif-title { font-weight: 500; color: var(--text-dark); font-size: 13px; line-height: 1.3; }
.notif-msg { font-size: 12px; color: var(--text-medium); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--text-light); margin-top: 3px; }

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1035;
}
.sidebar-overlay.show { display: block; }

.sigma-sidebar {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    width: var(--sidebar-w);
    height: calc(100vh - var(--navbar-h));
    background: var(--white);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1036;
    transition: transform 0.25s ease;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

/* Mobile: sidebar hidden by default, slides in */
@media (max-width: 991px) {
    .sigma-sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }
    .sigma-sidebar.open {
        transform: translateX(0);
    }
}

.sidebar-inner { padding: 12px 0 80px; }

.sidebar-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-section-header {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
    padding: 16px 20px 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 20px;
    color: var(--text-medium);
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 0;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}
.sidebar-link:hover {
    background: var(--bg);
    color: var(--primary);
}
.sidebar-link.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}
.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
}
.sidebar-icon {
    font-size: 16px;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}
.sidebar-badge {
    margin-left: auto;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    min-width: 20px;
    text-align: center;
}

/* ── Mobile Bottom Nav ──────────────────────────────────────── */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-h);
    background: var(--white);
    border-top: 1px solid var(--border);
    z-index: 1034;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
}
.mobile-bottom-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}
.mobile-bottom-nav ul li {
    flex: 1;
}
.mobile-bottom-nav ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    font-size: 10px;
    font-weight: 500;
    gap: 3px;
    transition: var(--transition);
}
.mobile-bottom-nav ul li a i {
    font-size: 20px;
}
.mobile-bottom-nav ul li a.active,
.mobile-bottom-nav ul li a:hover {
    color: var(--primary);
}
.mobile-bottom-nav .mobile-fab-link {
    color: var(--primary) !important;
}
.mobile-bottom-nav .mobile-fab-link i {
    font-size: 26px !important;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    background: var(--white);
}
.card-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}
.card-body { padding: 20px; }

/* ── KPI Cards ──────────────────────────────────────────────── */
.kpi-card {
    border-radius: var(--radius-lg);
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}
.kpi-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.kpi-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}
.kpi-icon-blue   { background: var(--blue-light);   color: var(--blue); }
.kpi-icon-green  { background: var(--green-light);  color: var(--green); }
.kpi-icon-yellow { background: var(--yellow-light); color: #856404; }
.kpi-icon-red    { background: var(--red-light);    color: var(--red); }
.kpi-icon-primary{ background: var(--primary-light);color: var(--primary); }

.kpi-value {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 4px;
}
.kpi-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.kpi-sub {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}
.page-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin: 2px 0 0;
}
.breadcrumb { font-size: 12px; margin: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-light); }
.breadcrumb-item.active { color: var(--text-light); }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--white);
}
.table {
    margin: 0;
    font-size: 13px;
    border-color: var(--border);
}
.table thead th {
    background: var(--bg);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid var(--border);
    padding: 10px 14px;
    white-space: nowrap;
}
.table tbody td {
    padding: 11px 14px;
    border-color: var(--border);
    vertical-align: middle;
    color: var(--text-medium);
}
.table tbody tr:hover { background: var(--bg); }
.table tbody tr:last-child td { border-bottom: none; }

/* Sticky table header */
.table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* ── Filters Bar ─────────────────────────────────────────────── */
.filters-bar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 16px;
}
.filters-bar .form-control,
.filters-bar .form-select {
    font-size: 13px;
}

/* ── Alert Banners ──────────────────────────────────────────── */
.alert-banner {
    border-radius: var(--radius);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.alert-banner i { font-size: 16px; flex-shrink: 0; }

/* ── Today Summary Bar ──────────────────────────────────────── */
.today-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.today-stat {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 150px;
}
.today-stat i { color: var(--primary); font-size: 18px; }
.today-stat-val { font-weight: 700; color: var(--text-dark); font-size: 16px; }
.today-stat-label { font-size: 11px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.4px; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}
.form-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-section-title i { color: var(--primary); }

/* Required asterisk */
.required::after {
    content: ' *';
    color: var(--red);
}

/* ── SKU Builder ────────────────────────────────────────────── */
.sku-row {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    position: relative;
}
.sku-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.sku-row-number {
    font-weight: 700;
    color: var(--primary);
    font-size: 12px;
}
.sku-margin-positive { color: var(--green); font-weight: 600; }
.sku-margin-negative { color: var(--red);   font-weight: 600; }
.sku-margin-warn     { color: #856404;      font-weight: 600; }

/* Booking totals footer */
.booking-totals {
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
}
.booking-totals .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    font-size: 13px;
}
.booking-totals .total-row.grand {
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}
.margin-warn-banner {
    background: var(--yellow-light);
    border: 1px solid var(--yellow);
    border-radius: var(--radius);
    padding: 8px 14px;
    font-size: 13px;
    color: #856404;
    display: none;
}
.margin-warn-banner.show { display: flex; align-items: center; gap: 8px; }

/* ── Status Timeline ────────────────────────────────────────── */
.status-timeline {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    margin: 16px 0;
}
.timeline-step {
    display: flex;
    align-items: center;
    gap: 0;
}
.timeline-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-light);
    flex-shrink: 0;
    transition: var(--transition);
}
.timeline-dot.done    { background: var(--green);   border-color: var(--green);   color: #fff; }
.timeline-dot.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.timeline-line {
    height: 2px;
    width: 32px;
    background: var(--border);
    flex-shrink: 0;
}
.timeline-line.done { background: var(--green); }
.timeline-label {
    font-size: 10px;
    color: var(--text-light);
    text-align: center;
    margin-top: 4px;
    white-space: nowrap;
}

/* ── Toasts ─────────────────────────────────────────────────── */
.sigma-toast {
    min-width: 280px;
    max-width: 380px;
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
    font-size: 13px;
}
.sigma-toast .toast-body {
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.toast-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.toast-success { background: var(--green-light);  border-left: 4px solid var(--green); }
.toast-danger  { background: var(--red-light);    border-left: 4px solid var(--red); }
.toast-warning { background: var(--yellow-light); border-left: 4px solid var(--yellow); }
.toast-info    { background: var(--blue-light);   border-left: 4px solid var(--blue); }

/* Mobile toasts go bottom-center */
@media (max-width: 576px) {
    #toastContainer {
        top: auto !important;
        bottom: calc(var(--bottom-nav-h) + 8px) !important;
        right: 50% !important;
        transform: translateX(50%);
        width: 90vw;
    }
    .sigma-toast { min-width: unset; max-width: unset; width: 100%; }
}

/* ── Modals ─────────────────────────────────────────────────── */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.modal-header {
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
}
.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}
.modal-footer {
    border-top: 1px solid var(--border);
    padding: 14px 20px;
}
.modal-backdrop { backdrop-filter: blur(2px); }

/* ── Ledger Statement ───────────────────────────────────────── */
.ledger-debit  { color: var(--red);   font-weight: 500; }
.ledger-credit { color: var(--green); font-weight: 500; }
.ledger-balance-positive { color: var(--red);   font-weight: 600; }
.ledger-balance-negative { color: var(--green); font-weight: 600; }

/* ── Ageing badges ──────────────────────────────────────────── */
.age-current { background: var(--green-light);  color: var(--green); border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.age-1-30    { background: var(--yellow-light); color: #856404;      border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.age-31-60   { background: #FFF3CD;             color: #664D03;      border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.age-61-90   { background: #FFE5CC;             color: #8A3D00;      border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.age-90plus  { background: var(--red-light);    color: var(--red);   border-radius: 4px; padding: 2px 8px; font-size: 12px; font-weight: 600; }

/* ── Empty State ────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-light);
}
.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--border-dark);
}
.empty-state-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}
.empty-state-text { font-size: 13px; margin-bottom: 20px; }

/* ── Tabs ───────────────────────────────────────────────────── */
.nav-tabs {
    border-bottom: 2px solid var(--border);
    gap: 4px;
}
.nav-tabs .nav-link {
    color: var(--text-medium);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 13px;
    border-radius: 0;
    transition: var(--transition);
}
.nav-tabs .nav-link:hover { color: var(--primary); }
.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
    font-weight: 600;
}

/* ── Warranty check public page ─────────────────────────────── */
.warranty-result-valid {
    background: var(--green-light);
    border: 2px solid var(--green);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}
.warranty-result-expired {
    background: var(--red-light);
    border: 2px solid var(--red);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}
.warranty-serial-display {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-dark);
    background: var(--bg);
    padding: 10px 20px;
    border-radius: var(--radius);
    display: inline-block;
}

/* ── Print styles ───────────────────────────────────────────── */
@media print {
    .sigma-navbar,
    .sigma-sidebar,
    .mobile-bottom-nav,
    .sidebar-overlay,
    .btn,
    .filters-bar,
    .breadcrumb,
    #toastContainer { display: none !important; }

    #mainContent { margin-left: 0 !important; padding: 0 !important; }
    body { background: #fff; font-size: 12px; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
    .table { font-size: 11px; }
    .table thead th { background: #f0f0f0 !important; -webkit-print-color-adjust: exact; }
}

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

/* ── Utility ────────────────────────────────────────────────── */
.cursor-pointer { cursor: pointer; }
.no-wrap { white-space: nowrap; }
.mono { font-family: 'Courier New', monospace; }
.border-primary { border-color: var(--primary) !important; }
.bg-primary-light { background: var(--primary-light) !important; }
.text-success { color: var(--green) !important; }
.text-danger  { color: var(--red)   !important; }
.text-warning { color: #856404      !important; }
.text-info    { color: var(--blue)  !important; }
.divider { border-top: 1px solid var(--border); margin: 16px 0; }
.loading-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Mobile responsive tweaks ───────────────────────────────── */
@media (max-width: 576px) {
    #mainContent { padding: 16px 12px; }
    .kpi-value { font-size: 18px; }
    .page-title { font-size: 17px; }
    .card-body { padding: 14px; }
    .form-section { padding: 14px; }
    .today-bar { gap: 8px; }
    .today-stat { min-width: 120px; padding: 8px 12px; }
    .today-stat-val { font-size: 14px; }
    .booking-totals { padding: 12px 14px; }
    .modal-dialog { margin: 8px; }
}
