:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #22c55e;
    --danger: #ef4444;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
aside {
    width: 200px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1rem 0.5rem;
    position: fixed;
    height: 100vh;
}

.logo {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.nav-section {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-section-title {
    width: 100%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.15rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.nav-section-title i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.nav-section:not(.open) .nav-section-title i {
    transform: rotate(-90deg);
}

.nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-section:not(.open) .nav-submenu {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.8rem;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.nav-link i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Main Content */
main {
    margin-left: 200px;
    flex: 1;
    padding: 2rem;
    min-height: 100vh;
    min-width: calc(100vw - 200px);
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

#view-container {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
}

/* Data Table */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.02);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

td {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
}

.tickets-table-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    padding: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 0.75rem;
    max-height: 70vh;
}

.tickets-table-wrapper table {
    min-width: 1100px;
}

.tickets-table-wrapper.compact-layout table {
    min-width: 900px;
}

.tickets-table-wrapper.wide-layout table {
    min-width: 1200px;
}

/* Vertical scrollbar styling */
.tickets-table-wrapper::-webkit-scrollbar {
    width: 12px;
    height: 10px;
}

.tickets-table-wrapper::-webkit-scrollbar-track {
    background: rgba(99, 102, 241, 0.08);
    border-radius: 999px;
}

.tickets-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.35);
    border-radius: 999px;
}

.tickets-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.55);
}

/* Horizontal scrollbar styling */
.tickets-table-wrapper::-webkit-scrollbar-corner {
    background: rgba(99, 102, 241, 0.08);
}

.tickets-toolbar-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.tickets-toolbar-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Form Elements */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

input, select, textarea {
    width: 100%;
    background-color: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.input-with-action {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.input-with-action input {
    flex: 1;
}

.btn-icon {
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

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

.btn-icon-sm {
    padding: 0.5rem;
    background: var(--bg-main);
    color: var(--text-muted);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    font-size: 1rem;
}

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

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    z-index: 5;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal {
    background: var(--bg-card);
    width: 95%;
    max-width: 800px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Animations */
.filter-chip {
    padding: 0.4rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

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

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

.animate-fade {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Billing Selection */
.billing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.billing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.billing-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.1), 0 8px 10px -6px rgba(99, 102, 241, 0.1);
}

.billing-card i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    background: rgba(99, 102, 241, 0.1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: var(--transition);
}

.billing-card:hover i {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.billing-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.billing-card p {
    display: none;
}

.billing-card .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--success);
    color: white;
    font-size: 0.65rem;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
}

/* Invoicing Form */
.invoice-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0.75rem;
    align-items: start;
}

.invoice-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.invoice-items-table th {
    background: var(--bg-main);
    color: var(--text-main);
    padding: 0.5rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.invoice-items-table td {
    padding: 0.25rem 0.4rem;
    vertical-align: middle;
}

.invoice-items-table input {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    height: 28px;
}

.invoice-summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    width: 100%;
}

.invoice-payment-panel {
    display: none;
    margin-top: 0.6rem;
    padding: 0.75rem;
    border: 1px solid rgba(79, 70, 229, 0.18);
    border-radius: 10px;
    background: rgba(79, 70, 229, 0.04);
    text-align: center;
}

.invoice-payment-panel.active {
    display: block;
}

.invoice-payment-panel img {
    width: 132px;
    height: 132px;
    object-fit: contain;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    margin: 0.35rem auto;
    display: block;
}

.payment-verify-btn.verified {
    background: rgba(34, 197, 94, 0.12) !important;
    color: var(--success) !important;
    border-color: rgba(34, 197, 94, 0.28) !important;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.8rem;
}

.summary-row:last-of-type {
    border-bottom: none;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
    padding-top: 0.5rem;
}

.item-search-results {
    position: absolute;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    z-index: 100;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 2px;
}

.search-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--bg-main);
}

.search-item:hover {
    background: var(--bg-main);
    color: var(--primary);
}

.btn-remove {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

/* --- PRINT INVOICE TEMPLATE --- */
#print-template-container {
    display: none;
}

#print-barcode-container {
    display: none;
}

/* --- GLOBAL PRINT MODE HIDING RULES --- */
/* Hide all main UI elements when a print mode is active on the body */
body.printing-invoice-active aside,
body.printing-invoice-active main,
body.printing-invoice-active #modal,
body.printing-barcode-active aside,
body.printing-barcode-active main,
body.printing-barcode-active #modal,
body.printing-jobcard-active aside,
body.printing-jobcard-active main,
body.printing-jobcard-active #modal,
body.printing-label-active aside,
body.printing-label-active main,
body.printing-label-active #modal,
body.printing-voucher-active aside,
body.printing-voucher-active main,
body.printing-voucher-active #modal {
    display: none !important;
}

