/* Modern CSS variables and reset */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Sarabun:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    
    --success: #10b981;
    --success-hover: #059669;
    --success-light: #d1fae5;
    
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-light: #fee2e2;
    
    --warning: #f59e0b;
    --warning-hover: #d97706;
    --warning-light: #fef3c7;
    
    --info: #06b6d4;
    
    /* Neutral colors - Modern dark mode by default for dashboard, white for receipt */
    --bg-main: #0b0f19;
    --bg-card: #151c2c;
    --bg-input: #1e293b;
    --border-color: #334155;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a; /* Used for printable receipt */
    --bg-receipt: #ffffff; /* Used for printable receipt */
    
    /* Typography */
    --font-outfit: 'Outfit', 'Sarabun', sans-serif;
    
    /* Layout */
    --sidebar-width: 260px;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 15px rgba(79, 70, 229, 0.15);
}

/* Light theme overrides for dashboard (if needed, but our dark mode dashboard looks premium) */
body.light-theme {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-input: #f1f5f9;
    --border-color: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --shadow-glow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-outfit);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Layout Grid */
.app-container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
}

/* Sidebar navigation */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: width 0.3s;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px 24px 12px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--info));
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .brand-name {
    background: linear-gradient(to right, #0f172a, #475569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.nav-item {
    width: 100%;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-link i {
    font-size: 20px;
}

.nav-link:hover {
    color: var(--text-main);
    background-color: var(--bg-input);
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 32px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transition: margin-left 0.3s;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title h1 {
    font-size: 28px;
    font-weight: 700;
}

.page-title p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Utility buttons */
.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s ease;
}

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

/* Action Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

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

.btn-success {
    background: linear-gradient(135deg, var(--success), #34d399);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--border-radius-sm);
}

/* Dashboard Tab Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(79, 70, 229, 0.4);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.income {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon.expense {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.stat-icon.profit {
    background-color: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

.stat-icon.bills {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-details h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stat-details p {
    font-size: 22px;
    font-weight: 700;
}

/* Charts and Data Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.chart-card, .list-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
}

/* Custom Visual Chart using SVG & Flexbox */
.chart-container {
    height: 250px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: 20px;
    gap: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.chart-bar-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar-group {
    display: flex;
    gap: 4px;
    width: 100%;
    align-items: flex-end;
    justify-content: center;
    height: calc(100% - 24px);
}

.chart-bar {
    width: 20px;
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-bar.income {
    background: linear-gradient(to top, var(--success), #34d399);
}

.chart-bar.expense {
    background: linear-gradient(to top, var(--danger), #f87171);
}

.chart-bar:hover::after {
    content: attr(data-value);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
}

.chart-label {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

.chart-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-style: italic;
}

/* Terminal (POS) layout */
.pos-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    align-items: start;
}

.pos-catalog {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
}

.pos-cart {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 32px;
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-input {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    color: var(--text-main);
    font-size: 14px;
    width: 100%;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

body.light-theme .form-select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
}

/* Quick Add Item Form inside POS */
.quick-add-section {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* Cart Table and calculations */
.cart-items-container {
    max-height: 280px;
    overflow-y: auto;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

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

.cart-table th {
    text-align: left;
    font-size: 12px;
    color: var(--text-muted);
    padding-bottom: 12px;
}

.cart-table td {
    padding: 8px 0;
    vertical-align: middle;
}

.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-qty {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

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

.cart-item-remove {
    color: var(--danger);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
    padding: 4px;
}

.cart-item-name {
    font-weight: 500;
    font-size: 14px;
}

.cart-item-price {
    font-size: 14px;
    text-align: right;
}

/* Summary rows */
.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

.summary-row.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
}

/* Payment settings */
.payment-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-method-btn {
    border: 2px solid var(--border-color);
    background-color: var(--bg-input);
    border-radius: var(--border-radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.payment-method-btn i {
    font-size: 24px;
}

.payment-method-btn span {
    font-size: 14px;
    font-weight: 600;
}

.payment-method-btn:hover {
    border-color: var(--primary);
    color: var(--text-main);
}

.payment-method-btn.active {
    border-color: var(--primary);
    background-color: rgba(79, 70, 229, 0.1);
    color: var(--text-main);
}

/* List/Table Styles */
.table-container {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

body.light-theme .data-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.cash {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-badge.qr {
    background-color: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 500px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-main);
}

/* QR Code Section inside Modal */
.qr-display-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background-color: #ffffff; /* White background is critical for QR scanning */
    border-radius: var(--border-radius-lg);
    color: var(--text-dark);
}

.qr-code-wrapper {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-merchant-info {
    text-align: center;
    margin-top: 10px;
}

.qr-merchant-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.qr-merchant-info p {
    font-size: 14px;
    color: #475569;
    margin-top: 4px;
}

.promptpay-logo {
    height: 32px;
    object-fit: contain;
    margin-bottom: 8px;
}

/* Section Hide/Show (SPA Tabs) */
.page-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page-section.active {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

/* Printable Receipt Component - HIDDEN ON SCREEN, SHOWS IN PRINT PREVIEW */
.receipt-print-area {
    display: none;
}

/* Custom Notification Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 2000;
}

.toast {
    background-color: var(--bg-card);
    border-left: 4px solid var(--primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.danger {
    border-left: 4px solid var(--danger);
}

.toast.warning {
    border-left: 4px solid var(--warning);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .pos-layout {
        grid-template-columns: 1fr;
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
        padding: 24px 8px;
    }
    .brand-name, .nav-link span, .sidebar-footer button span {
        display: none;
    }
    .main-content {
        margin-left: 70px;
        padding: 20px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ==========================================================================
   PRINT MEDIA STYLES - CRITICAL FOR RECEIPTS
   ========================================================================== */
@page {
    size: A4;
    margin: 15mm;
}

@media print {
    /* Hide all browser components & screen interface */
    body, html {
        background-color: #ffffff !important;
        color: #000000 !important;
        width: 100%;
        margin: 0;
        padding: 0;
        font-size: 12px;
    }

    .app-container, .sidebar, .main-content, .modal-overlay, .toast-container {
        display: none !important;
    }

    .receipt-print-area {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
        color: #000000 !important;
        background-color: #ffffff !important;
        box-sizing: border-box;
    }

    .receipt-header {
        text-align: center;
        margin-bottom: 3mm;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .receipt-shop-logo {
        font-size: 24px;
        margin-bottom: 1.5mm;
        color: #000;
        font-weight: 300;
    }

    .receipt-shop-name {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 1mm;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .receipt-shop-address {
        font-size: 9.5px;
        color: #444444;
        line-height: 1.35;
        margin-bottom: 0.5mm;
        max-width: 90%;
    }

    .receipt-title {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        padding: 1mm 0;
        letter-spacing: 1px;
    }

    .receipt-meta {
        font-size: 10px;
        margin-bottom: 2mm;
        line-height: 1.45;
    }

    .receipt-meta-row {
        display: flex;
        justify-content: space-between;
    }

    .receipt-items {
        display: flex;
        flex-direction: column;
        gap: 2mm;
        margin: 2mm 0;
    }

    .receipt-item {
        display: flex;
        flex-direction: column;
    }

    .receipt-item-row {
        display: flex;
        justify-content: space-between;
        font-weight: 600;
        font-size: 10.5px;
    }

    .item-total {
        font-family: monospace;
        font-weight: 700;
    }

    .receipt-item-sub {
        font-size: 9px;
        color: #555555;
        margin-top: 0.5mm;
        font-family: monospace;
    }

    .receipt-divider {
        border-top: 1px dashed #000000;
        margin: 2.5mm 0;
        height: 1px;
    }

    .receipt-double-divider {
        border-top: 3px double #000000;
        margin: 2.5mm 0;
        height: 3px;
    }

    .receipt-summary {
        font-size: 10px;
        line-height: 1.6;
        display: flex;
        flex-direction: column;
        gap: 0.5mm;
    }

    .receipt-summary-row {
        display: flex;
        justify-content: space-between;
    }

    .receipt-summary-row span:last-child {
        font-family: monospace;
        font-weight: 600;
    }

    .receipt-summary-row.grand-total {
        font-size: 13px;
        font-weight: 800;
        padding: 1.5mm 0;
    }

    .receipt-summary-row.grand-total span:last-child {
        font-size: 14px;
        font-weight: 800;
    }

    .receipt-footer {
        text-align: center;
        margin-top: 5mm;
        font-size: 10px;
        line-height: 1.4;
    }

    .receipt-footer-msg {
        font-weight: 600;
        margin-bottom: 3mm;
    }

    /* Mock Barcode CSS */
    .mock-barcode {
        display: flex;
        justify-content: center;
        align-items: flex-end;
        height: 8mm;
        margin: 3mm auto 1mm auto;
        width: 60%;
    }
    .mock-barcode span {
        display: inline-block;
        background-color: #000;
        height: 100%;
    }
    .mock-barcode span:nth-child(even) {
        background-color: transparent;
    }
    .mock-barcode .w1 { width: 0.3mm; }
    .mock-barcode .w2 { width: 0.6mm; }
    .mock-barcode .w3 { width: 0.9mm; }
    .mock-barcode .w4 { width: 1.2mm; }
}
