.pharmacy-tabs{display:flex;gap:.45rem;overflow:auto;padding:.2rem 0 .9rem;scrollbar-width:thin}.pharmacy-tabs a{white-space:nowrap;padding:.72rem 1rem;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--muted);font-weight:700;font-size:.86rem}.pharmacy-tabs a.active{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 8px 22px color-mix(in srgb,var(--brand) 25%,transparent)}
.pharmacy-scope-note{display:flex;gap:.8rem;align-items:flex-start;border:1px solid color-mix(in srgb,var(--brand) 22%,var(--border));background:color-mix(in srgb,var(--brand) 5%,var(--surface));padding:.85rem 1rem;border-radius:14px;margin-bottom:1rem}.pharmacy-scope-note .icon{flex:0 0 auto;color:var(--brand);margin-top:.1rem}.pharmacy-scope-note div{display:grid;gap:.2rem}.pharmacy-scope-note span{font-size:.83rem;color:var(--muted);line-height:1.45}.pharmacy-scope-note.compact{margin:0;padding:.75rem}
.regulated-mode-settings{margin-bottom:1rem}.regulated-mode-form{max-width:none}.regulated-mode-form>.page-actions{margin:0;padding-top:.2rem}
.pharmacy-hero,.pharmacy-report-banner{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1.5rem 1.65rem;border-radius:22px;margin-bottom:1rem;color:#fff;background:linear-gradient(135deg,#092e2a,#0c5b4f 55%,#11866f)}.pharmacy-hero:after,.pharmacy-report-banner:after{content:"";position:absolute;width:220px;height:220px;border-radius:50%;right:-70px;top:-90px;background:rgba(255,255,255,.08)}.pharmacy-hero h2,.pharmacy-report-banner h2{font-size:clamp(1.35rem,2.2vw,2rem);margin:.25rem 0}.pharmacy-hero p,.pharmacy-report-banner p{max-width:680px;color:rgba(255,255,255,.8);margin:0}.pharmacy-hero-actions{display:flex;flex-wrap:wrap;gap:.6rem;position:relative;z-index:1}.pharmacy-hero-actions .btn{white-space:nowrap}
.pharmacy-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem;margin:1rem 0}.pharmacy-stat-grid article{background:var(--surface);border:1px solid var(--border);border-radius:17px;padding:1rem;display:grid;gap:.3rem}.pharmacy-stat-grid article span,.pharmacy-stat-grid article small{color:var(--muted);font-size:.78rem}.pharmacy-stat-grid article strong{font-size:1.45rem}.pharmacy-stat-grid article.attention{border-color:#e9b949;background:color-mix(in srgb,#e9b949 9%,var(--surface))}.pharmacy-stat-grid article.danger{border-color:#e25555;background:color-mix(in srgb,#e25555 7%,var(--surface))}
.pharmacy-dashboard-grid,.pharmacy-report-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(290px,.75fr);gap:1rem;margin-bottom:1rem}.expiry-window-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}.expiry-window-grid a{display:grid;gap:.15rem;padding:1rem;border-radius:14px;background:var(--surface-soft);border:1px solid var(--border);color:inherit}.expiry-window-grid strong{font-size:1.55rem}.expiry-window-grid span{font-size:.78rem;color:var(--muted)}.expiry-window-grid .expired{border-color:#d94b4b;color:#b42929}.expiry-window-grid .urgent{border-color:#e77b35;color:#b04e13}.expiry-window-grid .warning{border-color:#d7aa27;color:#98730b}.pharmacy-action-callout{display:flex;align-items:center;gap:.8rem;margin-top:1rem;padding:.85rem;border-radius:14px;background:#fff8df;border:1px solid #efd582;color:#5d4812}.pharmacy-action-callout div{display:grid;gap:.12rem;flex:1}.pharmacy-action-callout span{font-size:.78rem}.ledger-card ul{display:grid;gap:.45rem;margin:.8rem 0 1rem;padding:0;list-style:none;color:var(--muted);font-size:.83rem}.ledger-card li:before{content:"✓";font-weight:900;color:#14816d;margin-right:.45rem}.ledger-seal{display:grid;place-items:center;text-align:center;padding:1rem;border-radius:16px;background:var(--surface-soft)}.ledger-seal .icon{width:34px;height:34px}.ledger-seal strong{font-size:1.7rem}.ledger-seal span{font-size:.75rem;color:var(--muted)}.ledger-seal.ok .icon{color:#13806b}.ledger-seal.bad .icon{color:#d24747}
.pharmacy-batch-status{display:inline-flex;align-items:center;border-radius:999px;padding:.3rem .58rem;font-weight:800;font-size:.7rem;white-space:nowrap;background:#eef2f5;color:#4c5b66}.pharmacy-batch-status.available{background:#e5f7f1;color:#08735d}.pharmacy-batch-status.quarantined,.pharmacy-batch-status.pending{background:#fff2d9;color:#8a5e00}.pharmacy-batch-status.recalled,.pharmacy-batch-status.expired{background:#ffe6e6;color:#ad2929}.pharmacy-batch-status.returned,.pharmacy-batch-status.disposed,.pharmacy-batch-status.depleted{background:#eceff2;color:#58636d}.pharmacy-expired-row{background:color-mix(in srgb,#d94b4b 4%,var(--surface))}
.pharmacy-filter-links{display:flex;gap:.4rem;flex-wrap:wrap}.pharmacy-filter-links a{padding:.5rem .75rem;border-radius:10px;color:var(--muted);font-weight:700}.pharmacy-filter-links a.active{background:var(--surface-soft);color:var(--brand)}.pharmacy-batch-action{display:grid;grid-template-columns:minmax(130px,1fr) minmax(150px,1.3fr) auto;gap:.4rem;min-width:420px}.pharmacy-batch-action select,.pharmacy-batch-action input{min-height:36px;padding:.42rem .55rem;font-size:.75rem}.batch-reconciliation-hint{padding:.75rem;border:1px solid #efd582;background:#fff8df;color:#5d4812;border-radius:12px;font-size:.82rem;line-height:1.4}
.pharmacy-profile-modal{width:min(760px,calc(100vw - 2rem))}.pharmacy-recall-modal{width:min(780px,calc(100vw - 2rem))}.pharmacy-recall-hero{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 1.15rem;margin-bottom:1rem;border-radius:16px;border:1px solid #efb1b1;background:#fff1f1;color:#792020}.pharmacy-recall-hero>div{display:flex;gap:.7rem;align-items:center}.pharmacy-recall-hero span{display:grid;gap:.15rem}.pharmacy-recall-hero small{font-size:.78rem}.recall-batch-picker{display:grid;max-height:300px;overflow:auto;border:1px solid var(--border);border-radius:12px}.recall-batch-picker label{display:flex;align-items:center;gap:.7rem;padding:.7rem;border-bottom:1px solid var(--border);cursor:pointer}.recall-batch-picker label:last-child{border-bottom:0}.recall-batch-picker span{display:grid;gap:.1rem}.recall-batch-picker small{font-size:.75rem;color:var(--muted)}
.pharmacy-purchase-invoice{display:flex;align-items:end;justify-content:space-between;gap:1rem;padding:1rem;border-block:1px solid var(--border);background:color-mix(in srgb,#0c8068 5%,var(--surface))}.pharmacy-purchase-invoice label{min-width:280px}.pharmacy-purchase-invoice span{display:flex;align-items:center;gap:.45rem;max-width:620px;color:var(--muted);font-size:.8rem}.purchase-batch-fields{display:grid;gap:.35rem;min-width:165px}.purchase-batch-fields input{min-height:35px;padding:.4rem .5rem;font-size:.75rem}
.ledger-report-status{position:relative;z-index:1;display:grid;justify-items:center;text-align:center;min-width:170px;padding:1rem;border-radius:16px;background:rgba(255,255,255,.12)}.ledger-report-status .icon{width:30px;height:30px}.ledger-report-status small{color:rgba(255,255,255,.72)}.pharmacy-loss-list{display:grid;gap:.7rem}.pharmacy-loss-list article{display:flex;align-items:center;gap:.65rem;padding:.65rem;border:1px solid var(--border);border-radius:13px}.pharmacy-loss-list article div{display:grid;flex:1}.pharmacy-loss-list small{font-size:.72rem;color:var(--muted)}
@media(max-width:1050px){.pharmacy-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pharmacy-dashboard-grid,.pharmacy-report-grid{grid-template-columns:1fr}.pharmacy-batch-action{min-width:360px;grid-template-columns:1fr 1fr}.pharmacy-batch-action .btn{grid-column:1/-1}}
@media(max-width:680px){.pharmacy-hero,.pharmacy-report-banner{align-items:flex-start;flex-direction:column;padding:1.2rem}.pharmacy-hero-actions{width:100%}.pharmacy-hero-actions .btn{flex:1}.pharmacy-stat-grid{grid-template-columns:1fr 1fr;gap:.55rem}.pharmacy-stat-grid article{padding:.8rem}.pharmacy-stat-grid article strong{font-size:1.15rem}.expiry-window-grid{grid-template-columns:1fr 1fr}.pharmacy-action-callout{align-items:flex-start;flex-wrap:wrap}.pharmacy-action-callout .btn{width:100%}.pharmacy-recall-hero{align-items:stretch;flex-direction:column}.pharmacy-batch-action{min-width:290px;grid-template-columns:1fr}.pharmacy-batch-action .btn{grid-column:auto}.pharmacy-tabs{margin-inline:-.25rem}.ledger-report-status{width:100%}.pharmacy-purchase-invoice{align-items:stretch;flex-direction:column}.pharmacy-purchase-invoice label{min-width:0}}