/* Ensure the target containers are visible and reset */
body.printing-invoice-active #print-template-container,
body.printing-barcode-active #print-barcode-container,
body.printing-voucher-active #print-receipt-container,
body.printing-voucher-active #print-payment-container {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
}

/* Hide transient ticket print previews on screen; print media turns them back on. */
@media screen {
    body.printing-jobcard-active #print-jobcard-container,
    body.printing-label-active #print-barcode-container,
    body.printing-barcode-active #print-barcode-container {
        display: none !important;
    }
}

/* Ensure other print containers are hidden */
body.printing-invoice-active #print-barcode-container,
body.printing-invoice-active #print-jobcard-container,
body.printing-barcode-active #print-template-container,
body.printing-barcode-active #print-jobcard-container,
body.printing-jobcard-active #print-template-container,
body.printing-jobcard-active #print-barcode-container,
body.printing-label-active #print-template-container,
body.printing-label-active #print-jobcard-container,
body.printing-voucher-active #print-template-container,
body.printing-voucher-active #print-barcode-container,
body.printing-voucher-active #print-jobcard-container {
    display: none !important;
}

#print-receipt-container,
#print-payment-container {
    display: none;
}

body.printing-voucher-active #print-receipt-container:empty,
body.printing-voucher-active #print-payment-container:empty {
    display: none !important;
}

@media print {
    @page {
        size: A4;
        margin: 5mm;
    }
    #print-template-container {
        display: block !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        font-family: Arial, sans-serif;
        font-size: 10px;
        color: #000;
        background: #fff;
    }
    
    .print-invoice-wrapper {
        border: 1px solid #000;
        margin: 0 auto;
        padding: 0;
        width: 200mm; /* A4 width minus margin */
        min-height: 287mm; /* A4 height minus margin */
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
    }

    .print-table {
        width: 100%;
        border-collapse: collapse;
    }

    .print-table th, .print-table td {
        border: 1px solid #000;
        padding: 4px;
        vertical-align: top;
    }

    .print-header-top {
        display: flex;
        justify-content: space-between;
        padding: 2px 4px;
        border-bottom: 1px solid #000;
        font-size: 9px;
        font-weight: bold;
    }

    .print-company-info {
        text-align: center;
        padding: 10px;
        border-bottom: 1px solid #000;
    }
    
    .print-company-info h1 {
        font-size: 24px;
        margin: 0 0 5px 0;
        letter-spacing: 1px;
    }

    .print-company-info p {
        margin: 2px 0;
        font-size: 10px;
    }

    .print-info-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        border-bottom: 1px solid #000;
    }

    .print-info-box {
        padding: 5px;
        border-right: 1px solid #000;
    }

    .print-info-box:last-child {
        border-right: none;
    }

    .print-items-table th {
        text-align: center;
        background: transparent;
        font-weight: bold;
    }

    .print-items-table td {
        border-bottom: none;
        border-top: none;
        height: 300px; /* Force minimum height for items area */
    }

    .print-totals-row td {
        border-top: 1px solid #000;
        font-weight: bold;
        text-align: right;
    }

    .print-footer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    .print-footer-box {
        padding: 10px;
        border-right: 1px solid #000;
        border-top: 1px solid #000;
    }

    .print-footer-box:last-child {
        border-right: none;
    }
}

/* Permanent service label print styles (50mm x 30mm) */
@page service-label { size: 50mm 30mm; margin: 0mm; }

body.printing-label-active, body.printing-label-active html {
    width: 50mm !important;
    height: 30mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
}

@media print {
    @page { size: 50mm 30mm; margin: 0mm; }
    body.printing-label-active #print-barcode-container {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 50mm !important;
        height: 30mm !important;
        overflow: hidden !important;
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        z-index: 2147483647 !important;
    }
}

