/* ================= GLOBAL STYLES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    background-color: #f8fafc;
    min-height: 100vh;
}

/* ================= PAGE CONTAINER ================= */
.page-container {
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 15px 20px;
}

/* ================= TABLE HEADER ================= */
.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 8px 12px;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e5e7eb;
}

.table-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.table-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2563eb;
    margin: 0;
    line-height: 1.2;
}

.table-subtitle {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.2;
}

.table-header-right {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ================= TABLES ================= */
.table-responsive {
    overflow-x: auto;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    font-size: 12px;
}

table th {
    background: #2563eb;
    color: white;
    font-weight: 600;
    text-align: center;
    padding: 8px 10px;
    white-space: nowrap;
}

table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
    text-align: center;
    vertical-align: middle;
}

table td:last-child {
    border-right: none;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover {
    background-color: #f9fafb;
}

/* Action links in tables */
.action-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-links a {
    white-space: nowrap;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 13px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.2;
    gap: 5px;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

/* Button colors */
.btn-primary { background: #2563eb; color: white; }
.btn-primary:hover { background: #1d4ed8; }

.btn-success { background: #10b981; color: white; }
.btn-success:hover { background: #0da271; }

.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }

.btn-warning { background: #f59e0b; color: white; }
.btn-warning:hover { background: #d97706; }

.btn-info { background: #06b6d4; color: white; }
.btn-info:hover { background: #0891b2; }

.btn-secondary { background: #6b7280; color: white; }
.btn-secondary:hover { background: #4b5563; }

.btn-indigo { background: #6366f1; color: white; }
.btn-indigo:hover { background: #4f46e5; }

.btn-teal { background: #14b8a6; color: white; }
.btn-teal:hover { background: #0d9488; }

.btn-rose { background: #f43f5e; color: white; }
.btn-rose:hover { background: #e11d48; }

.btn-link {
    background: transparent;
    color: #2563eb;
    text-decoration: underline;
}

.btn-link:hover {
    background: transparent;
    color: #1d4ed8;
    text-decoration: none;
    box-shadow: none;
    transform: none;
}

/* Button sizes */
.btn-sm {
    padding: 5px 9px;
    font-size: 11px;
}

.btn-lg {
    padding: 9px 17px;
    font-size: 13px;
}

/* Disabled button */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ================= FORMS ================= */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #4b5563;
    font-size: 12px;
}

.form-control {
    width: 100%;
    padding: 7px 11px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Required field asterisk */
.required-field {
    color: #ef4444;
}

/* Password field with eye icon */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9ca3af;
}

.password-toggle:hover {
    color: #4b5563;
}

/* Password strength meter */
.password-strength {
    height: 4px;
    margin-top: 8px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-weak {
    background: #ef4444;
    width: 33.33%;
}

.strength-medium {
    background: #f59e0b;
    width: 66.66%;
}

.strength-strong {
    background: #10b981;
    width: 100%;
}

/* Password requirements */
.password-requirements {
    font-size: 11px;
    color: #6b7280;
    margin-top: 8px;
    padding-left: 20px;
    list-style: none;
}

.password-requirements li {
    margin-bottom: 3px;
}

.password-match-message {
    font-size: 11px;
    margin-top: 5px;
}

/* ================= ALERTS ================= */
.alert {
    padding: 11px 16px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 12px;
}

.alert-success {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.alert-error,
.alert-danger {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    border: 1px solid #2563eb;
    color: #1e40af;
}

/* ================= CARDS ================= */
.card {
    background: white;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2563eb;
    margin: 0 0 10px 0;
}

/* Statistics cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.stat-card {
    text-align: center;
}

.stat-card h3 {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.stat-card p {
    font-size: 2rem;
    margin: 10px 0;
}

/* Colored stat cards */
.stat-card-colored {
    margin-bottom: 0;
}

.stat-card-colored.blue-border { border-left: 4px solid #2563eb; }
.stat-card-colored.green-border { border-left: 4px solid #10b981; }
.stat-card-colored.yellow-border { border-left: 4px solid #f59e0b; }
.stat-card-colored.indigo-border { border-left: 4px solid #6366f1; }

.stat-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-card-label {
    font-size: 12px;
    color: #6b7280;
}

.stat-card-number {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-card-icon.blue { background: #dbeafe; color: #2563eb; }
.stat-card-icon.green { background: #d1fae5; color: #10b981; }
.stat-card-icon.yellow { background: #fef3c7; color: #f59e0b; }
.stat-card-icon.indigo { background: #e0e7ff; color: #6366f1; }

.stat-card-icon i { font-size: 24px; }

/* Users stats grid */
.users-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* ================= BADGES ================= */
.badge {
    background: #2563eb;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* Role badges */
.role-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.role-admin { background: #dbeafe; color: #1e40af; }
.role-seller { background: #e0e7ff; color: #4f46e5; }

/* Status badges */
.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-active { background: #d1fae5; color: #065f46; }
.status-inactive { background: #fee2e2; color: #991b1b; }

/* Stock badges */
.stock-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-block;
}

.stock-out { background: #fee2e2; color: #991b1b; }
.stock-low { background: #fef3c7; color: #92400e; }
.stock-ok { background: #d1fae5; color: #065f46; }

/* Category badge */
.category-badge {
    background: #e5e7eb;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
}

.category-empty { color: #9ca3af; }

/* ================= SEARCH COMPONENTS ================= */
.search-container {
    position: relative;
    flex: 1;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
}

.search-input {
    padding-left: 35px !important;
    padding-right: 40px !important;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    cursor: pointer;
    font-size: 14px;
    display: none;
}

.search-clear:hover { color: #ef4444; }

.search-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* AJAX dropdown */
.ajax-dropdown {
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.ajax-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s;
}

.ajax-item:hover { background: #f3f4f6; }
.ajax-item:last-child { border-bottom: none; }

.ajax-item .product-name {
    font-weight: 500;
    color: #1f2937;
}

.ajax-item .product-price {
    font-size: 12px;
    color: #2563eb;
    font-weight: 600;
}

/* ================= POS SPECIFIC ================= */
.pos-grid {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.seller-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.seller-info i { color: #2563eb; }

/* Cart table */
.cart-table input[type="number"] {
    width: 80px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
}

.cart-table input[type="number"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Remove button */
.remove-btn {
    color: #ef4444;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.remove-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Grand total */
.grand-total {
    font-size: 24px;
    font-weight: 600;
    color: #2563eb;
}

/* Empty cart */
.empty-cart {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.empty-cart i {
    font-size: 64px;
    margin-bottom: 15px;
    color: #d1d5db;
}

/* Auto-save indicator */
.auto-save-indicator {
    font-size: 11px;
    color: #10b981;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Stock info */
.stock-info {
    font-size: 11px;
    color: #6b7280;
    margin-top: 5px;
}

/* Cart footer */
.cart-footer {
    padding: 20px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.cart-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Quick actions */
.quick-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ================= CHECKOUT SPECIFIC ================= */
.checkout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Cart summary */
.cart-summary {
    background: #f9fafb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cart-item:last-child { border-bottom: none; }
.cart-item-name { font-weight: 500; }
.cart-item-details { font-size: 13px; color: #6b7280; }
.cart-item-total { font-weight: 600; color: #2563eb; }

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e5e7eb;
    font-size: 18px;
    font-weight: 600;
}

.total-amount {
    color: #2563eb;
    font-size: 24px;
}

/* Customer section */
.customer-section { margin-bottom: 25px; }

.radio-group {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.radio-label input[type="radio"] { margin: 0; }

/* Payment section */
.payment-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e5e7eb;
}

.payment-section h3 {
    margin: 0 0 20px 0;
    color: #2563eb;
}

.amount-input {
    font-size: 18px;
    font-weight: 600;
    color: #2563eb;
}

.balance-info {
    margin-top: 10px;
    padding: 10px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 14px;
}

.balance-positive { color: #10b981; font-weight: 600; }
.balance-negative { color: #ef4444; font-weight: 600; }

.form-row { margin-bottom: 20px; }

.checkout-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.checkout-actions .btn { flex: 1; }

/* ================= RECEIPT PRINT ================= */
@page receipt { margin: 0; }

.receipt-container {
    font-family: monospace;
    width: 80mm;
    font-size: 14px;
    padding: 5px;
    margin: 0 auto;
    font-weight: bold;
}

.receipt-container .center { text-align: center; }
.receipt-container .right { text-align: right; }
.receipt-container .left { text-align: left; }

.receipt-container hr {
    border: none;
    border-top: 1px dashed #000;
    margin: 8px 0;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.receipt-table th,
.receipt-table td { padding: 3px 0; }

.receipt-table th {
    border-bottom: 1px solid #000;
    font-weight: bold;
}

.receipt-table td { border-bottom: 1px dashed #ccc; }
.receipt-table.no-border td { border: none; }

.receipt-container .col-item { width: 45%; text-align: left; padding-right: 5px; }
.receipt-container .col-qty { width: 15%; text-align: center; }
.receipt-container .col-price { width: 20%; text-align: right; padding-right: 5px; }
.receipt-container .col-total { width: 20%; text-align: right; }

.receipt-container .header-logo {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.receipt-container .header-address {
    font-size: 10px;
    line-height: 1.3;
}

.receipt-container .customer-info {
    font-size: 11px;
    line-height: 1.4;
}

.receipt-container .customer-label { font-weight: bold; }
.receipt-container .total-row { font-weight: bold; font-size: 13px; }
.receipt-container .footer { margin-top: 10px; font-size: 11px; }
.receipt-container .served-by { margin-top: 8px; font-size: 11px; }
.receipt-container .item-number { margin-right: 3px; }

/* Receipt buttons */
.receipt-actions {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.receipt-actions button {
    padding: 10px 20px;
    margin: 0 5px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.receipt-actions .btn-print { background: #2563eb; color: white; }
.receipt-actions .btn-print:hover { background: #1d4ed8; }
.receipt-actions .btn-cancel { background: #6b7280; color: white; }
.receipt-actions .btn-cancel:hover { background: #4b5563; }

/* ================= FILTER BAR ================= */
.filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-search { flex: 2; min-width: 250px; }
.filter-select { flex: 1; min-width: 120px; }

/* Table sort links */
.sort-link {
    color: white;
    text-decoration: none;
}

.sort-link:hover { text-decoration: underline; }

/* ================= EMPTY STATES ================= */
.no-results,
.empty-state {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.no-results i,
.empty-state i {
    font-size: 48px;
    color: #9ca3af;
    margin-bottom: 15px;
}

/* ================= EXPORT ACTIONS ================= */
.export-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ================= UTILITY CLASSES ================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Margin utilities */
.mt-1 { margin-top: 5px; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }

.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }

/* Padding utilities */
.p-1 { padding: 5px; }
.p-2 { padding: 10px; }
.p-3 { padding: 15px; }
.p-4 { padding: 20px; }


        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }
        
        .stat-card {
            background: #f8f9fc;
            border: 1px solid #e3e6f0;
            border-radius: 0.35rem;
            padding: 1.5rem;
            text-align: center;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }
        
        .stat-card h3 {
            margin: 0 0 10px 0;
            font-size: 14px;
            color: #4e73df;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .stat-card p {
            margin: 0;
            font-size: 24px;
            font-weight: 600;
            color: #5a5c69;
        }
        
        .back-link {
            margin-bottom: 20px;
        }
        
        .back-link a {
            text-decoration: none;
            color: #666;
        }
        
        .back-link a:hover {
            color: #333;
        }
        
        .table-container {
            margin-top: 20px;
            overflow-x: auto;
        }
        
        .no-data {
            text-align: center;
            padding: 40px;
            color: #666;
            font-style: italic;
        }
        
        .text-success {
            color: #28a745;
            font-weight: 600;
        }



.modal{
display:none;
position:fixed;
z-index:1000;
left:0;
top:0;
width:100%;
height:100%;
overflow:auto;
background-color:rgba(0,0,0,0.5);
animation:fadeIn 0.2s ease-in-out;
}

.modal-content{
background-color:#fff;
margin:8% auto;
padding:25px;
border:1px solid #ddd;
width:450px;
border-radius:10px;
box-shadow:0 8px 25px rgba(0,0,0,0.25);
animation:slideDown 0.25s ease;
}

.modal-content h3{
margin-top:0;
border-bottom:2px solid #eee;
padding-bottom:10px;
font-weight:600;
}

.modal-content label{
display:block;
margin-top:10px;
margin-bottom:5px;
font-weight:600;
}

.modal-content input{
width:100%;
padding:10px;
border:1px solid #ddd;
border-radius:6px;
font-size:14px;
margin-bottom:10px;
box-sizing:border-box;
transition:all 0.2s;
}

.modal-content input:focus{
border-color:#007bff;
outline:none;
box-shadow:0 0 5px rgba(0,123,255,0.3);
}

.modal-content input:read-only{
background:#f5f5f5;
cursor:not-allowed;
}

.modal-buttons{
display:flex;
justify-content:flex-end;
gap:10px;
margin-top:15px;
}

.btn-success{
background:#28a745;
color:#fff;
}

.btn-success:hover{
background:#218838;
}

.btn-secondary{
background:#6c757d;
color:#fff;
}

.btn-secondary:hover{
background:#5a6268;
}

.btn-sm{
padding:5px 10px;
font-size:12px;
}

.btn-history{
background:#17a2b8;
color:#fff;
}

.btn-history:hover{
background:#138496;
}



        /* Base Alert Styles */
        .alert {
            padding: 15px;
            margin-bottom: 20px;
            border: 1px solid transparent;
            border-radius: 4px;
        }

        .alert-error {
            color: #a94442;
            background-color: #f2dede;
            border-color: #ebccd1;
        }

        .alert-success {
            color: #3c763d;
            background-color: #dff0d8;
            border-color: #d6e9c6;
        }

        /* Compact Modal Styles - 50% smaller */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
            z-index: 9999;
            overflow-y: auto;
            padding: 10px;
            box-sizing: border-box;
        }

        .modal-container {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 100%;
            padding: 10px;
        }

        .modal-content {
            background-color: #ffffff;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            width: 100%;
            max-width: 280px;
            margin: auto;
            animation: modalSlideIn 0.2s ease;
            position: relative;
        }

        .modal-header {
            padding: 12px 16px;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .modal-header h3 {
            margin: 0;
            font-size: 1rem;
            font-weight: 600;
            color: #1f2937;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            color: #9ca3af;
            padding: 2px;
            line-height: 1;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .modal-close:hover {
            background-color: #f3f4f6;
            color: #4b5563;
        }

        .modal-body {
            padding: 16px;
        }

        .modal-footer {
            padding: 12px 16px;
            border-top: 1px solid #e5e7eb;
            display: flex;
            gap: 8px;
            justify-content: flex-end;
        }

        /* Warning Modal Specific - Compact */
        .warning-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
            border-radius: 50%;
            margin: 0 auto 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .warning-icon i {
            font-size: 20px;
            color: #856404;
        }

        .warning-title {
            color: #856404;
            font-size: 1.1rem;
            margin: 0 0 8px 0;
            font-weight: 600;
            text-align: center;
        }

        .warning-message {
            color: #1f2937;
            font-size: 0.85rem;
            line-height: 1.5;
            margin: 0 0 12px 0;
            text-align: center;
        }

        .product-badge {
            background-color: #fee2e2;
            color: #dc2626;
            padding: 2px 8px;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.8rem;
            display: inline-block;
            margin: 2px;
        }

        .stock-badge {
            background-color: #fee2e2;
            color: #dc2626;
            padding: 2px 8px;
            border-radius: 20px;
            font-weight: 700;
            font-size: 0.9rem;
            display: inline-block;
            margin: 2px;
        }

        .info-box {
            background-color: #f8fafc;
            border-left: 3px solid #f59e0b;
            padding: 10px 12px;
            border-radius: 8px;
            margin: 12px 0;
        }

        .info-box-title {
            color: #475569;
            font-weight: 600;
            font-size: 0.8rem;
            margin: 0 0 6px 0;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .info-box-title i {
            color: #f59e0b;
            font-size: 0.8rem;
        }

        .action-list {
            margin: 0;
            padding-left: 16px;
            color: #475569;
            font-size: 0.75rem;
        }

        .action-list li {
            margin-bottom: 4px;
        }

        .action-list li strong {
            color: #0d9488;
        }

        /* Compact Button Styles */
        .btn-modal {
            padding: 6px 12px;
            font-size: 0.8rem;
            font-weight: 500;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            min-width: 80px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
            color: white;
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
        }

        .btn-warning {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
        }

        .btn-warning:hover {
            background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
        }

        .btn-danger {
            background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
            color: white;
        }

        .btn-danger:hover {
            background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
        }

        .btn-secondary {
            background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
            color: white;
        }

        .btn-secondary:hover {
            background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
        }

        /* Animations */
        @keyframes modalSlideIn {
            from {
                transform: translateY(-20px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* Mobile Responsive - Even smaller for mobile */
        @media (max-width: 640px) {
            .modal-container {
                padding: 5px;
            }

            .modal-content {
                max-width: 260px;
            }

            .modal-header {
                padding: 8px 12px;
            }

            .modal-header h3 {
                font-size: 0.9rem;
            }

            .modal-body {
                padding: 12px;
            }

            .modal-footer {
                padding: 8px 12px;
                flex-direction: column;
                gap: 4px;
            }

            .btn-modal {
                width: 100%;
                padding: 8px;
                font-size: 0.75rem;
            }

            .warning-icon {
                width: 32px;
                height: 32px;
                margin-bottom: 8px;
            }

            .warning-icon i {
                font-size: 16px;
            }

            .warning-title {
                font-size: 1rem;
                margin-bottom: 4px;
            }

            .warning-message {
                font-size: 0.75rem;
                margin-bottom: 8px;
            }

            .info-box {
                padding: 8px 10px;
                margin: 8px 0;
            }

            .action-list {
                font-size: 0.7rem;
                padding-left: 12px;
            }

            .action-list li {
                margin-bottom: 3px;
            }
        }

        /* Tablet Styles */
        @media (min-width: 641px) and (max-width: 1024px) {
            .modal-content {
                max-width: 260px;
            }
        }

        /* Compact Update Modal */
        .update-modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.4);
            overflow-y: auto;
            padding: 10px;
            box-sizing: border-box;
        }

        .update-modal-content {
            background-color: #ffffff;
            margin: 30px auto;
            padding: 20px;
            border-radius: 12px;
            width: 90%;
            max-width: 280px;
            position: relative;
            animation: modalSlideIn 0.2s ease;
        }

        .update-modal-content h3 {
            margin-top: 0;
            margin-bottom: 15px;
            color: #1f2937;
            font-size: 1.1rem;
        }

        .update-modal-content label {
            display: block;
            margin-bottom: 3px;
            color: #4b5563;
            font-weight: 500;
            font-size: 0.8rem;
        }

        .update-modal-content input {
            width: 100%;
            padding: 6px 8px;
            margin-bottom: 10px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            box-sizing: border-box;
            font-size: 0.8rem;
        }

        .update-modal-content input:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
        }

        .modal-buttons {
            display: flex;
            gap: 8px;
            justify-content: flex-end;
            margin-top: 15px;
        }

        .modal-buttons button {
            padding: 6px 12px;
            font-size: 0.8rem;
            min-width: 70px;
        }

        @media (max-width: 640px) {
            .update-modal-content {
                margin: 15px auto;
                padding: 15px;
            }

            .modal-buttons {
                flex-direction: column;
                gap: 5px;
            }

            .modal-buttons button {
                width: 100%;
            }
        }
        


@keyframes fadeIn{
from{opacity:0;}
to{opacity:1;}
}

@keyframes slideDown{
from{
transform:translateY(-20px);
opacity:0;
}
to{
transform:translateY(0);
opacity:1;
}
}



/* Pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body, html { font-size: 12px; }
    
    .page-container { padding: 10px 15px; }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .table-header-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    table { font-size: 11px; }
    table th, table td { padding: 7px 9px; }
    
    .btn { padding: 5px 11px; font-size: 11px; }
    .action-links { gap: 5px; }
    
    .pos-grid { grid-template-columns: 1fr; }
    .cart-footer-content { flex-direction: column; gap: 15px; align-items: flex-start; }
    .seller-info { flex-direction: column; gap: 10px; }
    
    .radio-group { flex-direction: column; gap: 10px; }
    .checkout-actions { flex-direction: column; }
    
    .stats-grid,
    .users-stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-search,
    .filter-select { min-width: 100%; }
    
    .export-actions { flex-direction: column; }
    .export-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
    .page-container { padding: 8px 10px; }
    .page-title { font-size: 1.2rem; }
    
    table { font-size: 10px; }
    table th, table td { padding: 6px 7px; }
    
    .grand-total { font-size: 20px; }
    .cart-table input[type="number"] { width: 60px; padding: 4px 6px; }
    
    .total-amount { font-size: 20px; }
    .cart-item { flex-direction: column; align-items: flex-start; gap: 5px; }
    .cart-item-total { align-self: flex-end; }
    
    .stat-card p { font-size: 1.5rem; }
    .stat-card-number { font-size: 22px; }
    
    .stat-card-icon { width: 40px; height: 40px; }
    .stat-card-icon i { font-size: 20px; }
    
    .no-results i,
    .empty-state i { font-size: 36px; }
    
    .no-results,
    .empty-state { padding: 20px; }
    
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }
    
    .password-requirements { font-size: 10px; padding-left: 15px; }
}

/* Print media query */
@media print {
    .no-print,
    .receipt-actions,
    .btn,
    .export-actions,
    .table-header-right,
    .quick-actions {
        display: none !important;
    }
    
    body {
        background: white;
        margin: 0;
        padding: 5px;
    }
}


/* ==============================
   RECEIPT BLACK & WHITE STYLE
============================== */

/* Remove all colors */
.receipt-container,
.receipt-container * {
    color: #000 !important;
    background: #fff !important;
    border-color: #000 !important;
}

/* Remove button colors */
.btn-print,
.btn-cancel {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}

/* Remove table shading if any */
.receipt-table th,
.receipt-table td {
    background: #fff !important;
    color: #000 !important;
}

/* Remove hover effects */
button:hover {
    background: #1d4ed8 !important;
}

@media print {
    body {
        background: #fff;
        color: #000;
    }

    .no-print {
        display: none;
    }
}