:root{--practice-teal:#147f84;--practice-violet:#7960ba;--practice-blue:#407fc1;--practice-peach:#d98253;--practice-rose:#bf5570}
html,body,.app-shell,.workspace,.main-content{min-width:0;max-width:100%}
.practice-clinic-name{display:flex;gap:10px;align-items:center;padding:14px 14px 16px;margin:0 12px 6px;background:#eaf5f2;border-radius:16px;color:#28605d;font-size:13px}
.practice-clinic-name span{display:grid;gap:5px;min-width:0}.practice-clinic-name small{font-size:10px;line-height:1.5;font-weight:400}
.practice-locked-profile{display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1px solid #dce5eb;border-radius:50%;width:44px;height:44px;min-width:44px;padding:4px;color:#34505e;cursor:pointer}.practice-locked-profile:focus-visible,.profile-card:focus-visible{outline:3px solid #367c69;outline-offset:3px}.profile-card>.practice-avatar,.profile-card>.avatar{width:36px;height:36px;flex:0 0 36px}
.practice-locked-profile span{display:grid;gap:2px}.practice-locked-profile strong{font-size:12px}.practice-locked-profile small{font-size:10px;color:#77868e}.practice-locked-profile>.icon{width:14px}
.practice-avatar{width:42px;height:42px;object-fit:cover;border-radius:50%;border:2px solid #fff;box-shadow:0 1px 6px #274b5117}.practice-locked-profile .practice-avatar{width:32px;height:32px}
.practice-recency{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.practice-recency>span{display:grid;grid-template-columns:22px 1fr;gap:3px 9px;align-items:center;background:#edf5fa;border:1px solid #dcecf3;border-radius:14px;padding:11px 15px;flex:1;min-width:180px}.practice-recency strong{font-size:13px;color:#376078}.practice-recency small{grid-column:2;color:#6b7f8c;font-size:11px}.practice-recency .icon{width:19px;color:#5187a8}
.practice-patient-actions{margin:8px 0 14px}.practice-note-stamp{font-size:11px;color:#667886;border-top:1px solid #e6ecf1;padding-top:12px;margin:16px 0 12px;overflow-wrap:anywhere}.practice-archived{background:#f7f5f9}.practice-pill{display:inline-flex;align-items:center;max-width:100%;font-size:10px;font-weight:650;letter-spacing:.02em;padding:5px 9px;border-radius:99px;background:#edf0f5;color:#536375;white-space:normal;line-height:1.4}
.teal{background:#e4f4ef;color:#217a6d}.violet{background:#eee9fb;color:#7051a6}.rose{background:#fcebf0;color:#b65370}.amber{background:#fff0df;color:#a36331}.blue{background:#e9f1fc;color:#3a72b2}
.practice-notice{display:flex;gap:10px;align-items:flex-start;font-size:12px;line-height:1.65;padding:13px 16px;background:#f1f5f9;color:#5e7482;border-radius:12px}.practice-notice>.icon{flex:none;width:17px;margin-top:2px}
.practice-recall-grid,.practice-provider-grid,.practice-staff-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:0 0 15px}.practice-recall{border:1px solid #e5eaf0;border-radius:18px;padding:18px;background:#fff;box-shadow:0 4px 18px #37526305}.practice-recall.rose{border-top:4px solid #d48094}.practice-recall.amber{border-top:4px solid #e5b275}.practice-recall.teal{border-top:4px solid #64b6a9}.practice-recall h3{font-size:15px;margin:14px 0 10px;color:#304954}.practice-recall p{font-size:12px;line-height:1.65;color:#71818d;min-height:58px}.practice-recall .cw-row{padding:0;border:0;justify-content:space-between}.practice-recall .cw-actions{gap:10px}.practice-recall .care-colour-icon{width:38px;height:38px;border-radius:12px}
.practice-provider,.practice-staff-card{padding:20px;border:1px solid #e3eaf0;border-radius:17px;background:#fafcfe}.practice-provider p{font-size:12px;color:#6d818e}.practice-provider h3{font-size:15px}.practice-staff-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.practice-staff-card h3,.practice-staff-card p{margin:0}.practice-staff-card .cw-actions{margin-top:8px}.practice-staff-card .practice-avatar{width:54px;height:54px}.practice-staff-card small{overflow-wrap:anywhere}
.practice-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.practice-tabs button{font:inherit;font-size:12px;border:1px solid #e1e6ef;border-radius:12px;background:#fff;padding:11px 14px;color:#617483;cursor:pointer}.practice-tabs button.active{background:#e8e2f7;border-color:#b7a6d9;color:#644a98}
.practice-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.practice-kpi{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:20px!important;margin:0!important}.practice-kpi>strong{font-size:27px;line-height:1.15;color:#314d5b;font-variant-numeric:tabular-nums}.practice-kpi>span:last-child{font-size:12px;color:#68808a}.practice-kpi.colour-0{border-top:3px solid #68b5ab}.practice-kpi.colour-1{border-top:3px solid #9b86c8}.practice-kpi.colour-2{border-top:3px solid #e2a07b}.practice-kpi.colour-3{border-top:3px solid #7ea6d4}
.practice-donut-layout{display:flex;justify-content:center;gap:30px;align-items:center;min-height:200px;padding:12px}.practice-donut{width:170px;height:170px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none}.practice-donut>div{width:125px;height:125px;border-radius:50%;background:white;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center}.practice-donut strong{font-size:30px;color:#365466}.practice-donut small{font-size:10px;color:#6d808e}.practice-donut-layout p{font-size:13px}.practice-donut-layout small{font-size:11px;line-height:1.5;display:block;max-width:120px}.practice-key{display:inline-block;width:9px;height:9px;margin-right:8px;border-radius:3px}.practice-key.teal{background:#118a8e}.practice-key.amber{background:#ee925e}
.practice-bars{display:flex;align-items:stretch;gap:8px;height:208px;padding:8px 0 0;border-bottom:1px solid #e7edf1}.practice-bar-month{display:flex;flex-direction:column;gap:8px;flex:1;text-align:center;min-width:0}.practice-bar-month>span{font-size:9px;color:#597384}.practice-bar-month>div{height:150px;display:flex;align-items:flex-end;gap:3px;justify-content:center}.practice-bar-month i{display:block;flex:1;max-width:16px;border-radius:5px 5px 0 0}.practice-bar-month i.in{background:#58a9a4}.practice-bar-month i.out{background:#e8a67c}.practice-bar-month small{font-size:9px;color:#6c7d88}
.practice-table{width:100%;max-width:100%}.practice-table table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}.practice-table th,.practice-table td{padding:12px 8px;text-align:right;overflow-wrap:anywhere;border-bottom:1px solid #e7edf2}.practice-table th{font-size:10px;color:#748794;background:#f5f8fb}.practice-table th:first-child,.practice-table td:first-child{width:27%;text-align:left}.practice-table td{font-variant-numeric:tabular-nums}
.practice-source{background:#f8fafc;border:1px solid #e6edf2;padding:18px;border-radius:16px;margin-bottom:20px}.practice-source p{font-size:13px;line-height:1.7}.practice-repeat-option{display:flex;gap:13px;padding:15px 0;border-bottom:1px solid #e8edf2;align-items:flex-start}.practice-repeat-option span{display:grid;gap:7px}.practice-repeat-option small{color:#71838d;font-size:11px}.practice-repeat-option input{flex:none;width:18px;height:18px}.practice-funding{display:flex;align-items:center;gap:12px;padding:12px;background:#f5f8fb;border-radius:12px;font-size:12px;line-height:1.5;margin-bottom:16px}.practice-funding-icon{width:30px;height:30px;flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}.practice-funding-icon .icon{width:17px}
.cw-metric:nth-child(4n+1) .cw-metric-icon{background:#e3f3ee;color:#248779}.cw-metric:nth-child(4n+2) .cw-metric-icon{background:#ede5fa;color:#8363b6}.cw-metric:nth-child(4n+3) .cw-metric-icon{background:#e4f0fb;color:#457dab}.cw-metric:nth-child(4n+4) .cw-metric-icon{background:#fff0df;color:#bd8246}.cw-metric.selected{border-color:#91bfb5;box-shadow:0 4px 16px #3662570a}.nav-item.active{background:#e8f3ef;color:#267b70}.button.primary{background:#197e79;border-color:#197e79;box-shadow:0 3px 8px #146f6b18}.button.primary:hover{background:#126d69}.cw-record-tabs{flex-wrap:wrap;overflow:visible}.cw-record-tabs button{white-space:normal}.modal-body,.cw-row-main,.cw-patient,.panel{min-width:0}.cw-row-main strong,.cw-row-main p,.cw-row-main small{overflow-wrap:anywhere}.mobile-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}.mobile-nav-item:disabled{opacity:.35;cursor:not-allowed}
@media(max-width:1100px){.practice-recall-grid,.practice-provider-grid,.practice-staff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.practice-donut-layout{gap:14px}.practice-donut{width:144px;height:144px}.practice-donut>div{width:108px;height:108px}.topbar-title{min-width:0}.topbar-title>span{font-size:13px}.practice-locked-profile>span:not(.avatar){display:none}}
@media(max-width:700px){.practice-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.practice-kpi{padding:16px!important}.practice-kpi>strong{font-size:23px}.practice-recall-grid,.practice-provider-grid,.practice-staff-grid{grid-template-columns:1fr}.practice-recall p{min-height:0}.practice-recency{gap:8px}.practice-recency>span{min-width:150px;padding:10px}.practice-recency strong{font-size:11px}.practice-tabs{gap:6px}.practice-tabs button{font-size:11px;padding:9px 11px}.practice-table table{font-size:10px}.practice-table th,.practice-table td{padding:10px 3px}.practice-table th{font-size:9px}.practice-bars{gap:4px}.practice-bar-month small{font-size:8px}.practice-bar-month>span{font-size:8px}.topbar{gap:8px!important}.topbar-title{flex:1}.topbar-title>span{font-size:12px;line-height:1.3}.topbar-actions{gap:4px}.practice-locked-profile{padding:5px;border:0}.practice-locked-profile>.icon{display:none}.practice-locked-profile .avatar,.practice-locked-profile .practice-avatar{width:30px;height:30px}.mobile-bottom-nav .mobile-nav-item{padding:9px 1px;gap:4px;font-size:10px;min-width:0}.mobile-bottom-nav .mobile-nav-item span{font-size:9px}.mobile-bottom-nav .icon{width:21px;height:21px}.cw-segments{flex-wrap:wrap}.cw-segments button{flex:1;white-space:normal;font-size:11px}.form-grid input,.form-grid select,.form-grid textarea{font-size:16px!important;min-width:0;max-width:100%}.practice-donut-layout{justify-content:flex-start}.main-content{padding-bottom:90px!important}}

/* Personal clinician workspace and read-only staff details. */
.clinician-profile-view{max-width:650px;margin:auto}.clinician-profile-view .cw-details{grid-template-columns:minmax(120px,1fr) minmax(0,2fr);gap:12px 16px}.clinician-profile-view dd{overflow-wrap:anywhere}.clinician-owner{display:flex;gap:6px;align-items:center;color:#5e6a7e}.clinician-owner svg{width:14px;height:14px}
@media(max-width:600px){.clinician-profile-view .cw-details{grid-template-columns:1fr}.clinician-profile-view dd{margin:0 0 8px}}

/* One profile entry, at the right end of the lower navigation. */
.topbar{display:flex;justify-content:space-between;gap:16px}
.topbar-title{display:grid;gap:3px;margin-right:auto}
.topbar-title>span{font-size:14px;font-weight:700;color:#244f4c}
.topbar-title>small{font-size:11px;color:#718681}
.mobile-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr)) minmax(0,1.25fr);grid-auto-flow:row;align-items:stretch}
.nas-profile-tab{border-left:1px solid #e2ebe6!important;min-width:0;align-content:center}
.nas-profile-tab .practice-avatar,.nas-profile-tab .avatar{width:27px;height:27px;min-width:27px;border-radius:50%;object-fit:cover;background:#e9f3ef;color:#30655d;display:flex;align-items:center;justify-content:center}
.nas-profile-tab .avatar .icon{width:18px;height:18px}
.nas-profile-tab>span:last-child{max-width:100%;font-size:10px;line-height:1.25;overflow-wrap:anywhere}
.practice-details-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;margin:0}
.practice-details-list>div{min-width:0;border-bottom:1px solid #e9eeeb;padding:15px 0}
.practice-details-list dt{font-size:12px;color:#758880;margin-bottom:6px}
.practice-details-list dd{margin:0;font-size:14px;color:#244b46;white-space:pre-wrap;overflow-wrap:anywhere}
.practice-detail-notes{margin-top:20px}.practice-detail-notes h3{font-size:13px;margin:16px 0 6px}.practice-detail-notes p{font-size:13px;line-height:1.6}
@media(min-width:921px){.mobile-bottom-nav{left:auto;right:24px;transform:none;width:min(740px,calc(100vw - var(--sidebar-width) - 48px));min-width:0}.mobile-nav-item{padding:9px 8px}}
@media(max-width:700px){.practice-details-list{grid-template-columns:1fr}.mobile-bottom-nav{left:6px;right:6px}.mobile-bottom-nav .mobile-nav-item{font-size:9px;padding:5px 2px;min-height:57px}.mobile-bottom-nav .mobile-nav-item>span{font-size:9px;line-height:1.25}.topbar{padding:8px 14px}}
@media(max-width:420px){.mobile-bottom-nav .mobile-nav-item>span{font-size:8px}.nas-profile-tab>span:last-child{font-size:8.5px}}