/* Compact label content */
.thermal-label-wrapper {
    width: 50mm !important;
    height: 30mm !important;
    padding: 0.2mm 0.5mm !important;
    box-sizing: border-box !important;
    font-family: Arial, sans-serif;
    color: black !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: white !important;
}
.label-header { display:flex; justify-content:space-between; align-items:center; font-size:4.2pt !important; font-weight:700 !important; text-transform:uppercase !important; }
.label-company-name { overflow:hidden; text-overflow:ellipsis; max-width:24mm; font-weight:700; }
.label-date { font-size:4pt !important; }
.label-divider { border-bottom:0.5px solid #000; margin:0.2mm 0; }
.label-body { font-size:4.6pt !important; line-height:1.02 !important; margin-bottom:0; padding-bottom:0; }
.label-row { display:flex; justify-content:space-between; margin-bottom:0.08mm; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.label-item { font-weight:600; overflow:hidden; text-overflow:ellipsis; }
.label-barcode-wrap { text-align:center; display:flex; flex-direction:column; align-items:center; margin-top:-0.6mm; padding-top:0; }
#label-barcode-svg-element { max-height:2.8mm !important; width:24mm !important; }
.label-id-text { font-size:4.2pt !important; font-weight:700 !important; margin-top:-0.2mm !important; }

/* Professional label layout tweaks */
.label-professional .prof-top { display:flex; align-items:center; gap:0.6mm; justify-content:space-between; }
.label-professional .prof-logo { width:8mm; height:auto; object-fit:contain; border-radius:2px; }
.label-professional .prof-company-name { font-size:5pt !important; font-weight:800; text-align:left; flex:1; }
.label-professional .prof-date { font-size:3.6pt !important; color:#333; }
.label-professional .prof-ticket-number { font-size:7.5pt !important; font-weight:900; text-align:center; margin-top:1px; margin-bottom:1px; }
.label-professional .prof-info { display:flex; gap:1mm; margin-top:0.6mm; }
.label-professional .prof-col { flex:1; min-width:0; }
.label-professional .prof-label { font-size:3.6pt; color:#444; font-weight:700; }
.label-professional .prof-val { font-size:4.2pt; font-weight:700; color:#000; margin-bottom:0.4mm; }
.label-professional .prof-label.small { font-size:3.2pt; font-weight:700; color:#444; }
.label-professional .prof-barcode { margin-top:0.2mm; text-align:center; }
.label-professional #label-barcode-svg-element { width:36mm !important; height:3.2mm !important; }

/* Mobile Responsiveness Rules */
@media (max-width: 768px) {
    aside {
        width: 100%;
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1rem;
    }
    
    .logo {
        margin-bottom: 1rem;
        justify-content: center;
    }
    
    nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
        justify-content: center;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    main {
        margin-left: 0 !important;
        padding: 1rem !important;
    }
    
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Catalogue Specific Adjustments */
    #catalogues-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .catalogue-card {
        padding: 1rem !important;
    }
    
    .invoice-container {
        grid-template-columns: 1fr !important;
    }
    
    .form-grid,
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr auto"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Mobile Horizontal Scrolling for Tables */
    .tickets-table-wrapper {
        overflow-x: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        max-height: 50vh !important;
    }
    
    .tickets-table-wrapper table {
        min-width: 650px !important;
        display: block !important;
        overflow-x: auto !important;
    }
    
    /* Generic table horizontal scroll */
    table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
    }
    
    th, td {
        white-space: nowrap !important;
        padding: 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    /* Card and Grid Horizontal Scroll */
    .billing-grid,
    .inventory-grid,
    .card {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- Barcode Printer UI Styles --- */
.barcode-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-top: 1rem;
}

@media (max-width: 992px) {
    .barcode-layout {
        grid-template-columns: 1fr;
    }
}

.barcode-preview-card {
    background: #f1f5f9;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    position: sticky;
    top: 1rem;
}

/* 50x30mm Label Mockup (scaled by 7x for high fidelity screen preview: 350px x 210px) */
.label-sticker-mockup {
    width: 350px;
    height: 210px;
    background: #ffffff;
    border: 1.5px dashed #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    position: relative;
    user-select: none;
    box-sizing: border-box;
    transition: var(--transition);
}

/* Templates styles for screen preview */
.label-template-centered {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.label-template-centered .label-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2px;
    color: #000;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.label-template-centered .label-company {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.label-template-centered .barcode-svg-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 90px;
}

.label-template-centered .barcode-svg-container svg {
    max-width: 100%;
    height: auto;
    max-height: 80px;
}

.label-template-centered .label-price-row {
    font-size: 14px;
    font-weight: 800;
    color: #000;
    margin-top: 2px;
}

/* Double column template */
.label-template-compact {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.label-template-compact .label-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    border-bottom: 1.5px solid #0f172a;
    padding-bottom: 4px;
}

.label-template-compact .label-name {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.label-template-compact .label-price {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.label-template-compact .label-company {
    font-size: 8px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 1px;
}

.label-template-compact .barcode-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 4px;
}

.label-template-compact svg {
    max-width: 100%;
    height: 52px;
}

.label-template-compact .label-sku {
    font-size: 8px;
    color: #475569;
    font-family: monospace;
    margin-top: 1px;
}

/* Bold Price template */
.label-template-price-highlight {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.label-template-price-highlight .label-top {
    text-align: center;
    width: 100%;
}

.label-template-price-highlight .label-name {
    font-size: 12px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.label-template-price-highlight .label-mid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    flex-grow: 1;
}

.label-template-price-highlight .barcode-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.label-template-price-highlight .barcode-side svg {
    max-width: 100%;
    height: 60px;
}

.label-template-price-highlight .price-side {
    background: #000000;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    text-align: center;
}

.label-template-price-highlight .price-lbl {
    font-size: 8px;
    text-transform: uppercase;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

.label-template-price-highlight .price-val {
    font-size: 15px;
    font-weight: 800;
}

.label-template-price-highlight .label-footer {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: #64748b;
    border-top: 1px dashed #e2e8f0;
    padding-top: 2px;
    width: 100%;
}

/* Printing Specific styles (non-media-query class bound to preserve A4 printing) */
body.printing-barcode-active {
    background: #ffffff !important;
    min-height: auto !important;
}

body.printing-barcode-active aside,
body.printing-barcode-active main,
body.printing-barcode-active #modal,
body.printing-barcode-active #print-template-container {
    display: none !important;
}

body.printing-barcode-active #print-barcode-container {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    width: 50mm !important;
    height: 30mm !important;
}

@media screen {
    body.printing-barcode-active #print-barcode-container {
        display: none !important;
        visibility: hidden !important;
    }
}

@media print {
    @page {
        size: 50mm 30mm;
        margin: 0mm;
    }
    html, body.printing-barcode-active {
        width: 50mm !important;
        height: 30mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }
    body.printing-barcode-active #print-barcode-container {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 50mm !important;
        height: 30mm !important;
        overflow: hidden !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        z-index: 2147483647 !important;
    }
}

/* Physical Printable Label styling */
.printable-label-sticker {
    width: 28.8mm;
    height: 49mm;
    box-sizing: border-box;
    padding: 1.2mm 1.5mm;
    background: #ffffff;
    color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    page-break-after: always;
    page-break-inside: avoid;
    font-family: 'Inter', Arial, sans-serif;
}

/* Print template styles matching the screen layout but downscaled to physical mm proportions */
.printable-label-sticker .p-company {
    font-size: 6.5pt;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 0.2mm;
    width: 100%;
}

.printable-label-sticker .p-name {
    font-size: 7.5pt;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
}

.printable-label-sticker .p-barcode-container {
    width: 100%;
    height: 11mm;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5mm 0;
}

.printable-label-sticker .p-barcode-container svg {
    width: 100%;
    height: 100%;
}

.printable-label-sticker .p-price {
    font-size: 9pt;
    font-weight: 800;
    text-align: center;
    width: 100%;
}

/* Printable compact / double-column template */
.printable-compact-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.printable-compact-layout .pc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1mm;
    width: 100%;
    border-bottom: 0.4mm solid #000000;
    padding-bottom: 0.3mm;
}

.printable-compact-layout .pc-name {
    font-size: 6.5pt;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.printable-compact-layout .pc-price {
    font-size: 7.5pt;
    font-weight: 800;
    white-space: nowrap;
}

.printable-compact-layout .pc-company {
    font-size: 5pt;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
}

.printable-compact-layout .pc-barcode-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.5mm;
}

.printable-compact-layout .pc-barcode-area svg {
    height: 7.5mm;
    width: 100%;
}

.printable-compact-layout .pc-sku {
    font-size: 5pt;
    font-family: monospace;
}

/* Printable Price Highlight template */
.printable-highlight-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.printable-highlight-layout .ph-name {
    font-size: 7pt;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}

.printable-highlight-layout .ph-mid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5mm;
    width: 100%;
    flex-grow: 1;
}

.printable-highlight-layout .ph-barcode-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.printable-highlight-layout .ph-barcode-side svg {
    height: 9mm;
    width: 100%;
}

.printable-highlight-layout .ph-price-side {
    border: 0.5mm solid #000;
    padding: 0.6mm 1.2mm;
    border-radius: 0.8mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 16mm;
    text-align: center;
}

.printable-highlight-layout .ph-price-lbl {
    font-size: 4.5pt;
    text-transform: uppercase;
}

.printable-highlight-layout .ph-price-val {
    font-size: 9.5pt;
    font-weight: 800;
}

.printable-highlight-layout .ph-footer {
    display: flex;
    justify-content: space-between;
    font-size: 5pt;
    border-top: 0.2mm dashed #333;
    padding-top: 0.2mm;
    width: 100%;
}

/* ==========================================================================
   Tickets System
   ========================================================================== */

/* Tickets stats grid */
.tickets-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.ticket-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s ease;
}

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

.ticket-stat-icon {
    font-size: 1.75rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-stat-info h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.ticket-stat-info p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* Priority & Status pills */
.priority-badge, .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    gap: 0.25rem;
    text-transform: capitalize;
}

.priority-high {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.priority-medium {
    background: rgba(249, 115, 22, 0.15);
    color: #f97316;
}

.priority-low {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.status-open {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.status-inprogress {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.status-cancelled {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

/* Tickets filters toolbar */
.tickets-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tickets-filter-tabs {
    display: flex;
    gap: 0.3rem;
    flex-wrap: nowrap;
    flex: 1;
    align-items: center;
    min-width: 0;
}

.tickets-tab-btn {
    background: transparent;
    border: none;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tickets-tab-btn.active {
    background: var(--primary);
    color: #fff;
}

/* Tickets Grid & Card */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.ticket-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ticket-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(99, 102, 241, 0.3);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ticket-card-header h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.ticket-card-num {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.ticket-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.ticket-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ticket-device-box {
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed var(--border);
    border-radius: 6px;
    padding: 0.6rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ticket-device-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
}

.ticket-device-serial {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.ticket-card-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.ticket-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ticket-detail-lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.ticket-detail-val {
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Checklist widget in card */
.ticket-checklist-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
}

.checklist-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.checklist-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.6rem;
}

.checklist-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #a855f7);
    width: 0%;
    transition: width 0.3s ease;
}

.checklist-compact-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-height: 120px;
    overflow-y: auto;
    padding-right: 2px;
}

.checklist-compact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
}

.checklist-compact-item input[type="checkbox"] {
    cursor: pointer;
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
}

.checklist-compact-item.done {
    text-decoration: line-through;
    color: var(--text-muted);
}

.ticket-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: auto;
}

.ticket-cost-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.ticket-actions-group {
    display: flex;
    gap: 0.5rem;
}

/* Modals checklist dynamic builder */
.modal-checklist-builder {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(0, 0, 0, 0.01);
}

.checklist-builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.checklist-builder-header h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
}

.checklist-builder-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 180px;
    overflow-y: auto;
    margin-bottom: 0.75rem;
}

.day-summary-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr) minmax(260px, 0.9fr);
    gap: 1rem;
    align-items: start;
}
.day-summary-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow);
}
.day-panel-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.8rem;
}
.denom-table {
    display: grid;
    gap: 0.35rem;
}
.denom-row {
    display: grid;
    grid-template-columns: 54px 1fr 92px;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
}
.denom-row span {
    font-weight: 800;
    color: var(--text-main);
}
.denom-row input {
    height: 30px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-main);
    color: var(--text-main);
}
.denom-row strong {
    text-align: right;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.day-total-row {
    margin-top: 0.8rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 800;
}
.day-total-row strong {
    color: var(--primary);
}
.day-kpi-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}
.day-kpi-list div {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem;
    background: var(--bg-main);
}
.day-kpi-list span,
.day-expected-box span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
}
.day-kpi-list strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1rem;
    color: var(--text-main);
}
.day-expected-box {
    margin-top: 0.9rem;
    padding: 0.85rem;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.18);
}
.day-expected-box strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.25rem;
    color: var(--primary);
}
.day-expected-box small {
    color: var(--text-muted);
}
.day-status-badge {
    margin-top: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
    font-size: 0.78rem;
    font-weight: 800;
}
.day-status-badge.closed {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
}
.day-summary-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.day-transactions-panel {
    margin-top: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1rem;
}
.day-transactions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.day-transaction-totals {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.day-transaction-totals span {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
}
.day-transaction-totals strong {
    color: var(--text-main);
}
.day-transactions-table-wrap {
    overflow-x: auto;
}
.day-transactions-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.day-transactions-table th {
    text-align: left;
    padding: 0.55rem 0.6rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    background: var(--bg-main);
}
.day-transactions-table td {
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    vertical-align: middle;
}
.day-transactions-table td small {
    display: block;
    margin-top: 0.15rem;
    color: var(--text-muted);
    font-size: 0.7rem;
}
.day-transactions-table td code {
    font-size: 0.78rem;
    color: var(--primary);
}
.day-txn-type {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}
.day-txn-type.purchase {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}
.day-txn-type.expense {
    background: rgba(245, 158, 11, 0.12);
    color: var(--warning);
}
.day-transactions-table .cash-in {
    text-align: right;
    font-weight: 800;
    color: var(--success);
}
.day-transactions-table .cash-out {
    text-align: right;
    font-weight: 800;
    color: var(--danger);
}
.day-empty-transactions {
    padding: 1.25rem;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: var(--bg-main);
}
@media (max-width: 1100px) {
    .day-summary-grid {
        grid-template-columns: 1fr;
    }
}

.checklist-builder-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.checklist-builder-row input[type="text"] {
    flex: 1;
    height: 34px !important;
}

/* Ticket Tasks Styling */
.ticket-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 0.75rem;
}

