@font-face {
    font-family: Inter;
    src: url('/fonts/InterVariable.woff2') format('woff2');
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: Inter;
    src: url('/fonts/InterVariable-Italic.woff2') format('woff2');
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: Montserrat;
    src: url('/fonts/Montserrat-Latin-700.woff2') format('woff2');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --ink: #111111;
    --charcoal: #34383b;
    --muted: #697177;
    --line: #dfe3e5;
    --border: var(--line);
    --soft: #f4f5f5;
    --surface: #ffffff;
    --page: #eef0f0;
    --text-muted: #596368;
    --green: #1f7a5a;
    --primary: var(--green);
    --green-soft: #e7f4ee;
    --amber: #946f15;
    --amber-soft: #fbf3dc;
    --blue: #346985;
    --blue-soft: #eaf2f6;
    --purple: #6d5da8;
    --purple-soft: #f0edf8;
    --red: #ad3d3d;
    --red-soft: #fbeaea;
    --sidebar-background: #0f1112;
    --demo-banner-background: #7a3515;
    --sidebar: 252px;
    --demo-banner-height: 34px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --radius-control: 6px;
    --radius-card: 10px;
    --radius-pill: 999px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
html, body { margin: 0; min-height: 100%; background: var(--page); color: var(--ink); }
body { font-size: 14px; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: 30px; line-height: 1.1; letter-spacing: -.035em; }
h1:focus { outline: none; }
h2 { margin-bottom: 4px; font-size: 18px; letter-spacing: -.015em; }
h3 { margin-bottom: 4px; }
p { color: var(--muted); line-height: 1.55; }
.rz-button { font-weight: 700 !important; text-transform: none !important; letter-spacing: 0 !important; border-radius: var(--radius-control) !important; }
.rz-button.rz-primary { background: var(--ink) !important; }
.rz-button.rz-success { background: var(--green) !important; }
.rz-dropdown, .rz-textbox, .rz-numeric, .rz-textarea, .rz-datepicker { border-radius: var(--radius-control) !important; }
.rz-tabview-nav { background: transparent !important; border-bottom: 1px solid var(--line); }
.rz-tabview-nav li a { font-weight: 700; text-transform: none !important; }
.rz-tabview-nav li.rz-tabview-selected { border-color: var(--ink) !important; }
.rz-tabview-panels { background: transparent !important; padding: 22px 0 0 !important; }
.rz-data-grid { border: 1px solid var(--line) !important; border-radius: 8px; overflow: hidden; }
.rz-data-grid thead th { background: #f4f5f5 !important; color: #4a5054 !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: .06em; }
.rz-data-grid td { border-color: #eceeee !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; background: var(--sidebar-background); color: white; padding: 24px 16px 18px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; color: white; padding: 0 10px; }
.brand:hover { text-decoration: none; }
.brand img { width: 43px; height: 43px; border-radius: 11px; box-shadow: 0 8px 22px rgba(0,0,0,.24); }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand strong { font-size: 16px; letter-spacing: .045em; text-transform: uppercase; }
.brand strong { font-family: Montserrat, Inter, sans-serif; }
.brand small { margin-top: 6px; color: #9da4a6; font-size: 12px; letter-spacing: .13em; }
.environment-pill { width: max-content; margin: 22px 10px 20px; padding: 5px 8px; border: 1px solid #454a4d; border-radius: 3px; color: #bfc3c5; font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.primary-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-group { display: grid; gap: 3px; margin-top: 14px; }
.nav-group-label { padding: 0 13px 5px; color: #8f999b; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav > a, .nav-group > a { display: flex; align-items: center; min-height: 46px; gap: 13px; padding: 0 13px; border-radius: 7px; color: #bbc0c2; font-weight: 600; }
.primary-nav > a:hover, .nav-group > a:hover { background: #1b1e20; color: white; text-decoration: none; }
.primary-nav > a.active, .nav-group > a.active { background: white; color: var(--ink); }
.primary-nav .rzi { font-size: 20px; }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; display: grid; place-items: center; border-radius: 10px; background: var(--amber); color: white; font-size: 12px; }
.portal-notification-list { padding: 0; overflow: hidden; }
.portal-notification-item { width: 100%; border: 0; border-bottom: 1px solid var(--border); background: white; padding: 18px 20px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; text-align: left; color: inherit; cursor: pointer; }
.portal-notification-item:last-child { border-bottom: 0; }
.portal-notification-item:hover, .portal-notification-item:focus-visible { background: var(--blue-soft); }
.portal-notification-item.unread { box-shadow: inset 4px 0 0 var(--blue); }
.portal-notification-item.read { opacity: .78; }
.portal-notification-item > span:nth-child(2) { display: grid; gap: 4px; }
.portal-notification-item small, .portal-notification-item time { color: var(--muted); font-size: 12px; }
.nav-separator { height: 1px; background: #2e3234; margin: 11px 8px; }
.sidebar-footer { margin-top: auto; border-top: 1px solid #2e3234; padding: 18px 8px 0; }
.signed-in-user { width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: white; text-align: left; cursor: pointer; }
.signed-in-user:hover .signed-in-user-copy strong, .signed-in-user:focus-visible .signed-in-user-copy strong { color: #bce4d2; }
.signed-in-user > .rzi { margin-left: auto; color: #7f888c; font-size: 18px; }
.user-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #3a4144; color: white; font-size: 12px; font-weight: 800; }
.user-avatar img { display: block; width: 34px; min-width: 34px; max-width: 34px; height: 34px; min-height: 34px; max-height: 34px; object-fit: cover; object-position: center; }
.signed-in-user-copy { display: flex; flex-direction: column; min-width: 0; }
.signed-in-user strong { font-size: 12px; white-space: nowrap; }
.signed-in-user small { color: #92999d; font-size: 12px; margin-top: 4px; }
.security-note { display: flex; align-items: center; gap: 6px; margin-top: 15px; color: #6f777a; font-size: 12px; }
.security-note .rzi { font-size: 12px; }
.profile-popover { position: fixed; z-index: 1050; left: 16px; bottom: 92px; width: 220px; padding: 8px; border: 1px solid #353b3e; border-radius: 9px; background: #191c1e; box-shadow: 0 18px 42px rgba(0,0,0,.34); }
.profile-popover button, .profile-popover a { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: #e7e9ea; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.profile-popover button:hover, .profile-popover a:hover { background: #282d30; color: white; text-decoration: none; }
.profile-menu-summary { display: grid; gap: 4px; padding: 9px 10px 11px; margin-bottom: 4px; border-bottom: 1px solid #353b3e; }
.profile-menu-summary small { color: #bfc8c6; font-size: 12px; }
.profile-popover .logout-action { color: #ffc7c7; }
.icon-button.mobile-profile-button { display: none; }

.main-shell { grid-column: 2; min-width: 0; }
.synthetic-demo-banner { position: sticky; top: 0; z-index: 18; min-height: var(--demo-banner-height); display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 16px; background: var(--demo-banner-background); color: white; font-size: 12px; font-weight: 700; letter-spacing: .045em; line-height: 1.2; text-align: center; text-transform: uppercase; }
.synthetic-demo-banner .rzi { font-size: 16px; }
.synthetic-demo-banner strong { font-weight: 900; }
.topbar { height: 68px; position: sticky; top: var(--demo-banner-height); z-index: 15; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.topbar > div { display: flex; align-items: center; gap: 15px; }
.topbar-location { display: flex; align-items: center; gap: 5px; font-weight: 750; }
.topbar-location .rzi { color: var(--green); font-size: 18px; }
.shell-clinic-picker { display: flex; align-items: center; gap: 5px; max-width: 250px; color: var(--green); }
.shell-clinic-picker select { max-width: 210px; appearance: none; border: 0; background: transparent; color: var(--ink); font-size: 14px; font-weight: 750; cursor: pointer; }
.shell-clinic-picker .rzi:last-child { color: var(--muted); font-size: 16px; pointer-events: none; }
.topbar-date { padding-left: 15px; border-left: 1px solid var(--line); color: var(--muted); }
.quick-search { display: flex; align-items: center; gap: 8px; min-width: 230px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #f8f9f9; cursor: pointer; }
.quick-search:hover { border-color: #a8afb2; text-decoration: none; }
.quick-search kbd { margin-left: auto; border: 1px solid #d4d8da; background: white; padding: 2px 5px; border-radius: 4px; color: #969c9f; font-size: 12px; }
.shell-menu-anchor { position: relative; }
.shell-new-button { min-height: 44px; display: flex; align-items: center; gap: 4px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--green); color: white; font-weight: 800; cursor: pointer; }
.shell-dropdown { position: absolute; top: calc(100% + 10px); right: 0; z-index: 1100; min-width: 220px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 18px 40px rgba(15,17,18,.18); }
.shell-dropdown > strong { display: block; padding: 8px 9px; }
.shell-dropdown a { min-height: 40px; display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 6px; color: var(--ink); font-weight: 650; white-space: nowrap; }
.shell-dropdown a:hover { background: var(--green-soft); text-decoration: none; }
.shell-dropdown a b { margin-left: auto; color: var(--green); }
.shell-dropdown p { margin: 5px 9px 10px; font-size: 12px; }
.notifications-dropdown { min-width: 280px; }
.command-backdrop, .shortcut-help-backdrop { position: fixed; inset: 0; z-index: 1200; display: flex; justify-content: center; align-items: flex-start; padding: min(15vh, 110px) 16px 20px; background: rgba(14,20,20,.58); }
.command-dialog { width: min(640px, 100%); max-height: min(70vh, 650px); display: flex; flex-direction: column; overflow: hidden; border-radius: 12px; background: white; box-shadow: 0 25px 80px rgba(0,0,0,.3); }
.command-input-row { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--green); }
.command-input-row input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 16px; }
.command-input-row kbd, .command-footer, .shortcut-help kbd { color: var(--muted); font-size: 12px; }
.command-results { padding: 8px; overflow-y: auto; }
.command-group-label { display: block; padding: 12px 11px 6px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.command-results button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; border-radius: 7px; background: transparent; text-align: left; cursor: pointer; }
.command-results button:hover, .command-results button:focus-visible { background: var(--green-soft); }
.command-results button > span { flex: 1; display: grid; gap: 3px; }
.command-results button small { color: var(--muted); font-size: 12px; }
.command-results button > .rzi:last-child { color: var(--muted); }
.command-message { padding: 6px 11px; }
.command-footer { padding: 10px 16px; border-top: 1px solid var(--line); }
.shortcut-help { width: min(410px, 100%); padding: 20px; border-radius: 10px; background: white; }
.shortcut-help > button { float: right; }
.shortcut-help p { display: flex; justify-content: space-between; gap: 12px; margin: 13px 0 0; }
.icon-button { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: white; cursor: pointer; }
.provider-alert-count { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 9px; background: var(--amber); color: white; font-size: 12px; font-weight: 700; }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; border: 2px solid white; border-radius: 50%; background: var(--amber); }
.page-frame { padding: 28px 30px 60px; max-width: 1720px; margin: 0 auto; }

.page-heading { min-height: 74px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading p { margin-bottom: 0; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: .13em; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.surface-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 2px 5px rgba(23,28,30,.025); }
.panel-heading { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.panel-heading h2, .panel-heading p { margin-bottom: 0; }
.panel-heading p { font-size: 12px; }
.panel-heading > a { font-size: 12px; font-weight: 750; }
.loading-panel { min-height: 280px; display: grid; place-items: center; }
.full-width-textarea { width: 100%; }
.page-skeleton { display: grid; gap: 16px; min-height: 280px; padding: 14px 0; }
.page-skeleton .skeleton-line, .page-skeleton .skeleton-metrics > span, .page-skeleton .skeleton-columns > span { display: block; border: 1px solid #e3eae6; border-radius: 8px; background: linear-gradient(100deg, #edf2ef 20%, #f8faf9 40%, #edf2ef 60%); background-size: 200% 100%; animation: skeleton-shimmer 1.6s ease-in-out infinite; }
.page-skeleton .skeleton-heading { width: min(380px, 70%); height: 35px; }
.page-skeleton .skeleton-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; }
.page-skeleton .skeleton-metrics > span { height: 64px; }
.page-skeleton .skeleton-columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.page-skeleton .skeleton-columns > span { height: 185px; }
@keyframes skeleton-shimmer { to { background-position-x: -200%; } }
@media (prefers-reduced-motion: reduce) { .page-skeleton .skeleton-line, .page-skeleton .skeleton-metrics > span, .page-skeleton .skeleton-columns > span { animation: none; } }
@media (max-width: 640px) { .page-skeleton .skeleton-columns { grid-template-columns: 1fr; } }
.empty-inline { min-height: 110px; display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--muted); }
.empty-inline .rzi { color: var(--green); }
.empty-state { min-height: 350px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state > .rzi { margin-bottom: 10px; color: var(--muted); font-size: 44px; }
.muted-copy { color: var(--muted); }

.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.metric-card { min-height: 94px; display: flex; align-items: center; gap: 13px; padding: 17px; background: white; border: 1px solid var(--line); border-radius: 9px; }
.metric-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 8px; background: var(--soft); color: var(--charcoal); }
.metric-icon .rzi { font-size: 22px; }
.metric-card > span:last-child { display: flex; flex-direction: column; }
.metric-card strong { font-size: 24px; line-height: 1; }
.metric-card small { margin-top: 7px; color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-card.blue .metric-icon { background: var(--blue-soft); color: var(--blue); }
.metric-card.green .metric-icon { background: var(--green-soft); color: var(--green); }
.metric-card.amber .metric-icon { background: var(--amber-soft); color: var(--amber); }
.metric-card.purple .metric-icon { background: var(--purple-soft); color: var(--purple); }
.flow-layout { display: grid; grid-template-columns: minmax(620px, 1.7fr) minmax(320px, .75fr); gap: 18px; }
.live-indicator { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.live-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.flow-list { padding: 0 10px 10px; }
.flow-row { width: 100%; min-height: 74px; display: grid; grid-template-columns: 47px minmax(150px, 1.5fr) 110px 100px 60px minmax(110px, 1fr) 20px; align-items: center; gap: 11px; padding: 9px 10px; border: 0; border-bottom: 1px solid #eceeee; background: white; text-align: left; cursor: pointer; }
.flow-row:hover { background: #f8f9f9; }
.flow-row > img { display: block; width: 43px; min-width: 43px; max-width: 43px; height: 43px; min-height: 43px; max-height: 43px; border-radius: 50%; object-fit: cover; object-position: center; background: #e6e8e9; }
.active-visit-row { grid-template-columns: 47px minmax(150px, 1.5fr) 110px 100px 60px minmax(110px, 1fr) minmax(96px, auto); cursor: default; }
.flow-row-action { display: flex; justify-content: flex-end; align-items: center; }
.flow-row-action > small { max-width: 92px; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.3; text-align: right; }
.flow-person { display: flex; flex-direction: column; }
.flow-person { min-width: 0; }
.flow-person strong { font-size: 13px; }
.flow-person small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.room-chip { width: max-content; display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 4px; background: var(--soft); color: #51585c; font-size: 12px; font-weight: 700; }
.room-chip .rzi { font-size: 14px; }
.state-badge { width: max-content; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 8px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.active-visit-row .state-badge { max-width: 100%; white-space: normal; text-align: center; }
.state-badge[class*="state-"]::before { content: ""; flex: 0 0 6px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state-blue { background: var(--blue-soft); color: var(--blue); }
.state-green { background: var(--green-soft); color: var(--green); }
.state-amber { background: var(--amber-soft); color: var(--amber); }
.state-purple { background: var(--purple-soft); color: var(--purple); }
.wait-time { color: var(--muted); font-size: 12px; }
.next-action { display: flex; flex-direction: column; }
.next-action small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.next-action strong { margin-top: 4px; font-size: 12px; }
.next-work-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 15px; padding: 12px 15px; }
.next-work-summary > strong { margin-right: 6px; }
.next-work-summary a { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); text-decoration: none; }
.next-work-summary a:hover { border-color: var(--green); background: #f3faf6; }
.upcoming-list { padding: 3px 12px 12px; }
.schedule-filter-details { margin-bottom: 14px; }
.schedule-filter-details > summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; cursor: pointer; list-style: none; }
.schedule-filter-details > summary::-webkit-details-marker { display: none; }
.schedule-filter-details > summary > span:last-child { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; }
.schedule-filter-details .schedule-toolbar { margin-bottom: 0; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.schedule-open-times { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; padding: 10px 15px; }
.schedule-open-times > div { display: grid; gap: 2px; margin-right: auto; }
.schedule-open-times small { color: var(--muted); }
.schedule-open-times a { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; }
.schedule-open-times a:hover { border-color: var(--green); background: var(--green-soft); text-decoration: none; }
.schedule-quick-backdrop { position: fixed; inset: 0; z-index: 1150; display: flex; justify-content: flex-end; background: rgba(15,20,20,.35); }
.schedule-quick-panel { width: min(390px, 100%); height: 100%; overflow-y: auto; padding: 30px 24px; background: white; box-shadow: -14px 0 48px rgba(0,0,0,.18); }
.schedule-quick-panel h2 { margin-bottom: 6px; font-size: 23px; }
.schedule-quick-panel p { margin-bottom: 14px; }
.schedule-quick-close { float: right; }
.schedule-quick-status { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.schedule-quick-actions { display: grid; gap: 9px; padding-top: 18px; }
.schedule-quick-actions .rz-button { width: 100%; justify-content: flex-start; }
.schedule-quick-more { padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; }
.schedule-quick-more summary { cursor: pointer; font-weight: 700; }
.schedule-quick-more a { display: block; padding: 8px 4px; }
.inbox-new-message { margin-bottom: 16px; padding: 16px; }
.inbox-compose-fields { display: grid; gap: 14px; max-width: 740px; }
.inbox-compose-fields label { display: grid; gap: 6px; font-weight: 700; }
.inbox-compose-fields textarea { width: 100%; }
.inbox-patient-search { display: flex; gap: 8px; }
.inbox-patient-search input { flex: 1; min-width: 0; }
.inbox-patient-search button { padding: 8px 12px; border: 0; border-radius: 6px; background: var(--ink); color: white; cursor: pointer; }
.inbox-patient-results { display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.inbox-patient-results button { display: grid; gap: 3px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; cursor: pointer; }
.inbox-patient-results button:last-child { border-bottom: 0; }
.inbox-patient-results button:hover, .inbox-patient-results button.selected { background: var(--green-soft); }
.inbox-patient-results small, .inbox-selected-patient { color: var(--muted); font-size: 12px; }
.upcoming-row { width: 100%; min-height: 76px; display: grid; grid-template-columns: 44px 3px minmax(105px, 1fr) auto auto; align-items: center; gap: 9px; padding: 9px 4px; border: 0; border-bottom: 1px solid #eceeee; background: white; text-align: left; }
.upcoming-row:hover { background: #f8f9f9; }
.time-block { display: flex; flex-direction: column; text-align: right; }
.time-block strong { font-size: 12px; }
.time-block small { color: var(--muted); font-size: 12px; }
.appointment-color { align-self: stretch; border-radius: 2px; }
.upcoming-details { min-width: 0; display: flex; flex-direction: column; }
.upcoming-details strong, .upcoming-details small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-details strong { font-size: 12px; }
.upcoming-details small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.upcoming-statuses { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.upcoming-action { display: flex; justify-content: flex-end; }
.upcoming-action .rz-button { min-width: 76px; white-space: nowrap; }
.date-stepper { height: 38px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: white; overflow: hidden; }
.date-stepper button { align-self: stretch; width: 35px; border: 0; background: white; cursor: pointer; }
.date-stepper button:hover { background: var(--soft); }
.date-stepper strong { min-width: 175px; padding: 0 10px; text-align: center; font-size: 12px; }
.schedule-view-switch { height: 38px; display: flex; align-items: center; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.schedule-view-switch button { height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; cursor: pointer; }
.schedule-view-switch button.active { background: var(--charcoal); color: white; box-shadow: 0 1px 3px rgba(25,30,32,.15); }
.schedule-view-switch .rzi { font-size: 15px; }
.schedule-toolbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 15px; margin-bottom: 12px; }
.legend, .schedule-key { display: flex; align-items: center; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: 12px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.status-confirmed, .status-tentative { width: 16px; height: 10px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 2px; }
.status-tentative { border-style: dashed; border-left-color: var(--amber); }
.day-schedule { overflow: hidden; }
.day-schedule-heading { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.day-schedule-heading > div { display: flex; align-items: baseline; gap: 9px; }
.day-schedule-heading > div span { color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.day-schedule-heading > div strong { font-size: 16px; }
.day-schedule-heading .day-hours-summary { padding: 4px 7px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 750; }
.day-schedule-heading .day-hours-summary.closed { background: var(--amber-soft); color: var(--amber); }
.day-schedule-heading > span { color: var(--muted); font-size: 12px; font-weight: 700; }
.day-schedule-empty { min-height: 420px; }
.day-calendar-scroll { overflow-x: auto; }
.day-lane-headings { min-width: max(760px, calc(var(--day-lanes) * 180px + 72px)); display: grid; grid-template-columns: 72px repeat(var(--day-lanes), minmax(0, 1fr)); padding: 7px 14px 7px 0; border-bottom: 1px solid var(--line); }
.day-lane-headings > span:not(:first-child) { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 3px 8px; border-left: 1px solid var(--line); }
.day-lane-headings strong { overflow: hidden; color: var(--ink); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.day-lane-headings small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.day-calendar { min-width: max(760px, calc(var(--day-lanes) * 180px + 72px)); display: grid; grid-template-columns: 72px minmax(0, 1fr); padding: 8px 14px 24px 0; }
.day-time-axis, .day-calendar-grid { position: relative; height: calc(var(--day-hours) * 96px); }
.day-time-axis time { position: absolute; right: 13px; transform: translateY(-50%); color: var(--muted); font-size: 12px; font-weight: 700; }
.day-calendar-grid { border-left: 1px solid var(--line); }
.day-hour-line { position: absolute; left: 0; right: 0; border-top: 1px solid #e5e8e8; }
.schedule-block { position: absolute; left: 0; right: 0; z-index: 1; overflow: hidden; border-top: 1px solid #d7dcda; border-bottom: 1px solid #d7dcda; background: repeating-linear-gradient(135deg, rgba(91,99,101,.11) 0, rgba(91,99,101,.11) 7px, rgba(91,99,101,.055) 7px, rgba(91,99,101,.055) 14px); color: #697173; pointer-events: none; }
.schedule-block > span { position: absolute; top: 7px; left: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 5px; background: rgba(255,255,255,.88); box-shadow: 0 1px 3px rgba(25,30,32,.08); }
.schedule-block .rzi { font-size: 13px; }
.schedule-block strong { font-size: 12px; }
.schedule-block small { color: inherit; font-size: 12px; }
.schedule-block.lunch { border-color: #e2cf9f; background: repeating-linear-gradient(135deg, rgba(206,158,39,.13) 0, rgba(206,158,39,.13) 7px, rgba(206,158,39,.055) 7px, rgba(206,158,39,.055) 14px); color: #8b6815; }
.schedule-block.closure { border-color: #dfb8af; background: repeating-linear-gradient(135deg, rgba(150,65,45,.14) 0, rgba(150,65,45,.14) 7px, rgba(150,65,45,.055) 7px, rgba(150,65,45,.055) 14px); color: #884330; }
.day-calendar-empty-note { position: absolute; top: 16px; right: 16px; z-index: 2; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--muted); font-size: 12px; font-weight: 700; }
.current-time-line { position: absolute; left: -5px; right: 0; z-index: 5; border-top: 2px solid var(--red); pointer-events: none; }
.current-time-line::before { content: ""; position: absolute; top: -5px; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.day-appointment { position: absolute; z-index: 2; min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; padding: 3px 7px 3px 9px; border: 1px solid #d9dfdc; border-left: 4px solid var(--appointment-color); border-radius: 5px; background: #f7fbf9; color: var(--charcoal); text-align: left; cursor: pointer; }
.day-appointment:hover { z-index: 6; box-shadow: 0 4px 12px rgba(25,30,32,.14); transform: translateY(-1px); }
.day-appointment.read-only { cursor: default; }
.day-appointment.read-only:hover { z-index: 2; box-shadow: none; transform: none; }
.day-appointment.tentative { border-style: dashed; background: #fffdf8; }
.day-appointment > span { width: 100%; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.day-appointment time { flex: 0 0 auto; color: var(--appointment-color); font-size: 12px; font-weight: 850; }
.day-appointment strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.day-appointment small { width: 100%; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.schedule-all-clinic-list { margin: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.schedule-all-clinic-list summary { color: var(--green); cursor: pointer; font-weight: 750; }
.schedule-all-clinic-list > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.schedule-all-clinic-list button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--ink); cursor: pointer; }
.week-schedule { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow: hidden; }
.schedule-day { min-height: 600px; border-right: 1px solid var(--line); }
.schedule-day:last-child { border-right: 0; }
.schedule-day.today { background: #f8fbf9; }
.schedule-day.closed { background: repeating-linear-gradient(135deg, rgba(91,99,101,.045) 0, rgba(91,99,101,.045) 8px, transparent 8px, transparent 16px); }
.schedule-day-heading { height: 75px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr 1fr; align-items: end; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.schedule-day-heading span { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.schedule-day-heading strong { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 26px; }
.schedule-day-heading small { color: var(--muted); font-size: 12px; }
.schedule-day.today .schedule-day-heading strong { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; }
.schedule-day-body { display: flex; flex-direction: column; gap: 12px; padding: 10px; }
.week-day-availability { display: flex; flex-direction: column; gap: 3px; padding: 7px 8px; border: 1px solid #cfe4db; border-radius: 6px; background: var(--green-soft); color: var(--green); }
.week-day-availability.closed { border-color: #e3cf96; background: var(--amber-soft); color: var(--amber); }
.week-day-availability > span { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; }
.week-day-availability .rzi { font-size: 12px; }
.week-day-availability small { color: inherit; font-size: 12px; }
.day-empty { margin-top: 25px; color: #a2a7aa; font-size: 12px; text-align: center; }
.schedule-wave { display: flex; flex-direction: column; gap: 7px; }
.schedule-wave-heading { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.schedule-wave-heading > strong { color: var(--charcoal); font-size: 12px; }
.schedule-wave-heading > small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.capacity-badge { margin-left: auto; padding: 3px 6px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 750; white-space: nowrap; }
.capacity-badge.at-capacity { background: var(--amber-soft); color: var(--amber); }
.room-capacity-key { display: inline-flex; align-items: center; gap: 4px; font-weight: 750; }
.room-capacity-key .rzi { font-size: 13px; }
.schedule-wave-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 6px; }
.schedule-card { position: relative; width: 100%; min-height: 118px; display: flex; flex-direction: column; align-items: flex-start; padding: 10px 9px 9px 13px; border: 1px solid #dde1e2; border-left: 4px solid var(--appointment-color); border-radius: 6px; background: white; text-align: left; cursor: pointer; }
.schedule-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(25,30,32,.08); }
.schedule-card.read-only { cursor: default; }
.schedule-card.read-only:hover { transform: none; box-shadow: none; }
.schedule-card.tentative { border-style: dashed; background: #fffdf8; }
.schedule-card strong { margin: 5px 0 3px; font-size: 12px; }
.schedule-card small { color: var(--muted); font-size: 12px; }
.appointment-editor-panel { max-width: 1180px; margin: 0 auto; padding: 0 20px 20px; }
.appointment-editor-panel > .panel-heading { margin: 0 -20px 18px; }
.appointment-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.appointment-editor-grid label { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.appointment-editor-grid .span-two { grid-column: 1 / -1; }
.appointment-editor-grid .rz-dropdown, .appointment-editor-grid .rz-datepicker { width: 100%; }
.appointment-primary-fields { margin-bottom: 12px; }
.appointment-more-details { margin: 6px 0 18px; border: 1px solid var(--line); border-radius: 8px; background: #fafcfb; }
.appointment-more-details summary { padding: 12px 14px; color: var(--green); font-size: 12px; font-weight: 750; cursor: pointer; }
.appointment-more-details[open] summary { border-bottom: 1px solid var(--line); }
.appointment-more-details > .appointment-editor-grid { padding: 14px; }
.provider-pool-field { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 64px; padding: 10px 14px; border: 1px solid #cfe4db; border-radius: 8px; background: #f2faf6; }
.provider-pool-field > span { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.provider-pool-field > strong { color: var(--green); font-size: 14px; }
.provider-pool-field > small { color: var(--muted); font-weight: 500; }
.sequence-resource-note { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px; padding-top: 10px; border-top: 1px solid #d8e5df; color: var(--green); font-size: 12px; font-weight: 700; }
.appointment-validation-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding: 11px 13px; border-radius: 7px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 650; }
.appointment-availability { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; padding: 13px 15px; border: 1px solid #b8d4c8; border-radius: 8px; background: var(--green-soft); color: var(--green); }
.appointment-availability.conflict { border-color: #e3cf96; background: var(--amber-soft); color: var(--amber); }
.appointment-availability.incomplete { border-color: #b9cfdb; background: var(--blue-soft); color: var(--blue); }
.appointment-availability > .rzi { margin-top: 1px; font-size: 21px; }
.appointment-availability > div { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.appointment-availability strong { font-size: 12px; }
.appointment-availability > div > span, .appointment-availability li { font-size: 12px; }
.appointment-availability-details { margin-top: 3px; }
.appointment-availability-details summary { font-size: 12px; font-weight: 750; cursor: pointer; }
.appointment-availability-details[open] summary { margin-bottom: 6px; }
.appointment-availability ul { margin: 2px 0 0; padding-left: 18px; }
.day-availability-panel { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf9; }
.day-availability-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.day-availability-heading h3 { margin: 3px 0 2px; font-size: 16px; }
.day-availability-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.day-navigation { display: flex; align-items: center; gap: 6px; }
.day-slot-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.day-slot-legend span { display: inline-flex; align-items: center; gap: 5px; }
.day-slot-legend i { width: 9px; height: 9px; border-radius: 50%; }
.day-slot-legend i.available { background: var(--green); }
.day-slot-legend i.limited { background: var(--amber); }
.day-slot-legend i.unavailable { background: #a9b0b3; }
.day-slot-grid { display: grid; grid-template-columns: repeat(6, minmax(118px, 1fr)); gap: 7px; max-height: 390px; overflow-y: auto; padding: 2px; }
.day-slot { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px; border: 1px solid #b8d4c8; border-radius: 7px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.day-slot:hover:not(:disabled) { border-color: var(--green); box-shadow: 0 2px 8px rgba(23, 71, 56, .12); transform: translateY(-1px); }
.day-slot strong { font-size: 12px; }
.day-slot > span { color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.day-slot small { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 12px; }
.day-slot small .rzi { font-size: 12px; }
.day-slot.limited { border-color: #ddc16d; background: #fffdf6; }
.day-slot.limited > span { color: var(--amber); }
.day-slot.unavailable { border-color: #d7dcde; background: #f0f2f2; color: #7b8285; cursor: not-allowed; opacity: .78; }
.day-slot.unavailable > span { color: #747b7e; }
.day-slot.selected { outline: 2px solid #151819; outline-offset: 1px; }
.day-availability-empty { display: flex; min-height: 90px; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 12px; }
.availability-resources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.availability-resources span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 999px; background: rgba(255,255,255,.72); font-size: 12px; font-weight: 800; }
.availability-resources span.available { color: var(--green); }
.availability-resources span.unavailable { color: var(--red); }
.availability-resources span.optional { color: var(--blue); }
.availability-resources .rzi { font-size: 13px; }
.clinical-guidance.warning { margin: 0 0 16px; background: var(--amber-soft); border-color: #e3cf96; color: var(--amber); }
.clinical-guidance.warning p { color: var(--amber); }
.schedule-time { color: var(--appointment-color); font-size: 12px; font-weight: 800; }
.schedule-resource { display: flex; align-items: center; gap: 3px; margin-top: 7px; color: var(--muted); font-size: 12px; }
.schedule-resource .rzi { font-size: 12px; }
.tentative-label { position: absolute; top: 7px; right: 7px; color: var(--amber); font-size: 12px; font-weight: 800; text-transform: uppercase; }

.patient-search-panel { padding: 18px; }
.search-row { display: flex; gap: 10px; }
.patient-search-input { flex: 1; min-width: 0; width: 100%; height: 40px; padding: 0 13px; border: 1px solid #cfd4d6; border-radius: 7px; background: white; color: var(--ink); }
.patient-search-input:focus { border-color: var(--green); outline: 2px solid rgba(31,122,90,.16); outline-offset: 0; }
.patient-search-button { min-width: 98px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--ink); color: white; font-weight: 750; cursor: pointer; }
.patient-search-button:hover, .patient-search-button:focus-visible { background: #303537; }
.patient-result-count { margin: 20px 0 7px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.patient-directory { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.patient-directory-row { width: 100%; min-height: 79px; display: grid; grid-template-columns: 52px minmax(190px, 1.3fr) 145px 145px 110px 180px 20px; align-items: center; gap: 14px; padding: 10px 15px; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; cursor: pointer; }
.patient-directory-row:last-child { border-bottom: 0; }
.patient-directory-row:hover { background: #f7f8f8; }
.patient-directory-row img { display: block; width: 48px; min-width: 48px; max-width: 48px; height: 48px; min-height: 48px; max-height: 48px; border-radius: 50%; object-fit: cover; object-position: center; background: #e7e9ea; }
.patient-directory-row > span { display: flex; flex-direction: column; }
.patient-directory-row strong { font-size: 12px; }
.patient-directory-row small { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.patient-primary strong { font-size: 13px; }
.patient-primary small { margin: 5px 0 0; }

.patient-identity-banner { min-height: 115px; display: grid; grid-template-columns: 76px minmax(220px, 1fr) auto auto; align-items: center; gap: 18px; margin-bottom: 12px; padding: 15px 20px; background: #151718; color: white; border-radius: 9px; }
.profile-photo-frame { position: relative; display: block; flex: none; overflow: hidden; background: #e7e9ea url('/images/patient-placeholder.svg') center / cover no-repeat; }
.profile-photo-frame > img { display: block; width: 100%; height: 100%; max-width: none; opacity: 0; object-fit: cover; object-position: center; transition: opacity .12s ease-out; }
.profile-photo-frame > img.is-loaded { opacity: 1; }
.patient-identity-photo { width: 72px; min-width: 72px; max-width: 72px; height: 72px; min-height: 72px; max-height: 72px; border: 2px solid #4a5053; border-radius: 50%; }
.patient-identity-banner h1 { margin-bottom: 5px; color: white; font-size: 26px; }
.patient-identity-banner p { margin-bottom: 0; color: #afb5b8; font-size: 12px; }
.identity-main .eyebrow { color: #8ebba9; }
.identity-facts { display: flex; gap: 30px; padding: 0 20px; border-left: 1px solid #3b4042; }
.identity-facts > span { min-width: 135px; display: flex; flex-direction: column; }
.identity-facts small { margin-bottom: 6px; color: #8f9699; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.identity-facts strong { font-size: 12px; }
.identity-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.patient-identity-banner.compact { min-height: 94px; grid-template-columns: 62px minmax(0, 1fr) auto; padding: 12px 16px; }
.patient-identity-banner.compact .patient-identity-photo { width: 58px; min-width: 58px; max-width: 58px; height: 58px; min-height: 58px; max-height: 58px; }
.patient-identity-banner.compact h1 { font-size: 22px; margin: 1px 0 2px; }
.patient-identity-banner.compact .identity-actions { gap: 7px; }
.identity-highlights { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }
.identity-highlight { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border: 1px solid #57615d; border-radius: 5px; color: #eef4f0; font-size: 12px; line-height: 1.25; }
.identity-highlight .rzi { font-size: 15px; }
.identity-highlight.allergy { border-color: #d48686; background: #6b2525; color: #fff; font-size: 13px; font-weight: 700; }
.chart-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 16px; }
.chart-workspace > .patient-tabs, .chart-details-rail { min-width: 0; }
.chart-workspace .patient-tabs { max-width: 100%; overflow: hidden; }
.chart-workspace .patient-tabs > .rz-tabview-nav { max-width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; }
.chart-workspace .patient-tabs > .rz-tabview-nav > li { flex: 0 0 auto; }
.chart-workspace .patient-tabs > .rz-tabview-panels { max-width: 100%; min-width: 0; }
.chart-workspace .chart-grid { grid-template-columns: 1fr; }
.chart-workspace .marker-cards, .chart-workspace .marker-trend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart-workspace .lab-range { min-width: 0; }
.chart-workspace .marker-card .range-context { margin-bottom: 23px; }
.chart-details-rail { display: grid; gap: 10px; }
.chart-details-rail > * { margin: 0 !important; }
.chart-details-rail .patient-alert-grid { display: grid; grid-template-columns: 1fr; gap: 7px; }
.chart-details-rail .clinical-alert { min-width: 0; }
.chart-details-rail .chart-communications-card .panel-heading { display: block; }
.chart-details-rail .chart-communications-card .heading-actions { margin-top: 8px; flex-wrap: wrap; }
.chart-details-rail .membership-profile-card { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: start; }
.chart-details-rail .membership-profile-card > .rz-button,
.chart-details-rail .membership-profile-editor { grid-column: 1 / -1; width: 100%; }
.chart-details-rail .membership-profile-editor { min-width: 0; grid-template-columns: 1fr; }
.chart-details-rail .membership-profile-editor > div { flex-wrap: wrap; }
.chart-more-menu { position: relative; }
.chart-more-menu summary { display: flex; align-items: center; gap: 3px; min-height: 44px; padding: 0 9px; border: 1px solid #6b7371; border-radius: 5px; color: #fff; cursor: pointer; list-style: none; }
.chart-more-menu summary::-webkit-details-marker { display: none; }
.chart-more-menu > div { position: absolute; z-index: 20; top: calc(100% + 5px); right: 0; min-width: 210px; padding: 5px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 10px 25px #0002; }
.chart-more-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px; border: 0; border-radius: 4px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.chart-more-menu button:hover, .chart-more-menu button:focus-visible { background: #edf4f0; }
.chart-request-link { display: flex; flex-direction: column; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.chart-request-link small { color: var(--muted); }
.chart-visits-panel .compact-admin-list { margin-top: 10px; }
.overview-treatment-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.overview-treatment-facts > div { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.overview-treatment-facts small { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.overview-treatment-facts strong { font-size: 13px; }
.dashboard-kpi-strip { display: flex; align-items: stretch; min-height: 58px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; overflow-x: auto; }
.dashboard-kpi-strip > a, .dashboard-kpi-strip > button { flex: 1 0 130px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--ink); text-decoration: none; text-align: left; cursor: pointer; }
.dashboard-kpi-strip > :last-child { border-right: 0; }
.dashboard-kpi-strip strong { color: var(--green); font-size: 23px; line-height: 1; }
.dashboard-kpi-strip span { font-size: 12px; line-height: 1.2; }
.dashboard-kpi-strip .zero strong, .dashboard-kpi-strip .zero span { color: #66736e; }
.dashboard-kpi-strip > a:hover, .dashboard-kpi-strip > button:hover { background: #f3faf6; }
.dashboard-queue-chips { display: flex; gap: 6px; margin-bottom: 10px; overflow-x: auto; padding-bottom: 2px; }
.dashboard-queue-chips button { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; min-height: 44px; padding: 5px 10px; border: 1px solid #d4ddd8; border-radius: 18px; background: #fff; color: var(--ink); font-size: 12px; cursor: pointer; }
.dashboard-queue-chips button.active { border-color: var(--green); background: #e5f3ea; color: #165d3d; font-weight: 750; }
.dashboard-queue-chips button span { padding: 1px 5px; border-radius: 9px; background: #e9edeb; font-size: 12px; }
.dashboard-flow-layout { align-items: start; }
.dashboard-actions-panel { min-width: 0; }
.dashboard-action-row { display: grid; grid-template-columns: 3px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.dashboard-action-priority { align-self: stretch; border-radius: 3px; background: #aab6b0; }
.dashboard-action-priority.urgent { background: #bb4242; }
.dashboard-action-priority.soon { background: #d29b31; }
.dashboard-action-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.dashboard-action-copy strong { font-size: 13px; }
.dashboard-action-copy small { color: var(--muted); font-size: 12px; }
.dashboard-action-copy em { color: #7e5b1c; font-size: 12px; font-style: normal; }
.dashboard-action-controls > button, .dashboard-action-controls > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 5px 9px; border: 1px solid var(--green); border-radius: 5px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer; }
.dashboard-message-row { display: flex; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.dashboard-message-row span { flex: 1; }
.dashboard-message-row small { color: var(--muted); }
.dashboard-more-menu { position: relative; }
.dashboard-more-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; list-style: none; }
.dashboard-more-menu summary::-webkit-details-marker { display: none; }
.dashboard-more-menu > div { position: absolute; z-index: 20; top: 42px; right: 0; min-width: 150px; padding: 5px; border: 1px solid var(--line); border-radius: 5px; background: #fff; box-shadow: 0 10px 25px #0002; }
.dashboard-more-menu button { display: flex; align-items: center; gap: 6px; width: 100%; padding: 7px; border: 0; background: transparent; cursor: pointer; }
.visit-compact-header { display: grid; grid-template-columns: 58px minmax(170px, 1fr) minmax(210px, auto) auto; align-items: center; gap: 8px 14px; margin-bottom: 10px; padding: 11px 15px; border-radius: 8px; background: #151718; color: white; }
.visit-compact-header .patient-identity-photo { width: 56px; min-width: 56px; max-width: 56px; height: 56px; min-height: 56px; max-height: 56px; border-radius: 50%; }
.visit-compact-header h1 { margin: 1px 0 3px; color: #fff; font-size: 20px; }
.visit-compact-header p { margin: 0; color: #b8c1bc; font-size: 12px; }
.visit-compact-header .eyebrow { color: #8ebba9; }
.visit-compact-facts { display: flex; align-items: flex-start; flex-direction: column; gap: 3px; font-size: 12px; }
.visit-compact-facts strong { font-size: 14px; }
.visit-compact-actions { display: flex; align-items: center; gap: 5px; }
.visit-more-menu { position: relative; }
.visit-more-menu summary { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #69746f; border-radius: 5px; cursor: pointer; list-style: none; }
.visit-more-menu summary::-webkit-details-marker { display: none; }
.visit-more-menu > div { position: absolute; z-index: 20; right: 0; top: 39px; min-width: 155px; padding: 5px; border-radius: 5px; background: #fff; box-shadow: 0 8px 24px #0003; }
.visit-more-menu button { display: flex; gap: 6px; align-items: center; width: 100%; padding: 8px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.visit-compact-safety { grid-column: 2 / -1; display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.visit-compact-safety span { display: inline-flex; align-items: center; gap: 3px; }
.visit-compact-safety .allergy { color: #ffd0d0; font-size: 13px; font-weight: 750; }
.symptom-grid { grid-template-columns: 1fr; }
.symptom-trend-picker { display: grid; grid-template-columns: 85px 1fr; align-items: center; gap: 8px; }
.symptom-trend-label { font-size: 13px; font-weight: 700; }
.symptom-trend-options { display: flex; flex-wrap: wrap; gap: 5px; }
.symptom-trend-options button { min-height: 44px; padding: 5px 8px; border: 1px solid #ccd6d1; border-radius: 5px; background: #fff; color: var(--ink); font-size: 12px; cursor: pointer; }
.symptom-trend-options button.selected { border-color: var(--green); background: #e6f5eb; color: #155738; font-weight: 750; }
.symptom-trend-options button:disabled { cursor: not-allowed; opacity: .6; }
.visit-save-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.visit-save-actions .rz-button { white-space: nowrap; }
.visit-side-column .visit-goal-card { grid-template-columns: 30px minmax(0, 1fr); margin: 0; }
.patient-alert-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-bottom: 20px; }
.patient-goal-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px 16px; border: 1px solid #d8c98f; border-radius: 8px; background: #fff9e8; color: #755c0e; }
.patient-goal-card > .rzi { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f1df9d; font-size: 19px; }
.patient-goal-copy { min-width: 0; }
.patient-goal-copy > span { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.patient-goal-copy p { margin: 0; color: #433b22; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.patient-goal-copy > small { display: block; margin-top: 4px; color: #837751; font-size: 12px; text-align: right; }
.patient-goal-editor { width: 100%; min-height: 82px; resize: vertical; line-height: 1.45; }
.patient-goal-actions { display: flex; align-items: center; gap: 7px; }
.chart-goal-card, .visit-goal-card { margin: -10px 0 20px; }
.visit-plan-card { display: flex; align-items: center; gap: 14px; margin: -10px 0 20px; padding: 14px 18px; border: 1px solid #bad9d0; border-radius: 8px; background: #f2faf7; }
.visit-plan-card > .rz-icon { flex: 0 0 auto; color: var(--green); font-size: 26px; }
.visit-plan-copy { min-width: 210px; }
.visit-plan-copy > span { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.visit-plan-copy h2 { margin: 2px 0; font-size: 17px; }
.visit-plan-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.visit-requirement-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
.visit-requirement-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid #bad9d0; border-radius: 999px; background: white; color: #195e4c; font-size: 12px; font-weight: 750; }
.visit-requirement-chips .rz-icon { font-size: 14px; }
.lab-goal-card { margin: 14px 20px 0; }
.portal-goal-card { margin-bottom: 18px; }
.clinical-alert { min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid #b8d4c8; border-radius: 7px; background: var(--green-soft); color: var(--green); }
.clinical-alert.muted { border-color: var(--line); background: white; color: var(--charcoal); }
.clinical-alert.warning { border-color: #e3cf96; background: var(--amber-soft); color: var(--amber); }
.clinical-alert .rzi { font-size: 19px; }
.clinical-alert > span { display: flex; flex-direction: column; }
.clinical-alert small { margin-bottom: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; opacity: .75; }
.clinical-alert strong { font-size: 12px; }
.clinical-alert.safety-alert small { font-size: 13px; }
.clinical-alert.safety-alert strong { font-size: 14px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [role="button"]:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.vitals-form, .dose-volume, .visit-dose-summary, .time-block, .metric-card { font-variant-numeric: tabular-nums; }
.clinical-alert-link { width: 100%; font: inherit; text-align: left; cursor: pointer; }
.clinical-alert-link:hover { border-color: #9bbcae; background: #f8fbfa; }
.clinical-alert-link:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.clinical-alert-link .link-indicator { margin-left: auto; color: var(--green); font-size: 18px; }
.range-context { display: block; margin-top: 5px; color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.treatment-plan-list { display: grid; gap: 14px; }
.treatment-plan-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 2px 2px 4px; }
.treatment-plan-toolbar h2 { margin: 0; font-size: 16px; }
.treatment-plan-toolbar p { margin: 4px 0 0; font-size: 12px; }
.treatment-plan-card { padding: 0; overflow: hidden; }
.treatment-plan-card .panel-heading { margin: 0; padding: 16px 18px; }
.treatment-plan-heading-actions { display: flex; align-items: center; gap: 9px; }
.treatment-plan-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.treatment-plan-facts > span { display: flex; flex-direction: column; gap: 5px; padding: 13px 18px; background: white; }
.treatment-plan-facts small, .protocol-editor label > span, .treatment-plan-editor-grid label > span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.treatment-plan-facts strong { font-size: 12px; }
.protocol-editor { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr auto; align-items: end; gap: 14px; padding: 15px 18px; background: #fafbfb; }
.protocol-editor label { display: flex; flex-direction: column; gap: 6px; }
.protocol-editor > div { display: flex; flex-direction: column; gap: 4px; }
.protocol-editor > div strong { font-size: 12px; }
.protocol-editor > div span { color: var(--muted); font-size: 12px; }
.treatment-plan-editor-card { padding: 0 18px 16px; border-color: #b9d8ca; box-shadow: 0 0 0 2px rgba(31,122,90,.06); }
.treatment-plan-editor-card > .panel-heading { margin: 0 -18px 16px; padding: 16px 18px; background: #f5faf8; }
.treatment-plan-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 12px; }
.treatment-plan-editor-grid.embedded { padding: 16px 18px; border-top: 1px solid var(--line); background: #fafbfb; }
.treatment-plan-editor-grid label { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.treatment-plan-editor-grid .span-two { grid-column: 1 / -1; }
.treatment-plan-editor-grid .rz-dropdown, .treatment-plan-editor-grid .rz-datepicker { width: 100%; }
.treatment-formulation-preview { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 11px 12px; border-radius: 6px; background: var(--soft); color: var(--green); }
.treatment-formulation-preview > span { display: flex; flex-direction: column; gap: 3px; }
.treatment-formulation-preview strong { color: var(--charcoal); font-size: 12px; }
.treatment-formulation-preview small { color: var(--muted); font-size: 12px; }
.treatment-plan-revision-note { display: flex; align-items: center; gap: 7px; padding: 0 18px 14px; background: #fafbfb; color: var(--muted); font-size: 12px; }
.treatment-plan-editor-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.treatment-plan-editor-actions.embedded { margin: 0; padding: 0 18px 16px; background: #fafbfb; }
.treatment-plan-history { padding: 0; overflow: hidden; }
.treatment-plan-history summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; cursor: pointer; list-style: none; }
.treatment-plan-history summary::-webkit-details-marker { display: none; }
.treatment-plan-history summary > span { display: flex; align-items: center; gap: 8px; }
.treatment-plan-history summary .rzi { color: var(--green); }
.treatment-plan-history summary small { color: var(--muted); }
.treatment-plan-history-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.treatment-plan-history-row > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.treatment-plan-history-row strong { color: var(--charcoal); font-size: 12px; }
.treatment-plan-history-row:first-child { border-top: 0; }
.treatment-plan-history-row p { display: flex; align-items: flex-start; gap: 5px; margin: 5px 0 0; color: var(--charcoal); font-size: 12px; }
.treatment-plan-history-row p .rzi { color: var(--green); font-size: 14px; }
.treatment-history-heading { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.treatment-history-dates { min-width: 220px; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
.appointment-history-panel { overflow: hidden; }
.appointment-history-panel .rz-datatable-data td { vertical-align: top; }
.appointment-history-panel td small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.appointment-cancellation-note { min-width: 210px; display: flex; flex-direction: column; gap: 4px; white-space: normal; }
.appointment-cancellation-note > strong { color: var(--charcoal); font-size: 12px; }
.appointment-cancellation-note > span { line-height: 1.4; }
.patient-tabs, .admin-tabs { display: block; }
.timeline-toolbar { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; }
.timeline-toolbar > span { margin-right: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.timeline-toolbar button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.timeline-toolbar button.active { border-color: var(--ink); background: var(--ink); color: white; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.chart-panel { padding-bottom: 5px; }
.chart-data-warning { margin: 0 16px 14px; padding: 9px 11px; border: 1px solid #dfc88b; border-radius: 6px; background: #fff9e8; color: #624b13; font-size: 12px; line-height: 1.45; }
.trend-chip { padding: 5px 8px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; }
.trend-chip.neutral { background: var(--soft); color: var(--muted); }
.marker-panel { margin-bottom: 20px; }
.marker-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; }
.marker-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.marker-card > div:first-child, .portal-marker-card > div:first-child { display: flex; justify-content: space-between; gap: 8px; }
.marker-name { font-size: 12px; font-weight: 800; }
.marker-card > strong { display: block; margin: 11px 0 21px; font-size: 24px; }
.marker-card > strong small, .result-value small, .result-number small, .portal-result-number small { color: var(--muted); font-size: 12px; font-weight: 650; }
.marker-trend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 14px 14px; }
.marker-trend-chart { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfc; }
.marker-trend-heading { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px 0; }
.marker-trend-heading span { color: var(--muted); font-size: 12px; }
.classification { width: max-content; padding: 4px 7px; border-radius: 9px; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.classification-normal { background: var(--green-soft); color: var(--green); }
.classification-low, .classification-high { background: var(--amber-soft); color: var(--amber); }
.classification-critical { background: var(--red-soft); color: var(--red); }
.classification-unknown { background: var(--soft); color: var(--muted); }
.lab-range { min-width: 180px; }
.lab-range-track { position: relative; height: 9px; display: grid; grid-template-columns: 1fr 1fr 1fr; border-radius: 6px; background: #e0e2e3; }
.lab-range-track > span:not(.range-marker) { height: 9px; }
.range-low { border-radius: 6px 0 0 6px; background: #e2b954; }
.range-normal { background: #4d9c7c; }
.range-high { border-radius: 0 6px 6px 0; background: #e2b954; }
.range-marker { position: absolute; top: -17px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.range-marker strong { padding: 2px 4px; border-radius: 3px; background: var(--ink); color: white; font-size: 12px; }
.range-marker i { order: 2; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--ink); }
.lab-range-labels { display: flex; justify-content: space-between; margin-top: 5px; color: #8b9295; font-size: 12px; }
.lab-history-list { display: flex; flex-direction: column; gap: 12px; }
.lab-result-grid { padding: 0 18px 18px; }
.lab-result-row { min-height: 74px; display: grid; grid-template-columns: minmax(170px, 1fr) 110px 80px minmax(250px, 1.4fr); align-items: center; gap: 15px; border-bottom: 1px solid #eceeee; }
.lab-result-row > div:first-child { display: flex; flex-direction: column; }
.lab-result-row > div:first-child strong { font-size: 12px; }
.lab-result-row > div:first-child small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.result-value { font-size: 16px; font-weight: 800; }
.notes-panel { padding: 18px; }
.new-note { display: flex; align-items: flex-end; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.new-note textarea { flex: 1 1 auto; min-width: 0; }
.new-note .rz-button { flex: 0 0 auto; min-width: max-content; white-space: nowrap; }
@media (max-width: 600px) {
    .new-note { align-items: stretch; flex-direction: column; }
    .new-note textarea { width: 100%; }
    .new-note .rz-button { align-self: flex-end; }
}
.note-entry { padding: 16px 5px; border-bottom: 1px solid var(--line); }
.note-entry > div { display: flex; justify-content: space-between; }
.note-entry span, .note-entry small { color: var(--muted); font-size: 12px; }
.note-entry p { margin: 8px 0; color: var(--charcoal); }

.visit-progress { display: flex; align-items: flex-start; justify-content: space-between; margin: 18px 0; padding: 15px 25px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.visit-progress button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: transparent; color: #9aa0a3; font: inherit; cursor: default; opacity: 1; }
.visit-progress button::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: #e1e4e5; z-index: 0; }
.visit-progress button:first-child::before { display: none; }
.visit-progress i { position: relative; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; border: 2px solid #d8dcde; border-radius: 50%; background: white; font-style: normal; font-size: 12px; font-weight: 800; }
.visit-progress small { font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.visit-progress button.complete { color: var(--green); }
.visit-progress button.complete::before { background: var(--green); }
.visit-progress button.complete i { border-color: var(--green); background: var(--green); color: white; }
.visit-progress button.current { color: var(--ink); }
.visit-progress button.current i { border-color: var(--green); }
.visit-progress button.navigable { cursor: pointer; }
.visit-progress button.navigable:hover small { text-decoration: underline; text-underline-offset: 3px; }
.visit-progress button.active { color: var(--ink); }
.visit-progress button.active i { border-color: var(--ink); background: var(--ink); color: white; box-shadow: 0 0 0 3px rgba(31,122,90,.14); }
.visit-progress button.skipped { color: #a8adaf; }
.visit-progress button.skipped i { border-style: dashed; background: white; color: #8e9497; }
.visit-action-strip { position: sticky; top: calc(var(--demo-banner-height) + 70px); z-index: 12; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -8px 0 14px; padding: 10px 15px; border: 1px solid #bdd9cb; border-radius: 7px; background: #f3faf6; box-shadow: 0 3px 10px rgba(21,68,47,.08); font-size: 12px; }
.visit-action-strip strong { color: var(--green); }
.visit-action-strip small { color: var(--muted); white-space: nowrap; }
.visit-action-strip .visit-dose-summary { margin-left: 8px; color: var(--green); font-weight: 700; }
.visit-completed-summary { margin: -4px 0 14px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); font-size: 12px; }
.visit-completed-summary summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.visit-completed-summary > div { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.portal-mini-trend svg { display: block; flex: 0 0 100%; width: 100%; height: 38px; color: var(--green); }
.visit-workspace-grid { display: grid; grid-template-columns: minmax(650px, 1fr) 285px; gap: 15px; align-items: start; }
.visit-main-column { display: flex; flex-direction: column; gap: 12px; }
.workflow-section { position: relative; padding: 0 20px 18px; overflow: hidden; }
.workflow-section.current-section { border-left: 4px solid var(--green); }
.workflow-section .panel-heading { margin: 0 -20px 15px; padding-left: 62px; }
.section-number { position: absolute; top: 17px; left: 18px; z-index: 2; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 12px; font-weight: 800; }
.inline-form { display: flex; gap: 10px; }
.vitals-form { display: grid; grid-template-columns: 1fr 1.5fr .9fr .9fr .9fr; gap: 11px; }
.vitals-form label, .administration-fields label, .release-panel label { display: flex; flex-direction: column; gap: 5px; }
.vitals-form label > span, .administration-fields label > span, .release-panel label > span { color: #50575b; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
label em { color: #91979a; font-style: normal; font-weight: 500; text-transform: none; }
.vitals-form label > div { display: flex; align-items: center; }
.vitals-form label > div > small { margin-left: -30px; z-index: 2; color: var(--muted); font-size: 12px; pointer-events: none; }
.vitals-form .rz-numeric { width: 100%; }
.bp-input { gap: 5px; }
.bp-input .rz-numeric { min-width: 75px; }
.bp-input small { margin-left: -41px !important; }
.repeat-row { display: flex; align-items: center; gap: 8px; margin-top: 13px; color: var(--muted); font-size: 12px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.checkbox-label input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.section-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; }
.medication-section { padding-bottom: 20px; }
.safety-label { display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border: 1px solid #b9d5c9; border-radius: 5px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.medication-card { border: 1px solid #cbd0d2; border-radius: 9px; overflow: hidden; }
.medication-card + .medication-card { margin-top: 14px; }
.medication-title { display: flex; justify-content: space-between; align-items: flex-start; padding: 17px 20px; background: #17191a; color: white; }
.medication-title span:first-child { color: #9dd0bb; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.medication-title h3 { margin: 5px 0; font-size: 23px; }
.medication-title p { margin-bottom: 0; color: #aeb4b6; font-size: 12px; }
.medication-title a { color: #c8ead9; font-size: 12px; font-weight: 700; white-space: nowrap; }
.medication-detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-bottom: 1px solid var(--line); background: var(--line); }
.medication-detail-grid > span { min-height: 64px; display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; background: white; }
.medication-detail-grid small { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.medication-detail-grid strong { margin-top: 6px; font-size: 12px; }
.medication-detail-grid .dose-volume { background: var(--green-soft); color: var(--green); }
.medication-detail-grid .dose-volume strong { font-size: 17px; }
.medication-detail-grid .syringe-selection { padding-top: 8px; padding-bottom: 8px; }
.syringe-selection .rz-dropdown { width: 100%; margin-top: 6px; background: white; }
.split-dose-guidance { margin: 12px 16px 0; }
.medication-visuals { display: grid; grid-template-columns: minmax(450px, 1fr) 190px; gap: 10px; align-items: center; padding: 16px; background: #f7f8f8; border-bottom: 1px solid var(--line); }
.dose-visual-panel > span { display: block; margin: 0 0 4px 10px; color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.syringe-visual { display: grid; grid-template-columns: minmax(0, 1fr) 185px; align-items: center; gap: 18px; }
.syringe-visual svg { width: 100%; max-height: 138px; }
.syringe-visual-summary { display: flex; flex-direction: column; align-items: stretch; }
.syringe-route-callout { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; padding: 9px 11px; border: 1px solid #a8cebe; border-radius: 7px; background: var(--green-soft); color: var(--green); }
.syringe-route-callout small, .syringe-summary-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.syringe-route-callout strong { font-size: 14px; line-height: 1.2; }
.syringe-summary-label { color: var(--muted); }
.syringe-dose { margin-top: 4px; color: var(--ink); font-size: 17px; }
.syringe-meta { margin-top: 5px; color: var(--muted); font-size: 12px; }
.syringe-visual .needle, .syringe-visual .needle-tip { stroke: #6c7376; fill: #6c7376; stroke-width: 2; }
.syringe-visual .barrel { fill: white; stroke: #9da4a7; stroke-width: 2; }
.syringe-visual .plunger-stop, .syringe-visual .plunger { fill: #d8dcde; stroke: #858c8f; }
.syringe-visual .tick { stroke: #697174; stroke-width: 1.2; }
.syringe-visual .dose-target { stroke: var(--green); stroke-width: 2; stroke-dasharray: 3 2; }
.syringe-visual text { fill: #555d60; font-size: 12px; font-variant-numeric: tabular-nums; }
.syringe-visual .unit-value { font-weight: 750; }
.syringe-visual .unit-caption { fill: #767e81; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.syringe-fit-warning { margin: 12px 16px 0; }
.site-visual { border-left: 1px solid var(--line); }
.site-visual svg { width: 150px; height: 160px; display: block; margin: auto; }
.body-outline { fill: #fbfcfc; stroke: #858d90; stroke-width: 2; stroke-linejoin: round; }
.body-head { fill: #f4f6f6; }
.body-neck { fill: #f4f6f6; }
.body-shape { fill: #f8fafa; }
.body-limb { fill: none; stroke: #858d90; stroke-width: 10; stroke-linecap: round; }
.body-detail { fill: none; stroke: #c2c8ca; stroke-width: 1.4; stroke-linecap: round; }
.site-marker-ring { fill: rgba(31,122,90,.12); stroke: var(--green); stroke-width: 2; }
.site-marker { fill: var(--green); }
.site-visual text { fill: var(--charcoal); font-size: 12px; font-weight: 700; }
.administration-checks { padding: 17px; }
.administration-checks[id] { scroll-margin-top: calc(var(--demo-banner-height) + 125px); }
.five-rights { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-bottom: 16px; }
.five-rights span { position: relative; min-height: 62px; display: flex; flex-direction: column; padding: 10px 8px 8px 29px; border: 1px solid #c6ddd3; border-radius: 6px; background: var(--green-soft); }
.five-rights i { position: absolute; left: 9px; top: 10px; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 12px; font-style: normal; }
.five-rights small { color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.five-rights strong { margin-top: 7px; font-size: 12px; }
.administration-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.field-wide { grid-column: span 2; }
.instruction-note, .clinical-guidance, .portal-disclaimer { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 11px 13px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); }
.instruction-note span { display: flex; flex-direction: column; font-size: 12px; line-height: 1.5; }
.instruction-note strong { margin-bottom: 3px; }
.instruction-note.education { background: #f3f0fa; color: #6d5da8; }
.provider-escalation-body { flex: 1; min-width: 0; }
.provider-escalation-controls { display: grid; grid-template-columns: minmax(180px, 260px) 1fr max-content; align-items: start; gap: 10px; margin-top: 10px; }
.provider-escalation-reason { grid-column: 1 / -1; grid-row: 2; width: 100%; min-height: 86px; resize: vertical; line-height: 1.45; }
.provider-escalation-controls .rz-button { grid-column: 3; grid-row: 1; align-self: start; }
.lab-draw-fields { margin-top: 16px; }
.clinical-section-actions .action-requirement { display: inline-flex; align-items: center; gap: 5px; margin-right: auto; color: var(--amber); font-size: 12px; font-weight: 700; }
.clinical-section-actions .action-requirement .rz-icon { font-size: 15px; }
.workflow-navigation { justify-content: flex-start; }
.order-toggle { margin-top: 13px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 6px; }
.order-toggle > span { display: flex; flex-direction: column; }
.order-toggle strong { font-size: 12px; }
.order-toggle small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.checkout-suggestion { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; gap: 10px; margin-top: 11px; padding: 12px; border-radius: 6px; background: var(--soft); }
.checkout-suggestion > span { display: flex; flex-direction: column; }
.checkout-suggestion small { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.checkout-suggestion strong { margin-top: 4px; font-size: 12px; }
.checkout-direct-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.checkout-existing-appointments { display: grid; gap: 6px; margin-top: 16px; }
.checkout-existing-appointments h3, .checkout-existing-appointments p { margin: 0; }
.checkout-existing-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.checkout-existing-option:has(input:checked) { border-color: var(--green); background: #f3faf6; }
.appointment-quick-slots { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 12px; }
.appointment-quick-slots a { color: var(--green); font-weight: 700; }
.checkout-note-details { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.checkout-note-details summary { color: var(--green); font-size: 12px; font-weight: 750; cursor: pointer; }
.checkout-note-details label { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 750; }
.checkout-note-details input { width: 100%; }
.visit-side-column { position: sticky; top: 83px; display: flex; flex-direction: column; gap: 12px; }
.side-summary { padding: 16px; }
.side-summary h2 { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.side-summary > div:not(.history-mini) { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #eceeee; }
.side-summary small { color: var(--muted); font-size: 12px; }
.side-summary strong { font-size: 12px; }
.side-summary .visit-type-summary { align-items: flex-start; }
.side-summary .visit-type-summary strong { max-width: 175px; text-align: right; line-height: 1.35; }
.history-mini { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid #eceeee; }
.history-mini span { margin: 5px 0; color: var(--muted); font-size: 12px; }

.lab-worklist-layout { display: grid; grid-template-columns: minmax(300px, .7fr) minmax(0, 1.5fr); gap: 14px; align-items: start; }
.lab-import-panel { margin-bottom: 14px; padding: 14px 18px; }
.lab-import-panel summary { cursor: pointer; font-weight: 700; }
.lab-import-panel p { margin: 10px 0; }
.lab-import-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.lab-import-panel .validation-errors { color: #9f2f2f; margin: 10px 0 0; }
.worklist-panel { overflow: hidden; }
.worklist-controls { display: grid; grid-template-columns: auto minmax(150px, 1fr); align-items: center; gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
.worklist-filters { display: flex; gap: 5px; }
.worklist-filters button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.worklist-filters button.active { border-color: var(--ink); background: var(--ink); color: white; }
.worklist-filters span { margin-left: 3px; opacity: .7; }
.worklist-search { min-width: 0; display: flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.worklist-search:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px rgba(31,122,90,.1); }
.worklist-search .rzi { color: var(--muted); font-size: 15px; }
.worklist-search input { min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; }
.worklist-search input::placeholder { color: #9ba1a3; }
.lab-worklist-row { width: 100%; min-height: 76px; display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; cursor: pointer; }
.lab-worklist-row.selected { background: #f0f7f4; box-shadow: inset 4px 0 var(--green); }
.patient-initials { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e4e7e8; color: var(--charcoal); font-size: 12px; font-weight: 800; }
.lab-worklist-row > span:nth-child(2) { display: flex; flex-direction: column; }
.lab-worklist-row > span:nth-child(2) strong { font-size: 12px; }
.lab-worklist-row > span:nth-child(2) small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.abnormal-count { grid-column: 2; color: var(--amber); font-size: 12px; font-weight: 800; }
.lab-worklist-row > .state-badge { grid-column: 3; grid-row: 1 / span 2; }
.worklist-pagination { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: #fafbfb; color: var(--muted); font-size: 12px; }
.worklist-pagination > div { display: flex; align-items: center; gap: 7px; }
.worklist-pagination strong { color: var(--charcoal); font-size: 12px; white-space: nowrap; }
.worklist-pagination button { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: white; color: var(--charcoal); cursor: pointer; }
.worklist-pagination button:disabled { color: #b4b9bb; background: #f3f4f4; cursor: default; }
.worklist-pagination .rzi { font-size: 16px; }
.lab-review-panel { min-height: 500px; padding-bottom: 18px; }
.lab-review-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.lab-review-header h2 { font-size: 22px; }
.lab-review-header p { margin-bottom: 0; font-size: 12px; }
.lab-review-status-row { position: sticky; top: calc(var(--demo-banner-height) + 70px); z-index: 8; display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: white; font-size: 12px; }
.release-panel, #all-appointment-times { scroll-margin-top: calc(var(--demo-banner-height) + 120px); }
#notification-preferences { scroll-margin-top: calc(var(--demo-banner-height) + 86px); }
.lab-review-status-row a { margin-left: auto; color: var(--green); font-weight: 750; }
#review-and-attest { scroll-margin-top: 125px; }
.clinical-guidance { margin: 14px; }
.clinical-guidance p { margin: 0; color: var(--blue); font-size: 12px; }
.lab-review-results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; padding: 0 14px; }
.lab-review-result { padding: 14px; border: 1px solid var(--line); border-radius: 7px; }
.lab-review-result.critical { border-color: #dbaaaa; background: #fffafa; }
.result-heading { display: flex; justify-content: space-between; gap: 12px; }
.result-heading > div { display: flex; flex-direction: column; }
.result-heading strong { font-size: 12px; }
.result-heading small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.result-number { margin: 15px 0 24px; font-size: 24px; font-weight: 850; }
.lab-review-result > p { margin: 13px 0 0; font-size: 12px; }
.release-panel { margin: 14px 14px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.release-panel > div { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 12px; }
.release-panel > div > span { display: flex; align-items: center; gap: 6px; }

.admin-metrics { margin-bottom: 12px; }
.admin-section { padding: 0 16px 16px; }
.admin-section > .panel-heading { margin: 0 -16px 15px; }
.type-cell { display: flex; align-items: center; gap: 8px; }
.type-cell i { width: 9px; height: 28px; border-radius: 2px; }
.admin-inline-record-editor { margin: 0 0 16px; padding: 16px; border: 1px solid #b9daca; border-radius: 9px; background: #f3faf7; box-shadow: 0 8px 24px rgba(31,122,90,.07); }
.admin-modal-backdrop { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 24px; background: rgba(15,17,18,.58); backdrop-filter: blur(2px); }
.rz-notification { z-index: 1300; }
.admin-location-modal { width: min(1040px, 100%); max-height: calc(100vh - 48px); margin: 0; overflow-y: auto; background: white; box-shadow: 0 24px 70px rgba(15,17,18,.3); }
.admin-editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.admin-editor-heading h3 { margin: 3px 0 0; font-size: 16px; }
.admin-location-modal .admin-editor-heading h2 { margin: 3px 0 0; font-size: 18px; }
.profile-photo-modal-backdrop { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; background: rgba(15,17,18,.62); backdrop-filter: blur(3px); }
.profile-photo-dialog { width: min(650px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; padding: 20px; border: 1px solid #cad2cf; border-radius: 12px; background: white; box-shadow: 0 28px 80px rgba(15,17,18,.38); }
.profile-photo-dialog > header, .profile-photo-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.profile-photo-dialog > header h2 { margin: 3px 0 0; }
.profile-photo-dialog > footer { justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--line); }
.profile-photo-dialog-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 24px; padding: 22px 0; }
.profile-photo-preview { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 50%; }
.profile-photo-picker-copy h3 { margin-bottom: 7px; font-size: 16px; }
.profile-photo-picker-copy p { margin-bottom: 14px; font-size: 12px; }
.profile-photo-picker-copy > small { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.profile-photo-picker { width: max-content; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 7px; background: var(--ink); color: white; font-size: 12px; font-weight: 750; cursor: pointer; }
.profile-photo-picker:hover { background: #2f3437; }
.profile-photo-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.profile-photo-error { margin-top: 11px; padding: 9px 10px; border-radius: 6px; background: var(--red-soft); color: var(--red); font-size: 12px; font-weight: 650; }
.admin-record-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-record-form-grid.three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-record-form-grid label { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.admin-record-form-grid label > .rz-textbox, .admin-record-form-grid label > .rz-dropdown, .admin-record-form-grid label > .rz-numeric, .admin-record-form-grid label > .rz-textarea { width: 100%; }
.clinic-assignment-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.clinic-assignment-picker legend { color: var(--muted); font-size: 12px; font-weight: 750; }
.clinic-assignment-picker small { color: var(--muted); }
.clinic-assignment-options { display: grid; grid-template-columns: minmax(0, 1fr); width: min(100%, 720px); overflow: hidden; margin-top: 10px; border: 1px solid var(--line); border-radius: 7px; }
.clinic-assignment-picker .clinic-assignment-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 38px; margin: 0; padding: 8px 11px; color: var(--ink); font-size: 12px; font-weight: 650; cursor: pointer; }
.clinic-assignment-option + .clinic-assignment-option { border-top: 1px solid var(--line); }
.clinic-assignment-option:nth-child(even) { background: #f2f6f4; }
.clinic-assignment-option:hover { background: #eaf3ef; }
.clinic-assignment-option:focus-within { outline: 2px solid var(--green); outline-offset: -2px; }
.clinic-assignment-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.admin-record-form-grid .span-two { grid-column: span 2; }
.admin-record-form-grid .span-three { grid-column: span 3; }
.appointment-color-field { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 750; }
.appointment-color-presets { display: flex; flex-wrap: wrap; gap: 7px; }
.appointment-color-presets button { width: 27px; height: 27px; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #b8c7c0; cursor: pointer; }
.appointment-color-presets button.selected { box-shadow: 0 0 0 2px var(--ink); }
.appointment-color-presets button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.admin-advanced-details { border: 1px solid var(--line); border-radius: 8px; background: #fafcfb; }
.admin-advanced-details summary { padding: 11px 13px; color: var(--green); font-size: 12px; font-weight: 750; cursor: pointer; }
.admin-advanced-details[open] summary { border-bottom: 1px solid var(--line); }
.admin-advanced-details > .admin-record-form-grid { padding: 13px; }
.patient-lab-schedule-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; padding: 14px 16px; }
.patient-lab-schedule-panel > div:first-child { flex: 1 1 230px; }
.patient-lab-schedule-panel strong { font-size: 12px; }
.patient-lab-schedule-panel p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.patient-lab-schedule-panel label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 750; }
.admin-inline-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #d8eae1; }
.admin-switches { display: flex; align-items: center; gap: 20px; }
.admin-switches.wrap { flex-wrap: wrap; }
.admin-switches .clinic-switch-copy { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
.admin-switches .clinic-switch-copy strong { font-size: 12px; }
.admin-switches .clinic-switch-copy small { color: var(--muted); font-size: 12px; }
.admin-sub-editor { margin-top: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.admin-location-prompt { display: flex; align-items: center; gap: 14px; min-height: 92px; margin-top: 16px; padding: 18px; border: 1px dashed #b8c0c3; border-radius: 9px; background: #fafbfb; }
.admin-location-prompt > .rzi { color: var(--green); font-size: 28px; }
.admin-location-prompt strong { display: block; margin-bottom: 4px; }
.admin-location-prompt p { margin: 0; font-size: 12px; }
.selected-location-context { margin: 18px 0 0; padding: 14px 16px; border-left: 4px solid var(--green); border-radius: 0 8px 8px 0; background: var(--green-soft); }
.selected-location-context h2 { margin: 3px 0 2px; }
.selected-location-context p { margin: 0; font-size: 12px; }
.admin-config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.settings-workspace { display: grid; grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); align-items: start; gap: 18px; }
.settings-menu { display: grid; gap: 4px; padding: 14px; position: sticky; top: 12px; }
.settings-menu input { width: 100%; min-height: 40px; }
.settings-menu h2 { margin: 15px 8px 4px; color: #56615d; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.settings-menu button, .settings-menu a { display: grid; gap: 3px; width: 100%; text-align: left; padding: 9px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); text-decoration: none; cursor: pointer; }
.settings-menu button:hover, .settings-menu a:hover, .settings-menu button.active { background: #edf6f1; }
.settings-menu small { color: var(--text-muted); }
.settings-content { min-width: 0; }
.settings-content .admin-section > .panel-heading > .rz-button { flex: 0 0 auto; white-space: nowrap; }
.settings-content .admin-tabs > .rz-tabview-nav { display: none; }
.settings-clickable-rows tbody tr { cursor: pointer; }
.settings-anchor-menu { display: flex; gap: 7px; overflow-x: auto; margin: 0 0 12px; }
.settings-anchor-menu a { min-height: 40px; display: inline-flex; align-items: center; padding: 7px 12px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); text-decoration: none; font-weight: 700; }
.settings-fold { min-width: 0; }
.settings-fold > summary { cursor: pointer; padding: 10px 12px; font-weight: 800; }
.settings-fold > .admin-config-card { margin-top: 0; }
@media (max-width: 850px) { .settings-workspace { grid-template-columns: 1fr; } .settings-menu { position: static; } }
.admin-config-card { padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfb; }
.admin-config-heading { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.admin-config-heading p { margin: 4px 0 0; font-size: 12px; }
.admin-config-heading > .rzi { color: var(--green); font-size: 24px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-form-grid label, .inline-admin-editor label, .admin-list-filter label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.admin-form-grid .span-two { grid-column: 1 / -1; }
.compact-admin-list { max-height: 255px; overflow-y: auto; margin-top: 14px; border-top: 1px solid var(--line); }
.compact-admin-list > div { min-height: 55px; display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 4px 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.compact-admin-list strong, .compact-admin-list span { font-size: 12px; }
.compact-admin-list small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.admin-list-filter { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-list-filter .rz-dropdown { width: 100%; }
.compact-admin-list.weekly-hours-list { max-height: none; margin-top: 8px; }
.compact-admin-list.location-closures-list { margin-top: 8px; }
.compact-admin-list > .compact-admin-empty { display: flex; min-height: 70px; flex-direction: column; align-items: flex-start; justify-content: center; }
.compact-admin-list > .compact-admin-empty small { grid-column: auto; }
.compact-admin-list > .admin-list-record { grid-template-columns: minmax(110px, .8fr) minmax(150px, 1.2fr) auto; }
.admin-list-record > div:first-child, .admin-list-record > span { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.admin-list-record > span small { color: var(--muted); font-size: 12px; }
.row-actions, .inline-delete-confirm { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.row-actions .rz-button, .admin-list-record > .rz-button { min-width: 32px; }
.associated-providers-card { margin-top: 12px; }
.associated-provider-list { max-height: none; margin-top: 0; }
.associated-provider-list > .associated-provider-record { display: grid; grid-template-columns: minmax(220px, .9fr) minmax(100px, 1fr) auto; }
.associated-provider-status { align-items: flex-start; }
.admin-location-page-heading { margin-bottom: 18px; }
.admin-location-summary { display: grid; grid-template-columns: .65fr 2fr 1fr .55fr 1.25fr .65fr; gap: 0; margin-bottom: 16px; padding: 0; overflow: hidden; }
.admin-location-summary > div { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 15px; border-right: 1px solid var(--line); }
.admin-location-summary > div:last-child { border-right: 0; }
.admin-location-summary span { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.admin-location-summary strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; }
.admin-location-summary .state-badge { align-self: flex-start; overflow: visible; }
.admin-location-config-grid { margin-top: 0; }
.admin-location-config-grid .admin-config-card, .admin-location-providers { background: white; }
.admin-location-providers { margin-top: 14px; }
.provider-coverage-card { margin-top: 14px; background: white; }
.provider-coverage-list { max-height: none; margin-top: 8px; }
.compact-admin-list.staff-hours-list { max-height: none; overflow: visible; }
.provider-coverage-record > span { display: flex; flex-direction: column; gap: 3px; }
.compact-admin-list > .staff-hours-record { display: grid; grid-template-columns: minmax(175px, .65fr) minmax(560px, 2.35fr); gap: 14px; padding: 13px 2px; }
.staff-hours-identity { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.staff-hours-identity strong { font-size: 12px; }
.staff-week-strip { display: grid; grid-template-columns: repeat(7, minmax(74px, 1fr)); gap: 6px; min-width: 0; overflow-x: auto; padding-bottom: 2px; }
.staff-day-summary { min-height: 54px; display: flex; min-width: 74px; flex-direction: column; gap: 4px; padding: 7px 8px; border: 1px solid #cfe0d9; border-radius: 7px; background: #f5faf8; }
.staff-day-summary > span { color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.staff-day-summary > strong { font-size: 12px; line-height: 1.3; white-space: nowrap; }
.staff-day-summary.is-off { border-color: #e3e7e5; background: #f7f8f8; }
.staff-day-summary.is-off > span, .staff-day-summary.is-off > strong { color: #89918e; }
.staff-hours-count { align-self: flex-start; padding: 4px 7px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 800; white-space: nowrap; }
.staff-hours-modal { width: min(1180px, 100%); }
.staff-hours-modal .admin-editor-heading p { margin: 4px 0 0; font-size: 12px; }
.staff-hours-modal-toolbar { display: grid; grid-template-columns: minmax(240px, .45fr) minmax(280px, 1fr); align-items: end; gap: 18px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf9; }
.staff-hours-modal-toolbar label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.staff-hours-modal-toolbar .rz-dropdown { width: 100%; background: white; font-size: 12px; text-transform: none; }
.staff-hours-modal-toolbar > small { padding-bottom: 9px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.staff-hours-editor-section { margin-top: 18px; }
.staff-hours-editor-section + .staff-hours-editor-section { padding-top: 17px; border-top: 1px solid var(--line); }
.staff-hours-editor-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.staff-hours-editor-section-heading h3 { margin: 0; font-size: 14px; }
.staff-hours-editor-section-heading p { margin: 3px 0 0; font-size: 12px; }
.staff-hours-day-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.staff-hours-day-card { min-height: 124px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfc; }
.staff-hours-day-card > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.staff-hours-day-card > header strong { font-size: 12px; }
.staff-hours-day-card > header .rz-button, .schedule-shift-actions .rz-button { min-width: 29px; height: 29px; padding: 0 7px; }
.staff-hours-empty-day, .staff-hours-empty-one-time { display: block; padding: 10px 0; color: var(--muted); font-size: 12px; }
.staff-hours-shift-row { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 8px 0; border-top: 1px solid #e5e9e7; }
.staff-hours-shift-row > span { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.staff-hours-shift-row > span strong { font-size: 12px; }
.staff-hours-shift-row > span small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.schedule-shift-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 4px; }
.staff-hours-one-time-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.staff-hours-one-time-list .staff-hours-shift-row { padding-inline: 9px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfc; }
.staff-hours-shift-editor { margin-top: 18px; border-color: #b9daca; background: #f3faf7; }
.staff-hours-booking-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.staff-hours-form-error { margin-top: 10px; padding: 10px 12px; border: 1px solid #e3b4b2; border-radius: 6px; background: #fff2f1; color: #8a2521; font-size: 12px; font-weight: 650; line-height: 1.4; }
.staff-hours-shift-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.staff-hours-shift-form .admin-switches { min-height: 39px; }
.admin-action-link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--ink); font-size: 12px; font-weight: 750; }
.admin-action-link:hover { border-color: #a8afb2; text-decoration: none; }
.admin-row-link { font-size: 12px; font-weight: 750; white-space: nowrap; }
.inline-admin-editor { display: grid; grid-template-columns: minmax(220px, 1fr) 150px auto; align-items: end; gap: 10px; margin-bottom: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfb; }
.lab-range-editor { grid-template-columns: repeat(4, minmax(135px, 1fr)); margin-top: 14px; }
.lab-range-editor .span-two { grid-column: span 2; }
.lab-range-editor > .rz-button { justify-self: end; align-self: end; }
.approval-field > span:last-child { min-height: 34px; display: flex; align-items: center; gap: 8px; color: var(--charcoal); font-weight: 650; }
.lab-retention-editor { grid-template-columns: minmax(220px, .55fr) minmax(230px, 1fr) auto; }
.admin-setting-description { display: flex; flex-direction: column; gap: 4px; align-self: center; }
.admin-setting-description strong { font-size: 12px; }
.admin-setting-description span { color: var(--muted); font-size: 12px; }
.lab-ranges-heading { margin-top: 22px !important; border-top: 1px solid var(--line); }

.portal-preview-label { width: max-content; display: flex; align-items: center; gap: 6px; margin: -10px 0 12px; padding: 6px 9px; border-radius: 4px; background: var(--amber-soft); color: var(--amber); font-size: 12px; font-weight: 800; }
.portal-home { max-width: 1180px; margin: 0 auto; }
.portal-destination-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.portal-destination-grid > a { min-height: 112px; display: grid; grid-template-columns: 48px minmax(0, 1fr) 22px; align-items: center; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); box-shadow: 0 2px 5px rgba(24, 31, 29, .035); }
.portal-destination-grid > a:hover { border-color: #9fb8ae; box-shadow: 0 6px 16px rgba(24, 31, 29, .08); text-decoration: none; transform: translateY(-1px); }
.portal-destination-grid > a > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.portal-destination-grid > a strong { font-size: 13px; }
.portal-destination-grid > a small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.portal-destination-grid > a > .rzi { color: var(--muted); font-size: 19px; }
.portal-destination-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 9px; }
.portal-destination-icon.green { background: var(--green-soft); color: var(--green); }
.portal-destination-icon.blue { background: var(--blue-soft); color: var(--blue); }
.portal-destination-icon.amber { background: var(--amber-soft); color: var(--amber); }
.portal-destination-icon.purple { background: var(--purple-soft); color: var(--purple); }
.portal-record-page-heading { margin-bottom: 18px; }
.portal-latest-results { margin-bottom: 10px; }
.portal-privacy-guidance { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #c9dce5; border-radius: 8px; background: var(--blue-soft); color: var(--blue); }
.portal-privacy-guidance .rzi { font-size: 18px; }
.portal-privacy-guidance p { margin: 0; color: var(--charcoal); font-size: 12px; line-height: 1.55; }
.portal-visit-history-list { display: flex; flex-direction: column; gap: 10px; }
.portal-visit-card { overflow: hidden; padding: 0; }
.portal-visit-heading { min-height: 74px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 18px; }
.portal-visit-heading > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.portal-visit-heading > span:nth-child(2) strong { font-size: 12px; }
.portal-visit-heading > span:nth-child(2) small { color: var(--muted); font-size: 12px; }
.portal-cancellation-reason { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--amber-soft); font-size: 12px; }
.portal-visit-medications { padding: 13px 18px; border-top: 1px solid var(--line); background: #fbfcfc; }
.portal-visit-medications > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.portal-visit-medications > div { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.portal-visit-medications > div:first-of-type { border-top: 0; }
.portal-visit-medications > div > .rzi { color: var(--green); font-size: 18px; }
.portal-visit-medications > div > span { display: flex; flex-direction: column; gap: 3px; }
.portal-visit-medications strong { font-size: 12px; }
.portal-visit-medications small { color: var(--muted); font-size: 12px; }
.portal-plan-section + .portal-plan-section { margin-top: 26px; }
.portal-treatment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.portal-treatment-grid.historical .portal-treatment-card { opacity: .84; }
.portal-treatment-card { padding: 0; overflow: hidden; }
.portal-treatment-heading { min-height: 74px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.portal-treatment-heading > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.portal-treatment-heading strong { font-size: 12px; }
.portal-treatment-heading small { color: var(--muted); font-size: 12px; }
.portal-treatment-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-treatment-facts > span { min-height: 65px; display: flex; flex-direction: column; gap: 5px; padding: 13px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.portal-treatment-facts > span:nth-child(even) { border-right: 0; }
.portal-treatment-facts > span:nth-last-child(-n+2) { border-bottom: 0; }
.portal-treatment-facts small { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.portal-treatment-facts strong { font-size: 12px; line-height: 1.45; }
.portal-medication-history, .portal-billing-list { overflow: hidden; }
.portal-medication-row { grid-template-columns: minmax(170px, 1fr) minmax(200px, 1.35fr) minmax(120px, .8fr) minmax(150px, 1fr); }
.portal-medication-dose { display: flex; align-items: baseline; column-gap: 10px; row-gap: 3px; flex-wrap: wrap; }
.portal-medication-dose small { white-space: nowrap; }
.portal-billing-row { min-height: 76px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); }
.portal-billing-row:first-child { border-top: 0; }
.portal-billing-row > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.portal-billing-row > span:nth-child(2) strong { font-size: 12px; }
.portal-billing-row > span:nth-child(2) small { color: var(--muted); font-size: 12px; }
.portal-welcome { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.portal-welcome h1 { font-size: 32px; }
.portal-welcome p { margin-bottom: 0; }
.portal-welcome > img { display: block; width: 70px; min-width: 70px; max-width: 70px; height: 70px; min-height: 70px; max-height: 70px; border-radius: 50%; object-fit: cover; object-position: center; background: #e6e8e9; }
.portal-appointment-card { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-radius: 9px; background: #17191a; color: white; }
.portal-appointment-card > div { display: flex; align-items: center; gap: 13px; }
.portal-appointment-card > div > span:last-child { display: flex; flex-direction: column; }
.portal-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 7px; background: #2e3436; color: #a8cfbf; }
.portal-appointment-card small { color: #9fa5a7; font-size: 12px; text-transform: uppercase; }
.portal-appointment-card strong { margin: 5px 0 3px; font-size: 14px; }
.portal-appointment-card p { margin: 0; color: #aeb3b5; font-size: 12px; }
.portal-section, .portal-appointment-card { scroll-margin-top: 82px; }
.portal-section { padding-top: 30px; }
.portal-section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 13px; }
.portal-section-heading h2 { font-size: 22px; }
.portal-section-heading > span { color: var(--muted); font-size: 12px; }
.lab-panel-disclosure-trigger:focus-visible { outline: 3px solid rgba(31, 133, 96, .2); outline-offset: 2px; }
.portal-marker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.portal-marker-card { padding: 16px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.portal-marker-card > div > strong { font-size: 12px; }
.portal-marker-card > p { margin: 5px 0 0; font-size: 12px; }
.portal-mini-trend { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.portal-mini-trend span { display: flex; flex: 1; flex-direction: column; gap: 3px; padding: 6px; border-radius: 5px; background: var(--soft); }
.portal-mini-trend small { color: var(--muted); font-size: 12px; }
.portal-mini-trend strong { font-size: 12px; }
.chart-trend-shortcut { display: flex; justify-content: flex-end; margin: 8px 0; }
.portal-result-number { margin: 14px 0 23px; font-size: 24px; font-weight: 850; }
.result-education { min-height: 68px; padding-top: 12px; border-top: 1px solid var(--line); }
.portal-disclaimer { margin: 10px 0 0; }
.portal-disclaimer p { margin: 0; color: var(--blue); font-size: 12px; }
.portal-history-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 28px 0 10px; }
.portal-history-heading h3, .portal-history-heading p { margin: 0; }
.portal-history-heading p { font-size: 12px; }
.portal-panel-history { display: flex; flex-direction: column; gap: 10px; }
.portal-lab-panel { overflow: hidden; }
.portal-lab-panel .panel-heading { min-height: 58px; }
.portal-record-table { width: 100%; overflow-x: auto; }
.portal-record-row { min-width: 650px; min-height: 54px; display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(125px, .8fr) minmax(175px, 1fr) 90px; align-items: center; gap: 16px; padding: 10px 20px; border-top: 1px solid #eceeee; color: var(--charcoal); font-size: 12px; }
.portal-record-row:first-child { border-top: 0; }
.portal-record-row > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.portal-record-row small { color: var(--muted); font-size: 12px; }
.portal-record-header { min-height: 34px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.portal-release-note { display: flex; align-items: center; gap: 7px; margin: 0; padding: 10px 20px; border-top: 1px solid var(--line); background: #fbfcfc; color: var(--muted); font-size: 12px; }
.portal-release-note .rzi { color: var(--green); font-size: 14px; }
.lab-panel-accordion { display: flex; flex-direction: column; gap: 9px; }
.lab-panel-disclosure { padding: 0; overflow: hidden; }
.lab-panel-disclosure-trigger { width: 100%; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 18px; border: 0; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.lab-panel-disclosure-trigger:hover { background: #fbfcfc; }
.lab-panel-disclosure.is-expanded .lab-panel-disclosure-trigger { background: #fbfcfc; }
.lab-panel-disclosure-date { min-width: 0; display: flex; align-items: center; gap: 11px; }
.lab-panel-disclosure-date > .rzi { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 18px; }
.lab-panel-disclosure-date > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lab-panel-disclosure-date strong { font-size: 12px; }
.lab-panel-disclosure-date small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.lab-panel-disclosure-summary { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.lab-panel-disclosure-summary > .rzi { color: var(--green); font-size: 22px; }
.lab-panel-disclosure-body { border-top: 1px solid var(--line); }
.patient-facing-lab-note { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; margin: 14px 18px; padding: 14px; border: 1px solid #c7dfd4; border-radius: 8px; background: var(--green-soft); }
.patient-facing-lab-note > .rzi { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--green); font-size: 17px; }
.patient-facing-lab-note > div { display: flex; flex-direction: column; gap: 4px; }
.patient-facing-lab-note span { color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.patient-facing-lab-note p { margin: 0; color: var(--charcoal); font-size: 12px; line-height: 1.55; }
.patient-facing-lab-note small { color: var(--muted); font-size: 12px; font-weight: 650; }
.staff-lab-note { margin: 0 0 14px; }
.lab-history-record-table .portal-record-row { padding-left: 18px; padding-right: 18px; }
.portal-vitals-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.portal-vitals-summary article { display: flex; flex-direction: column; gap: 7px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.portal-vitals-summary span { color: var(--muted); font-size: 12px; font-weight: 750; }
.portal-vitals-summary strong { font-size: 24px; }
.portal-vitals-summary strong small { color: var(--muted); font-size: 12px; }
.portal-vitals-summary time { color: var(--muted); font-size: 12px; }
.portal-vitals-history { overflow: hidden; }
.portal-vitals-row { grid-template-columns: minmax(160px, 1fr) repeat(3, minmax(145px, 1fr)); }
.portal-appointment-history-list { overflow: hidden; }
.portal-appointment-history-row { min-height: 70px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 18px; border-top: 1px solid var(--line); }
.portal-appointment-history-row:first-child { border-top: 0; }
.portal-appointment-history-details { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.portal-appointment-history-details > strong { font-size: 12px; }
.portal-appointment-history-details > small { color: var(--muted); font-size: 12px; }
.portal-appointment-history-details p { margin: 3px 0 0; padding: 7px 9px; border-radius: 5px; background: var(--amber-soft); color: #5e4a17; font-size: 12px; }
.portal-history-row { min-height: 62px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 9px; margin: 0 15px; border-bottom: 1px solid var(--line); }
.portal-icon.small { width: 30px; height: 30px; background: var(--soft); color: var(--green); }
.portal-history-row > span:nth-child(2) { display: flex; flex-direction: column; }
.portal-history-row strong { font-size: 12px; }
.portal-history-row small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.portal-history-row time { font-size: 12px; font-weight: 750; }

.queue-panel { margin-top: 14px; }
.queue-row { grid-template-columns: minmax(220px, 1fr) auto minmax(490px, auto); min-height: 68px; padding: 11px 15px; cursor: default; }
.queue-reason { max-width: 560px; color: var(--amber) !important; line-height: 1.35; white-space: normal; }
.queue-controls, .queue-actions { display: flex; align-items: center; gap: 8px; }
.queue-controls { justify-content: flex-end; }
.queue-datetime { width: 215px !important; min-width: 215px; flex-shrink: 0; }
.queue-actions { gap: 6px; }
.documentation-list { padding: 0 12px 10px; }
.flow-row.documentation-row { grid-template-columns: 36px minmax(0, 1fr) auto 20px; min-height: 68px; gap: 14px; padding: 10px 8px; }
.documentation-row:last-child { border-bottom: 0; }
.documentation-row .flow-person { min-width: 0; gap: 4px; }
.documentation-row .flow-person strong { line-height: 1.3; }
.documentation-row .flow-person small { margin-top: 0; overflow: hidden; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.documentation-row > .state-badge { justify-self: end; }
.documentation-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; background: var(--amber-soft); color: var(--amber); }
.documentation-icon .rzi { font-size: 18px; }
.documentation-chevron { justify-self: end; color: var(--muted); font-size: 18px; }
.overdue-visit-item + .overdue-visit-item { border-top: 1px solid #eceeee; }
.overdue-visit-row { grid-template-columns: minmax(220px, 1fr) minmax(140px, .55fr) auto; border-bottom: 0; cursor: default; }
.overdue-visit-actions { display: flex; justify-content: flex-end; gap: 7px; }
.overdue-cancel-editor { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(300px, 1.4fr) auto; align-items: end; gap: 12px; padding: 13px 15px 16px; border-top: 1px solid #f0dfb0; background: #fffbef; }
.overdue-cancel-editor label { display: flex; flex-direction: column; gap: 4px; }
.overdue-cancel-editor label > span { font-size: 12px; font-weight: 800; }
.overdue-cancel-editor label > small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.overdue-cancel-editor textarea { width: 100%; resize: vertical; }
.overdue-cancel-editor > div { display: flex; gap: 7px; }
.alternative-slots, .portal-appointment-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.physician-participation-step { background: linear-gradient(180deg, #fff 0, #fff 112px, #f8fbfa 112px); }
.participation-none-guidance { margin-top: 15px; background: #f4f7f6; }
.participation-escalation-action { display: flex; justify-content: flex-end; margin-top: 12px; }
.symptom-grid { margin-bottom: 14px; }
.adherence-field { display: flex; flex-direction: column; gap: 7px; }
.adherence-field > span { color: #4c555a; font-size: 12px; font-weight: 800; }
.switch-field { display: flex; flex-direction: column; gap: 7px; }
.switch-field > span { color: #4c555a; font-size: 12px; font-weight: 800; }
.clinic-switch-option { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; width: fit-content; user-select: none; }
.clinic-switch-option .rz-switch { width: 2.75rem; min-width: 2.75rem; height: 1.5rem; margin-inline-end: 0; touch-action: pan-y; }
.clinic-switch-option .rz-switch.rz-switch-checked .rz-switch-circle::before { transform: translateX(1.5rem); }
[dir="rtl"] .clinic-switch-option .rz-switch.rz-switch-checked .rz-switch-circle::before { transform: translateX(-1.5rem); }
.clinic-switch-copy { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; user-select: none; }
.clinic-switch-option.is-disabled .clinic-switch-copy { cursor: default; }
.clinic-switch-option.is-disabled { opacity: .68; }
.adherence-field .clinic-switch-copy strong { font-size: 12px; }
.order-toggle .clinic-switch-option { width: 100%; }
.order-toggle .clinic-switch-copy > span { display: flex; flex-direction: column; }
.lab-advanced-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.file-upload-button { display: inline-flex; align-items: center; gap: 7px; position: relative; padding: 9px 14px; border: 1px solid var(--line); border-radius: 5px; background: white; font-size: 12px; font-weight: 750; cursor: pointer; }
.file-upload-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.lifecycle-cancelled, .lifecycle-noshow { opacity: .62; filter: grayscale(.55); }
.lifecycle-completed { opacity: .8; }
.state-badge em, .patient-identity-banner em { font-style: normal; font-size: 12px; color: var(--muted); }

@media (max-width: 1400px) {
    .flow-layout { grid-template-columns: 1fr; }
    .schedule-heading { align-items: flex-start; flex-direction: column; }
    .schedule-heading .heading-actions { width: 100%; flex-wrap: wrap; }
}

.visit-progress { align-items: center; margin: 8px 0 10px; padding: 6px 12px; min-height: 44px; }
.visit-progress button { flex-direction: row; justify-content: center; gap: 4px; }
.visit-progress button::before { top: 12px; }
.visit-progress i { width: 23px; height: 23px; }
.visit-progress small { font-size: 12px; }

@media (max-width: 1250px) {
    :root { --sidebar: 210px; }
    .metric-grid { grid-template-columns: repeat(3, 1fr); }
    .flow-layout, .visit-workspace-grid { grid-template-columns: 1fr; }
    .visit-side-column { position: static; display: grid; grid-template-columns: 1fr 1fr; }
    .flow-row { grid-template-columns: 45px 1.3fr 100px 90px 55px 20px; }
    .active-visit-row { grid-template-columns: 45px 1.3fr 100px 90px 55px auto; }
    .next-action { display: none; }
    .patient-identity-banner { grid-template-columns: 72px minmax(0, 1fr) auto; }
    .chart-workspace { grid-template-columns: minmax(0, 1fr) 245px; }
    .identity-facts { display: none; }
    .marker-cards, .portal-marker-grid { grid-template-columns: repeat(2, 1fr); }
    .vitals-form { grid-template-columns: repeat(3, 1fr); }
    .worklist-controls { grid-template-columns: 1fr; }
    .queue-row { grid-template-columns: minmax(180px, 1fr) auto; }
    .queue-controls { grid-column: 1 / -1; justify-content: flex-start; }
    .overdue-visit-row { grid-template-columns: 1fr auto; }
    .overdue-visit-row .next-action { display: none; }
    .overdue-cancel-editor { grid-template-columns: 1fr; align-items: stretch; }
    .overdue-cancel-editor > div { justify-content: flex-end; }
    .patient-membership-plan-field { grid-column: span 2; }
}

@media (max-width: 900px) {
    :root { --sidebar: 74px; }
    .sidebar { padding-left: 10px; padding-right: 10px; }
    .brand span, .environment-pill, .primary-nav a span, .sidebar-footer, .nav-group-label { display: none; }
    .nav-group { margin-top: 0; }
    .icon-button.mobile-profile-button { display: grid; }
    .profile-popover { inset: 72px 12px auto auto; }
    .brand { justify-content: center; padding: 0; }
    .primary-nav > a, .nav-group > a { justify-content: center; padding: 0; }
    .page-frame { padding: 20px; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .heading-actions { width: 100%; flex-wrap: wrap; }
    .schedule-heading .date-stepper { order: 3; }
    .schedule-heading .date-stepper strong { min-width: 150px; }
    .topbar { padding: 0 20px; }
    .quick-search { min-width: auto; }
    .quick-search span, .quick-search kbd, .topbar-date { display: none; }
    .week-schedule { overflow-x: auto; grid-template-columns: repeat(5, 180px); }
    .chart-grid, .lab-worklist-layout { grid-template-columns: 1fr; }
    .patient-identity-banner { grid-template-columns: 65px 1fr auto; }
    .chart-workspace { grid-template-columns: 1fr; }
    .chart-details-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .patient-identity-banner.compact { grid-template-columns: 58px minmax(0, 1fr); }
    .patient-identity-banner.compact .identity-actions { grid-column: 1 / -1; }
    .visit-compact-header { grid-template-columns: 56px minmax(0, 1fr) auto; }
    .visit-compact-facts { grid-column: 2; }
    .visit-compact-actions { grid-column: 3; grid-row: 1 / 3; }
    .visit-compact-safety { grid-column: 1 / -1; }
    .identity-facts { display: none; }
    .patient-alert-grid { grid-template-columns: 1fr; }
    .patient-goal-card { grid-template-columns: 34px minmax(0, 1fr); }
    .patient-goal-actions { grid-column: 2; justify-content: flex-start; }
    .admin-config-grid { grid-template-columns: 1fr; }
    .portal-destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-treatment-grid { grid-template-columns: 1fr; }
    .admin-location-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-location-summary > div { border-bottom: 1px solid var(--line); }
    .admin-location-summary > div:nth-child(even) { border-right: 0; }
    .admin-record-form-grid.three-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-record-form-grid .span-three { grid-column: span 2; }
    .compact-admin-list > .staff-hours-record { grid-template-columns: minmax(155px, .35fr) minmax(0, 1fr); }
    .staff-hours-record .staff-week-strip { grid-column: 2; grid-row: 1; }
    .staff-hours-day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .patient-directory-row { grid-template-columns: 48px 1fr 20px; }
    .patient-directory-row > span:not(.patient-primary) { display: none; }
    .medication-detail-grid { grid-template-columns: repeat(2, 1fr); }
    .medication-visuals { grid-template-columns: 1fr; }
    .site-visual { border: 0; }
    .provider-escalation-controls { grid-template-columns: 1fr; }
    .provider-escalation-reason, .provider-escalation-controls .rz-button { grid-column: 1; grid-row: auto; }
    .provider-escalation-controls .rz-button { justify-self: start; }
}

@media (max-width: 600px) {
    .app-shell { display: block; }
    .sidebar { position: fixed; inset: auto 0 0; width: 100%; height: 72px; flex-direction: row; align-items: center; padding: 5px 7px; z-index: 50; }
    .sidebar > .brand, .environment-pill, .sidebar-footer, .nav-separator { display: none; }
    .primary-nav { width: 100%; flex-direction: row; justify-content: flex-start; overflow-x: auto; }
    .nav-group { display: contents; }
    .primary-nav > a, .nav-group > a { width: auto; min-width: 0; height: 60px; min-height: 60px; flex: 1 1 0; flex-direction: column; justify-content: center; gap: 2px; padding: 3px 1px; }
    .primary-nav a span { display: block; max-width: 100%; overflow: hidden; font-size: 12px; line-height: 1.15; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
    .primary-nav .rzi { font-size: 19px; }
    .main-shell { padding-bottom: 72px; }
    .synthetic-demo-banner { padding-inline: 8px; font-size: 12px; letter-spacing: .025em; }
    .topbar { height: 56px; padding-inline: 12px; }
    .topbar .quick-search { display: none; }
    .patient-search-panel { padding: 14px; }
    .patient-search-panel .search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
    .patient-search-panel .patient-search-input { grid-column: 1 / -1; }
    .patient-search-panel .rz-dropdown { width: 100% !important; min-width: 0 !important; }
    .patient-search-panel .patient-search-button { min-width: 94px; }
    .icon-button.mobile-profile-button { display: grid; }
    .profile-popover { inset: 103px 12px auto auto; }
    .page-frame { padding: 16px 12px 35px; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-destination-grid { grid-template-columns: 1fr; }
    .portal-destination-grid > a { min-height: 92px; }
    .portal-visit-heading { grid-template-columns: 34px minmax(0, 1fr); }
    .portal-visit-heading > .state-badge { grid-column: 2; justify-self: start; }
    .portal-billing-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
    .portal-billing-row > .state-badge { grid-column: 2; justify-self: start; }
    .lab-panel-disclosure-trigger { align-items: flex-start; flex-direction: column; }
    .lab-panel-disclosure-summary { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .admin-location-summary { grid-template-columns: 1fr; }
    .admin-location-summary > div { border-right: 0; }
    .metric-card { min-height: 78px; padding: 11px; }
    .flow-row { grid-template-columns: 42px 1fr 20px; }
    .active-visit-row { grid-template-columns: 42px 1fr auto; }
    .active-visit-row .next-action, .flow-row > :not(img):not(.flow-person):not(.queue-controls):not(.flow-row-action):not(.overdue-visit-actions):last-child, .flow-row .room-chip, .flow-row .state-badge, .flow-row .wait-time { display: none; }
    .queue-row { display: grid; grid-template-columns: 1fr; }
    .queue-row .flow-person, .queue-row .queue-controls { display: flex; }
    .flow-row.queue-row .state-badge { display: inline-flex; }
    .queue-controls { grid-column: auto; align-items: stretch; flex-direction: column; }
    .queue-controls > .rz-datepicker { width: 100% !important; min-width: 0; }
    .queue-actions { flex-wrap: wrap; }
    .documentation-list { padding: 0 6px 8px; }
    .flow-row.documentation-row { grid-template-columns: 34px minmax(0, 1fr); gap: 6px 10px; padding: 10px 6px; }
    .documentation-row .flow-person { display: flex; }
    .documentation-row .flow-person small { overflow: visible; white-space: normal; }
    .flow-row.documentation-row > .state-badge { display: inline-flex; grid-column: 2; justify-self: start; }
    .documentation-chevron { display: none; }
    .overdue-visit-row { display: grid; grid-template-columns: 1fr; }
    .overdue-visit-row .flow-person, .overdue-visit-actions { display: flex; }
    .overdue-visit-actions { justify-content: flex-start; flex-wrap: wrap; }
    .compact-panel { display: none; }
    .patient-identity-banner { grid-template-columns: 58px 1fr; padding: 12px; }
    .patient-identity-photo { width: 55px; min-width: 55px; max-width: 55px; height: 55px; min-height: 55px; max-height: 55px; }
    .identity-actions { display: none; }
    .patient-identity-banner.compact .identity-actions { display: flex; }
    .chart-details-rail { grid-template-columns: 1fr; }
    .overview-treatment-facts { grid-template-columns: 1fr; }
    .visit-compact-header { grid-template-columns: 48px minmax(0, 1fr); padding: 10px; }
    .visit-compact-header .patient-identity-photo { width: 46px; min-width: 46px; max-width: 46px; height: 46px; min-height: 46px; max-height: 46px; }
    .visit-compact-facts { grid-column: 1 / -1; }
    .visit-compact-actions { grid-column: 1 / -1; grid-row: auto; }
    .visit-compact-safety { grid-column: 1 / -1; }
    .symptom-trend-picker { grid-template-columns: 1fr; }
    .visit-action-strip { align-items: flex-start; flex-direction: column; }
    .visit-save-actions { width: 100%; justify-content: space-between; }
    .dashboard-kpi-strip > a, .dashboard-kpi-strip > button { flex-basis: 112px; }
    .dashboard-action-row { grid-template-columns: 3px minmax(0, 1fr); }
    .dashboard-action-controls { grid-column: 2; }
    .dashboard-flow-layout .compact-panel { display: block; }
    .patient-identity-banner h1 { font-size: 20px; }
    .visit-plan-card { align-items: flex-start; flex-direction: column; }
    .visit-plan-copy { min-width: 0; }
    .visit-requirement-chips { justify-content: flex-start; margin-left: 0; }
    .admin-form-grid, .inline-admin-editor, .admin-record-form-grid, .admin-record-form-grid.three-column { grid-template-columns: 1fr; }
    .admin-tabs { max-width: 100%; min-width: 0; overflow: hidden; }
    .admin-tabs > .rz-tabview-nav { max-width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; }
    .admin-tabs > .rz-tabview-nav > li { flex: 0 0 auto; }
    .admin-tabs > .rz-tabview-panels { max-width: 100%; min-width: 0; }
    .admin-modal-backdrop { padding: 10px; }
    .admin-location-modal { max-height: calc(100vh - 20px); }
    .profile-photo-modal-backdrop { padding: 10px; }
    .profile-photo-dialog { max-height: calc(100vh - 20px); padding: 15px; }
    .profile-photo-dialog-body { grid-template-columns: 1fr; justify-items: center; gap: 16px; text-align: center; }
    .profile-photo-preview { width: 130px; height: 130px; }
    .admin-record-form-grid .span-two, .admin-record-form-grid .span-three { grid-column: 1; }
    .patient-membership-plan-field { grid-column: 1; }
    .admin-switches { align-items: flex-start; flex-direction: column; gap: 4px; }
    .compact-admin-list > .admin-list-record { grid-template-columns: 1fr auto; }
    .compact-admin-list > .staff-hours-record { grid-template-columns: minmax(0, 1fr); }
    .staff-hours-record .staff-week-strip { width: 100%; grid-column: 1 / -1; grid-row: 2; }
    .staff-hours-modal-toolbar, .staff-hours-day-grid, .staff-hours-one-time-list { grid-template-columns: 1fr; }
    .staff-hours-modal-toolbar > small { padding-bottom: 0; }
    .staff-hours-editor-section-heading { align-items: stretch; flex-direction: column; }
    .admin-list-record > span { grid-column: 1; }
    .associated-provider-list > .associated-provider-record { grid-template-columns: minmax(0, 1fr) auto; }
    .associated-provider-record > .associated-provider-status { grid-column: 1; grid-row: 2; }
    .associated-provider-record > .rz-button { grid-column: 2; grid-row: 1 / span 2; }
    .admin-form-grid .span-two { grid-column: auto; }
    .lab-range-editor .span-two { grid-column: auto; }
    .protocol-editor, .treatment-plan-facts, .treatment-plan-editor-grid { grid-template-columns: 1fr; }
    .treatment-plan-editor-grid .span-two { grid-column: auto; }
    .treatment-plan-toolbar, .treatment-plan-history-row { align-items: flex-start; flex-direction: column; }
    .treatment-history-dates { min-width: 0; align-items: flex-start; text-align: left; }
    .appointment-editor-grid { grid-template-columns: 1fr; }
    .appointment-editor-grid .span-two { grid-column: auto; }
    .day-availability-heading { align-items: flex-start; flex-direction: column; }
    .day-slot-grid { grid-template-columns: repeat(2, minmax(118px, 1fr)); }
    .marker-cards, .marker-trend-grid, .portal-marker-grid, .lab-review-results { grid-template-columns: 1fr; }
    .vitals-form, .administration-fields { grid-template-columns: 1fr 1fr; }
    .five-rights { grid-template-columns: 1fr 1fr; }
    .medication-detail-grid { grid-template-columns: 1fr; }
    .syringe-visual { grid-template-columns: 1fr; gap: 8px; }
    .visit-progress { overflow-x: auto; justify-content: flex-start; gap: 8px; padding: 10px; }
    .visit-progress button { min-width: 70px; }
    .visit-side-column { grid-template-columns: 1fr; }
    .portal-shell { margin-left: -12px; margin-right: -12px; }
    .portal-welcome > img { display: none; }
    .portal-appointment-card { align-items: flex-start; flex-direction: column; gap: 12px; }
    .portal-vitals-summary { grid-template-columns: 1fr; }
    .portal-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .portal-record-table { overflow: visible; }
    .portal-record-header { display: none; }
    .portal-record-row,
    .portal-vitals-row,
    .portal-medication-row { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
    .portal-record-row > [role="cell"] { display: grid; align-content: start; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
    .portal-record-row > [role="cell"]::before { color: var(--muted); content: attr(data-label); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
    .portal-record-row > [data-wide="true"] { grid-column: 1 / -1; }
    .portal-record-row > .portal-medication-dose { gap: 6px; }
    .lab-history-record-table { padding-bottom: 1px; }
}

.sms-consent-disclosure { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
.sms-consent-disclosure input { flex: 0 0 auto; margin-top: 3px; }
.sms-consent-disclosure a { font-weight: 750; }

.public-policy-shell { min-height: 100vh; color: var(--charcoal); background: #f4f7f6; }
.public-policy-header { max-width: 980px; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto; padding: 22px 28px; }
.public-policy-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.public-policy-brand img { width: 42px; height: 42px; object-fit: contain; }
.public-policy-brand span { display: grid; gap: 2px; }
.public-policy-brand small { color: var(--muted); }
.public-policy-header nav { display: flex; gap: 18px; }
.public-policy-header nav a { color: var(--green); font-weight: 750; }
.public-policy-content { max-width: 820px; margin: 0 auto; padding: 16px 28px 48px; }
.public-policy-document { padding: 36px 42px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 10px 34px rgba(23, 28, 30, .06); }
.public-policy-document h1 { margin: 7px 0 3px; font-size: clamp(28px, 4vw, 42px); }
.public-policy-document h2 { margin: 28px 0 8px; font-size: 18px; }
.public-policy-document p, .public-policy-document li { line-height: 1.65; }
.policy-effective-date { margin: 0 0 24px; color: var(--muted); }
.policy-callout { margin: 0 0 26px; padding: 16px 18px; border: 1px solid #e4c578; border-radius: 8px; background: var(--amber-soft); }
.policy-legal-note { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.sms-opt-in-proof { display: grid; grid-template-columns: minmax(160px, .7fr) minmax(190px, .7fr) auto; align-items: end; gap: 18px; margin: 20px 0; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: #f8faf9; }
.sms-opt-in-proof > div, .sms-opt-in-proof > label { display: grid; gap: 4px; }
.sms-opt-in-proof > .sms-consent-disclosure { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 10px; padding-top: 4px; }
.sms-opt-in-proof small { color: var(--muted); }
.sms-opt-in-proof input:not([type="checkbox"]) { min-height: 40px; padding: 8px 10px; border: 1px solid #b8c8c1; border-radius: 6px; background: white; }
.sms-opt-in-proof button { grid-column: 3; grid-row: 1; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 6px; background: var(--sidebar-background); color: white; font-weight: 750; opacity: .7; }
.sms-proof-label { color: var(--muted); font-size: .76rem; font-weight: 750; text-transform: uppercase; }
.public-policy-footer { max-width: 980px; display: flex; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 0 28px 32px; color: var(--muted); font-size: .82rem; }

@media (max-width: 650px) {
    .public-policy-header, .public-policy-footer { align-items: flex-start; flex-direction: column; }
    .public-policy-content { padding-inline: 14px; }
    .public-policy-document { padding: 26px 22px; }
    .sms-opt-in-proof { grid-template-columns: 1fr; }
    .sms-opt-in-proof > .sms-consent-disclosure { grid-column: 1; }
    .sms-opt-in-proof button { grid-column: 1; grid-row: auto; }
}

/* Business director analytics */
.analytics-heading { margin-bottom: 18px; }
.analytics-generated { color: var(--muted); font-size: 12px; }
.analytics-generated .rz-button { min-width: 86px; flex: 0 0 auto; }
.analytics-filter-panel { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; padding: 16px 18px; margin-bottom: 14px; }
.analytics-filter-panel > label { display: grid; gap: 7px; min-width: 220px; flex: 1 1 220px; }
.analytics-filter-panel > label > span,
.analytics-filter-group > span { color: #505b60; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.analytics-filter-panel .rz-dropdown { width: 100%; }
.analytics-filter-group { display: grid; gap: 7px; }
.analytics-segmented { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; }
.analytics-segmented button { min-width: 48px; padding: 9px 11px; border: 0; border-right: 1px solid var(--line); background: white; color: #4b5559; font-size: 12px; font-weight: 800; cursor: pointer; transition: background-color 180ms ease, color 180ms ease, transform 180ms ease; }
.analytics-segmented button:last-child { border-right: 0; }
.analytics-segmented button.active { background: #171a1b; color: white; }
.analytics-segmented button:disabled { background: #f3f5f4; color: #a3aaa7; cursor: not-allowed; }
.analytics-segmented button.active:disabled { background: #171a1b; color: white; }
.analytics-live-report { position: relative; }
.analytics-live-report::before { position: absolute; z-index: 7; top: -5px; left: 0; width: 0; height: 3px; border-radius: 999px; background: linear-gradient(90deg, #5b43d6, #1c8b68, #d19a20); content: ""; opacity: 0; }
.analytics-live-report.is-updating::before { opacity: 1; animation: analytics-live-progress 1.1s ease-in-out infinite; }
.analytics-live-status { position: absolute; z-index: 8; top: -11px; right: 0; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #cbded7; border-radius: 999px; background: rgba(255, 255, 255, .96); box-shadow: 0 5px 18px rgba(32, 48, 42, .12); color: #16694f; font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.analytics-live-status > span { width: 11px; height: 11px; border: 2px solid #b8ddd0; border-top-color: #1c8b68; border-radius: 50%; animation: analytics-live-spin .7s linear infinite; }
.analytics-report-content { transform-origin: top center; }
.analytics-live-report.is-updating .analytics-report-content { opacity: .68; filter: saturate(.78); transform: translateY(1px) scale(.999); transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease; }
.analytics-report-content, .analytics-value-swap { animation: analytics-value-swap 420ms cubic-bezier(.22, .8, .35, 1); }
.analytics-context-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.analytics-context-bar span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid #dfe4e2; border-radius: 999px; background: #fff; color: #566166; font-size: 12px; font-weight: 700; }
.analytics-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 18px; }
.analytics-chart-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; margin-bottom: 18px; }
.analytics-chart-card { min-width: 0; overflow: hidden; }
.analytics-chart-card .rz-chart { padding: 0 14px 12px; }
.analytics-chart-kpis { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 1px; margin: 0 18px 4px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--line); }
.analytics-chart-kpis span { display: grid; gap: 2px; min-width: 0; padding: 9px 11px; background: #f8faf9; }
.analytics-chart-kpis small { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.analytics-chart-kpis strong { overflow: hidden; color: #18201e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-clear { display: inline-flex; align-items: center; gap: 4px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: white; color: #4e595d; font-size: 12px; font-weight: 750; cursor: pointer; }
.analytics-panel-badges { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.analytics-as-of-badge { display: inline-flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 750; white-space: nowrap; }
.analytics-as-of-badge .rz-icon, .analytics-as-of-badge .rzi { font-size: 14px; }
.analytics-combination-badge { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: #f0ebff; color: #5039ad; font-size: 12px; font-weight: 700; }
.analytics-combination-badge strong { font-size: 13px; }
.analytics-therapy-list { display: grid; max-height: 368px; overflow-y: auto; padding: 8px 18px 18px; }
.analytics-therapy-row { display: grid; grid-template-columns: minmax(180px, 1.45fr) 62px minmax(100px, 1fr) 18px; align-items: center; gap: 12px; width: 100%; padding: 13px 8px; border: 0; border-bottom: 1px solid #e8ecea; background: transparent; color: #17201d; text-align: left; cursor: pointer; }
.analytics-therapy-row:last-child { border-bottom: 0; }
.analytics-therapy-row:hover, .analytics-therapy-row:focus-visible { background: #f3f9f7; }
.analytics-therapy-copy { display: grid; gap: 3px; min-width: 0; }
.analytics-therapy-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-therapy-copy small { color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; }
.analytics-therapy-count { display: grid; justify-items: end; gap: 1px; }
.analytics-therapy-count strong { font-size: 15px; }
.analytics-therapy-count small { color: var(--muted); font-size: 12px; }
.analytics-therapy-track, .analytics-composition-track { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: #e6eeeb; }
.analytics-therapy-track > span, .analytics-composition-track > span { display: block; min-width: 3px; height: 100%; border-radius: inherit; background: #1c8b68; transition: width 560ms cubic-bezier(.22, .8, .35, 1); }
.analytics-therapy-row > .rz-icon { color: #77817d; font-size: 16px; }
.analytics-supply-panel { margin-bottom: 18px; overflow: hidden; }
.analytics-supply-table-wrap { max-height: 390px; overflow: auto; }
.analytics-supply-table { min-width: 680px; }
.analytics-supply-table thead th { position: sticky; z-index: 1; top: 0; }
.analytics-supply-table th:first-child { width: 48%; }
.analytics-supply-table tbody th span, .analytics-supply-table tbody th small { display: block; }
.analytics-supply-table tbody th span { font-size: 12px; }
.analytics-supply-table tbody th small { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; }
.analytics-supply-table tbody td { color: #52605b; font-size: 12px; }
.analytics-supply-table tbody td strong { color: #17201d; font-size: 14px; }
.analytics-supply-demand { display: inline-flex; min-width: 34px; justify-content: center; padding: 5px 9px; border-radius: 999px; background: #e5f5ee; color: #0d6e50 !important; }
.analytics-network-panel, .analytics-demand-panel { margin-bottom: 18px; overflow: hidden; }
.analytics-network-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(500px, 1.2fr); gap: 20px; align-items: center; padding: 0 18px 18px; }
.analytics-location-chart h3 { margin: 0 0 6px; font-size: 12px; }
.analytics-location-table-wrap, .analytics-demand-matrix-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.analytics-table { width: 100%; border-collapse: collapse; background: white; font-size: 12px; }
.analytics-table th, .analytics-table td { padding: 10px 9px; border-bottom: 1px solid #e8ebea; text-align: right; white-space: nowrap; }
.analytics-table thead th { background: #f5f7f6; color: #5c676b; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.analytics-table th:first-child { text-align: left; }
.analytics-table tbody tr:last-child th, .analytics-table tbody tr:last-child td { border-bottom: 0; }
.analytics-clinic-link { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; margin: -4px 0 -4px -5px; padding: 4px 9px 4px 5px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: #263c34; font: inherit; font-weight: 800; line-height: 1.35; text-align: left; white-space: nowrap; cursor: pointer; transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.analytics-clinic-link-icon { display: grid; flex: 0 0 22px; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); transition: color 160ms ease, background-color 160ms ease; }
.analytics-clinic-link-icon .rz-icon, .analytics-clinic-link-icon .rzi { font-size: 14px; }
.analytics-clinic-link:hover { border-color: #cfe4db; background: #f3f9f6; color: #135d46; box-shadow: 0 2px 7px rgba(21, 86, 65, .08); transform: translateY(-1px); }
.analytics-clinic-link:hover .analytics-clinic-link-icon { background: #d8eee5; color: #126447; }
.analytics-clinic-link:focus-visible { outline: 0; border-color: #79b9a1; box-shadow: 0 0 0 3px rgba(31, 122, 90, .16); color: #135d46; }
.analytics-clinic-link:active { box-shadow: none; transform: translateY(0); }
.analytics-demand-grid { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(620px, 1.25fr); gap: 18px; align-items: center; padding: 0 18px 18px; }
.analytics-demand-matrix th small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; }
.analytics-demand-matrix td { padding: 4px; }
.analytics-demand-matrix td button { display: grid; justify-items: center; gap: 1px; width: 100%; min-width: 61px; padding: 7px 5px; border: 1px solid transparent; border-radius: 5px; background: #f6f8f7; color: #667076; cursor: pointer; }
.analytics-demand-matrix td button.has-demand { border-color: #b8ddcf; background: #e9f6f1; color: #116c50; }
.analytics-demand-matrix td button strong { font-size: 13px; }
.analytics-demand-matrix td button small { font-size: 12px; white-space: nowrap; }
.analytics-detail-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.analytics-detail-panel { min-width: 0; overflow: hidden; }
.analytics-cell-subtitle { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.analytics-population-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 18px; }
.analytics-population-stat { display: grid; gap: 4px; min-width: 0; padding: 14px; border: 1px solid #e3e8e5; border-radius: 7px; background: #fafcfb; }
.analytics-population-stat > span { color: #53605b; font-size: 12px; font-weight: 750; text-transform: uppercase; }
.analytics-population-stat > strong { color: #111817; font-size: 24px; line-height: 1; }
.analytics-population-stat > small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-composition-block { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(360px, 1.45fr); gap: 24px; padding: 18px; border-top: 1px solid var(--line); }
.analytics-composition-block h3 { margin: 0 0 4px; font-size: 12px; }
.analytics-composition-block p { margin: 0; color: var(--muted); font-size: 12px; }
.analytics-composition-list { display: grid; gap: 10px; }
.analytics-composition-row { display: grid; grid-template-columns: minmax(140px, .8fr) minmax(140px, 1fr) 44px 44px; align-items: center; gap: 10px; font-size: 12px; }
.analytics-composition-row > span { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.analytics-composition-row > strong { text-align: right; }
.analytics-composition-row > small { color: var(--muted); text-align: right; }
.analytics-schedule-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.analytics-tabs { display: flex; gap: 4px; margin: 0 0 12px; padding: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #f3f6f5; scrollbar-width: thin; }
.analytics-report-tabs { margin-bottom: 12px; }
.analytics-report-tabs > .rz-tabview-panels { display: none; }
.analytics-hero-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.analytics-hero-metrics article { display: grid; gap: 8px; min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.analytics-hero-metrics article > span { color: var(--text-muted); font-size: 13px; font-weight: 700; }
.analytics-hero-metrics article > strong { font-size: clamp(22px, 2vw, 31px); }
.analytics-hero-metrics article em { font-size: 12px; font-style: normal; font-weight: 600; }
.analytics-hero-metrics article > small { color: #2d7657; font-size: 12px; }
.analytics-secondary-metrics { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px 15px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.analytics-secondary-metrics span { font-size: 13px; }
.analytics-secondary-metrics strong { margin-right: 5px; }
@media (max-width: 1050px) { .analytics-hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .analytics-hero-metrics { grid-template-columns: 1fr; } }
.analytics-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: max-content; padding: 10px 14px; border: 0; border-radius: 6px; background: transparent; color: #56615d; font-size: 12px; font-weight: 800; cursor: pointer; transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.analytics-tabs button:hover { color: #1f2825; transform: translateY(-1px); }
.analytics-tabs button.active { background: #fff; box-shadow: 0 2px 8px rgba(26, 42, 36, .1); color: #4331a5; }
.analytics-tabs .rz-icon { font-size: 17px; }
.analytics-filter-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.analytics-filter-actions small { min-width: max-content; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.analytics-week-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; padding: 13px 16px; border: 1px solid #d9e4df; border-radius: 7px; background: #f7faf9; }
.analytics-week-toolbar > div:first-child { display: grid; gap: 3px; }
.analytics-week-toolbar strong { font-size: 12px; }
.analytics-week-toolbar span { color: var(--muted); font-size: 12px; }
.analytics-week-toolbar > div:last-child { display: flex; gap: 7px; }
.analytics-staffing-table { min-width: 1060px; font-size: 12px; }
.analytics-staffing-table th, .analytics-staffing-table td { padding: 9px 5px; }
.analytics-staffing-table thead th { line-height: 1.25; white-space: normal; }
.analytics-staffing-table tbody th { min-width: 135px; white-space: normal; }
.executive-scorecard { min-width: 850px; }
.revenue-table { min-width: 820px; }
.analytics-signal { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; padding: 5px 8px; border-radius: 999px; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.signal-balanced { background: #e6f5ef; color: #11664d; }
.signal-high { background: #fff0cf; color: #855700; }
.signal-low { background: #e8eefb; color: #35538d; }
.signal-risk { background: #fbe5e5; color: #a52a2a; }
.analytics-membership-mix { display: grid; max-height: 330px; padding: 5px 18px 18px; overflow-y: auto; }
.analytics-membership-mix button { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; width: 100%; padding: 16px 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.analytics-membership-mix button:hover { background: #f6faf8; }
.analytics-membership-mix button > span { display: grid; gap: 3px; min-width: 0; }
.analytics-membership-mix button > span:nth-child(2) { text-align: right; }
.analytics-membership-mix strong { overflow: hidden; color: #17201d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-membership-mix small { color: var(--muted); font-size: 12px; }
.membership-catalog-panel { margin-bottom: 18px; overflow: hidden; }
.membership-plan-editor { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(160px, 1fr) minmax(120px, .7fr) 110px minmax(170px, .9fr) auto; align-items: end; gap: 12px; margin: 0 18px 16px; padding: 15px; border: 1px solid #d8dfdc; border-radius: 7px; background: #f7faf9; }
.membership-plan-editor > label:not(.membership-active-toggle) { display: grid; gap: 6px; }
.membership-plan-editor label > span { color: #505b60; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.membership-active-toggle { display: flex; align-items: center; gap: 8px; min-height: 37px; }
.membership-plan-editor > div { display: flex; gap: 7px; }
.membership-plan-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 18px 18px; }
.membership-plan-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 14px; border: 1px solid #e1e7e4; border-radius: 7px; background: #fff; }
.membership-plan-list article > div { min-width: 0; }
.membership-plan-list h3 { overflow: hidden; margin: 8px 0 4px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.membership-plan-list p { margin: 0; color: var(--muted); font-size: 12px; }
.state-neutral { background: #edf0ef; color: #69736f; }
.membership-profile-card { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; padding: 14px 16px; }
.membership-profile-icon { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border-radius: 50%; background: #f0ebff; color: #5740bf; }
.membership-profile-icon .rz-icon { font-size: 20px; }
.membership-profile-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.membership-profile-copy > span { color: #65706c; font-size: 12px; font-weight: 850; text-transform: uppercase; }
.membership-profile-copy > strong { overflow: hidden; color: #17201d; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.membership-profile-copy > small { color: var(--muted); font-size: 12px; }
.membership-profile-editor { display: grid; grid-template-columns: minmax(230px, 1fr) 155px auto; align-items: end; gap: 10px; min-width: min(680px, 65%); }
.membership-profile-editor label { display: grid; gap: 5px; }
.membership-profile-editor label > span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.membership-profile-editor > div { display: flex; gap: 6px; }
.analytics-accounting-bridge { margin-bottom: 18px; overflow: hidden; }
.analytics-accounting-equation { display: grid; grid-template-columns: repeat(3, minmax(105px, 1fr) 20px) minmax(120px, 1.1fr) repeat(2, minmax(105px, 1fr)); align-items: center; gap: 8px; padding: 0 18px 18px; }
.analytics-accounting-equation > span { display: grid; gap: 5px; min-width: 0; padding: 13px; border: 1px solid #e2e7e5; border-radius: 7px; background: #fafcfb; }
.analytics-accounting-equation > span.result { border-color: #b8ddcf; background: #eaf7f2; }
.analytics-accounting-equation small { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.analytics-accounting-equation strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-accounting-equation em { color: #7b8581; font-size: 16px; font-style: normal; font-weight: 800; text-align: center; }
.revenue-table { min-width: 1260px; }
.revenue-table tbody th span, .revenue-table tbody th small { display: block; }
.revenue-table tbody th small { margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 600; }
.billing-workspace { display: grid; gap: 14px; }
.billing-workspace > .panel-heading { padding-inline: 0; }
.billing-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.billing-summary-grid > div { display: grid; gap: 5px; min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.billing-summary-grid span { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.billing-summary-grid strong { overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.billing-summary-grid small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.billing-balance-due { color: #a33a28 !important; }
.state-red { background: #fbe5e2; color: #9a3427; }
.billing-invoice-list { display: grid; gap: 9px; }
.billing-invoice { padding: 0; overflow: hidden; }
.billing-invoice > summary { display: grid; grid-template-columns: 42px minmax(180px, 1.4fr) repeat(3, minmax(85px, .7fr)) auto; align-items: center; gap: 13px; min-height: 76px; padding: 13px 16px; list-style: none; cursor: pointer; }
.billing-invoice > summary::-webkit-details-marker { display: none; }
.billing-invoice > summary:hover { background: #fafcfb; }
.billing-invoice > summary > span:not(.portal-destination-icon):not(.state-badge) { display: grid; gap: 3px; min-width: 0; }
.billing-invoice > summary small { color: var(--muted); font-size: 12px; }
.billing-invoice > summary strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.billing-invoice-title strong { font-size: 12px !important; }
.billing-invoice-detail { display: grid; gap: 14px; padding: 15px 18px 18px; border-top: 1px solid var(--line); background: #fbfcfc; }
.billing-equation { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--line); }
.billing-equation > span { display: grid; gap: 4px; padding: 10px; background: white; }
.billing-equation small { color: var(--muted); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.billing-equation strong { font-size: 12px; }
.billing-ledger-block { display: grid; gap: 0; }
.billing-ledger-block h3 { margin: 0 0 5px; font-size: 12px; }
.billing-ledger-block > p { margin: 7px 0; font-size: 12px; }
.billing-ledger-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid #e5e9e7; }
.billing-ledger-row > span { display: grid; gap: 3px; min-width: 0; }
.billing-ledger-row strong { font-size: 12px; }
.billing-ledger-row small { overflow-wrap: anywhere; color: var(--muted); font-size: 12px; }
.billing-manage-row { display: flex; justify-content: flex-end; }
.billing-entry-editor { padding: 16px 18px; }
.billing-entry-editor .panel-heading { padding: 0 0 14px; }
.billing-entry-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 12px; }
.billing-entry-grid label { display: grid; gap: 6px; }
.billing-entry-grid label > span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.billing-entry-grid .span-two { grid-column: span 2; }
.billing-entry-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

@keyframes analytics-live-progress {
    0% { left: 0; width: 12%; }
    50% { left: 34%; width: 46%; }
    100% { left: 88%; width: 12%; }
}

@keyframes analytics-live-spin {
    to { transform: rotate(360deg); }
}

@keyframes analytics-value-swap {
    from { opacity: .35; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .analytics-live-report::before,
    .analytics-live-status > span,
    .analytics-report-content,
    .analytics-value-swap { animation: none !important; }
    .analytics-segmented button,
    .analytics-therapy-track > span,
    .analytics-composition-track > span,
    .analytics-live-report.is-updating .analytics-report-content { transition: none !important; }
}

@media (max-width: 1450px) {
    .analytics-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .analytics-network-grid, .analytics-demand-grid { grid-template-columns: 1fr; }
    .membership-plan-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .membership-plan-editor > div { grid-column: 1 / -1; }
    .membership-plan-list { grid-template-columns: 1fr 1fr; }
    .membership-profile-card { align-items: flex-start; flex-wrap: wrap; }
    .membership-profile-editor { width: 100%; min-width: 0; }
}

@media (max-width: 1100px) {
    .analytics-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .analytics-generated { width: 100%; }
    .analytics-chart-grid { grid-template-columns: 1fr; }
    .analytics-network-grid, .analytics-demand-grid { padding-inline: 10px; }
    .analytics-population-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .analytics-composition-block { grid-template-columns: 1fr; }
    .analytics-week-toolbar { align-items: flex-start; flex-direction: column; }
    .analytics-tabs { position: sticky; z-index: 6; top: 0; }
    .revenue-table { min-width: 1180px; }
    .revenue-table th, .revenue-table td { padding-inline: 6px; }
    .revenue-table thead th { line-height: 1.2; white-space: normal; }
    .analytics-accounting-equation { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .analytics-accounting-equation em { display: none; }
    .billing-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .billing-invoice > summary { grid-template-columns: 42px minmax(160px, 1fr) repeat(2, minmax(80px, .6fr)) auto; }
    .billing-invoice > summary > span:nth-child(5) { display: none !important; }
}

/* Secure patient communications and scheduling */
.inline-contact-form, .quiet-hours-grid { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.quiet-hours-grid label { display: grid; gap: 6px; min-width: 170px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.inline-contact-form .rz-dropdown, .quiet-hours-grid .rz-dropdown { min-height: 40px; border-color: #cfd8d4; background: #fbfcfc; color: var(--charcoal); font-size: 12px; font-weight: 650; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.inline-contact-form .rz-dropdown:hover, .quiet-hours-grid .rz-dropdown:hover { border-color: #a9bbb4; background: white; }
.inline-contact-form .rz-dropdown.rz-state-focus, .quiet-hours-grid .rz-dropdown.rz-state-focus { border-color: #79b9a1; box-shadow: 0 0 0 3px rgba(31, 122, 90, .12); }
.communication-filter-panel { display: grid; gap: 14px; margin-bottom: 16px; padding: 15px 16px; }
.inbox-saved-views { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.inbox-saved-views button { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font-weight: 700; cursor: pointer; }
.inbox-saved-views button.active { background: #eaf5ef; border-color: #84b99f; color: #176744; }
.inbox-saved-views button span { min-width: 23px; border-radius: 999px; padding: 2px 5px; background: #edf1ef; font-size: 12px; }
.inbox-more-filters { display: block; }
.inbox-more-filters > summary { cursor: pointer; font-weight: 750; }
.inbox-more-filters[open] > summary { margin-bottom: 14px; }
.inbox-context-rail { display: grid; gap: 12px; padding: 14px 16px; margin: 12px 0; border: 1px solid var(--line); border-radius: 10px; background: #f8faf9; }
.inbox-conversation-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 220px); flex: 1; min-height: 0; }
.inbox-conversation-main { display: flex; flex-direction: column; min-width: 0; }
.inbox-context-rail { align-content: start; margin: 0; border-top: 0; border-bottom: 0; border-right: 0; border-radius: 0; }
.inbox-context-rail .conversation-resources { display: grid; padding: 0; border: 0; }
.inbox-request-more { position: relative; }
.inbox-request-more > summary, .inbox-offer-link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: white; font-weight: 700; cursor: pointer; text-decoration: none; }
.inbox-request-more > div { position: absolute; z-index: 5; right: 0; display: grid; gap: 7px; min-width: 195px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 8px 28px #0002; }
@media (max-width: 1100px) { .inbox-conversation-body { grid-template-columns: 1fr; } .inbox-context-rail { border-left: 0; border-top: 1px solid var(--line); } }
.inbox-context-rail > div { display: grid; gap: 3px; }
.inbox-context-rail p { margin: 0; }
.inbox-open-chart { font-weight: 750; }
.communication-filter-fields { display: grid; grid-template-columns: repeat(4, minmax(155px, 1fr)); gap: 12px; }
.communication-filter-field { display: grid; gap: 7px; min-width: 0; color: #4c5753; font-size: 12px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.communication-filter-field .rz-dropdown { min-height: 40px; background: #fbfcfc; font-size: 12px; font-weight: 650; letter-spacing: 0; text-transform: none; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.communication-filter-field .rz-dropdown:hover { border-color: #a9bbb4; background: white; }
.communication-filter-field .rz-dropdown.rz-state-focus { border-color: #79b9a1; box-shadow: 0 0 0 3px rgba(31, 122, 90, .12); }
.communication-filter-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 13px; border-top: 1px solid #e8ecea; }
.communication-filter-toggles { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.communication-filter-toggles .clinic-switch-option { min-height: 38px; padding: 0 11px; border: 1px solid #dfe6e3; border-radius: 999px; background: #fafcfb; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.communication-filter-toggles .clinic-switch-option:has(.rz-switch-checked) { border-color: #afd4c5; background: #edf8f3; box-shadow: 0 2px 7px rgba(31, 122, 90, .07); }
.communication-filter-toggles .clinic-switch-copy { min-height: 36px; }
.communication-filter-toggles .clinic-switch-copy strong { font-size: 12px; white-space: nowrap; }
.communication-filter-apply .rz-button { min-width: 116px; min-height: 40px; }
.communications-workspace { display: grid; grid-template-columns: minmax(290px, .72fr) minmax(480px, 1.6fr); gap: 16px; min-height: 660px; }
.conversation-list-panel, .conversation-detail-panel { padding: 0; overflow: hidden; }
.conversation-list-panel { align-self: start; max-height: 760px; overflow-y: auto; }
.conversation-list-item { display: grid; width: 100%; gap: 6px; padding: 16px; border: 0; border-bottom: 1px solid var(--border); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.conversation-list-item:hover, .conversation-list-item.selected { background: #f3f7ff; }
.conversation-list-item.selected { box-shadow: inset 3px 0 var(--primary); }
.conversation-list-top, .conversation-flags, .conversation-header, .conversation-header-actions, .conversation-resources, .conversation-compose > div:last-child, .slot-hold-confirm, .broadcast-confirm, .chart-communications-card .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.conversation-list-item small, .message-bubble header span, .slot-hold-confirm span { color: var(--text-muted); font-size: .78rem; }
.conversation-flags { justify-content: flex-start; flex-wrap: wrap; }
.conversation-list-assignee { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; line-height: 1.2; }
.conversation-list-assignee .rzi { font-size: 13px; }
.conversation-list-assignee strong { font-weight: 850; }
.conversation-detail-panel { display: flex; min-height: 640px; flex-direction: column; }
.conversation-header { padding: 20px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.conversation-header-summary { min-width: 235px; }
.conversation-header h2 { margin: 3px 0; }
.conversation-header p { margin: 0; color: var(--text-muted); }
.conversation-header-actions { flex-wrap: wrap; justify-content: flex-end; }
.conversation-patient-meta { display: flex; flex-wrap: wrap; column-gap: 7px; row-gap: 2px; }
.conversation-patient-meta > span + span::before { margin-right: 7px; content: "·"; }
.conversation-assignment-slot { width: 146px; min-width: 146px; min-height: 40px; }
.conversation-assignment-chip { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 6px 10px; border: 1px solid #cfd8d4; border-radius: 6px; background: #f7f9f8; color: var(--charcoal); }
.conversation-assignment-chip.mine { border-color: #afd4c5; background: var(--green-soft); color: var(--green); }
.conversation-assignment-chip > .rzi { flex: 0 0 auto; font-size: 18px; }
.conversation-assignment-chip > span { display: grid; min-width: 0; line-height: 1.15; }
.conversation-assignment-chip small { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.conversation-assignment-chip strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.response-deadline, .scheduling-policy-note { display: flex; gap: 7px; align-items: center; padding: 10px 18px; background: #f4f8ff; color: #315a91; font-size: .84rem; }
.response-deadline.overdue { background: #fff0f0; color: #a62b2b; }
.conversation-resources { padding: 10px 18px; justify-content: flex-start; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.conversation-resources a { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; }
.message-thread { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px; overflow-y: auto; background: #f8fafc; }
.message-bubble { max-width: 76%; padding: 12px 15px; border: 1px solid var(--border); border-radius: 14px; background: white; }
.message-bubble.staff { align-self: flex-end; border-bottom-right-radius: 4px; background: #edf5ff; border-color: #ccdef5; }
.message-bubble.patient { align-self: flex-start; border-bottom-left-radius: 4px; }
.message-bubble.internal { align-self: stretch; max-width: 100%; border-color: #e9dba7; background: #fff9e6; }
.message-bubble header { display: flex; justify-content: space-between; gap: 14px; }
.message-bubble p { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.conversation-compose { display: grid; gap: 10px; padding: 16px; border-top: 1px solid var(--border); }
.compose-tabs { display: flex; gap: 4px; }
.compose-tabs button { border: 0; border-radius: 6px; padding: 7px 10px; background: transparent; cursor: pointer; }
.compose-tabs button.active { background: #e8f0ff; color: var(--primary); font-weight: 700; }
.non-emergency-warning { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding: 13px 16px; border: 1px solid #f1c7c7; border-radius: 10px; background: #fff7f7; color: #8d2929; }
.non-emergency-warning div { display: grid; gap: 3px; }
.patient-message-composer, .portal-appointments-panel, .patient-scheduling-panel, .profile-contact-panel, .notification-preferences-panel, .consent-history-panel { margin-bottom: 16px; }
.patient-message-composer { overflow: hidden; }
.portal-request-form { padding: 18px 20px 8px; }
.portal-request-form label > span { color: #4c5753; font-size: 12px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.portal-request-form label > span em { color: #8a9290; font-size: 12px; font-style: normal; font-weight: 700; }
.portal-request-form .rz-dropdown { min-height: 42px; background: #fbfcfc; font-size: 12px; font-weight: 650; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.portal-request-form .rz-dropdown:hover { border-color: #a9bbb4; background: white; }
.portal-request-form .rz-dropdown.rz-state-focus { border-color: #79b9a1; box-shadow: 0 0 0 3px rgba(31, 122, 90, .12); }
.portal-request-form .rz-textarea { min-height: 132px; padding: 12px; border-radius: 7px; line-height: 1.5; resize: vertical; }
.portal-request-form label > small { color: var(--muted); font-size: 12px; font-weight: 600; }
.patient-message-composer-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 10px; padding: 15px 20px 18px; border-top: 1px solid #e8ecea; background: #fafcfb; }
.patient-message-composer-actions .rz-button { min-height: 39px; }
.patient-scheduling-panel { overflow: hidden; }
.portal-scheduling-form { padding: 18px 20px; }
.portal-scheduling-form label > span { color: #4c5753; font-size: 12px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.portal-scheduling-form .rz-dropdown, .portal-scheduling-form .rz-inputtext { min-height: 42px; background: #fbfcfc; font-size: 12px; font-weight: 650; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.portal-scheduling-form .rz-dropdown:hover, .portal-scheduling-form .rz-inputtext:hover { border-color: #a9bbb4; background: white; }
.portal-scheduling-form .rz-dropdown.rz-state-focus, .portal-scheduling-form .rz-inputtext:focus { border-color: #79b9a1; outline: 0; box-shadow: 0 0 0 3px rgba(31, 122, 90, .12); }
.portal-scheduling-locked-field { display: grid; gap: 6px; min-width: 0; }
.portal-scheduling-locked-field > span { color: #4c5753; font-size: 12px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.portal-scheduling-locked-value { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 11px; border: 1px solid #c9ddd5; border-radius: 7px; background: #f1f8f5; }
.portal-scheduling-locked-value > .rzi { flex: 0 0 auto; color: var(--green); font-size: 17px; }
.portal-scheduling-locked-value > span { display: grid; gap: 1px; min-width: 0; }
.portal-scheduling-locked-value strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.portal-scheduling-locked-value small { overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.portal-reschedule-unavailable { gap: 8px; margin: 0 20px 18px; }
.portal-reschedule-unavailable span { flex: 1; }
.portal-reschedule-unavailable a { font-weight: 750; white-space: nowrap; }
.patient-appointment-list, .contact-point-list, .audit-timeline, .compact-admin-list { display: grid; gap: 8px; }
.patient-appointment-list article, .contact-point-list article { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--border); border-radius: 9px; }
.patient-appointment-list article > div:nth-child(2), .contact-point-list article > div { display: grid; flex: 1; gap: 3px; }
.patient-appointment-list p, .contact-point-list span { margin: 0; color: var(--text-muted); font-size: .82rem; }
.contact-point-list article > .contact-point-actions { display: flex; flex: 0 0 auto; grid-auto-flow: column; gap: 8px; }
.contact-delete-confirm { display: flex; align-items: center; gap: 12px; margin-top: -1px; padding: 13px; border: 1px solid #e3b75f; border-radius: 9px; background: #fff7e5; color: #724b13; }
.contact-delete-confirm > .rzi { flex: 0 0 auto; color: #b26700; font-size: 22px; }
.contact-delete-confirm > div { display: grid; flex: 1; gap: 3px; }
.contact-delete-confirm strong { font-size: .9rem; }
.contact-delete-confirm span { color: #735f2f; font-size: .78rem; line-height: 1.4; }
.available-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 18px; }
.available-slot-grid button { display: grid; gap: 3px; padding: 13px; border: 1px solid #c7d8ef; border-radius: 9px; background: #f5f9ff; color: #173f72; cursor: pointer; text-align: left; }
.available-slot-grid button:hover { border-color: var(--primary); background: #eaf3ff; }
.slot-hold-confirm, .broadcast-confirm { margin-top: 16px; padding: 14px; border: 1px solid #b7dbc8; border-radius: 9px; background: #f1fbf5; }
.slot-hold-confirm > div, .broadcast-confirm > div { display: grid; gap: 4px; }
.inline-contact-form, .verification-panel { padding: 14px; border: 1px solid var(--border); border-radius: 9px; background: #f8fafc; }
.verification-panel { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(100px, .3fr) minmax(240px, 1fr) auto; align-items: center; gap: 12px; margin: 12px 0; }
.verification-panel > div { display: grid; }
.development-code { color: #7b55a6; font-size: .8rem; }
.preference-table { display: grid; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.preference-row { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(3, 80px); align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.preference-row:last-child { border-bottom: 0; }
.preference-row.heading { background: #f4f6f9; color: var(--text-muted); font-size: .78rem; font-weight: 700; }
.preference-row span:not(:first-child) { text-align: center; }
.quiet-hours-grid { margin-top: 16px; }
.channel-optout-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 16px 20px 18px; border-top: 1px solid var(--border); }
.channel-optout-actions > div { display: grid; flex: 1; }
.channel-optout-actions span { color: var(--text-muted); font-size: .8rem; }
.audit-timeline > div { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.audit-timeline span { display: grid; }
.audit-timeline small { color: var(--text-muted); }
.admin-metric-grid { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: 10px; margin-bottom: 16px; }
.admin-metric-grid article { display: grid; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: 9px; background: white; }
.admin-metric-grid span { color: var(--text-muted); font-size: .75rem; }
.admin-metric-grid strong { font-size: 1.55rem; }
.admin-communication-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.compact-admin-list { margin-top: 14px; max-height: 270px; overflow-y: auto; }
.compact-admin-list > div, .compact-admin-list > a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.compact-admin-list a > span:first-child { display: grid; }
.chart-communications-card { margin: 16px 0; }
.chart-message-compose { display: grid; grid-template-columns: minmax(150px, .35fr) minmax(220px, .65fr); gap: 10px; padding: 12px; background: #f8fafc; border-radius: 9px; }
.chart-message-compose > .rz-dropdown { min-height: 42px; border-color: #cfd8d4; background: #fbfcfc; font-size: 12px; font-weight: 650; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.chart-message-compose > .rz-dropdown:hover { border-color: #a9bbb4; background: white; }
.chart-message-compose > .rz-dropdown.rz-state-focus { border-color: #79b9a1; box-shadow: 0 0 0 3px rgba(31, 122, 90, .12); }
.chart-message-compose textarea, .chart-message-compose > div { grid-column: 1 / -1; }
.chart-message-compose > div { display: flex; justify-content: flex-end; gap: 8px; }
.lab-question-actions { margin-top: 20px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: white; }
.lab-question-actions .admin-action-link { margin: 6px 8px 0 0; }
.staff-slot-proposal { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--border); background: #f7f9fc; }
.staff-slot-proposal > div, .staff-slot-proposal label { display: grid; gap: 3px; }
.staff-slot-proposal > div { flex: 1; min-width: 180px; }
.staff-slot-proposal span, .staff-slot-proposal label { color: var(--text-muted); font-size: .78rem; }
.staff-proposal-grid { margin: 0; padding: 12px 18px; border-bottom: 1px solid var(--border); }

.admin-section-navigation { display: flex; align-items: stretch; gap: 8px; margin: -8px 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.admin-section-navigation a { min-width: 250px; display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--charcoal); text-decoration: none; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.admin-section-navigation a > .rzi { color: var(--muted); font-size: 20px; }
.admin-section-navigation a > span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.admin-section-navigation strong { font-size: 12px; }
.admin-section-navigation small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-section-navigation a:hover { border-color: #9fb8ae; background: #fbfdfc; box-shadow: 0 4px 12px rgba(23, 28, 30, .05); }
.admin-section-navigation a.active { border-color: #86b4a2; background: var(--green-soft); box-shadow: inset 3px 0 var(--green); }
.admin-section-navigation a.active > .rzi, .admin-section-navigation a.active strong { color: var(--green); }

.operational-error-guidance { margin: 0 0 16px; }
.operational-errors-panel { padding: 18px; }
.operational-error-list { display: grid; gap: 12px; }
.operational-error-card { padding: 15px; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 8px; background: #fff; }
.operational-error-card.addressed { border-left-color: var(--green); background: #fbfdfc; }
.operational-error-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.operational-error-card h3 { margin: 4px 0; font-size: 13px; line-height: 1.4; }
.operational-error-card header p { margin: 0; color: var(--muted); font-size: 12px; }
.operational-error-card code { font-size: 12px; overflow-wrap: anywhere; }
.operational-error-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 13px 0; }
.operational-error-card dl > div { min-width: 0; padding: 9px; border-radius: 6px; background: var(--page); }
.operational-error-card dt { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.operational-error-card dd { margin: 3px 0 0; }
.operational-error-card details { margin-top: 10px; }
.operational-error-card details summary { cursor: pointer; color: var(--blue); font-size: 12px; font-weight: 800; }
.operational-error-card pre { max-height: 280px; overflow: auto; padding: 12px; border-radius: 6px; background: #17201e; color: #e8efed; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.operational-error-actions, .operational-error-address-form > div { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.operational-error-address-form { display: grid; gap: 7px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.operational-error-address-form label { font-size: 12px; font-weight: 800; }
.operational-error-resolution { margin-top: 12px; padding: 11px; border-radius: 6px; background: var(--green-soft); }
.operational-error-resolution p { margin: 5px 0; font-size: 12px; }
.operational-error-resolution small { color: var(--muted); font-size: 12px; }

.communication-admin-page { width: 100%; max-width: 1500px; margin: 0 auto; }
.communication-admin-metrics { grid-template-columns: repeat(6, minmax(130px, 1fr)); margin-bottom: 16px; }
.communication-admin-tabs > .rz-tabview-panels { padding: 14px 0 0; background: transparent; }
.communication-admin-section { padding-bottom: 18px; overflow: hidden; }
.communication-admin-section > .panel-heading { margin-bottom: 16px; }
.communication-rule-editor { margin: 0 16px 18px; }
.communication-rule-editor .admin-editor-heading > .rzi { color: var(--green); font-size: 25px; }
.communication-guidance { margin: 0 16px 16px; }
.communication-table-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 18px 13px; }
.communication-table-heading h3 { margin: 0; font-size: 14px; }
.communication-table-heading p { margin: 4px 0 0; font-size: 12px; }
.communication-queue-label { display: inline-flex; align-items: center; gap: 7px; }
.communication-queue-label > .rzi { color: var(--green); font-size: 17px; }
.communication-admin-section > .rz-data-grid { border-top: 1px solid var(--line); border-right: 0; border-bottom: 0; border-left: 0; border-radius: 0; }
.communication-preview-placeholder { min-height: 95px; display: flex; align-items: center; gap: 13px; margin: 0 16px; padding: 18px; border: 1px dashed #b8c0c3; border-radius: 9px; background: #fafbfb; }
.communication-preview-placeholder > .rzi { color: var(--green); font-size: 28px; }
.communication-preview-placeholder > div { display: flex; flex-direction: column; gap: 4px; }
.communication-preview-placeholder strong { font-size: 12px; }
.communication-preview-placeholder span { color: var(--muted); font-size: 12px; }
.broadcast-scope-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 13px; padding: 10px 12px; border-radius: 7px; background: #edf7f3; color: #315f50; font-size: 12px; line-height: 1.45; }
.broadcast-scope-note > .rzi { margin-top: 1px; color: var(--green); font-size: 16px; }
.broadcast-scope-note.critical { background: #fff2df; color: #724b13; }
.broadcast-scope-note.critical > .rzi { color: #b26700; }
.broadcast-eligibility { display: grid; grid-template-columns: repeat(6, minmax(100px, 1fr)); gap: 8px; margin: 0 16px 12px; }
.broadcast-eligibility > div { display: flex; min-width: 0; flex-direction: column; gap: 2px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fafbfb; }
.broadcast-eligibility strong { font-size: 14px; }
.broadcast-eligibility span { color: var(--muted); font-size: 12px; line-height: 1.3; }
.broadcast-eligibility .preference-override { border-color: #e3b75f; background: #fff7e5; }
.broadcast-eligibility .preference-override strong, .broadcast-eligibility .preference-override span { color: #724b13; }
.communication-broadcast-preview { margin: 0 16px; padding: 16px; border: 1px solid #e4c578; border-radius: 9px; background: var(--amber-soft); }
.communication-broadcast-preview > div { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.communication-broadcast-preview span { color: #735f2f; font-size: 12px; }
.communication-preview-icon { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; background: white; color: var(--amber); }
.demo-sms-preview { display: grid; gap: 14px; margin: 0 16px 18px; padding: 17px; border: 2px solid #d29a3a; border-radius: 9px; background: #fff9e9; }
.demo-sms-preview header, .demo-sms-preview footer { display: flex; align-items: center; gap: 12px; }
.demo-sms-preview header > div { display: grid; gap: 4px; }
.demo-sms-preview header strong { color: #60440f; font-size: 12px; }
.demo-sms-preview header span, .demo-sms-preview footer > span { color: #735f2f; font-size: 12px; }
.demo-sms-preview p { margin: 0; padding: 15px; border: 1px solid #ead8aa; border-radius: 7px; background: white; color: var(--charcoal); font-size: 12px; font-weight: 650; white-space: pre-wrap; }
.demo-sms-preview footer { justify-content: space-between; }
.demo-activity-heading { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.demo-activity-empty { margin: 0 18px; }
.demo-activity-log { display: grid; margin: 0 18px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.demo-activity-log article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: white; }
.demo-activity-log article:last-child { border-bottom: 0; }
.demo-activity-log article > div { display: grid; gap: 3px; }
.demo-activity-log strong { font-size: 12px; }
.demo-activity-log span, .demo-activity-log time { color: var(--muted); font-size: 12px; }
.demo-activity-marker { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green) !important; }
.demo-activity-marker .rzi { font-size: 16px; }

@media (max-width: 1000px) {
    .communication-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .communication-filter-footer { align-items: flex-start; flex-direction: column; }
    .communications-workspace, .admin-communication-grid { grid-template-columns: 1fr; }
    .conversation-list-panel { max-height: 360px; }
    .admin-metric-grid { grid-template-columns: repeat(3, 1fr); }
    .communication-admin-metrics { grid-template-columns: repeat(3, minmax(130px, 1fr)); }
    .broadcast-eligibility { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
    .verification-panel { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
    .communication-filter-fields { grid-template-columns: 1fr; }
    .communication-filter-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .communication-filter-toggles .clinic-switch-option { width: 100%; }
    .communication-filter-apply, .communication-filter-apply .rz-button { width: 100%; }
    .communications-workspace { display: block; }
    .conversation-list-panel { margin-bottom: 12px; }
    .conversation-detail-panel { min-height: 540px; }
    .message-bubble { max-width: 92%; }
    .admin-metric-grid { grid-template-columns: repeat(2, 1fr); }
    .communication-admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-section-navigation { align-items: stretch; flex-direction: column; }
    .admin-section-navigation a { min-width: 0; width: 100%; }
    .preference-row { grid-template-columns: minmax(130px, 1fr) repeat(3, 50px); padding-inline: 8px; }
    .verification-panel, .chart-message-compose { grid-template-columns: 1fr; }
    .verification-panel > *, .chart-message-compose > * { grid-column: 1; }
    .contact-point-list article, .contact-delete-confirm { align-items: stretch; flex-direction: column; }
    .contact-point-list article > .contact-point-actions { display: flex; width: 100%; }
    .contact-point-actions .rz-button, .contact-delete-confirm .rz-button { flex: 1; }
    .channel-optout-actions, .slot-hold-confirm, .broadcast-confirm { align-items: stretch; flex-direction: column; }
    .demo-sms-preview header, .demo-sms-preview footer { align-items: stretch; flex-direction: column; }
    .demo-sms-preview footer .rz-button { width: 100%; }
    .demo-activity-log article { grid-template-columns: auto minmax(0, 1fr); }
    .demo-activity-log time { grid-column: 2; }
    .broadcast-eligibility { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-request-form { padding-inline: 14px; }
    .patient-message-composer-actions { padding-inline: 14px; }
    .patient-message-composer-actions .rz-button { flex: 1; }
    .portal-scheduling-form { padding-inline: 14px; }
}

@media (max-width: 600px) {
    .analytics-filter-panel { align-items: stretch; flex-direction: column; }
    .analytics-filter-panel > label { min-width: 0; width: 100%; flex-basis: auto; }
    .analytics-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .analytics-segmented { width: 100%; }
    .analytics-segmented button { flex: 1; }
    .analytics-chart-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .analytics-therapy-row { grid-template-columns: minmax(0, 1fr) 54px 18px; }
    .analytics-therapy-track { grid-column: 1 / -1; }
    .analytics-population-grid { grid-template-columns: 1fr 1fr; padding: 12px; }
    .analytics-composition-row { grid-template-columns: minmax(120px, 1fr) 40px 40px; }
    .analytics-composition-row .analytics-composition-track { grid-column: 1 / -1; grid-row: 2; }
    .analytics-tabs button { padding-inline: 10px; }
    .analytics-tabs button span { display: none; }
    .analytics-week-toolbar > div:last-child { flex-wrap: wrap; }
    .membership-plan-editor, .membership-plan-list, .membership-profile-editor { grid-template-columns: 1fr; }
    .membership-plan-editor > div { grid-column: auto; }
    .membership-profile-editor > div { flex-wrap: wrap; }
    .analytics-accounting-equation, .billing-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .billing-invoice > summary { grid-template-columns: 42px minmax(0, 1fr) auto; }
    .billing-invoice > summary > span:nth-child(3), .billing-invoice > summary > span:nth-child(4), .billing-invoice > summary > span:nth-child(5) { display: none !important; }
    .billing-invoice > summary > .state-badge { grid-column: 2; justify-self: start; }
    .billing-equation, .billing-entry-grid { grid-template-columns: 1fr 1fr; }
    .billing-entry-grid .span-two { grid-column: 1 / -1; }
}
.lab-marker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 20px 0;
    padding: 18px;
    border: 1px solid #d8e2dd;
    border-radius: 12px;
}

.portal-more-toggle, .portal-more-options { display: none; }
.portal-nav-group { display: grid; gap: 4px; }
.portal-nav-group a .mobile-nav-label { display: none; }
@media (max-width: 600px) { .portal-nav-group { display: contents; } .primary-nav .portal-nav-group > a.portal-secondary { display: none; } .primary-nav .portal-nav-group a .desktop-nav-label { display: none; } .primary-nav .portal-nav-group a .mobile-nav-label { display: block; } }
.portal-attention { padding: 16px 20px; margin-bottom: 15px; }
.portal-attention .panel-heading { margin-bottom: 7px; }
.portal-attention-item { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.portal-attention-item > .rzi { color: var(--green); font-size: 23px; }
.portal-attention-item > span { flex: 1; display: grid; gap: 2px; }
.portal-attention-item small { color: var(--text-muted); }
.portal-attention-item > b { color: var(--green); white-space: nowrap; }
.portal-attention-clear { display: flex; align-items: center; gap: 9px; padding: 14px 0 5px; color: var(--green); font-weight: 700; }
.portal-home-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 15px; }
.portal-home-summary .portal-goal-card { margin: 0; }
.portal-results-summary { padding: 17px 20px; }
.portal-results-summary > div { display: flex; justify-content: space-between; gap: 12px; }
.portal-results-summary p { display: flex; justify-content: space-between; gap: 12px; margin: 11px 0 0; }
.portal-results-summary p span { color: var(--text-muted); text-align: right; }
.portal-record-shortcuts { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 17px 0; }
.portal-record-shortcuts a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); text-decoration: none; font-weight: 700; }
.portal-first-run-checklist { text-align: left; line-height: 1.8; }
@media (max-width: 650px) { .portal-home-summary { grid-template-columns: 1fr; } .portal-attention-item { flex-wrap: wrap; } .portal-attention-item > b { margin-left: 35px; } }
@media (max-width: 600px) {
    .primary-nav > a.portal-secondary { display: none; }
    .primary-nav > a, .primary-nav > .portal-more-toggle { flex: 1 0 60px; min-width: 60px; }
    .primary-nav a span, .portal-more-toggle span { font-size: 12px; line-height: 1.2; }
    .portal-more-toggle { display: flex; height: 60px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #bbc0c2; background: transparent; border: 0; border-radius: 7px; font: inherit; }
    .portal-more-toggle[aria-expanded="true"] { background: white; color: var(--ink); }
    .portal-more-options { display: grid; position: fixed; bottom: 80px; right: 12px; left: 12px; max-height: calc(100dvh - 110px); overflow: auto; padding: 12px; background: white; color: var(--ink); box-shadow: 0 4px 30px #0004; border: 1px solid #dce4e1; border-radius: 12px; z-index: 60; }
    .portal-more-options a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; font-size: 14px; }
    .portal-more-options > button { justify-self: end; }
}
