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

:root {
    --bg-base: #0b0f19;
    --bg-surface: #151f32;
    --bg-surface-hover: #1e2c45;
    --bg-card: rgba(21, 31, 50, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --primary: #ff7e93; /* Soft Coral Pink */
    --primary-glow: rgba(255, 126, 147, 0.15);
    --secondary: #2dd4bf; /* Bright Turquoise */
    --secondary-glow: rgba(45, 212, 191, 0.15);
    --accent: #8b5cf6; /* Modern Purple */
    --warning: #f59e0b; /* Amber */
    --danger: #ef4444; /* Rose */
    --success: #10b981; /* Emerald */
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
    --shadow-md: 0 8px 20px rgba(0,0,0,0.25);
    --shadow-lg: 0 12px 30px rgba(0,0,0,0.35);
    --shadow-accent: 0 8px 25px rgba(255, 126, 147, 0.2);
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.5;
    height: 100vh;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-surface-hover);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 100;
    transition: width var(--transition-normal);
}

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

.sidebar-logo {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(255, 126, 147, 0.3);
}

.brand-text {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu {
    list-style: none;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    overflow-y: auto;
}

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

.menu-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: transform var(--transition-fast);
}

.menu-item:hover {
    color: var(--text-primary);
    background-color: var(--bg-surface-hover);
}

.menu-item:hover i {
    transform: scale(1.15);
}

.menu-item.active {
    background: linear-gradient(135deg, var(--primary-glow), rgba(139, 92, 246, 0.05));
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 13px;
    box-shadow: var(--shadow-sm);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

/* Header Navbar */
.header-nav {
    height: 70px;
    border-bottom: 1px solid var(--border-color);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(21, 31, 50, 0.4);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.header-title h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.date-indicator {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-surface);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* Content Container */
.content-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 32px;
}

.tab-view {
    display: none;
    animation: fadeIn var(--transition-normal);
}

.tab-view.active {
    display: block;
}

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

/* Button & Card Styling (Premium Glassmorphism) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 126, 147, 0.35);
}

.btn-secondary {
    background-color: var(--bg-surface-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-accent {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
}

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

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

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

/* Form inputs */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background-color: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 126, 147, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1-fraction));
    gap: 16px;
}

/* Dashboard View styling */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

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

.stat-info .stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    margin-top: 4px;
    letter-spacing: -0.5px;
}

.stat-info .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.stat-icon.sales { background-color: rgba(255, 126, 147, 0.12); color: var(--primary); }
.stat-icon.profit { background-color: rgba(45, 212, 191, 0.12); color: var(--secondary); }
.stat-icon.stock { background-color: rgba(139, 92, 246, 0.12); color: var(--accent); }
.stat-icon.expenses { background-color: rgba(245, 158, 11, 0.12); color: var(--warning); }

.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

@media(max-width: 1024px) {
    .charts-row {
        grid-template-columns: 1fr;
    }
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

.dashboard-sections {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media(max-width: 768px) {
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
}

/* Tables styling */
.table-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.table-search-bar {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.app-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.app-table th {
    background-color: rgba(11, 15, 25, 0.4);
    padding: 14px 16px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.app-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success { background-color: rgba(16, 185, 129, 0.12); color: var(--success); }
.badge-warning { background-color: rgba(245, 158, 11, 0.12); color: var(--warning); }
.badge-danger { background-color: rgba(239, 68, 68, 0.12); color: var(--danger); }
.badge-info { background-color: rgba(45, 212, 191, 0.12); color: var(--secondary); }

/* Point of Sale (POS) Billing View */
.pos-layout {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 24px;
    height: calc(100vh - 170px);
    overflow: hidden;
}

@media(max-width: 1024px) {
    .pos-layout {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }
}

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

.pos-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    overflow-y: auto;
    padding-right: 6px;
    flex-grow: 1;
}

.pos-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.pos-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.pos-product-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 126, 147, 0.3);
    background-color: var(--bg-surface-hover);
}

.pos-product-card:hover::before {
    opacity: 1;
}

.pos-prod-size-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.4);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    color: var(--secondary);
    border: 1px solid rgba(45, 212, 191, 0.2);
}

.pos-prod-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
    margin-top: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pos-prod-sku {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.pos-prod-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.pos-prod-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
}