.ticket-task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.ticket-task-item:hover {
    background: rgba(99, 102, 241, 0.04);
    border-color: rgba(99, 102, 241, 0.2);
}

.ticket-task-item .task-info {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.ticket-task-item .task-name {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-task-item .task-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
    white-space: nowrap;
    min-width: 80px;
    text-align: right;
}

.ticket-task-item .task-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    margin-left: 0.5rem;
}

.ticket-tasks-total {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 6px;
    margin-top: 0.75rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.btn-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.btn-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

/* ==========================================================================
   Print Job Card / Worksheet (A4 Premium layout)
   ========================================================================== */

#print-jobcard-container {
    display: none;
}

@media print {
    body.printing-jobcard-active {
        background: #ffffff !important;
        color: #000000 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-family: 'Inter', Arial, sans-serif !important;
    }
    
    body.printing-jobcard-active aside,
    body.printing-jobcard-active main,
    body.printing-jobcard-active #modal,
    body.printing-jobcard-active #print-template-container,
    body.printing-jobcard-active #print-barcode-container {
        display: none !important;
    }
    
    body.printing-jobcard-active #print-jobcard-container {
        display: block !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        min-height: 297mm !important;
        padding: 15mm !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
    }

    .jobcard-print-layout {
        width: 100%;
        color: #000;
        box-sizing: border-box;
    }

    .jc-print-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        border-bottom: 2px solid #000;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .jc-brand-info h1 {
        font-size: 18pt;
        font-weight: 800;
        margin: 0;
        color: #000;
    }

    .jc-brand-info p {
        font-size: 8.5pt;
        margin: 2px 0;
        color: #444;
        line-height: 1.3;
    }

    .jc-title-block {
        text-align: right;
    }

    .jc-title-block h2 {
        font-size: 15pt;
        font-weight: 800;
        margin: 0 0 5px 0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .jc-barcode-box {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .jc-barcode-box svg {
        height: 10mm;
        width: 40mm;
    }

    .jc-barcode-num {
        font-family: monospace;
        font-size: 8.5pt;
        font-weight: 600;
        margin-top: 2px;
    }

    .jc-grid-2col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .jc-section-box {
        border: 1px solid #000;
        border-radius: 4px;
        padding: 10px;
        box-sizing: border-box;
    }

    .jc-section-title {
        font-size: 9pt;
        font-weight: 800;
        text-transform: uppercase;
        border-bottom: 1px solid #000;
        padding-bottom: 4px;
        margin: 0 0 8px 0;
        background: #f3f4f6;
        padding-left: 4px;
    }

    .jc-details-list {
        display: flex;
        flex-direction: column;
        gap: 6px;
        font-size: 8.5pt;
    }

    .jc-details-row {
        display: flex;
        justify-content: space-between;
    }

    .jc-details-lbl {
        font-weight: 700;
        color: #333;
    }

    .jc-details-val {
        text-align: right;
        font-weight: 500;
    }

    .jc-full-box {
        border: 1px solid #000;
        border-radius: 4px;
        padding: 10px;
        margin-bottom: 20px;
        box-sizing: border-box;
    }

    .jc-problem-desc {
        font-size: 9pt;
        line-height: 1.4;
        margin: 0 0 10px 0;
        white-space: pre-wrap;
    }

    .jc-checklist-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 10px;
    }

    .jc-checklist-table th, .jc-checklist-table td {
        border: 1px solid #000;
        padding: 6px 8px;
        font-size: 8.5pt;
        text-align: left;
    }

    .jc-checklist-table th {
        background: #f3f4f6;
        font-weight: 800;
    }

    .jc-checkbox-col {
        width: 25px;
        text-align: center !important;
    }

    .jc-print-checkbox {
        width: 13px;
        height: 13px;
        border: 1px solid #000;
        display: inline-block;
    }

    .jc-print-checkbox.checked {
        background-color: #000;
        position: relative;
    }

    .jc-print-checkbox.checked::after {
        content: "✓";
        color: #fff;
        font-size: 8pt;
        position: absolute;
        top: -3px;
        left: 1px;
        font-weight: bold;
    }

    .jc-pricing-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 9pt;
    }

    .jc-pricing-table td {
        padding: 4px 0;
    }

    .jc-pricing-table .jc-price-total {
        font-size: 10pt;
        font-weight: 800;
        border-top: 1px solid #000;
        padding-top: 6px;
    }

    .jc-terms-box {
        font-size: 7.5pt;
        color: #555;
        line-height: 1.3;
        margin-top: 10px;
        border-top: 1px solid #000;
        padding-top: 8px;
    }

    .jc-signatures-block {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        margin-top: 40px;
        font-size: 8.5pt;
    }

    .jc-sig-line {
        border-top: 1px solid #000;
        margin-top: 35px;
        text-align: center;
        padding-top: 5px;
        font-weight: 700;
    }
}

