/* 
 * styles.css - Modern Responsive POS Design System
 * Light/Dark themes, Glassmorphism, Micro-animations, Print styles
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Prompt:wght@200;300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Premium Slate & Deep Indigo */
    --font-primary: 'Prompt', 'Inter', sans-serif;
    
    /* Light Theme Variables */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.75);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #06b6d4;
    --info-light: #ecfeff;
    
    --border-color: #e2e8f0;
    --border-glass: rgba(226, 232, 240, 0.8);
    --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 -2px rgba(0, 0, 0, 0.05);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme overrides */
body.dark {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-glass: rgba(30, 41, 59, 0.7);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #1e1b4b;
    
    --success: #10b981;
    --success-light: #064e3b;
    --warning: #fbbf24;
    --warning-light: #78350f;
    --danger: #f87171;
    --danger-light: #7f1d1d;
    --info: #22d3ee;
    --info-light: #083344;
    
    --border-color: #334155;
    --border-glass: rgba(51, 65, 85, 0.5);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: var(--transition);
    overflow-x: hidden;
}

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

/* Sidebar Navigation */
.sidebar {
    width: 260px;
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: var(--transition);
    flex-shrink: 0;
    z-index: 100;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.brand-name {
    font-weight: 700;
    font-size: 18px;
    background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
}

.nav-item.active a, .nav-item a:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

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

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.profile-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.profile-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.top-bar {
    height: 70px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

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

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Dynamic container with tabs content */
.content-body {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto;
    position: relative;
}

.tab-pane {
    display: none;
    height: 100%;
}

.tab-pane.active {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Auth Screens */
.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at top right, var(--primary-light), var(--bg-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 32px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Button & Forms */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

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

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

.btn-success:hover {
    background-color: #059669;
}

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

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-icon {
    padding: 8px;
    border-radius: 8px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

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

.input-control {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-primary);
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.input-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* POS Interface Split Layout */
.pos-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    height: 100%;
    overflow: hidden;
}

.pos-products-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
    height: 100%;
}

.pos-cart-side {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

/* Search and Filters */
.search-filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    background-color: var(--bg-secondary);
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.category-tags {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
    max-width: 100%;
}

.category-tag {
    padding: 6px 12px;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
}

.category-tag.active, .category-tag:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Grid of Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); /* default medium */
    gap: 16px;
    overflow-y: auto;
    padding: 4px;
    flex-grow: 1;
}

/* Size modifications */
.products-grid.grid-sm {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}
.products-grid.grid-sm .product-card-img {
    height: 85px;
    font-size: 24px;
}
.products-grid.grid-sm .product-card-name {
    font-size: 12px;
    height: 32px;
}
.products-grid.grid-sm .product-card-price {
    font-size: 13px;
}

.products-grid.grid-md {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.products-grid.grid-lg {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}
.products-grid.grid-lg .product-card-img {
    height: 150px;
    font-size: 40px;
}
.products-grid.grid-lg .product-card-name {
    font-size: 15px;
    height: 44px;
}

.products-grid.grid-list {
    grid-template-columns: 1fr;
    gap: 8px;
}
.products-grid.grid-list .product-card {
    flex-direction: row;
    align-items: center;
    padding: 8px 16px;
    height: 70px;
}
.products-grid.grid-list .product-card-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
}
.products-grid.grid-list .product-card-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    margin-left: 10px;
}
.products-grid.grid-list .product-card-name {
    height: auto;
    font-size: 13px;
    max-width: 60%;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 0;
}
.products-grid.grid-list .product-card-meta {
    margin-top: 0;
    gap: 12px;
}

/* Card stock badge floating top-right */
.card-stock-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.product-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.product-card-img {
    height: 120px;
    width: 100%;
    background-color: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 32px;
    overflow: hidden;
    position: relative;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.product-card-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.product-card-stock {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 500;
}

.stock-ok {
    background-color: var(--success-light);
    color: var(--success);
}

.stock-low {
    background-color: var(--warning-light);
    color: var(--warning);
}

.stock-out {
    background-color: var(--danger-light);
    color: var(--danger);
}

/* Shopping Cart Side */
.cart-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    font-weight: 600;
    font-size: 16px;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-tertiary);
}

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.cart-item-price {
    font-size: 12px;
    color: var(--text-muted);
}

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

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

