/* ==========================================================
   Delivery Management System — Styles
   Refreshed theme: same class names as before (so no PHP
   template had to change), cleaner colors/spacing/type.
   ========================================================== */
:root {
    --primary-color: #4f46e5;      /* indigo */
    --primary-dark: #3730a3;
    --secondary-color: #64748b;    /* slate */
    --success-color: #16a34a;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --info-color: #0891b2;
    --dark-color: #1e293b;
    --light-color: #f4f6fb;
    --border-color: #e2e8f0;
    --sidebar-width: 260px;
    --radius: 0.6rem;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.10);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    font-size: 13.5px;
    line-height: 1.45;
}

/* Sidebar Backdrop for Mobile */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #090d16 0%, #0f172a 45%, #1e1b4b 100%);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.sidebar::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.sidebar-header h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    margin: 0;
}

.sidebar-menu {
    padding: 1rem 0.75rem;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.95rem;
    margin-bottom: 0.25rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 0.55rem;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.15s ease-in-out;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar-menu a.active {
    border-left-color: #38bdf8;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.05));
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-menu i, 
.sidebar-menu .fas, 
.sidebar-menu .fa-solid {
    width: 22px;
    min-width: 22px;
    text-align: center;
    font-size: 1.05rem;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    color: #818cf8;
}

.sidebar-menu a.active i,
.sidebar-menu a.active .fas,
.sidebar-menu a.active .fa-solid {
    color: #38bdf8;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.collapsed {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
}

/* Top Navigation */
.top-nav {
    background: #ffffff;
    margin: 1rem 1.5rem 0.5rem 1.5rem;
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 1rem;
    z-index: 40;
}

.nav-left {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 6px;
    transition: background 0.15s ease;
}

.menu-toggle:hover {
    background: #f1f5f9;
}

.page-title {
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: -0.3px;
}

/* Top Navigation Toolbar Actions */
.top-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.btn-nav-icon, .btn-theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.btn-nav-icon:hover, .btn-theme-toggle:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.notification-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    border: 1.5px solid #ffffff;
}

.notif-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.btn-user-profile {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.3rem 0.75rem 0.3rem 0.4rem;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-user-profile:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.user-details {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.user-name {
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
    font-size: 0.85rem;
}

.user-role {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6366f1;
    line-height: 1.1;
    margin-top: 2px;
}

/* Content Area */
.content, .content-area {
    padding: 0.75rem 1.5rem 2rem 1.5rem;
    max-width: 100%;
    margin: 0;
    width: 100%;
}

.page-title {
    margin-bottom: 0;
    color: var(--dark-color);
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 1.75rem;
}

.card-header {
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--dark-color);
}

.card-body {
    padding: 1.35rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    background: white;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    outline: 0;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.65rem 1.35rem;
    margin: 0.25rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.btn-primary { background: var(--primary-color); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary-color); color: white; }
.btn-success { background: var(--success-color); color: white; }
.btn-danger { background: var(--danger-color); color: white; }
.btn-warning { background: var(--warning-color); color: white; }

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table th,
.table td {
    padding: 0.8rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.table th {
    background: #f8fafc;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--secondary-color);
}

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

/* Alerts */
.alert {
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.alert-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }

/* Receipt Styles */
.receipt {
    font-family: 'Courier New', monospace;
    width: 80mm;
    margin: 0 auto;
    padding: 10px;
    border: 1px dashed #333;
    font-size: 12px;
    line-height: 1.4;
}

.receipt h3 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 16px;
}

.receipt-item {
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
}

/* Print Styles */
@media print {
    .sidebar, .top-nav, .no-print {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .receipt {
        width: 80mm;
        border: none;
        box-shadow: none;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .menu-toggle {
        display: inline-flex;
    }

    .sidebar {
        transform: translateX(0);
    }

    .sidebar.hidden {
        transform: translateX(-100%);
    }

    .main-content {
        margin-left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
        max-width: calc(100% - var(--sidebar-width));
    }

    .main-content.collapsed {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
    }

    .sidebar {
        transform: translateX(-100%);
        width: min(280px, 85vw);
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
    }

    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .content, .content-area {
        padding: 1rem 0.85rem;
    }

    .table {
        font-size: 0.875rem;
    }

    .btn {
        padding: 0.55rem 1.1rem;
        font-size: 0.875rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: white;
    padding: 1rem 1.15rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
}

.stat-number {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--dark-color);
    line-height: 1.15;
}

.stat-label {
    color: var(--secondary-color);
    margin-top: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Animated Menu Icon */
.menu-icon {
    width: 22px;
    height: 16px;
    position: relative;
    transform: rotate(0deg);
    transition: .3s ease-in-out;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    position: absolute;
    height: 2.5px;
    width: 100%;
    background: var(--dark-color);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-icon span:nth-child(1) { top: 0px; }
.menu-icon span:nth-child(2) { top: 6.5px; }
.menu-icon span:nth-child(3) { top: 13px; }

.menu-icon.active span:nth-child(1) {
    top: 6.5px;
    transform: rotate(135deg);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
    left: -40px;
}

.menu-icon.active span:nth-child(3) {
    top: 6.5px;
    transform: rotate(-135deg);
}

/* ==========================================================
   Dark Theme Overrides & Global Enhancements
   ========================================================== */
body.dark-theme {
    --light-color: #090d16;
    --dark-color: #f8fafc;
    --border-color: #1e293b;
    --secondary-color: #94a3b8;
    background-color: #090d16;
    color: #f8fafc;
}

body.dark-theme .top-nav {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    color: #f8fafc;
}

body.dark-theme .page-title {
    color: #ffffff !important;
}

body.dark-theme .menu-icon span {
    background: #f8fafc;
}

body.dark-theme .btn-nav-icon,
body.dark-theme .btn-theme-toggle {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

body.dark-theme .btn-nav-icon:hover,
body.dark-theme .btn-theme-toggle:hover {
    background: #334155;
    color: #ffffff;
}

body.dark-theme .notification-badge {
    border-color: #0f172a;
}

body.dark-theme .btn-user-profile {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

body.dark-theme .user-name {
    color: #ffffff;
}

body.dark-theme .card {
    background: #0f172a;
    border-color: #1e293b;
    color: #f8fafc;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

body.dark-theme .card-header {
    background: #0f172a;
    border-bottom-color: #1e293b;
    color: #f8fafc;
}

body.dark-theme .table,
body.dark-theme table {
    --bs-table-bg: #0f172a !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-striped-color: #f8fafc !important;
    --bs-table-striped-bg: #1e293b !important;
    --bs-table-active-color: #ffffff !important;
    --bs-table-active-bg: #334155 !important;
    --bs-table-hover-color: #ffffff !important;
    --bs-table-hover-bg: #1e293b !important;
    --bs-table-border-color: #334155 !important;
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-color: #334155 !important;
}

body.dark-theme .table th,
body.dark-theme .table thead th,
body.dark-theme thead.table-light th,
body.dark-theme .table-light,
body.dark-theme .table thead tr {
    --bs-table-bg: #1e293b !important;
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

body.dark-theme .table td,
body.dark-theme .table tbody td,
body.dark-theme tbody tr td {
    --bs-table-bg: #0f172a !important;
    background-color: #0f172a !important;
    border-color: #1e293b !important;
    color: #e2e8f0 !important;
}

body.dark-theme .table tbody tr:hover td,
body.dark-theme .table-hover tbody tr:hover td,
body.dark-theme .table-hover>tbody>tr:hover>* {
    --bs-table-hover-bg: #1e293b !important;
    background-color: #1e293b !important;
    color: #ffffff !important;
}

body.dark-theme .table-responsive {
    background-color: #0f172a !important;
}

body.dark-theme .bg-white,
body.dark-theme .bg-light {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

body.dark-theme .card-header.bg-white {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    border-bottom-color: #1e293b !important;
}

body.dark-theme .text-dark,
body.dark-theme .text-body {
    color: #f8fafc !important;
}

body.dark-theme .text-muted {
    color: #94a3b8 !important;
}

body.dark-theme .border,
body.dark-theme .border-bottom,
body.dark-theme .border-top {
    border-color: #1e293b !important;
}

body.dark-theme .form-control,
body.dark-theme .form-select {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f8fafc !important;
}

body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus {
    background-color: #1e293b;
    border-color: #6366f1;
    color: #ffffff;
}

body.dark-theme .dropdown-menu {
    background-color: #0f172a;
    border: 1px solid #1e293b;
    color: #e2e8f0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

body.dark-theme .dropdown-header {
    background-color: #1e293b;
    border-bottom-color: #334155;
    color: #ffffff;
}

body.dark-theme .dropdown-item {
    color: #cbd5e1;
}

body.dark-theme .dropdown-item:hover {
    background-color: #1e293b;
    color: #ffffff;
}

body.dark-theme .dropdown-divider {
    border-top-color: #1e293b;
}

body.dark-theme .badge.bg-light {
    background-color: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}

body.dark-theme .stat-card {
    background: #0f172a;
    border-color: #1e293b;
}

body.dark-theme .stat-number {
    color: #ffffff;
}

/* Purple color utilities */
.bg-purple {
    background-color: #8b5cf6;
}
.text-purple {
    color: #8b5cf6;
}
.border-purple {
    border-color: #8b5cf6;
}

/* Sidebar Navigation Icon Enhancements */
.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-menu a i {
    width: 20px;
    text-align: center;
    font-size: 1.05rem;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-menu a:hover i {
    transform: scale(1.22);
}

/* ==========================================================
   FLOATING TOAST NOTIFICATION SYSTEM (NEVER UNDER HEADER)
   Positioned fixed at top-right, z-index 9999999
   ========================================================== */
.toast-floating-container {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    z-index: 9999999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    max-width: 420px !important;
    width: calc(100% - 48px) !important;
    pointer-events: none !important;
}

.custom-toast {
    pointer-events: auto;
    background: #ffffff;
    color: #0f172a;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.28), 0 4px 14px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    border-left: 5px solid #10b981 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    transform: translateX(120%) !important;
    opacity: 0 !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.custom-toast.show {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

.custom-toast-success { border-left-color: #10b981 !important; }
.custom-toast-error { border-left-color: #ef4444 !important; }
.custom-toast-warning { border-left-color: #f59e0b !important; }
.custom-toast-info { border-left-color: #3b82f6 !important; }

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}
.custom-toast-success .toast-icon { background: #d1fae5; color: #059669; }
.custom-toast-error .toast-icon { background: #fee2e2; color: #dc2626; }
.custom-toast-warning .toast-icon { background: #fef3c7; color: #d97706; }
.custom-toast-info .toast-icon { background: #e0f2fe; color: #0284c7; }

.toast-content { flex: 1; min-width: 0; }
.toast-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 2px; color: #0f172a; }
.toast-message { font-size: 0.85rem; color: #475569; word-break: break-word; line-height: 1.4; }

.toast-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
    margin-left: 6px;
    transition: color 0.15s ease;
}
.toast-close:hover { color: #0f172a; }

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.08);
    width: 100%;
}
.toast-progress-bar {
    height: 100%;
    width: 100%;
    background: #10b981;
    animation: toastProgress 4.5s linear forwards;
}
.custom-toast-error .toast-progress-bar { background: #ef4444; }
.custom-toast-warning .toast-progress-bar { background: #f59e0b; }
.custom-toast-info .toast-progress-bar { background: #3b82f6; }

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

body.dark-theme .custom-toast {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}
body.dark-theme .toast-title { color: #f8fafc; }
body.dark-theme .toast-message { color: #cbd5e1; }
body.dark-theme .toast-close:hover { color: #ffffff; }

/* Sidebar Logo & Branding */
.sidebar-logo {
    max-height: 36px;
    max-width: 36px;
    border-radius: 8px;
    object-fit: cover;
}
.brand-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    display: block;
    line-height: 1.2;
}
.brand-subtitle {
    font-size: 0.68rem;
    color: #94a3b8;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sidebar-station-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

/* Modern Card Glows & Transitions */
.card-hover-lift {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.card-hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.12) !important;
}

/* Animated Chart Card Containers */
.chart-container-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}
body.dark-theme .chart-container-card {
    background: #1e293b;
    border-color: #334155;
}
.btn-toggle-sidebar {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
}
.btn-toggle-sidebar:hover {
    background: #f1f5f9;
}
body.dark-theme .btn-toggle-sidebar {
    color: #f8fafc;
}
body.dark-theme .btn-toggle-sidebar:hover {
    background: #334155;
}

.receipt-print-only-container {
    display: none !important;
}

/* ==========================================================
   TARGETED CONTENT-ONLY PRINTING STYLES
   Anywhere window.print() is clicked, ONLY the targeted report/slip
   content prints — headers, sidebars, buttons, and navigation are hidden.
   ========================================================== */
@media print {
    @page {
        margin: 0;
        size: auto;
    }

    /* Hide all outer scaffolding and interactive widgets */
    .sidebar,
    .top-nav,
    .sidebar-backdrop,
    .toast-floating-container,
    .btn,
    button,
    .no-print,
    .btn-toggle-sidebar,
    .nav-left,
    .top-nav-actions,
    .sidebar-menu,
    header,
    footer,
    nav,
    .modal,
    .modal-backdrop,
    #printConfirmModal,
    input[type="text"],
    .form-control-sm,
    .alert,
    .d-print-none {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 10pt !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .content, .content-area {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .card {
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        break-inside: avoid;
        margin-bottom: 0.8rem !important;
        background: #ffffff !important;
        color: #000000 !important;
    }

    .card-header {
        background: #f8fafc !important;
        color: #000000 !important;
        border-bottom: 1px solid #cbd5e1 !important;
    }

    .table {
        width: 100% !important;
        color: #000000 !important;
        border-collapse: collapse !important;
    }

    .table th, .table td {
        border: 1px solid #cbd5e1 !important;
        color: #000000 !important;
        padding: 6px 8px !important;
        background: #ffffff !important;
    }

    /* Isolated Thermal Receipt Printing: Prints strictly and exclusively the receipt slip */
    body.print-receipt-only {
        background: #ffffff !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    body.print-receipt-only .receipt-print-only-container {
        display: block !important;
    }
    body.print-receipt-only * {
        visibility: hidden !important;
    }
    body.print-receipt-only .modal,
    body.print-receipt-only .modal-dialog,
    body.print-receipt-only .modal-content,
    body.print-receipt-only .modal-body {
        display: block !important;
        position: static !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    body.print-receipt-only .official-receipt-print-area,
    body.print-receipt-only .official-receipt-print-area * {
        visibility: visible !important;
    }
    body.print-receipt-only .official-receipt-print-area {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        margin: 0 auto !important;
        width: 80mm !important;
        max-width: 80mm !important;
        padding: 4mm 6mm !important;
        border: none !important;
        box-shadow: none !important;
        background: #ffffff !important;
        color: #000000 !important;
        font-family: 'Courier New', Courier, monospace !important;
        z-index: 9999999 !important;
    }
}