/* ==========================================================================
   Customer Typeahead Search Widget (Ticket Modal)
   ========================================================================== */

.customer-search-wrap {
    position: relative;
}

.customer-search-wrap input[type="text"] {
    width: 100%;
}

.autocomplete-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    z-index: 9999;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}

.autocomplete-list.open {
    display: block;
}

.autocomplete-item {
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
    background: rgba(99, 102, 241, 0.08);
}

.autocomplete-item .ac-name {
    font-weight: 600;
    color: var(--text-main);
}

.autocomplete-item .ac-phone {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.autocomplete-item.create-new {
    color: var(--primary);
    font-weight: 600;
    font-style: italic;
    background: rgba(99,102,241,0.04);
}

.customer-badge {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #16a34a;
}

.customer-badge.visible {
    display: inline-flex;
}

.customer-badge .badge-clear {
    cursor: pointer;
    opacity: 0.6;
    margin-left: auto;
    font-size: 0.9rem;
    transition: opacity 0.15s;
}

.customer-badge .badge-clear:hover {
    opacity: 1;
}

/* Customer phone sub-input for quick create */
.customer-phone-row {
    display: none;
    gap: 0.5rem;
    margin-top: 0.5rem;
    align-items: center;
}

.customer-phone-row.visible {
    display: flex;
}

.customer-phone-row input {
    flex: 1;
    height: 34px;
    font-size: 0.85rem;
}

.customer-phone-row button {
    white-space: nowrap;
    height: 34px;
    padding: 0 0.75rem;
    font-size: 0.8rem;
}

.file-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

/* ==========================================================================
   Accessories Collected Section (Ticket Modal)
   ========================================================================== */

.accessories-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.accessory-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-main);
    transition: all 0.2s;
    user-select: none;
}

