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