.qty-val {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-summary {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    border-top: 1px dashed var(--border-color);
    padding-top: 8px;
    margin-top: 4px;
}

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

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modal-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content.wide {
    max-width: 800px;
}

@keyframes modal-in {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: var(--bg-primary);
}

/* Image input widget (Webcam or Local select) */
.image-input-container {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 150px;
    background-color: var(--bg-primary);
}

.image-input-preview {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
}

.image-input-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Tabs Bar inside Panes (Subtabs) */
.subtabs-bar {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    gap: 24px;
}

.subtab-item {
    padding: 12px 4px;
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.subtab-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* Stats Cards Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.stats-card {
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-card-data {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stats-card-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stats-card-val {
    font-size: 24px;
    font-weight: 700;
}

.stats-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

/* Mobile Repair & Mobile Stock Specific Layouts */
.repair-layout, .mobile-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

/* Tables style */
.table-container {
    background-color: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    width: 100%;
}

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

.data-table th {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

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

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

.data-table tbody tr:hover {
    background-color: var(--bg-primary);
}

/* Badges for status */
.badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-pending {
    background-color: var(--warning-light);
    color: var(--warning);
}

.badge-repairing {
    background-color: var(--info-light);
    color: var(--info);
}

.badge-completed {
    background-color: var(--success-light);
    color: var(--success);
}

.badge-expired {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* QR Code Pop-up display */
.qr-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 24px;
}

.qr-image-display {
    width: 250px;
    height: 250px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: white;
}

.qr-image-display img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Printer Label Generator Styling */
.barcode-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    max-height: 250px;
    overflow-y: auto;
    background-color: var(--bg-primary);
}

.barcode-preview-card {
    background-color: white;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: black;
}

.barcode-code-svg {
    font-family: monospace;
    font-size: 10px;
    margin-top: 4px;
}

/* Camera webcam stream wrapper */
.webcam-container {
    width: 100%;
    max-height: 300px;
    background-color: black;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    display: none;
}

.webcam-stream {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.webcam-shutter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

/* Reports Grid Layout */
.reports-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.expense-log-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Barcode template custom generator style */
.barcode-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    background-color: white;
    color: black;
    padding: 10px;
}

/* Responsive layout adjustments */
@media (max-width: 1024px) {
    .pos-layout {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
    .pos-cart-side {
        height: 500px;
    }
    .reports-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 12px 16px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .nav-links {
        display: none; /* toggleable drawer for mobile */
    }
    .sidebar-footer {
        display: none;
    }
    .main-content {
        height: calc(100vh - 65px);
    }
    .top-bar {
        padding: 0 16px;
    }
}

/* Print CSS Styles - Beautifully prints receipts or barcodes */
@media screen { .print-receipt-section { display: none !important; } }
@media print {
    body * {
        visibility: hidden;
    }
    .print-receipt-section, .print-receipt-section * {
        visibility: visible;
    }
    .print-receipt-section {
        position: absolute;
        left: 0;
        top: 0;
        width: 80mm; /* standard POS printer */
        color: black;
        background-color: white;
        padding: 0;
        font-family: 'Courier New', Courier, monospace;
        font-size: 28px; /* 2x larger base size */
    }
    .print-receipt-header {
        text-align: center;
        margin-bottom: 10px;
    }
    .print-receipt-divider {
        border-top: 1px dashed black;
        margin: 8px 0;
    }
    .print-receipt-row {
        display: flex;
        justify-content: space-between;
    }
    .print-receipt-footer {
        text-align: center;
        margin-top: 15px;
        font-size: 24px; /* increased footer size */
    }
    .no-print {
        display: none !important;
    }
}

/* Helper templates for notes list */
.template-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 120px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.template-badge {
    background-color: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.template-badge:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Margin helper showing in add/edit product modal */
.margin-indicator {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}
