:root{--brand-deep-blue: #1a237e;--brand-indigo: #3949ab;--brand-light-indigo: #e8eaf6;--brand-muted-blue: #5c6bc0;--brand-label: #7c8db5;--page-bg: linear-gradient(135deg, #f0f2f8 0%, #e8ecf4 50%, #f5f6fa 100%);--page-bg-flat: #f0f2f8;--card-bg: #ffffff;--card-radius: 18px;--card-radius-sm: 12px;--card-shadow: 0 4px 16px rgba(0, 0, 0, .04), 0 1px 3px rgba(0, 0, 0, .03);--card-shadow-hover: 0 12px 32px rgba(0, 0, 0, .1), 0 4px 8px rgba(0, 0, 0, .04);--card-border: 1px solid #e8ecf4;--color-success: #4caf50;--color-success-dark: #2e7d32;--color-success-bg: #e8f5e9;--color-warning: #ff9800;--color-warning-dark: #ef6c00;--color-warning-bg: #fff3e0;--color-danger: #f44336;--color-danger-dark: #c62828;--color-danger-bg: #ffebee;--color-info: #1976d2;--color-info-dark: #1565c0;--color-info-bg: #e3f2fd;--font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;--heading-color: var(--brand-deep-blue);--text-primary: #1e293b;--text-secondary: #64748b;--text-muted: #94a3b8;--transition-base: all .3s cubic-bezier(.4, 0, .2, 1);--transition-fast: all .2s ease}body{margin:0;font-family:var(--font-family);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:var(--page-bg);background-color:var(--page-bg-flat)}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}*{box-sizing:border-box}html,body,#root{height:100%}@keyframes fadeInUp{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInLeft{0%{opacity:0;transform:translate(-16px)}to{opacity:1;transform:translate(0)}}.btn-primary,.btn-secondary{padding:10px 20px;border-radius:12px;font-weight:600;cursor:pointer;transition:var(--transition-base);border:none;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:var(--font-family);text-decoration:none}.btn-primary{background:linear-gradient(135deg,var(--brand-deep-blue) 0%,var(--brand-indigo) 100%);color:#fff!important;box-shadow:0 4px 14px #1a237e4d}.btn-secondary{background:#fff;color:var(--brand-indigo);border:2px solid #c5cae9}.btn-secondary:hover{background:var(--brand-light-indigo);border-color:#7986cb;transform:translateY(-2px);box-shadow:0 4px 12px #3949ab26}.page-container{padding:28px 32px;width:100%;margin:0;min-height:calc(100vh - 64px);background:var(--page-bg);animation:fadeInUp .4s ease-out}.page-header-title{font-size:30px;font-weight:800;color:transparent;margin:0;letter-spacing:-.8px;line-height:1.1;background:linear-gradient(135deg,var(--brand-deep-blue) 0%,var(--brand-indigo) 100%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.premium-card{background:var(--card-bg);border-radius:var(--card-radius);box-shadow:var(--card-shadow);border:var(--card-border);transition:var(--transition-base)}.premium-card:hover{box-shadow:var(--card-shadow-hover);transform:translateY(-2px)}.global-spinner{width:44px;height:44px;border:3px solid var(--brand-light-indigo);border-top-color:var(--brand-indigo);border-radius:50%;animation:spin .8s linear infinite}@media print{@page{size:A4;margin:0!important;padding:0!important}*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}html,body{margin:0!important;padding:0!important;width:100%!important;height:100%!important}body *{visibility:hidden!important}.print-only,.print-only *{visibility:visible!important}.print-only{z-index:9999!important}.no-print{display:none!important}.print-root{font-family:Arial,Helvetica,sans-serif;color:#000;box-sizing:border-box!important;overflow:visible!important}.print-header{border-bottom:2px solid #999;padding-bottom:6px!important;margin-bottom:8px!important}.print-section{margin-bottom:15px!important}.section-title{font-weight:700;margin-bottom:6px!important;font-size:16px}.row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.col{font-size:14px}.test-list{background:#fff;border:1px solid #ccc;padding:8px;font-size:14px;margin:0;white-space:pre-wrap}.rx-table{width:100%;border-collapse:collapse;font-size:14px}.rx-table th,.rx-table td{border:1px solid #999;padding:6px 8px}.rx-table thead th{background:#f0f0f0;font-weight:700}.print-footer{display:flex;justify-content:space-between;align-items:center;margin-top:20px;border-top:2px solid #999;padding-top:12px;font-size:14px}.signature{font-weight:600}@page :first{margin:0!important}@page :left{margin:0!important}@page :right{margin:0!important}*{-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important}}@media screen{.print-only{display:none!important}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInLeft{0%{opacity:0;transform:translate(-20px)}to{opacity:1;transform:translate(0)}}@keyframes pulseGlow{0%,to{box-shadow:0 0 #4caf504d}50%{box-shadow:0 0 20px 4px #4caf5026}}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}@keyframes countUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.pharmacy-dashboard{padding:28px 32px;width:100%;margin:0;min-height:calc(100vh - 64px);background:linear-gradient(135deg,#f0f2f8,#e8ecf4,#f5f6fa);animation:fadeInUp .5s ease-out}.dashboard-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:32px;animation:fadeInUp .4s ease-out}.header-left{display:flex;flex-direction:column;gap:6px}.header-greeting{font-size:14px;font-weight:500;color:#7c8db5;letter-spacing:.3px;display:flex;align-items:center;gap:8px}.header-greeting .greeting-emoji{font-size:18px}.dashboard-header h1{font-size:30px;font-weight:800;color:#1a237e;margin:0;letter-spacing:-.8px;line-height:1.1;background:linear-gradient(135deg,#1a237e,#3949ab);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.header-date-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 14px;background:#1a237e14;border-radius:20px;font-size:12px;font-weight:600;color:#3949ab;margin-top:4px;width:fit-content}.quick-actions{display:flex;gap:12px;align-items:center}.btn-primary{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;background:linear-gradient(135deg,#1a237e,#3949ab);color:#fff;border:none;border-radius:12px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);box-shadow:0 4px 14px #1a237e4d}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 24px #1a237e66}.btn-primary:active{transform:translateY(0)}.btn-secondary{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;background:#fff;color:#3949ab;border:2px solid #c5cae9;border-radius:12px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1)}.btn-secondary:hover{background:#e8eaf6;border-color:#7986cb;transform:translateY(-2px);box-shadow:0 4px 12px #3949ab26}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:28px}.stat-card{position:relative;border-radius:18px;padding:24px;display:flex;align-items:center;gap:18px;overflow:hidden;transition:all .35s cubic-bezier(.4,0,.2,1);animation:fadeInUp .5s ease-out both;border:1px solid rgba(255,255,255,.6);background:#fff;box-shadow:0 4px 16px #0000000a,0 1px 3px #00000008}.stat-card:before{content:"";position:absolute;top:0;left:0;width:5px;height:100%;border-radius:18px 0 0 18px;background:#1a237e;transition:width .3s ease}.stat-card:nth-child(1){animation-delay:.05s}.stat-card:nth-child(2){animation-delay:.1s}.stat-card:nth-child(3){animation-delay:.15s}.stat-card:nth-child(4){animation-delay:.2s}.stat-card:hover{transform:translateY(-4px);box-shadow:0 12px 32px #0000001a,0 4px 8px #0000000a}.stat-card:hover:before{width:6px}.stat-card.brand{background:linear-gradient(135deg,#eef0ff,#fff)}.stat-card.brand:before{background:linear-gradient(180deg,#1a237e,#3949ab)}.stat-card.brand .stat-icon{color:#1a237e;background:#1a237e1a}.stat-card.warning{background:linear-gradient(135deg,#fff8e1,#fff)}.stat-card.warning:before{background:linear-gradient(180deg,#f9a825,#ff8f00)}.stat-card.warning .stat-icon{color:#f57f17;background:#ffa0001f}.stat-card.danger{background:linear-gradient(135deg,#fce4ec,#fff)}.stat-card.danger:before{background:linear-gradient(180deg,#e53935,#c62828)}.stat-card.danger .stat-icon{color:#c62828;background:#c628281a}.stat-card.expiring{background:linear-gradient(135deg,#fff3e0,#fff)}.stat-card.expiring:before{background:linear-gradient(180deg,#ef6c00,#e65100)}.stat-card.expiring .stat-icon{color:#ef6c00;background:#ef6c001a}.stat-icon{width:52px;height:52px;display:flex;align-items:center;justify-content:center;border-radius:14px;font-size:24px;flex-shrink:0;transition:transform .3s ease;color:#1a237e;background:#1a237e14}.stat-card:hover .stat-icon{transform:scale(1.08)}.stat-content{display:flex;flex-direction:column;min-width:0}.stat-value{font-size:30px;font-weight:800;color:#1a237e;line-height:1.15;animation:countUp .6s ease-out both;letter-spacing:-.5px}.stat-label{font-size:13px;color:#7c8db5;margin-top:4px;font-weight:600;letter-spacing:.2px}.sales-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:32px}.stat-card.success{background:linear-gradient(135deg,#e8f5e9,#f1f8e9 60%,#fff);border:1px solid rgba(76,175,80,.2);animation:pulseGlow 3s ease-in-out infinite}.stat-card.success:before{background:linear-gradient(180deg,#43a047,#2e7d32)}.stat-card.success .stat-icon{color:#2e7d32;background:#2e7d321f}.stat-card.success .stat-value{color:#1b5e20}.stat-card.success .stat-label{color:#4caf50}.stat-card.info{background:linear-gradient(135deg,#e3f2fd,#e8eaf6 60%,#fff);border:1px solid rgba(25,118,210,.15)}.stat-card.info:before{background:linear-gradient(180deg,#1976d2,#1565c0)}.stat-card.info .stat-icon{color:#1565c0;background:#1565c01a}.stat-card.info .stat-value{color:#0d47a1}.stat-card.info .stat-label{color:#42a5f5}.stat-card.stock-value{background:linear-gradient(135deg,#ede7f6,#f3e5f5 60%,#fff);border:1px solid rgba(103,58,183,.15)}.stat-card.stock-value:before{background:linear-gradient(180deg,#7e57c2,#5e35b1)}.stat-card.stock-value .stat-icon{color:#5e35b1;background:#5e35b11a}.stat-card.stock-value .stat-value{color:#4527a0}.stat-card.stock-value .stat-label{color:#9575cd}.stat-card.large{padding:28px}.stat-card.large .stat-value{font-size:34px;font-weight:800}.quick-actions-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px;margin-bottom:32px;animation:fadeInUp .6s ease-out .3s both}.quick-action-tile{display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px 12px;background:#fff;border-radius:16px;border:1px solid #e8ecf4;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);text-decoration:none;box-shadow:0 2px 8px #00000008}.quick-action-tile:hover{transform:translateY(-4px);box-shadow:0 8px 24px #1a237e1f;border-color:#c5cae9}.quick-action-tile .tile-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:12px;transition:all .3s ease}.quick-action-tile:hover .tile-icon{transform:scale(1.1)}.quick-action-tile.tile-sales .tile-icon{background:#e3f2fd;color:#1565c0}.quick-action-tile.tile-sales:hover{border-color:#90caf9;background:#f5f9ff}.quick-action-tile.tile-purchase .tile-icon{background:#e8f5e9;color:#2e7d32}.quick-action-tile.tile-purchase:hover{border-color:#a5d6a7;background:#f5faf5}.quick-action-tile.tile-stock .tile-icon{background:#fff3e0;color:#ef6c00}.quick-action-tile.tile-stock:hover{border-color:#ffcc80;background:#fffaf5}.quick-action-tile.tile-master .tile-icon{background:#ede7f6;color:#5e35b1}.quick-action-tile.tile-master:hover{border-color:#b39ddb;background:#faf8ff}.quick-action-tile.tile-reports .tile-icon{background:#e0f2f1;color:#00695c}.quick-action-tile.tile-reports:hover{border-color:#80cbc4;background:#f5fcfb}.quick-action-tile.tile-returns .tile-icon{background:#fce4ec;color:#c62828}.quick-action-tile.tile-returns:hover{border-color:#ef9a9a;background:#fff5f7}.quick-action-tile .tile-label{font-size:12px;font-weight:600;color:#5c6b8a;text-align:center;line-height:1.3}.quick-action-tile:hover .tile-label{color:#1a237e}.section-title{display:flex;align-items:center;gap:10px;margin-bottom:18px;animation:slideInLeft .5s ease-out both}.section-title h2{font-size:18px;font-weight:700;color:#1a237e;margin:0;letter-spacing:-.3px}.section-title .section-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;background:#1a237e14;color:#3949ab}.alerts-section{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;animation:fadeInUp .6s ease-out .35s both}.alert-card{background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 4px 16px #0000000a,0 1px 3px #00000008;border:1px solid #e8ecf4;transition:all .3s ease}.alert-card:hover{box-shadow:0 8px 24px #00000014}.alert-header{padding:16px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(0,0,0,.04)}.alert-header h3{font-size:15px;font-weight:700;margin:0;display:flex;align-items:center;gap:8px}.alert-header.warning{background:linear-gradient(135deg,#fff8e1,#fff3e0);color:#ef6c00}.alert-header.warning h3{color:#e65100}.alert-header.danger{background:linear-gradient(135deg,#fce4ec,#ffebee);color:#c62828}.alert-header.danger h3{color:#b71c1c}.alert-badge{padding:4px 10px;border-radius:20px;font-size:11px;font-weight:700;letter-spacing:.3px;text-transform:uppercase}.alert-badge.critical{background:#ffcdd2;color:#b71c1c}.alert-badge.caution{background:#ffe0b2;color:#e65100}.btn-view-all{padding:6px 14px;border-radius:8px;border:none;font-size:12px;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:4px}.alert-header.warning .btn-view-all{background:#ef6c001f;color:#ef6c00}.alert-header.warning .btn-view-all:hover{background:#ef6c0033}.alert-header.danger .btn-view-all{background:#c628281a;color:#c62828}.alert-header.danger .btn-view-all:hover{background:#c628282e}.alert-content{padding:0;max-height:340px;overflow-y:auto}.alert-content::-webkit-scrollbar{width:4px}.alert-content::-webkit-scrollbar-thumb{background:#d0d5dd;border-radius:4px}.alert-content ul{list-style:none;padding:0;margin:0}.alert-content li{display:flex;justify-content:space-between;align-items:center;padding:14px 24px;border-bottom:1px solid #f0f2f8;transition:all .2s ease}.alert-content li:hover{background:#f8f9fc}.alert-content li:last-child{border-bottom:none}.item-name{font-weight:600;color:#1e293b;font-size:14px}.item-detail{display:flex;flex-direction:column;gap:2px}.item-batch{font-size:11px;color:#94a3b8;font-weight:500}.item-stock.critical{color:#c62828;font-weight:700;background:linear-gradient(135deg,#ffebee,#ffcdd2);padding:4px 12px;border-radius:20px;font-size:12px;white-space:nowrap}.item-expiry{color:#e65100;font-weight:700;background:linear-gradient(135deg,#fff3e0,#ffe0b2);padding:4px 12px;border-radius:20px;font-size:12px;white-space:nowrap;display:flex;align-items:center;gap:4px}.expiry-days{font-size:10px;font-weight:600;color:#bf360c;opacity:.8}.no-items{color:#94a3b8;text-align:center;padding:40px 24px;font-size:14px;font-weight:500;background:#f8f9fc;display:flex;flex-direction:column;align-items:center;gap:8px}.no-items-emoji{font-size:28px;opacity:.6}.error-message,.error-banner{background:linear-gradient(135deg,#ffebee,#fce4ec);color:#c62828;padding:16px 20px;border-radius:12px;margin-bottom:20px;border:1px solid #ffcdd2;display:flex;align-items:center;gap:10px;font-weight:500;animation:fadeInUp .3s ease-out}.loading{text-align:center;padding:80px 40px;display:flex;flex-direction:column;align-items:center;gap:16px}.loading-spinner{width:44px;height:44px;border:3px solid #e8eaf6;border-top-color:#3949ab;border-radius:50%;animation:spin .8s linear infinite}.loading-text{color:#3949ab;font-size:15px;font-weight:600;letter-spacing:.2px}@media (max-width: 1200px){.stats-grid,.sales-stats{grid-template-columns:repeat(2,1fr)}.quick-actions-grid{grid-template-columns:repeat(4,1fr)}}@media (max-width: 900px){.pharmacy-dashboard{padding:20px 16px}.quick-actions-grid{grid-template-columns:repeat(3,1fr)}}@media (max-width: 768px){.dashboard-header{flex-direction:column;gap:16px;align-items:flex-start}.quick-actions{width:100%;flex-wrap:wrap}.btn-primary,.btn-secondary{flex:1;justify-content:center}.stats-grid,.sales-stats,.alerts-section{grid-template-columns:1fr}.quick-actions-grid{grid-template-columns:repeat(3,1fr)}.stat-card.large .stat-value{font-size:26px}}.pharmacy-master-layout{padding:24px;width:100%;margin:0;min-height:calc(100vh - 64px);background:#f5f5f5;display:flex;flex-direction:column}.pharmacy-tabs{display:flex;gap:8px;margin-bottom:24px;border-bottom:1px solid #e0e0e0;overflow-x:auto;white-space:nowrap;padding-bottom:1px;-webkit-overflow-scrolling:touch;scrollbar-width:none}.pharmacy-tabs::-webkit-scrollbar{display:none}.tab-btn{padding:12px 24px;cursor:pointer;border:none;background:transparent;color:#64748b;font-size:14px;font-weight:600;border-radius:8px 8px 0 0;transition:all .2s ease;position:relative;flex-shrink:0}.tab-btn:hover{background:#f1f5f9;color:#1e293b}.tab-btn.active{background:#fff;color:#0ea5e9;border-bottom:2px solid #0ea5e9}.invoice-print-container{display:none}@media print{body *{visibility:hidden}.invoice-print-container,.invoice-print-container *{visibility:visible}.invoice-print-container{display:block;position:absolute;left:0;top:0;width:100%;padding:40px;background:#fff;color:#000;font-family:Inter,sans-serif}.invoice-header{display:flex;justify-content:space-between;border-bottom:2px solid #1e293b;padding-bottom:20px;margin-bottom:30px}.invoice-hospital-info h2{font-size:24px;font-weight:700;margin:0 0 5px;color:#0f172a}.invoice-hospital-info p{margin:2px 0;font-size:12px;color:#475569}.invoice-title{text-align:right}.invoice-title h1{font-size:28px;margin:0 0 10px;color:#0f172a;letter-spacing:2px}.invoice-meta{font-size:12px}.invoice-meta div{margin-bottom:4px}.invoice-patient-info{margin-bottom:30px}.info-box h3{font-size:14px;border-bottom:1px solid #e2e8f0;padding-bottom:5px;margin-bottom:10px;color:#0f172a}.info-box p{margin:4px 0;font-size:13px}.invoice-items-table{width:100%;border-collapse:collapse;margin-bottom:30px}.invoice-items-table th{background-color:#f1f5f9!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;padding:10px;text-align:left;font-size:12px;border-bottom:2px solid #cbd5e1}.invoice-items-table td{padding:10px;font-size:12px;border-bottom:1px solid #e2e8f0}.text-right{text-align:right!important}.invoice-summary{display:flex;justify-content:space-between;margin-bottom:50px}.summary-notes{width:50%}.summary-notes h4{font-size:13px;margin-bottom:5px}.summary-notes p{font-size:11px;color:#64748b;margin:2px 0}.summary-totals{width:35%}.summary-row{display:flex;justify-content:space-between;padding:6px 0;font-size:13px}.summary-row.grand-total{font-size:16px;font-weight:700;border-top:2px solid #1e293b;padding-top:10px;margin-top:5px}.invoice-footer{margin-top:60px}.signatures{display:flex;justify-content:space-between;margin-bottom:30px}.signature-box{text-align:center;width:200px}.signature-box p{margin:0;font-size:12px;border-top:1px solid #000;padding-top:5px}.auth-sign{border-top:none!important;font-size:10px!important;color:#64748b}.thank-you{text-align:center;font-size:13px;font-weight:600;color:#0f172a;margin-top:40px}}.pharmacy-sales{padding:28px 32px;width:100%;margin:0;min-height:calc(100vh - 64px);background:var(--page-bg, linear-gradient(135deg, #f0f2f8 0%, #e8ecf4 50%, #f5f6fa 100%));animation:fadeInUp .4s ease-out}.sales-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.sales-header h1{font-size:30px;font-weight:800;margin:0;letter-spacing:-.8px;line-height:1.1;background:linear-gradient(135deg,#1a237e,#3949ab);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.header-title{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.subtitle{margin:0;font-size:14px;color:#64748b;font-weight:400}.date-filter{display:flex;gap:8px;margin-bottom:24px}.date-filter button{padding:10px 20px;border:1px solid #e0e0e0;background:#fff;border-radius:8px;cursor:pointer;font-weight:500;color:#5c6bc0;transition:all .2s}.date-filter button.active,.date-filter button:hover{background:#e8eaf6;color:#1a237e;border-color:#1a237e;font-weight:600}.sales-table-container{background:#fff;border-radius:16px;overflow:auto;box-shadow:0 4px 12px #0000000d;border:1px solid #e0e0e0;height:calc(100vh - 280px);padding-bottom:20px}.sales-table{width:100%;border-collapse:collapse;min-width:800px}.sales-table th{background:#f8f9fa;padding:14px 16px;text-align:left;font-weight:600;color:#1a237e;font-size:13px;text-transform:uppercase;border-bottom:2px solid #e0e0e0;position:sticky;top:0;z-index:10}.sales-table td{padding:14px 16px;border-bottom:1px solid #f0f4f8;color:#263238}.sales-table tr:hover{background:#f8f9fa}.sales-table tr.cancelled{opacity:.6;background:#fff5f5}.payment-badge{padding:4px 10px;border-radius:12px;font-size:12px;text-transform:capitalize;background:#e2e8f0}.payment-badge.paid{background:#e8f5e9;color:#2e7d32;font-weight:600}.payment-badge.pending{background:#fff3e0;color:#ef6c00;font-weight:600}.status-badge{padding:4px 10px;border-radius:12px;font-size:12px}.status-badge.completed{background:#e8f5e9;color:#2e7d32;font-weight:600}.status-badge.cancelled{background:#ffebee;color:#c62828;font-weight:600}.btn-cancel-sale{padding:6px 12px;background:#fff3e0;color:#ef6c00;border:none;border-radius:6px;cursor:pointer;font-size:12px;font-weight:500}.btn-cancel-sale:hover{background:#ffe0b2;color:#e65100}.billing-modal{background:#fff;border-radius:16px;max-width:900px;width:100%;max-height:90vh;overflow-y:auto;box-shadow:0 10px 40px #0000001a}.billing-content{padding:24px}.item-search-section{position:relative;margin-bottom:20px}.item-search{width:100%;padding:14px 16px;border:2px solid #e0e0e0;border-radius:8px;font-size:15px;transition:all .2s}.item-search:focus{outline:none;border-color:#ff9800;box-shadow:0 0 0 3px #ff98001a}.search-results{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e0e0e0;border-radius:8px;box-shadow:0 4px 12px #0000001a;z-index:10;max-height:300px;overflow-y:auto}.search-result-item{display:flex;justify-content:space-between;padding:12px 16px;cursor:pointer;border-bottom:1px solid #f5f5f5}.search-result-item .item-name{font-weight:500;color:#1a237e}.search-result-item .item-stock{color:#757575;font-size:13px}.search-result-item .item-price{color:#4caf50;font-weight:600}.cart-section{background:#f8f9fa;border-radius:12px;padding:20px;margin-bottom:20px;border:1px solid #e0e0e0}.cart-section h3{margin:0 0 16px;font-size:16px;color:#1a237e;font-weight:600}.empty-cart{text-align:center;color:#9fa8da;padding:20px}.cart-table-container{max-height:400px;overflow-y:auto;border:1px solid #e8eaf6;border-radius:8px;background:#fff}.cart-table{width:100%;border-collapse:separate;border-spacing:0}.cart-table th,.cart-table td{padding:10px;text-align:left;border-bottom:1px solid #f5f5f5}.cart-table th{font-size:12px;color:#5c6bc0;text-transform:uppercase;background:#e8eaf6;position:sticky;top:0;z-index:1;border-bottom:2px solid #c5cae9}.qty-input{width:60px;padding:6px 8px;border:1px solid #e0e0e0;border-radius:6px;text-align:center}.qty-input:focus{border-color:#ff9800;outline:none}.btn-remove{background:#ffebee;color:#c62828;border:none;width:28px;height:28px;border-radius:50%;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center}.btn-remove:hover{background:#ffcdd2}.billing-details{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}.customer-info{display:flex;flex-direction:column;gap:12px}.customer-info input,.customer-info select{padding:12px 14px;border:1px solid #e0e0e0;border-radius:8px;font-size:14px;transition:all .2s}.customer-info input:focus,.customer-info select:focus{border-color:#1a237e;outline:none;box-shadow:0 0 0 2px #1a237e1a}.bill-summary{background:#e8f5e9;padding:20px;border-radius:12px;border:1px solid #c8e6c9}.summary-row{display:flex;justify-content:space-between;padding:8px 0;font-size:14px;color:#2e7d32}.summary-row.total{border-top:2px solid #a5d6a7;margin-top:8px;padding-top:16px;font-size:20px;font-weight:700;color:#1b5e20}.discount-input{width:80px;padding:4px 8px;border:1px solid #a5d6a7;border-radius:4px;text-align:right;background:#fff}@media (max-width: 768px){.billing-details{grid-template-columns:1fr}.date-filter{flex-wrap:wrap}}.patient-search-input-group{display:flex;gap:8px;width:100%}.patient-search-input-group input{flex:1}.btn-search{padding:0 16px;background:#1a237e;color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:500;white-space:nowrap}.btn-search:hover{background:#283593}.patient-suggestions{position:absolute;top:100%;left:0;right:0;background:#fff;box-shadow:0 4px 12px #00000026;z-index:1000;max-height:250px;overflow-y:auto;border-radius:8px;border:1px solid #e0e0e0;margin-top:4px}.suggestion-item{padding:12px 16px;cursor:pointer;border-bottom:1px solid #f5f5f5;transition:background .2s}.suggestion-item:hover{background:#e3f2fd}.suggestion-item strong{display:block;color:#1a237e;font-size:14px}.billing-header-row{display:flex;gap:12px;margin-bottom:20px;align-items:center}.header-input-group{flex:1}.patient-search-group{flex:2}.compact-input{width:100%;padding:10px 12px;border:1px solid #e0e0e0;border-radius:6px;font-size:14px}.compact-input:focus{outline:none;border-color:#1a237e}.patient-search-container{position:relative;width:100%}.billing-footer{display:flex;justify-content:space-between;align-items:center;margin-top:20px;padding-top:20px;border-top:2px solid #f5f5f5}.bill-summary-row{display:flex;gap:32px;align-items:center}.summary-item{display:flex;align-items:center;gap:8px;font-size:16px;color:#546e7a}.summary-item .label{font-weight:500}.summary-item .value{font-weight:600;color:#263238}.summary-item.total{font-size:20px;color:#2e7d32}.summary-item.total .value{color:#2e7d32;font-weight:700}.discount-input{width:80px;padding:6px 8px;border:1px solid #e0e0e0;border-radius:6px;text-align:right;font-size:15px}.action-buttons{display:flex;gap:12px;flex-wrap:nowrap;flex-shrink:0}.btn-cancel{padding:10px 20px;background:#fff3e0;color:#ef6c00;border:none;border-radius:8px;cursor:pointer;font-weight:600}.btn-cancel:hover{background:#ffe0b2}.btn-complete{padding:10px 24px;background:linear-gradient(45deg,#1976d2,#42a5f5);color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:600;box-shadow:0 4px 12px #1976d24d}.btn-complete:disabled{opacity:.7;cursor:not-allowed;background:#cfd8dc;box-shadow:none}.btn-complete:hover:not(:disabled){box-shadow:0 6px 16px #1976d266;transform:translateY(-1px)}.header-actions{display:flex;gap:16px;align-items:center}.modern-search-bar{position:relative;width:380px}.modern-search-bar input{width:100%;padding:12px 16px 12px 48px;border:1px solid #e2e8f0;border-radius:12px;font-size:14px;transition:all .2s;background:#fff;box-shadow:0 2px 4px #00000005}.modern-search-bar input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a;outline:none}.search-icon-overlay{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#94a3b8;pointer-events:none;font-size:18px}.action-buttons{display:flex;gap:8px;flex-wrap:nowrap;flex-shrink:0}.btn-icon-action{width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:8px;border:none;cursor:pointer;transition:all .2s;background:#f1f5f9;color:#64748b}.btn-icon-action:hover{background:#e2e8f0;color:#334155;transform:translateY(-1px)}.btn-icon-action.edit:hover{background:#eff6ff;color:#3b82f6}.btn-icon-action.delete:hover{background:#fef2f2;color:#ef4444}.status-badge{padding:6px 12px;border-radius:20px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;gap:6px}.table-footer{padding:16px;border-top:1px solid #e0e0e0;display:flex;justify-content:flex-end;gap:12px;background:#f8f9fa}.search-bar{position:relative;width:300px}.search-bar input{width:100%;padding:10px 10px 10px 40px;border-radius:24px;border:1px solid #e0e0e0;font-size:14px;background:#fff;transition:all .2s}.search-bar input:focus{background:#fff;border-color:#1a237e;box-shadow:0 0 0 3px #1a237e1a;outline:none}.search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#9fa8da;font-size:14px}.subtitle{font-size:14px;color:#5c6bc0;margin-top:4px}.pagination-controls{display:flex;justify-content:flex-end;align-items:center;padding:16px;gap:16px;border-top:1px solid #e2e8f0;background:#fff;border-bottom-left-radius:12px;border-bottom-right-radius:12px}.pagination-btn{padding:8px 16px;border:1px solid #e2e8f0;background:#fff;border-radius:8px;color:#64748b;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.pagination-btn:hover:not(:disabled){background:#f8fafc;color:#334155;border-color:#cbd5e1}.pagination-btn:disabled{opacity:.5;cursor:not-allowed;background:#f1f5f9}.pagination-info{font-size:14px;color:#64748b;font-weight:500}.alphabet-filter-bar{display:flex;flex-wrap:wrap;gap:4px;padding:12px 16px;background:#fff;border-bottom:1px solid #e2e8f0;align-items:center}.alphabet-btn{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#64748b;font-size:12px;font-weight:600;cursor:pointer;transition:all .2s}.alphabet-btn:hover{background:#f1f5f9;color:#334155;border-color:#cbd5e1}.alphabet-btn.active{background:#3b82f6;color:#fff;border-color:#3b82f6;box-shadow:0 2px 4px #3b82f633}.alphabet-btn.all{width:auto;padding:0 12px}.split-layout{display:flex;flex:1;overflow:hidden;padding:0;background:#f5f5f5}.billing-pane{overflow-y:auto;padding:24px;display:flex;flex-direction:column}.left-pane{flex:0 0 58%;background:#fff;border-right:1px solid #e2e8f0;padding:28px 32px;position:relative}.right-pane{flex:0 0 42%;background:#fafafa;display:flex;flex-direction:column;padding:24px}.billing-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px;padding:20px;background:#fff;border-radius:16px;border:1px solid #e0e0e0;box-shadow:0 2px 4px #00000005}.patient-search-group{grid-column:span 2}.form-group{position:relative}.form-group label{display:block;font-size:11px;font-weight:700;color:#5c6bc0;margin-bottom:8px;text-transform:uppercase;letter-spacing:.05em}.form-input{width:100%;padding:12px 16px;border:2px solid #f5f5f5;border-radius:12px;font-size:14px;font-weight:500;background:#fafafa;color:#1a237e;transition:all .2s ease}.form-input:hover{border-color:#e8eaf6}.form-input:focus{border-color:#ff9800;background:#fff;outline:none;box-shadow:0 0 0 4px #ff98001a}.form-input::placeholder{color:#b0bec5;font-weight:400}.item-selection-area{display:flex;flex-direction:column;flex:1;overflow:hidden}.item-selection-area h3{font-size:13px;font-weight:700;color:#546e7a;text-transform:uppercase;letter-spacing:.05em;margin:0 0 16px;display:flex;align-items:center;gap:8px}.item-selection-area h3:before{content:"";display:inline-block;width:4px;height:16px;background:linear-gradient(180deg,#ff9800,#ffb74d);border-radius:2px}.item-search-wrapper{margin-bottom:16px;position:relative}.item-search-large{width:100%;padding:16px 20px 16px 48px;font-size:15px;font-weight:500;border:2px solid #efefef;border-radius:14px;background:#fff;transition:all .25s ease}.item-search-large:focus{border-color:#ff9800;box-shadow:0 8px 25px #ff98001f;outline:none}.item-search-wrapper:before{content:"🔍";position:absolute;left:18px;top:50%;transform:translateY(-50%);font-size:16px;pointer-events:none}.item-results-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:10px;padding-right:8px}.item-results-list::-webkit-scrollbar{width:6px}.item-results-list::-webkit-scrollbar-thumb{background:#cfd8dc;border-radius:3px}.item-results-list::-webkit-scrollbar-track{background:transparent}.item-card{background:#fff;border:1px solid #f5f5f5;border-radius:14px;padding:14px 18px;cursor:pointer;transition:all .2s ease;display:flex;justify-content:space-between;align-items:center;position:relative;overflow:hidden}.item-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#ff9800,#ffb74d);transform:scaleX(0);transform-origin:left;transition:transform .2s ease}.item-card:hover{border-color:#ffe0b2;box-shadow:0 8px 20px #ff98001f;transform:translateY(-2px)}.item-card:hover:before{transform:scaleX(1)}.item-card:active{transform:translateY(0)}.item-card-header{display:flex;flex-direction:column;gap:4px;flex:1}.item-card .item-name{font-weight:600;color:#1a237e;font-size:14px;line-height:1.3}.item-card .item-price{background:linear-gradient(135deg,#7c3aed,#a855f7);color:#fff;padding:2px 6px;border-radius:4px;font-size:12px;font-weight:700;white-space:nowrap}.item-card-meta{display:flex;justify-content:space-between;font-size:12px;color:#718096}.item-stock.low{color:#e53e3e;font-weight:600}.cart-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.cart-header h3{margin:0;font-size:16px;color:#2d3748}.btn-clear{color:#e53e3e;font-size:12px;background:none;border:none;cursor:pointer;text-decoration:underline}.cart-list-container{flex:1;overflow-y:auto;background:#fff;border-radius:8px;border:1px solid #edf2f7;margin-bottom:16px}.cart-table-modern th{position:sticky;top:0;background:#f7fafc;padding:10px;font-size:11px;text-transform:uppercase;color:#718096;border-bottom:1px solid #edf2f7}.cart-table-modern max-width-cell{max-width:120px}.cart-table-modern td{padding:10px;border-bottom:1px solid #f7fafc;font-size:13px;vertical-align:middle}.cart-item-name{font-weight:500;color:#2d3748;margin-bottom:2px}.cart-item-meta{font-size:11px;color:#a0aec0}.qty-input-modern{width:40px;padding:4px;border:1px solid #e2e8f0;border-radius:4px;text-align:center;font-weight:600}.btn-remove-icon{color:#cbd5e0;background:none;border:none;font-size:18px;cursor:pointer;transition:color .2s}.btn-remove-icon:hover{color:#e53e3e}.text-right{text-align:right}.text-center{text-align:center}.font-bold{font-weight:600}.cart-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding:0 4px}.cart-header h3{margin:0;font-size:15px;font-weight:700;color:#1e293b;display:flex;align-items:center;gap:8px}.cart-header h3:before{content:"";display:inline-block;width:4px;height:18px;background:linear-gradient(180deg,#10b981,#059669);border-radius:2px}.btn-clear{color:#ef4444;font-size:12px;font-weight:600;background:#ef444414;border:none;padding:6px 12px;border-radius:8px;cursor:pointer;transition:all .2s ease}.btn-clear:hover{background:#ef444426}.btn-clear:disabled{opacity:.4;cursor:not-allowed}.cart-list-container{flex:1;overflow-y:auto;background:#fff;border-radius:16px;border:1px solid #e2e8f0;margin-bottom:16px;box-shadow:0 2px 8px #00000008}.cart-list-container::-webkit-scrollbar{width:6px}.cart-list-container::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.cart-table-modern{width:100%;border-collapse:collapse}.cart-table-modern th{position:sticky;top:0;background:linear-gradient(180deg,#f8fafc,#f1f5f9);padding:12px 14px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#64748b;border-bottom:1px solid #e2e8f0}.cart-table-modern td{padding:12px 14px;border-bottom:1px solid #f1f5f9;font-size:13px;vertical-align:middle}.cart-table-modern tr:hover{background:#7c3aed05}.cart-item-name{font-weight:600;color:#1e293b;margin-bottom:3px;font-size:13px}.cart-item-meta{font-size:11px;color:#94a3b8}.qty-input-modern{width:50px;padding:8px 4px;border:2px solid #e2e8f0;border-radius:10px;text-align:center;font-weight:700;font-size:14px;color:#1e293b;background:#f8fafc;transition:all .2s ease}.qty-input-modern:hover{border-color:#cbd5e1}.qty-input-modern:focus{border-color:#7c3aed;background:#fff;outline:none;box-shadow:0 0 0 3px #7c3aed1a}.btn-remove-icon{width:28px;height:28px;display:flex;align-items:center;justify-content:center;color:#94a3b8;background:transparent;border:none;border-radius:8px;font-size:18px;cursor:pointer;transition:all .2s ease}.btn-remove-icon:hover{color:#ef4444;background:#ef444414}.billing-summary-compact{background:linear-gradient(145deg,#fff,#f8fafc);padding:20px;border-radius:16px;border:1px solid #e2e8f0;box-shadow:0 -8px 25px #0000000a}.summary-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:14px;color:#64748b}.summary-row span:last-child{font-weight:600;color:#334155}.summary-row.total{margin-top:16px;padding-top:16px;border-top:2px dashed #e2e8f0;font-size:20px;font-weight:800}.summary-row.total span:first-child{color:#1e293b}.summary-row.total span:last-child{color:#059669;background:linear-gradient(135deg,#10b981,#059669);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.discount-input-compact{width:70px;padding:8px 12px;border:2px solid #e2e8f0;border-radius:10px;text-align:right;font-size:14px;font-weight:600;color:#1e293b;background:#f8fafc;transition:all .2s ease}.discount-input-compact:focus{border-color:#7c3aed;background:#fff;outline:none;box-shadow:0 0 0 3px #7c3aed1a}.btn-complete-large{width:100%;margin-top:20px;padding:16px 24px;background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;border-radius:14px;font-weight:700;font-size:16px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #10b98159;position:relative;overflow:hidden}.btn-complete-large:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.2),transparent);transition:left .5s ease}.btn-complete-large:hover:before{left:100%}.btn-complete-large:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 25px #10b98166}.btn-complete-large:active:not(:disabled){transform:translateY(0)}.btn-complete-large:disabled{background:#94a3b8;cursor:not-allowed;box-shadow:none;transform:none}.empty-cart-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;min-height:200px;color:#94a3b8;padding:40px 20px}.empty-cart-state .icon{font-size:48px;margin-bottom:16px;opacity:.6}.empty-cart-state p{font-size:15px;font-weight:500;margin:0}.empty-search-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#94a3b8;font-size:14px}.no-results{text-align:center;padding:20px;color:#e53e3e;grid-column:1 / -1}.modal-overlay-fullscreen{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a99;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:1400;display:flex;align-items:center;justify-content:center;padding:20px}.pharmacy-modal-fullscreen{background:#fff;border-radius:16px;width:95vw;max-width:1600px;height:92vh;max-height:900px;display:flex;flex-direction:column;box-shadow:0 25px 50px -12px #00000040;overflow:hidden}.modal-header-modern{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;background:#fff;color:#1e293b;border-bottom:1px solid #e2e8f0}.modal-header-modern.purchase,.modal-header-modern.inventory{background:#fff}.modal-header-modern h2{margin:0;font-size:20px;font-weight:700;color:#0f172a;display:flex;align-items:center;gap:12px}.modal-header-modern .header-icon{font-size:24px}.modal-close-btn{background:#f1f5f9;border:none;width:36px;height:36px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.modal-close-btn:hover{background:#ffffff4d;transform:scale(1.05)}.modal-split-content{display:flex;flex:1;overflow:hidden}.modal-pane-left{flex:1.2;display:flex;flex-direction:column;border-right:1px solid #e2e8f0;background:#fff;overflow-y:auto}.modal-pane-right{flex:.8;display:flex;flex-direction:column;background:#f8fafc;overflow:hidden}.form-section{padding:20px 24px;border-bottom:1px solid #f1f5f9}.form-section-title{font-size:13px;font-weight:600;color:#64748b;text-transform:uppercase;letter-spacing:.5px;margin-bottom:16px;display:flex;align-items:center;gap:8px}.form-grid-2col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid-3col{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px}.form-grid-full{grid-column:span 2}.form-field{display:flex;flex-direction:column;gap:6px}.form-field label{font-size:12px;font-weight:600;color:#475569;display:flex;align-items:center;gap:4px}.form-field .required{color:#ef4444}.form-field input,.form-field select{padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;background:#f8fafc;transition:all .2s}.form-field input:focus,.form-field select:focus{outline:none;border-color:#667eea;background:#fff;box-shadow:0 0 0 3px #667eea1a}.form-field input::placeholder{color:#94a3b8}.item-search-section-modern{flex:1;display:flex;flex-direction:column;padding:20px 24px;overflow:hidden}.search-input-wrapper{position:relative;margin-bottom:16px}.search-input-modern{width:100%;padding:14px 16px 14px 44px;border:2px solid #e2e8f0;border-radius:12px;font-size:15px;background:#fff;transition:all .2s}.search-input-modern:focus{outline:none;border-color:#667eea;box-shadow:0 4px 12px #667eea26}.search-input-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:16px}.item-results-grid{flex:1;overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;align-content:start;padding:4px}.item-card-modern{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:14px;cursor:pointer;transition:all .2s;display:flex;flex-direction:column;gap:8px}.item-card-modern:hover{border-color:#667eea;box-shadow:0 4px 12px #667eea26;transform:translateY(-2px)}.item-card-modern .item-name{font-weight:600;font-size:14px;color:#1e293b;line-height:1.3}.item-card-modern .item-details{display:flex;justify-content:space-between;align-items:center;font-size:12px}.item-card-modern .item-price-tag{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:4px 8px;border-radius:6px;font-weight:600;font-size:12px}.item-card-modern .item-stock-tag{color:#64748b}.item-card-modern .item-stock-tag.low{color:#ef4444;font-weight:600}.cart-section-modern{flex:1;display:flex;flex-direction:column;overflow:hidden}.cart-header-modern{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #e2e8f0;background:#fff}.cart-header-modern h3{margin:0;font-size:16px;font-weight:600;color:#1e293b;display:flex;align-items:center;gap:8px}.cart-count-badge{background:#667eea;color:#fff;padding:2px 8px;border-radius:12px;font-size:12px;font-weight:600}.btn-clear-cart{background:none;border:none;color:#ef4444;font-size:13px;cursor:pointer;text-decoration:underline;opacity:.8;transition:opacity .2s}.btn-clear-cart:hover{opacity:1}.cart-items-list{flex:1;overflow-y:auto;padding:12px}.cart-item-row{display:flex;align-items:center;gap:12px;background:#fff;padding:12px;border-radius:10px;margin-bottom:8px;border:1px solid #e2e8f0}.cart-item-info{flex:1;min-width:0}.cart-item-name-modern{font-weight:600;font-size:14px;color:#1e293b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cart-item-meta-modern{font-size:11px;color:#64748b;margin-top:2px}.cart-item-qty{display:flex;align-items:center;gap:4px}.qty-btn{width:28px;height:28px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;color:#64748b;transition:all .2s}.qty-btn:hover{background:#f1f5f9;border-color:#667eea;color:#667eea}.qty-value{width:40px;text-align:center;font-weight:600;font-size:14px}.cart-item-total{font-weight:700;font-size:14px;color:#1e293b;min-width:70px;text-align:right}.btn-remove-item{background:#fef2f2;border:none;color:#ef4444;width:28px;height:28px;border-radius:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .2s}.btn-remove-item:hover{background:#fee2e2}.empty-cart-modern{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#94a3b8;gap:12px}.empty-cart-modern .empty-icon{font-size:48px;opacity:.5}.empty-cart-modern p{margin:0;font-size:14px}.bill-summary-footer{background:#fff;padding:16px 20px;border-top:1px solid #e2e8f0;box-shadow:0 -4px 12px #0000000d}.summary-row-modern{display:flex;justify-content:space-between;align-items:center;padding:6px 0;font-size:13px;color:#64748b}.summary-row-modern.total-row{font-size:18px;font-weight:700;color:#1e293b;padding:12px 0;margin-top:8px;border-top:2px dashed #e2e8f0}.discount-input-modern{width:80px;padding:6px 10px;border:1px solid #e2e8f0;border-radius:6px;text-align:right;font-size:13px}.btn-complete-sale-modern{width:100%;margin-top:16px;padding:16px;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;border:none;border-radius:10px;font-weight:600;font-size:16px;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:8px}.btn-complete-sale-modern:hover{transform:translateY(-1px);box-shadow:0 4px 12px #22c55e4d}.btn-complete-sale-modern:disabled{background:#cbd5e0;cursor:not-allowed;transform:none;box-shadow:none}.suggestions-dropdown-modern{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e2e8f0;border-radius:10px;box-shadow:0 10px 25px #0000001a;z-index:100;max-height:250px;overflow-y:auto;margin-top:4px}.suggestion-item-modern{padding:12px 16px;cursor:pointer;border-bottom:1px solid #f1f5f9;transition:background .2s}.suggestion-item-modern:last-child{border-bottom:none}.suggestion-item-modern:hover{background:#f8fafc}.suggestion-item-modern strong{display:block;font-size:14px;color:#1e293b;margin-bottom:2px}.suggestion-item-modern span{font-size:12px;color:#64748b}.item-entry-form-modern{background:#f8fafc;border-radius:12px;padding:16px;margin-top:16px;border:1px solid #e2e8f0}.item-entry-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.item-entry-header h4{margin:0;font-size:14px;font-weight:600;color:#475569}.selected-item-name{background:#667eea;color:#fff;padding:4px 12px;border-radius:6px;font-size:13px;font-weight:500}.btn-add-to-bill{padding:12px 24px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-weight:600;font-size:14px;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:8px}.btn-add-to-bill:hover{transform:translateY(-1px);box-shadow:0 4px 12px #667eea4d}.btn-add-to-bill:disabled{opacity:.5;cursor:not-allowed;transform:none}.purchase-cart-table{width:100%;border-collapse:collapse}.purchase-cart-table th{background:#f1f5f9;padding:10px 12px;text-align:left;font-size:11px;font-weight:600;color:#64748b;text-transform:uppercase;position:sticky;top:0}.purchase-cart-table td{padding:10px 12px;border-bottom:1px solid #f1f5f9;font-size:13px;vertical-align:middle}.purchase-cart-table tr:hover{background:#f8fafc}@media (max-width: 1024px){.pharmacy-modal-fullscreen{width:calc(100vw - 40px);height:calc(100vh - 40px)}.modal-split-content{flex-direction:column}.modal-pane-left,.modal-pane-right{flex:none;border-right:none}.modal-pane-left{height:60%;border-bottom:1px solid #e2e8f0}.modal-pane-right{height:40%}.form-grid-2col{grid-template-columns:1fr}.form-grid-3col{grid-template-columns:1fr 1fr}}@media (max-width: 640px){.modal-overlay-fullscreen{padding:0}.pharmacy-modal-fullscreen{width:100%;height:100%;max-height:none;border-radius:0}.form-grid-3col,.item-results-grid{grid-template-columns:1fr}}.btn-complete-purchase{width:100%;padding:16px;background:linear-gradient(135deg,#7c3aed,#6d28d9);color:#fff;font-size:1.1rem;font-weight:600;border:none;border-radius:12px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 15px #7c3aed4d}.btn-complete-purchase:hover:not(:disabled){background:linear-gradient(135deg,#6d28d9,#5b21b6);transform:translateY(-2px);box-shadow:0 6px 20px #7c3aed66}.btn-complete-purchase:disabled{background:#9ca3af;cursor:not-allowed;box-shadow:none;transform:none}.tab-navigation{display:flex;gap:4px;margin-bottom:24px;background:#e2e8f0;padding:4px;border-radius:12px;width:fit-content;border:none!important}.tab-btn{padding:8px 16px!important;border-radius:8px;border:none!important;background:transparent!important;color:#64748b!important;font-weight:500!important;cursor:pointer;font-size:14px;transition:all .2s ease;display:flex;align-items:center;gap:8px;margin-bottom:0!important}.tab-btn.active{background:#fff!important;color:#1a237e!important;font-weight:600!important;box-shadow:0 2px 4px #0000000d}.tab-btn:hover:not(.active){background:#ffffff80!important;color:#475569!important}.pharmacy-purchases{padding:28px 32px;width:100%;margin:0;min-height:calc(100vh - 64px);background:var(--page-bg, linear-gradient(135deg, #f0f2f8 0%, #e8ecf4 50%, #f5f6fa 100%));animation:fadeInUp .4s ease-out}.form-section-card{background:#fff;border-radius:12px;padding:20px;margin-bottom:20px;border:1px solid #e2e8f0;box-shadow:0 2px 4px #00000005}.section-title{font-size:15px;font-weight:600;color:#475569;margin-bottom:16px;display:flex;align-items:center;border-bottom:1px solid #f1f5f9;padding-bottom:10px}.form-section-card{background:#fff;border-radius:16px;padding:24px;margin-bottom:24px;border:1px solid #e0e0e0;box-shadow:0 4px 12px #00000008}.section-title{margin:0 0 20px;font-size:17px;font-weight:700;color:#1a237e;display:flex;align-items:center;gap:8px}.form-grid-2col{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.form-grid-3col{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.form-grid-4col{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.form-grid-6col{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.form-group-modern{display:flex;flex-direction:column;gap:8px;min-width:0}.width-compact{max-width:80px}.width-medium{max-width:120px}.form-group-modern label{font-size:12px;font-weight:700;color:#5c6bc0;text-transform:uppercase;letter-spacing:.5px}.btn-add-to-cart{background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;border-radius:12px;font-weight:700;font-size:15px;padding:14px 24px;cursor:pointer;transition:all .25s ease;display:flex;align-items:center;justify-content:center;gap:8px;box-shadow:0 4px 12px #10b98133;min-width:160px;height:51px}.btn-add-to-cart:hover{transform:translateY(-2px);box-shadow:0 6px 15px #10b9814d;filter:brightness(1.1)}.btn-add-to-cart:active{transform:translateY(0)}.required{color:#d32f2f}.form-input-modern,.form-select-modern{padding:14px 18px;border:2px solid #f1f5f9;border-radius:12px;font-size:15px;background:#f8fafc;transition:all .25s ease;color:#1a237e;font-weight:500}.form-input-modern:focus,.form-select-modern:focus{outline:none;border-color:#ff9800;box-shadow:0 0 0 4px #ff98001a;background:#fff}.form-input-modern::placeholder{color:#b0bec5}.item-search-container{position:relative}.search-input-wrapper{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:18px;font-size:18px;z-index:1;color:#90a4ae}.item-search-input{width:100%;padding:18px 18px 18px 50px;border:2px solid #e2e8f0;border-radius:14px;font-size:16px;background:#fff;transition:all .25s ease}.item-search-input:focus{outline:none;border-color:#ff9800;box-shadow:0 0 0 4px #ff98001a}.search-results-dropdown{position:absolute;top:100%;left:0;right:0;background:#fff;border:2px solid #e2e8f0;border-radius:14px;margin-top:8px;max-height:280px;overflow-y:auto;box-shadow:0 10px 40px #0000001a;z-index:100}.search-result-item{padding:16px 20px;cursor:pointer;transition:all .2s ease;border-bottom:1px solid #f1f5f9;position:relative}.search-result-item:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#ff9800,#ffb74d);opacity:0;transition:opacity .2s ease}.search-result-item:hover{background:#fff3e0}.search-result-item:hover:before{opacity:1}.result-item-name{font-weight:700;font-size:15px;color:#1a237e}.result-item-meta{font-size:13px;color:#546e7a}.selected-item-form{margin-top:24px;background:linear-gradient(145deg,#fff,#f8fafc);border:2px solid #e0e0e0;border-radius:16px;padding:24px;animation:slideUp .3s ease-out;box-shadow:0 4px 12px #00000008}@keyframes slideUp{0%{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}.selected-item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:16px;border-bottom:2px dashed #e2e8f0}.selected-item-name{font-weight:700;font-size:17px;color:#1a237e}.btn-add-item-large{width:100%;margin-top:24px;padding:16px 24px;background:linear-gradient(135deg,#1976d2,#42a5f5);color:#fff;border:none;border-radius:14px;font-size:16px;font-weight:700;cursor:pointer;transition:all .25s ease;box-shadow:0 4px 12px #1976d24d}.btn-add-item-large:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px #1976d266}.btn-add-item-large:disabled{background:#cfd8dc;cursor:not-allowed;box-shadow:none}.cart-header-modern{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;background:linear-gradient(135deg,#1a237e,#283593)}.cart-header-modern h3{margin:0;font-size:18px;font-weight:700;color:#fff}.cart-count-badge{background:#ff9800;color:#fff;padding:4px 12px;border-radius:20px;font-size:13px;font-weight:700}.btn-clear-modern{background:#ffffff26;border:1px solid rgba(255,255,255,.2);color:#fff;padding:8px 16px;border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-clear-modern:hover:not(:disabled){background:#f44336cc}.cart-items-container{flex:1;overflow-y:auto;padding:16px}.empty-cart-modern{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:48px;color:#b0bec5;text-align:center}.empty-cart-modern .empty-icon{font-size:64px;margin-bottom:16px;opacity:.5}.empty-cart-modern p{margin:0;font-weight:600;font-size:18px;color:#546e7a}.empty-cart-modern span{font-size:14px;color:#90a4ae;margin-top:6px}.cart-item-card{background:#fff;border-radius:14px;padding:16px;margin-bottom:12px;border:1px solid #e0e0e0;box-shadow:0 2px 8px #0000000a}.cart-item-card:hover{box-shadow:0 4px 12px #00000014;border-color:#ffb74d}.cart-item-name{font-weight:700;font-size:15px;color:#1a237e}.btn-remove-modern{background:#ffebee;border:none;color:#d32f2f;width:32px;height:32px;border-radius:10px;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center}.btn-remove-modern:hover{background:#ffcdd2}.detail-label{color:#90a4ae;font-size:11px;text-transform:uppercase;letter-spacing:.3px}.detail-value{font-weight:700;color:#37474f}.detail-value.highlight{color:#2e7d32}.modal-pane-right{display:flex;flex-direction:column;height:100%}.cart-section{flex:1;overflow:hidden;display:flex;flex-direction:column}.cart-summary-modern{background:#fff;border-top:2px solid #e2e8f0;padding:24px;box-shadow:0 -4px 15px #0000000d;position:sticky;bottom:0;z-index:10}.cart-items-container{flex:1;overflow-y:auto;padding:16px;background:#fff}.cart-table-modern td{color:#334155;font-weight:500}.cart-item-name{color:#1a237e;font-weight:700;font-size:14px}.summary-row-modern{display:flex;justify-content:space-between;align-items:center;padding:10px 0;font-size:15px;color:#546e7a}.summary-row-modern.total{padding-top:14px;margin-top:12px;border-top:2px dashed #e0e0e0;font-size:22px;font-weight:800}.summary-row-modern.total span:last-child{color:#2e7d32}.btn-complete-purchase{width:100%;margin-top:18px;padding:18px 28px;background:linear-gradient(135deg,#1976d2,#42a5f5);color:#fff!important;border:none;border-radius:16px;font-size:18px;font-weight:800;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:12px;box-shadow:0 6px 20px #1976d266}.summary-row-modern span:first-child{color:#1e293b;font-weight:600}.btn-complete-purchase:hover:not(:disabled){transform:translateY(-3px);box-shadow:0 10px 30px #1976d280;background:linear-gradient(135deg,#1565c0,#1976d2)}.btn-complete-purchase:disabled{background:#cfd8dc;cursor:not-allowed;box-shadow:none}.form-grid-3col{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.form-grid-4col{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.pharmacy-purchases .sales-table th:nth-child(4),.pharmacy-purchases .sales-table td:nth-child(4){text-align:right}.pharmacy-purchases .sales-table th:nth-child(5),.pharmacy-purchases .sales-table td:nth-child(5){text-align:center}@media (max-width: 1024px){.modal-body-split{flex-direction:column}.modal-pane-left,.modal-pane-right{flex:1}.modal-pane-left{border-right:none;border-bottom:1px solid #e0e0e0}}.pharmacy-inventory{padding:28px 32px;width:100%;margin:0;min-height:calc(100vh - 64px);background:var(--page-bg, linear-gradient(135deg, #f0f2f8 0%, #e8ecf4 50%, #f5f6fa 100%));animation:fadeInUp .4s ease-out}.inventory-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.inventory-header h1{font-size:30px;font-weight:800;margin:0;letter-spacing:-.8px;line-height:1.1;background:linear-gradient(135deg,#1a237e,#3949ab);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.filters-section{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;flex-wrap:wrap}.search-form{display:flex;gap:8px;flex:1;max-width:400px}.search-form input{flex:1;padding:10px 16px;border:1px solid #e0e0e0;border-radius:8px;font-size:14px}.search-form button{padding:10px 20px;background:linear-gradient(45deg,#1976d2,#42a5f5);color:#fff;border:none;border-radius:8px;cursor:pointer}.filter-controls{display:flex;gap:12px}.filter-controls select{padding:10px 16px;border:1px solid #e0e0e0;border-radius:8px;background:#fff;font-size:14px;cursor:pointer}.table-container{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 4px 12px #0000000d;border:1px solid #e0e0e0}.inventory-table{width:100%;border-collapse:collapse}.inventory-table th{background:#f7fafc;padding:14px 16px;text-align:left;font-weight:600;color:#4a5568;font-size:13px;text-transform:uppercase;border-bottom:1px solid #e2e8f0}.inventory-table td{padding:14px 16px;border-bottom:1px solid #f0f4f8}.inventory-table tr:hover{background:#f7fafc}.item-name-cell{display:flex;flex-direction:column}.item-name{font-weight:500;color:#2d3748}.generic-name{font-size:12px;color:#718096;margin-top:2px}.category-badge{background:#e2e8f0;padding:4px 10px;border-radius:12px;font-size:12px;text-transform:capitalize}.stock-badge{padding:4px 10px;border-radius:12px;font-size:12px;font-weight:500}.stock-badge.in-stock{background:#c6f6d5;color:#22543d}.stock-badge.low-stock{background:#feebc8;color:#c05621}.stock-badge.out-of-stock{background:#fed7d7;color:#c53030}.expiry-badge{font-size:13px}.expiry-badge.expired{color:#c53030;font-weight:600}.expiry-badge.expiring-soon{color:#dd6b20;font-weight:500}.action-buttons{display:flex;gap:8px}.btn-edit,.btn-delete{padding:6px 12px;border:none;border-radius:6px;cursor:pointer;font-size:12px;font-weight:500}.btn-edit{background:#ebf4ff;color:#3182ce}.btn-edit:hover{background:#bee3f8}.btn-delete{background:#fff5f5;color:#e53e3e}.btn-delete:hover{background:#fed7d7}.no-data{text-align:center;padding:40px;color:#a0aec0}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-content{background:#fff;border-radius:16px;max-width:700px;width:100%;max-height:90vh;overflow-y:auto}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid #e2e8f0}.modal-header h2{margin:0;font-size:20px;color:#1a1a2e}.close-btn{background:none;border:none;font-size:28px;color:#718096;cursor:pointer;line-height:1}.item-form{padding:24px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.form-group{display:flex;flex-direction:column}.form-group label{font-size:13px;font-weight:500;color:#4a5568;margin-bottom:6px}.form-group input,.form-group select{padding:10px 14px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px}.form-group input:focus,.form-group select:focus{outline:none;border-color:#ff9800;box-shadow:0 0 0 3px #ff98001a}.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid #e2e8f0}.btn-cancel{padding:12px 24px;background:#f0f4f8;color:#4a5568;border:none;border-radius:8px;cursor:pointer;font-weight:500}.success-banner{background:#c6f6d5;color:#22543d;padding:12px 16px;border-radius:8px;margin-bottom:16px}.error-banner{background:#fed7d7;color:#c53030;padding:12px 16px;border-radius:8px;margin-bottom:16px}@media (max-width: 768px){.inventory-header{flex-direction:column;gap:16px;align-items:flex-start}.filters-section{flex-direction:column}.search-form{max-width:100%}.filter-controls{width:100%}.form-grid{grid-template-columns:1fr}.table-container{overflow-x:auto}}.form-group.full-width{grid-column:span 2}.master-search-container{position:relative;width:100%}.master-results-dropdown{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e2e8f0;border-radius:8px;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;margin-top:4px;z-index:50;max-height:200px;overflow-y:auto;list-style:none;padding:0}.master-results-dropdown li{padding:10px 14px;cursor:pointer;border-bottom:1px solid #edf2f7;transition:background-color .2s}.master-results-dropdown li:last-child{border-bottom:none}.master-results-dropdown li:hover{background-color:#f7fafc}.small-text{font-size:.85em;color:#718096;margin-left:6px}.header-actions{display:flex;gap:12px}.btn-secondary{padding:10px 20px;background:#fff;color:#4a5568;border:1px solid #e2e8f0;border-radius:8px;cursor:pointer;font-weight:500}.btn-secondary:hover{background:#f7fafc;border-color:#cbd5e0}.purchase-list-card{background:#fff;border-radius:12px;box-shadow:0 1px 3px #0000001a;overflow:hidden;border:1px solid #edf2f7}.sales-table{width:100%;border-collapse:collapse}.sales-table th{background:#f7fafc;padding:14px 16px;text-align:left;font-weight:600;color:#4a5568;font-size:13px;text-transform:uppercase;border-bottom:1px solid #e2e8f0}.sales-table td{padding:14px 16px;border-bottom:1px solid #f0f4f8}.sales-table tr:hover{background:#f7fafc}.modern-search-bar{position:relative;width:300px}.modern-search-bar input{width:100%;padding:10px 10px 10px 40px;border-radius:24px;border:1px solid #e2e8f0;font-size:14px;background:#f8fafc;transition:all .2s}.modern-search-bar input:focus{background:#fff;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.search-icon-overlay{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#a0aec0;font-size:14px}.pharmacy-master-layout{display:flex;flex-direction:column;height:calc(100vh - 100px);width:100%;overflow:hidden;padding:24px;max-width:1400px;margin:0 auto;box-sizing:border-box}.pharmacy-master-layout .page-header,.pharmacy-master-layout .pharmacy-tabs{flex-shrink:0}.pharmacy-master-layout .tab-content{flex:1;overflow:hidden;position:relative;display:flex;flex-direction:column;z-index:1}.pharmacy-master-layout .pharmacy-inventory{height:100%;display:flex;flex-direction:column;padding:0;margin:0;max-width:none;width:100%;overflow:hidden}.pharmacy-master-layout .inventory-header,.pharmacy-master-layout .filters-section{flex-shrink:0;padding-bottom:24px;margin-bottom:0}.pharmacy-master-layout .purchase-list-card{flex:1;overflow-y:auto;scrollbar-gutter:stable;min-height:0;border-bottom:1px solid #edf2f7}.pharmacy-master-layout .sales-table th{position:sticky;top:0;z-index:10;box-shadow:0 1px 2px #0000000d}.pharmacy-reports{display:flex;min-height:calc(100vh - 64px);background:var(--page-bg, linear-gradient(135deg, #f0f2f8 0%, #e8ecf4 50%, #f5f6fa 100%));animation:fadeInUp .4s ease-out}.report-nav{width:240px;background:#fff;padding:24px 0;flex-shrink:0;box-shadow:4px 0 20px #0000000d;border-right:1px solid #e0e0e0;transition:width .3s ease,padding .3s ease;overflow-x:hidden}.report-nav.collapsed{width:60px}.report-nav-header{padding:0 20px 24px;border-bottom:1px solid #f0f0f0;margin-bottom:16px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px;min-height:60px;position:relative}.report-nav.collapsed .report-nav-header{padding:0 0 24px;flex-direction:column;justify-content:center;align-items:center;gap:12px}.report-nav .sidebar-toggle-btn{background:transparent!important;border:none!important;box-shadow:none!important;cursor:pointer;color:#94a3b8;display:flex;align-items:center;justify-content:center;padding:0!important;margin:0!important;min-width:auto!important;transition:color .2s;outline:none!important}.report-nav .sidebar-toggle-btn:hover{background:transparent!important;color:#1a237e}.brand-logo{display:flex;flex-direction:column;align-items:center;justify-content:center;width:auto}.report-nav-header h2{display:none}.report-category{margin-bottom:8px}.category-header{display:flex;align-items:center;gap:12px;padding:12px 20px;color:#546e7a;font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;cursor:pointer;transition:all .2s ease;white-space:nowrap}.report-nav.collapsed .category-header{justify-content:center;padding:12px 0}.category-header:hover{color:#1a237e;background:#f5f5f5}.category-header.active{color:#1a237e;background:#e8eaf6;border-right:3px solid #1a237e}.category-icon{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:#f0f4f8;border-radius:8px;color:#546e7a;flex-shrink:0}.category-header.active .category-icon{background:#fff;color:#1a237e}.report-items{overflow:hidden;transition:max-height .3s ease;background:#fafafa}.report-item{display:flex;align-items:center;gap:10px;padding:10px 20px 10px 60px;color:#546e7a;font-size:13px;cursor:pointer;transition:all .2s ease;border-left:3px solid transparent}.report-item:hover{color:#1a237e;background:#f0f0f0}.report-item.active{color:#1a237e;background:#e8eaf6;border-left-color:#1a237e;font-weight:600}.sidebar-toggle-btn{background:#fff;border:1px solid #e0e0e0;border-radius:8px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#546e7a;transition:all .2s ease;margin-right:6px}.sidebar-toggle-btn:hover{background:#f5f5f5;color:#1a237e;border-color:#b0bec5}.report-content{flex:1;padding:24px;overflow-y:auto}.report-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.report-title-section h1{font-size:28px;font-weight:700;color:#1a237e;margin:0 0 8px}.report-subtitle{color:#546e7a;font-size:14px}.report-actions{display:flex;gap:12px}.btn-filter,.btn-export,.btn-print{display:flex;align-items:center;gap:8px;padding:10px 16px;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease}.btn-filter{background:#fff;border:1px solid #e0e0e0;color:#546e7a}.btn-filter:hover{border-color:#1a237e;color:#1a237e}.btn-export{background:linear-gradient(135deg,#1976d2,#42a5f5);border:none;color:#fff;box-shadow:0 4px 12px #1976d24d}.btn-export:hover{transform:translateY(-2px);box-shadow:0 6px 16px #1976d266;background:linear-gradient(135deg,#1565c0,#1976d2)}.btn-print{background:linear-gradient(135deg,#1976d2,#42a5f5);border:none;color:#fff;box-shadow:0 4px 12px #1976d24d}.btn-print:hover{transform:translateY(-2px);box-shadow:0 6px 16px #1976d266;background:linear-gradient(135deg,#1565c0,#1976d2)}.btn-search-report,.btn-print-report{display:flex;align-items:center;gap:8px;padding:0 20px;height:38px;border-radius:8px;font-weight:500;font-size:14px;cursor:pointer;transition:all .2s;border:none}.btn-search-report{background:linear-gradient(135deg,#1976d2,#42a5f5);color:#fff;box-shadow:0 2px 8px #1976d240}.btn-search-report:hover{transform:translateY(-1px);box-shadow:0 4px 12px #1976d259}.btn-print-report{background:#fff;color:#1e293b;border:1px solid #e2e8f0}.btn-print-report:hover{background:#f8fafc;border-color:#cbd5e1;color:#0f172a}.date-range-filter{background:#fff;padding:16px 24px;border-radius:12px;margin-bottom:24px;display:flex;align-items:flex-end;gap:16px;box-shadow:0 2px 8px #0000000a;border:1px solid #e0e0e0;flex-wrap:wrap}.date-input-group{display:flex;flex-direction:column;gap:6px}.date-input-group label{font-size:13px;color:#64748b;font-weight:500}.date-input-group input{padding:8px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;color:#0f172a;outline:none;transition:all .2s;height:38px}.date-input-group input:focus{outline:none;border-color:#ff9800;box-shadow:0 0 0 3px #ff98001a;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.quick-filters{display:flex;gap:8px;margin-left:auto}.quick-filter-btn{padding:8px 16px;border:1px solid #e2e8f0;background:#fff;border-radius:8px;font-size:13px;color:#546e7a;cursor:pointer;transition:all .2s ease}.quick-filter-btn:hover{border-color:#1a237e;color:#1a237e}.quick-filter-btn.active{background:#1a237e;border-color:#1a237e;color:#fff}.summary-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin-bottom:24px}.summary-card{background:#fff;border-radius:16px;padding:24px;box-shadow:0 4px 12px #0000000d;transition:all .3s ease;position:relative;overflow:hidden;border:1px solid #e0e0e0}.summary-card:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#1a237e,#283593)}.summary-card.success:before{background:linear-gradient(90deg,#4caf50,#66bb6a)}.summary-card.warning:before{background:linear-gradient(90deg,#ff9800,#ffb74d)}.summary-card.danger:before{background:linear-gradient(90deg,#dc2626,#ef5350)}.summary-card:hover{transform:translateY(-4px);box-shadow:0 8px 30px #0000001a}.card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:16px}.card-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e8eaf6,#c5cae9);color:#1a237e}.summary-card.success .card-icon{background:linear-gradient(135deg,#e8f5e9,#c8e6c9);color:#2e7d32}.summary-card.warning .card-icon{background:linear-gradient(135deg,#fff3e0,#ffe0b2);color:#ef6c00}.summary-card.danger .card-icon{background:linear-gradient(135deg,#ffebee,#ffcdd2);color:#c62828}.trend-badge{display:flex;align-items:center;gap:4px;padding:4px 10px;border-radius:20px;font-size:12px;font-weight:600}.trend-badge.up{background:#e8f5e9;color:#2e7d32}.trend-badge.down{background:#ffebee;color:#c62828}.card-value{font-size:32px;font-weight:700;color:#1a237e;margin-bottom:4px}.card-label{font-size:14px;color:#546e7a}.chart-section{background:#fff;border-radius:16px;padding:24px;margin-bottom:24px;box-shadow:0 4px 20px #0000000a;border:1px solid #e0e0e0}.chart-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.chart-header h3{font-size:18px;font-weight:600;color:#1a237e;margin:0}.chart-tabs{display:flex;gap:4px;background:#f5f5f5;padding:4px;border-radius:10px}.chart-tab{padding:8px 16px;border:none;background:transparent;border-radius:8px;font-size:13px;color:#546e7a;cursor:pointer;transition:all .2s ease}.chart-tab.active{background:#fff;color:#1a237e;font-weight:600;box-shadow:0 2px 4px #0000000d}.chart-container{height:320px}.data-table-section{background:#fff;border-radius:16px;padding:24px;box-shadow:0 4px 20px #0000000a;border:1px solid #e0e0e0}.table-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.table-header h3{font-size:18px;font-weight:600;color:#1a237e;margin:0}.table-search{display:flex;align-items:center;gap:8px;padding:10px 16px;background:#f8f9fa;border:1px solid #e0e0e0;border-radius:10px;width:280px;transition:all .2s}.table-search:focus-within{border-color:#ff9800;box-shadow:0 0 0 3px #ff98001a;background:#fff}.table-search input{border:none;background:transparent;outline:none;font-size:14px;width:100%;color:#1a237e}.table-search input::placeholder{color:#b0bec5}.report-table{width:100%;border-collapse:collapse}.report-table thead{background:#e8eaf6}.report-table th{padding:14px 16px;text-align:left;font-size:12px;font-weight:600;color:#1a237e;text-transform:uppercase;letter-spacing:.5px;border-bottom:2px solid #c5cae9}.report-table td{padding:16px;font-size:14px;color:#263238;border-bottom:1px solid #f5f5f5}.report-table tbody tr{transition:background .2s ease}.report-table tbody tr:hover{background:#f8f9fa}.item-name{display:flex;flex-direction:column}.item-name span:first-child{font-weight:500;color:#1a237e}.item-name span:last-child{font-size:12px;color:#78909c}.status-pill{display:inline-flex;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:600}.status-pill.success{background:#e8f5e9;color:#2e7d32}.status-pill.warning{background:#fff3e0;color:#ef6c00}.status-pill.danger{background:#ffebee;color:#c62828}.charts-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px}.charts-grid .chart-section{margin-bottom:0}@media (max-width: 1200px){.charts-grid{grid-template-columns:1fr}}@media (max-width: 768px){.pharmacy-reports{flex-direction:column}.report-nav{width:100%;padding:16px}.report-content{padding:16px}.summary-cards{grid-template-columns:1fr}.date-range-filter{flex-wrap:wrap}.quick-filters{width:100%;margin-left:0;margin-top:12px;flex-wrap:wrap}}.report-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:400px;color:#78909c}.report-loading .spinner{width:40px;height:40px;border:3px solid #e0e0e0;border-top-color:#1a237e;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:16px}@keyframes spin{to{transform:rotate(360deg)}}.report-empty{text-align:center;padding:60px 20px;color:#90a4ae}.report-empty .empty-icon{width:80px;height:80px;background:#f5f5f5;border-radius:50%;display:flex;align-items:center;justify-content:center;margin:0 auto 20px;color:#b0bec5}.report-empty h3{font-size:18px;color:#1a237e;margin-bottom:8px}.report-empty p{max-width:400px;margin:0 auto}@media print{.report-nav,.sidebar-toggle-btn,.report-actions,.btn-search-report,.btn-print-report,.quick-filters,.date-input-group,.btn-filter,.btn-export,.chart-section,.charts-grid{display:none!important}.pharmacy-reports{height:auto;overflow:visible;display:block;background:#fff}.report-content{padding:0;margin:0;height:auto;overflow:visible;width:100%}.report-header{margin-bottom:20px;padding:0;border:none}.report-title-section h1{font-size:24px;color:#000;margin-bottom:5px}.report-subtitle{color:#666}.summary-cards{display:grid;grid-template-columns:repeat(4,1fr)!important;gap:16px;margin-bottom:24px;break-inside:avoid}.summary-card{border:1px solid #ddd;box-shadow:none;break-inside:avoid}.data-table-section{box-shadow:none;border:1px solid #ddd;width:100%;margin-top:20px}.report-table{width:100%}.report-table th{background-color:#f0f0f0!important;color:#000;border-bottom:2px solid #000;-webkit-print-color-adjust:exact;print-color-adjust:exact}.report-table td{border-bottom:1px solid #ddd;color:#000}.date-range-filter{border:none;box-shadow:none;padding:0;margin:0;background:transparent;display:none}@page{margin:1cm;size:landscape}}