.accessory-pill input[type="checkbox"] {
    display: none;
}

.accessory-pill:hover {
    border-color: var(--primary);
    background: rgba(99,102,241,0.05);
}

.accessory-pill.checked {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.accessory-pill .pill-icon {
    font-size: 1rem;
}

.accessories-photo-preview {
    margin-top: 0.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 200px;
}

.accessories-photo-preview img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* ==========================================================================
   Customer Account Panel (Full Overlay)
   ========================================================================== */

.customer-account-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.customer-account-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.customer-account-panel {
    position: relative;
    z-index: 1;
    width: min(860px, 100vw);
    background: var(--bg-main);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: -8px 0 40px rgba(0,0,0,0.3);
    animation: slideInRight 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.account-panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
}

.account-panel-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}

.account-panel-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-muted);
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
}

.account-panel-close:hover {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}

.account-tabs-bar {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    padding: 0 1.5rem;
    flex-shrink: 0;
}

.account-tab-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.account-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.account-tab-btn:hover:not(.active) {
    color: var(--text-main);
}

.account-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.account-tab-pane {
    display: none;
}

.account-tab-pane.active {
    display: block;
}

/* Asset cards */
.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.asset-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: all 0.2s;
}

.asset-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.asset-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.asset-info {
    flex: 1;
    min-width: 0;
}