.pos-prod-stock {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

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

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

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

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.cart-item-details {
    flex-grow: 1;
    margin-right: 12px;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

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

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

.cart-item-price-col {
    text-align: right;
    min-width: 70px;
}

.cart-item-total {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--secondary);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
}

.pos-cart-summary {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: rgba(11, 15, 25, 0.6);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.summary-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dotted var(--border-color);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.summary-row.total .total-amount {
    color: var(--primary);
}

.cart-checkout-actions {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

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

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

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn var(--transition-normal);
}

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

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

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

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
    max-height: 75vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(11, 15, 25, 0.3);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Category grid navigation in POS */
.pos-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.pos-cat-btn {
    padding: 6px 14px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pos-cat-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-surface-hover);
}

.pos-cat-btn.active {
    background-color: var(--primary-glow);
    color: var(--primary);
    border-color: var(--primary);
}

/* Invoice design template (Receipt) */
.invoice-print-container {
    font-family: 'Courier New', Courier, monospace;
    color: #000;
    background: #fff;
    padding: 20px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    border: 1px solid #ddd;
}

.invoice-header {
    text-align: center;
    margin-bottom: 15px;
}

.invoice-header h2 {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.invoice-header p {
    font-size: 0.75rem;
    margin: 2px 0;
}

.invoice-details {
    border-bottom: 1px dashed #000;
    padding-bottom: 8px;
    margin-bottom: 10px;
    font-size: 0.75rem;
}

.invoice-table {
    width: 100%;
    font-size: 0.75rem;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.invoice-table th {
    border-bottom: 1px dashed #000;
    text-align: left;
    padding: 4px 0;
}

.invoice-table td {
    padding: 4px 0;
    vertical-align: top;
}

.invoice-summary {
    border-top: 1px dashed #000;
    padding-top: 8px;
    font-size: 0.75rem;
}

.invoice-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.invoice-summary-row.bold {
    font-weight: bold;
    font-size: 0.85rem;
}

.invoice-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.75rem;
}

/* MRP Tag Generator styles */
.tag-config-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
}

@media(max-width: 768px) {
    .tag-config-grid {
        grid-template-columns: 1fr;
    }
}

.tag-preview-container {
    background-color: var(--bg-base);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    overflow-y: auto;
}

/* Live MRP Tag layout preview in UI */
.mrp-tag {
    width: 200px;
    background: white;
    color: black;
    border: 1.5px solid #000;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.mrp-tag-store {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #ccc;
    width: 100%;
    padding-bottom: 4px;
    margin-bottom: 6px;
    color: #ff3e6c;
}

.mrp-tag-title {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mrp-tag-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2px;
    font-size: 0.65rem;
}

.mrp-tag-mrp {
    font-size: 0.95rem;
    font-weight: 800;
    margin-top: 4px;
    margin-bottom: 4px;
    background-color: #000;
    color: #fff;
    width: 100%;
    padding: 2px 0;
    border-radius: 3px;
}

.mrp-tag-barcode {
    width: 100%;
    max-height: 35px;
    margin-top: 4px;
}

/* Printable sticker grid sheets */
#print-stickers-container {
    display: none;
}

/* Reports Panels Specific styling */
.reports-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filters-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    background: var(--bg-card);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.profit-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.profit-summary-card {
    background: rgba(11, 15, 25, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.profit-summary-card h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.profit-summary-card .val {
    font-size: 1.4rem;
    font-weight: 700;
}

.profit-summary-card .val.positive { color: var(--success); }
.profit-summary-card .val.negative { color: var(--danger); }
.profit-summary-card .val.neutral { color: var(--primary); }

.reports-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    gap: 10px;
}

.report-tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.report-tab-btn:hover {
    color: var(--text-primary);
}

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

.report-table-section {
    display: none;
}

.report-table-section.active {
    display: block;
}

/* Printing styles */
@media print {
    body * {
        visibility: hidden;
    }
    
    /* Printable sticker sheet printing */
    #print-stickers-container, #print-stickers-container * {
        visibility: visible;
    }
    
    #print-stickers-container {
        display: grid !important;
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        background: white !important;
        color: black !important;
        margin: 0 !important;
        padding: 10mm !important;
        box-sizing: border-box !important;
    }

    /* Sticker Layout: Custom columns (e.g. 3 columns, 8 rows) depending on options */
    .print-stickers-grid-3 {
        grid-template-columns: repeat(3, 1fr) !important;
        column-gap: 5mm !important;
        row-gap: 5mm !important;
    }
    
    .print-stickers-grid-4 {
        grid-template-columns: repeat(4, 1fr) !important;
        column-gap: 3mm !important;
        row-gap: 4mm !important;
    }

    .print-mrp-tag {
        visibility: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        background: white !important;
        color: black !important;
        border: 1px solid #000 !important;
        border-radius: 4px !important;
        padding: 3mm !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
        page-break-inside: avoid !important;
    }

    .print-mrp-tag * {
        visibility: visible !important;
    }
    
    .print-mrp-tag svg {
        width: 90% !important;
        max-height: 25px !important;
    }
    
    /* Printable invoice receipt printing */
    .invoice-print-container, .invoice-print-container * {
        visibility: visible !important;
    }
    
    .invoice-print-container {
        position: absolute;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        width: 80mm !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Login Screen Styling */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 30% 30%, #172554 0%, #090d16 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.login-card {
    background: rgba(21, 31, 50, 0.75);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: loginCardFade var(--transition-normal);
}

@keyframes loginCardFade {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 800;
    box-shadow: 0 0 20px rgba(255, 126, 147, 0.4);
    margin-bottom: 16px;
}

.login-brand h2 {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.login-brand p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

