* { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

body { margin: 0; padding: 0; overflow-x: hidden; background: #f0f4f8; }

h1:focus { outline: none; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }

.card { border-radius: 12px !important; border: none !important; }
.table { font-size: 0.9rem; }
.text-teal { color: #0ea5e9 !important; }
.bg-med-gradient { background: linear-gradient(135deg, #0ea5e9, #10b981) !important; }

/* ─── POS System ─── */
.pos-wrapper {
    display: flex; flex-direction: column;
    flex: 1; min-height: 0;
    background: #f0f4f8; overflow: hidden;
    font-size: 12px; user-select: none;
}

.pos-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 14px; background: #fff;
    border-bottom: 1px solid #e2e8f0; min-height: 44px;
    gap: 10px; flex-shrink: 0;
}
.pos-topbar-left { display: flex; gap: 6px; align-items: center; }
.pos-topbar-center { display: flex; align-items: center; gap: 14px; }
.pos-topbar-right { display: flex; gap: 6px; align-items: center; }

.pos-invoice { font-weight: 800; font-size: 13px; color: #0284c7; }
.pos-datetime { font-size: 11px; color: #1e293b; font-weight: 600; }

.pos-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px; border-radius: 7px; border: 1px solid #e2e8f0;
    background: #fff; font-size: 11px; font-weight: 700;
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.pos-btn:hover { background: #f1f5f9; }
.pos-btn-primary { background: #0ea5e9; color: #fff; border-color: #0ea5e9; }
.pos-btn-primary:hover { background: #0284c7; }
.pos-btn-success { background: #10b981; color: #fff; border-color: #10b981; }
.pos-btn-success:hover { background: #059669; }
.pos-btn-secondary { background: #fff; color: #1e293b; }
.pos-btn-secondary:hover { background: #f1f5f9; color: #0ea5e9; }
.pos-btn-danger { background: #ef4444; color: #fff; border-color: #ef4444; }
.pos-btn-danger:hover { background: #dc2626; }
.pos-btn:disabled { opacity: 0.4; cursor: default; }
.pos-btn-sm { padding: 4px 9px; font-size: 10px; }
.w-100 { width: 100%; }

.pos-alert-btn {
    position: relative; background: none; border: none;
    font-size: 16px; color: #1e293b; cursor: pointer;
    padding: 3px 6px; border-radius: 6px;
}
.pos-alert-btn:hover { background: #f1f5f9; }
.pos-alert-badge {
    position: absolute; top: -2px; right: 0; font-size: 10px;
    font-weight: 900; width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: #fff; min-width: 18px;
}
.bg-warning { background: #f59e0b; }
.bg-danger { background: #ef4444; }

/* ─── Body ─── */
.pos-body { display: flex; flex: 1; overflow: hidden; gap: 0; }

/* ─── Left ─── */
.pos-left { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

.pos-search-box {
    position: relative; padding: 10px 12px; background: #fff;
    border-bottom: 1px solid #e2e8f0; flex-shrink: 0;
}
.pos-search-icon { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: #475569; font-size: 16px; }
.pos-search-input {
    width: 100%; padding: 10px 36px 10px 36px; border: 1px solid #e2e8f0;
    border-radius: 9px; font-size: 13px; background: #f8fafc;
    outline: none; transition: border 0.15s;
}
.pos-search-input:focus { border-color: #0ea5e9; background: #fff; box-shadow: 0 0 0 3px rgba(14,165,233,0.12); }
.pos-search-clear {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #475569; cursor: pointer; font-size: 12px; padding: 3px;
}
.pos-search-clear:hover { color: #ef4444; }

.pos-search-results {
    position: absolute; top: 100%; left: 12px; right: 12px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 0 0 9px 9px;
    max-height: 280px; overflow-y: auto; z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.pos-search-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f1f5f9;
}
.pos-search-item:last-child { border-bottom: none; }
.pos-search-item:hover { background: #f0f9ff; }
.pos-search-item-left { display: flex; flex-direction: column; gap: 2px; }
.pos-search-item-name { font-weight: 800; font-size: 12px; color: #0f172a; }
.pos-search-item-detail { font-size: 10px; color: #334155; font-weight: 500; }
.pos-search-item-price { font-weight: 900; font-size: 13px; color: #047857; display: block; }
.pos-search-item-stock { font-size: 10px; color: #334155; font-weight: 600; }

/* ─── Cart ─── */
.pos-cart { flex: 1; overflow-y: auto; padding: 10px 14px; }
.pos-cart-empty { display: flex; align-items: center; justify-content: center; }
.pos-cart-header { padding: 6px 0; font-size: 11px; color: #0f172a; font-weight: 700; }
.pos-cart-count { background: #f1f5f9; padding: 2px 10px; border-radius: 10px; }
.pos-cart-placeholder { text-align: center; color: #475569; }
.pos-cart-placeholder-icon { font-size: 44px; display: block; margin-bottom: 8px; color: #cbd5e1; }
.pos-cart-placeholder p { font-size: 12px; }

.pos-cart-item {
    display: flex; flex-direction: column;
    background: #fff; border-radius: 9px; padding: 10px 14px;
    margin-bottom: 6px; border: 1px solid #e2e8f0;
}
.pos-cart-item-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pos-cart-item-name { font-weight: 800; font-size: 12px; color: #0f172a; }
.pos-cart-item-batch { font-size: 10px; color: #334155; font-weight: 500; }
.pos-cart-item-rate { font-size: 11px; color: #047857; margin-left: auto; font-weight: 800; }
.pos-cart-item-controls { display: flex; align-items: center; gap: 8px; }
.pos-cart-item-qty { display: flex; align-items: center; gap: 0; }
.pos-qty-btn {
    width: 26px; height: 26px; border: 1px solid #e2e8f0;
    background: #fff; cursor: pointer; font-size: 12px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    color: #1e293b; transition: all 0.1s;
}
.pos-qty-btn:first-child { border-radius: 5px 0 0 5px; }
.pos-qty-btn:last-child { border-radius: 0 5px 5px 0; }
.pos-qty-btn:hover { background: #f1f5f9; }
.pos-qty-btn:disabled { opacity: 0.3; }
.pos-qty-input {
    width: 38px; height: 26px; border: 1px solid #e2e8f0; border-left: none; border-right: none;
    text-align: center; font-size: 11px; font-weight: 800; outline: none;
    -moz-appearance: textfield;
}
.pos-qty-input::-webkit-outer-spin-button,
.pos-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pos-cart-item-total { font-weight: 900; font-size: 13px; color: #0f172a; margin-left: auto; min-width: 60px; text-align: right; }
.pos-cart-item-actions { display: flex; gap: 4px; }
.pos-cart-item-batch-btn, .pos-cart-item-del {
    background: none; border: 1px solid #e2e8f0; border-radius: 6px;
    width: 26px; height: 26px; cursor: pointer; display: flex;
    align-items: center; justify-content: center; font-size: 12px; color: #475569;
}
.pos-cart-item-batch-btn:hover { color: #0ea5e9; border-color: #0ea5e9; }
.pos-cart-item-del:hover { color: #ef4444; border-color: #ef4444; }

/* ─── Right Panel ─── */
.pos-right {
    width: 350px; min-width: 350px; display: flex; flex-direction: column;
    background: #fff; border-left: 1px solid #e2e8f0;
    overflow: hidden;
}

/* ─── Customer ─── */
.pos-customer-section { padding: 10px 14px; border-bottom: 1px solid #e2e8f0; flex-shrink: 0; }
.pos-customer-display {
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; padding: 8px 12px; border-radius: 8px;
    background: #f8fafc; border: 1px dashed #e2e8f0;
}
.pos-customer-display:hover { background: #f0f9ff; border-color: #0ea5e9; }
.pos-customer-walkin { display: flex; align-items: center; gap: 8px; }
.pos-customer-walkin i { font-size: 26px; color: #475569; }
.pos-customer-walkin div { display: flex; flex-direction: column; gap: 1px; }
.pos-customer-walkin span { font-size: 12px; font-weight: 800; color: #0f172a; }
.pos-customer-walkin small { font-size: 10px; color: #334155; font-weight: 500; }
.pos-customer-info { display: flex; flex-direction: column; gap: 1px; }
.pos-customer-name { font-weight: 800; font-size: 12px; color: #0f172a; }
.pos-customer-phone { font-size: 10px; color: #1e293b; font-weight: 500; }
.pos-customer-change { background: none; border: none; color: #475569; cursor: pointer; font-size: 18px; }
.pos-customer-change:hover { color: #ef4444; }

/* ─── Totals ─── */
.pos-totals { padding: 12px 14px; overflow: hidden; }
.pos-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 12px; color: #1e293b; font-weight: 600; }
.pos-discount-toggle {
    background: none; border: none; color: #0284c7; cursor: pointer;
    font-size: 10px; font-weight: 800; text-decoration: underline;
}
.pos-discount-input {
    width: 58px; padding: 2px 6px; border: 1px solid #e2e8f0;
    border-radius: 5px; font-size: 12px; text-align: right; outline: none; font-weight: 600;
}
.pos-tax-row { color: #334155; font-size: 11px; }
.pos-tax-detail { cursor: pointer; color: #0ea5e9; font-size: 11px; font-weight: 700; }
.pos-tax-detail:hover { text-decoration: underline; }
.pos-tax-breakup-detail { padding: 4px 0 4px 12px; }
.pos-tax-detail-row { display: flex; justify-content: space-between; font-size: 10px; color: #475569; padding: 2px 0; font-weight: 500; }
.pos-grand-total span:first-child { font-weight: 800; font-size: 13px; color: #0f172a; }
.pos-grand-amount { font-size: 20px; font-weight: 900; color: #047857; letter-spacing: -0.5px; }

/* ─── Payment ─── */
.pos-payment { padding: 10px 14px; border-top: 1px solid #e2e8f0; flex-shrink: 0; }
.pos-payment-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 8px; }
.pos-pay-mode {
    display: flex; align-items: center; justify-content: center; gap: 4px;
    padding: 8px; border-radius: 8px; border: 2px solid #e2e8f0;
    background: #fff; cursor: pointer; font-size: 12px; font-weight: 700;
    color: #1e293b; transition: all 0.15s;
}
.pos-pay-mode:hover { border-color: #0ea5e9; color: #0ea5e9; }
.pos-pay-mode.active { border-color: #0ea5e9; background: #f0f9ff; color: #0ea5e9; }
.pos-cash-quick { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.pos-cash-quick span { font-size: 11px; color: #475569; margin-right: 4px; font-weight: 600; }
.pos-cash-amt {
    padding: 4px 10px; border: 1px solid #e2e8f0; border-radius: 5px;
    background: #fff; cursor: pointer; font-size: 10px; font-weight: 700; color: #1e293b;
}
.pos-cash-amt:hover { background: #f1f5f9; border-color: #0ea5e9; }
.pos-cash-exact { background: #059669; color: #fff; border-color: #059669; font-weight: 700; }
.pos-cash-exact:hover { background: #047857; }
.pos-cash-tendered { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.pos-cash-tendered span { font-size: 11px; color: #1e293b; font-weight: 600; }
.pos-cash-input {
    width: 100px; padding: 4px 8px; border: 1px solid #e2e8f0;
    border-radius: 5px; font-size: 13px; font-weight: 800; text-align: right;
    outline: none;
}
.pos-cash-input:focus { border-color: #0ea5e9; }
.pos-change { font-size: 11px; color: #059669; font-weight: 800; }

.pos-pay-btn {
    width: 100%; padding: 12px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, #059669, #10b981); color: #fff;
    font-size: 14px; font-weight: 900; cursor: pointer;
    transition: all 0.15s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.pos-pay-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(5,150,105,0.35); }
.pos-pay-btn:disabled { opacity: 0.4; transform: none; box-shadow: none; }

/* ─── Bottom Bar ─── */
.pos-bottom-bar {
    display: flex; align-items: center; gap: 10px; padding: 4px 12px;
    background: #1e293b; color: #94a3b8; font-size: 9px; flex-shrink: 0;
}
.pos-bottom-bar kbd {
    background: #334155; color: #e2e8f0; padding: 1px 5px; border-radius: 3px;
    font-size: 9px; font-family: monospace; margin-right: 1px;
}

/* ─── Toast ─── */
.pos-toast {
    position: fixed; top: 14px; right: 14px; z-index: 9999;
    padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 12px;
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12); animation: slideIn 0.3s;
}
.pos-toast.success { background: #059669; color: #fff; }
.pos-toast.error { background: #ef4444; color: #fff; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── Modals ─── */
.pos-modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(15,23,42,0.5); display: flex;
    align-items: center; justify-content: center;
}
.pos-modal {
    background: #fff; border-radius: 14px; width: 400px; max-height: 75vh;
    overflow-y: auto; box-shadow: 0 24px 48px rgba(0,0,0,0.15);
}
.pos-modal-wide { width: 600px; }
.pos-modal-lg { width: 800px; max-height: 90vh; }
.pos-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid #e2e8f0;
}
.pos-modal-header h5 { margin: 0; font-size: 13px; font-weight: 800; }
.pos-modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #94a3b8; }
.pos-modal-close:hover { color: #1e293b; }
.pos-modal-body { padding: 12px 16px; }
.pos-modal-body label { font-size: 10px; font-weight: 700; color: #475569; display: block; margin-bottom: 5px; }

/* ─── Customer Form ─── */
.pos-customer-form { padding: 4px 0; }
.pos-customer-form h6 { margin: 0; }
.pos-cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pos-cf-field-full { grid-column: 1 / -1; }
.pos-cf-field label { font-size: 10px; font-weight: 700; color: #475569; display: block; margin-bottom: 4px; }
.pos-cf-actions { display: flex; gap: 8px; justify-content: flex-end; }
.pos-cr-info { flex: 1; cursor: pointer; }
.pos-cr-edit { width: 24px; height: 24px; border: none; border-radius: 4px; background: #f1f5f9; color: #64748b; cursor: pointer; font-size: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; align-self: flex-start; margin-top: 2px; }
.pos-cr-edit:hover { background: #e0f2fe; color: #0284c7; }
.pos-customer-addnew { margin-top: 8px; }
.pos-customer-result { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f1f5f9; }
.pos-customer-result:last-child { border-bottom: none; }

.pos-input {
    width: 100%; padding: 7px 10px; border: 1px solid #e2e8f0;
    border-radius: 7px; font-size: 12px; outline: none;
}
.pos-input:focus { border-color: #0ea5e9; }

.pos-table { width: 100%; font-size: 10px; border-collapse: collapse; }
.pos-table th { text-align: left; padding: 6px 5px; background: #f8fafc; font-weight: 700; color: #475569; border-bottom: 1px solid #e2e8f0; }
.pos-table td { padding: 6px 5px; border-bottom: 1px solid #f1f5f9; }

.pos-return-search { display: flex; gap: 6px; }
.pos-return-detail { margin-top: 10px; padding: 10px; background: #f8fafc; border-radius: 8px; }
.pos-return-detail p { margin: 0 0 4px; font-size: 11px; }

/* ─── Splash Screen ─── */
#ncs-splash {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(2px);
}
#ncs-splash.splash-fade-out {
    pointer-events: none;
}
#ncs-splash.splash-fade-out .splash-card {
    animation: splash-card-out 0.6s ease-in forwards;
}
.splash-card {
    background: #fff; border-radius: 24px; padding: 0;
    width: 380px; max-width: 90vw;
    box-shadow:
        0 0 0 1px rgba(14,165,233,0.08),
        0 0 0 1px rgba(16,185,129,0.08),
        0 24px 80px rgba(14,165,233,0.12),
        0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    animation: splash-card-in 0.6s cubic-bezier(0.16,1,0.3,1);
    position: relative;
}
.splash-card::before {
    content: ''; display: block; height: 4px;
    background: linear-gradient(90deg, #0284c7, #0ea5e9, #10b981, #059669);
}
.splash-card::after {
    content: '+'; position: absolute; font-size: 280px; font-weight: 100;
    color: rgba(14,165,233,0.05); right: -50px; bottom: -70px;
    line-height: 1; pointer-events: none; font-family: serif;
    transform: rotate(15deg);
}
.splash-inner {
    text-align: center; display: flex; flex-direction: column;
    align-items: center; gap: 6px; padding: 30px 36px 26px;
    position: relative; z-index: 1;
}
.splash-inner::after {
    content: '+'; position: absolute; font-size: 160px; font-weight: 100;
    color: rgba(16,185,129,0.05); left: -30px; top: -20px;
    line-height: 1; pointer-events: none; font-family: serif;
    transform: rotate(-10deg);
}
.splash-icon-wrap {
    position: relative; width: 96px; height: 96px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 6px;
}
.splash-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid #0ea5e9; animation: splash-pulse 2.5s ease-out infinite;
    opacity: 0.35;
}
.splash-ring-2 {
    border-color: #10b981; animation-delay: 0.8s; opacity: 0.2;
}
.splash-logo {
    width: 56px; height: 56px; object-fit: contain;
    animation: splash-float 3s ease-in-out infinite;
    z-index: 1; filter: drop-shadow(0 4px 20px rgba(14,165,233,0.2));
}
.splash-title {
    font-size: 26px; font-weight: 800; margin: 0; line-height: 1.2;
    background: linear-gradient(135deg, #0284c7, #059669);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; letter-spacing: -0.3px;
}
.splash-subtitle {
    margin: 0; font-size: 13px; color: #334155; font-weight: 600;
}
.splash-divider {
    width: 44px; height: 3px; border-radius: 3px;
    background: linear-gradient(90deg, #0ea5e9, #10b981); margin: 10px 0;
    box-shadow: 0 0 10px rgba(14,165,233,0.15);
}
.splash-contact {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; font-size: 12px; color: #1e293b; font-weight: 600;
}
.splash-contact span { display: flex; align-items: center; gap: 6px; }
.splash-contact i { font-size: 13px; color: #0ea5e9; }
.splash-dots {
    display: flex; gap: 8px; margin-top: 10px;
}
.splash-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #0ea5e9; animation: splash-bounce 1.4s ease-in-out infinite;
}
.splash-dot:nth-child(2) { animation-delay: 0.2s; background: #10b981; }
.splash-dot:nth-child(3) { animation-delay: 0.4s; background: #059669; }

@keyframes splash-overlay-in {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes splash-card-in {
    from { opacity: 0; transform: scale(0.85) translateY(30px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes splash-card-out {
    from { opacity: 1; transform: scale(1) translateY(0); }
    to { opacity: 0; transform: scale(0.9) translateY(-20px); }
}
@keyframes splash-pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.25); opacity: 0.15; }
    100% { transform: scale(1.5); opacity: 0; }
}
@keyframes splash-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes splash-bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.pos-customer-search { display: flex; gap: 8px; }
.pos-customer-results { margin-top: 8px; max-height: 200px; overflow-y: auto; }
.pos-customer-result {
    padding: 8px 12px; cursor: pointer; border-radius: 8px;
    border: 1px solid #f1f5f9; margin-bottom: 4px;
}
.pos-customer-result:hover { background: #f0f9ff; border-color: #0ea5e9; }

/* ─── Sales Print ─── */
@media print {
    body * { visibility: hidden; }
    #print-area, #print-area * { visibility: visible; }
    #print-area { position: fixed; inset: 0; padding: 20px; background: #fff; }
    .sales-modal-overlay, .sales-modal { background: none !important; box-shadow: none !important; border: none !important; }
    .sales-modal-header, .sales-modal-footer, .sales-modal-close { display: none !important; }
    .sales-modal-body { padding: 20px !important; overflow: visible !important; }
}

/* ─── Report Pages ─── */
.report-page { padding: 1.5rem 2rem; }
.report-header {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.report-heading { font-size: 1.4rem; font-weight: 600; margin: 0; display: flex; align-items: center; gap: .5rem; }
.report-subtitle { font-size: .8rem; color: #6c757d; }
.report-header-right { display: flex; align-items: center; gap: .5rem; }
.report-date-picker { display: flex; align-items: center; gap: .5rem; }
.report-date-picker input,
.report-date-picker select { border-radius: 8px; border: 1px solid #dee2e6; padding: .3rem .6rem; min-width: 160px; }
.report-empty {
    text-align: center; padding: 4rem 2rem; color: #6c757d;
}
.report-empty i { font-size: 3rem; display: block; margin-bottom: 1rem; color: #dee2e6; }
.stat-card .card-body { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; }
.stat-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    flex-shrink: 0;
}
.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: .8rem; color: #6c757d; }
.stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.payment-badge { padding: .15rem .5rem; border-radius: 20px; font-size: .75rem; font-weight: 500; }
.mode-cash { background: #d1fae5; color: #065f46; }
.mode-upi { background: #dbeafe; color: #1e40af; }
.mode-card { background: #f3e8ff; color: #6b21a8; }
.mode-credit { background: #fef3c7; color: #92400e; }
.mode-return { background: #fce4ec; color: #b71c1c; }

/* ─── Expiry Report ─── */
.expiry-expired { background: #fef2f2; }
.expiry-critical { background: #fff7ed; }
.expiry-warning { background: #fffbeb; }
.expiry-attention { background: #fefce8; }
.expiry-badge { padding: .15rem .5rem; border-radius: 20px; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.expiry-badge-expired { background: #fecaca; color: #991b1b; }
.expiry-badge-critical { background: #fed7aa; color: #9a3412; }
.expiry-badge-warning { background: #fde68a; color: #92400e; }
.expiry-badge-attention { background: #fef08a; color: #854d0e; }
.expiry-badge-safe { background: #d1fae5; color: #065f46; }
.lowstock-zero { background: #fef2f2; }
.border-start { border-left-style: solid !important; }

/* ─── Ledger ─── */
.ledger-type { padding: .1rem .45rem; border-radius: 4px; font-size: .75rem; font-weight: 500; }
.type-sale { background: #dbeafe; color: #1e40af; }
.type-payment { background: #d1fae5; color: #065f46; }
.type-salereturn { background: #fef3c7; color: #92400e; }
.type-adjustment { background: #f3e8ff; color: #6b21a8; }
.type-openingbalance { background: #f1f5f9; color: #334155; }

/* ─── Auth Layout ─── */
.auth-layout { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%); padding: .75rem; }
.auth-container { width: 100%; max-width: 390px; }
.auth-card { background: #fff; border-radius: 14px; box-shadow: 0 4px 24px rgba(0,0,0,.08); overflow: hidden; }
.auth-header { text-align: center; padding: 1.25rem 1.5rem .5rem; }
.auth-logo { width: 42px; height: 42px; margin-bottom: .35rem; }
.auth-header h2 { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin: 0; }
.auth-subtitle { font-size: .75rem; color: #64748b; margin: .15rem 0 0; }
.auth-body { padding: 0 1.5rem; }
.auth-footer { text-align: center; padding: .75rem 1.5rem; color: #94a3b8; font-size: .7rem; }
.auth-form { padding-bottom: .25rem; }
.auth-form-title { font-size: .95rem; font-weight: 600; color: #1e293b; margin: 0 0 .1rem; }
.auth-form-desc { font-size: .75rem; color: #64748b; margin: 0 0 .75rem; }
.auth-field { margin-bottom: .65rem; }
.auth-field label { display: block; font-size: .75rem; font-weight: 500; color: #475569; margin-bottom: .2rem; }
.auth-input-wrap { position: relative; }
.auth-input-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: .85rem; }
.auth-input { width: 100%; padding: .5rem 2rem .5rem 1.85rem; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: .85rem; color: #1e293b; background: #f8fafc; transition: border-color .2s; }
.auth-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: .9rem; cursor: pointer; padding: 4px; user-select: none; }
.auth-eye:hover { color: #3b82f6; }
.auth-input:focus { outline: none; border-color: #3b82f6; background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.auth-alert { padding: .45rem .65rem; border-radius: 8px; font-size: .78rem; margin-bottom: .65rem; display: flex; align-items: center; gap: .4rem; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.auth-btn-primary { width: 100%; padding: .55rem; border: none; border-radius: 8px; font-size: .85rem; font-weight: 600; color: #fff; background: #3b82f6; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; }
.auth-btn-primary:hover { background: #2563eb; }
.auth-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.auth-bottom-text { text-align: center; font-size: .78rem; color: #64748b; margin: .65rem 0 0; }
.auth-link { color: #3b82f6; text-decoration: none; font-weight: 500; }
.auth-link:hover { text-decoration: underline; }
.user-badge { font-size: .8rem; color: #475569; font-weight: 500; }
.auth-divider { display: flex; align-items: center; margin: .6rem 0; color: #94a3b8; font-size: .75rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid #e2e8f0; }
.auth-divider span { padding: 0 .65rem; }
.auth-btn-secondary { display: flex; align-items: center; justify-content: center; width: 100%; padding: .5rem; border: 1.5px solid #e2e8f0; border-radius: 8px; font-size: .82rem; font-weight: 500; color: #475569; background: #fff; cursor: pointer; transition: all .2s; text-decoration: none; }
.auth-btn-secondary:hover { border-color: #3b82f6; color: #3b82f6; background: #f8faff; }
