:root{--primary: #0ea5e9;--primary-dark: #0284c7;--secondary: #10b981;--accent: #6366f1;--bg-main: #0f172a;--bg-card: rgba(30, 41, 59, .7);--bg-sidebar: #1e293b;--text-main: #f8fafc;--text-muted: #94a3b8;--border: rgba(255, 255, 255, .1);--glass: rgba(15, 23, 42, .8);--shadow-premium: 0 10px 40px -10px rgba(0, 0, 0, .5)}*{box-sizing:border-box;margin:0;padding:0}body{font-family:Inter,system-ui,-apple-system,sans-serif;background-color:var(--bg-main);background-image:radial-gradient(at 0% 0%,rgba(14,165,233,.15) 0,transparent 50%),radial-gradient(at 100% 0%,rgba(99,102,241,.15) 0,transparent 50%);color:var(--text-main);font-synthesis:none;line-height:1.6;min-height:100vh}.layout{display:flex;min-height:100vh}.sidebar{width:260px;background-color:var(--bg-sidebar);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:1.5rem 1.25rem;position:fixed;top:0;left:0;height:100dvh;box-shadow:20px 0 50px #0003;z-index:1000;min-height:0;overflow:hidden}.main-content{flex:1;margin-left:260px;width:calc(100% - 260px);max-width:calc(100vw - 260px);min-width:0;padding:1.75rem 2rem}.card{background:var(--bg-card);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-radius:1.25rem;padding:2rem;box-shadow:var(--shadow-premium);border:1px solid var(--border);transition:transform .3s ease,border-color .3s ease}.card:hover{border-color:#0ea5e94d}.header{margin-bottom:2rem;display:flex;justify-content:space-between;align-items:center;gap:1rem;min-width:0}.header>div{min-width:0}.header h1{margin:0;font-size:2.15rem;line-height:1.1}.header p{margin:.45rem 0 0;color:var(--text-muted);overflow-wrap:anywhere}.crm-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:1rem;min-width:0}.crm-global-search{position:relative;width:clamp(240px,24vw,350px);min-width:0}.crm-global-search>svg{position:absolute;top:50%;left:1rem;z-index:10;color:var(--text-muted);transform:translateY(-50%)}.crm-global-search input{width:100%;min-height:42px;padding:.6rem 1rem .6rem 3rem;border:1px solid var(--border);border-radius:2rem;background:var(--bg-card);color:#fff}.crm-search-results{position:absolute;top:calc(100% + .5rem);right:0;left:0;z-index:1000;overflow:hidden;border:1px solid var(--border);border-radius:1rem;background:#111827;box-shadow:0 10px 30px #00000080}.crm-search-results-title{padding:.75rem 1rem;border-bottom:1px solid var(--border);background:#ffffff05;color:var(--text-muted);font-size:.7rem;font-weight:900}.crm-search-result{padding:1rem;border-bottom:1px solid var(--border);cursor:pointer;transition:background .2s ease}.crm-search-result:last-child{border-bottom:0}.crm-search-result:hover,.crm-search-result:focus-visible{background:#ffffff0d}.crm-search-result-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.crm-search-result-row div{min-width:0}.crm-search-result-row strong,.crm-search-result-row span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-search-result-row strong{color:var(--text-main);font-size:.9rem}.crm-search-result-row span{color:var(--text-muted);font-size:.7rem}.crm-notification-control{position:relative}.crm-icon-button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid transparent;border-radius:8px;background:transparent;cursor:pointer}.crm-icon-button:hover,.crm-icon-button:focus-visible{border-color:var(--border);background:#ffffff0d;outline:none}.crm-notification-count{position:absolute;top:1px;right:1px;min-width:18px;height:18px;display:flex;align-items:center;justify-content:center;padding:0 4px;border:2px solid var(--bg-main);border-radius:10px;background:#ef4444;color:#fff;font-size:.65rem;font-weight:900;pointer-events:none}.crm-notification-menu{position:absolute;top:calc(100% + .75rem);right:0;width:min(390px,calc(100vw - 2rem));max-height:min(520px,calc(100vh - 9rem));padding:.75rem;border:1px solid var(--border);border-radius:8px;background:#111827;box-shadow:var(--shadow-premium);z-index:1200;overflow:hidden}.crm-notification-menu-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.4rem .5rem .75rem;border-bottom:1px solid var(--border)}.crm-notification-menu-header div{min-width:0}.crm-notification-menu-header strong,.crm-notification-menu-header span{display:block}.crm-notification-menu-header span,.crm-notification-item small,.crm-notification-menu p{color:var(--text-muted);font-size:.75rem}.crm-notification-menu p{margin:0;padding:.75rem .5rem}.crm-notification-refresh{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid var(--border);border-radius:8px;background:#ffffff0a;color:var(--text-main);cursor:pointer}.crm-notification-refresh:disabled{cursor:progress;opacity:.55}.crm-notification-list{max-height:min(430px,calc(100vh - 15rem));overflow-y:auto;overscroll-behavior:contain;padding-right:.25rem;scrollbar-color:rgba(148,163,184,.5) transparent}.crm-notification-item{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;justify-content:space-between;gap:.75rem;padding:.85rem .5rem;border:0;border-bottom:1px solid rgba(255,255,255,.06);background:transparent;color:inherit;text-align:left;cursor:pointer}.crm-notification-item:last-child{border-bottom:0}.crm-notification-item:hover,.crm-notification-item:focus-visible{background:#0ea5e914;outline:none}.crm-notification-item div{min-width:0}.crm-notification-item strong,.crm-notification-item span,.crm-notification-item em{display:block;overflow:hidden;text-overflow:ellipsis}.crm-notification-item strong{color:var(--text-main);font-size:.85rem;white-space:nowrap}.crm-notification-item span{color:var(--text-muted);font-size:.78rem}.crm-notification-item em{margin-top:.25rem;color:var(--primary);font-size:.72rem;font-style:normal;font-weight:800;white-space:nowrap}.crm-notification-item svg{color:var(--primary)}.crm-admin-control{display:flex;align-items:center;gap:.75rem;min-height:48px;padding:.5rem 1.25rem;border:1px solid var(--border);border-radius:2rem;background:#ffffff0d}.crm-admin-control>div:first-child{min-width:0;text-align:right}.crm-admin-control strong,.crm-admin-control span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-admin-control strong{color:var(--text-main);font-size:.85rem}.crm-admin-control span{color:var(--secondary);font-size:.7rem}.crm-admin-avatar{display:flex;align-items:center;justify-content:center;width:35px;min-width:35px;height:35px;border-radius:50%;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;font-weight:800}.btn{padding:.75rem 1.5rem;border-radius:.75rem;border:none;cursor:pointer;font-weight:600;transition:all .3s cubic-bezier(.4,0,.2,1);display:inline-flex;align-items:center;justify-content:center;gap:.5rem}.btn:disabled,.btn:disabled:hover{cursor:not-allowed;opacity:.48;box-shadow:none;transform:none}.btn-primary{background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;box-shadow:0 4px 15px #0ea5e966}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 25px #0ea5e980}.nav-link{display:flex;align-items:center;gap:.8rem;min-height:44px;padding:.68rem .85rem;color:var(--text-muted);text-decoration:none;border-radius:.75rem;margin-bottom:.3rem;transition:all .2s;font-size:.9rem;font-weight:600}.nav-link:hover,.nav-link.active{background:#0ea5e91a;color:var(--primary)}.nav-link svg{width:18px;height:18px;stroke-width:2}.crm-mobile-nav{display:none}.crm-sidebar-logo{display:flex;align-items:center;gap:.75rem;flex-shrink:0;min-width:0;margin-bottom:1.5rem;padding:.25rem .75rem 1.25rem}.crm-sidebar-logo h1{margin:0;min-width:0;font-size:1.25rem;line-height:1.1;letter-spacing:0;white-space:nowrap}.crm-sidebar-logo h1 span{opacity:.5}.crm-sidebar-mark{width:40px;height:40px;flex:0 0 40px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;font-weight:800}.crm-sidebar-nav{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;padding-right:.15rem;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.35) transparent}.crm-sidebar-nav::-webkit-scrollbar{width:6px}.crm-sidebar-nav::-webkit-scrollbar-thumb{background:#94a3b859;border-radius:999px}.crm-sidebar-footer{flex-shrink:0;margin-top:.6rem;padding-top:.75rem;border-top:1px solid var(--border)}.crm-sidebar-user{display:flex;align-items:center;gap:.75rem;min-width:0;padding:0 .85rem .65rem;font-size:.8rem;line-height:1.3}.crm-sidebar-user>div:last-child{min-width:0}.crm-sidebar-user>div:last-child>div{color:#fff;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.35}.crm-sidebar-user span{display:block;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.35}.crm-sidebar-avatar{width:35px;height:35px;flex:0 0 35px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#ffffff1a;color:#fff;font-size:.8rem;font-weight:800}.crm-sidebar-signout{width:100%;margin-bottom:0;padding:.6rem .85rem;border:0;background:transparent;color:#ff6b4a;cursor:pointer;text-align:left}h1,h2,h3{font-weight:760;letter-spacing:0;color:#fff}.stat-value{font-size:2.5rem;font-weight:800;background:linear-gradient(to right,#fff,var(--text-muted));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}table{width:100%;border-collapse:separate;border-spacing:0 .75rem}th{text-align:left;padding:1rem;color:var(--text-muted);font-size:.75rem;text-transform:uppercase;letter-spacing:0}td{padding:1.25rem 1rem;background:#ffffff08;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}td:first-child{border-left:1px solid var(--border);border-top-left-radius:1rem;border-bottom-left-radius:1rem}td:last-child{border-right:1px solid var(--border);border-top-right-radius:1rem;border-bottom-right-radius:1rem}.crm-command{display:flex;flex-direction:column;gap:1.5rem}.crm-command-hero{display:flex;justify-content:space-between;align-items:flex-start;gap:2rem;padding:2rem;border:1px solid var(--border);border-radius:8px;background:linear-gradient(135deg,#0ea5e924,#10b98114);box-shadow:var(--shadow-premium)}.crm-command-hero h2{max-width:760px;margin:.25rem 0 .75rem;font-size:clamp(1.65rem,2vw,2.35rem);line-height:1.12}.crm-command-hero p{max-width:760px;color:var(--text-muted)}.crm-eyebrow{color:var(--secondary);font-size:.72rem;font-weight:800;letter-spacing:0;text-transform:uppercase}.crm-hero-actions{display:flex;align-items:center;gap:.75rem;flex-shrink:0}.btn-ghost{background:#ffffff0f;border:1px solid var(--border);color:var(--text-main)}.crm-alert{padding:1rem 1.25rem;border:1px solid rgba(245,158,11,.35);border-radius:8px;background:#f59e0b1a;color:#fde68a}.crm-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1rem}.crm-stat-card{display:flex;gap:1rem;align-items:flex-start;min-height:150px;padding:1.25rem;text-align:left;color:var(--text-main);border:1px solid var(--border);border-radius:8px;background:var(--bg-card);cursor:pointer;box-shadow:var(--shadow-premium)}.crm-stat-card:hover{border-color:#0ea5e973;transform:translateY(-1px)}.crm-stat-icon{display:inline-flex;width:42px;height:42px;align-items:center;justify-content:center;border-radius:8px;background:#ffffff0f;color:var(--primary);flex-shrink:0}.crm-stat-card>span:not(.crm-stat-icon){min-width:0}.crm-stat-card.secondary .crm-stat-icon{color:var(--secondary)}.crm-stat-card.accent .crm-stat-icon{color:var(--accent)}.crm-stat-card.warning .crm-stat-icon{color:#f59e0b}.audit-integrity-card strong{font-size:clamp(1.1rem,1.15vw,1.45rem);text-transform:capitalize}.crm-stat-card small,.crm-list-item small,.crm-audit-item small{display:block;color:var(--text-muted)}.crm-stat-card strong{display:block;margin:.2rem 0;font-size:clamp(1.7rem,2vw,2.15rem);line-height:1;overflow-wrap:anywhere}.crm-stat-card em,.crm-list-item em{color:var(--text-muted);font-size:.78rem;font-style:normal;text-transform:capitalize}.crm-command-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr);gap:1rem}.crm-panel{min-height:360px;padding:1.5rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-card);box-shadow:var(--shadow-premium)}.crm-panel.priority{border-color:#10b98159}.crm-panel.audit{grid-column:span 3;min-height:auto}.crm-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.crm-panel-header h3{margin-top:.15rem;font-size:1.15rem}.crm-list,.crm-audit-feed{display:flex;flex-direction:column;gap:.75rem}.crm-list-item,.crm-audit-item{display:flex;width:100%;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;text-align:left;color:var(--text-main);background:#ffffff09;border:1px solid var(--border);border-radius:8px;cursor:pointer}.crm-list-item:hover,.crm-audit-item:hover{border-color:#0ea5e959;background:#0ea5e912}.crm-audit-item{justify-content:flex-start}.crm-audit-content{flex:1;min-width:0}.crm-audit-time{min-width:64px;color:var(--secondary);font-weight:800}.audit-scope-bar{display:flex;flex-wrap:wrap;gap:.65rem}.audit-scope-bar button{display:inline-flex;align-items:center;gap:.45rem;min-height:42px;padding:.65rem .85rem;border:1px solid var(--border);border-radius:8px;background:#ffffff09;color:var(--text-muted);cursor:pointer;font-weight:800}.audit-scope-bar button.active{background:linear-gradient(135deg,var(--primary),var(--accent));border-color:transparent;color:#fff}.audit-search-row{display:flex;align-items:center;gap:.75rem;padding:.85rem 1rem;border:1px solid var(--border);border-radius:8px;background:#ffffff08}.audit-search-row svg{color:var(--text-muted)}.audit-search-row input{width:100%;min-height:34px;border:0;outline:0;background:transparent;color:var(--text-main);font:inherit}.audit-panel-subtitle{margin:.35rem 0 0;color:var(--text-muted);font-size:.86rem}.audit-category{display:inline-flex;width:fit-content;margin:.35rem 0;padding:.18rem .45rem;border-radius:999px;background:#0ea5e91a;color:var(--primary);font-size:.68rem;font-style:normal;font-weight:900;text-transform:uppercase}.crm-empty{padding:1rem;color:var(--text-muted);border:1px dashed var(--border);border-radius:8px}.crm-profile-drawer{position:fixed;top:0;right:0;width:min(560px,100vw);height:100vh;background:#111c2e;background-image:linear-gradient(180deg,#132033,#0f172a);border-left:1px solid rgba(148,163,184,.22);box-shadow:-24px 0 60px #000000b8;z-index:1000;padding:2rem;overflow-y:auto;animation:slideIn .3s ease-out}.crm-profile-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:999;background:#020617c7;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.crm-profile-topbar{position:sticky;top:-2rem;z-index:2;display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin:-2rem -2rem 2rem;padding:2rem 2rem 1.25rem;background:linear-gradient(180deg,#132033,#132033f5);border-bottom:1px solid rgba(148,163,184,.14)}.crm-profile-topbar h2,.crm-profile-identity h3{margin:0}.crm-icon-button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border:1px solid var(--border);border-radius:8px;background:#ffffff08;color:var(--text-muted);cursor:pointer}.crm-profile-identity{display:flex;gap:1.25rem;align-items:center;margin-bottom:1.5rem}.crm-profile-avatar{width:78px;height:78px;flex:0 0 78px;display:flex;align-items:center;justify-content:center;border-radius:1rem;background:var(--primary);font-size:2rem;font-weight:800}.crm-profile-identity p{margin:.25rem 0 0;color:var(--text-muted);font-size:.85rem}.crm-profile-badges{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.65rem}.crm-profile-status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-bottom:2rem}.crm-profile-status-grid div,.grid-vitals>div{padding:1rem;background:#18243a;border:1px solid rgba(148,163,184,.16);border-radius:.75rem}.crm-profile-status-grid small,.grid-vitals small{display:block;color:var(--text-muted);font-size:.68rem;font-weight:800;text-transform:uppercase}.crm-profile-status-grid strong,.grid-vitals strong{display:block;margin-top:.25rem;color:#fff;font-size:.9rem;text-transform:capitalize;overflow-wrap:anywhere}.crm-profile-section{margin-bottom:2rem}.crm-profile-section h4{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;color:var(--primary)}.grid-vitals{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.crm-profile-alert{display:flex;align-items:flex-start;gap:.75rem;padding:1rem;color:var(--text-muted);border:1px dashed var(--border);border-radius:.75rem}.crm-profile-notice{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;padding:.85rem 1rem;border-radius:8px;font-weight:800}.crm-profile-notice.success{border:1px solid rgba(16,185,129,.28);background:#10b9811a;color:#bbf7d0}.crm-profile-notice.error{border:1px solid rgba(248,113,113,.28);background:#f871711a;color:#fecaca}.crm-verification-actions{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.crm-verification-actions .danger{color:#f87171;border-color:#f8717147}.crm-assignment-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.75rem}.crm-assignment-control select{width:100%;min-height:44px;padding:.75rem;border:1px solid var(--border);border-radius:.75rem;background:var(--bg-main);color:var(--text-main)}.crm-assignment-list{display:flex;flex-direction:column;gap:.75rem;margin-top:1rem}.crm-assignment-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.9rem;border:1px solid var(--border);border-radius:.75rem;background:#18243a}.crm-assignment-row strong,.crm-assignment-row span{display:block}.crm-assignment-row span{margin-top:.2rem;color:var(--text-muted);font-size:.78rem}.crm-profile-help{margin:.75rem 0 0;color:var(--text-muted);font-size:.82rem}.crm-prescription-list{display:flex;flex-direction:column;gap:1rem}.crm-prescription-card{padding:1rem;background:#142f35;border:1px solid rgba(16,185,129,.2);border-radius:.75rem}.crm-prescription-card strong,.crm-prescription-card span{display:block}.crm-prescription-card>span{margin-top:.25rem;color:var(--text-muted);font-size:.85rem}.crm-prescription-card>div{display:flex;justify-content:space-between;gap:.75rem;margin-top:.75rem;font-size:.75rem}.crm-prescription-shell{display:flex;flex-direction:column;gap:1.25rem}.crm-prescription-ledger{max-width:none}.crm-prescription-table-wrap{overflow-x:auto}.crm-prescription-action{min-height:34px;padding:.4rem .65rem;border-radius:8px;font-size:.72rem;white-space:nowrap}.crm-appointment-shell{display:flex;flex-direction:column;gap:1.25rem}.crm-appointment-ledger{max-width:none}.crm-appointment-table-wrap{overflow-x:auto}.crm-appointment-action{min-height:34px;padding:.4rem .65rem;border-radius:8px;font-size:.72rem;white-space:nowrap}.crm-appointment-status{display:inline-flex;align-items:center;min-height:25px;padding:.3rem .6rem;border-radius:8px;font-size:.65rem;font-weight:900;text-transform:uppercase;border:1px solid var(--border);background:#ffffff0d;color:var(--text-muted)}.crm-appointment-status.scheduled{border-color:#10b98138;background:#10b9811a;color:var(--secondary)}.crm-appointment-status.available{border-color:#6366f13d;background:#6366f11a;color:#a5b4fc}.crm-appointment-status.stale{border-color:#fbbf2447;background:#fbbf241f;color:#fbbf24}.crm-appointment-status.cancelled,.crm-appointment-status.no-show{border-color:#f8717147;background:#f871711a;color:#fecaca}.crm-appointment-status.completed{border-color:#0ea5e942;background:#0ea5e91a;color:var(--primary)}.crm-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:1rem;background:#020617d1;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.crm-appointment-modal{width:min(500px,100%);padding:1.5rem;border-radius:8px}.crm-modal-topbar{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1rem}.crm-modal-topbar h3{margin:.2rem 0 0}.crm-appointment-form{display:grid;gap:1rem}.crm-appointment-form label{display:grid;gap:.45rem;color:var(--text-muted);font-weight:800}.crm-appointment-form input,.crm-appointment-form select,.crm-appointment-form textarea{width:100%;min-height:44px;padding:.75rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-main);color:var(--text-main);font:inherit}.crm-appointment-form textarea{min-height:120px;resize:vertical}.crm-appointment-time-grid,.crm-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.crm-appointment-message{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;padding:.85rem 1rem;border-radius:8px;font-weight:800}.crm-appointment-message.success{border:1px solid rgba(16,185,129,.28);background:#10b9811a;color:#bbf7d0}.crm-appointment-message.error{border:1px solid rgba(248,113,113,.28);background:#f871711a;color:#fecaca}.crm-patient-shell{display:flex;flex-direction:column;gap:1.25rem}.crm-patient-ledger{max-width:none}.crm-patient-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.25rem}.crm-patient-search{display:flex;align-items:center;gap:.75rem;width:min(360px,100%);min-height:44px;padding:0 1rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-main)}.crm-patient-search svg{color:var(--text-muted)}.crm-patient-search input{width:100%;border:0;outline:0;background:transparent;color:var(--text-main);font:inherit}.crm-patient-total{padding:.6rem 1rem;border:1px solid rgba(16,185,129,.2);border-radius:8px;background:#10b9811a;color:var(--secondary);font-size:.85rem}.crm-patient-table-wrap{overflow-x:auto}.crm-patient-name{color:#fff;font-weight:600}.crm-patient-created{color:var(--text-muted);font-size:.8rem}.crm-patient-record-link{display:flex;align-items:center;gap:.5rem;font-size:.85rem}.crm-patient-consent{color:var(--text-muted);font-size:.85rem}.crm-patient-consent.signed{color:var(--secondary)}.crm-patient-empty-row{padding:4rem;text-align:center;color:var(--text-muted)}.crm-patient-empty-row div{margin-bottom:1rem}.crm-patient-status{display:inline-flex;align-items:center;gap:.4rem;min-height:26px;padding:.3rem .65rem;border-radius:8px;font-size:.7rem;font-weight:900;text-transform:uppercase}.crm-patient-status.verified{border:1px solid rgba(16,185,129,.22);background:#10b9811a;color:var(--secondary)}.crm-patient-status.pending{border:1px solid rgba(251,191,36,.24);background:#fbbf241a;color:#fbbf24}.crm-patient-action{min-height:36px;padding:.45rem .75rem;font-size:.78rem;white-space:nowrap}.crm-patient-modal{width:min(720px,100%);max-height:calc(100vh - 2rem);overflow-y:auto;padding:1.5rem;border-radius:8px}.crm-patient-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.crm-patient-form label{display:grid;gap:.45rem;color:var(--text-muted);font-weight:800}.crm-patient-form input,.crm-patient-form select,.crm-patient-form textarea{width:100%;min-height:44px;padding:.75rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-main);color:var(--text-main);font:inherit}.crm-patient-form textarea{min-height:120px;resize:vertical}.crm-patient-form-wide{grid-column:1 / -1}.crm-marketing-page{display:flex;flex-direction:column;gap:1.25rem}.crm-marketing-shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,380px);gap:1.25rem}.crm-marketing-composer,.crm-marketing-sidebar{display:flex;flex-direction:column;gap:1rem}.crm-marketing-field{display:grid;gap:.75rem;color:var(--text-muted);font-weight:800}.crm-marketing-field input,.crm-marketing-field textarea{width:100%;padding:.9rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-main);color:var(--text-main);font:inherit}.crm-marketing-field textarea{min-height:300px;resize:vertical}.crm-segment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem}.crm-segment-grid button{display:grid;gap:.45rem;min-height:118px;padding:1rem;border:1px solid var(--border);border-radius:8px;background:#ffffff09;color:var(--text-muted);text-align:left;cursor:pointer}.crm-segment-grid button.active{border-color:#0ea5e96b;background:#0ea5e91f;color:var(--text-main)}.crm-segment-grid button svg{color:var(--primary)}.crm-segment-grid button strong,.crm-marketing-result strong{color:var(--text-main)}.crm-segment-grid button small,.crm-marketing-result span,.crm-marketing-result small,.crm-marketing-checklist li{color:var(--text-muted)}.crm-marketing-sidebar .card h3{display:flex;align-items:center;gap:.65rem;margin-bottom:1rem}.crm-marketing-checklist{display:grid;gap:.8rem;margin:0;padding-left:1.1rem}.crm-marketing-result{display:grid;gap:.45rem;padding:1rem;border:1px solid rgba(16,185,129,.24);border-radius:8px;background:#10b98114}.consultation-log-shell{max-width:none}.consultation-log-toolbar{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:1.5rem}.consultation-log-search{position:relative;width:min(100%,380px)}.consultation-log-search svg{position:absolute;left:1rem;top:50%;transform:translateY(-50%);color:var(--text-muted);pointer-events:none}.consultation-log-search input,.consultation-log-selector select{width:100%;border:1px solid var(--border);border-radius:8px;background:var(--bg-main);color:#fff}.consultation-log-search input{padding:.75rem 1rem .75rem 3rem}.consultation-log-retention{display:inline-flex;gap:.7rem;align-items:center;color:#86efac;font-size:.85rem;font-weight:700}.consultation-log-selector{display:grid;gap:.5rem;margin-bottom:1.5rem}.consultation-log-selector label{font-weight:700;color:#e2e8f0}.consultation-log-selector select{padding:.85rem;font-size:1rem}.consultation-log-selector small,.consultation-log-empty,.consultation-log-card-header>div:last-child,.consultation-log-attachment small{color:var(--text-muted)}.consultation-log-list{display:grid;gap:1rem}.consultation-log-empty{display:grid;place-items:center;gap:1rem;min-height:220px;text-align:center}.consultation-log-empty svg{opacity:.55}.consultation-log-card{padding:1.25rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-card)}.consultation-log-card-header,.consultation-log-card-header>div,.consultation-log-attachment>div{display:flex;align-items:center;gap:.65rem}.consultation-log-card-header{justify-content:space-between;margin-bottom:1rem}.consultation-log-card-header>div:first-child{min-width:0;color:#fff;font-weight:800}.consultation-log-card-header svg,.consultation-log-attachment svg{flex:0 0 auto;color:var(--primary)}.consultation-log-message{padding:1rem;border:1px solid var(--border);border-radius:8px;background:#ffffff0d;color:#e2e8f0;font-size:.95rem;line-height:1.5}.consultation-log-message .with-attachment{margin-bottom:1rem}.consultation-log-attachment{display:grid;gap:.5rem}.consultation-log-attachment>div{flex-wrap:wrap}.consultation-log-attachment .btn{width:auto}.secure-inbox-shell{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:1.5rem;align-items:stretch}@media (min-width: 901px){.secure-inbox-shell.admin{height:clamp(620px,calc(100dvh - 10.25rem),780px)}.secure-inbox-shell.admin .secure-inbox-sidebar,.secure-inbox-shell.admin .secure-inbox-panel{height:100%;max-height:100%;overflow:hidden}.secure-inbox-shell.admin .secure-inbox-sidebar{display:flex;flex-direction:column;overflow-y:auto}}@media (min-width: 901px) and (max-width: 1180px){.secure-inbox-shell.admin{grid-template-columns:1fr;height:auto}.secure-inbox-shell.admin .secure-inbox-sidebar,.secure-inbox-shell.admin .secure-inbox-panel{height:auto;max-height:none}.secure-inbox-shell.admin .secure-inbox-sidebar{max-height:360px}}.secure-inbox-sidebar,.secure-inbox-panel{min-width:0;padding:1rem}.secure-inbox-sidebar{scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.35) transparent}.secure-inbox-sidebar::-webkit-scrollbar{width:6px}.secure-inbox-sidebar::-webkit-scrollbar-thumb{background:#94a3b859;border-radius:999px}.secure-inbox-panel{min-height:620px;display:flex;flex-direction:column}.secure-inbox-heading,.secure-thread-title,.secure-reply-row{display:flex;gap:.75rem}.secure-inbox-heading,.secure-thread-title{align-items:center;justify-content:space-between}.secure-inbox-heading{margin-bottom:1rem}.secure-inbox-heading h3,.secure-conversation-header h3{margin:0}.secure-inbox-heading span,.secure-thread-meta,.secure-message-card div{color:var(--text-muted);font-size:.78rem}.secure-inbox-alert{margin-bottom:1rem;padding:.85rem 1rem;border:1px solid rgba(248,113,113,.28);border-radius:8px;background:#f871711a;color:#fecaca}.secure-inbox-empty,.secure-inbox-placeholder{color:var(--text-muted)}.secure-preference-note{margin:0 0 .75rem;padding:.55rem .75rem;border:1px solid rgba(14,165,233,.2);border-radius:8px;background:#0ea5e914;color:var(--text-muted);font-size:.82rem}.secure-inbox-placeholder{margin:auto;text-align:center}.secure-thread-button{width:100%;margin-bottom:.75rem;padding:1rem;border:1px solid var(--border);border-radius:8px;background:#ffffff09;color:#fff;text-align:left;cursor:pointer}.secure-thread-button.active{border-color:var(--primary);background:#0ea5e91a}.secure-thread-button p{margin:.45rem 0;color:var(--text-muted);font-size:.84rem;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.secure-thread-button small,.secure-attachment{color:var(--primary);font-weight:900}button.secure-attachment{display:inline-flex;align-items:center;gap:.4rem;width:fit-content;max-width:100%;margin:.15rem 0 .45rem;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}button.secure-attachment:hover{text-decoration:underline}.secure-conversation-header{margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid var(--border)}.secure-conversation-header p{margin:.35rem 0 0;color:var(--text-muted);text-transform:capitalize}.secure-message-list{flex:1;min-height:0;display:grid;align-content:start;gap:1rem;overflow-y:auto}.secure-message-card{padding:1rem;border:1px solid var(--border);border-radius:8px;background:#ffffff0a}.secure-message-card p{margin:.5rem 0;white-space:pre-wrap}.secure-reply-row{margin-top:1rem}.secure-reply-row textarea{flex:1;min-height:74px;min-width:0;padding:.9rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-main);color:#fff}.secure-reply-actions{display:flex;gap:.75rem;align-items:stretch}.secure-attach-button{position:relative;width:46px;min-height:46px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:8px;background:#ffffff0a;color:var(--text-muted);cursor:pointer;overflow:hidden}.secure-attach-button input{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.secure-attach-button:hover,.secure-attach-button:focus-within{border-color:#0ea5e973;color:var(--primary)}.secure-attachment-status{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-top:.75rem;color:var(--text-muted);font-size:.82rem}.secure-attachment-status span{display:inline-flex;align-items:center;gap:.45rem;min-width:0;max-width:100%;padding:.45rem .65rem;border:1px solid rgba(14,165,233,.28);border-radius:8px;background:#0ea5e914;color:var(--primary)}.secure-attachment-status span button{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:0;border-radius:999px;background:#ffffff14;color:inherit;cursor:pointer}.secure-attachment-status strong{color:#fecaca}.settings-shell{display:flex;flex-direction:column;gap:1.25rem}.settings-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:1.5rem;padding:2rem;border:1px solid var(--border);border-radius:8px;background:linear-gradient(135deg,#0ea5e924,#10b98114)}.settings-eyebrow{color:var(--secondary);font-size:.72rem;font-weight:900;letter-spacing:0;text-transform:uppercase}.settings-hero h2{max-width:760px;margin:.35rem 0 .65rem;font-size:2rem}.settings-hero p,.settings-panel p{color:var(--text-muted)}.settings-save-state{padding:.55rem .85rem;border:1px solid rgba(16,185,129,.28);border-radius:8px;background:#10b9811a;color:var(--secondary);font-weight:900}.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.settings-summary-grid,.settings-admin-grid{display:grid;gap:1rem}.settings-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.settings-summary-grid div{min-width:0;padding:1rem;border:1px solid var(--border);border-radius:8px;background:#ffffff09}.settings-summary-grid span,.settings-account-row span,.settings-role-card span{display:block;color:var(--text-muted);font-size:.78rem}.settings-summary-grid strong{display:block;margin-top:.35rem;color:var(--text-main);font-size:1.65rem;line-height:1}.settings-admin-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.settings-panel{min-width:0;padding:1.25rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-card)}.settings-panel-large{min-height:100%}.settings-panel-title{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;color:var(--primary)}.settings-panel-title h3{margin:0;font-size:1.05rem}.settings-field{display:grid;gap:.5rem;margin-bottom:1rem;min-width:0;color:var(--text-muted);font-weight:800}.settings-field span{overflow-wrap:anywhere}.settings-field select,.settings-field input{width:100%;min-width:0;min-height:44px;padding:.75rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-main);color:var(--text-main)}.settings-account-form{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:.85rem}.settings-account-form .settings-field:first-child,.settings-account-form .settings-primary-button{grid-column:1 / -1}.settings-primary-button{width:100%;min-width:0;min-height:44px;align-self:end;padding:.75rem 1rem;border:0;border-radius:8px;background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;cursor:pointer;font-weight:900}.settings-account-result,.settings-account-error,.settings-mfa-result,.settings-admin-only-note{display:flex;align-items:flex-start;gap:.5rem;margin-top:.85rem;padding:.75rem;border-radius:8px;font-weight:800;overflow-wrap:anywhere}.settings-account-result{border:1px solid rgba(16,185,129,.28);background:#10b9811a;color:#bbf7d0}.settings-mfa-result{border:1px solid rgba(14,165,233,.28);background:#0ea5e91a;color:#bae6fd;font-size:.78rem}.settings-mfa-result strong,.settings-mfa-result span,.settings-mfa-result small{display:block;overflow-wrap:anywhere}.settings-mfa-result strong{margin-bottom:.35rem;color:var(--text-main)}.settings-mfa-result small{margin-top:.35rem;color:var(--text-muted)}.settings-account-error{border:1px solid rgba(248,113,113,.28);background:#f871711a;color:#fecaca}.settings-admin-only-note{align-items:flex-start;border:1px solid rgba(14,165,233,.24);background:#0ea5e914;color:var(--text-muted)}.settings-admin-only-note svg{flex:0 0 auto;color:var(--primary)}.settings-admin-only-note strong,.settings-admin-only-note span{display:block}.settings-admin-only-note strong{color:var(--text-main)}.settings-admin-only-note span{margin-top:.2rem;font-size:.82rem}.settings-workflow-note{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.85rem;margin-top:1rem;padding:.85rem;border:1px solid rgba(14,165,233,.24);border-radius:8px;background:#0ea5e914}.settings-workflow-note svg{color:var(--primary)}.settings-workflow-note strong,.settings-workflow-note span{display:block}.settings-workflow-note span{color:var(--text-muted);font-size:.82rem}.settings-account-list,.settings-role-matrix{display:grid;gap:.75rem}.settings-account-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-width:0;padding:.8rem;border:1px solid rgba(255,255,255,.06);border-radius:8px;background:#ffffff08}.settings-account-row div{min-width:0}.settings-account-row small{display:block;margin-top:.25rem;color:var(--primary);font-size:.72rem;font-weight:800}.settings-account-row.portal-managed{border-color:#0ea5e92e}.settings-account-row strong{display:block;overflow:hidden;color:var(--text-main);text-overflow:ellipsis;white-space:nowrap}.settings-account-row em{flex:0 0 auto;color:var(--secondary);font-size:.75rem;font-style:normal;font-weight:900}.settings-account-actions{display:flex;flex:0 0 auto;align-items:center;gap:.6rem}.settings-account-actions button{min-height:32px;padding:.45rem .65rem;border:1px solid rgba(248,113,113,.28);border-radius:8px;background:#f871711a;color:#fecaca;cursor:pointer;font-size:.72rem;font-weight:900}.settings-account-actions button:hover{border-color:#f8717180;background:#f8717129}.settings-role-matrix{grid-template-columns:repeat(4,minmax(0,1fr))}.settings-role-card{min-width:0;padding:1rem;border:1px solid rgba(255,255,255,.06);border-radius:8px;background:#ffffff08}.settings-role-card strong{display:block;margin-bottom:.4rem;color:var(--text-main)}.pmr-shell{display:flex;flex-direction:column;gap:1.25rem}.pmr-hero{background:linear-gradient(135deg,#0ea5e91f,#10b98114),#ffffff08}.pmr-stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.pmr-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.25rem}.pmr-panel{min-width:0}.pmr-panel.wide{grid-column:1 / -1}.pmr-workflow-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}.pmr-workflow-card{min-width:0;display:flex;flex-direction:column;gap:.9rem;padding:1rem;border:1px solid var(--border);border-radius:8px;background:#ffffff09}.pmr-workflow-card>div{display:flex;gap:.75rem;align-items:flex-start;min-width:0}.pmr-workflow-icon{width:38px;height:38px;flex:0 0 38px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;background:#0ea5e91f;color:var(--primary)}.pmr-workflow-card strong,.pmr-workflow-card small,.pmr-workflow-card p{overflow-wrap:anywhere}.pmr-workflow-card strong{display:block;color:#fff}.pmr-workflow-card small,.pmr-workflow-card p,.pmr-ledger-summary span{color:var(--text-muted)}.pmr-workflow-card p{flex:1;margin:0;font-size:.86rem;line-height:1.55}.pmr-workflow-card .btn{width:100%;justify-content:center}.pmr-ledger-summary{display:grid;gap:.85rem;align-content:start}.pmr-ledger-summary strong{color:#fff;font-size:2.4rem;line-height:1}.pharmacist-queue-shell{display:grid;gap:1.25rem}.pharmacist-queue-hero{align-items:flex-start}.pharmacist-queue-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.pharmacist-queue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.pharmacist-queue-panel{min-height:260px}.pharmacist-lane{scroll-margin-top:1rem}.pharmacist-queue-panel.wide{grid-column:1 / -1}.pharmacist-request-card{text-align:left}.pharmacist-queue-item span{gap:.25rem}.pharmacist-rule-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem}.pharmacist-rule-grid div{display:grid;gap:.35rem;padding:1rem;border:1px solid rgba(96,165,250,.18);border-radius:.75rem;background:#60a5fa12}.pharmacist-rule-grid strong{color:#fff}.pharmacist-rule-grid span{color:var(--text-muted);font-size:.85rem;line-height:1.45}.cd-register-shell{display:flex;flex-direction:column;gap:1.25rem}.cd-register-hero{background:linear-gradient(135deg,#10b9811f,#0ea5e914),#ffffff08}.cd-register-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:1.25rem}.cd-register-form-card,.cd-register-balance-card,.cd-register-ledger{min-width:0}.cd-register-form,.cd-register-form label{display:grid;gap:.55rem}.cd-register-form{gap:1rem}.cd-register-form span{color:var(--text-muted);font-size:.78rem;font-weight:900}.cd-register-form input,.cd-register-form select,.cd-register-form textarea{width:100%;min-width:0;padding:.82rem .9rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-main);color:#fff}.cd-register-form textarea{min-height:110px;resize:vertical}.cd-register-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.cd-register-stock-note{padding:.7rem .85rem;border:1px solid rgba(14,165,233,.24);border-radius:8px;background:#0ea5e914;color:var(--text-muted);font-size:.84rem}.cd-review-panel{display:grid;gap:.8rem;margin-bottom:1rem;padding:.9rem;border:1px solid rgba(245,158,11,.32);border-radius:8px;background:#f59e0b14}.cd-review-panel>div:first-child,.cd-review-row{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.cd-review-panel>div:first-child{justify-content:flex-start;color:#fbbf24}.cd-review-panel strong,.cd-review-panel small,.cd-review-row span{display:block;min-width:0;overflow-wrap:anywhere}.cd-review-panel strong{color:#fff}.cd-review-panel small{margin-top:.18rem;color:var(--text-muted);font-size:.78rem;line-height:1.4}.cd-review-list{display:grid;gap:.55rem;max-height:380px;overflow-y:auto;padding-right:.15rem}.cd-review-row{width:100%;padding:.75rem;border:1px solid rgba(245,158,11,.26);border-radius:8px;background:#0f172a6b;color:inherit;cursor:pointer;text-align:left}.cd-review-row:hover{border-color:#f59e0b8f;background:#f59e0b1f}.cd-review-row em{flex:0 0 auto;color:#fbbf24;font-size:.78rem;font-style:normal;font-weight:900;white-space:nowrap}.cd-balance-list{display:grid;gap:.75rem}.cd-balance-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem;border:1px solid var(--border);border-radius:8px;background:#ffffff09}.cd-balance-row span{min-width:0}.cd-balance-row strong,.cd-balance-row small{display:block;overflow-wrap:anywhere}.cd-balance-row strong{color:#fff}.cd-balance-row small{margin-top:.2rem;color:var(--text-muted);font-size:.78rem}.cd-balance-row em{min-width:48px;color:var(--secondary);font-size:1.35rem;font-style:normal;font-weight:900;text-align:right}.cd-reconciliation-card{display:grid;gap:1rem;padding:1rem;border:1px solid var(--border);border-radius:12px;background:#ffffff09}.cd-reconciliation-card-top,.cd-reconciliation-review-panel{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.cd-reconciliation-card-top span,.cd-reconciliation-review-panel label{min-width:0;flex:1}.cd-reconciliation-card-top strong,.cd-reconciliation-card-top small,.cd-reconciliation-card-top span,.cd-reconciliation-evidence-grid strong,.cd-reconciliation-evidence-grid span,.cd-reconciliation-evidence-grid small{display:block;overflow-wrap:anywhere}.cd-reconciliation-card-top strong,.cd-reconciliation-evidence-grid strong{color:#fff}.cd-reconciliation-card-top small,.cd-reconciliation-evidence-grid span,.cd-reconciliation-evidence-grid small,.cd-reconciliation-notes{margin-top:.25rem;color:var(--text-muted);font-size:.8rem;line-height:1.5}.cd-reconciliation-card-top em{color:#fbbf24;font-size:.78rem;font-style:normal;font-weight:900;text-align:right;text-transform:uppercase}.cd-reconciliation-evidence-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem}.cd-reconciliation-evidence-grid div{padding:.8rem;border:1px solid rgba(14,165,233,.18);border-radius:8px;background:#0ea5e912}.cd-reconciliation-review-panel textarea{width:100%;min-height:86px;margin-top:.35rem;padding:.85rem;border:1px solid var(--border);border-radius:8px;background:var(--bg-main);color:var(--text-main);resize:vertical}.cd-reconciliation-notes{margin:0;padding:.8rem;border-left:3px solid rgba(16,185,129,.55);background:#10b98114;border-radius:8px}.cd-register-empty{display:grid;justify-items:center;gap:.75rem;padding:3rem 1rem;color:var(--text-muted)}.cd-register-table-wrap{max-width:100%;overflow-x:auto}.cd-register-mobile-ledger{display:none}.cd-register-mobile-entry{display:grid;gap:.85rem;padding:1rem;border:1px solid var(--border);border-radius:8px;background:#ffffff08}.cd-register-mobile-entry>div:first-child{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.cd-register-mobile-entry strong{color:#fff;overflow-wrap:anywhere}.cd-register-mobile-entry span,.cd-register-mobile-entry small,.cd-register-mobile-entry dt{color:var(--text-muted)}.cd-register-mobile-entry dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin:0}.cd-register-mobile-entry dl div{min-width:0;display:grid;gap:.2rem}.cd-register-mobile-entry dt{font-size:.68rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.cd-register-mobile-entry dd{margin:0;color:#fff;font-weight:800;overflow-wrap:anywhere}.cd-register-table-wrap table{width:100%;min-width:980px;border-collapse:collapse}.cd-register-table-wrap th,.cd-register-table-wrap td{padding:1rem;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}.cd-register-table-wrap th{color:var(--text-muted);font-size:.72rem;text-transform:uppercase}.cd-register-table-wrap td{color:var(--text-muted)}.cd-register-table-wrap td strong,.cd-register-table-wrap td small{display:block}.cd-register-table-wrap td strong{color:#fff}.cd-register-table-wrap td small{margin-top:.25rem;color:var(--text-muted)}.cd-register-correction-button{width:100%;min-height:34px;padding:.45rem .7rem;border:1px solid rgba(96,165,250,.26);border-radius:8px;background:#60a5fa14;color:#bfdbfe;cursor:pointer;font-size:.72rem;font-weight:900}.cd-register-correction-button:hover{border-color:#60a5fa7a;background:#60a5fa24}.settings-lock-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:.65rem .9rem;border:1px solid rgba(248,113,113,.28);border-radius:8px;background:#f871711a;color:#fecaca;cursor:pointer;font-weight:900}.settings-lock-button:hover{border-color:#f8717180;background:#f8717129}.settings-checklist{display:grid;gap:.75rem;margin:0;padding:0;list-style:none}.settings-checklist li{padding-left:1.25rem;color:var(--text-muted);position:relative}.settings-checklist li:before{content:"";position:absolute;top:.65rem;left:0;width:7px;height:7px;border-radius:50%;background:var(--secondary)}.settings-toggle-list{display:grid;gap:.75rem}.settings-toggle{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:44px;padding:.75rem 0;border-bottom:1px solid rgba(255,255,255,.06);color:var(--text-muted);font-weight:700}.settings-toggle:last-child{border-bottom:0}.settings-toggle input{width:18px;height:18px;accent-color:var(--primary)}.crm-fulfilment-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:3rem}.crm-fulfilment-kpis,.crm-table-action-row{display:flex;gap:1.5rem;font-size:.85rem;font-weight:700}.crm-table-action-row{gap:.5rem}.crm-table-action-stack{display:grid;gap:.4rem}.crm-orders-action-cell{min-width:136px}.crm-orders-actions{width:min(150px,100%)}.crm-orders-actions.crm-table-action-row{align-items:stretch;flex-direction:column;gap:.5rem}.crm-orders-actions .btn,.crm-orders-actions select{width:100%;justify-content:center}.crm-orders-actions small{overflow-wrap:anywhere}.crm-pmr-export-button{border-color:#10b98147!important;color:#86efac!important;background:#10b98114!important}.crm-pmr-export-readiness-note{max-width:1180px;margin:1rem auto 0;padding:.85rem 1rem;border:1px solid rgba(16,185,129,.22);border-radius:.85rem;background:#10b98112;color:#bbf7d0;font-size:.82rem;line-height:1.45}.crm-order-item-chip{display:flex;justify-content:space-between;gap:.75rem;min-width:0;margin-bottom:.25rem;padding:.4rem .8rem;border:1px solid var(--border);border-radius:.5rem;background:#ffffff08;font-size:.85rem}.crm-order-item-chip span{min-width:0;overflow-wrap:anywhere}.crm-order-item-chip span:last-child{flex:0 0 auto;color:var(--primary);font-weight:800}.crm-orders-mobile-list{display:none}.crm-orders-mobile-card{display:grid;gap:.9rem;padding:1rem;border:1px solid var(--border);border-radius:8px;background:#ffffff08}.crm-orders-mobile-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem}.crm-orders-mobile-card-top span{min-width:0}.crm-orders-mobile-card-top strong,.crm-orders-mobile-card-top small{display:block;overflow-wrap:anywhere}.crm-orders-mobile-card-top strong{color:#fff}.crm-orders-mobile-card-top small,.crm-orders-mobile-card dt{color:var(--text-muted)}.crm-orders-mobile-card-top em{flex:0 0 auto;color:var(--secondary);font-size:.72rem;font-style:normal;font-weight:900;text-transform:uppercase}.crm-orders-mobile-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:0}.crm-orders-mobile-card dl div{min-width:0;display:grid;gap:.2rem}.crm-orders-mobile-card dt{font-size:.68rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.crm-orders-mobile-card dd{margin:0;color:#fff;font-weight:800;overflow-wrap:anywhere}.crm-orders-mobile-actions .crm-orders-actions{width:100%}.crm-stock-toolbar,.crm-stock-section-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:3rem;flex-wrap:wrap}.crm-stock-section-head{margin-bottom:1.5rem}.crm-stock-toolbar-actions,.crm-procurement-action-cell{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.crm-stock-toolbar-actions .btn{min-height:44px}.crm-stock-refresh-button,.crm-stock-icon-button{width:38px;min-width:38px;height:38px;padding:0;flex:0 0 auto}.crm-stock-refresh-button{width:46px;min-width:46px;height:44px}.crm-stock-modal-backdrop,.crm-procurement-drawer-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem;background:#000000d9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.crm-procurement-drawer-backdrop{z-index:999;justify-content:flex-end;padding:0;background:#020617b8}.crm-stock-modal{width:min(460px,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);overflow-y:auto;padding:2rem;border:1px solid var(--border);box-shadow:0 20px 50px #00000080}.crm-stock-modal.large{width:min(560px,calc(100vw - 2rem));padding:2.25rem}.crm-stock-modal.compact{width:min(400px,calc(100vw - 2rem));padding:2.5rem}.crm-stock-modal-topbar{display:flex;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}.crm-stock-form{display:grid;gap:1rem}.crm-stock-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.crm-stock-field{display:grid;gap:.45rem;color:var(--text-muted);font-size:.82rem;font-weight:800}.crm-stock-field input,.crm-stock-field select,.crm-stock-field textarea,.crm-procurement-action-cell select{width:100%;min-width:0;padding:.8rem;border:1px solid var(--border);border-radius:.75rem;background:var(--bg-main);color:#fff}.crm-stock-field textarea{min-height:110px}.crm-stock-modal-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:1rem;margin-top:1.5rem}.crm-stock-modal-actions .btn{width:100%}.crm-stock-adjuster{display:flex;align-items:center;justify-content:center;gap:2.5rem;margin-bottom:3rem}.crm-stock-stepper{width:50px;min-width:50px;height:50px;padding:0;border-radius:1rem}.crm-stock-adjuster-value{min-width:80px;color:var(--text-muted);font-size:3rem;font-weight:900;text-align:center}.crm-stock-adjuster-value.positive{color:var(--secondary)}.crm-stock-adjuster-value.negative{color:#f87171}.crm-stock-warning-note{margin-bottom:1rem;padding:.9rem;border:1px solid rgba(251,191,36,.22);border-radius:.75rem;background:#fbbf241a;color:#fbbf24}.crm-stock-batch-alert{display:flex;align-items:center;gap:.65rem;margin:1rem 0;padding:.9rem 1rem;border-radius:.9rem;border:1px solid rgba(251,191,36,.25);background:#fbbf2414;color:#fde68a;font-weight:700}.crm-stock-batch-cell{display:grid;gap:.25rem;min-width:160px}.crm-stock-batch-cell strong{color:#fff;font-size:.85rem}.crm-stock-batch-cell small{color:var(--text-muted);font-size:.76rem}.crm-stock-ratio{display:flex;gap:.5rem;font-weight:700}.crm-stock-ratio span:first-child{color:var(--primary)}.crm-stock-ratio span:nth-child(2){opacity:.2}.crm-stock-ratio span:last-child{color:var(--secondary)}.crm-stock-level{display:flex;align-items:center;gap:1rem;min-width:0}.crm-stock-level>span{min-width:45px;color:#fff;font-size:1.1rem;font-weight:900}.crm-stock-level>div{flex:1;max-width:100px;height:6px;overflow:hidden;border-radius:3px;background:#ffffff0d}.crm-stock-level i{display:block;height:100%;box-shadow:0 0 10px #00000080}.crm-stock-availability{display:flex;align-items:center;gap:.4rem;width:fit-content;padding:.3rem .6rem;border-radius:.5rem;font-size:.65rem;font-weight:900;text-transform:uppercase}.crm-stock-availability.ok{border:1px solid rgba(16,185,129,.2);background:#10b9811a;color:var(--secondary)}.crm-stock-availability.low{border:1px solid rgba(248,113,113,.2);background:#f871711a;color:#f87171}.crm-cd-stock-balance{display:flex;align-items:center;gap:.4rem;width:fit-content;margin-top:.45rem;padding:.3rem .6rem;border-radius:.5rem;font-size:.65rem;font-weight:900;text-transform:uppercase}.crm-cd-stock-balance.ok{border:1px solid rgba(96,165,250,.22);background:#60a5fa14;color:#93c5fd}.crm-cd-stock-balance.warning{border:1px solid rgba(248,113,113,.24);background:#f8717117;color:#fca5a5}.crm-cd-stock-balance.reserved{border:1px solid rgba(96,165,250,.24);background:#60a5fa14;color:#bfdbfe}.crm-stock-row-actions .btn{padding:.5rem 1rem;font-size:.75rem}.crm-stock-mobile-list{display:none}.crm-stock-mobile-card{display:grid;gap:.9rem;padding:1rem;border:1px solid var(--border);border-radius:.9rem;background:#ffffff08}.crm-stock-mobile-card-top,.crm-stock-mobile-status{display:flex;align-items:flex-start;justify-content:space-between;gap:.85rem}.crm-stock-mobile-card-top>span{display:grid;gap:.25rem;min-width:0}.crm-stock-mobile-card-top strong{color:#fff;overflow-wrap:anywhere}.crm-stock-mobile-card-top small{color:var(--text-muted);font-weight:700}.crm-stock-mobile-actions .crm-stock-row-actions{width:100%}.crm-batch-status{display:flex;align-items:center;gap:.4rem;width:fit-content;margin-top:.5rem;padding:.3rem .6rem;border-radius:.5rem;font-size:.65rem;font-weight:900;text-transform:uppercase;border:1px solid rgba(148,163,184,.2);color:var(--text-muted);background:#94a3b814}.crm-batch-status.released{color:#34d399;border-color:#34d39938;background:#34d39914}.crm-batch-status.quarantined,.crm-batch-status.expired{color:#fbbf24;border-color:#fbbf243d;background:#fbbf2414}.crm-batch-status.recalled{color:#f87171;border-color:#f871713d;background:#f8717114}.crm-dispensing-check-note,.crm-dispensing-inline-note{display:flex;align-items:flex-start;gap:.55rem;color:#bfdbfe}.crm-dispensing-check-note{margin:1rem 0;padding:.9rem 1rem;border:1px solid rgba(96,165,250,.25);border-radius:.85rem;background:#60a5fa14;font-size:.86rem;line-height:1.45}.crm-dispensing-inline-note{max-width:220px;font-size:.74rem;line-height:1.35}.crm-fulfilment-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem;background:#000000d9;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.crm-fulfilment-modal{width:min(460px,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);overflow-y:auto;padding:2rem;border:1px solid var(--border);box-shadow:0 20px 50px #00000080}.crm-fulfilment-modal-field{display:grid;gap:.45rem;margin-bottom:1rem;color:var(--text-muted);font-size:.82rem;font-weight:800}.crm-fulfilment-modal-input,.crm-fulfilment-modal-textarea{width:100%;min-height:44px;padding:.8rem;border:1px solid var(--border);border-radius:.75rem;background:var(--bg-main);color:var(--text-main);font:inherit}.crm-fulfilment-modal-textarea{min-height:110px;resize:vertical}.crm-fulfilment-modal-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:1rem;margin-top:1.25rem}.crm-label-print-button{justify-content:center;width:100%;padding:.5rem .75rem;font-size:.75rem}.crm-label-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:1rem;background:#000000d1;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.crm-label-modal{width:min(560px,calc(100vw - 2rem));max-height:calc(100vh - 2rem);overflow-y:auto}.crm-label-modal-topbar,.crm-label-actions{display:flex;align-items:center;justify-content:space-between;gap:1rem}.crm-label-modal-topbar h3{margin:.2rem 0 0}.crm-dispensing-label{margin-top:1rem;padding:1.25rem;border:1px solid rgba(15,23,42,.18);border-radius:.4rem;background:#fff;color:#111827;font-family:Arial,sans-serif}.crm-label-header,.crm-label-patient{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid #d1d5db;padding-bottom:.65rem;margin-bottom:.65rem}.crm-label-header strong{font-size:1.05rem}.crm-label-grid{display:grid;grid-template-columns:100px 1fr;gap:.35rem .75rem;margin-bottom:.8rem;font-size:.86rem}.crm-label-grid span{color:#4b5563;font-weight:700}.crm-label-items{display:grid;gap:.5rem;margin-bottom:.8rem}.crm-label-items div{display:grid;gap:.15rem;padding:.55rem;border:1px solid #d1d5db;border-radius:.3rem}.crm-label-items span,.crm-dispensing-label p{font-size:.82rem}.crm-label-actions{margin-top:1rem}@media print{body *{visibility:hidden}.crm-dispensing-label,.crm-dispensing-label *{visibility:visible}.crm-dispensing-label{position:fixed;inset:0 auto auto 0;width:100%;margin:0;box-shadow:none}}.crm-procurement-drawer{width:min(520px,100vw);height:100%;overflow-y:auto;padding:2rem;border-left:1px solid var(--border);background:#111827;box-shadow:-20px 0 50px #00000059}.crm-procurement-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-bottom:1.5rem}.crm-procurement-detail-card{min-width:0;padding:.85rem;border:1px solid var(--border);border-radius:.75rem;background:#ffffff0a}.crm-procurement-detail-card small{color:var(--text-muted);font-weight:800;text-transform:uppercase}.crm-procurement-detail-card div{margin-top:.25rem;color:#fff;font-weight:800;overflow-wrap:anywhere}.crm-procurement-action-cell select{min-width:150px;padding:.55rem;border-radius:.65rem}@media (max-width: 1380px){.header{align-items:flex-start;flex-direction:column}.crm-header-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.header input{width:clamp(240px,42vw,350px)!important}.crm-global-search{width:clamp(240px,42vw,350px)}.crm-stat-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.crm-command-grid,.settings-grid,.settings-account-form,.settings-summary-grid,.settings-role-matrix,.pmr-workflow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-panel.audit{grid-column:span 2}.crm-marketing-shell{grid-template-columns:1fr!important;gap:1rem!important}.crm-segment-grid{grid-template-columns:1fr!important}}@media (max-width: 1100px) and (min-width: 901px){.main-content{padding:1.5rem}.header{align-items:flex-start;flex-direction:column}.crm-header-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.header input{width:min(320px,calc(100vw - 320px))!important}.crm-global-search{width:min(320px,calc(100vw - 320px))}.crm-stat-grid,.crm-command-grid,.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-admin-grid{grid-template-columns:1fr}.settings-role-matrix{grid-template-columns:repeat(2,minmax(0,1fr))}.pmr-grid,.pharmacist-queue-grid,.pmr-workflow-grid,.pharmacist-rule-grid,.cd-register-grid{grid-template-columns:1fr}.crm-panel.audit{grid-column:span 2}.consultation-log-toolbar{align-items:flex-start}.secure-inbox-shell{grid-template-columns:minmax(260px,320px) minmax(0,1fr)}.secure-inbox-shell.admin{grid-template-columns:1fr;height:auto}.secure-inbox-shell.admin .secure-inbox-sidebar,.secure-inbox-shell.admin .secure-inbox-panel{height:auto;max-height:none}.secure-inbox-shell.admin .secure-inbox-sidebar{max-height:360px}}@media (max-width: 900px){.sidebar{display:none!important}.main-content{margin-left:0;padding:1.5rem 1.5rem 6.75rem;width:100%;max-width:100vw;overflow-x:hidden}.card{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.card table{min-width:720px}.crm-mobile-nav{position:fixed;right:0;bottom:0;left:0;z-index:1000;display:flex;justify-content:flex-start;gap:.25rem;min-height:80px;padding:.4rem .55rem;background:#1e293b;border-top:1px solid var(--border);box-shadow:0 -12px 30px #00000059;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}.crm-mobile-nav::-webkit-scrollbar{display:none}.crm-mobile-nav a{flex:0 0 70px;min-width:70px;height:64px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:.25rem;color:#94a3b8;text-decoration:none;border-radius:.8rem;font-size:.62rem;line-height:1.1;text-align:center;font-weight:700;scroll-snap-align:start;white-space:normal}.crm-mobile-nav a.active{color:var(--primary);background:#0ea5e91a}.header{align-items:flex-start;gap:1.5rem;flex-direction:column}.header>div:last-child{width:100%;align-items:flex-start!important;flex-direction:column;gap:1rem!important}.header input{width:min(350px,calc(100vw - 3rem))!important}.crm-global-search{width:min(350px,calc(100vw - 3rem))}.crm-fulfilment-toolbar{align-items:flex-start;flex-direction:column;margin-bottom:2rem}.crm-fulfilment-kpis{width:100%;flex-wrap:wrap;gap:.75rem 1rem}.crm-command-hero,.settings-hero{flex-direction:column}.crm-hero-actions{width:100%;flex-wrap:wrap}.crm-stat-grid,.crm-command-grid{grid-template-columns:1fr 1fr}.crm-panel.audit{grid-column:span 2}}@media (max-width: 680px){.main-content{padding:1rem 1rem 6.75rem}.header input{width:calc(100vw - 2rem)!important}.crm-global-search{width:100%}.crm-command-hero,.crm-panel,.crm-marketing-shell .card,.crm-stat-card{padding:1rem}.card table{min-width:640px}.crm-marketing-shell textarea{min-height:240px;height:240px!important}.crm-stat-grid,.crm-command-grid,.settings-grid,.settings-summary-grid,.settings-admin-grid,.settings-account-form,.settings-role-matrix,.settings-workflow-note,.pmr-grid,.pharmacist-queue-grid,.pmr-workflow-grid,.pharmacist-rule-grid,.cd-register-grid,.cd-register-form-grid{grid-template-columns:1fr}.crm-panel.audit{grid-column:span 1}.crm-hero-actions .btn,.crm-list-item,.crm-audit-item{width:100%}.crm-list-item,.crm-audit-item{align-items:flex-start;flex-direction:column}.audit-scope-bar button{flex:1 1 calc(50% - .5rem);justify-content:center}.crm-table-action-row{align-items:stretch;flex-direction:column}.crm-stock-toolbar{align-items:flex-start;flex-direction:column;margin-bottom:2rem}.crm-stock-toolbar-actions,.crm-procurement-action-cell{width:100%}.crm-stock-table-wrap{display:none}.crm-stock-mobile-list{display:grid;gap:.85rem}.crm-stock-mobile-card-top,.crm-stock-mobile-status,.crm-stock-level{flex-direction:column}.crm-stock-level>div{width:100%;max-width:none}.crm-procurement-action-cell select{flex:1 1 180px}.crm-orders-mobile-list{display:grid;gap:.85rem}.crm-orders-table-wrap{display:none}.crm-orders-mobile-card-top,.crm-order-item-chip{flex-direction:column}.crm-orders-mobile-card dl{grid-template-columns:1fr}.cd-register-table-wrap{display:none}.cd-register-mobile-ledger{display:grid;gap:.85rem}.cd-register-mobile-entry>div:first-child,.cd-reconciliation-card-top,.cd-reconciliation-review-panel{flex-direction:column}.cd-reconciliation-card-top em,.cd-reconciliation-review-panel .cd-register-correction-button{width:100%;text-align:left}.cd-register-mobile-entry dl{grid-template-columns:1fr}.crm-profile-drawer{width:100vw;padding:1rem;border-left:0}.crm-profile-topbar{top:-1rem;margin:-1rem -1rem 1.5rem;padding:1rem}.crm-profile-status-grid,.grid-vitals,.crm-verification-actions,.crm-assignment-control{grid-template-columns:1fr}.crm-profile-identity{align-items:flex-start}.crm-patient-toolbar,.crm-modal-actions{align-items:stretch;flex-direction:column}.crm-modal-actions,.crm-appointment-time-grid{grid-template-columns:1fr}.crm-patient-search,.crm-patient-total{width:100%}.crm-patient-form{grid-template-columns:1fr}.consultation-log-toolbar,.consultation-log-card-header{flex-direction:column;align-items:stretch}.consultation-log-search{width:100%}.crm-prescription-card>div{flex-direction:column}.secure-inbox-shell{grid-template-columns:1fr}.secure-inbox-panel{min-height:560px}.secure-reply-row{flex-direction:column}.secure-reply-actions{width:100%}.secure-reply-actions .btn{flex:1}.crm-stock-modal-backdrop{align-items:flex-end;padding:.75rem}.crm-stock-modal,.crm-stock-modal.large,.crm-stock-modal.compact{width:100%;max-height:calc(100dvh - 1.5rem);padding:1rem}.crm-stock-modal-topbar{align-items:flex-start}.crm-stock-form-grid,.crm-stock-modal-actions,.crm-fulfilment-modal-actions,.crm-procurement-detail-grid{grid-template-columns:1fr}.crm-fulfilment-modal{width:100%;padding:1rem}.crm-stock-adjuster{gap:1rem;margin-bottom:2rem}.crm-stock-adjuster-value{min-width:64px;font-size:2.5rem}.crm-procurement-drawer{width:100vw;padding:1rem;border-left:0}}.incident-register-shell{display:flex;flex-direction:column;gap:1.4rem}.incident-register-hero{align-items:flex-start}.incident-hero-actions{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:flex-end}.incident-export-assurance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}.incident-export-assurance span{min-width:0;padding:.95rem;border:1px solid rgba(37,99,235,.18);border-radius:1rem;background:#2563eb12;color:#475569;font-size:.86rem;line-height:1.45;overflow-wrap:anywhere}.incident-export-assurance strong{color:#1d4ed8}.incident-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem}.incident-summary-card{display:grid;gap:.45rem;min-height:118px}.incident-summary-card svg{color:#2563eb}.incident-summary-card span{color:#64748b;font-size:.82rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.incident-summary-card strong{color:#0f172a;font-size:2rem}.incident-register-grid{display:grid;grid-template-columns:minmax(320px,.95fr) minmax(360px,1.05fr);gap:1.2rem;align-items:start}.incident-create-card,.incident-list-card,.incident-detail-card{border:1px solid rgba(148,163,184,.22)}.incident-form,.incident-action-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.incident-form label,.incident-action-form label{display:flex;flex-direction:column;gap:.35rem;font-weight:800;color:#334155}.incident-form input,.incident-form select,.incident-form textarea,.incident-action-form input,.incident-action-form select,.incident-action-form textarea{border:1px solid rgba(148,163,184,.45);border-radius:14px;padding:.78rem .85rem;background:#fff;color:#0f172a}.incident-form textarea,.incident-action-form textarea{min-height:92px;resize:vertical}.incident-form-wide,.incident-checkboxes{grid-column:1 / -1}.incident-checkboxes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.incident-checkboxes label{flex-direction:row;align-items:center;background:#f8fafc;border:1px solid rgba(148,163,184,.2);border-radius:14px;padding:.72rem}.incident-list{display:flex;flex-direction:column;gap:.8rem;max-height:720px;overflow:auto;padding-right:.15rem}.incident-list-item{text-align:left;border:1px solid rgba(148,163,184,.22);background:#fff;border-radius:18px;padding:.95rem;display:grid;gap:.35rem;cursor:pointer;color:#0f172a}.incident-list-item.active{border-color:#2563eb;box-shadow:0 18px 44px #2563eb24}.incident-list-item.urgent{border-left:5px solid #dc2626}.incident-list-item small{color:#64748b}.incident-severity{width:fit-content;border-radius:999px;padding:.25rem .55rem;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.incident-severity.low{background:#ecfdf5;color:#047857}.incident-severity.medium{background:#eff6ff;color:#1d4ed8}.incident-severity.high{background:#fff7ed;color:#c2410c}.incident-severity.critical{background:#fef2f2;color:#b91c1c}.incident-status-actions{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:flex-end}.incident-status-actions button{border:1px solid rgba(148,163,184,.3);background:#fff;color:#334155;border-radius:999px;padding:.45rem .75rem;font-weight:800;text-transform:capitalize}.incident-status-actions button.active{background:#0f172a;color:#fff}.incident-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:1rem 0}.incident-detail-grid>div{background:#f8fafc;border:1px solid rgba(148,163,184,.2);border-radius:18px;padding:1rem}.incident-detail-grid strong{display:block;margin-bottom:.35rem;color:#0f172a}.incident-detail-grid p{margin:0;color:#475569}.incident-timeline{display:grid;gap:.8rem;margin-top:1rem}.incident-timeline-item{display:grid;grid-template-columns:auto 1fr;gap:.75rem;padding:.9rem;border:1px solid rgba(148,163,184,.2);border-radius:18px;background:#fff}.incident-timeline-item svg{color:#2563eb;margin-top:.15rem}.incident-timeline-item p{margin:.2rem 0;color:#334155}.incident-timeline-item small{color:#64748b}@media (max-width: 1180px){.incident-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.incident-export-assurance,.incident-register-grid,.incident-detail-grid{grid-template-columns:1fr}}@media (max-width: 720px){.incident-summary-grid,.incident-form,.incident-action-form,.incident-checkboxes{grid-template-columns:1fr}.incident-status-actions{justify-content:flex-start}}.pharmacy-dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.9rem;margin:1.25rem 0}.pharmacy-metric-card{display:grid;grid-template-columns:auto 1fr;grid-template-areas:"icon label" "icon value" "icon detail";align-items:center;gap:.25rem .8rem;min-height:120px;width:100%;padding:1rem;border:1px solid var(--border);border-radius:8px;background:linear-gradient(145deg,#0ea5e91a,#0f172ac7);box-shadow:var(--shadow-premium);color:var(--text-main);text-align:left;cursor:pointer}.pharmacy-metric-card:hover{border-color:#0ea5e973;transform:translateY(-1px)}.pharmacy-metric-card svg{grid-area:icon;width:42px;height:42px;padding:.6rem;border-radius:8px;background:#ffffff12;color:var(--primary)}.pharmacy-metric-card span{grid-area:label;color:var(--text-muted);font-size:.76rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.pharmacy-metric-card strong{grid-area:value;color:#fff;font-size:clamp(1.7rem,2vw,2.2rem);line-height:1}.pharmacy-metric-card small{grid-area:detail;color:var(--text-muted);font-size:.8rem}.crm-action-row{display:flex;flex-wrap:wrap;gap:.6rem}.cd-register-ledger>.crm-action-row .cd-register-correction-button{flex:1 1 180px}.access-emergency-row{align-items:flex-start;gap:1rem}.access-grant-list{display:grid;gap:.65rem;margin-top:.75rem}.access-grant-pill{display:flex;align-items:flex-start;gap:.65rem;padding:.75rem;border:1px solid rgba(14,165,233,.18);border-radius:16px;background:#0ea5e90f}.access-grant-pill>span:first-of-type{display:grid;gap:.25rem;min-width:0}.access-grant-form{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:.75rem;margin-top:.85rem;padding:.85rem;border:1px dashed rgba(96,165,250,.3);border-radius:18px;background:#0f172a8c}.access-grant-form label{display:grid;gap:.35rem;font-size:.78rem;color:var(--text-muted)}.access-grant-form input{width:100%;border:1px solid rgba(148,163,184,.28);border-radius:12px;padding:.65rem .75rem;background:#0f172ac7;color:var(--text-main);font:inherit}.access-grant-form .access-grant-reason{grid-column:1 / -1}.access-grant-form button{grid-column:1 / -1;justify-self:flex-start}@media (max-width: 760px){.access-emergency-row,.access-grant-pill{flex-direction:column}.access-grant-form{grid-template-columns:1fr}}.information-governance-evidence-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.information-governance-evidence-card{display:grid;gap:.55rem;min-height:150px;padding:1rem;border-radius:1rem;border:1px solid rgba(148,163,184,.22);background:linear-gradient(145deg,#0f172af0,#1e293bb8);box-shadow:0 18px 38px #02061733}.information-governance-evidence-card span{width:fit-content;padding:.2rem .55rem;border-radius:999px;background:#0ea5e924;color:#7dd3fc;font-size:.72rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.information-governance-evidence-card.ready span{background:#10b98124;color:#6ee7b7}.information-governance-evidence-card.active span,.information-governance-evidence-card.review span,.information-governance-evidence-card.due span,.information-governance-evidence-card.overdue span,.information-governance-evidence-card.evidence-required span{background:#f59e0b29;color:#fcd34d}.information-governance-evidence-card strong{color:#f8fafc;font-size:1rem}.information-governance-evidence-card em{color:#38bdf8;font-size:1.45rem;font-style:normal;font-weight:900}.information-governance-evidence-card small{color:#cbd5e1;line-height:1.45}.supplier-processor-form{margin-bottom:1.25rem}.supplier-transfer-check{display:flex;align-items:center;gap:.65rem;color:#dbeafe;font-weight:800}.supplier-transfer-check input{width:auto}.supplier-processor-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem}.supplier-processor-card{display:grid;gap:.55rem;padding:1rem;border-radius:1rem;border:1px solid rgba(148,163,184,.22);background:#0f172ab8}.supplier-processor-card.critical,.supplier-processor-card.high{border-color:#f59e0b61;background:linear-gradient(145deg,#78350f33,#0f172ad1)}.supplier-processor-card span{color:#93c5fd;font-size:.74rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.supplier-processor-card strong{color:#f8fafc}.supplier-processor-card small{color:#cbd5e1;line-height:1.4}.supplier-processor-card p{color:#e2e8f0;margin:0;line-height:1.45}.restore-assurance-panel{display:grid;gap:1rem;margin-bottom:1.25rem;padding:1rem;border:1px solid rgba(96,165,250,.24);border-radius:1rem;background:linear-gradient(135deg,#1e40af2e,#0f172ab8)}.restore-assurance-panel.ready{border-color:#22c55e52;background:linear-gradient(135deg,#14532d42,#0f172ab8)}.restore-assurance-panel h4{margin:0;color:#f8fafc;font-size:1.2rem}.restore-assurance-panel p,.restore-assurance-panel small{margin:0;color:#cbd5e1;line-height:1.45}.restore-assurance-grid,.restore-assurance-checklist{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem}.restore-assurance-grid span,.restore-assurance-checklist span{min-width:0;padding:.8rem;border:1px solid rgba(148,163,184,.2);border-radius:.85rem;background:#0f172a8c;color:#dbeafe;overflow-wrap:anywhere}.restore-assurance-grid strong{display:block;color:#bfdbfe;font-size:1.25rem}.restore-assurance-checklist span.complete{border-color:#22c55e47;color:#bbf7d0}.restore-assurance-checklist span.pending{border-color:#f59e0b52;color:#fde68a}.backup-rehearsal-form{margin-bottom:1.25rem}.backup-rehearsal-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem;margin:.25rem 0 .85rem}.backup-rehearsal-checks label{display:flex;align-items:center;gap:.65rem;padding:.75rem;border:1px solid rgba(148,163,184,.22);border-radius:.9rem;background:#0f172a94;color:#dbeafe;font-weight:800}.backup-rehearsal-checks input{width:auto}.backup-rehearsal-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}.backup-rehearsal-card{display:grid;gap:.55rem;padding:1rem;border-radius:1rem;border:1px solid rgba(148,163,184,.22);background:#0f172ab8}.backup-rehearsal-card.pass{border-color:#22c55e59;background:linear-gradient(145deg,#14532d38,#0f172ad1)}.backup-rehearsal-card.partial,.backup-rehearsal-card.fail{border-color:#f59e0b61;background:linear-gradient(145deg,#78350f38,#0f172ad1)}.backup-rehearsal-card span{color:#93c5fd;font-size:.74rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.backup-rehearsal-card strong{color:#f8fafc}.backup-rehearsal-card small,.backup-rehearsal-card em{color:#cbd5e1;line-height:1.4;font-style:normal}.backup-rehearsal-card p{color:#e2e8f0;margin:0;line-height:1.45}.clinical-safety-evidence-form{margin-bottom:1.25rem}.clinical-safety-evidence-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem}.clinical-safety-evidence-card{display:grid;gap:.55rem;padding:1rem;border-radius:1rem;border:1px solid rgba(148,163,184,.22);background:#0f172ab8}.clinical-safety-evidence-card.critical,.clinical-safety-evidence-card.high{border-color:#f871716b;background:linear-gradient(145deg,#7f1d1d3d,#0f172ad6)}.clinical-safety-evidence-card span{color:#93c5fd;font-size:.74rem;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.clinical-safety-evidence-card strong{color:#f8fafc}.clinical-safety-evidence-card small,.clinical-safety-evidence-card em{color:#cbd5e1;line-height:1.4;font-style:normal}.clinical-safety-evidence-card p{color:#e2e8f0;margin:0;line-height:1.45}.followup-governance-panel{margin-top:1.25rem}.followup-governance-list{display:grid;gap:1rem}.followup-governance-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1rem;align-items:start;border-left:4px solid #38bdf8}.followup-governance-card.red-flag{border-left-color:#f87171;background:#7f1d1d29}.followup-governance-card small,.followup-governance-card p{display:block;color:#cbd5e1;margin:.25rem 0}.followup-governance-card textarea{width:100%;min-height:88px;margin-top:.6rem;border-radius:.8rem;border:1px solid rgba(148,163,184,.22);background:#0f172ac2;color:#f8fafc;padding:.75rem}.followup-governance-actions{display:grid;gap:.5rem}@media (max-width: 900px){.followup-governance-card,.followup-governance-actions{grid-template-columns:1fr}}.security-assurance-panel{margin-top:1.25rem}.security-assurance-form textarea{min-height:96px}.security-assurance-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.85rem;margin-top:1rem}.security-assurance-card{border:1px solid rgba(148,163,184,.18);border-left:4px solid #38bdf8;border-radius:1rem;padding:1rem;background:#0f172ab8;display:grid;gap:.35rem}.security-assurance-card.high{border-left-color:#f59e0b}.security-assurance-card.critical{border-left-color:#f87171;background:#7f1d1d29}.security-assurance-card.low{border-left-color:#34d399}.security-assurance-card span{color:#93c5fd;font-size:.75rem;font-weight:800;text-transform:uppercase}.security-assurance-card strong{color:#f8fafc}.security-assurance-card small,.security-assurance-card p,.security-assurance-card em{color:#cbd5e1;line-height:1.45;margin:0}.pmr-evidence-ledger .crm-panel-header{align-items:center}.pmr-evidence-assurance-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-bottom:1rem}.pmr-evidence-assurance-strip span{min-width:0;padding:.85rem;border:1px solid rgba(16,185,129,.2);border-radius:.85rem;background:#10b98112;color:var(--text-muted);font-size:.82rem;line-height:1.4;overflow-wrap:anywhere}.pmr-evidence-assurance-strip strong{color:#bbf7d0}.pmr-ledger-table{display:grid;gap:.85rem}.pmr-ledger-row{display:grid;grid-template-columns:minmax(220px,1.1fr) minmax(180px,.9fr) auto;gap:1rem;align-items:center;padding:.95rem;border:1px solid rgba(148,163,184,.18);border-radius:1rem;background:#0f172a73}.pmr-ledger-row strong,.pmr-ledger-row small,.pmr-ledger-row code,.pmr-ledger-row em{display:block;overflow-wrap:anywhere}.pmr-ledger-row small,.pmr-ledger-row em{color:var(--text-muted);font-style:normal}.pmr-ledger-row code{color:var(--primary);font-size:.78rem}@media (max-width: 900px){.pmr-evidence-ledger .crm-panel-header,.pmr-evidence-assurance-strip,.pmr-ledger-row{grid-template-columns:1fr;align-items:stretch}.pmr-evidence-ledger .btn{width:100%}}