.asset-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.asset-serial {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.asset-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.4rem;
}

.asset-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    background: rgba(99,102,241,0.1);
    color: var(--primary);
    font-weight: 600;
}

/* Ticket history table inside panel */
.tickets-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.tickets-history-table th {
    background: var(--bg-main);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.tickets-history-table td {
    padding: 0.7rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

.tickets-history-table tr:hover td {
    background: rgba(99,102,241,0.03);
}

/* Accessories display badges on ticket card */
.accessories-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.accessory-tag {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(245,158,11,0.12);
    color: #b45309;
    font-weight: 600;
    border: 1px solid rgba(245,158,11,0.25);
}

/* ═══════════════════════════════════════════════════════
   DEVICE BRAND AUTOCOMPLETE
   ═══════════════════════════════════════════════════════ */
.device-search-wrap { position: relative; }
.device-autocomplete-list {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
    background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px;
    max-height: 200px; overflow-y: auto; display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.device-autocomplete-list.open { display: block; }
.device-autocomplete-list .autocomplete-item {
    padding: 8px 12px; cursor: pointer; font-size: 0.85rem;
    border-bottom: 1px solid var(--border); transition: background 0.15s;
}
.device-autocomplete-list .autocomplete-item:hover { background: var(--hover-bg); }
.device-autocomplete-list .autocomplete-item:last-child { border-bottom: none; }
.device-autocomplete-list .autocomplete-item i { margin-right: 6px; color: var(--primary); }

/* ═══════════════════════════════════════════════════════
   DEVICE PHOTO UPLOAD & PREVIEW
   ═══════════════════════════════════════════════════════ */
.device-photo-upload-area {
    margin-top: 0.75rem;
}
.device-photo-preview {
    margin-top: 0.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap;
}
.device-photo-preview img {
    max-width: 180px; max-height: 140px; border-radius: 8px;
    border: 2px solid var(--border); object-fit: cover;
    cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.device-photo-preview img:hover {
    transform: scale(1.05); box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.rtv-photo-strip {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.rtv-photo-strip img {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid var(--border);
    object-fit: cover;
    cursor: pointer;
}
.rtv-photo-strip span {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.rtv-photo-preview img {
    max-width: 150px;
    max-height: 120px;
}

.rtv-compact-search-wrap {
    position: relative;
    width: 100%;
}
.rtv-search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 178px;
    overflow-y: auto;
    z-index: 10020;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
    padding: 4px;
}
.rtv-search-results.open {
    display: block;
}
.rtv-search-result-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-main);
    display: block;
    text-align: left;
    padding: 7px 8px;
    border-radius: 6px;
    cursor: pointer;
}
.rtv-search-result-item:hover {
    background: var(--hover-bg);
}
.rtv-search-result-item span {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rtv-search-result-item small {
    display: block;
    margin-top: 2px;
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════
   CHECKLIST WITH PRICE
   ═══════════════════════════════════════════════════════ */
.checklist-builder-row {
    display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.checklist-builder-row.done .checklist-item-input {
    text-decoration: line-through;
    color: var(--text-muted);
    background: rgba(34, 197, 94, 0.05);
}
.checklist-done-toggle {
    width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.checklist-done-toggle input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.checklist-item-input {
    flex: 1; min-width: 0;
}
.checklist-price-input {
    width: 90px; text-align: right; font-family: 'Inter', monospace;
    font-size: 0.82rem; flex-shrink: 0;
}
.checklist-price-input::placeholder {
    color: var(--text-muted); font-style: italic;
}
.checklist-master-row {
    display: grid;
    grid-template-columns: 1fr auto 28px 28px;
    gap: 6px;
    align-items: center;
    padding: 4px 6px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-card);
    font-size: 0.75rem;
}
.checklist-master-row strong {
    font-size: 0.74rem;
    color: var(--primary);
}
.checklist-total-row {
    display: flex; justify-content: flex-end; align-items: center;
    gap: 10px; padding: 8px 12px; margin-top: 8px;
    background: var(--hover-bg); border-radius: 8px;
    font-weight: 600; font-size: 0.88rem;
}
.checklist-total-row .total-label { color: var(--text-muted); }
.checklist-total-row .total-value { color: var(--primary); font-size: 1rem; font-family: 'Inter', monospace; }

/* ═══════════════════════════════════════════════════════
   TICKET CARD ACTION BUTTONS
   ═══════════════════════════════════════════════════════ */
.ticket-actions-group {
    display: flex; gap: 4px; align-items: center; flex-wrap: wrap;
}
.ticket-share-dropdown {
    position: relative; display: inline-block;
}
.ticket-share-btn {
    background: none; border: 1px solid var(--border); border-radius: 6px;
    padding: 4px 8px; cursor: pointer; font-size: 0.78rem;
    color: var(--text-main); display: flex; align-items: center; gap: 4px;
    transition: all 0.2s;
}
.ticket-share-btn:hover { background: var(--hover-bg); border-color: var(--primary); color: var(--primary); }
.ticket-share-menu {
    display: none; position: absolute; bottom: 100%; right: 0;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 8px; min-width: 160px; z-index: 50;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18); overflow: hidden;
    margin-bottom: 4px;
}
.ticket-share-menu.open { display: block; }
.ticket-share-menu-item {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 14px; cursor: pointer; font-size: 0.82rem;
    color: var(--text-main); transition: background 0.15s; border: none;
    background: none; width: 100%; text-align: left;
}
.ticket-share-menu-item:hover { background: var(--hover-bg); }
.ticket-share-menu-item i { font-size: 1rem; width: 18px; text-align: center; }
.ticket-share-menu-item.whatsapp i { color: #25d366; }
.ticket-share-menu-item.sms i { color: #2196F3; }
.ticket-share-menu-item.pdf i { color: #e74c3c; }

/* ═══════════════════════════════════════════════════════
   PRINT JOB CARD — PRICE COLUMN
   ═══════════════════════════════════════════════════════ */
.jc-checklist-table .jc-price-col { text-align: right; font-family: monospace; white-space: nowrap; }
.jc-checklist-total-row { font-weight: 800; background: #f0f0f0; }
.jc-checklist-total-row td { padding: 6px 8px; }

/* ═══════════════════════════════════════════════════════
   GLOBAL PAGE SCROLLBAR
   ═══════════════════════════════════════════════════════ */
/* Global page scrollbar */
html,
body {
    overflow-x: auto !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #e2e8f0;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 11px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: #e2e8f0;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}
