:root { --brand: #168A98; --action: #0875E1; --action-hover: #065CB2; --ink: #15233B; --muted: #637086; --canvas: #F5F7F9; --surface: #FFFFFF; --border: #D6DEE7; --success: #218A43; --warning: #D98B00; --danger: #C83C3C; --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --radius: 6px; --control: 44px; }
.clinical-app { margin: 0; background: var(--canvas); color: var(--ink); font: 16px/1.5 'Segoe UI', Arial, sans-serif; letter-spacing: 0; }
.clinical-app *, .clinical-app *::before, .clinical-app *::after { box-sizing: border-box; letter-spacing: 0; }
.clinical-app [hidden] { display: none !important; }
.clinical-app a { color: var(--action); }
.clinical-app a:hover { color: var(--action-hover); text-decoration: underline; }
.clinical-app :focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
.clinical-skip { position: absolute; left: 16px; top: -100px; padding: 12px; background: white; z-index: 1100; }
.clinical-skip:focus { top: 8px; }
.clinical-header { background: #fff; border-bottom: 1px solid var(--border); }
.clinical-header-inner { max-width: 1480px; margin: auto; padding: 14px 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; }
.clinical-brand { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.clinical-brand img { width: 100px; height: 48px; object-fit: contain; }
.clinical-brand span { font-size: 24px; font-weight: 600; color: var(--ink); }
.clinical-navigation { display: flex; flex: 1; flex-wrap: wrap; gap: 4px 18px; }
.clinical-navigation a { padding: 8px 0; border-bottom: 2px solid transparent; font-weight: 600; }
.clinical-navigation a[aria-current=page] { color: var(--ink); border-bottom-color: var(--brand); }
.clinical-account { display: flex; align-items: center; gap: 16px; }
.clinical-account form { margin: 0; }
.clinical-app #container.clinical-main { width: calc(100% - 56px); max-width: 1424px; padding: 28px 0 48px; min-height: calc(100vh - 164px); background: none; box-shadow: none; border-radius: 0; }
.clinical-app h1, .clinical-app h2, .clinical-app h3, .clinical-app h4 { color: var(--ink); font-family: inherit; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.clinical-app h1 { font-size: 30px; margin: 0 0 8px; }
.clinical-app h2 { font-size: 24px; margin: 0 0 20px; }
.clinical-app h3 { font-size: 20px; margin: 24px 0 14px; }
.clinical-app h4 { font-size: 18px; }
.clinical-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.clinical-eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 4px; text-transform: none; }
.clinical-heading-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.encounter-status { display: inline-block; margin-left: 16px; color: var(--muted); }
.clinical-dashboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 32px; align-items: start; }
.clinical-worklist, .clinical-messages { min-width: 0; }
.clinical-queue { margin-bottom: 28px; border-top: 2px solid var(--border); padding-top: 18px; }
.clinical-queue h2 { font-size: 21px; margin-bottom: 16px; }
.queue-count { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 8px; }
.queue-tools { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 16px; flex-wrap: wrap; }
.queue-search { width: 280px; max-width: 100%; }
.queue-search label { font-size: 14px; }
.queue-overdue { font-weight: 400; padding: 8px 0; margin: 0; }
.queue-overdue input { margin-right: 6px; }
.clinical-table-scroll { width: 100%; overflow: auto; }
.clinical-app .table { background: #fff; font-size: 15px; margin-bottom: 0; }
.clinical-app .table > thead > tr > th { background: #edf1f3; border-bottom: 1px solid var(--border); color: #4c585f; font-size: 13px; padding: 12px; vertical-align: middle; }
.clinical-app .table > tbody > tr > td { padding: 13px 12px; border-color: #e3e8eb; vertical-align: middle; overflow-wrap: anywhere; }
.clinical-app .table > tbody > tr:hover { background: #f1f8f8; }
.queue-table { table-layout: fixed; min-width: 420px; }
.queue-table td:first-child { font-weight: 600; }
.status-overdue { display: block; color: #a32633; font-size: 12px; font-weight: 600; }
.queue-pagination { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; color: #58646b; font-size: 14px; gap: 12px; }
.queue-page-buttons { display: flex; gap: 12px; align-items: center; }
.queue-page-buttons [data-page] { min-width: 46px; text-align: center; }
.queue-page-buttons button { width: 38px; height: 38px; padding: 0; }
.queue-empty { padding: 24px; color: var(--muted); background: #fff; text-align: center; margin: 0; }
.closed-cases summary { font-size: 20px; font-weight: 600; cursor: pointer; padding: 14px 0; }
.clinical-messages { border-top: 2px solid var(--brand); }
.clinical-messages > .col-md-12 { float: none; width: 100%; padding: 0; }
.clinical-messages h3 { margin-top: 18px; }
.clinical-messages .table .btn { padding: 4px; width: 34px; min-height: 34px; }
.clinical-app .btn, .clinical-app .button-primary, .clinical-app .button-secondary, .clinical-app .button-danger { border-radius: 4px; min-height: 38px; font-size: 15px; line-height: 1.4; padding: 8px 14px; white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.clinical-app .button-primary, .clinical-app .btn-primary { background: var(--action); border: 1px solid var(--action); color: white; }
.clinical-app .button-primary:hover, .clinical-app .btn-primary:hover { background: var(--action-hover); color: white; }
.clinical-app .button-secondary, .clinical-app .btn-default { background: white; border: 1px solid var(--border); color: var(--ink); }
.clinical-app .button-danger { background: #ad293a; color: white; border: 1px solid #ad293a; }
.clinical-app .btn:disabled, .clinical-app button:disabled { opacity: .5; cursor: not-allowed; }
.clinical-app .form-control { font-size: 16px; border: 1px solid var(--border); border-radius: 4px; box-shadow: none; max-width: 100%; min-height: 40px; }
.clinical-app textarea.form-control { height: auto; }
.clinical-app label, .clinical-app .control-label { color: #424e55; }
.clinical-app .form-group { margin-bottom: 20px; }
.clinical-app .modal-dialog { width: 860px; max-width: calc(100% - 24px); margin: 30px auto; }
.clinical-app .modal-content { border-radius: 6px; }
.clinical-app .modal .container { width: 100%; padding: 0; }
.clinical-app .modal-body { padding: 24px; overflow-wrap: anywhere; }
.clinical-app .modal-header, .clinical-app .modal-footer { padding: 18px 24px; }
.clinical-app .modal-body .form-control { margin-bottom: 10px; }
.clinical-app img { max-width: 100%; }
.clinical-app .alert { border-radius: 4px; font-size: 15px; }
.clinical-app .review { font-size: 16px; overflow-wrap: anywhere; }
.clinical-app #buttons { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 0; margin: 12px 0; border-top: 1px solid var(--border); }
.clinical-app #buttons .btn { width: auto; margin: 0; float: none; background: #fff; color: var(--ink); border: 1px solid var(--border); }
.clinical-app #buttons #acceptCase, .clinical-app #buttons #saveDiagnosis { background: var(--action); color: #fff; border-color: var(--action); }
.clinical-app #buttons #completeCase { background: var(--action); color: #fff; border-color: var(--action); }
.clinical-app #buttons #nuclear { display: inline-flex; position: static; left: auto; width: auto; height: auto; margin: 0; border-radius: 999px; }
.clinical-app #buttons #nuclearbutton { margin: 0 0 0 auto; }
.clinical-app .nav-tabs { display: flex; flex-wrap: wrap; }
.clinical-app .nav-tabs > li > a h3 { font-size: 17px; margin: 0; }
.clinical-app .panel { border-radius: 4px; box-shadow: none; }
.intake-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.intake-progress .clinical-eyebrow { margin: 0; }
.patient-visit-progress ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; }
.patient-visit-progress li { border-bottom: 2px solid var(--border); padding: 12px 4px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.patient-visit-progress li[aria-current=step] { border-color: var(--action); color: var(--action); font-weight: 600; }
.visit-step-number { margin-right: 4px; }
.patient-visit-progress + .intake-progress { display: none; }
.clinical-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; max-width: 1480px; margin: auto; padding: 20px 28px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.clinical-footer nav { display: flex; gap: 20px; }
.patient-photo-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.clinical-app .clinical-upload { min-height: 180px; background: #fff; border: 2px dashed #9aafb7; border-radius: 4px; padding: 24px; box-shadow: none; }
.clinical-app .clinical-upload .dz-message { position: static; margin: 16px 0; opacity: 1; background: none; width: auto; height: auto; }
.clinical-app .clinical-upload .dz-message span { display: inline; }
.clinical-app .clinical-upload .dz-preview { margin: 16px 12px 12px 0; width: 220px; max-width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 4px; box-shadow: none; vertical-align: top; }
.clinical-app .clinical-upload .dz-preview .dz-details { width: 100%; height: 160px; }
.clinical-app .clinical-upload .dz-preview .dz-details img { width: 100%; height: 120px; object-fit: contain; }
.clinical-app .clinical-upload .dz-preview .dz-error-message { position: static; opacity: 1; display: none; width: auto; margin: 8px 0; background: #fff0f0; color: #972b38; border: 0; }
.clinical-app .clinical-upload .dz-preview.dz-error .dz-error-message { display: block; }
.clinical-app .clinical-upload .dz-preview .dz-filename { overflow-wrap: anywhere; }
.clinical-app .clinical-upload .photo-remove { float: right; }
.patient-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 24px; }
.patient-photo { padding: 16px; border: 1px solid var(--border); border-radius: 4px; background: #fff; min-width: 0; }
.patient-photo img, .patient-photo video { width: 100%; height: 180px; object-fit: contain; margin-bottom: 12px; }
.photo-actions, .patient-step-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.patient-step-actions { border-top: 1px solid var(--border); padding-top: 20px; }
.patient-step-actions p { margin: 0; }
.photo-guidance { border-top: 2px solid var(--border); padding-top: 20px; }
.photo-guidance h2 { font-size: 21px; }
.photo-guidance ul { padding-left: 22px; }
.photo-guidance li { margin-bottom: 10px; }
.photo-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-examples img { width: 100%; height: 120px; object-fit: contain; background: #fff; }
.clinical-admin .btn-block { text-align: left; margin-bottom: 12px; }
.admin-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-bottom: 36px; }
.admin-navigation section { border-top: 2px solid var(--border); padding-top: 20px; }
.admin-navigation h2 { font-size: 21px; }
.admin-navigation a, .admin-navigation button { display: block; text-align: left; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--border); color: var(--action); background: transparent; font-size: 16px; }
.admin-navigation a:hover, .admin-navigation button:hover { background: #eaf1f3; }
.admin-access-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.admin-access-heading h2 { margin: 0; font-size: 21px; }
.clinical-admin #userName, .clinical-admin #role { max-width: 640px; }
@media (max-width: 991px) {
    .patient-photo-workspace { grid-template-columns: minmax(0, 1fr); }
    .clinical-dashboard { grid-template-columns: minmax(0, 1fr); }
    .clinical-navigation { order: 3; flex-basis: 100%; }
    .clinical-account { margin-left: auto; }
}
@media (max-width: 767px) {
    .patient-visit-progress ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .admin-navigation { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .clinical-header-inner { padding: 12px 16px; gap: 12px; }
    .clinical-brand img { width: 70px; height: 40px; }
    .clinical-brand { gap: 8px; }
    .clinical-brand span { font-size: 21px; }
    .clinical-account { gap: 8px; font-size: 14px; }
    .clinical-app #container.clinical-main { width: calc(100% - 32px); padding-top: 20px; }
    .clinical-heading-actions { width: 100%; }
    .clinical-app .modal-body { padding: 16px; }
    .clinical-app h1 { font-size: 26px; }
    .clinical-app .table { font-size: 14px; }
    .queue-table { min-width: 0; }
    .clinical-footer { padding: 20px 16px; }
}
.care-plan { border-top: 1px solid #d8dfe2; margin-top: 24px; padding-top: 12px; }
.message-thread { list-style: none; margin: 0; padding: 0; }
.message-thread-item { border-bottom: 1px solid #d8dfe2; padding: 16px 0; }
.message-thread-heading { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.message-thread-heading time { color: #58646c; font-size: 12px; }
.message-thread-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 8px; }
.assignment-result { font-size: 12px; margin-top: 6px; max-width: 220px; }
#report-status, #assignment-status { margin: 12px 0; }
[hidden] { display: none !important; }
.encounter-photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.encounter-photo { margin: 0; min-width: 0; }
.encounter-photo img, .encounter-photo video { display: block; width: 100%; max-height: 320px; aspect-ratio: 1; object-fit: contain; background: #f1f4f5; }
.encounter-photo figcaption { padding: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }

/* Phase 2b components. Legacy Bootstrap behavior is retained; visual roles live here. */
.clinical-app { background: var(--canvas); color: var(--ink); }
.clinical-app h2 { font-size: 20px; }
.clinical-app h3 { font-size: 18px; }
.clinical-app .container { max-width: 100%; }
.clinical-main > .container, .clinical-main .modal .container { width: 100%; }
.clinical-header-inner { min-height: 80px; padding-top: 8px; padding-bottom: 8px; }
.clinical-brand img { width: 208px; height: 48px; }
.clinical-navigation a { color: var(--muted); padding: 18px 8px; }
.clinical-navigation a[aria-current=page] { color: #117783; border-bottom: 3px solid var(--brand); }
.clinical-app button.clinical-menu-toggle { display: none; }
.clinical-account { font-size: 14px; }
.patient-account-menu { position: relative; }
.clinical-app .patient-account-toggle { display: flex; align-items: center; gap: 9px; max-width: 260px; padding: 9px 11px; border-color: transparent; background: transparent; color: #173E58; }
.clinical-app .patient-account-toggle:hover,
.clinical-app .patient-account-toggle:focus,
.patient-account-menu.open .patient-account-toggle { border-color: #D4E2E6; background: #F2F8F8; color: #0B6171; }
.patient-account-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #DDF0F1; color: #087487; }
.patient-account-name { min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.patient-account-chevron { flex: 0 0 auto; font-size: 10px; transition: transform .18s ease; }
.patient-account-menu.open .patient-account-chevron { transform: rotate(180deg); }
.clinical-app .patient-account-dropdown { min-width: 230px; margin-top: 8px; padding: 7px; border: 1px solid #D3E0E4; border-radius: 8px; box-shadow: 0 12px 30px rgba(18, 55, 75, .16); }
.clinical-app .patient-account-dropdown > li > a,
.clinical-app .patient-account-logout { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 10px 12px; border: 0; border-radius: 5px; background: transparent; color: #24465D; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: left; }
.clinical-app .patient-account-dropdown > li > a:hover,
.clinical-app .patient-account-dropdown > li > a:focus,
.clinical-app .patient-account-logout:hover,
.clinical-app .patient-account-logout:focus { background: #EAF4F5; color: #09697A; text-decoration: none; }
.clinical-app .patient-account-dropdown .divider { margin: 6px 4px; background: #DCE6E9; }
.patient-account-dropdown form { width: 100%; }
.clinical-app .btn, .clinical-app .button-primary, .clinical-app .button-secondary, .clinical-app .button-danger { min-height: var(--control); padding: 10px 16px; font: 600 14px/1.5 'Segoe UI', Arial, sans-serif; text-transform: none; box-shadow: none; display: inline-block; text-align: center; }
.clinical-menu-icon { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.clinical-app .btn-default { color: var(--action-hover); }
.clinical-app .btn-primary, .clinical-app .button-primary { background: var(--action-hover); border-color: var(--action-hover); }
.clinical-app .btn-primary:hover, .clinical-app .button-primary:hover { background: #054E97; }
.clinical-app .btn-danger, .clinical-app .button-danger { background: var(--danger); color: white; border: 1px solid var(--danger); }
.clinical-app .btn-default:hover, .clinical-app .button-secondary:hover { background: #EDF5FE; border-color: var(--action); }
.clinical-app .btn:focus-visible, .clinical-app a:focus-visible, .clinical-app input:focus-visible, .clinical-app select:focus-visible, .clinical-app textarea:focus-visible, .clinical-app summary:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
.clinical-app .form-control { min-height: var(--control); color: var(--ink); background: var(--surface); }
.clinical-app .form-control:focus { border-color: var(--action); box-shadow: 0 0 0 2px #DCEBFC; }
.clinical-app .form-control[disabled], .clinical-app .form-control[readonly] { background: #EDF0F4; color: #536176; }
.clinical-app input[type=checkbox], .clinical-app input[type=radio] { accent-color: var(--action); width: 18px; height: 18px; vertical-align: middle; }
.clinical-app .checkbox label, .clinical-app .radio label { min-height: 44px; padding-top: 8px; }
.clinical-app .text-danger, .clinical-app .field-validation-error, .clinical-app .validation-summary-errors { color: #AB2929; }
.clinical-app .input-validation-error { border-color: var(--danger); }
.clinical-app .alert-success { color: #176532; background: #EBF6EF; border-color: #BCDCC6; }
.clinical-app .alert-warning { color: #805000; background: #FFF5DF; border-color: #EAD4A1; }
.clinical-app .alert-danger { color: #A12828; background: #FCEEEE; border-color: #E9BBBB; }
.clinical-app .alert-info { color: #14548A; background: #EDF5FE; border-color: #BDD5ED; }
.clinical-app .progress-bar { background: var(--brand); background-image: none; }
.clinical-app .progress { height: 8px; box-shadow: none; background: var(--border); }
.clinical-app .table > thead > tr > th { background: #F0F3F6; color: #435269; font-size: 14px; padding: 12px 16px; }
.clinical-app .table > tbody > tr > td { border-color: var(--border); padding: 12px 16px; }
.clinical-table-scroll { border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.clinical-app .table-responsive { border-color: var(--border); }
.clinical-summary { display: flex; gap: 24px; flex-wrap: wrap; margin: 0 0 24px; }
.clinical-summary > div { min-width: 112px; border-right: 1px solid var(--border); padding-right: 24px; }
.clinical-summary strong { display: block; font-size: 28px; line-height: 1.25; }
.clinical-summary span { color: var(--muted); font-size: 14px; }
.clinical-queue { border-top: 0; padding-top: 0; }
.queue-table { table-layout: auto; min-width: 620px; }
.clinical-status, .encounter-status { display: inline-block; background: #EDF1F5; color: #435269; padding: 4px 8px; border-radius: 4px; font-size: 14px; font-weight: 600; }
.status-overdue { color: #A12828; font-size: 14px; }
[data-status=Assigned], [data-status=AwaitingDoctorUpdate], [data-status=AwaitingDiagnosis] { background: #E8F2FE; color: #14548A; }
[data-status=NewPictureRequested], [data-status=AwaitingPatientUpdate], [data-status=PaymentPending] { background: #FFF2D6; color: #805000; }
[data-status=Completed] { background: #EBF6EF; color: #176532; }
[data-status=Deleted] { background: #FCEEEE; color: #A12828; }
.clinical-messages { border-top: 0; border-left: 1px solid var(--border); padding-left: 24px; }
.clinical-messages .clinical-table-scroll { border: 0; }
.clinical-messages .table > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.clinical-messages .table > tbody > tr > td { padding: 12px 4px; }
.clinical-messages .table .btn { width: 44px; min-height: 44px; }
.clinical-app .pagination > li > a, .clinical-app .pagination > li > span { min-width: 44px; min-height: 44px; color: var(--action-hover); }
.clinical-app .pagination > .active > a { background: var(--action-hover); color: white; border-color: var(--action-hover); }
.clinical-app .modal-header { border-bottom-color: var(--border); }
.clinical-app .modal-footer { border-top-color: var(--border); }
.clinical-app .modal-body:after { content: ''; display: table; clear: both; }
.clinical-app .close { min-width: 44px; min-height: 44px; color: var(--ink); opacity: 1; }
.clinical-app .panel, .clinical-app .well { border: 1px solid var(--border); background: var(--surface); box-shadow: none; }
.clinical-app .panel-heading { background: #F0F3F6; color: var(--ink); }
.patient-visit-progress ol { gap: 0; }
.patient-visit-progress li { position: relative; text-align: center; border: 0; padding: 12px 4px; }
.patient-visit-progress li:before { content: ''; position: absolute; top: 30px; left: 0; right: 0; border-top: 1px solid var(--border); }
.visit-step-number { position: relative; display: block; width: 36px; height: 36px; line-height: 34px; border-radius: 50%; background: var(--canvas); border: 1px solid var(--border); margin: 0 auto 8px; }
.patient-visit-progress li[aria-current=step] { color: #117783; }
.patient-visit-progress li[aria-current=step] .visit-step-number, .visit-step-complete .visit-step-number { background: #117783; color: white; border-color: #117783; }
.visit-progress-mobile { display: none; }
.clinical-app .clinical-upload { background: #F8FAFC; border-color: #AABBCB; text-align: center; padding: 32px 24px; }
.patient-photo-grid { margin-top: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.patient-photo { padding: 12px; }
.saved-photo-heading { margin-top: 24px !important; }
.photo-guidance { border-top: 0; border-left: 1px solid var(--border); padding: 0 0 0 24px; }
.photo-guidance summary { font-size: 20px; font-weight: 600; cursor: pointer; min-height: 44px; }
.photo-guidance li { margin-bottom: 16px; }
.patient-step-actions, .clinical-app #buttons { background: var(--surface); padding: 16px; border: 1px solid var(--border); border-radius: 4px; clear: both; }
.clinical-app #buttons #completeCase, .clinical-app #buttons #acceptCase { background: var(--action-hover); border-color: var(--action-hover); color: white; }
.clinical-app #buttons #saveDiagnosis { background: white; color: var(--action-hover); border-color: var(--action); }
.clinical-app #buttons #requestNewPicture { color: #805000; border-color: #D6AD5D; background: #FFFAEF; }
.clinical-app #buttons #completeCase { margin-left: auto; }
.encounter-section-nav { display: flex; gap: 16px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.encounter-section-nav a { display: block; padding: 12px 16px; font-weight: 600; }
.encounter-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: start; }
.encounter-summary { min-width: 0; }
#diagnosisdiv:not(.hide) + .care-plan-accept-note { display: none; }
.encounter-summary > .row { margin: 0; }
.encounter-summary > .row > .col-md-6 { width: 100%; float: none; padding: 0; }
.encounter-summary .review { display: inline-block; margin-bottom: 12px; }
.encounter-gallery { min-width: 0; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; }
.encounter-photo-grid.is-gallery { display: block; }
.encounter-photo-grid.is-gallery .encounter-photo img, .encounter-photo-grid.is-gallery .encounter-photo video { max-height: 540px; aspect-ratio: 4/3; object-fit: contain; background: #F0F3F6; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.gallery-thumbnails { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumbnails button { width: 80px; min-height: 60px; padding: 4px; background: white; border: 2px solid var(--border); border-radius: 4px; }
.gallery-thumbnails button[aria-pressed=true] { border-color: var(--brand); }
.gallery-thumbnails img { height: 48px; width: 68px; object-fit: contain; }
.photo-load-error { min-height: 160px; margin: 0; padding: 24px; display: flex; align-items: center; justify-content: center; text-align: center; color: #A12828; background: #FCEEEE; }
.photo-load-error[hidden] { display: none; }
.clinical-account .clinical-main, .clinical-app.clinical-account #container { max-width: 1000px; }
body.clinical-account { display: block; margin: 0; font-size: 16px; }
.clinical-account .clinical-main > .container { background: var(--surface); padding: 24px; border: 1px solid var(--border); border-radius: 6px; }
.clinical-app .headerbackground, .clinical-app .headerbackground-mobile { background: var(--surface); color: var(--ink); height: auto; }
.clinical-app .landing-page-container { color: var(--ink); font-size: 20px; }
.clinical-app .landing-page-info h3 { font-size: 20px; }
.clinical-app .text-uppercase { text-transform: none; }
.clinical-app .admin-navigation a, .clinical-app .admin-navigation button { color: var(--action-hover); min-height: 44px; }
.clinical-app .message-thread-heading time, .assignment-result { font-size: 14px; }
.clinical-app a { color: #0668CA; }
.clinical-app .btn-primary, .clinical-app a.button-primary, .clinical-app a.button-danger { color: white; }
.clinical-app .agp, .clinical-app .agp-mobile, .clinical-app .sspl, .clinical-app .sspr { font-family: inherit; color: var(--ink); text-shadow: none; box-shadow: none; background: none; border-radius: 0; }
.clinical-app .sspl { font-size: 28px; }
.clinical-app .sspr { font-size: 16px; line-height: 1.5; }
.clinical-app .orange, .clinical-app .orange-font, .clinical-app .orange-dontresize { color: #117783; font-size: 20px; }
.clinical-app #first-picture, .clinical-app #first-picture-mobile, .clinical-app #first-picture-text-mobile, .clinical-app #second-picture { height: auto; min-height: 0; background: var(--surface); padding: 24px; border: 1px solid var(--border); border-radius: 6px; }
.clinical-app .headerbackground, .clinical-app .headerbackground-mobile { width: 100%; max-width: 900px; margin: 0 auto; padding: 16px; text-align: left; }
.clinical-app .quote { background: #EDF5F6; border-radius: 4px; }
.clinical-app .quote:after { display: none; }
.clinical-app .clinical-page-privacypolicy, .clinical-app .clinical-page-termsandconditions { max-width: 1000px !important; }
.clinical-page-privacypolicy span[style], .clinical-page-privacypolicy p[style], .clinical-page-termsandconditions span[style], .clinical-page-termsandconditions p[style] { font-family: inherit !important; font-size: 16px !important; line-height: 1.5 !important; color: var(--ink) !important; }
.clinical-patient .clinical-page-editprofile, .clinical-patient .clinical-page-createprofile, .clinical-patient .clinical-page-editpreferences, .clinical-patient .clinical-page-editmedicalhistory, .clinical-patient .clinical-page-aboutcondition, .clinical-patient .clinical-page-followup, .clinical-patient .clinical-page-startvisit { max-width: 1000px !important; }
.clinical-patient .clinical-main > form { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 24px; }
.clinical-patient .clinical-main > form:after { content: ''; display: table; clear: both; }
.clinical-app .clinical-environment { color: #14548A; background: #EDF5FE; border: 1px solid #BDD5ED; border-radius: 4px; padding: 4px 8px; font-size: 14px; }

/* Patient profile form. */
.clinical-patient .clinical-page-editprofile { max-width: 1120px !important; padding-top: 34px !important; }
.profile-edit-heading { max-width: 780px; margin-bottom: 25px; }
.profile-edit-heading .clinical-eyebrow { margin-bottom: 7px; color: #117783; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.profile-edit-heading h1 { margin-bottom: 9px; color: #0B2E4F; font-size: 34px; letter-spacing: -.025em; }
.profile-edit-heading > p:last-child { margin: 0; color: #526B7E; line-height: 1.55; }
.clinical-patient .clinical-main > form.profile-edit-form { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.profile-edit-card { overflow: hidden; border: 1px solid #D5E2E6; border-radius: 12px; background: #fff; box-shadow: 0 14px 36px rgba(18, 55, 75, .07); }
.profile-edit-validation { margin: 22px 27px 0; }
.profile-edit-validation.validation-summary-valid, .profile-edit-validation:empty { display: none; }
.profile-edit-validation ul { margin: 7px 0 0; padding-left: 20px; }
.profile-edit-section { padding: 27px; border-bottom: 1px solid #DFE7EA; }
.profile-prescription-section { background: #FBFDFD; }
.profile-edit-section-heading { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 13px; align-items: start; margin-bottom: 23px; }
.profile-edit-section-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #D9EFF1; color: #087083; font-size: 14px; font-weight: 700; }
.profile-edit-section-heading h2 { margin: 1px 0 4px; color: #123E59; font-size: 20px; }
.profile-edit-section-heading p { margin: 0; color: #617687; font-size: 13px; line-height: 1.5; }
.profile-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; margin-left: 49px; }
.profile-field-full { grid-column: 1 / -1; }
.profile-address-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(190px, 1fr) minmax(135px, .65fr); gap: 20px 22px; }
.profile-field { min-width: 0; }
.profile-field .control-label, .profile-add-phone > .control-label { display: block; margin: 0 0 7px; color: #193B55; font-size: 14px; font-weight: 700; text-align: left; }
.profile-field .form-control { width: 100%; min-height: 48px; padding: 11px 13px; border-color: #BFCFD7; border-radius: 7px; background: #FCFEFE; }
.profile-field .form-control:focus { border-color: #168A98; background: #fff; box-shadow: 0 0 0 3px rgba(22, 138, 152, .13); outline: 0; }
.profile-field-help { display: block; margin-top: 6px; color: #677C8C; font-size: 12px; line-height: 1.45; }
.profile-field .text-danger { display: block; margin-top: 6px; font-size: 13px; }
.profile-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.profile-label-row > a { flex: 0 0 auto; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.profile-add-phone { align-self: end; }
.clinical-app .profile-phone-button { width: 100%; min-height: 48px; border-color: #AFCAD0; border-radius: 7px; color: #096A78; }
.profile-phone-button .glyphicon, .profile-remove-phone .glyphicon { margin-right: 6px; }
.profile-additional-phone { margin: 22px 0 0 49px; padding: 19px; border: 1px solid #CFE0E4; border-radius: 9px; background: #F6FAFA; }
.profile-additional-phone-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; color: #173E58; }
.clinical-app .profile-remove-phone { min-height: 38px; padding: 7px 11px; border-color: #D8B9B9; color: #9A3333; }
.profile-additional-phone .profile-field-grid { margin-left: 0; }
.profile-additional-phone > .profile-phone-button { width: auto; margin-top: 17px; }
.profile-privacy-note { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 21px 49px; padding: 14px 16px; border: 1px solid #C7DEE2; border-radius: 8px; background: #EEF8F8; color: #365B6D; }
.profile-privacy-note > .glyphicon { margin-top: 3px; color: #087083; }
.profile-privacy-note p { margin: 0; font-size: 13px; line-height: 1.5; }
.profile-edit-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 27px; background: #F7FAFA; }
.profile-edit-actions p { display: flex; align-items: center; gap: 8px; margin: 0; color: #5A7181; font-size: 13px; }
.profile-edit-actions p .glyphicon { color: #117783; }
.clinical-app .profile-edit-actions .btn { min-width: 190px; border-radius: 999px; }
.profile-edit-actions .btn span { margin-left: 7px; }
.clinical-app .profile-height-dialog { width: 540px; }
.profile-height-dialog .modal-content { overflow: hidden; border: 1px solid #CADCE1; border-radius: 13px; box-shadow: 0 24px 60px rgba(18, 55, 75, .2); }
.profile-height-header { position: relative; padding: 25px 27px 22px; border-bottom: 1px solid #D5E5E8; background: linear-gradient(135deg, #E8F6F7, #F7FBFB); }
.profile-height-header .close { position: absolute; top: 11px; right: 12px; z-index: 1; }
.profile-height-heading { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 15px; padding-right: 30px; }
.profile-height-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: #CFECEF; color: #087083; font-size: 20px; }
.profile-height-heading .clinical-eyebrow { margin: 0 0 4px; color: #117783; font-size: 12px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.profile-height-heading .modal-title { margin: 0 0 5px; color: #123E59; font-size: 22px; }
.profile-height-heading > div > p:last-child { margin: 0; color: #587283; font-size: 13px; line-height: 1.5; }
.clinical-app .profile-height-dialog .modal-body { max-height: none; padding: 25px 27px 27px; overflow: visible; background: #fff; }
.profile-height-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-height-field .control-label { display: block; margin: 0 0 7px; color: #193B55; font-size: 14px; font-weight: 700; text-align: left; }
.profile-height-field .input-group { display: flex; align-items: stretch; width: 100%; }
.profile-height-field .form-control { flex: 1 1 auto; width: 1%; height: 50px; margin: 0; border-color: #BFCFD7; border-radius: 7px 0 0 7px; background: #FCFEFE; font-size: 18px; font-weight: 600; }
.profile-height-field .input-group-addon { display: flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 50px; margin-left: -1px; padding: 0; border-color: #BFCFD7; border-radius: 0 7px 7px 0; background: #EFF5F6; color: #496677; font-size: 14px; font-weight: 700; line-height: 1; }
.profile-height-field .form-control:focus { position: relative; z-index: 3; border-color: #168A98; box-shadow: 0 0 0 3px rgba(22, 138, 152, .13); }
.profile-height-field .form-control[aria-invalid="true"] { border-color: #C83C3C; background: #FFF9F9; }
.profile-height-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 7px; background: #FCEEEE; font-size: 13px; }
.profile-height-result { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border: 1px solid #B8D9D4; border-radius: 8px; background: #EFF9F6; }
.profile-height-result > .glyphicon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #258264; color: #fff; font-size: 12px; }
.profile-height-result span, .profile-height-result strong { display: block; }
.profile-height-result div > span { color: #567368; font-size: 12px; }
.profile-height-result strong { color: #185A46; font-size: 18px; }
.profile-height-dialog .modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px 27px; background: #F8FAFA; }
.profile-height-dialog .modal-footer:before, .profile-height-dialog .modal-footer:after { display: none; }
.profile-height-dialog .modal-footer .btn { display: inline-flex; align-items: center; justify-content: center; width: 140px; min-width: 140px; height: 44px; min-height: 44px; margin: 0 !important; padding: 0 16px; border-radius: 999px; line-height: 1.2; }

@media (max-width: 700px) {
    .clinical-patient .clinical-page-editprofile { padding-top: 22px !important; }
    .profile-edit-heading h1 { font-size: 29px; }
    .profile-edit-section { padding: 23px 20px; }
    .profile-field-grid, .profile-address-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
    .profile-field-grid, .profile-additional-phone, .profile-privacy-note { margin-left: 0; }
    .profile-field-full { grid-column: auto; }
    .profile-label-row { align-items: flex-start; flex-direction: column; gap: 0; }
    .profile-edit-actions { align-items: stretch; flex-direction: column; padding: 18px 20px; }
    .clinical-app .profile-edit-actions .btn { width: 100%; }
}

/* Provider encounter workflow */
.clinical-provider .provider-encounter-page { width: 100%; max-width: 1320px; margin: 4px auto 48px; color: #29495E; }
.provider-encounter-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 34px; margin-bottom: 16px; padding: 27px 30px; border: 1px solid #CBE0E3; border-radius: 12px; background: linear-gradient(125deg, #F5FBFB, #E4F3F4); box-shadow: 0 12px 30px rgba(18, 55, 75, .065); }
.provider-encounter-identity { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 15px; min-width: 0; }
.provider-encounter-hero-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 11px; background: #D5EEF0; color: #087487; font-size: 21px; }
.provider-encounter-identity .clinical-eyebrow,
.provider-encounter-card-header .clinical-eyebrow { margin: 0 0 3px; color: #087487; font-size: 10px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.provider-encounter-identity h1 { margin: 0 0 5px; color: #0B2E4F; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.provider-encounter-identity h1 + p { max-width: 600px; margin: 0; color: #587184; font-size: 13px; line-height: 1.5; }
.provider-encounter-hero-side { display: flex; align-items: center; justify-content: flex-end; gap: 13px; }
.provider-encounter-meta { display: grid; grid-template-columns: repeat(3, minmax(105px, auto)); margin: 0; overflow: hidden; border: 1px solid #C9DCE0; border-radius: 9px; background: rgba(255, 255, 255, .85); }
.provider-encounter-meta > div { min-width: 0; padding: 11px 14px; border-left: 1px solid #D7E5E8; }
.provider-encounter-meta > div:first-child { border-left: 0; }
.provider-encounter-meta dt { margin: 0 0 3px; color: #617889; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.provider-encounter-meta dd { margin: 0; color: #173B55; font-size: 12px; font-weight: 700; white-space: nowrap; }
.provider-encounter-meta .clinical-status { max-width: 150px; font-size: 11px; white-space: normal; }
.provider-encounter-back { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; margin: 0; border-radius: 999px !important; white-space: nowrap !important; }
.provider-encounter-nav { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; padding: 6px; overflow-x: auto; border: 1px solid #D4E2E6; border-radius: 9px; background: #fff; box-shadow: 0 5px 16px rgba(18, 55, 75, .035); }
.provider-encounter-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 8px 15px; border-radius: 7px; color: #31566C; font-size: 13px; font-weight: 700; white-space: nowrap; }
.provider-encounter-nav a:hover,
.provider-encounter-nav a:focus { background: #EAF5F6; color: #087487; text-decoration: none; }
.provider-encounter-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 370px); gap: 18px; align-items: start; }
.provider-encounter-card { min-width: 0; margin-bottom: 18px; overflow: hidden; scroll-margin-top: 18px; border: 1px solid #D2E0E4; border-radius: 11px; background: #fff; box-shadow: 0 8px 24px rgba(18, 55, 75, .05); }
.provider-encounter-card:focus { outline: none; }
.provider-encounter-card:focus-visible { outline: 3px solid rgba(8, 117, 225, .35); outline-offset: 2px; }
.provider-encounter-card-header { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 17px 20px; border-bottom: 1px solid #DAE5E8; background: #F7FAFA; }
.provider-encounter-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9px; background: #DCEFF1; color: #087487; font-size: 17px; }
.provider-encounter-card-header h2 { margin: 0; color: #123E59; font-size: 19px; font-weight: 700; line-height: 1.25; }
.provider-encounter-card-body { padding: 20px; }
.provider-encounter-summary-body > h3 { margin: 0; padding: 16px 20px; border-bottom: 1px solid #E1E9EC; background: #FFF9EB; color: #6B511D; font-size: 15px; }
.provider-encounter-summary-body > .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .72fr); gap: 0; margin: 0; }
.provider-encounter-summary-body > .row:before,
.provider-encounter-summary-body > .row:after { display: none; }
.provider-encounter-summary-body > .row > [class*="col-md-"] { float: none; width: auto; min-width: 0; padding: 20px; }
.provider-encounter-summary-body > .row > .col-md-6 + .col-md-6 { border-left: 1px solid #DAE5E8; background: #FBFDFD; }
.provider-encounter-summary-body > .row > .col-md-6:first-child > div { padding: 10px 0 11px; border-bottom: 1px solid #E1E9EC; }
.provider-encounter-summary-body > .row > .col-md-6:first-child > div:first-child { padding-top: 0; }
.provider-encounter-summary-body > .row > .col-md-6:first-child > div:last-child { padding-bottom: 0; border-bottom: 0; }
.provider-encounter-summary-body .control-label { display: block; float: none; width: 100%; margin: 0 0 3px; padding: 0; color: #567084; font-size: 9px; font-weight: 700; letter-spacing: .035em; line-height: 1.35; text-align: left; text-transform: uppercase; }
.provider-encounter-summary-body .review { display: block; margin: 0; color: #173B55; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.provider-encounter-summary-body br { display: none; }
.provider-encounter-summary-body > .row > .col-md-6 + .col-md-6:before { display: block; margin-bottom: 9px; color: #123E59; content: "Patient details"; font-size: 15px; font-weight: 700; }
.provider-encounter-summary-body > .row > .col-md-6 + .col-md-6 > .col-md-10:empty { display: none; }
.provider-encounter-summary-body > .row > .col-md-6 + .col-md-6 > .form-group { margin: 0; padding: 10px 0 11px; border-bottom: 1px solid #E1E9EC; }
.provider-encounter-summary-body > .row > .col-md-6 + .col-md-6 > .form-group .control-label,
.provider-encounter-summary-body > .row > .col-md-6 + .col-md-6 > .form-group label { display: block; float: none; width: 100%; margin: 0 0 4px; padding: 0; color: #315268; font-size: 12px; line-height: 1.45; text-align: left; }
.provider-encounter-summary-body > .row > .col-md-6 + .col-md-6 > .control-label { margin-top: 11px; }
.provider-encounter-summary-body > .row > .col-md-6 + .col-md-6 > ul { float: none; width: 100%; margin: 0; padding: 0 0 10px; border-bottom: 1px solid #E1E9EC; color: #173B55; list-style: none; }
.provider-encounter-summary-body > .row > .col-md-6 + .col-md-6 > ul li { padding: 2px 0; font-size: 12px; }
.provider-encounter-summary-body > .row > .col-md-6 + .col-md-6 a { font-weight: 700; }
.provider-encounter-photos .provider-encounter-card-body { padding: 16px; }
.provider-encounter-photos .encounter-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.provider-encounter-photos .encounter-photo { overflow: hidden; border: 1px solid #D3E0E4; border-radius: 8px; background: #fff; }
.provider-encounter-photos .encounter-photo img,
.provider-encounter-photos .encounter-photo video { width: 100%; max-height: 230px; aspect-ratio: 4 / 3; background: #EEF3F4; }
.provider-encounter-photos .encounter-photo figcaption { min-height: 34px; padding: 8px 9px; color: #5D7383; font-size: 11px; }
.provider-encounter-photos .encounter-photo-grid > p { grid-column: 1 / -1; margin: 0; padding: 30px 12px; color: #667D8C; text-align: center; }
.provider-encounter-care .provider-encounter-card-body { padding: 22px; }
.provider-encounter-care .care-plan { margin: 0; padding: 0; border: 0; }
.provider-encounter-care .care-plan > h3 { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.provider-encounter-care .care-plan > .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.provider-encounter-care .care-plan > .row:nth-of-type(2) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.provider-encounter-care .care-plan > .row:before,
.provider-encounter-care .care-plan > .row:after { display: none; }
.provider-encounter-care .care-plan > .row > [class*="col-md-"] { float: none; width: auto; min-width: 0; padding: 0; }
.provider-encounter-care .care-plan label { display: block; margin: 0 0 7px; color: #24465D; font-size: 12px; font-weight: 700; }
.provider-encounter-care .care-plan .form-control { width: 100%; border-color: #B9CCD4; border-radius: 7px; background: #FCFEFE; }
.provider-encounter-care .care-plan .form-control:focus { border-color: #13808B; background: #fff; box-shadow: 0 0 0 3px rgba(19, 128, 139, .14); }
.provider-encounter-care .care-plan textarea.form-control { min-height: 150px; resize: vertical; }
.provider-encounter-care .care-plan .checkbox { margin: 11px 0 0; padding: 11px 13px; border: 1px solid #D8E4E7; border-radius: 7px; background: #F8FBFB; }
.provider-encounter-care .care-plan .checkbox label { margin: 0; font-weight: 500; }
.provider-encounter-care .care-plan .checkbox input { margin-top: 4px; }
.care-plan-accept-note { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0; padding: 18px; border: 1px solid #C9DDE1; border-radius: 9px; background: #F1F8F8; color: #557083; font-size: 13px; line-height: 1.5; }
.care-plan-accept-note > .glyphicon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #D9EFF1; color: #087487; }
.care-plan-accept-note > div { min-width: 0; }
.care-plan-accept-note strong { display: block; margin-bottom: 3px; color: #173E58; }
.care-plan-accept-note > div > span { display: block; }
.clinical-provider .provider-encounter-page #alert { float: none; width: 100%; min-height: 0; padding: 0; }
.clinical-provider .provider-encounter-page #alert .alert { margin: 0 0 16px; }
.provider-encounter-progress { float: none !important; width: 100% !important; height: 4px; margin: -18px 0 18px; padding: 0 !important; overflow: hidden; border: 0; border-radius: 0 0 9px 9px; background: #E4ECEF; box-shadow: none; }
.provider-encounter-progress .progress-bar { background-color: #168A98; }
.clinical-provider .provider-encounter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0; padding: 16px; border: 1px solid #D2E0E4; border-radius: 10px; background: #fff; box-shadow: 0 7px 20px rgba(18, 55, 75, .045); }
.clinical-provider .provider-encounter-actions .btn { display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 42px; margin: 0; padding: 9px 16px; float: none; border-radius: 999px; font-size: 13px; }
.clinical-provider .provider-encounter-actions #completeCase { margin-left: auto; background: var(--action-hover); border-color: var(--action-hover); color: #fff; }
.clinical-provider .provider-encounter-actions #acceptCase { background: var(--action-hover); border-color: var(--action-hover); color: #fff; }
.clinical-provider .provider-encounter-final-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.clinical-provider .provider-encounter-final-actions #completeCase { margin-left: 0; }
.clinical-provider .provider-encounter-actions #nuclear { min-width: 54px; border-radius: 999px; background: #C93F43; border-color: #C93F43; color: #fff; font-weight: 700; }
.clinical-provider .provider-encounter-actions #nuclear:hover,
.clinical-provider .provider-encounter-actions #nuclear:focus { background: #A82F33; border-color: #A82F33; color: #fff; }
.provider-encounter-refund-action { display: flex; justify-content: flex-end; margin-top: 10px; }
.provider-encounter-refund-action .btn { min-height: 38px; margin: 0; padding: 7px 14px; border-radius: 999px !important; font-size: 11px; }
.clinical-provider .provider-encounter-modal .modal-dialog { width: calc(100% - 32px); max-width: 700px; margin: 32px auto; }
.clinical-provider .provider-encounter-modal .modal-content { overflow: hidden; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(11, 46, 79, .24); }
.clinical-provider .provider-encounter-modal .modal-header { position: relative; min-height: 106px; padding: 18px 72px 17px 24px; border-bottom: 1px solid #D7E4E7; background: linear-gradient(135deg, #F6FBFB, #EAF5F6); }
.provider-modal-heading { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 13px; align-items: start; }
.provider-modal-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: #D8EFF1; color: #087487; font-size: 18px; }
.provider-modal-heading .clinical-eyebrow { margin: 0 0 3px; color: #087487; font-size: 10px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.clinical-provider .provider-encounter-modal .modal-title { margin: 0; color: #0B3859; font-size: 21px; font-weight: 700; line-height: 1.3; }
.provider-modal-heading .modal-title + p { margin: 4px 0 0; color: #5F7686; font-size: 12px; line-height: 1.4; }
.clinical-provider .provider-encounter-modal .modal-header .close { position: absolute; top: 15px; right: 16px; display: inline-flex; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 42px; padding: 0; border: 1px solid #CBD9DE; border-radius: 50%; background: #fff; color: #315268; font-size: 24px; font-weight: 400; }
.clinical-provider .provider-encounter-modal .modal-header .close:hover,
.clinical-provider .provider-encounter-modal .modal-header .close:focus { border-color: #9DB8C0; background: #EAF4F5; color: #123E59; outline: 0; }
.clinical-provider .provider-encounter-modal .modal-body { max-height: calc(100vh - 210px); padding: 24px; overflow-y: auto; background: #fff; color: #354F62; }
.clinical-provider .provider-encounter-modal .modal-body .form-group { margin: 0; }
.clinical-provider .provider-encounter-modal .modal-body .control-label { display: block; margin: 0 0 7px; color: #24465D; font-size: 13px; font-weight: 700; text-align: left; }
.clinical-provider .provider-encounter-modal .modal-body .form-control { width: 100%; min-height: 118px; border-color: #BBCDD5; border-radius: 7px; resize: vertical; box-shadow: none; }
.clinical-provider .provider-encounter-modal .modal-body .form-control:focus { border-color: #13808B; box-shadow: 0 0 0 3px rgba(19, 128, 139, .14); }
.provider-modal-help { display: block; margin-top: 7px; color: #657C8C; font-size: 12px; line-height: 1.4; }
.clinical-provider .provider-encounter-modal .modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 70px; padding: 14px 24px; border-top: 1px solid #D7E4E7; background: #FBFDFD; }
.clinical-provider .provider-encounter-modal .modal-footer:before,
.clinical-provider .provider-encounter-modal .modal-footer:after { display: none; }
.clinical-provider .provider-encounter-modal .modal-footer .btn { min-width: 118px; min-height: 42px; margin: 0; border-radius: 999px; }

@media (max-width: 1080px) {
    .provider-encounter-hero { grid-template-columns: minmax(0, 1fr); }
    .provider-encounter-hero-side { justify-content: space-between; }
    .provider-encounter-workspace { grid-template-columns: minmax(0, 1fr); }
    .provider-encounter-photos .encounter-photo-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (max-width: 767px) {
    .clinical-provider .provider-encounter-page { margin-top: 0; }
    .provider-encounter-hero { gap: 19px; padding: 21px 18px; }
    .provider-encounter-identity { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
    .provider-encounter-hero-icon { width: 42px; height: 42px; font-size: 18px; }
    .provider-encounter-identity h1 { font-size: 25px; }
    .provider-encounter-identity h1 + p { display: none; }
    .provider-encounter-hero-side { align-items: stretch; flex-direction: column; }
    .provider-encounter-meta { grid-template-columns: minmax(0, 1fr); }
    .provider-encounter-meta > div { border-top: 1px solid #D7E5E8; border-left: 0; }
    .provider-encounter-meta > div:first-child { border-top: 0; }
    .provider-encounter-back { width: 100%; }
    .provider-encounter-nav { justify-content: flex-start; }
    .provider-encounter-nav a { flex: 0 0 auto; }
    .provider-encounter-card-header { padding: 16px 17px; }
    .provider-encounter-summary-body > .row { grid-template-columns: minmax(0, 1fr); }
    .provider-encounter-summary-body > .row > [class*="col-md-"] { padding: 18px; }
    .provider-encounter-summary-body > .row > .col-md-6 + .col-md-6 { border-top: 1px solid #DAE5E8; border-left: 0; }
    .provider-encounter-photos .encounter-photo-grid { grid-template-columns: minmax(0, 1fr); }
    .provider-encounter-care .provider-encounter-card-body { padding: 18px; }
    .provider-encounter-care .care-plan > .row,
    .provider-encounter-care .care-plan > .row:nth-of-type(2) { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .clinical-provider .provider-encounter-actions { align-items: stretch; flex-direction: column; }
    .clinical-provider .provider-encounter-actions .btn { width: 100%; }
    .clinical-provider .provider-encounter-actions #completeCase { margin-left: 0; }
    .clinical-app.clinical-provider #buttons #nuclearbutton { width: 100%; margin: 0; }
    .clinical-provider .provider-encounter-final-actions .btn { flex: 1 1 0; }
    .provider-encounter-refund-action .btn { width: 100%; }
    .clinical-provider .provider-encounter-modal .modal-dialog { width: calc(100% - 24px); margin: 12px auto; }
    .clinical-provider .provider-encounter-modal .modal-header { min-height: 98px; padding: 16px 62px 15px 18px; }
    .provider-modal-heading { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
    .provider-modal-icon { width: 38px; height: 38px; }
    .provider-modal-heading .modal-title + p { display: none; }
    .clinical-provider .provider-encounter-modal .modal-footer { align-items: stretch; flex-direction: column-reverse; padding: 14px 18px; }
    .clinical-provider .provider-encounter-modal .modal-footer .btn { width: 100%; }
}

@media (max-width: 480px) {
    .profile-height-header, .profile-height-dialog .modal-body { padding-right: 20px; padding-left: 20px; }
    .profile-height-heading { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding-right: 22px; }
    .profile-height-icon { width: 40px; height: 40px; }
    .profile-height-fields { grid-template-columns: minmax(0, 1fr); }
    .profile-height-dialog .modal-footer { align-items: stretch; flex-direction: column-reverse; padding: 16px 20px; }
    .profile-height-dialog .modal-footer .btn { width: 100%; }
}

/* Patient care preferences. */
.clinical-patient .clinical-page-editpreferences { max-width: 1120px !important; padding-top: 34px !important; }
.preferences-heading { max-width: 780px; margin-bottom: 25px; }
.preferences-heading .clinical-eyebrow { margin-bottom: 7px; color: #117783; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.preferences-heading h1 { margin-bottom: 9px; color: #0B2E4F; font-size: 34px; letter-spacing: -.025em; }
.preferences-heading > p:last-child { margin: 0; color: #526B7E; line-height: 1.55; }
.clinical-patient .clinical-main > form.preferences-form { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.preferences-card { overflow: hidden; border: 1px solid #D5E2E6; border-radius: 12px; background: #fff; box-shadow: 0 14px 36px rgba(18, 55, 75, .07); }
.preferences-validation { margin: 22px 27px 0; }
.preferences-validation.validation-summary-valid, .preferences-validation:empty { display: none; }
.preferences-validation ul { margin: 7px 0 0; padding-left: 20px; }
.preferences-section { padding: 27px; border-bottom: 1px solid #DFE7EA; }
.preferences-section-heading { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 13px; align-items: start; margin-bottom: 23px; }
.preferences-section-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #D9EFF1; color: #087083; font-size: 14px; font-weight: 700; }
.preferences-section-heading h2 { margin: 1px 0 4px; color: #123E59; font-size: 20px; }
.preferences-section-heading p { margin: 0; color: #617687; font-size: 13px; line-height: 1.5; }
.preferences-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; margin-left: 49px; }
.preferences-field-full { grid-column: 1 / -1; }
.preferences-address-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(130px, .65fr) minmax(135px, .65fr); gap: 20px 22px; }
.preferences-field { min-width: 0; }
.preferences-field .control-label { display: block; margin: 0 0 7px; color: #193B55; font-size: 14px; font-weight: 700; text-align: left; }
.preferences-field .form-control { width: 100%; min-height: 48px; padding: 11px 13px; border-color: #BFCFD7; border-radius: 7px; background: #FCFEFE; }
.preferences-field .form-control:focus { border-color: #168A98; background: #fff; box-shadow: 0 0 0 3px rgba(22, 138, 152, .13); outline: 0; }
.preferences-field-help { display: block; margin-top: 6px; color: #677C8C; font-size: 12px; line-height: 1.45; }
.preferences-field .text-danger { display: block; margin-top: 6px; font-size: 13px; }
.preferences-check-card { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; padding: 15px 16px; border: 1px solid #CADDE1; border-radius: 8px; background: #fff; color: #294A60; cursor: pointer; }
.preferences-check-card:hover { border-color: #86B8BE; background: #F3FAFA; }
.preferences-check-control { display: flex; padding-top: 2px; }
.preferences-check-control input[type="checkbox"] { position: static; flex: 0 0 18px; margin: 0; }
.preferences-check-card strong, .preferences-check-card small { display: block; }
.preferences-check-card strong { margin-bottom: 3px; color: #173E58; font-size: 14px; }
.preferences-check-card small { color: #627788; font-size: 12px; font-weight: 400; line-height: 1.5; }
.preferences-main-check { max-width: 620px; margin-left: 49px; }
.preferences-confirmed-status { display: flex; align-items: center; gap: 9px; width: fit-content; margin: 15px 0 0 49px; padding: 10px 13px; border-radius: 7px; background: #EAF7F1; color: #226A4E; font-size: 13px; font-weight: 600; }
.preferences-confirmed-status .glyphicon { color: #258264; }
.preferences-confirmation { margin: 18px 0 0 49px; padding: 19px; border: 1px solid #BFD9DE; border-radius: 9px; background: #F2F9FA; }
.preferences-confirmation-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 17px; }
.preferences-confirmation-heading > .glyphicon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 8px; background: #D5ECEF; color: #087083; }
.preferences-confirmation-heading strong { display: block; margin-bottom: 3px; color: #173E58; font-size: 14px; }
.preferences-confirmation-heading p { margin: 0; color: #5B7484; font-size: 13px; line-height: 1.5; }
.preferences-confirmation-entry { display: grid; grid-template-columns: minmax(180px, 280px) auto; gap: 12px; align-items: end; margin-top: 17px; }
.preferences-confirmation-entry .btn { min-height: 48px; border-radius: 999px; }
.preferences-confirmation-status { display: block; margin-top: 7px; font-size: 13px; }
.preferences-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.preferences-help-button { flex: 0 0 auto; margin: 0 0 7px; padding: 0; border: 0; background: transparent; color: #087083; font-size: 12px; font-weight: 700; }
.preferences-help-button:hover, .preferences-help-button:focus { color: #075768; text-decoration: underline; }
.preferences-help-button .glyphicon { margin-right: 4px; }
.preferences-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 27px; background: #F7FAFA; }
.preferences-actions p { display: flex; align-items: center; gap: 8px; margin: 0; color: #5A7181; font-size: 13px; }
.preferences-actions p .glyphicon { color: #117783; }
.clinical-app .preferences-actions .btn { min-width: 190px; border-radius: 999px; }
.preferences-actions .btn span { margin-left: 7px; }

.clinical-app .preferences-provider-modal .modal-dialog { width: 1000px; }
.preferences-provider-modal .modal-content, .preferences-bio-modal .modal-content { overflow: hidden; border: 1px solid #CADCE1; border-radius: 13px; background: #fff; box-shadow: 0 24px 60px rgba(18, 55, 75, .2); }
.preferences-provider-header, .preferences-bio-modal .modal-header { position: relative; padding: 25px 72px 22px 27px; border-bottom: 1px solid #D5E5E8; background: linear-gradient(135deg, #E8F6F7, #F7FBFB); }
.preferences-provider-header .close, .preferences-bio-modal .modal-header .close { position: absolute; top: 12px; right: 14px; display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 1px solid #CBD9DE; border-radius: 50%; background: #fff; color: #315268; font-size: 25px; font-weight: 400; }
.preferences-provider-header .clinical-eyebrow, .preferences-bio-modal .clinical-eyebrow { margin: 0 0 5px; color: #117783; font-size: 12px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.preferences-provider-header .modal-title, .preferences-bio-modal .modal-title { margin: 0 0 5px; color: #123E59; font-size: 23px; }
.preferences-provider-header > p:last-child { margin: 0; color: #587283; font-size: 13px; line-height: 1.5; }
.clinical-app .preferences-provider-modal .modal-body { max-height: calc(100vh - 210px); padding: 24px 27px 27px; overflow-y: auto; background: #fff; }
.provider-preference-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-bottom: 23px; }
.provider-preference-options article { padding: 14px 15px; border: 1px solid #D8E4E7; border-radius: 8px; background: #F8FBFB; }
.provider-preference-options span { display: block; margin-bottom: 4px; color: #13808B; font-size: 11px; font-weight: 800; letter-spacing: .035em; text-transform: uppercase; }
.provider-preference-options strong { display: block; margin-bottom: 4px; color: #173E58; font-size: 13px; }
.provider-preference-options p { margin: 0; color: #627788; font-size: 12px; line-height: 1.45; }
.provider-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.preference-provider-card { display: flex; flex-direction: column; min-width: 0; padding: 18px; border: 1px solid #D4E2E6; border-radius: 10px; background: #fff; }
.preference-provider-card.is-unavailable { background: #F5F6F7; opacity: .78; }
.preference-provider-identity { display: flex; align-items: center; gap: 13px; }
.preference-provider-identity img { flex: 0 0 64px; width: 64px; height: 64px; border: 2px solid #E1E9EC; border-radius: 50%; object-fit: cover; background: #EDF1F3; }
.preference-provider-identity h3 { margin: 0 0 5px; color: #123E59; font-size: 17px; }
.provider-availability { display: inline-flex; align-items: center; gap: 6px; color: #237255; font-size: 12px; font-weight: 700; }
.provider-availability:before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #29966B; }
.provider-availability.is-away { color: #8A4A2B; }
.provider-availability.is-away:before { background: #C77A4A; }
.preference-provider-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 13px 0; border-top: 1px solid #E3EAED; border-bottom: 1px solid #E3EAED; }
.preference-provider-details div { min-width: 0; }
.preference-provider-details dt { margin-bottom: 2px; color: #6A7C8B; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; }
.preference-provider-details dd { margin: 0; color: #2D4D61; font-size: 12px; line-height: 1.4; }
.preference-provider-bio { margin: 13px 0; color: #597182; font-size: 12px; line-height: 1.5; }
.preference-provider-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 13px; }
.preference-provider-actions .provider-bio { padding: 0; border: 0; background: transparent; color: #087083; font-size: 12px; font-weight: 700; }
.preference-provider-actions .provider-bio:hover, .preference-provider-actions .provider-bio:focus { color: #075768; text-decoration: underline; }
.preference-provider-actions .btn { min-height: 40px; border-radius: 999px; }
.provider-empty-state { grid-column: 1 / -1; margin: 0; padding: 28px; border: 1px dashed #CBDCDF; border-radius: 9px; background: #F8FBFB; color: #5D7585; text-align: center; }
.preferences-provider-modal .modal-footer, .preferences-bio-modal .modal-footer { display: flex; align-items: center; justify-content: flex-end; padding: 16px 27px; border-top: 1px solid #D7E4E7; background: #F8FAFA; }
.preferences-provider-modal .modal-footer .btn, .preferences-bio-modal .modal-footer .btn { min-width: 120px; margin: 0; border-radius: 999px; }
.clinical-app .preferences-bio-modal .modal-dialog { width: 680px; }
.clinical-app .preferences-bio-modal .modal-body { max-height: 60vh; padding: 25px 27px; overflow-y: auto; background: #fff; color: #355164; font-size: 14px; line-height: 1.65; }
.preferences-bio-modal #provider-bio p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
    .clinical-patient .clinical-page-editpreferences { padding-top: 22px !important; }
    .preferences-heading h1 { font-size: 29px; }
    .preferences-section { padding: 23px 20px; }
    .preferences-field-grid, .preferences-address-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
    .preferences-field-grid, .preferences-main-check, .preferences-confirmation, .preferences-confirmed-status { margin-left: 0; }
    .preferences-field-full { grid-column: auto; }
    .preferences-confirmation-entry { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
    .preferences-confirmation-entry .btn { width: 100%; }
    .preferences-actions { align-items: stretch; flex-direction: column; padding: 18px 20px; }
    .clinical-app .preferences-actions .btn { width: 100%; }
    .provider-preference-options, .provider-card-grid { grid-template-columns: minmax(0, 1fr); }
    .clinical-app .preferences-provider-modal .modal-body { padding: 20px; }
}

@media (max-width: 480px) {
    .preferences-label-row { align-items: flex-start; flex-direction: column; gap: 0; }
    .preferences-provider-header, .preferences-bio-modal .modal-header { padding: 22px 62px 19px 20px; }
    .preference-provider-details { grid-template-columns: minmax(0, 1fr); }
    .preference-provider-actions { align-items: stretch; flex-direction: column; }
    .preference-provider-actions .btn { width: 100%; }
}

/* Patient medical history. */
.clinical-patient .clinical-page-editmedicalhistory { max-width: 1120px !important; padding-top: 34px !important; }
.medical-history-heading { max-width: 780px; margin-bottom: 25px; }
.medical-history-heading .clinical-eyebrow { margin-bottom: 7px; color: #117783; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.medical-history-heading h1 { margin-bottom: 9px; color: #0B2E4F; font-size: 34px; letter-spacing: -.025em; }
.medical-history-heading > p:last-child { margin: 0; color: #526B7E; line-height: 1.55; }
.clinical-patient .clinical-main > form.medical-history-form { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
.medical-history-shell { overflow: hidden; border: 1px solid #D5E2E6; border-radius: 12px; background: #fff; box-shadow: 0 14px 36px rgba(18, 55, 75, .07); }
.medical-history-validation { margin: 22px 27px 0; }
.medical-history-validation.validation-summary-valid, .medical-history-validation:empty { display: none; }
.medical-history-validation ul { margin: 7px 0 0; padding-left: 20px; }
.medical-history-section { padding: 27px; border-bottom: 1px solid #DFE7EA; }
.medical-history-section-heading { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 13px; align-items: start; margin-bottom: 23px; }
.medical-history-section-number { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #D9EFF1; color: #087083; font-size: 14px; font-weight: 700; }
.medical-history-section-heading h2 { margin: 1px 0 4px; color: #123E59; font-size: 20px; }
.medical-history-section-heading p { margin: 0; color: #617687; font-size: 13px; line-height: 1.5; }
.medical-record-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-left: 49px; }
.medical-record-card { display: flex; flex-direction: column; min-width: 0; min-height: 285px; padding: 18px; border: 1px solid #D5E2E6; border-radius: 10px; background: #FBFDFD; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.medical-record-card:hover { border-color: #AACCD1; box-shadow: 0 8px 20px rgba(18, 55, 75, .07); transform: translateY(-1px); }
.medical-record-card-heading { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 11px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #E1E9EC; }
.medical-record-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9px; background: #D9EFF1; color: #087083; font-size: 16px; }
.medical-record-card-heading h3 { margin: 0 0 2px; color: #173E58; font-size: 16px; line-height: 1.3; }
.medical-record-count { color: #667C8C; font-size: 12px; font-weight: 600; }
.medical-record-list { flex: 1 1 auto; margin: 15px 0; padding: 0; list-style: none; }
.medical-record-list > li { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 8px; align-items: start; margin-bottom: 9px; color: #355267; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.medical-record-list > li .glyphicon { margin-top: 3px; color: #278167; font-size: 10px; }
.medical-record-list > li.medical-empty-state { display: block; margin: 0; padding: 16px 8px; color: #758694; font-style: italic; text-align: center; }
.clinical-app .medical-record-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 42px; margin-top: auto; border-color: #B9D0D5; border-radius: 999px; background: #fff; color: #096E7C; font-weight: 700; }
.clinical-app .medical-record-action:hover, .clinical-app .medical-record-action:focus { border-color: #168A98; background: #EFF8F8; color: #075968; }
.medical-history-choice-group, .medical-history-work-fields { margin-left: 49px; }
.medical-history-choice-group .mcs-container { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; width: 100%; margin: 0; padding: 0; }
.medical-history-form .medical-history-chip { position: relative; display: inline-flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 46px; margin: 0; padding: 10px 38px 10px 14px; border: 1px solid #C8DADF; border-radius: 8px; background: #FBFDFD; color: #294A60; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: left; text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.medical-history-form .medical-history-chip:hover, .medical-history-form .medical-history-chip:focus { border-color: #83B7BE; background: #F3FAFA; color: #173E58; outline: 0; box-shadow: 0 0 0 3px rgba(22, 138, 152, .11); text-decoration: none; }
.medical-history-form .medical-history-chip.active { border-color: #168A98; background: #E9F6F7; color: #0B5966; box-shadow: 0 0 0 2px rgba(22, 138, 152, .1); }
.medical-history-form .medical-history-chip.active:after { content: "\2713"; position: absolute; top: 50%; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #168A98; color: #fff; font-size: 11px; font-weight: 700; transform: translateY(-50%); }
.medical-history-work-fields { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); gap: 22px; align-items: end; }
.medical-history-work-fields .medical-history-choice-group { margin-left: 0; }
.medical-history-work-fields .medical-history-choice-group .mcs-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.medical-history-field { min-width: 0; }
.medical-history-field > .control-label { display: block; margin: 0 0 8px; color: #193B55; font-size: 14px; font-weight: 700; text-align: left; }
.medical-history-field .form-control { width: 100%; min-height: 48px; padding: 11px 13px; border-color: #BFCFD7; border-radius: 7px; background: #FCFEFE; }
.medical-history-field .form-control:focus { border-color: #168A98; background: #fff; box-shadow: 0 0 0 3px rgba(22, 138, 152, .13); outline: 0; }
.medical-history-field .text-danger { display: block; margin-top: 6px; font-size: 13px; }
.medical-history-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 27px; background: #F7FAFA; }
.medical-history-actions p { display: flex; align-items: center; gap: 8px; margin: 0; color: #5A7181; font-size: 13px; }
.medical-history-actions p .glyphicon { color: #117783; }
.clinical-app .medical-history-actions .btn { min-width: 190px; border-radius: 999px; }
.medical-history-actions .btn .glyphicon { margin-left: 7px; }

.clinical-app .medical-history-modal .modal-dialog { width: 860px; max-width: calc(100% - 30px); }
.medical-history-modal .modal-content { overflow: hidden; border: 1px solid #CADCE1; border-radius: 13px; background: #fff; box-shadow: 0 24px 60px rgba(18, 55, 75, .2); }
.medical-history-modal-header { position: relative; padding: 24px 72px 21px 27px; border-bottom: 1px solid #D5E5E8; background: linear-gradient(135deg, #E8F6F7, #F7FBFB); }
.medical-history-modal-header .close { position: absolute; top: 12px; right: 14px; display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 1px solid #CBD9DE; border-radius: 50%; background: #fff; color: #315268; font-size: 25px; font-weight: 400; }
.medical-history-modal-header .clinical-eyebrow { margin: 0 0 5px; color: #117783; font-size: 12px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.medical-history-modal-header .modal-title { margin: 0 0 5px; color: #123E59; font-size: 23px; }
.medical-history-modal-header > p:last-child { margin: 0; color: #587283; font-size: 13px; line-height: 1.5; }
.clinical-app .medical-history-modal .modal-body { max-height: calc(100vh - 220px); padding: 24px 27px 27px; overflow-y: auto; background: #fff; }
.medical-history-modal-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.medical-modal-entry, .medical-modal-list-panel { min-width: 0; }
.medical-modal-list-panel { padding: 18px; border: 1px solid #D8E4E7; border-radius: 9px; background: #F8FBFB; }
.medical-modal-list-panel h3, .medical-remove-panel h3 { margin: 0 0 4px; color: #173E58; font-size: 16px; }
.medical-modal-list-panel > p { margin: 0 0 13px; color: #657B8B; font-size: 12px; line-height: 1.45; }
.medical-modal-field { margin-bottom: 17px; }
.medical-modal-field .control-label { display: block; margin: 0 0 7px; color: #193B55; font-size: 14px; font-weight: 700; text-align: left; }
.medical-modal-field .form-control { width: 100%; min-height: 48px; padding: 11px 13px; border-color: #BFCFD7; border-radius: 7px; background: #FCFEFE; }
.medical-modal-field .form-control:focus { border-color: #168A98; background: #fff; box-shadow: 0 0 0 3px rgba(22, 138, 152, .13); outline: 0; }
.medical-modal-field .form-control[readonly] { background: #F3F6F7; color: #536B7B; }
.medical-modal-field .text-danger { display: block; margin-top: 6px; font-size: 13px; }
.medical-field-help { display: block; margin-top: 6px; color: #677C8C; font-size: 12px; line-height: 1.45; }
.medical-modal-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 11px; align-items: start; margin: 0 0 18px; padding: 13px 14px; border: 1px solid #D1E0E4; border-radius: 8px; background: #F8FBFB; color: #294A60; cursor: pointer; }
.medical-modal-check input { position: static; margin: 3px 0 0; }
.medical-modal-check strong, .medical-modal-check small { display: block; }
.medical-modal-check strong { margin-bottom: 2px; color: #173E58; font-size: 13px; }
.medical-modal-check small { color: #687D8C; font-size: 12px; font-weight: 400; line-height: 1.4; }
.clinical-app .medical-modal-primary { min-width: 145px; border-radius: 999px; }
.medical-remove-panel { margin-top: 22px; padding: 17px; border: 1px solid #ECCACD; border-radius: 9px; background: #FFF8F8; }
.medical-remove-panel h3 { margin-bottom: 15px; color: #7B2630; }
.clinical-app .medical-remove-panel .btn-danger { border-radius: 999px; }
.medical-manage-list { max-height: 310px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.medical-manage-list > li { margin: 0 0 8px; }
.medical-manage-list > li:last-child { margin-bottom: 0; }
.medical-manage-list .medical-manage-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #D5E2E5; border-radius: 7px; background: #fff; color: #294A60; font: inherit; font-size: 13px; text-align: left; }
.medical-manage-list .medical-manage-row:hover, .medical-manage-list .medical-manage-row:focus { border-color: #C98C92; background: #FFF8F8; outline: 0; box-shadow: 0 0 0 3px rgba(161, 40, 54, .08); }
.medical-manage-list .medical-item-name { min-width: 0; overflow-wrap: anywhere; }
.medical-manage-list .remove, .medical-manage-list .removeallergy, .medical-manage-list .removesurgery { flex: 0 0 auto; color: #A12836; font-size: 12px; font-weight: 700; }
.medical-manage-list > li.medical-empty-state { padding: 24px 12px; border: 1px dashed #CADCDF; border-radius: 7px; color: #718493; font-size: 13px; font-style: italic; text-align: center; }
.medical-history-modal .modal-footer { display: flex; align-items: center; justify-content: flex-end; padding: 16px 27px; border-top: 1px solid #D7E4E7; background: #F8FAFA; }
.medical-history-modal .modal-footer:before, .medical-history-modal .modal-footer:after { display: none; }
.medical-history-modal .modal-footer .btn { min-width: 120px; margin: 0; border-radius: 999px; }

@media (max-width: 900px) {
    .medical-record-grid { grid-template-columns: minmax(0, 1fr); }
    .medical-record-card { min-height: 0; }
    .medical-history-work-fields { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 760px) {
    .clinical-patient .clinical-page-editmedicalhistory { padding-top: 22px !important; }
    .medical-history-heading h1 { font-size: 29px; }
    .medical-history-section { padding: 23px 20px; }
    .medical-record-grid, .medical-history-choice-group, .medical-history-work-fields { margin-left: 0; }
    .medical-history-choice-group .mcs-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .medical-history-actions { align-items: stretch; flex-direction: column; padding: 18px 20px; }
    .clinical-app .medical-history-actions .btn { width: 100%; }
    .medical-history-modal-grid { grid-template-columns: minmax(0, 1fr); }
    .clinical-app .medical-history-modal .modal-body { padding: 20px; }
}

@media (max-width: 480px) {
    .medical-history-choice-group .mcs-container, .medical-history-work-fields .medical-history-choice-group .mcs-container { grid-template-columns: minmax(0, 1fr); }
    .medical-history-modal-header { padding: 22px 62px 19px 20px; }
    .medical-history-modal .modal-footer { padding: 15px 20px; }
    .medical-history-modal .modal-footer .btn { width: 100%; }
}

/* Patient final review and checkout. */
.clinical-patient .clinical-page-reviewandpay { max-width: 1160px !important; padding-top: 34px !important; }
.finish-pay-heading { max-width: 780px; margin-bottom: 25px; }
.finish-pay-heading .clinical-eyebrow, .finish-pay-section-heading .clinical-eyebrow, .finish-pay-cases-heading .clinical-eyebrow, .finish-pay-checkout .clinical-eyebrow { display: block; margin: 0 0 5px; color: #117783; font-size: 12px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.finish-pay-heading h1 { margin: 0 0 9px; color: #0B2E4F; font-size: 34px; letter-spacing: -.025em; }
.finish-pay-heading > p:last-child { margin: 0; color: #526B7E; line-height: 1.55; }
.finish-pay-alert { margin: 0 0 18px; border-radius: 9px; }
.finish-pay-review { display: grid; gap: 18px; }
.finish-pay-card, .finish-pay-cases, .finish-pay-checkout { overflow: hidden; border: 1px solid #D5E2E6; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(18, 55, 75, .06); }
.finish-pay-card { padding: 0 27px 26px; }
.finish-pay-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 -27px 23px; padding: 19px 27px; border-bottom: 1px solid #DEE7EA; background: #F8FBFB; }
.finish-pay-section-heading:before, .finish-pay-section-heading:after, .finish-pay-cases-heading:before, .finish-pay-cases-heading:after { display: none; }
.finish-pay-section-heading > [class*="col-"] { float: none; width: auto; padding: 0; }
.finish-pay-section-heading > div:first-child { display: flex; align-items: center; gap: 13px; }
.finish-pay-section-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 9px; background: #D9EFF1; color: #087083; font-size: 15px; }
.finish-pay-section-heading h2, .finish-pay-cases-heading h2, .finish-pay-checkout h2 { margin: 0; color: #123E59; font-size: 20px; }
.finish-pay-section-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.clinical-app .finish-pay-section-actions .btn { min-width: 88px; min-height: 40px; margin: 0; border-radius: 999px; }

#editProfileReadOnlyDiv, #editPreferencesReadOnlyDiv, #editMedicalHistoryReadOnlyDiv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 0 34px; margin: 0; }
#editProfileReadOnlyDiv:before, #editProfileReadOnlyDiv:after,
#editPreferencesReadOnlyDiv:before, #editPreferencesReadOnlyDiv:after,
#editMedicalHistoryReadOnlyDiv:before, #editMedicalHistoryReadOnlyDiv:after,
#editProfileDiv:before, #editProfileDiv:after,
#editPreferencesDiv:before, #editPreferencesDiv:after,
#editMedicalHistoryDiv:before, #editMedicalHistoryDiv:after,
.finish-pay-medical-card > .row:not(.finish-pay-section-heading):before,
.finish-pay-medical-card > .row:not(.finish-pay-section-heading):after { display: none; }
#editMedicalHistoryReadOnlyDiv { grid-template-columns: minmax(0, 1fr); }
#editProfileReadOnlyDiv > [class*="col-"], #editPreferencesReadOnlyDiv > [class*="col-"], #editMedicalHistoryReadOnlyDiv > [class*="col-"] { float: none; width: 100%; padding: 0; }
#editProfileReadOnlyDiv > [class*="col-"] > div, #editPreferencesReadOnlyDiv > [class*="col-"] > div, #editMedicalHistoryReadOnlyDiv > [class*="col-"] > div { min-height: 54px; padding: 10px 2px; border-bottom: 1px solid #E7EDEF; }
#editProfileReadOnlyDiv .control-label, #editPreferencesReadOnlyDiv .control-label, #editMedicalHistoryReadOnlyDiv .control-label { display: block; margin: 0 0 3px; color: #687C8B; font-size: 11px; font-weight: 700; letter-spacing: .025em; line-height: 1.35; text-transform: uppercase; }
#editProfileReadOnlyDiv br, #editPreferencesReadOnlyDiv br, #editMedicalHistoryReadOnlyDiv br { display: none; }
#editProfileReadOnlyDiv .review, #editPreferencesReadOnlyDiv .review, #editMedicalHistoryReadOnlyDiv .review { display: block; color: #26465B; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#editProfileDiv:not(.hidden), #editPreferencesDiv:not(.hidden), #editMedicalHistoryDiv:not(.hidden) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px 34px; margin: 0; }
#editMedicalHistoryDiv:not(.hidden) { grid-template-columns: minmax(0, 1fr); }
#editProfileDiv > [class*="col-"], #editPreferencesDiv > [class*="col-"], #editMedicalHistoryDiv > [class*="col-"] { float: none; width: 100%; padding: 0; }
#editProfileDiv .control-label, #editPreferencesDiv .control-label, #editMedicalHistoryDiv .control-label { display: block; margin: 13px 0 6px; color: #193B55; font-size: 13px; font-weight: 700; text-align: left; }
#editProfileDiv [class*="col-"] > div:first-child .control-label, #editPreferencesDiv [class*="col-"] > div:first-child .control-label, #editMedicalHistoryDiv [class*="col-"] > div:first-child .control-label { margin-top: 0; }
#editProfileDiv .form-control, #editPreferencesDiv .form-control, #editMedicalHistoryDiv .form-control { width: 100%; min-height: 46px; border-color: #BFCFD7; border-radius: 7px; background: #FCFEFE; }
#editProfileDiv .form-control:focus, #editPreferencesDiv .form-control:focus, #editMedicalHistoryDiv .form-control:focus { border-color: #168A98; background: #fff; box-shadow: 0 0 0 3px rgba(22, 138, 152, .13); outline: 0; }
#editPreferencesDiv .checkbox { margin: 15px 0 0; padding: 13px 14px; border: 1px solid #D4E2E6; border-radius: 8px; background: #F8FBFB; }
#editPreferencesDiv .checkbox .control-label { margin: 0; font-weight: 600; }

.finish-pay-medical-card > .row:not(.finish-pay-section-heading):not(#editMedicalHistoryReadOnlyDiv):not(#editMedicalHistoryDiv) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin: 18px 0 0; }
.finish-pay-medical-card > .row:not(.finish-pay-section-heading) > [class*="col-"] { float: none; width: 100%; padding: 0; }
.finish-pay-medical-card .panel { display: flex; flex-direction: column; height: 100%; margin: 0; overflow: hidden; border-color: #D5E2E6; border-radius: 9px; background: #FBFDFD; box-shadow: none; }
.finish-pay-medical-card .panel-heading { padding: 13px 15px; border-color: #DCE6E9; background: #F3F8F8; }
.finish-pay-medical-card .panel-title { color: #173E58; font-size: 14px; font-weight: 700; }
.finish-pay-medical-card .panel-body { flex: 1 1 auto; min-height: 80px; padding: 14px 17px; color: #355267; font-size: 13px; }
.finish-pay-medical-card .panel-body ul { height: auto !important; margin: 0; padding-left: 18px; }
.finish-pay-medical-card .panel-footer { display: flex; align-items: center; min-height: 45px; padding: 0; border-color: #DCE6E9; background: #fff; }
.finish-pay-medical-card .panel-footer:before, .finish-pay-medical-card .panel-footer:after { display: none; }
.finish-pay-medical-card .panel-button { float: none !important; width: 50%; padding: 0; text-align: center; }
.finish-pay-medical-card .panel-button + .panel-button { border-left: 1px solid #DCE6E9; }
.finish-pay-medical-card .panel-button a { display: block; padding: 11px 8px; color: #087083; font-size: 12px; font-weight: 700; text-decoration: none; }
.finish-pay-medical-card .panel-button a:hover, .finish-pay-medical-card .panel-button a:focus { background: #EFF8F8; color: #075768; }

.finish-pay-cases { margin-top: 22px; padding: 0 27px 27px; }
.finish-pay-cases-heading { margin: 0 -27px 20px; padding: 21px 27px 18px; border-bottom: 1px solid #DEE7EA; background: #F8FBFB; }
.finish-pay-cases-heading > [class*="col-"] { float: none; width: 100%; padding: 0; }
.finish-pay-case-card { position: relative; display: block; margin-top: 18px; padding: 26px 24px 24px; border: 1px solid #D7E3E7; border-radius: 10px; background: #fff; }
.finish-pay-case-card:first-of-type { margin-top: 0; }
.finish-pay-case-card:after { content: ''; display: table; clear: both; }
.finish-pay-case-actions { position: relative; z-index: 2; float: none !important; width: 100%; margin: 0 0 18px; padding: 0; text-align: right; }
.clinical-app .finish-pay-case-actions .btn { min-height: 40px; border-radius: 999px; }
.finish-pay-case-card > br, .finish-pay-case-card > hr { display: none; }
.finish-pay-case-card #editCaseReadOnly { color: #355267; }
.finish-pay-case-card #editCaseReadOnly:after { content: ''; display: table; clear: both; }
.finish-pay-case-card #editCaseReadOnly > .row, .finish-pay-case-card > .row { margin-right: 0; margin-left: 0; padding: 18px 0; border-top: 1px solid #E4EBED; }
.finish-pay-case-card #editCaseReadOnly > .row:first-child { border-top: 0; padding-top: 0; }
.finish-pay-case-card .control-label { color: #647A89; font-size: 12px; font-weight: 700; line-height: 1.4; }
.finish-pay-case-card .review { color: #29495E; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.finish-pay-photo-section { margin-top: 19px; padding-top: 21px; border-top: 1px solid #E1E9EB; }
.finish-pay-photo-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.finish-pay-photo-heading > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.finish-pay-photo-heading-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 9px; background: #DCEFF1; color: #087083; font-size: 16px; }
.finish-pay-photo-heading h3 { margin: 0 0 3px; color: #173E58; font-size: 17px; font-weight: 700; }
.finish-pay-photo-heading p { margin: 0; color: #617687; font-size: 13px; line-height: 1.45; }
.clinical-app .finish-pay-photo-heading .addPhoto { flex: 0 0 auto; min-width: 126px; min-height: 42px; margin: 0; border-radius: 999px; }
.finish-pay-photo-heading .addPhoto .glyphicon { margin-right: 6px; }
.finish-pay-photo-error { margin: 0 0 16px; border-radius: 8px; font-size: 13px; }
.finish-pay-photo-grid { display: grid !important; grid-template-columns: repeat(auto-fill, 240px) !important; gap: 16px; margin: 0; }
.finish-pay-photo-card { width: 240px; max-width: 100%; min-width: 0; margin: 0; overflow: hidden; border: 1px solid #D5E2E6; border-radius: 10px; background: #fff; box-shadow: 0 7px 18px rgba(18, 55, 75, .06); }
.finish-pay-photo-media { display: flex; align-items: center; justify-content: center; width: 100%; height: 260px; overflow: hidden; background: #EFF4F5; }
.clinical-app .finish-pay-photo-media .thumbnail { display: block; width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 260px !important; margin: 0; padding: 0; border: 0; border-radius: 0; object-fit: contain; }
.finish-pay-photo-video { display: block; width: 100%; height: 100%; background: #183447; object-fit: contain; }
.finish-pay-photo-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 9px 11px; border-top: 1px solid #DCE6E9; }
.finish-pay-photo-card-actions > span { color: #526E7F; font-size: 12px; font-weight: 700; }
.finish-pay-photo-card-actions > span .glyphicon { margin-right: 5px; color: #168A98; }
.clinical-app .finish-pay-photo-card-actions .photo-delete { min-width: 90px; min-height: 36px; margin: 0; padding: 7px 12px; border-color: #E1B9BE; border-radius: 999px; color: #A12836; }
.finish-pay-photo-card-actions .photo-delete .glyphicon { margin-right: 5px; }
.finish-pay-photo-empty { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 150px; padding: 24px; border: 1px dashed #B9CFD4; border-radius: 9px; background: #F8FBFB; color: #647B8A; text-align: center; }
.finish-pay-photo-empty > .glyphicon { margin-bottom: 9px; color: #6A9CA4; font-size: 24px; }
.finish-pay-photo-empty p { margin: 0; font-size: 13px; }

.finish-pay-checkout { margin-top: 22px; }
.finish-pay-checkout-summary { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 24px 27px; border-bottom: 1px solid #D9E6E9; background: linear-gradient(135deg, #E8F6F7, #F8FBFB); }
.finish-pay-checkout-summary .finish-pay-section-icon { width: 42px; height: 42px; }
.finish-pay-checkout-summary h2 { margin-bottom: 4px; font-size: 22px; }
.finish-pay-checkout-summary p { margin: 0; color: #5A7383; font-size: 13px; }
.finish-pay-total { min-width: 155px; padding-left: 26px; border-left: 1px solid #C9DDE1; text-align: right; }
.finish-pay-total span, .finish-pay-total strong { display: block; }
.finish-pay-total span { margin-bottom: 3px; color: #5C7484; font-size: 12px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
.finish-pay-total strong { color: #0B3C59; font-size: 28px; line-height: 1.15; }
.finish-pay-payment-note { display: flex; align-items: flex-start; gap: 12px; margin: 22px 27px 0; padding: 15px 16px; border: 1px solid #D4E2E6; border-radius: 8px; background: #F8FBFB; color: #526D7E; }
.finish-pay-payment-note > .glyphicon { margin-top: 2px; color: #117783; font-size: 16px; }
.finish-pay-payment-note p { margin: 0; font-size: 13px; line-height: 1.55; }
.finish-pay-payment-progress { display: none; height: 8px; margin: 18px 27px 0; border-radius: 999px; background: #DDE9EB; box-shadow: none; }
.finish-pay-payment-progress .progress-bar { background-color: #168A98; }
.finish-pay-payment-error { min-height: 20px; margin: 10px 27px 0; font-size: 13px; }
.finish-pay-checkout-actions { display: flex; align-items: center; justify-content: flex-end; gap: 11px; padding: 18px 27px 21px; }
.clinical-app .finish-pay-checkout-actions .btn { min-width: 170px; min-height: 46px; margin: 0; border-radius: 999px; }
.finish-pay-checkout-actions #finish .glyphicon { margin-left: 7px; }
.finish-pay-checkout-actions #finish[disabled] { cursor: wait; opacity: .72; }

.clinical-app .finish-pay-modal .modal-dialog { width: 780px; max-width: calc(100% - 30px); }
.finish-pay-modal .modal-content { overflow: hidden; border: 1px solid #CADCE1; border-radius: 13px; background: #fff; box-shadow: 0 24px 60px rgba(18, 55, 75, .2); }
.finish-pay-modal .modal-header { position: relative; padding: 23px 66px 20px 27px; border-bottom: 1px solid #D5E5E8; background: linear-gradient(135deg, #E8F6F7, #F7FBFB); }
.finish-pay-modal .modal-header .close { position: absolute; top: 12px; right: 14px; display: inline-flex; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 42px; padding: 0; border: 1px solid #CBD9DE; border-radius: 50%; background: #fff; color: #315268; font-size: 24px; font-weight: 400; }
.finish-pay-modal .modal-title { margin: 0; color: #123E59; font-size: 22px; }
.clinical-app .finish-pay-modal .modal-body { max-height: calc(100vh - 205px); min-height: 0; padding: 24px 27px; overflow-y: auto; background: #fff; }
.finish-pay-modal .modal-body > .row { margin-right: 0; margin-left: 0; }
.finish-pay-modal .modal-body .form-group { margin: 0 0 16px; }
.finish-pay-modal .modal-body [class*="col-"] { min-width: 0; }
.finish-pay-modal .modal-body .control-label { display: block; margin: 0 0 6px; color: #193B55; font-size: 13px; font-weight: 700; text-align: left; }
.finish-pay-modal .modal-body .form-control { width: 100%; min-height: 46px; border-color: #BFCFD7; border-radius: 7px; background: #FCFEFE; }
.finish-pay-modal .modal-body .form-control:focus { border-color: #168A98; background: #fff; box-shadow: 0 0 0 3px rgba(22, 138, 152, .13); outline: 0; }
.finish-pay-modal .modal-body ul { margin: 8px 0 18px; padding: 0; list-style: none; }
.finish-pay-modal .modal-body ul > li { margin-bottom: 7px; padding: 10px 12px; border: 1px solid #D8E4E7; border-radius: 7px; background: #F8FBFB; color: #355267; }
.finish-pay-modal .modal-footer { display: flex; align-items: center; justify-content: flex-end; padding: 16px 27px; border-top: 1px solid #D7E4E7; background: #F8FAFA; }
.finish-pay-modal .modal-footer:before, .finish-pay-modal .modal-footer:after { display: none; }
.finish-pay-modal .modal-footer .btn { min-width: 120px; margin: 0; border-radius: 999px; }
.clinical-app .finish-pay-photo-modal .modal-dialog { width: 760px; }
.finish-pay-photo-modal #uploadPhotoDiv { float: none; width: 100%; padding: 0; }
.finish-pay-photo-modal-title { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; align-items: start; }
.finish-pay-photo-modal-title .finish-pay-section-icon { width: 42px; height: 42px; }
.finish-pay-photo-modal-title .clinical-eyebrow { display: block; margin: 0 0 3px; color: #117783; font-size: 11px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.finish-pay-photo-modal-title .modal-title { margin-bottom: 3px; }
.finish-pay-photo-modal-title p { margin: 0; color: #587283; font-size: 13px; line-height: 1.45; }
.clinical-app .finish-pay-photo-modal .modal-body { padding: 24px 27px; }
.clinical-app .finish-pay-photo-modal .finish-pay-photo-dropzone { min-height: 250px; margin: 0; padding: 0; overflow: hidden; border: 2px dashed #91BBC1; border-radius: 10px; background: #F5FAFA; text-align: center; }
.clinical-app .finish-pay-photo-modal .finish-pay-photo-dropzone.dz-drag-hover { border-color: #087083; background: #EAF7F7; }
.clinical-app .finish-pay-photo-dropzone .dz-default.dz-message { position: static; display: flex; align-items: center; justify-content: center; flex-direction: column; width: auto; height: auto; min-height: 246px; margin: 0; padding: 29px 22px; background: none !important; opacity: 1; }
.clinical-app .finish-pay-photo-dropzone.dz-started .dz-default.dz-message { display: none; }
.clinical-app .finish-pay-photo-dropzone .finish-pay-upload-icon { display: inline-flex !important; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 14px; border-radius: 15px; background: #D9EFF1; color: #087083; font-size: 24px; }
.clinical-app .finish-pay-photo-dropzone .finish-pay-upload-icon .glyphicon { display: inline-block !important; }
.clinical-app .finish-pay-photo-dropzone .dz-message strong { display: block; margin-bottom: 5px; color: #123E59; font-size: 18px; }
.clinical-app .finish-pay-photo-dropzone .dz-message p { margin: 0 0 10px; color: #526F80; font-size: 14px; line-height: 1.5; }
.clinical-app .finish-pay-photo-dropzone .dz-message small { color: #6D818F; font-size: 12px; line-height: 1.45; }
.clinical-app .finish-pay-photo-dropzone .dz-preview { width: 190px; max-width: calc(100% - 24px); margin: 18px 9px; padding: 10px; border-color: #CADCE1; border-radius: 8px; background: #fff; box-shadow: 0 7px 18px rgba(18, 55, 75, .08); }
.clinical-app .finish-pay-photo-dropzone .dz-preview .dz-details { width: 100%; height: 165px; margin-bottom: 26px; background: #EDF3F4; }
.clinical-app .finish-pay-photo-dropzone .dz-preview .dz-details img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.finish-pay-photo-modal .modal-footer { justify-content: space-between; gap: 18px; }
.finish-pay-photo-modal .modal-footer p { display: flex; align-items: center; gap: 7px; margin: 0; color: #607687; font-size: 12px; }
.finish-pay-photo-modal .modal-footer p .glyphicon { color: #168A98; }

@media (max-width: 760px) {
    .clinical-patient .clinical-page-reviewandpay { padding-top: 22px !important; }
    .finish-pay-heading h1 { font-size: 29px; }
    .finish-pay-card { padding: 0 20px 22px; }
    .finish-pay-section-heading { align-items: flex-start; margin-right: -20px; margin-left: -20px; padding: 18px 20px; }
    #editProfileReadOnlyDiv, #editPreferencesReadOnlyDiv, #editProfileDiv:not(.hidden), #editPreferencesDiv:not(.hidden) { grid-template-columns: minmax(0, 1fr); }
    .finish-pay-medical-card > .row:not(.finish-pay-section-heading):not(#editMedicalHistoryReadOnlyDiv):not(#editMedicalHistoryDiv) { grid-template-columns: minmax(0, 1fr); }
    .finish-pay-cases { padding-right: 20px; padding-left: 20px; }
    .finish-pay-cases-heading { margin-right: -20px; margin-left: -20px; padding-right: 20px; padding-left: 20px; }
    .finish-pay-checkout-summary { grid-template-columns: 42px minmax(0, 1fr); padding: 22px 20px; }
    .finish-pay-total { grid-column: 1 / -1; padding: 16px 0 0; border-top: 1px solid #C9DDE1; border-left: 0; text-align: left; }
    .finish-pay-payment-note, .finish-pay-payment-progress, .finish-pay-payment-error { margin-right: 20px; margin-left: 20px; }
    .finish-pay-checkout-actions { align-items: stretch; flex-direction: column-reverse; padding: 15px 20px 20px; }
    .clinical-app .finish-pay-checkout-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
    .finish-pay-section-heading { flex-direction: column; }
    .finish-pay-section-actions { width: 100%; justify-content: stretch; }
    .clinical-app .finish-pay-section-actions .btn { flex: 1 1 auto; }
    .finish-pay-case-card { padding: 20px 16px; }
    .finish-pay-case-actions { text-align: left; }
    .clinical-app .finish-pay-case-actions .btn { width: 100%; }
    .finish-pay-checkout-summary { grid-template-columns: minmax(0, 1fr); }
    .finish-pay-checkout-summary > .finish-pay-section-icon { display: none; }
    .finish-pay-modal .modal-header { padding: 21px 60px 18px 20px; }
    .clinical-app .finish-pay-modal .modal-body { padding: 20px; }
    .finish-pay-modal .modal-footer { padding: 15px 20px; }
    .finish-pay-modal .modal-footer .btn { width: 100%; }
    .finish-pay-photo-heading { align-items: stretch; flex-direction: column; }
    .clinical-app .finish-pay-photo-heading .addPhoto { width: 100%; }
    .finish-pay-photo-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 240px)) !important; }
    .finish-pay-photo-modal .modal-footer { align-items: stretch; flex-direction: column; }
    .finish-pay-photo-modal .modal-footer p { justify-content: center; }
}

/* Patient visit entry. */
.clinical-patient .clinical-page-startvisit { max-width: 1120px !important; padding-top: 34px !important; }
.start-visit-heading { max-width: 720px; margin-bottom: 25px; }
.start-visit-heading .clinical-eyebrow { margin-bottom: 7px; color: #117783; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.start-visit-heading h1 { margin-bottom: 9px; color: #0B2E4F; font-size: 34px; letter-spacing: -.025em; }
.start-visit-heading > p:last-child { margin: 0; color: #526B7E; }
.start-visit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.start-visit-form { min-width: 0; }
.start-visit-card { overflow: hidden; border: 1px solid #D5E2E6; border-radius: 12px; background: #fff; box-shadow: 0 14px 36px rgba(18, 55, 75, .07); }
.start-visit-validation { margin: 22px 24px 0; }
.start-visit-validation:empty, .start-visit-validation.validation-summary-valid { display: none; }
.start-visit-section { padding: 25px 27px; border-bottom: 1px solid #DFE7EA; }
.start-visit-section-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 13px; align-items: start; margin-bottom: 20px; }
.start-visit-section-number { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #D9EFF1; color: #087083; font-size: 14px; font-weight: 700; }
.start-visit-section-heading h2 { margin: 1px 0 4px; color: #123E59; font-size: 19px; }
.start-visit-section-heading p { margin: 0; color: #617687; font-size: 13px; line-height: 1.45; }
.start-visit-field { max-width: 430px; margin-left: 47px; }
.start-visit-field .control-label, .start-visit-ssn .control-label { display: block; margin-bottom: 7px; color: #193B55; font-size: 14px; font-weight: 700; text-align: left; }
.start-visit-field .form-control, .start-visit-ssn .form-control { width: 100%; min-height: 48px; border-color: #BFCFD7; border-radius: 6px; }
.start-visit-help { display: block; margin-top: 7px; color: #677C8C; font-size: 12px; line-height: 1.45; }
.start-visit-field .text-danger, .start-visit-ssn .text-danger { display: block; margin-top: 7px; font-size: 13px; }
.start-visit-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 0 0 47px; padding: 15px 16px; border: 1px solid #D4E1E5; border-radius: 8px; background: #FAFCFC; color: #294A60; cursor: pointer; }
.start-visit-check:hover { border-color: #8AB9BF; background: #F2F9F9; }
.start-visit-check-control { display: flex; padding-top: 2px; }
.start-visit-check-control input[type="checkbox"] { position: static; flex: 0 0 18px; margin: 0; }
.start-visit-check strong, .start-visit-check small { display: block; }
.start-visit-check strong { margin-bottom: 3px; color: #173E58; font-size: 14px; }
.start-visit-check small { color: #627788; font-size: 12px; font-weight: 400; line-height: 1.5; }
.start-visit-followup-check.is-selected { border-color: #7DB7BE; background: #EDF8F8; box-shadow: 0 0 0 2px #DDF0F1; }
.start-visit-error { display: block; margin: 7px 0 0 47px; font-size: 13px; }
.start-visit-minor-note { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 12px 47px; padding: 12px 14px; border: 1px solid #E4CD94; border-radius: 7px; background: #FFF8E7; color: #6F5316; font-size: 13px; line-height: 1.45; }
.start-visit-minor-note + .start-visit-check { margin-top: 0; }
.start-visit-ssn { max-width: 430px; margin: 17px 0 0 47px; padding: 17px; border-left: 3px solid #5CA4AD; background: #F4F9F9; }
.start-visit-ssn .start-visit-help { margin: -1px 0 11px; }
.start-visit-notice { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 17px 27px; background: #F6F8F9; color: #596F7F; font-size: 12px; line-height: 1.5; }
.start-visit-notice .glyphicon { margin-top: 2px; color: #4C8290; }
.start-visit-notice p { margin: 0; }
.start-visit-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 27px; border-top: 1px solid #DFE7EA; }
.start-visit-actions .btn { min-width: 150px; border-radius: 999px; }
.start-visit-aside { position: sticky; top: 20px; padding: 27px 24px; border: 1px solid #CFE1E5; border-radius: 12px; background: #F1F8F8; }
.start-visit-aside-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; margin-bottom: 22px; border-radius: 12px; background: #D5EDEF; color: #086579; font-size: 22px; }
.start-visit-aside .clinical-eyebrow { margin-bottom: 7px; color: #147682; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.start-visit-aside h2 { margin: 0; color: #0B3859; font-size: 23px; }
.start-visit-next-steps { margin: 24px 0 0; padding: 0; list-style: none; }
.start-visit-next-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; margin: 0 0 17px; }
.start-visit-next-steps li > span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid #9AC7CC; border-radius: 50%; color: #0D7482; font-size: 12px; font-weight: 700; }
.start-visit-next-steps strong, .start-visit-next-steps small { display: block; }
.start-visit-next-steps strong { margin-bottom: 2px; color: #244B60; font-size: 13px; }
.start-visit-next-steps small { color: #5E7686; font-size: 12px; line-height: 1.45; }
.start-visit-security { display: flex; align-items: flex-start; gap: 10px; margin-top: 23px; padding-top: 19px; border-top: 1px solid #C9E0E3; color: #31586A; }
.start-visit-security > .glyphicon { margin-top: 2px; color: #087085; }
.start-visit-security strong, .start-visit-security small { display: block; }
.start-visit-security strong { font-size: 12px; }
.start-visit-security small { margin-top: 2px; color: #627989; font-size: 11px; }

/* HIPAA notice and consent. */
.clinical-patient .clinical-page-hipaa { max-width: 1120px !important; padding-top: 34px !important; }
.hipaa-heading { max-width: 760px; margin-bottom: 25px; }
.hipaa-heading .clinical-eyebrow { margin-bottom: 7px; color: #117783; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.hipaa-heading h1 { margin-bottom: 9px; color: #0B2E4F; font-size: 34px; letter-spacing: -.025em; }
.hipaa-heading > p:last-child { margin: 0; color: #526B7E; }
.hipaa-layout { display: grid; gap: 24px; }
.hipaa-document-card, .hipaa-consent-card { overflow: hidden; border: 1px solid #D5E2E6; border-radius: 12px; background: #fff; box-shadow: 0 14px 36px rgba(18, 55, 75, .07); }
.hipaa-document-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 27px 18px; }
.hipaa-document-heading .clinical-eyebrow, .hipaa-consent-card > .clinical-eyebrow { margin: 0 0 6px; color: #117783; font-size: 12px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.hipaa-document-heading h2, .hipaa-consent-card h2 { margin: 0; color: #123E59; font-size: 22px; }
.hipaa-document-badge { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; background: #E9F5F5; color: #0A6C7B; font-size: 12px; font-weight: 700; }
.hipaa-document-instruction { margin: 0; padding: 0 27px 19px; color: #617687; font-size: 13px; }
.clinical-app #notice.hipaa-document { width: 100%; height: 520px; padding: 28px 34px; overflow-x: hidden; overflow-y: auto; border: 0; border-top: 1px solid #DFE7EA; border-bottom: 1px solid #DFE7EA; background: #FCFDFD; color: #2C4659; scrollbar-color: #8CB3BA #EDF3F4; scrollbar-width: thin; }
.hipaa-document .content, .hipaa-document .field, .hipaa-document .field-items, .hipaa-document .field-item { width: auto; max-width: none; margin: 0; padding: 0; }
.hipaa-document p, .hipaa-document li, .hipaa-document span { font-family: 'Segoe UI', Arial, sans-serif !important; color: #2C4659 !important; font-size: 14px !important; line-height: 1.65 !important; }
.hipaa-document p { margin: 0 0 12px !important; text-align: left !important; text-indent: 0 !important; }
.hipaa-document h1, .hipaa-document h2, .hipaa-document h3, .hipaa-document h4, .hipaa-document h5 { margin: 24px 0 10px; color: #123E59; font-family: 'Segoe UI', Arial, sans-serif; line-height: 1.35; text-align: left !important; }
.hipaa-document h3 { font-size: 18px; }
.hipaa-document ol, .hipaa-document ul { margin: 0 0 18px; padding-left: 24px; }
.hipaa-document li { margin-bottom: 9px; }
.hipaa-document o\:p { display: none; }
.hipaa-document-footer { padding: 15px 27px 18px; background: #F7FAFA; }
.hipaa-read-status { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #506D7D; font-size: 13px; font-weight: 600; }
.hipaa-read-status .glyphicon { color: #14808C; }
.hipaa-read-status.is-complete { color: #217443; }
.hipaa-read-status.is-complete .glyphicon { color: #218A43; }
.hipaa-read-track { height: 5px; overflow: hidden; border-radius: 999px; background: #DDE8EA; }
.hipaa-read-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #14808C; transition: width .15s ease; }
.hipaa-consent-card { padding: 27px; }
.hipaa-consent-intro { max-width: 880px; margin: 8px 0 22px; color: #526B7E; line-height: 1.6; }
.hipaa-validation { margin: 0 0 20px; }
.hipaa-validation:empty, .hipaa-validation.validation-summary-valid { display: none; }
.hipaa-care-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 23px; }
.hipaa-care-facts article { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; border: 1px solid #DCE6E9; border-radius: 8px; background: #F9FBFB; }
.hipaa-care-facts article > .glyphicon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: #DCEFF1; color: #087083; }
.hipaa-care-facts strong { display: block; margin-bottom: 3px; color: #173E58; font-size: 14px; }
.hipaa-care-facts p { margin: 0; color: #617687; font-size: 12px; line-height: 1.5; }
.hipaa-signature-grid { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 16px; margin-bottom: 20px; padding: 20px; border: 1px solid #DCE6E9; border-radius: 8px; }
.hipaa-signature-grid .control-label { display: block; margin-bottom: 7px; color: #193B55; font-size: 13px; font-weight: 700; text-align: left; }
.hipaa-signature-grid .form-control { width: 100%; min-height: 45px; border-color: #C7D5DB; background: #F5F8F9; }
.hipaa-consent-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0; padding: 17px 18px; border: 1px solid #B9D4D8; border-radius: 9px; background: #F2F9F9; cursor: pointer; }
.hipaa-consent-check.is-locked { border-color: #DDE4E7; background: #F7F8F9; cursor: not-allowed; opacity: .78; }
.hipaa-consent-check.is-selected { border-color: #5EABB4; background: #EAF7F7; box-shadow: 0 0 0 2px #D9EFF1; }
.hipaa-consent-control { display: flex; padding-top: 2px; }
.hipaa-consent-control input[type="checkbox"] { position: static; flex: 0 0 18px; margin: 0; }
.hipaa-consent-check strong, .hipaa-consent-check small { display: block; }
.hipaa-consent-check strong { margin-bottom: 4px; color: #173E58; font-size: 14px; line-height: 1.45; }
.hipaa-consent-check small { color: #627788; font-size: 12px; font-weight: 400; line-height: 1.45; }
.hipaa-error { display: block; margin: 8px 0 0 36px; font-size: 13px; }
.hipaa-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px -27px -27px; padding: 19px 27px; border-top: 1px solid #DFE7EA; background: #FBFCFC; }
.hipaa-actions .btn { min-width: 170px; border-radius: 999px; }

@media (max-width: 700px) {
    .clinical-patient .clinical-page-hipaa { padding-top: 22px !important; }
    .hipaa-heading h1 { font-size: 29px; }
    .hipaa-document-heading { padding: 21px 20px 15px; }
    .hipaa-document-instruction { padding: 0 20px 16px; }
    .clinical-app #notice.hipaa-document { height: 430px; padding: 22px 20px; }
    .hipaa-document-footer { padding: 14px 20px 17px; }
    .hipaa-document-badge { display: none; }
    .hipaa-consent-card { padding: 22px 20px; }
    .hipaa-care-facts, .hipaa-signature-grid { grid-template-columns: 1fr; }
    .hipaa-actions { margin: 22px -20px -22px; padding: 17px 20px; }
}

@media (max-width: 480px) {
    .hipaa-care-facts { grid-template-columns: 1fr; }
    .hipaa-actions { align-items: stretch; flex-direction: column-reverse; }
    .hipaa-actions .btn { width: 100%; }
}

/* Public account and contact forms. */
.clinical-app.clinical-account { background: linear-gradient(180deg, #F5FAFB 0, var(--canvas) 360px); }
.clinical-app.clinical-account #container { max-width: 1180px; padding-top: 42px; }
.auth-page { width: 100%; max-width: 1080px; margin: 0 auto; }
.auth-login-page { max-width: 1020px; }
.auth-shell { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); overflow: hidden; border: 1px solid #D5E2E6; border-radius: 14px; background: var(--surface); box-shadow: 0 20px 50px rgba(18, 55, 75, .09); }
.auth-shell-wide { grid-template-columns: minmax(310px, .7fr) minmax(0, 1.45fr); }
.auth-card { min-width: 0; padding: 38px 42px 34px; }
.auth-heading { margin-bottom: 28px; }
.auth-heading .clinical-eyebrow, .contact-heading .clinical-eyebrow, .auth-aside .clinical-eyebrow { margin-bottom: 8px; color: #147682; font-size: 13px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.auth-heading h1, .contact-heading h1 { margin-bottom: 10px; color: #0B2E4F; font-size: 34px; letter-spacing: -.025em; }
.auth-heading > p:last-child, .contact-heading > p:last-child { max-width: 590px; color: #526B7E; line-height: 1.55; }
.auth-form .form-group { margin: 0 0 20px; }
.auth-form .control-label, .contact-form .control-label { display: block; margin-bottom: 7px; color: #193B55; font-size: 14px; font-weight: 600; text-align: left; }
.auth-form .form-control, .contact-form .form-control { width: 100%; min-height: 48px; border-color: #BFCFD7; border-radius: 6px; box-shadow: none; }
.auth-form textarea.form-control, .contact-form textarea.form-control { min-height: 132px; resize: vertical; }
.auth-form .field-validation-error, .contact-form .text-danger { display: block; margin-top: 6px; font-size: 13px; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.auth-label-row > a, .auth-field-hint { font-size: 13px; }
.auth-field-hint, .auth-help, .contact-field-help { color: #627789; }
.auth-help { display: block; margin-top: 6px; font-size: 12px; line-height: 1.45; }
.auth-field-grid, .contact-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.auth-checkbox { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin: -3px 0 17px; color: #40596D; font-size: 14px; font-weight: 400; cursor: pointer; }
.auth-checkbox input { flex: 0 0 auto; margin: 0; }
.clinical-app .auth-submit, .clinical-app .contact-submit { width: 100%; min-height: 48px; border-radius: 999px; background: linear-gradient(135deg, #08778A, #075269); border-color: #075269; font-size: 15px; }
.clinical-app .auth-submit:hover, .clinical-app .auth-submit:focus, .clinical-app .contact-submit:hover, .clinical-app .contact-submit:focus { background: #064F62; border-color: #064657; }
.auth-submit span, .contact-submit span { margin-left: 8px; }
.auth-switch { margin: 24px 0 0; padding-top: 22px; border-top: 1px solid #DFE7EA; color: #536B7D; font-size: 14px; text-align: center; }
.auth-switch a { font-weight: 600; }
.auth-aside { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 38px 32px; order: -1; background: linear-gradient(145deg, #E3F4F5, #F4FAFA); border-right: 1px solid #D2E4E6; }
.auth-aside-icon, .contact-aside-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 26px; border-radius: 14px; background: #D0ECEE; color: #086579; font-size: 23px; }
.auth-aside h2 { margin: 0 0 12px; color: #0B3859; font-size: 25px; line-height: 1.25; }
.auth-aside > p:not(.clinical-eyebrow):not(.auth-aside-note) { margin: 0; color: #486579; font-size: 14px; line-height: 1.55; }
.auth-benefits { margin: 26px 0 0; padding: 0; list-style: none; }
.auth-benefits li { display: flex; align-items: flex-start; gap: 10px; margin: 13px 0; color: #244B60; font-size: 14px; line-height: 1.4; }
.auth-benefits .glyphicon { margin-top: 2px; color: #168592; }
.auth-aside-note { display: flex; align-items: flex-start; gap: 9px; margin: 25px 0 0; padding-top: 20px; border-top: 1px solid #C9E1E3; color: #486579; font-size: 12px; line-height: 1.5; }
.auth-aside-note .glyphicon { margin-top: 2px; color: #087085; }
.auth-validation { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #E9BDBD; border-radius: 6px; background: #FCEEEE; font-size: 13px; }
.auth-validation:empty, .auth-validation.validation-summary-valid { display: none; }
.auth-validation ul { margin: 7px 0 0; padding-left: 20px; }
.auth-progress { display: none; margin: 0 0 16px; padding: 14px 18px; border: 1px solid #BFDDE1; border-radius: 7px; background: #EFF9FA; }
.auth-progress .progress { height: 6px; margin-bottom: 9px; }
.auth-progress p { margin: 0; color: #35596B; font-size: 13px; }
.auth-confirmation { display: flex; flex-direction: column; justify-content: center; }
.auth-confirmation-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 24px; border-radius: 50%; background: #DDF3ED; color: #187453; font-size: 23px; }
.auth-confirmation .auth-heading { margin-bottom: 20px; }
.auth-confirmation-note { margin: 0 0 24px; padding: 13px 15px; border-left: 3px solid #78BFC4; background: #F0F8F9; color: #496476; font-size: 13px; line-height: 1.5; }
.auth-notice { display: flex; align-items: flex-start; gap: 10px; margin: -3px 0 20px; padding: 12px 14px; border: 1px solid #E2C97E; border-radius: 6px; background: #FFF8E7; color: #6F5316; font-size: 13px; line-height: 1.45; }
.auth-notice.hide { display: none; }
.auth-field-status { min-height: 0; margin-top: 6px; font-size: 13px; }
#pswd_info.auth-password-rules { position: static; top: auto; left: auto; width: auto; margin: -2px 0 20px; padding: 14px 16px; border: 1px solid #CEE0E4; border-radius: 6px; background: #F7FAFB; box-shadow: none; font-size: 12px; }
#pswd_info.auth-password-rules:before { display: none; }
#pswd_info.auth-password-rules h2 { margin: 0 0 8px; color: #26465D; font-size: 13px; font-weight: 700; }
#pswd_info.auth-password-rules ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; margin: 0; padding: 0; }
#pswd_info.auth-password-rules li { font-size: 12px; }

.clinical-home .clinical-page-contact { max-width: 1180px !important; padding-top: 42px !important; }
.contact-page { width: 100%; max-width: 1100px; margin: 0 auto; }
.contact-heading { margin: 0 auto 28px; text-align: center; }
.contact-heading > p:last-child { margin: 0 auto; }
.contact-shell { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); overflow: hidden; border: 1px solid #D5E2E6; border-radius: 14px; background: var(--surface); box-shadow: 0 20px 50px rgba(18, 55, 75, .09); }
.contact-aside { padding: 40px 32px; background: linear-gradient(145deg, #E3F4F5, #F5FAFA); border-right: 1px solid #D2E4E6; }
.contact-aside h2 { margin: 0 0 12px; color: #0B3859; font-size: 25px; }
.contact-aside > p { margin: 0 0 28px; color: #486579; font-size: 14px; line-height: 1.55; }
.contact-guidance { display: flex; align-items: flex-start; gap: 12px; padding: 17px 0; border-top: 1px solid #C9E1E3; }
.contact-guidance > .glyphicon { width: 20px; margin-top: 3px; color: #087085; font-size: 18px; text-align: center; }
.contact-guidance strong { display: block; margin-bottom: 4px; color: #244B60; font-size: 14px; }
.contact-guidance p { margin: 0; color: #536F80; font-size: 13px; line-height: 1.45; }
.contact-card { min-width: 0; padding: 38px 42px; }
.contact-card h2 { margin: 0 0 6px; color: #0B2E4F; font-size: 24px; }
.contact-required-note { margin: 0 0 24px; color: #65798A; font-size: 12px; }
.contact-required-note > span:first-child, .contact-form .control-label span { color: #B13232; }
.contact-form .form-group { margin: 0 0 20px; }
.contact-field-help { margin: -11px 0 20px; font-size: 12px; }
.contact-recaptcha { min-height: 78px; margin-bottom: 18px; overflow-x: auto; }
.contact-progress { display: none; height: 7px; margin: 22px 0 0; }
.contact-card .alert { margin: 0; padding: 24px; border-radius: 7px; }
.contact-card .alert h2 { font-size: 20px; }
.contact-card .alert p { margin: 7px 0 0; }

/* Patient dashboard. */
.clinical-patient .clinical-page-index { max-width: 1280px !important; }
.patient-dashboard-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 36px; margin-bottom: 24px; padding: 30px 32px 0; overflow: hidden; border: 1px solid #CBE0E3; border-radius: 12px; background: linear-gradient(125deg, #F4FBFB, #E2F2F3); box-shadow: 0 14px 34px rgba(18, 55, 75, .07); }
.patient-dashboard-identity { display: flex; align-items: center; gap: 20px; min-width: 0; }
.patient-dashboard-avatar { width: 72px; height: 72px; flex: 0 0 72px; border: 3px solid #fff; border-radius: 50%; object-fit: cover; background: #E3EAED; box-shadow: 0 4px 14px rgba(20, 64, 82, .14); }
.patient-dashboard-identity .clinical-eyebrow, .patient-section-heading .clinical-eyebrow { margin: 0 0 5px; color: #157581; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.patient-dashboard-identity h1 { margin: 0 0 5px; color: #0B2E4F; font-size: 32px; letter-spacing: -.02em; }
.patient-dashboard-identity > div > p:last-child { margin: 0; color: #506B7D; }
.patient-dashboard-actions, .patient-section-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.patient-dashboard-actions .btn, .patient-section-actions .btn, .patient-section-heading > .btn { border-radius: 999px; }
.patient-dashboard-stats { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); grid-column: 1 / -1; margin: 4px -32px 0; border-top: 1px solid #CBE0E3; background: rgba(255, 255, 255, .68); }
.patient-dashboard-stats > div { display: flex; align-items: baseline; justify-content: center; gap: 9px; padding: 15px 20px; text-align: center; }
.patient-dashboard-stats > div + div { border-left: 1px solid #CBE0E3; }
.patient-dashboard-stats dt { color: #587184; font-size: 13px; font-weight: 500; }
.patient-dashboard-stats dd { margin: 0; color: #0B3C59; font-size: 23px; font-weight: 700; line-height: 1; }
.patient-dashboard-stats dd a { color: inherit; text-decoration: none; }
.patient-dashboard-stats dd .badge { min-width: 0; padding: 0; background: transparent; color: inherit; font-size: inherit; }
.patient-dashboard-alerts { margin-bottom: 20px; }
.patient-dashboard-alerts:empty { display: none; }
.patient-dashboard-alerts .alert { margin-bottom: 10px; padding: 14px 48px 14px 16px; border-radius: 7px; }
.patient-dashboard-alerts .form-group { float: none; margin: 12px 0 0; padding: 0; }
.patient-dashboard-alerts .form-control { max-width: 300px; }
.patient-dashboard-main { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 20px; align-items: start; }
.patient-dashboard-main > #profile { display: none; }
.patient-dashboard-main > .progress { display: none; grid-column: 1 / -1; }
.patient-dashboard-card { min-width: 0; margin: 0; padding: 24px; border: 1px solid #D8E3E7; border-radius: 9px; background: var(--surface); box-shadow: 0 7px 22px rgba(18, 55, 75, .045); }
.patient-dashboard-card > [class*="col-"] { float: none; width: 100%; padding: 0; }
.patient-profile-card { grid-column: 1; grid-row: 1 / span 2; }
.patient-visits-card, .patient-messages-card { grid-column: 2; }
.patient-support-card { grid-column: 1 / -1; }
.patient-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 18px; }
.patient-section-heading h2 { margin: 0; color: #0B3859; font-size: 22px; }
.patient-profile-card #profileinfo { margin: 0; }
.patient-profile-card #profileinfo > [class*="col-"] { float: none; width: 100%; padding: 0; }
.patient-profile-card dl { margin: 0; }
.patient-profile-card dl + dl { margin-top: 0; }
.patient-profile-card dt { float: none; width: auto; margin: 14px 0 3px; color: #6A7C8B; font-size: 11px; font-weight: 700; letter-spacing: .035em; text-align: left; text-transform: uppercase; }
.patient-profile-card dt:first-child { margin-top: 0; }
.patient-profile-card dd { min-height: 20px; margin: 0; color: #263F53; font-size: 14px; line-height: 1.45; }
.patient-table-scroll { width: 100%; overflow-x: auto; }
.patient-dashboard-table { width: 100%; margin: 0; }
.clinical-app .patient-dashboard-table > thead > tr > th { padding: 10px 12px; background: #F4F7F8; color: #5B7081; font-size: 12px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
.clinical-app .patient-dashboard-table > tbody > tr > td { padding: 13px 12px; vertical-align: middle; }
.patient-dashboard-table th:last-child, .patient-dashboard-table td:last-child { text-align: right; }
.patient-table-actions { white-space: nowrap; }
.patient-table-actions .btn { min-height: 38px; margin: 2px; padding: 7px 14px; border-radius: 999px; }
.patient-message-table th:first-child, .patient-message-table td:first-child { width: 48px; text-align: center; }
.patient-message-button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #0A6B80; font-size: 18px; cursor: pointer; }
.patient-message-button:hover, .patient-message-button:focus { background: #E8F4F5; }
.patient-count-badge { padding: 5px 10px; border-radius: 999px; background: #E3F3F4; color: #116B75; font-size: 12px; font-weight: 700; }
.patient-empty-row td { padding: 32px 20px !important; text-align: center !important; }
.patient-empty-row td > * { display: block; }
.patient-empty-row .glyphicon { margin-bottom: 9px; color: #76AAB0; font-size: 24px; }
.patient-empty-row strong { margin-bottom: 4px; color: #29495E; }
.patient-empty-row strong + span { color: #687B8B; font-size: 13px; }
.patient-health-section { margin-top: 20px; padding: 24px; border: 1px solid #D8E3E7; border-radius: 9px; background: var(--surface); box-shadow: 0 7px 22px rgba(18, 55, 75, .045); }
.patient-health-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.patient-health-card { display: flex; flex-direction: column; min-width: 0; min-height: 260px; overflow: hidden; border: 1px solid #D6E3E7; border-radius: 9px; background: #fff; }
.patient-health-card-header { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 17px; border-bottom: 1px solid #DFE9EC; background: #F6FAFA; }
.patient-health-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background: #DDF0F1; color: #087487; font-size: 17px; }
.patient-health-card-header h3 { margin: 0 0 2px; color: #153E59; font-size: 16px; font-weight: 700; line-height: 1.25; }
.patient-health-card-header div > span { color: #6A7D8C; font-size: 12px; }
.patient-health-count { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: #E4F2F3; color: #0A6878; font-size: 13px; }
.patient-health-card-body { flex: 1; min-height: 150px; max-height: 240px; padding: 17px 18px; overflow-y: auto; }
.patient-health-card-body > ul { height: auto !important; margin: 0; padding: 0; list-style: none; color: #425D70; }
.patient-health-card-body > ul:empty:before { content: 'Nothing listed'; display: block; color: #718291; font-size: 13px; }
.patient-health-card-body li { position: relative; margin: 0; padding: 7px 0 7px 18px; line-height: 1.4; }
.patient-health-card-body li:before { content: ''; position: absolute; top: 14px; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: #4E929A; }
.patient-health-card-footer { padding: 13px 17px; border-top: 1px solid #DFE9EC; background: #FBFDFD; }
.patient-health-card-footer .btn { width: 100%; min-height: 42px; color: #086C7F; font-weight: 600; }
.clinical-patient .clinical-page-index .modal-dialog { width: calc(100% - 32px); max-width: 720px; margin: 32px auto; }
.clinical-patient .clinical-page-index #editProfileModal .modal-dialog,
.clinical-patient .clinical-page-index #addPatientModal .modal-dialog { max-width: 1040px; }
.clinical-patient .clinical-page-index #editPreferencesModal .modal-dialog { max-width: 900px; }
.clinical-patient .clinical-page-index #caseTypeModal .modal-dialog { max-width: 820px; }
.clinical-patient .clinical-page-index .modal-content { overflow: hidden; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(11, 46, 79, .24); }
.clinical-patient .clinical-page-index .modal-header { position: relative; min-height: 72px; padding: 23px 72px 20px 26px; border-bottom: 1px solid #D7E4E7; background: linear-gradient(135deg, #F6FBFB, #EAF5F6); }
.clinical-patient .clinical-page-index .modal-title { margin: 0; color: #0B3859; font-size: 22px; font-weight: 700; line-height: 1.3; }
.clinical-patient .clinical-page-index .modal-header .close { position: absolute; top: 14px; right: 16px; display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 0; border: 1px solid #CBD9DE; border-radius: 50%; background: #fff; color: #315268; font-size: 25px; font-weight: 400; }
.clinical-patient .clinical-page-index .modal-header .close:hover { background: #EAF4F5; }
.clinical-patient .clinical-page-index .modal-body { max-height: calc(100vh - 190px); padding: 26px; overflow-y: auto; background: #fff; color: #354F62; }
.clinical-patient .clinical-page-index .modal-body > .container { width: 100%; padding: 0; }
.clinical-patient .clinical-page-index .modal-body .control-label { display: block; margin: 13px 0 6px; color: #24465D; font-size: 13px; font-weight: 600; text-align: left; }
.clinical-patient .clinical-page-index .modal-body .form-control { width: 100%; min-height: 44px; border-color: #BBCDD5; border-radius: 6px; box-shadow: none; }
.clinical-patient .clinical-page-index .modal-body .form-control:focus { border-color: #13808B; box-shadow: 0 0 0 2px #D9EFF1; }
.clinical-patient .clinical-page-index .modal-body .checkbox .control-label { display: flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 8px; padding: 0; font-weight: 500; }
.clinical-patient .clinical-page-index .modal-body .checkbox input[type="checkbox"] { position: static; display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; margin: 0; }
.clinical-patient .clinical-page-index .modal-body .text-muted { color: #647B8B; font-size: 12px; }
.clinical-patient .clinical-page-index .modal-body .alert { border-radius: 7px; }
.clinical-patient .clinical-page-index .modal-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; min-height: 70px; padding: 14px 26px; border-top: 1px solid #D7E4E7; background: #FBFDFD; }
.clinical-patient .clinical-page-index .modal-footer:before,
.clinical-patient .clinical-page-index .modal-footer:after { display: none; }
.clinical-patient .clinical-page-index .modal-footer .btn,
.clinical-patient .clinical-page-index .modal-footer .button-primary,
.clinical-patient .clinical-page-index .modal-footer .button-secondary,
.clinical-patient .clinical-page-index .modal-footer .button-danger { float: none; min-width: 110px; min-height: 42px; margin: 0; border-radius: 999px; }
.clinical-patient .clinical-page-index .modal-body .btn-success { min-height: 42px; border-color: #26744B; border-radius: 999px; background: #2D8054; }
.clinical-patient .clinical-page-index .modal-body .button-danger { min-height: 42px; border-radius: 999px; }
.patient-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px; align-items: start; }
.patient-profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; min-width: 0; }
.patient-profile-section, .patient-profile-photo, .patient-preferences-section { min-width: 0; padding: 19px; border: 1px solid #D8E4E7; border-radius: 8px; background: #fff; }
.patient-profile-photo { background: #F5F9FA; }
.patient-profile-photo-preview { width: 100%; }
.patient-profile-upload { width: 100%; }
#addPatientModal .modal-body > .container { width: 100%; }
#editProfileModal .profilepic, #addPatientModal .profilepic { display: block; width: 132px; height: 132px; margin: 0 auto 16px; border: 3px solid #fff; border-radius: 50%; object-fit: cover; background: #E4EBEE; box-shadow: 0 4px 14px rgba(20, 64, 82, .12); }
#editProfileModal #uploadPhotoDiv, #addPatientModal #uploadPhotoDiv { float: none; width: 100%; padding: 0; }
#editProfileModal .patient-profile-photo #profilephoto.dropzone,
#addPatientModal #profilephoto.dropzone { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 128px; max-height: 180px; margin: 0; padding: 16px 12px; overflow: hidden; border: 2px dashed #9BB8C1; border-radius: 8px; background: #fff; text-align: center; }
#editProfileModal .patient-profile-photo #profilephoto > .dz-default.dz-message,
#addPatientModal #profilephoto > .dz-default.dz-message { position: static; top: auto; left: auto; display: flex; align-items: center; justify-content: center; width: 100%; height: auto; min-height: 92px; margin: 0; padding: 0; background-image: none; opacity: 1; }
#editProfileModal .patient-profile-photo #profilephoto > .dz-default.dz-message > .patient-photo-upload-prompt,
#addPatientModal #profilephoto > .dz-default.dz-message > .patient-photo-upload-prompt { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; color: #396273; font-size: 12px; line-height: 1.4; }
.patient-profile-photo #profilephoto .patient-photo-upload-prompt > .glyphicon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 3px; border-radius: 50%; background: #DDF0F1; color: #087487; font-size: 19px; }
.patient-photo-upload-prompt strong { color: #244E64; font-size: 12px; }
.patient-photo-upload-prompt small { color: #718692; font-size: 10px; font-weight: 400; }
#editProfileModal .patient-profile-photo #profilephoto .dz-preview,
#addPatientModal #profilephoto .dz-preview { max-width: 100%; margin: 0; padding: 6px; }
#editProfileModal .patient-profile-photo #profilephoto .dz-preview .dz-details,
#addPatientModal #profilephoto .dz-preview .dz-details { width: 110px; height: 110px; margin: 0; }
#editProfileModal .patient-profile-photo #profilephoto .dz-preview .dz-details img,
#addPatientModal #profilephoto .dz-preview .dz-details img { width: 100%; height: 100%; max-width: 110px; max-height: 110px; object-fit: cover; }
.patient-preferences-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.patient-preferences-feedback { grid-column: 1 / -1; }
.patient-modal-section-title { margin: 0 0 16px; padding-bottom: 11px; border-bottom: 1px solid #D8E4E7; color: #123E59; font-size: 16px; font-weight: 700; }
.patient-modal-intro { max-width: 650px; margin: 0 0 20px; color: #607687; font-size: 14px; line-height: 1.55; }
.patient-modal-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.patient-modal-panel { min-height: 100%; padding: 20px; border: 1px solid #D8E4E7; border-radius: 8px; background: #fff; }
.patient-modal-panel:first-child { background: #F7FAFA; }
.patient-modal-panel h5 { margin: 0 0 16px; color: #123E59; font-size: 16px; font-weight: 700; }
.patient-modal-list > p { margin: -8px 0 12px; color: #687D8C; font-size: 12px; }
.patient-field-help { display: block; margin-top: 6px; color: #687D8C; font-size: 12px; line-height: 1.4; }
.patient-height-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.patient-height-grid .form-group { margin: 0; }
#AddMedicationListUL, #AddAllergyListUL, #AddSurgeryListUL { margin: 12px 0 0; padding: 0; list-style: none; border: 1px solid #D9E4E7; border-radius: 7px; overflow: hidden; }
#AddMedicationListUL li, #AddAllergyListUL li, #AddSurgeryListUL li { min-height: 42px; padding: 11px 13px; border-bottom: 1px solid #E2E9EC; background: #FAFCFC; color: #365368; cursor: pointer; }
#AddMedicationListUL li:last-child, #AddAllergyListUL li:last-child, #AddSurgeryListUL li:last-child { border-bottom: 0; }
#AddMedicationListUL li:hover, #AddAllergyListUL li:hover, #AddSurgeryListUL li:hover { background: #ECF6F7; }
.patient-visit-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.patient-visit-choice { position: relative; min-height: 190px; padding: 22px 22px 20px 68px; border: 1px solid #C9DDE2; border-radius: 9px; background: #F3FAFA; }
.patient-visit-choice-followup { border-color: #E5D5B8; background: #FCF8F1; }
.patient-visit-choice > .glyphicon { position: absolute; top: 22px; left: 22px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #D9EFF1; color: #087387; }
.patient-visit-choice-followup > .glyphicon { background: #F4E8D5; color: #795126; }
.patient-visit-choice h5 { margin: 4px 0 9px; color: #123E59; font-size: 17px; font-weight: 700; }
.patient-visit-choice p { margin: 0 0 8px; line-height: 1.5; }
.patient-visit-choice ul { margin: 0; padding-left: 19px; color: #4B6577; font-size: 13px; line-height: 1.55; }
.message-reply-footer { display: block !important; text-align: left; }
.message-reply-compose { width: 100%; margin-bottom: 14px; }
.message-reply-compose .control-label { display: block; margin: 0 0 7px; color: #24465D; font-size: 13px; font-weight: 700; }
.message-reply-compose textarea { width: 100%; min-height: 104px; resize: vertical; border-color: #BBCDD5; border-radius: 6px; box-shadow: none; }
.message-reply-compose textarea:focus { border-color: #13808B; box-shadow: 0 0 0 2px #D9EFF1; }
.message-reply-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.clinical-patient .clinical-page-index #readMessage.patient-dashboard-message-thread { min-height: 170px; max-height: 390px; padding: 20px 24px; overflow-y: auto; background: #F4F8F9; }
.patient-dashboard-message-thread .message-thread { display: flex; align-items: flex-start; flex-direction: column; gap: 13px; }
.clinical-patient .clinical-page-index .patient-dashboard-message-thread .message-thread-item { width: auto; max-width: 84%; margin: 0; padding: 13px 15px; border: 1px solid #D2E0E4; border-radius: 6px 14px 14px 14px; background: #fff; box-shadow: 0 3px 10px rgba(18, 55, 75, .045); }
.clinical-patient .clinical-page-index .patient-dashboard-message-thread .message-thread-item + .message-thread-item { margin-top: 0; }
.clinical-patient .clinical-page-index .patient-dashboard-message-thread .message-thread-item-patient { align-self: flex-end; border-color: #ADD3D8; border-radius: 14px 6px 14px 14px; background: #E7F4F5; }
.clinical-patient .clinical-page-index .patient-dashboard-message-thread .message-thread-item-employee { border-color: #DED4BC; background: #FBF8F1; }
.patient-dashboard-message-thread .message-thread-heading { align-items: center; gap: 7px 18px; }
.patient-dashboard-message-thread .message-thread-author { display: inline-flex; align-items: center; gap: 7px; color: #173E58; font-size: 12px; }
.patient-dashboard-message-thread .message-thread-author > .glyphicon { color: #16808C; font-size: 12px; }
.patient-dashboard-message-thread .message-thread-heading time { color: #718391; font-size: 10px; white-space: nowrap; }
.patient-dashboard-message-thread .message-thread-text { margin-top: 7px; color: #29495E; font-size: 13px; line-height: 1.5; }
@media (max-width: 991px) {
    .clinical-messages { border-left: 0; border-top: 1px solid var(--border); padding: 24px 0 0; }
    .patient-photo-workspace { grid-template-columns: minmax(0, 1fr); }
    .photo-guidance { border-left: 0; border-top: 1px solid var(--border); padding: 16px 0 0; }
    .clinical-header-inner { gap: 8px 16px; }
    .auth-shell, .auth-shell-wide, .contact-shell { grid-template-columns: minmax(0, 1fr); }
    .auth-aside { border-right: 0; border-bottom: 1px solid #D2E4E6; }
    .contact-aside { border-right: 0; border-bottom: 1px solid #D2E4E6; }
    .start-visit-layout { grid-template-columns: minmax(0, 1fr); }
    .start-visit-aside { position: static; }
    .patient-dashboard-main { grid-template-columns: minmax(0, 1fr); }
    .patient-profile-card, .patient-visits-card, .patient-messages-card, .patient-support-card { grid-column: 1; grid-row: auto; }
    .patient-profile-card #profileinfo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .patient-profile-layout { grid-template-columns: minmax(0, 1fr); }
    .patient-profile-photo { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
    .patient-profile-photo .patient-modal-section-title { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    .mobile-section-hidden { display: none !important; }
    .encounter-section-nav a[aria-selected=true] { color: #117783; border-bottom: 3px solid var(--brand); }
    .clinical-brand img { width: 160px; height: 40px; }
    .clinical-app button.clinical-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; min-width: 44px; height: 44px; padding: 0; margin-left: auto; order: 2; }
    .clinical-navigation { display: flex; order: 4; flex-basis: 100%; flex-direction: column; }
    .clinical-header.menu-ready .clinical-navigation:not(.is-open) { display: none; }
    .clinical-account { margin-left: auto; order: 1; gap: 8px; }
    .clinical-account a { padding: 10px 0; }
    .clinical-app .patient-account-toggle { max-width: 190px; padding: 7px 8px; }
    .clinical-app .patient-account-dropdown > li > a { padding: 10px 12px; }
    .clinical-header-inner { padding: 12px 16px; }
    .clinical-navigation a { padding: 12px 8px; }
    .clinical-app h1 { font-size: 28px; }
    .clinical-app.clinical-account #container, .clinical-home .clinical-page-contact { padding-top: 24px !important; }
    .auth-shell, .contact-shell { border-radius: 10px; }
    .auth-card, .contact-card { padding: 28px 20px; }
    .auth-aside, .contact-aside { padding: 28px 20px; }
    .auth-heading h1, .contact-heading h1 { font-size: 29px; }
    .auth-field-grid, .contact-field-grid, #pswd_info.auth-password-rules ul { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .contact-heading { margin-bottom: 22px; text-align: left; }
    .clinical-patient .clinical-page-startvisit { padding-top: 24px !important; }
    .start-visit-heading h1 { font-size: 29px; }
    .start-visit-section { padding: 22px 18px; }
    .start-visit-section-heading { grid-template-columns: 31px minmax(0, 1fr); gap: 11px; }
    .start-visit-section-number { width: 31px; height: 31px; }
    .start-visit-field, .start-visit-check, .start-visit-error, .start-visit-minor-note, .start-visit-ssn { margin-left: 0; }
    .start-visit-actions { align-items: stretch; flex-direction: column-reverse; padding: 17px 18px; }
    .start-visit-actions .btn { width: 100%; }
    .start-visit-notice { padding: 15px 18px; }
    .start-visit-aside { padding: 23px 20px; }
    .patient-dashboard-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 20px 0; }
    .patient-dashboard-identity { align-items: flex-start; }
    .patient-dashboard-avatar { width: 58px; height: 58px; flex-basis: 58px; }
    .patient-dashboard-identity h1 { font-size: 27px; }
    .patient-dashboard-actions { justify-content: stretch; }
    .patient-dashboard-actions .btn { flex: 1 1 140px; }
    .patient-dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 2px -20px 0; }
    .patient-dashboard-stats > div { display: block; padding: 12px 6px; }
    .patient-dashboard-stats dt { min-height: 34px; font-size: 11px; }
    .patient-dashboard-stats dd { font-size: 20px; }
    .patient-dashboard-card, .patient-health-section { padding: 19px 16px; }
    .patient-section-heading { align-items: flex-start; flex-direction: column; }
    .patient-section-actions { width: 100%; justify-content: stretch; }
    .patient-section-actions .btn, .patient-section-heading > .btn { flex: 1 1 auto; }
    .patient-profile-card #profileinfo, .patient-health-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .patient-dashboard-table, .patient-dashboard-table tbody { display: block; }
    .patient-dashboard-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .clinical-app .patient-dashboard-table > tbody > tr { display: block; padding: 12px 0; border-bottom: 1px solid #D8E3E7; }
    .clinical-app .patient-dashboard-table > tbody > tr:last-child { border-bottom: 0; }
    .clinical-app .patient-dashboard-table > tbody > tr > td { display: block; width: 100%; padding: 6px 4px; border: 0; text-align: left; white-space: normal; }
    .clinical-app .patient-dashboard-table > tbody > tr > td[data-label]:before { content: attr(data-label); display: block; margin-bottom: 2px; color: #6A7C8B; font-size: 10px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
    .clinical-app .patient-dashboard-table > tbody > tr > td:not([data-label]):empty { display: none; }
    .clinical-app .patient-dashboard-table .patient-table-actions { padding-top: 10px; }
    .patient-table-actions .btn { width: 100%; margin: 3px 0; }
    .clinical-app .patient-empty-row { padding: 0; }
    .clinical-app .patient-empty-row td { display: block; padding: 28px 12px !important; text-align: center !important; }
    .clinical-patient .clinical-page-index .modal-dialog { width: calc(100% - 24px); margin: 12px auto; }
    .clinical-patient .clinical-page-index .modal-header { min-height: 64px; padding: 19px 64px 16px 20px; }
    .clinical-patient .clinical-page-index .modal-title { font-size: 19px; }
    .clinical-patient .clinical-page-index .modal-body { max-height: calc(100vh - 150px); padding: 20px; }
    .clinical-patient .clinical-page-index .modal-footer { padding: 12px 20px; }
    .clinical-patient .clinical-page-index #readMessage.patient-dashboard-message-thread { padding: 16px; }
    .clinical-patient .clinical-page-index .patient-dashboard-message-thread .message-thread-item { max-width: 94%; }
    .patient-dashboard-message-thread .message-thread-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .patient-profile-fields, .patient-preferences-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .patient-modal-split, .patient-height-grid, .patient-visit-choice-grid { grid-template-columns: minmax(0, 1fr); }
    .patient-modal-split, .patient-visit-choice-grid { gap: 14px; }
    .patient-visit-choice { min-height: 0; }
    .message-reply-actions { align-items: stretch; flex-direction: column-reverse; }
    .message-reply-actions .button-primary, .message-reply-actions .button-secondary { width: 100%; }
    .patient-profile-photo { display: block; }
    .patient-health-card-body { max-height: 210px; }
    .clinical-summary { gap: 16px; }
    .clinical-summary > div { min-width: 88px; padding-right: 16px; }
    .clinical-summary strong { font-size: 24px; }
    .queue-table, .clinical-assignment-table { min-width: 0; }
    .queue-table thead, .clinical-assignment-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .clinical-app .queue-table tbody, .clinical-app .clinical-assignment-table tbody { display: block; }
    .clinical-app .queue-table tbody tr, .clinical-app .clinical-assignment-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; padding: 16px; border-bottom: 1px solid var(--border); }
    .clinical-app .queue-table tbody td, .clinical-app .clinical-assignment-table tbody td { display: block; border: 0; padding: 0; width: auto; }
    .clinical-app .queue-table td:first-child { grid-column: 1 / -1; font-size: 18px; }
    .queue-table td[data-label]:not(:first-child):before, .clinical-assignment-table td[data-label]:before { content: attr(data-label); display: block; color: var(--muted); font-size: 14px; font-weight: 400; margin-bottom: 4px; }
    .queue-action { grid-column: 2; }
    .queue-action a { width: 100%; }
    .queue-pagination { flex-wrap: wrap; }
    .clinical-messages { display: none; }
    .clinical-messages:target { display: block; }
    .patient-visit-progress ol { display: none; }
    .visit-progress-mobile { display: block; width: 100%; }
    progress.visit-progress-mobile { height: 8px; border: 0; accent-color: var(--brand); margin-bottom: 24px; }
    progress.visit-progress-mobile::-webkit-progress-bar { background: var(--border); border-radius: 4px; }
    progress.visit-progress-mobile::-webkit-progress-value { background: var(--brand); border-radius: 4px; }
    .patient-photo-grid { grid-template-columns: minmax(0, 1fr); }
    .patient-photo img, .patient-photo video { height: 220px; }
    .encounter-workspace { display: block; }
    .encounter-gallery { margin-top: 24px; padding: 16px; }
    .encounter-section-nav { gap: 0; justify-content: space-between; }
    .encounter-section-nav a { padding: 12px 8px; }
    .clinical-app #buttons .btn { flex: 1 1 44%; }
    .clinical-app #buttons #completeCase { margin-left: 0; }
    .clinical-app .form-horizontal .control-label { text-align: left; }
    .clinical-app .modal-dialog { margin: 12px auto; }
    .clinical-app .modal-body { max-height: 65vh; overflow: auto; }
    .admin-navigation { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .clinical-app *, .clinical-app *:before, .clinical-app *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Patient photo upload. */
.clinical-patient .clinical-page-uploadphotos { max-width: 1180px !important; padding-top: 34px !important; }
.upload-photo-heading { max-width: 760px; margin-bottom: 25px; }
.upload-photo-heading .clinical-eyebrow { margin: 0 0 7px; color: #117783; font-size: 13px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.upload-photo-heading h1 { margin: 0 0 9px; color: #0B2E4F; font-size: 34px; letter-spacing: -.025em; }
.upload-photo-heading > p:last-child { margin: 0; color: #526B7E; line-height: 1.55; }
.patient-photo-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.photo-upload-card { min-width: 0; overflow: hidden; border: 1px solid #D5E2E6; border-radius: 12px; background: #fff; box-shadow: 0 14px 36px rgba(18, 55, 75, .07); }
.clinical-app #dropbox.clinical-upload { min-height: 310px; margin: 24px; padding: 0; overflow: visible; border: 2px dashed #8CB7BE; border-radius: 11px; background: #F5FAFA; box-shadow: none; text-align: center; }
.clinical-app #dropbox.clinical-upload.dz-drag-hover { border-color: #087083; background: #E9F6F6; }
.clinical-app #dropbox.clinical-upload .dz-default.dz-message,
.clinical-app #dropbox.clinical-upload.dz-started .dz-default.dz-message { position: static; display: flex; align-items: center; flex-direction: column; width: auto; height: auto; min-height: 306px; margin: 0; padding: 34px 24px 26px; background: none; opacity: 1; }
.clinical-app #dropbox.clinical-upload .photo-upload-icon { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; margin-bottom: 17px; border-radius: 16px; background: #D8EEF0; color: #087083; font-size: 25px; }
.clinical-app #dropbox.clinical-upload .dz-message h2 { margin: 0 0 6px; color: #123E59; font-size: 20px; }
.clinical-app #dropbox.clinical-upload .dz-message p { max-width: 430px; margin: 0 0 18px; color: #617687; font-size: 14px; }
.clinical-app #dropbox.clinical-upload #choose-photos { min-width: 170px; border-radius: 999px; cursor: pointer; }
.clinical-app #dropbox.clinical-upload .dz-message > small { display: block; margin-top: 9px; color: #6F818F; font-size: 12px; }
.photo-upload-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 17px; margin-top: 22px; padding-top: 17px; border-top: 1px solid #D8E6E8; color: #52707E; font-size: 12px; }
.photo-upload-meta > span { display: inline-flex !important; align-items: center; gap: 6px; }
.photo-upload-meta .glyphicon { color: #168A98; }
.clinical-app #dropbox.clinical-upload .fallback { padding: 24px; }
.clinical-app #upload-feedback { margin: 0 24px 24px; }
.saved-photo-section { padding: 25px 27px 27px; border-top: 1px solid #DFE7EA; }
.saved-photo-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.saved-photo-header .clinical-eyebrow { margin: 0 0 5px; color: #117783; font-size: 12px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.saved-photo-header h2 { margin: 0; color: #123E59; font-size: 21px; }
.photo-count { flex: 0 0 auto; padding: 6px 10px; border-radius: 999px; background: #E9F5F5; color: #0A6C7B; font-size: 12px; font-weight: 700; }
.saved-photo-intro { margin: 9px 0 0; color: #617687; font-size: 13px; }
.saved-photo-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 150px; margin-top: 20px; border: 1px solid #E1E8EB; border-radius: 9px; background: #FAFBFC; color: #71818D; text-align: center; }
.saved-photo-empty[hidden] { display: none; }
.saved-photo-empty .glyphicon { margin-bottom: 9px; color: #8AA4AE; font-size: 26px; }
.saved-photo-empty p { margin: 0; font-size: 13px; }
.patient-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.patient-photo, .patient-photo-grid .dz-preview { position: relative; width: auto; min-width: 0; max-width: none; margin: 0; padding: 14px; border: 1px solid #D8E3E7; border-radius: 9px; background: #fff; box-shadow: none; vertical-align: top; }
.patient-photo-media { position: relative; min-width: 0; margin-bottom: 13px; overflow: hidden; border-radius: 7px; background: #EFF3F5; }
.patient-photo-media > a { display: block; }
.patient-photo img, .patient-photo video { display: block; width: 100%; height: 230px; margin: 0; object-fit: contain; background: #EFF3F5; }
.patient-photo-type { position: absolute; top: 9px; left: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; background: rgba(10, 47, 70, .86); color: #fff; font-size: 11px; font-weight: 700; }
.patient-photo > label, .patient-photo-grid .dz-preview > label { display: block; margin: 0 0 7px; color: #193B55; font-size: 13px; font-weight: 700; text-align: left; }
.patient-photo > label span { color: #71818D; font-weight: 400; }
.patient-photo .photo-note, .patient-photo-grid .dz-preview .photo-note { min-height: 78px; resize: vertical; }
.photo-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; }
.photo-actions .save-photo-note { flex: 1; }
.photo-actions .remove-saved-photo, .photo-actions .photo-remove { flex: 0 0 44px; color: #A12836; }
.patient-photo-grid .dz-preview .dz-details { position: relative; width: 100%; height: auto; margin: 0 0 13px; padding: 0; overflow: hidden; border-radius: 7px; background: #EFF3F5; }
.patient-photo-grid .dz-preview .dz-details img { position: static; width: 100%; max-width: none; height: 230px; max-height: none; object-fit: contain; }
.patient-photo-grid .dz-preview.dz-file-preview [data-dz-thumbnail] { display: none; }
.patient-photo-grid .dz-preview:hover .dz-details img { display: block; }
.patient-photo-grid .dz-preview .dz-filename { position: static; height: auto; padding: 8px 10px; overflow: hidden; background: #F5F8F9; color: #486577; font-size: 12px; font-weight: 600; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.patient-photo-grid .dz-preview .dz-size { display: none; }
.patient-photo-grid .dz-preview .dz-progress { position: absolute; top: 239px; right: 14px; left: 14px; z-index: 2; display: none; height: 5px; background: #D2DEE2; }
.patient-photo-grid .dz-preview.dz-processing:not(.dz-success):not(.dz-error) .dz-progress { display: block; }
.patient-photo-grid .dz-preview .dz-progress .dz-upload { background: #168A98; }
.patient-photo-grid .dz-preview .dz-success-mark, .patient-photo-grid .dz-preview .dz-error-mark { position: absolute; top: 8px; right: 8px; z-index: 3; display: none; }
.patient-photo-grid .dz-preview.dz-success .dz-success-mark, .patient-photo-grid .dz-preview.dz-error .dz-error-mark { display: block; }
.patient-photo-grid .dz-preview .dz-error-message { position: static; display: none; width: auto; max-width: none; margin: 0 0 10px; padding: 9px; border-radius: 5px; background: #FCEEEE; color: #A12836; font-size: 12px; }
.patient-photo-grid .dz-preview.dz-error .dz-error-message { display: block; }
.patient-photo-grid .dz-preview .photo-actions .photo-remove { float: none; width: 44px; min-height: 44px; margin: 0; padding: 9px; }
.photo-guidance { position: sticky; top: 20px; padding: 24px; border: 1px solid #CFE1E5; border-radius: 12px; background: #F1F8F8; }
.photo-guidance summary { min-height: 0; color: #123E59; font-size: 20px; font-weight: 700; cursor: pointer; }
.photo-guidance-intro { margin: 11px 0 20px; color: #5E7585; font-size: 13px; line-height: 1.5; }
.photo-tip-list { margin: 0; padding: 0; list-style: none; }
.photo-tip-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; margin: 0 0 16px; }
.photo-tip-list li > span { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid #9AC7CC; border-radius: 50%; color: #0D7482; font-size: 12px; font-weight: 700; }
.photo-tip-list strong, .photo-tip-list small { display: block; }
.photo-tip-list strong { margin-bottom: 2px; color: #244B60; font-size: 13px; }
.photo-tip-list small { color: #5E7686; font-size: 12px; font-weight: 400; line-height: 1.45; }
.photo-device-note { display: flex; align-items: flex-start; gap: 9px; margin: 19px 0; padding: 12px; border: 1px solid #D8E3E6; border-radius: 7px; background: #fff; color: #526D7C; }
.photo-device-note .glyphicon { margin-top: 2px; color: #0D7482; }
.photo-device-note p { margin: 0; font-size: 12px; line-height: 1.45; }
.photo-guidance h3 { margin: 0 0 10px; color: #244B60; font-size: 13px; }
.photo-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.photo-examples a { overflow: hidden; border: 1px solid #CBDCDF; border-radius: 7px; background: #fff; color: #31586A; text-decoration: none; }
.photo-examples img { display: block; width: 100%; height: 92px; object-fit: cover; background: #fff; }
.photo-examples a span { display: block; padding: 7px; font-size: 11px; font-weight: 700; text-align: center; }
.patient-step-actions.photo-step-actions { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-top: 24px; padding: 18px 20px; border: 1px solid #D5E2E6; border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgba(18, 55, 75, .06); }
.photo-step-actions .btn { min-width: 160px; border-radius: 999px; }
.photo-step-status { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; color: #526D7C; }
.photo-step-status .glyphicon { color: #168A98; }
.photo-step-status p { margin: 0; font-size: 13px; text-align: center; }

@media (max-width: 900px) {
    .patient-photo-workspace { grid-template-columns: minmax(0, 1fr); }
    .photo-guidance { position: static; padding: 21px; border: 1px solid #CFE1E5; }
}

@media (max-width: 650px) {
    .clinical-patient .clinical-page-uploadphotos { padding-top: 22px !important; }
    .upload-photo-heading h1 { font-size: 29px; }
    .clinical-app #dropbox.clinical-upload { min-height: 0; margin: 18px; }
    .clinical-app #dropbox.clinical-upload .dz-default.dz-message,
    .clinical-app #dropbox.clinical-upload.dz-started .dz-default.dz-message { min-height: 285px; padding: 28px 18px 22px; }
    .saved-photo-section { padding: 22px 20px; }
    .patient-photo-grid { grid-template-columns: minmax(0, 1fr); }
    .patient-step-actions.photo-step-actions { grid-template-columns: 1fr; gap: 12px; }
    .photo-step-actions .btn { width: 100%; }
    .photo-step-actions > a { grid-row: 3; }
    .photo-step-status { grid-row: 1; }
}

/* Visit questionnaires. */
.clinical-patient .clinical-page-aboutcondition,
.clinical-patient .clinical-page-sendtoaboutcondition,
.clinical-patient .clinical-page-followup { max-width: 1180px !important; padding-top: 34px !important; }
.intake-question-heading { max-width: 760px; margin-bottom: 25px; }
.intake-question-heading .clinical-eyebrow { margin: 0 0 7px; color: #117783; font-size: 13px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.intake-question-heading h1 { margin: 0 0 9px; color: #0B2E4F; font-size: 34px; letter-spacing: -.025em; }
.intake-question-heading > p:last-child { margin: 0; color: #526B7E; line-height: 1.55; }
.intake-questionnaire .form-group:before,
.intake-questionnaire .form-group:after { display: none; }
.intake-questionnaire .control-label { display: block; margin: 0 0 11px; color: #173B55; font-size: 15px; font-weight: 700; line-height: 1.45; text-align: left; }
.intake-questionnaire .control-label .text-muted { display: block; margin-top: 4px; color: #637B8B; font-size: 12px; font-weight: 400; line-height: 1.5; }
.intake-questionnaire .form-control { width: 100%; max-width: 720px; min-height: 48px; padding: 11px 13px; border: 1px solid #BFCFD5; border-radius: 8px; background: #FCFEFE; color: #16374F; box-shadow: none; font-size: 15px; }
.intake-questionnaire textarea.form-control { min-height: 112px; line-height: 1.5; resize: vertical; }
.intake-questionnaire select.form-control { max-width: 430px; }
.intake-questionnaire .form-control:focus { border-color: #168A98; background: #fff; box-shadow: 0 0 0 3px rgba(22, 138, 152, .13); outline: 0; }
.intake-questionnaire .text-danger { color: #A12836; }

.condition-form { margin: 0; }
.condition-form > .form-horizontal { padding: 0; }
.condition-picker { margin: 0 !important; padding: 29px 30px 31px; border: 1px solid #D4E2E6; border-radius: 12px; background: #fff; box-shadow: 0 14px 36px rgba(18, 55, 75, .07); }
.condition-picker > .col-md-12 { float: none; width: 100%; padding: 0; }
.condition-picker-heading { margin-bottom: 19px; }
.condition-picker-heading .clinical-eyebrow { display: block; margin-bottom: 5px; color: #117783; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.condition-picker-heading h2 { margin: 0; color: #123E59; font-size: 23px; }
.condition-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.clinical-app .condition-choice-card { position: relative; display: grid; grid-template-columns: 78px minmax(0, 1fr); align-items: center; gap: 15px; width: 100%; min-height: 112px; padding: 16px; border: 1px solid #D7E3E7; border-radius: 10px; background: #FBFDFD; color: #173B55; box-shadow: none; cursor: pointer; font: inherit; text-align: left; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease; }
.clinical-app .condition-choice-card:hover { border-color: #8CBCC2; background: #FBFDFD; color: #173B55; box-shadow: 0 8px 20px rgba(18, 55, 75, .08); transform: translateY(-1px); }
.clinical-app .condition-choice-card.is-selected { border-color: #168A98; background: #EDF8F8; box-shadow: 0 0 0 2px rgba(22, 138, 152, .11); }
.clinical-app .condition-choice-card.is-selected:after { content: "\2713"; position: absolute; top: 10px; right: 11px; display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; border-radius: 50%; background: #168A98; color: #fff; font-size: 13px; font-weight: 700; }
.condition-form .condition-choice-card .link { width: 76px; height: 76px; margin: 0; padding: 0; border: 0; border-radius: 50%; background-color: transparent; background-position: center; background-repeat: no-repeat; box-shadow: none; }
.condition-form .condition-choice-card .link:focus { outline: 3px solid rgba(22, 138, 152, .28); outline-offset: 3px; }
.condition-choice-label { padding-right: 16px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.condition-help { display: flex; align-items: center; gap: 9px; margin-top: 20px; padding: 12px 14px; border-radius: 8px; background: #F0F6FB; color: #526D7E; font-size: 12px; }
.condition-help .glyphicon { color: #177F8C; font-size: 15px; }

.condition-questions-card { margin-top: 24px; padding: 8px 30px; border: 1px solid #D4E2E6; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(18, 55, 75, .06); }
.condition-form #growthdiv,
.condition-form #itchingdiv,
.condition-form #rashdiv,
.condition-form #acnediv,
.condition-form #hairdiv,
.condition-form #naildiv { margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.condition-form #growthdiv > .form-group,
.condition-form #itchingdiv > .form-group,
.condition-form #rashdiv > .form-group,
.condition-form #acnediv > .form-group,
.condition-form #hairdiv > .form-group,
.condition-form #naildiv > .form-group,
.condition-form #howlongdiv,
.condition-form #additionaldetailsdiv { margin: 0; padding: 21px 0; border: 0; border-bottom: 1px solid #E3EAED; border-radius: 0; background: transparent; box-shadow: none; }
.condition-form #additionaldetailsdiv { border-bottom: 0; }
.condition-form #growthdiv > .form-group > [class*="col-"],
.condition-form #itchingdiv > .form-group > [class*="col-"],
.condition-form #rashdiv > .form-group > [class*="col-"],
.condition-form #acnediv > .form-group > [class*="col-"],
.condition-form #hairdiv > .form-group > [class*="col-"],
.condition-form #naildiv > .form-group > [class*="col-"],
.condition-form #howlongdiv > [class*="col-"],
.condition-form #additionaldetailsdiv > [class*="col-"] { float: none; width: 100%; padding: 0; }
.condition-questions-card .form-group [id^="mcs"].col-md-12 { float: none; width: 100%; padding: 0; }
.condition-questions-card #GrowthWhenHadBefore,
.condition-questions-card #ItchingWhenHadBefore,
.condition-questions-card #RashWhenHadBefore { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 28px; float: none; width: 100%; margin: 0; padding: 20px 0 0; clear: both; }
.condition-questions-card #GrowthWhenHadBefore.hide,
.condition-questions-card #ItchingWhenHadBefore.hide,
.condition-questions-card #RashWhenHadBefore.hide { display: none; }
.condition-questions-card #GrowthWhenHadBefore > .control-label,
.condition-questions-card #ItchingWhenHadBefore > .control-label,
.condition-questions-card #RashWhenHadBefore > .control-label { grid-column: 1 / -1; margin: 0; }
.condition-questions-card #GrowthWhenHadBefore > br,
.condition-questions-card #ItchingWhenHadBefore > br,
.condition-questions-card #RashWhenHadBefore > br { display: none; }
.condition-questions-card #GrowthWhenHadBefore > [class*="col-"],
.condition-questions-card #ItchingWhenHadBefore > [class*="col-"],
.condition-questions-card #RashWhenHadBefore > [class*="col-"] { float: none; width: 100%; padding: 0; }
.condition-form #locationdiv { margin: 24px 0 0; padding: 27px 30px; border: 1px solid #D4E2E6; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(18, 55, 75, .06); }
.condition-form #locationdiv > [class*="col-"] { float: none; width: 100%; padding: 0; }
.condition-form #locationdiv .thumbnail { border-color: #D4E1E5; border-radius: 9px; background: #F8FBFB; box-shadow: none; }
.condition-form .help-tip { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 7px; border: 0; border-radius: 50%; background: #E1F1F2; color: #087083; font-size: 12px; font-weight: 800; vertical-align: middle; }

.condition-form .mcs-container,
.followup-form .mcs-container { display: flex !important; align-items: stretch; flex-wrap: wrap; gap: 9px; width: 100%; margin: 0; padding: 0; overflow: visible; clear: both; }
.condition-form .mcs-item,
.followup-form .mcs-item { display: inline-flex; align-items: center; justify-content: center; float: none; width: auto; min-width: 102px; height: auto; min-height: 40px; margin: 0; padding: 9px 17px; border: 1px solid #D4E0E4; border-radius: 999px; background: #fff; color: #24485E; box-shadow: 0 2px 6px rgba(18, 55, 75, .035); cursor: pointer; font-size: 13px; font-weight: 600; line-height: 1.25; text-align: center; text-decoration: none; text-shadow: none; transform: none; transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease; }
.condition-form .mcs-item:hover,
.followup-form .mcs-item:hover { border-color: #7CB2B9; background: #F3FAFA; color: #0B6572; text-decoration: none; }
.condition-form .mcs-item:focus,
.followup-form .mcs-item:focus { outline: 3px solid rgba(22, 138, 152, .18); outline-offset: 2px; text-decoration: none; }
.condition-form .mcs-item.active,
.followup-form .mcs-item.active { border-color: #168A98; background: #E7F6F7; color: #075E6C; box-shadow: 0 2px 8px rgba(22, 138, 152, .1); text-shadow: none; }
.condition-form .mcs-item.active:after,
.followup-form .mcs-item.active:after { content: "\2713"; margin-left: 8px; color: #087786; font-size: 13px; font-weight: 800; }
.condition-form .mcs-container > .form-control:not(.hide),
.followup-form .mcs-container > .form-control:not(.hide) { flex: 1 1 280px; max-width: 420px; }

.followup-form { margin: 0; padding: 29px 30px 30px; border: 1px solid #D4E2E6; border-radius: 12px; background: #fff; box-shadow: 0 14px 36px rgba(18, 55, 75, .07); }
.followup-welcome { display: flex; align-items: center; gap: 12px; margin: 0 0 7px; padding: 15px 17px; border-radius: 9px; background: #EEF8F8; color: #284E62; }
.followup-welcome > .glyphicon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #168A98; color: #fff; }
.followup-welcome strong,
.followup-welcome span { display: block; }
.followup-welcome strong { margin-bottom: 2px; color: #123E59; }
.followup-welcome div > span { color: #5A7383; font-size: 13px; }
.followup-form > #simpleFollowUpScreenerDiv,
.followup-form > #AccutaneScreenerDiv,
.followup-form > #SimpleFollowUpDiv,
.followup-form > #FollowUpDiv,
.followup-form > #AccutaneDiv,
.followup-form > #followUP { margin: 0; padding: 6px 0; }
.followup-form .form-group { margin: 0; padding: 20px 0; border-bottom: 1px solid #E3EAED; }
.followup-form .form-group [class*="col-"] { float: none; width: 100%; padding: 0; }
.followup-form #AccutaneDiv > .form-group:last-child,
.followup-form #followUP > .form-group:last-child { border-bottom: 0; }
.followup-form #buttongroup { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 8px 0 0; padding: 22px 0 0; border-top: 1px solid #D7E3E7; border-bottom: 0; }
.followup-form #buttongroup > .row { margin: 0; }
.followup-form #buttongroup > .row > [class*="col-"] { float: none; width: auto; padding: 0; }
.followup-form #buttongroup p { margin: 0; color: #607887; font-size: 13px; }
.followup-form #buttongroup .newCase { color: #087083; font-weight: 700; }
.followup-form #buttongroup > .col-md-12 { width: auto; }
.followup-form #buttongroup .pull-right { float: none !important; }
.followup-form #Continue,
.condition-form #buttongroup input[type="submit"] { min-width: 190px; min-height: 44px; border-radius: 999px; }
.condition-form #buttongroup { margin: 24px 0 0; padding: 0; border: 0; background: transparent; }
.condition-form #buttongroup > .col-md-12 { float: none; width: 100%; padding: 0; }
.condition-form #buttongroup .pull-right { float: none !important; text-align: right; }

@media (max-width: 760px) {
    .clinical-patient .clinical-page-aboutcondition,
    .clinical-patient .clinical-page-sendtoaboutcondition,
    .clinical-patient .clinical-page-followup { padding-top: 22px !important; }
    .intake-question-heading h1 { font-size: 29px; }
    .condition-picker,
    .followup-form { padding: 22px 20px; }
    .condition-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .clinical-app .condition-choice-card { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 150px; padding: 14px 10px; text-align: center; }
    .condition-choice-label { padding: 0; font-size: 12px; }
    .condition-questions-card { padding: 5px 20px; }
    .condition-form #locationdiv { padding: 22px 20px; }
    .condition-questions-card #GrowthWhenHadBefore,
    .condition-questions-card #ItchingWhenHadBefore,
    .condition-questions-card #RashWhenHadBefore { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
    .condition-form .mcs-item,
    .followup-form .mcs-item { flex: 1 1 calc(50% - 9px); min-width: 0; }
    .followup-form #buttongroup { align-items: stretch; flex-direction: column; }
    .followup-form #buttongroup > .col-md-12,
    .followup-form #Continue,
    .condition-form #buttongroup input[type="submit"] { width: 100%; }
    .condition-form #buttongroup .pull-right { text-align: left; }
}

/* Interactive body-region selector */
.body-region-selector { color: #173B55; }
.body-region-selector-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 17px; }
.body-region-selector-heading h2 { margin: 3px 0 5px; color: #173B55; font-size: 22px; font-weight: 700; line-height: 1.25; }
.body-region-selector-heading p { margin: 0; color: #637B8B; font-size: 14px; line-height: 1.5; }
.body-region-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 16px; align-items: start; }
.body-region-map-card,
.body-region-panel { overflow: hidden; border: 1px solid #C7D8DD; border-radius: 13px; background: #fff; }
.body-region-clear:focus,
.body-region-chip:focus { border-color: #168A98; box-shadow: 0 0 0 3px rgba(22, 138, 152, .18); outline: 0; }
.body-region-map-wrap { position: relative; display: grid; place-items: center; min-height: 480px; padding: 18px; background-color: #F7FAFB; background-image: radial-gradient(#D4E1E5 1px, transparent 1px); background-size: 18px 18px; }
.body-region-map { display: block; width: min(100%, 720px); height: auto; max-height: 70vh; overflow: visible; }
.body-region-map path[data-region-id] { fill: #D7E8F5; stroke: #315873; stroke-width: 1.9px; cursor: pointer; vector-effect: non-scaling-stroke; transition: fill 110ms ease, filter 110ms ease; }
.body-region-map path[data-region-id]:hover { fill: #83C8CF; filter: drop-shadow(0 2px 2px rgba(30, 64, 90, .2)); }
.body-region-map path[data-region-id].selected { fill: #168A98; stroke: #075768; }
.body-region-map path[data-region-id]:focus { outline: none; stroke: #000; stroke-width: 1px; }
.body-region-panel-section { padding: 15px; border-bottom: 1px solid #D9E5E8; }
.body-region-panel-section:last-child { border-bottom: 0; }
.body-region-panel-section h3,
.body-region-panel-section label { display: block; margin: 0 0 8px; color: #173B55; font-size: 14px; font-weight: 700; }
.body-region-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.body-region-panel-heading h3 { margin: 0; }
.body-region-clear { padding: 5px 8px; border: 1px solid #B8CCD2; border-radius: 7px; background: #fff; color: #225066; font-size: 11px; font-weight: 700; cursor: pointer; }
.body-region-clear:hover { border-color: #168A98; background: #EEF8F8; color: #087083; }
.body-region-helper { margin: -3px 0 10px; color: #637B8B; font-size: 11px; line-height: 1.4; }
.body-region-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 31px; }
.body-region-chip { display: inline-flex; align-items: center; min-height: 31px; padding: 5px 9px; border: 1px solid #90BCC2; border-radius: 999px; background: #E4F3F4; color: #075768; font-size: 11px; font-weight: 700; cursor: pointer; }
.body-region-empty { color: #637B8B; font-size: 12px; }
.body-region-error { display: block; margin-top: 12px; font-weight: 700; }
.body-region-error.hide { display: none; }

@media (max-width: 980px) {
    .body-region-workspace { grid-template-columns: 1fr; }
    .body-region-map { max-height: none; }
}

@media (max-width: 600px) {
    .body-region-selector-heading { align-items: stretch; flex-direction: column; gap: 11px; }
    .body-region-map-wrap { min-height: 390px; padding: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .body-region-map path[data-region-id] { transition: none; }
}

/* Help center support-case form */
.clinical-help #logcase { clear: both; padding-top: 28px; scroll-margin-top: 24px; }
.clinical-help .help-support-card { overflow: hidden; margin: 0 0 36px; border: 1px solid #CDDDE2; border-radius: 12px; background: #fff; box-shadow: 0 12px 34px rgba(18, 55, 75, .08); }
.clinical-help .help-support-header { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; padding: 24px 26px 22px; border-bottom: 1px solid #D7E4E7; background: linear-gradient(135deg, #F7FBFB, #EAF5F6); }
.clinical-help .help-support-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: #D9EFF1; color: #087487; font-size: 19px; }
.clinical-help .help-support-header .clinical-eyebrow { margin: 0 0 3px; color: #087487; font-size: 11px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.clinical-help .help-support-header h2 { margin: 0 0 5px; color: #0B3859; font-size: 23px; font-weight: 700; line-height: 1.25; }
.clinical-help .help-support-header h2 + p { max-width: 620px; margin: 0; color: #5C7485; font-size: 14px; line-height: 1.5; }
.clinical-help .help-support-progress { height: 4px; margin: 0; overflow: hidden; border: 0; border-radius: 0; background: #E4ECEF; box-shadow: none; }
.clinical-help .help-support-progress .progress-bar { background-color: #168A98; }
.clinical-help .help-support-form-wrap { padding: 26px; }
.clinical-help .help-support-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.clinical-help .help-support-field { min-width: 0; }
.clinical-help .help-support-field-wide { grid-column: 1 / -1; }
.clinical-help .help-support-field .control-label { display: block; margin: 0 0 7px; color: #24465D; font-size: 13px; font-weight: 700; text-align: left; }
.clinical-help .help-support-field .control-label > span[aria-hidden="true"] { color: #B42E35; }
.clinical-help .help-support-field .form-control { width: 100%; min-height: 44px; border: 1px solid #B9CCD4; border-radius: 7px; background: #FCFEFE; color: #173B55; box-shadow: none; }
.clinical-help .help-support-field textarea.form-control { min-height: 148px; padding: 11px 12px; resize: vertical; line-height: 1.5; }
.clinical-help .help-support-field .form-control:focus { border-color: #13808B; background: #fff; box-shadow: 0 0 0 3px rgba(19, 128, 139, .14); outline: 0; }
.clinical-help .help-support-hint { display: block; margin-top: 6px; color: #687D8C; font-size: 12px; line-height: 1.4; }
.clinical-help .help-support-error { display: block; margin-top: 6px; color: #AD2730; font-size: 12px; font-weight: 700; }
.clinical-help .help-support-error.hide { display: none; }
.clinical-help .help-support-details { padding: 19px; border: 1px solid #D7E3E7; border-radius: 9px; background: #F7FAFA; }
.clinical-help .help-support-details-heading { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-items: center; margin-bottom: 17px; }
.clinical-help .help-support-details-heading > .glyphicon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: #E0EFF1; color: #147889; }
.clinical-help .help-support-details-heading h3 { margin: 0 0 2px; color: #173E58; font-size: 15px; font-weight: 700; }
.clinical-help .help-support-details-heading p { margin: 0; color: #687D8C; font-size: 12px; line-height: 1.4; }
.clinical-help .help-support-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.clinical-help .help-support-other { margin-top: 9px; }
.clinical-help .help-support-other.hide { display: none; }
.clinical-help .help-support-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 2px; }
.clinical-help .help-support-actions p { margin: 0; color: #687D8C; font-size: 12px; }
.clinical-help .help-support-actions p span { color: #B42E35; }
.clinical-help .help-support-actions .button-primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 190px; min-height: 44px; margin: 0; padding: 10px 20px; border-radius: 999px; }
.clinical-help .help-support-feedback { display: flex; align-items: flex-start; gap: 12px; margin: 26px; padding: 17px 18px; border-radius: 8px; }
.clinical-help .help-support-feedback.hide { display: none; }
.clinical-help .help-support-feedback > .glyphicon { margin-top: 2px; font-size: 20px; }
.clinical-help .help-support-feedback strong { display: block; margin-bottom: 3px; }
.clinical-help .help-support-feedback p { margin: 0; }

@media (max-width: 767px) {
    .clinical-help .help-support-header { grid-template-columns: 38px minmax(0, 1fr); gap: 11px; padding: 20px; }
    .clinical-help .help-support-icon { width: 38px; height: 38px; }
    .clinical-help .help-support-header h2 { font-size: 20px; }
    .clinical-help .help-support-form-wrap { padding: 20px; }
    .clinical-help .help-support-form,
    .clinical-help .help-support-details-grid { grid-template-columns: minmax(0, 1fr); }
    .clinical-help .help-support-actions { align-items: stretch; flex-direction: column; }
    .clinical-help .help-support-actions .button-primary { width: 100%; }
    .clinical-help .help-support-feedback { margin: 20px; }
}

/* Patient encounter details */
.clinical-patient .patient-encounter-page { max-width: 1120px; margin: 28px auto 48px; color: #29495E; }
.patient-encounter-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 20px; padding: 27px 30px; border: 1px solid #CFE0E4; border-radius: 12px; background: linear-gradient(135deg, #F7FBFB 0%, #EAF5F6 100%); box-shadow: 0 10px 28px rgba(18, 55, 75, .065); }
.patient-encounter-hero-copy { min-width: 0; }
.patient-encounter-hero .clinical-eyebrow { margin: 0 0 4px; color: #087487; font-size: 11px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.patient-encounter-hero h1 { margin: 0 0 7px; color: #0B3859; font-size: 31px; font-weight: 700; line-height: 1.2; }
.patient-encounter-hero-copy > p:last-child { max-width: 570px; margin: 0; color: #5D7485; font-size: 14px; line-height: 1.5; }
.patient-encounter-meta { display: grid; grid-template-columns: repeat(3, minmax(105px, auto)); flex: 0 0 auto; margin: 0; overflow: hidden; border: 1px solid #D2E1E5; border-radius: 9px; background: rgba(255, 255, 255, .84); }
.patient-encounter-meta > div { min-width: 0; padding: 13px 16px; border-left: 1px solid #DCE7EA; }
.patient-encounter-meta > div:first-child { border-left: 0; }
.patient-encounter-meta dt { margin-bottom: 4px; color: #617889; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.patient-encounter-meta dd { margin: 0; color: #173B55; font-size: 13px; font-weight: 700; white-space: nowrap; }
.patient-encounter-meta .clinical-status { font-size: 12px; white-space: normal; }
.patient-encounter-section { overflow: hidden; margin-bottom: 20px; border: 1px solid #D2E1E5; border-radius: 11px; background: #fff; box-shadow: 0 8px 24px rgba(18, 55, 75, .05); }
.patient-encounter-section-header { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 13px; align-items: center; padding: 19px 22px; border-bottom: 1px solid #DAE5E8; background: #F7FAFA; }
.patient-encounter-section-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9px; background: #DCEFF1; color: #087487; font-size: 17px; }
.patient-encounter-section-header .clinical-eyebrow { margin: 0 0 2px; color: #087487; font-size: 10px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.patient-encounter-section-header h2 { margin: 0; color: #123E59; font-size: 20px; font-weight: 700; line-height: 1.25; }
.patient-encounter-overview > .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); gap: 0; margin: 0; }
.patient-encounter-overview > .row:before,
.patient-encounter-overview > .row:after { display: none; }
.patient-encounter-overview > .row > [class*="col-md-"] { float: none; width: auto; min-width: 0; padding: 22px; }
.patient-encounter-overview > .row > .col-md-6 + .col-md-6 { border-left: 1px solid #DAE5E8; background: #FBFDFD; }
.patient-encounter-overview > .row > .col-md-6:first-child > div { padding: 11px 0 12px; border-bottom: 1px solid #E1E9EC; }
.patient-encounter-overview > .row > .col-md-6:first-child > div:first-child { padding-top: 0; }
.patient-encounter-overview > .row > .col-md-6:first-child > div:last-child { padding-bottom: 0; border-bottom: 0; }
.patient-encounter-overview .control-label,
.patient-encounter-diagnosis .control-label { display: block; margin: 0 0 4px; color: #567084; font-size: 10px; font-weight: 700; letter-spacing: .035em; line-height: 1.35; text-transform: uppercase; }
.patient-encounter-overview .review,
.patient-encounter-diagnosis .review { display: block; color: #173B55; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.patient-encounter-overview br,
.patient-encounter-diagnosis br { display: none; }
.patient-encounter-overview h3 { margin: 0 0 15px; color: #123E59; font-size: 17px; font-weight: 700; }
.patient-encounter-overview .encounter-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.patient-encounter-overview .encounter-photo { overflow: hidden; border: 1px solid #D2E0E4; border-radius: 8px; background: #fff; }
.patient-encounter-overview .encounter-photo img,
.patient-encounter-overview .encounter-photo video { max-height: 240px; aspect-ratio: 4 / 3; background: #EEF3F4; }
.patient-encounter-overview .encounter-photo figcaption { min-height: 34px; padding: 8px 10px; color: #587083; }
.patient-encounter-overview #uploadPhotoDiv { float: none; width: 100%; margin-top: 18px; padding: 0; }
.patient-photo-request-notice { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center; margin-bottom: 12px; padding: 13px 15px; border: 1px solid #C5DEE2; border-radius: 8px; background: #EFF8F8; }
.patient-photo-request-notice > .glyphicon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #D8EFF1; color: #087487; font-size: 16px; }
.patient-photo-request-notice strong,
.patient-photo-request-notice div > span { display: block; }
.patient-photo-request-notice strong { margin-bottom: 2px; color: #173E58; font-size: 13px; }
.patient-photo-request-notice div > span { color: #587183; font-size: 12px; line-height: 1.4; }
.patient-encounter-overview #dropbox.patient-encounter-dropzone { position: relative; display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; gap: 12px; width: 100%; min-height: 170px; margin: 0; padding: 20px; overflow: hidden; border: 2px dashed #8EB5BE; border-radius: 9px; background: #F7FBFB; box-shadow: none; text-align: center; }
.patient-encounter-overview #dropbox .dz-default.dz-message { position: static; top: auto; left: auto; order: 2; display: flex; align-items: center; justify-content: center; flex: 1 0 100%; width: 100%; height: auto; min-height: 126px; margin: 0; padding: 0; background-image: none !important; opacity: 1; }
.patient-encounter-overview #dropbox .dz-preview { order: 1; max-width: 100%; }
.patient-encounter-overview #dropbox.dz-started .dz-default.dz-message { display: flex; min-height: 76px; margin-top: 2px; padding: 13px 16px; border: 1px dashed #8EB5BE; border-radius: 8px; background: #fff; opacity: 1; }
.patient-encounter-overview #dropbox .dz-message > .patient-encounter-upload-prompt { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; color: #3B6374; font-weight: 400; line-height: 1.4; }
.patient-encounter-overview #dropbox .dz-message > .patient-encounter-add-more-prompt { display: none; }
.patient-encounter-overview #dropbox.dz-started .patient-encounter-upload-prompt { display: none; }
.patient-encounter-overview #dropbox.dz-started .patient-encounter-add-more-prompt { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; color: #3B6374; text-align: left; }
.patient-encounter-add-more-prompt > .glyphicon { display: inline-flex !important; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #DCEFF1; color: #087487; font-size: 15px; }
.patient-encounter-add-more-prompt > span:not(.glyphicon) { display: block !important; }
.patient-encounter-add-more-prompt strong,
.patient-encounter-add-more-prompt small { display: block; }
.patient-encounter-add-more-prompt strong { color: #244E64; font-size: 13px; }
.patient-encounter-add-more-prompt small { margin-top: 2px; color: #6C818F; font-size: 11px; font-weight: 400; }
.patient-encounter-upload-prompt > .glyphicon { display: inline-flex !important; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 5px; border-radius: 50%; background: #DCEFF1; color: #087487; font-size: 20px; }
.patient-encounter-upload-prompt strong { display: block !important; color: #244E64; font-size: 13px; }
.patient-encounter-upload-prompt small { display: block; color: #6C818F; font-size: 11px; font-weight: 400; }
.patient-encounter-diagnosis > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin: 0; padding: 10px 22px 18px; }
.patient-encounter-diagnosis > .row:before,
.patient-encounter-diagnosis > .row:after { display: none; }
.patient-encounter-diagnosis > .row > .form-group { min-width: 0; margin: 0; }
.patient-encounter-diagnosis > .row > .form-group > [class*="col-md-"] { float: none; width: 100%; padding: 0; }
.patient-encounter-diagnosis > .row > .form-group > [class*="col-md-"] > div { min-height: 100%; padding: 13px 0 14px; border-bottom: 1px solid #E1E9EC; }
.patient-encounter-followup { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; margin: 0 22px 22px; padding: 17px 18px; border: 1px solid #BFDDE0; border-radius: 9px; background: #EFF8F8; }
.patient-encounter-followup > .glyphicon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #D7EFF0; color: #087487; }
.patient-encounter-followup h3 { margin: 1px 0 4px; color: #123E59; font-size: 15px; font-weight: 700; }
.patient-encounter-followup p { margin: 0; color: #476477; line-height: 1.5; }
.patient-encounter-message-note { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; margin-bottom: 20px; padding: 18px 20px; border: 1px solid #D4E1E5; border-radius: 10px; background: #F7FAFA; }
.patient-encounter-message-note > .glyphicon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #E1F0F1; color: #087487; }
.patient-encounter-message-note strong { display: block; margin: 1px 0 3px; color: #173E58; }
.patient-encounter-message-note p { margin: 0; color: #5F7686; font-size: 13px; line-height: 1.5; }
.patient-encounter-progress { height: 4px; margin: -20px 0 20px; overflow: hidden; border: 0; border-radius: 0 0 6px 6px; background: #E4ECEF; box-shadow: none; }
.patient-encounter-progress .progress-bar { background-color: #168A98; }
.patient-encounter-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.patient-encounter-actions > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.patient-encounter-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0; padding: 10px 20px; border-radius: 999px; }
.clinical-patient .patient-encounter-modal .modal-dialog { width: calc(100% - 32px); max-width: 700px; margin: 32px auto; }
.clinical-patient .patient-encounter-modal .modal-content { overflow: hidden; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(11, 46, 79, .24); }
.clinical-patient .patient-encounter-modal .modal-header { position: relative; min-height: 106px; padding: 18px 72px 17px 24px; border-bottom: 1px solid #D7E4E7; background: linear-gradient(135deg, #F6FBFB, #EAF5F6); }
.clinical-patient .patient-message-modal-heading { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 13px; align-items: start; }
.clinical-patient .patient-message-modal-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: #D8EFF1; color: #087487; font-size: 18px; }
.clinical-patient .patient-encounter-modal .modal-header .clinical-eyebrow { margin: 0 0 3px; color: #087487; font-size: 10px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.clinical-patient .patient-encounter-modal .modal-title { margin: 0; color: #0B3859; font-size: 21px; font-weight: 700; line-height: 1.3; }
.clinical-patient .patient-message-modal-heading .modal-title + p { margin: 4px 0 0; color: #5F7686; font-size: 12px; line-height: 1.4; }
.clinical-patient .patient-encounter-modal .modal-header .close { position: absolute; top: 15px; right: 16px; display: inline-flex; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 42px; padding: 0; border: 1px solid #CBD9DE; border-radius: 50%; background: #fff; color: #315268; font-size: 24px; font-weight: 400; }
.clinical-patient .patient-encounter-modal .modal-header .close:hover,
.clinical-patient .patient-encounter-modal .modal-header .close:focus { border-color: #9DB8C0; background: #EAF4F5; color: #123E59; outline: 0; }
.clinical-patient .patient-encounter-modal .modal-body { max-height: calc(100vh - 210px); padding: 24px; overflow-y: auto; background: #fff; color: #354F62; }
.clinical-patient .patient-encounter-modal .modal-body .form-group { margin: 0; }
.clinical-patient .patient-encounter-modal .modal-body .control-label { display: block; margin: 0 0 7px; color: #24465D; font-size: 13px; font-weight: 700; text-align: left; }
.clinical-patient .patient-encounter-modal .modal-body .form-control { width: 100%; min-height: 118px; border-color: #BBCDD5; border-radius: 7px; resize: vertical; box-shadow: none; }
.clinical-patient .patient-encounter-modal .modal-body .form-control:focus { border-color: #13808B; box-shadow: 0 0 0 3px rgba(19, 128, 139, .14); }
.clinical-patient .patient-message-compose { padding: 2px; }
.clinical-patient .patient-message-help { display: block; margin-top: 7px; color: #657C8C; font-size: 12px; line-height: 1.4; }
.clinical-patient .patient-message-error { display: block; margin-top: 7px; color: #AD2730; font-size: 12px; font-weight: 700; }
.clinical-patient .patient-message-error.hide { display: none; }
.clinical-patient .patient-message-status { margin: 14px 0 0; padding: 11px 13px; border-radius: 7px; font-size: 12px; }
.clinical-patient .patient-message-status.hide { display: none; }
.clinical-patient .patient-encounter-modal .modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 70px; padding: 14px 24px; border-top: 1px solid #D7E4E7; background: #FBFDFD; }
.clinical-patient .patient-encounter-modal .modal-footer:before,
.clinical-patient .patient-encounter-modal .modal-footer:after { display: none; }
.clinical-patient .patient-encounter-modal .modal-footer .btn { min-width: 118px; min-height: 42px; margin: 0; border-radius: 999px; }
.clinical-patient .patient-encounter-modal .modal-footer .btn[disabled] { cursor: wait; opacity: .72; }
.clinical-patient .patient-encounter-modal #readMessage { max-height: 390px; padding: 20px 24px; overflow-y: auto; background: #F4F8F9; }
.clinical-patient .patient-encounter-modal .message-thread { display: flex; align-items: flex-start; flex-direction: column; gap: 13px; }
.clinical-patient .patient-encounter-modal .message-thread-item { max-width: 84%; padding: 13px 15px; border: 1px solid #D2E0E4; border-radius: 6px 14px 14px 14px; background: #fff; box-shadow: 0 3px 10px rgba(18, 55, 75, .045); }
.clinical-patient .patient-encounter-modal .message-thread-item-patient { align-self: flex-end; border-color: #ADD3D8; border-radius: 14px 6px 14px 14px; background: #E7F4F5; }
.clinical-patient .patient-encounter-modal .message-thread-item-employee { border-color: #DED4BC; background: #FBF8F1; }
.clinical-patient .patient-encounter-modal .message-thread-heading { align-items: center; gap: 7px 18px; }
.clinical-patient .patient-encounter-modal .message-thread-author { display: inline-flex; align-items: center; gap: 7px; color: #173E58; font-size: 12px; }
.clinical-patient .patient-encounter-modal .message-thread-author > .glyphicon { color: #16808C; font-size: 12px; }
.clinical-patient .patient-encounter-modal .message-thread-heading time { color: #718391; font-size: 10px; white-space: nowrap; }
.clinical-patient .patient-encounter-modal .message-thread-text { margin-top: 7px; color: #29495E; font-size: 13px; line-height: 1.5; }
.clinical-patient .patient-encounter-modal .message-reply-footer { padding: 18px 24px; background: #fff; }
.clinical-patient .patient-encounter-modal .message-reply-compose { margin-bottom: 15px; }
.clinical-patient .patient-encounter-modal .message-reply-compose textarea { min-height: 92px; border: 1px solid #BBCDD5; border-radius: 7px; box-shadow: none; }
.clinical-patient .patient-encounter-modal .message-reply-compose textarea:focus { border-color: #13808B; box-shadow: 0 0 0 3px rgba(19, 128, 139, .14); outline: 0; }
.clinical-patient .patient-encounter-modal .message-reply-actions .btn { min-width: 118px; min-height: 42px; margin: 0; border-radius: 999px; }

@media (max-width: 900px) {
    .patient-encounter-hero { align-items: stretch; flex-direction: column; }
    .patient-encounter-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
}

@media (max-width: 767px) {
    .clinical-patient .patient-encounter-page { margin-top: 20px; }
    .patient-encounter-hero { gap: 20px; padding: 22px 20px; }
    .patient-encounter-hero h1 { font-size: 27px; }
    .patient-encounter-meta { grid-template-columns: minmax(0, 1fr); }
    .patient-encounter-meta > div { border-top: 1px solid #DCE7EA; border-left: 0; }
    .patient-encounter-meta > div:first-child { border-top: 0; }
    .patient-encounter-section-header { padding: 17px 18px; }
    .patient-encounter-overview > .row,
    .patient-encounter-diagnosis > .row { grid-template-columns: minmax(0, 1fr); }
    .patient-encounter-overview > .row > [class*="col-md-"] { padding: 19px; }
    .patient-encounter-overview > .row > .col-md-6 + .col-md-6 { border-top: 1px solid #DAE5E8; border-left: 0; }
    .patient-encounter-diagnosis > .row { padding-right: 19px; padding-left: 19px; }
    .patient-encounter-overview .encounter-photo-grid { grid-template-columns: minmax(0, 1fr); }
    .patient-encounter-actions { align-items: stretch; flex-direction: column-reverse; }
    .patient-encounter-actions > div { align-items: stretch; flex-direction: column; }
    .patient-encounter-actions .btn { width: 100%; }
    .clinical-patient .patient-encounter-modal .modal-dialog { width: calc(100% - 24px); margin: 12px auto; }
    .clinical-patient .patient-encounter-modal .modal-header { min-height: 98px; padding: 16px 62px 15px 18px; }
    .clinical-patient .patient-message-modal-heading { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
    .clinical-patient .patient-message-modal-icon { width: 38px; height: 38px; }
    .clinical-patient .patient-message-modal-heading .modal-title + p { display: none; }
    .clinical-patient .patient-encounter-modal #readMessage { padding: 16px; }
    .clinical-patient .patient-encounter-modal .message-thread-item { max-width: 94%; }
    .clinical-patient .patient-encounter-modal .message-thread-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .clinical-patient .patient-encounter-modal .message-reply-footer { padding: 16px; }
    .clinical-patient .patient-encounter-modal .message-reply-actions { align-items: stretch; flex-direction: column-reverse; }
    .clinical-patient .patient-encounter-modal .message-reply-actions .btn { width: 100%; }
}

/* Support case details */
.clinical-patient .support-case-page { max-width: 1000px; margin: 10px auto 0; }
.support-case-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 20px; padding: 28px 30px; border: 1px solid #CFE0E4; border-radius: 12px; background: linear-gradient(135deg, #F8FCFC, #EAF5F6); }
.support-case-hero .clinical-eyebrow,
.support-case-card-header .clinical-eyebrow { margin: 0 0 4px; color: #087487; font-size: 11px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.support-case-hero h1 { margin: 0; color: #0B3859; font-size: 30px; font-weight: 700; line-height: 1.2; }
.support-case-hero h1 + p { max-width: 600px; margin: 8px 0 0; color: #557083; font-size: 14px; line-height: 1.55; }
.support-case-status { flex: 0 0 auto; min-width: 150px; padding: 13px 17px; border: 1px solid #BFD9DE; border-radius: 9px; background: rgba(255, 255, 255, .86); text-align: center; }
.support-case-status span { display: block; margin-bottom: 3px; color: #667E8E; font-size: 10px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.support-case-status strong { color: #087487; font-size: 15px; }
.support-case-card { margin-bottom: 20px; overflow: hidden; border: 1px solid #D2E0E4; border-radius: 11px; background: #fff; box-shadow: 0 8px 22px rgba(17, 57, 79, .045); }
.support-case-card-header { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 18px 22px; border-bottom: 1px solid #DCE7EA; background: #F8FBFB; }
.support-case-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9px; background: #D9EFF1; color: #087487; font-size: 16px; }
.support-case-card-header h2 { margin: 0; color: #123E59; font-size: 19px; font-weight: 700; line-height: 1.3; }
.support-case-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; margin: 0; padding: 10px 22px 20px; }
.support-case-details > div { min-width: 0; padding: 13px 2px 12px; border-bottom: 1px solid #E1E9EC; }
.support-case-details dt { margin: 0 0 4px; color: #567084; font-size: 10px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.support-case-details dd { margin: 0; color: #173B55; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.support-case-thread { display: flex; align-items: flex-start; flex-direction: column; gap: 13px; min-height: 150px; padding: 22px; background: #F4F8F9; }
.support-case-message { max-width: 82%; padding: 13px 15px; border: 1px solid #D2E0E4; border-radius: 6px 14px 14px 14px; background: #fff; box-shadow: 0 3px 10px rgba(18, 55, 75, .045); }
.support-case-message-patient { align-self: flex-end; border-color: #ADD3D8; border-radius: 14px 6px 14px 14px; background: #E7F4F5; }
.support-case-message header { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.support-case-message header strong { color: #173E58; font-size: 12px; }
.support-case-message time { color: #718391; font-size: 10px; white-space: nowrap; }
.support-case-message p { margin: 7px 0 0; color: #29495E; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.support-case-empty { width: 100%; padding: 24px; color: #617989; text-align: center; }
.support-case-empty > .glyphicon { display: block; margin-bottom: 9px; color: #81A7AF; font-size: 25px; }
.support-case-empty strong { display: block; margin-bottom: 3px; color: #315268; }
.support-case-empty p { margin: 0; font-size: 13px; }
.support-case-reply { padding: 22px; border-top: 1px solid #DCE7EA; background: #fff; }
.support-case-reply .control-label { display: block; margin: 0 0 7px; color: #24465D; font-size: 13px; font-weight: 700; }
.support-case-reply .form-control { min-height: 118px; border-color: #BBCDD5; border-radius: 7px; resize: vertical; box-shadow: none; }
.support-case-reply .form-control:focus { border-color: #13808B; box-shadow: 0 0 0 3px rgba(19, 128, 139, .14); }
.support-case-field-help,
.support-case-error { display: block; margin-top: 7px; color: #657C8C; font-size: 12px; line-height: 1.4; }
.support-case-error { color: #AD2730; font-weight: 700; }
.support-case-progress { height: 4px; margin: 16px 0 0; border: 0; border-radius: 999px; background: #E4ECEF; box-shadow: none; }
.support-case-progress .progress-bar { background-color: #168A98; }
.support-case-feedback { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 11px 13px; border-radius: 7px; font-size: 12px; }
.support-case-feedback.hide { display: none; }
.support-case-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.support-case-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 150px; min-height: 44px; margin: 0; border-radius: 999px; }
.support-case-actions .btn[disabled] { cursor: wait; opacity: .72; }

/* Account security */
.clinical-account .account-manage-page { max-width: 1000px; margin: 10px auto 0; }
.account-manage-hero { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 20px; padding: 27px 30px; border: 1px solid #CFE0E4; border-radius: 12px; background: linear-gradient(135deg, #F8FCFC, #EAF5F6); }
.account-manage-hero-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 11px; background: #D5EEF0; color: #087487; font-size: 20px; }
.account-manage-hero .clinical-eyebrow,
.account-manage-card-header .clinical-eyebrow { margin: 0 0 4px; color: #087487; font-size: 11px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.account-manage-hero h1 { margin: 0; color: #0B3859; font-size: 30px; font-weight: 700; line-height: 1.2; }
.account-manage-hero h1 + p { margin: 7px 0 0; color: #557083; font-size: 14px; line-height: 1.5; }
.account-manage-status { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; border-radius: 8px; }
.account-manage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.account-manage-card { overflow: hidden; border: 1px solid #D2E0E4; border-radius: 11px; background: #fff; box-shadow: 0 8px 22px rgba(17, 57, 79, .045); }
.account-manage-card-header { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid #DCE7EA; background: #F8FBFB; }
.account-manage-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 9px; background: #D9EFF1; color: #087487; font-size: 16px; }
.account-manage-card-header h2 { margin: 0; color: #123E59; font-size: 19px; font-weight: 700; }
.account-manage-card-body { padding: 22px; }
.account-security-intro { margin: 0 0 18px; color: #587083; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.account-security-form .form-group { margin: 0 0 16px; }
.account-security-form .control-label { display: block; margin: 0 0 7px; color: #24465D; font-size: 13px; font-weight: 700; text-align: left; }
.account-security-form .form-control { width: 100%; height: 44px; border-color: #BBCDD5; border-radius: 7px; box-shadow: none; }
.account-security-form .form-control:focus { border-color: #13808B; box-shadow: 0 0 0 3px rgba(19, 128, 139, .14); }
.account-security-form .field-validation-error { display: block; margin-top: 5px; font-size: 12px; }
.account-validation-summary { margin-bottom: 16px; padding: 11px 13px; border: 1px solid #E7C9CC; border-radius: 7px; background: #FFF7F7; font-size: 12px; }
.account-validation-summary.validation-summary-valid { display: none; }
.account-validation-summary ul { margin: 0; padding-left: 18px; }
.account-password-rules { position: static; width: 100%; margin: -2px 0 16px; padding: 14px 16px; border: 1px solid #BFDDE0; border-radius: 8px; background: #F0F8F8; box-shadow: none; }
.account-password-rules h3 { margin: 0 0 9px; color: #24465D; font-size: 13px; font-weight: 700; }
.account-password-rules ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 16px; margin: 0; padding: 0; list-style: none; }
.account-password-rules li { position: relative; padding-left: 18px; color: #667C8A; font-size: 11px; line-height: 1.4; }
.account-password-rules li:before { position: absolute; left: 0; content: "\2022"; color: #9AAAB4; font-weight: 700; }
.account-password-rules li.password_valid { color: #16715C; }
.account-password-rules li.password_valid:before { content: "\2713"; color: #16866E; }
.account-security-actions { display: flex; justify-content: flex-end; padding-top: 3px; }
.account-security-actions .btn { min-width: 150px; min-height: 44px; border-radius: 999px; }
.account-security-notice { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; margin: 0 0 18px; padding: 12px 14px; border: 1px solid #CFE0E4; border-radius: 8px; background: #F3F8F9; color: #557083; }
.account-security-notice > .glyphicon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #D9EFF1; color: #087487; }
.account-security-notice p { margin: 0; font-size: 12px; line-height: 1.45; }
.account-login-section + .account-login-section { margin-top: 24px; padding-top: 23px; border-top: 1px solid #DCE7EA; }
.account-login-section-heading { margin-bottom: 14px; }
.account-login-section-heading h3 { margin: 0; color: #173E58; font-size: 15px; font-weight: 700; }
.account-login-section-heading p { margin: 4px 0 0; color: #657C8C; font-size: 12px; line-height: 1.45; }
.account-login-list { overflow: hidden; border: 1px solid #D5E1E5; border-radius: 8px; }
.account-login-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; background: #FBFDFD; }
.account-login-row + .account-login-row { border-top: 1px solid #E1E9EC; }
.account-login-row > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-login-provider-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px; background: #E2F1F2; color: #087487; }
.account-login-row strong,
.account-login-row small { display: block; }
.account-login-row strong { color: #24465D; font-size: 13px; }
.account-login-row small { color: #708391; font-size: 10px; }
.account-remove-login-form { flex: 0 0 auto; margin: 0; }
.account-remove-login-form .btn { min-height: 36px; margin: 0; padding: 7px 13px; border-radius: 999px; font-size: 12px; }
.account-login-empty { margin: 0; padding: 13px 14px; border: 1px dashed #C9D9DE; border-radius: 8px; color: #657C8C; background: #FAFCFC; font-size: 12px; }
.account-login-empty-notice { margin-bottom: 0; }
.account-social-login-list { display: grid; gap: 9px; }
.account-social-login-list .btn-social { min-height: 43px; margin: 0; border-radius: 8px; font-size: 13px; text-align: left; }
.account-login-privacy { margin: 13px 0 0; color: #718391; font-size: 11px; line-height: 1.5; }

/* Payment result states */
.payment-state-page { display: flex; justify-content: center; padding: 30px 0 50px; }
.payment-state-card { width: 100%; max-width: 650px; padding: 40px 42px; border: 1px solid #D2E0E4; border-radius: 13px; background: #fff; box-shadow: 0 12px 34px rgba(17, 57, 79, .075); text-align: center; }
.payment-state-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 18px; border-radius: 50%; font-size: 25px; }
.payment-state-card-neutral .payment-state-icon { background: #E3F0F2; color: #147682; }
.payment-state-card-error .payment-state-icon { background: #FCEBEC; color: #B3343C; }
.payment-state-card .clinical-eyebrow { margin: 0 0 5px; color: #087487; font-size: 11px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.payment-state-card-error .clinical-eyebrow { color: #A42C35; }
.payment-state-card h1 { margin: 0; color: #0B3859; font-size: 29px; font-weight: 700; line-height: 1.25; }
.payment-state-message { max-width: 510px; margin: 11px auto 0; color: #557083; font-size: 14px; line-height: 1.6; }
.payment-state-note { display: inline-flex; align-items: center; gap: 9px; margin: 22px auto 0; padding: 11px 14px; border: 1px solid #CFE0E4; border-radius: 8px; background: #F4F9F9; color: #466779; font-size: 12px; line-height: 1.45; text-align: left; }
.payment-state-note > .glyphicon { color: #16808C; }
.payment-state-card-error .payment-state-note { border-color: #E7D6C7; background: #FCF9F4; }
.payment-state-card-error .payment-state-note > .glyphicon { color: #A56A24; }
.payment-state-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.payment-state-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-width: 175px; min-height: 44px; margin: 0; border-radius: 999px; }

@media (max-width: 767px) {
    .support-case-hero { align-items: stretch; flex-direction: column; padding: 22px 20px; }
    .support-case-hero h1,
    .account-manage-hero h1 { font-size: 27px; }
    .support-case-status { width: 100%; }
    .support-case-details,
    .account-manage-grid { grid-template-columns: minmax(0, 1fr); }
    .support-case-message { max-width: 94%; }
    .support-case-message header { align-items: flex-start; flex-direction: column; gap: 3px; }
    .support-case-actions { align-items: stretch; flex-direction: column-reverse; }
    .support-case-actions .btn { width: 100%; }
    .account-manage-hero { grid-template-columns: 44px minmax(0, 1fr); padding: 22px 20px; }
    .account-manage-hero-icon { width: 44px; height: 44px; }
    .account-password-rules ul { grid-template-columns: minmax(0, 1fr); }
    .account-security-actions .btn { width: 100%; }
    .payment-state-page { padding-top: 12px; }
    .payment-state-card { padding: 30px 20px; }
    .payment-state-card h1 { font-size: 26px; }
    .payment-state-actions { align-items: stretch; flex-direction: column; }
    .payment-state-actions .btn { width: 100%; }
}

/* Provider dashboard */
.clinical-provider .clinical-page-index { max-width: 1380px !important; }
.provider-dashboard-page { width: 100%; }
.provider-dashboard-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 36px; margin-bottom: 20px; padding: 30px 32px 0; overflow: hidden; border: 1px solid #CBE0E3; border-radius: 12px; background: linear-gradient(125deg, #F4FBFB, #E2F2F3); box-shadow: 0 14px 34px rgba(18, 55, 75, .07); }
.provider-dashboard-identity { display: flex; align-items: center; gap: 20px; min-width: 0; }
.provider-dashboard-avatar { width: 72px; height: 72px; flex: 0 0 72px; border: 3px solid #fff; border-radius: 50%; object-fit: cover; background: #E3EAED; box-shadow: 0 4px 14px rgba(20, 64, 82, .14); }
.provider-dashboard-identity .clinical-eyebrow,
.provider-section-heading .clinical-eyebrow,
.provider-queue-header .clinical-eyebrow,
.provider-messages-header .clinical-eyebrow,
.provider-modal-heading .clinical-eyebrow { margin: 0 0 5px; color: #157581; font-size: 11px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.provider-dashboard-identity h1 { margin: 0 0 5px; color: #0B2E4F; font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.provider-dashboard-identity > div > p:not(.clinical-eyebrow) { max-width: 640px; margin: 0; color: #506B7D; font-size: 14px; line-height: 1.5; }
.provider-dashboard-name { display: block; margin-top: 5px; color: #6A7D8C; font-size: 12px; }
.provider-dashboard-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.provider-dashboard-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0; border-radius: 999px; }
.provider-dashboard-actions .badge { min-width: 22px; padding: 4px 7px; border-radius: 999px; background: #DCEEF0; color: #0B6876; font-size: 11px; }
.provider-dashboard-actions .button-primary .badge { background: rgba(255, 255, 255, .22); color: #fff; }
.provider-dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); grid-column: 1 / -1; margin: 4px -32px 0; border-top: 1px solid #CBE0E3; background: rgba(255, 255, 255, .68); }
.provider-dashboard-stats > a { display: flex; align-items: baseline; justify-content: center; gap: 9px; padding: 15px 20px; color: inherit; text-align: center; text-decoration: none; }
.provider-dashboard-stats > a + a { border-left: 1px solid #CBE0E3; }
.provider-dashboard-stats > a:hover,
.provider-dashboard-stats > a:focus { background: #E7F4F5; color: inherit; text-decoration: none; }
.provider-dashboard-stats .provider-stat-label { color: #587184; font-size: 13px; font-weight: 500; }
.provider-dashboard-stats .provider-stat-count { color: #0B3C59; font-size: 23px; font-weight: 700; line-height: 1; }
.provider-dashboard-stats .provider-stat-attention .provider-stat-count { color: #AA3039; }
.provider-dashboard-alerts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.provider-dashboard-alerts:empty { display: none; }
.provider-account-alert { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; align-items: start; min-width: 0; padding: 16px 18px; border: 1px solid #E6D3A5; border-radius: 9px; background: #FFF8E8; color: #684A13; }
.provider-account-alert:only-child { grid-column: 1 / -1; }
.provider-account-alert-success { border-color: #BFDCCE; background: #EFF8F3; color: #245C43; }
.provider-account-alert-danger { border-color: #E6C3C7; background: #FFF1F2; color: #852C34; }
.provider-alert-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 9px; background: #F4E6BF; color: #8A6117; font-size: 17px; }
.provider-account-alert-success .provider-alert-icon { background: #D8EEDF; color: #28704D; }
.provider-account-alert-danger .provider-alert-icon { background: #F6DDE0; color: #A22E38; }
.provider-account-alert strong { display: block; margin: 1px 0 3px; color: #5F4417; font-size: 14px; }
.provider-account-alert-success strong { color: #245C43; }
.provider-account-alert-danger strong { color: #852C34; }
.provider-account-alert p { margin: 0; font-size: 12px; line-height: 1.5; }
.provider-alert-actions { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 8px; }
.provider-alert-actions a { color: #775111; font-size: 12px; font-weight: 700; text-decoration: underline; }
.provider-confirmation-entry { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.provider-confirmation-entry .form-control { width: 190px; min-height: 40px; }
.provider-confirmation-entry .btn { min-height: 40px; margin: 0; padding: 8px 14px; border-radius: 999px; }
.provider-dashboard-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(310px, 360px); gap: 20px; align-items: start; }
.provider-worklist { min-width: 0; padding: 24px; border: 1px solid #D8E3E7; border-radius: 10px; background: #fff; box-shadow: 0 7px 22px rgba(18, 55, 75, .045); }
.provider-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 0 0 18px; }
.provider-section-heading h2 { margin: 0; color: #0B3859; font-size: 22px; font-weight: 700; }
.provider-section-heading h2 + p { margin: 5px 0 0; color: #627988; font-size: 13px; line-height: 1.5; }
.provider-queue-card { margin: 0 0 16px; overflow: hidden; border: 1px solid #D5E2E6; border-radius: 9px; background: #fff; }
.provider-queue-header { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 15px 17px; border-bottom: 1px solid #DFE9EC; background: #F6FAFA; }
.provider-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background: #DDF0F1; color: #087487; font-size: 16px; }
.provider-queue-header h3,
.provider-messages-header h2 { margin: 0; color: #153E59; font-size: 17px; font-weight: 700; line-height: 1.25; }
.provider-queue-header .queue-count,
.provider-message-count { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; margin: 0; padding: 0 8px; border-radius: 999px; background: #E4F2F3; color: #0A6878; font-size: 13px; font-weight: 700; }
.provider-queue-card .queue-tools { align-items: flex-end; justify-content: space-between; gap: 14px; margin: 0; padding: 14px 17px; border-bottom: 1px solid #E1E9EC; background: #FBFDFD; }
.provider-queue-card .queue-search { flex: 1 1 300px; width: auto; max-width: 430px; }
.provider-queue-card .queue-search > label { display: block; margin: 0 0 6px; color: #516B7D; font-size: 11px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
.provider-queue-search-control { position: relative; }
.provider-queue-search-control > .glyphicon { position: absolute; top: 50%; left: 13px; z-index: 2; color: #718693; transform: translateY(-50%); }
.provider-queue-search-control .form-control { height: 42px; padding-left: 38px; border-color: #BCCDD4; border-radius: 7px; }
.provider-queue-card .queue-overdue { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; margin: 0; padding: 8px 12px; border: 1px solid #D2DEE2; border-radius: 7px; background: #fff; color: #39576B; font-size: 12px; font-weight: 600; }
.provider-queue-card .queue-overdue input { flex: 0 0 18px; margin: 0; }
.provider-queue-table-wrap { overflow-x: auto; border: 0; border-radius: 0; }
.provider-queue-table { width: 100%; margin: 0; }
.clinical-app .provider-queue-table > thead > tr > th { padding: 10px 12px; background: #F4F7F8; color: #5B7081; font-size: 11px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
.clinical-app .provider-queue-table > tbody > tr > td { padding: 13px 12px; color: #314E62; font-size: 13px; vertical-align: middle; }
.provider-queue-table td:first-child a { color: #075D9D; font-weight: 700; }
.provider-queue-table .clinical-status { padding: 5px 8px; border-radius: 999px; font-size: 11px; white-space: nowrap; }
.provider-queue-table .status-overdue { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 10px; }
.provider-queue-table .queue-action { text-align: right; white-space: nowrap; }
.provider-queue-table .queue-action .btn { min-width: 76px; min-height: 36px; margin: 0; padding: 7px 13px; border-radius: 999px; font-size: 12px; }
.provider-queue-card .queue-empty { padding: 30px 20px; border: 0; background: #FBFDFD; text-align: center; }
.provider-queue-card .queue-empty > * { display: block; }
.provider-queue-card .queue-empty > .glyphicon { margin-bottom: 8px; color: #79A5AD; font-size: 23px; }
.provider-queue-card .queue-empty strong { margin-bottom: 3px; color: #365568; font-size: 13px; }
.provider-queue-card .queue-empty strong + span { color: #708391; font-size: 12px; }
.provider-queue-card .queue-pagination { margin: 0; padding: 11px 15px; border-top: 1px solid #E1E9EC; background: #FBFDFD; }
.provider-queue-card .queue-page-buttons { gap: 8px; }
.provider-queue-card .queue-page-buttons button { width: 36px; height: 36px; min-height: 36px; border-radius: 50%; }
.provider-closed-cases { overflow: hidden; border: 1px solid #D5E2E6; border-radius: 9px; background: #fff; }
.provider-closed-cases > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 14px 17px; color: #24485F; background: #F7FAFA; font-size: 15px; font-weight: 700; list-style: none; }
.provider-closed-cases > summary::-webkit-details-marker { display: none; }
.provider-closed-cases > summary > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.provider-closed-cases > summary > span:first-child:after { content: "\e114"; font-family: 'Glyphicons Halflings'; color: #65808F; font-size: 10px; transition: transform .18s ease; }
.provider-closed-cases[open] > summary > span:first-child:after { transform: rotate(180deg); }
.provider-closed-cases .provider-queue-card { margin: 0; border-width: 1px 0 0; border-radius: 0; }
.provider-closed-cases .provider-queue-header { display: none; }
.provider-messages-card { position: sticky; top: 18px; min-width: 0; overflow: hidden; padding: 0; border: 1px solid #D8E3E7; border-radius: 10px; background: #fff; box-shadow: 0 7px 22px rgba(18, 55, 75, .045); }
.provider-messages-header { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 17px; border-bottom: 1px solid #DFE9EC; background: #F6FAFA; }
.provider-messages-card #messageFeedback { margin: 14px; padding: 11px 13px; border-radius: 7px; font-size: 12px; }
.provider-messages-empty { padding: 36px 20px; text-align: center; }
.provider-messages-empty > * { display: block; }
.provider-messages-empty > .glyphicon { margin-bottom: 9px; color: #4E9A82; font-size: 25px; }
.provider-messages-empty strong { margin-bottom: 4px; color: #29495E; }
.provider-messages-empty p { margin: 0; color: #687B8B; font-size: 12px; }
.provider-message-table-wrap { width: 100%; overflow-x: auto; }
.provider-message-table { width: 100%; margin: 0; }
.clinical-app .provider-message-table > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.clinical-app .provider-message-table > tbody > tr { display: grid; grid-template-columns: 44px minmax(0, 1fr) 42px; gap: 2px 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #E0E8EB; }
.clinical-app .provider-message-table > tbody > tr:last-child { border-bottom: 0; }
.clinical-app .provider-message-table > tbody > tr.provider-message-unread { background: #F0F8F9; }
.clinical-app .provider-message-table > tbody > tr > td { display: block; padding: 2px 0; border: 0; color: #355368; font-size: 12px; }
.provider-message-table td[data-label="Message"] { grid-column: 1; grid-row: 1 / span 2; }
.provider-message-table td[data-label="Date"] { grid-column: 2; grid-row: 2; color: #718391; font-size: 10px; }
.provider-message-table td[data-label="Patient"] { grid-column: 2; grid-row: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.provider-message-table .provider-message-actions { grid-column: 3; grid-row: 1 / span 2; }
.provider-message-table .message-read,
.provider-message-table .message-delete { display: inline-flex; align-items: center; justify-content: center; width: 38px; min-width: 38px; height: 38px; min-height: 38px; margin: 0; padding: 0; border-radius: 50%; }
.provider-message-table .message-read { border-color: transparent; background: transparent; color: #087487; }
.provider-message-table .message-read:hover { background: #DFF0F1; }
.provider-message-table .message-delete { color: #A52D37; }
.provider-message-pagination { padding: 10px 12px; border-top: 1px solid #E0E8EB; text-align: center; }
.provider-message-pagination .pagination { margin: 0; }

/* Provider dashboard modals */
.clinical-provider .clinical-page-index .provider-dashboard-modal .modal-dialog { width: calc(100% - 32px); max-width: 720px; margin: 30px auto; }
.clinical-provider .clinical-page-index .provider-profile-modal .modal-dialog { max-width: 1120px; }
.clinical-provider .clinical-page-index .provider-delete-modal .modal-dialog { max-width: 520px; }
.clinical-provider .clinical-page-index .provider-dashboard-modal .modal-content { overflow: hidden; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(11, 46, 79, .24); }
.clinical-provider .clinical-page-index .provider-dashboard-modal .modal-header { position: relative; min-height: 104px; padding: 18px 72px 17px 24px; border-bottom: 1px solid #D7E4E7; background: linear-gradient(135deg, #F6FBFB, #EAF5F6); }
.provider-modal-heading { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 13px; align-items: start; }
.provider-modal-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: #D8EFF1; color: #087487; font-size: 18px; }
.provider-modal-icon-danger { background: #F9E5E7; color: #AE303A; }
.clinical-provider .clinical-page-index .provider-dashboard-modal .modal-title { margin: 0; color: #0B3859; font-size: 21px; font-weight: 700; line-height: 1.3; }
.provider-modal-heading .modal-title + p { margin: 4px 0 0; color: #5F7686; font-size: 12px; line-height: 1.4; }
.clinical-provider .clinical-page-index .provider-dashboard-modal .modal-header .close { position: absolute; top: 15px; right: 16px; display: inline-flex; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 42px; padding: 0; border: 1px solid #CBD9DE; border-radius: 50%; background: #fff; color: #315268; font-size: 24px; font-weight: 400; }
.clinical-provider .clinical-page-index .provider-dashboard-modal .modal-header .close:hover,
.clinical-provider .clinical-page-index .provider-dashboard-modal .modal-header .close:focus { border-color: #9DB8C0; background: #EAF4F5; color: #123E59; outline: 0; }
.clinical-provider .clinical-page-index .provider-dashboard-modal .modal-body { max-height: calc(100vh - 210px); padding: 24px; overflow-x: hidden; overflow-y: auto; background: #fff; color: #354F62; }
.clinical-provider .clinical-page-index .provider-dashboard-modal .modal-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; min-height: 70px; padding: 14px 24px; border-top: 1px solid #D7E4E7; background: #FBFDFD; }
.clinical-provider .clinical-page-index .provider-dashboard-modal .modal-footer:before,
.clinical-provider .clinical-page-index .provider-dashboard-modal .modal-footer:after { display: none; }
.clinical-provider .clinical-page-index .provider-dashboard-modal .modal-footer .btn { min-width: 118px; min-height: 42px; margin: 0; border-radius: 999px; }
.clinical-provider .clinical-page-index .provider-dashboard-modal .modal-footer .btn[disabled] { cursor: wait; opacity: .72; }
.provider-profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: start; }
.provider-profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.provider-profile-section { min-width: 0; padding: 19px; border: 1px solid #D8E4E7; border-radius: 9px; background: #fff; }
.provider-profile-section:first-child { grid-column: 1 / -1; }
.provider-profile-section h3,
.provider-profile-photo h3 { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid #DEE7EA; color: #123E59; font-size: 15px; font-weight: 700; }
.provider-profile-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.provider-profile-field-wide { grid-column: 1 / -1; }
.provider-profile-section .form-group { min-width: 0; margin: 0; }
.provider-profile-section .control-label,
.provider-profile-photo .control-label { display: block; margin: 0 0 6px; color: #24465D; font-size: 12px; font-weight: 700; text-align: left; }
.provider-profile-section .form-control { width: 100%; min-height: 42px; margin: 0; border-color: #BBCDD5; border-radius: 7px; box-shadow: none; }
.provider-profile-section textarea.form-control { min-height: 112px; resize: vertical; }
.provider-profile-section .form-control:focus { border-color: #13808B; box-shadow: 0 0 0 3px rgba(19, 128, 139, .14); }
.provider-field-help { display: block; margin-top: 6px; color: #687D8C; font-size: 11px; line-height: 1.45; }
.provider-profile-photo { min-width: 0; padding: 19px; border: 1px solid #D8E4E7; border-radius: 9px; background: #F5F9FA; }
.provider-profile-photo .profilepic { display: block; width: 132px; height: 132px; margin: 0 auto 16px; border: 3px solid #fff; border-radius: 50%; object-fit: cover; background: #E4EBEE; box-shadow: 0 4px 14px rgba(20, 64, 82, .12); }
.provider-profile-photo #uploadPhotoDiv { float: none; width: 100%; padding: 0; }
.provider-profile-photo #profilephoto.dropzone { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 128px; max-height: 180px; margin: 0; padding: 16px 12px; overflow: hidden; border: 2px dashed #9BB8C1; border-radius: 8px; background: #fff; text-align: center; }
.provider-profile-photo #profilephoto > .dz-default.dz-message { position: static; top: auto; left: auto; display: flex; align-items: center; justify-content: center; width: 100%; height: auto; min-height: 92px; margin: 0; padding: 0; background-image: none; opacity: 1; }
.provider-profile-photo #profilephoto > .dz-default.dz-message > span.provider-photo-upload-prompt { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; color: #396273; font-size: 12px; line-height: 1.4; }
.provider-profile-photo #profilephoto .provider-photo-upload-prompt > .glyphicon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 3px; border-radius: 50%; background: #DDF0F1; color: #087487; font-size: 19px; }
.provider-photo-upload-prompt strong { color: #244E64; font-size: 12px; }
.provider-photo-upload-prompt small { color: #718692; font-size: 10px; font-weight: 400; }
.provider-profile-photo #profilephoto .dz-preview { max-width: 100%; margin: 0; padding: 6px; }
.provider-profile-photo #profilephoto .dz-preview .dz-details { width: 110px; height: 110px; margin: 0; }
.provider-profile-photo #profilephoto .dz-preview .dz-details img { width: 100%; height: 100%; max-width: 110px; max-height: 110px; object-fit: cover; }
.provider-message-thread { min-height: 170px; max-height: 390px !important; padding: 20px 24px !important; overflow-y: auto; background: #F4F8F9 !important; }
.provider-message-thread .message-thread { display: flex; align-items: flex-start; flex-direction: column; gap: 13px; }
.provider-message-thread .message-thread-item { width: auto; max-width: 84%; margin: 0; padding: 13px 15px; border: 1px solid #D2E0E4; border-radius: 6px 14px 14px 14px; background: #fff; box-shadow: 0 3px 10px rgba(18, 55, 75, .045); }
.provider-message-thread .message-thread-item-provider { align-self: flex-end; border-color: #ADD3D8; border-radius: 14px 6px 14px 14px; background: #E7F4F5; }
.provider-message-thread .message-thread-item-employee { border-color: #DED4BC; background: #FBF8F1; }
.provider-message-thread .message-thread-heading { align-items: center; gap: 7px 18px; }
.provider-message-thread .message-thread-author { display: inline-flex; align-items: center; gap: 7px; color: #173E58; font-size: 12px; }
.provider-message-thread .message-thread-heading time { color: #718391; font-size: 10px; white-space: nowrap; }
.provider-message-thread .message-thread-text { margin-top: 7px; color: #29495E; font-size: 13px; line-height: 1.5; }
.clinical-provider .clinical-page-index .provider-dashboard-modal .provider-message-reply-footer { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; padding: 18px 24px; background: #fff; text-align: left; }
.provider-message-reply-compose { width: 100%; min-width: 0; margin-bottom: 15px; }
.provider-message-reply-compose .control-label { display: block; margin: 0 0 7px; color: #24465D; font-size: 13px; font-weight: 700; text-align: left; }
.provider-message-reply-compose textarea { width: 100%; min-height: 92px; border: 1px solid #BBCDD5; border-radius: 7px; resize: vertical; box-shadow: none; }
.provider-message-reply-compose textarea:focus { border-color: #13808B; box-shadow: 0 0 0 3px rgba(19, 128, 139, .14); outline: 0; }
.provider-reply-error { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; }
.provider-reply-error.hide { display: none; }
.provider-message-reply-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; width: 100%; }
.provider-delete-modal .modal-header { min-height: 92px !important; }
.provider-delete-modal .modal-body p { margin: 0; color: #4F6879; line-height: 1.55; }
.provider-delete-patient { margin-top: 13px !important; padding: 11px 13px; border: 1px solid #E0E8EB; border-radius: 7px; background: #F7FAFA; color: #24465D !important; font-weight: 700; }

@media (max-width: 1100px) {
    .provider-dashboard-main { grid-template-columns: minmax(0, 1fr); }
    .provider-messages-card { position: static; }
    .provider-message-table-wrap { overflow: visible; }
    .clinical-app .provider-message-table > tbody > tr { grid-template-columns: 44px minmax(0, 1fr) 42px; }
}

@media (max-width: 900px) {
    .provider-dashboard-hero { align-items: stretch; grid-template-columns: minmax(0, 1fr); }
    .provider-dashboard-actions { justify-content: flex-start; }
    .provider-dashboard-alerts { grid-template-columns: minmax(0, 1fr); }
    .provider-account-alert { grid-column: 1; }
    .provider-profile-layout { grid-template-columns: minmax(0, 1fr); }
    .provider-profile-photo { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
    .provider-profile-photo h3 { grid-column: 1 / -1; }
    .provider-profile-photo .profilepic { margin: 0 auto; }
}

@media (max-width: 767px) {
    .provider-dashboard-hero { gap: 20px; padding: 24px 20px 0; }
    .provider-dashboard-identity { align-items: flex-start; }
    .provider-dashboard-avatar { width: 58px; height: 58px; flex-basis: 58px; }
    .provider-dashboard-identity h1 { font-size: 27px; }
    .provider-dashboard-name { display: none; }
    .provider-dashboard-actions { align-items: stretch; }
    .provider-dashboard-actions .btn { flex: 1 1 145px; }
    .provider-dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2px -20px 0; }
    .provider-dashboard-stats > a { display: block; padding: 12px 6px; }
    .provider-dashboard-stats > a:nth-child(3) { border-top: 1px solid #CBE0E3; border-left: 0; }
    .provider-dashboard-stats > a:nth-child(4) { border-top: 1px solid #CBE0E3; }
    .provider-dashboard-stats .provider-stat-label { display: block; min-height: 18px; font-size: 11px; }
    .provider-dashboard-stats .provider-stat-count { display: block; margin-top: 4px; font-size: 20px; }
    .provider-account-alert { grid-template-columns: 36px minmax(0, 1fr); padding: 14px; }
    .provider-alert-icon { width: 36px; height: 36px; }
    .provider-confirmation-entry { align-items: stretch; flex-direction: column; }
    .provider-confirmation-entry .form-control,
    .provider-confirmation-entry .btn { width: 100%; }
    .provider-worklist { padding: 18px 14px; }
    .provider-queue-card .queue-tools { align-items: stretch; flex-direction: column; }
    .provider-queue-card .queue-search { flex: 0 0 auto; width: 100%; max-width: none; }
    .provider-queue-card .queue-overdue { width: 100%; }
    .provider-queue-table { min-width: 0; }
    .clinical-app .provider-queue-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .clinical-app .provider-queue-table tbody { display: block; }
    .clinical-app .provider-queue-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; padding: 16px; border-bottom: 1px solid #D8E3E7; }
    .clinical-app .provider-queue-table tbody td { display: block; width: auto; padding: 0; border: 0; text-align: left; white-space: normal; }
    .clinical-app .provider-queue-table tbody td:first-child { grid-column: 1 / -1; font-size: 17px; }
    .clinical-app .provider-queue-table td[data-label]:not(:first-child):before { content: attr(data-label); display: block; margin-bottom: 4px; color: #6A7C8B; font-size: 10px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
    .provider-queue-table .queue-action { grid-column: 1 / -1; margin-top: 3px; }
    .provider-queue-table .queue-action .btn { width: 100%; }
    .provider-queue-card .queue-pagination { align-items: flex-start; flex-direction: column; }
    .clinical-provider .provider-messages-card { display: block; }
    .clinical-provider .clinical-page-index .provider-dashboard-modal .modal-dialog { width: calc(100% - 24px); margin: 12px auto; }
    .clinical-provider .clinical-page-index .provider-dashboard-modal .modal-header { min-height: 98px; padding: 16px 62px 15px 18px; }
    .provider-modal-heading { grid-template-columns: 38px minmax(0, 1fr); gap: 10px; }
    .provider-modal-icon { width: 38px; height: 38px; }
    .provider-modal-heading .modal-title + p { display: none; }
    .clinical-provider .clinical-page-index .provider-dashboard-modal .modal-body { max-height: calc(100vh - 150px); padding: 18px; }
    .clinical-provider .clinical-page-index .provider-dashboard-modal .modal-footer { padding: 12px 18px; }
    .provider-profile-fields,
    .provider-profile-field-grid { grid-template-columns: minmax(0, 1fr); }
    .provider-profile-section:first-child,
    .provider-profile-field-wide { grid-column: 1; }
    .provider-profile-photo { display: block; }
    .provider-profile-photo .profilepic { margin: 0 auto 16px; }
    .provider-message-thread { padding: 16px !important; }
    .provider-message-thread .message-thread-item { max-width: 94%; }
    .provider-message-thread .message-thread-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .clinical-provider .clinical-page-index .provider-dashboard-modal .provider-message-reply-footer { padding: 16px; }
    .provider-message-reply-actions { align-items: stretch; flex-direction: column-reverse; }
    .provider-message-reply-actions .btn { width: 100%; }
    .provider-delete-modal .modal-footer { align-items: stretch !important; flex-direction: column-reverse; }
    .provider-delete-modal .modal-footer .btn { width: 100%; }
}

/* Provider read-only encounter and final cascade overrides. */
.provider-encounter-readonly-body > .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); gap: 0; margin: 0; }
.provider-encounter-readonly-body > .row:before,
.provider-encounter-readonly-body > .row:after { display: none; }
.provider-encounter-readonly-body > .row > [class*="col-md-"] { float: none; width: auto; min-width: 0; padding: 22px; }
.provider-encounter-readonly-body > .row > .col-md-6 + .col-md-6 { border-left: 1px solid #DAE5E8; background: #FBFDFD; }
.provider-encounter-readonly-body > .row > .col-md-6:first-child > div { padding: 10px 0 11px; border-bottom: 1px solid #E1E9EC; }
.provider-encounter-readonly-body > .row > .col-md-6:first-child > div:first-child { padding-top: 0; }
.provider-encounter-readonly-body .control-label,
.provider-encounter-response-body .control-label { display: block; float: none; width: 100%; margin: 0 0 3px; padding: 0; color: #567084; font-size: 9px; font-weight: 700; letter-spacing: .035em; line-height: 1.35; text-align: left; text-transform: uppercase; }
.provider-encounter-readonly-body .review,
.provider-encounter-response-body .review { display: block; margin: 0; color: #173B55; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.provider-encounter-readonly-body br,
.provider-encounter-response-body br { display: none; }
.provider-encounter-readonly-body > .row > .col-md-6 + .col-md-6 > .control-label { margin-bottom: 10px; color: #123E59; font-size: 15px; text-transform: none; }
.provider-encounter-readonly-body > .row > .col-md-6 + .col-md-6 > .col-md-10 { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; float: none; width: 100%; padding: 0; }
.provider-encounter-readonly-body .thumbnail,
.provider-encounter-readonly-body video { display: block !important; width: 160px !important; min-width: 0 !important; max-width: 100% !important; height: 130px !important; min-height: 0 !important; max-height: 180px !important; margin: 0 !important; object-fit: contain; border: 1px solid #D3E0E4; border-radius: 8px; background: #EEF3F4; }
.provider-encounter-readonly-body #uploadPhotoDiv { float: none; width: 100%; margin-top: 15px; padding: 0; }
.provider-encounter-readonly-body #dropbox { min-height: 150px; padding: 20px; border: 2px dashed #8EB5BE; border-radius: 9px; background: #F7FBFB; }
.provider-encounter-response-body { padding: 10px 22px 22px; }
.provider-encounter-response-body > .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: 0; }
.provider-encounter-response-body > .row:before,
.provider-encounter-response-body > .row:after { display: none; }
.provider-encounter-response-body > .row > .form-group { min-width: 0; margin: 0; }
.provider-encounter-response-body > .row > .form-group > [class*="col-md-"] { float: none; width: 100%; padding: 0; }
.provider-encounter-response-body > .row > .form-group > [class*="col-md-"] > div { padding: 13px 0 14px; border-bottom: 1px solid #E1E9EC; }
.provider-encounter-response-body > h2,
.provider-encounter-response-body > h3 { margin: 22px 0 12px; padding-top: 20px; border-top: 1px solid #DCE7EA; color: #123E59; font-size: 17px; font-weight: 700; }
.provider-encounter-response-body > p { color: #486679; font-size: 13px; line-height: 1.55; }
.provider-encounter-response-body .table { overflow: hidden; border: 1px solid #D5E1E5; border-radius: 8px; }
.provider-encounter-readonly-actions { display: flex; justify-content: flex-start; }
.provider-encounter-readonly-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-width: 160px; min-height: 42px; margin: 0; border-radius: 999px; }
.clinical-provider #buttons.provider-encounter-actions #saveDiagnosis,
.clinical-provider #buttons.provider-encounter-actions #requestVisit,
.clinical-provider #buttons.provider-encounter-actions #requestNewPicture,
.clinical-provider #buttons.provider-encounter-actions #sendMessage { background: #fff; border-color: #BCD0D6; color: #174B67; }
.clinical-provider #buttons.provider-encounter-actions #saveDiagnosis:hover,
.clinical-provider #buttons.provider-encounter-actions #requestVisit:hover,
.clinical-provider #buttons.provider-encounter-actions #requestNewPicture:hover,
.clinical-provider #buttons.provider-encounter-actions #sendMessage:hover { background: #EEF7F8; border-color: #82B5BD; color: #086777; }

@media (max-width: 767px) {
    .provider-encounter-readonly-body > .row,
    .provider-encounter-response-body > .row { grid-template-columns: minmax(0, 1fr); }
    .provider-encounter-readonly-body > .row > [class*="col-md-"] { padding: 18px; }
    .provider-encounter-readonly-body > .row > .col-md-6 + .col-md-6 { border-top: 1px solid #DAE5E8; border-left: 0; }
    .provider-encounter-readonly-body .thumbnail,
    .provider-encounter-readonly-body video { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; }
    .provider-encounter-response-body { padding: 8px 18px 18px; }
    .provider-encounter-response-body .table { display: block; overflow-x: auto; }
    .provider-encounter-readonly-actions .btn { width: 100%; }
    .clinical-provider #buttons.provider-encounter-actions .btn { flex: 0 0 auto; width: 100%; }
}

/* Admin workspace */
.clinical-admin .clinical-page-index { max-width: 1380px !important; }
.admin-dashboard-page { width: 100%; }
.admin-dashboard-hero { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 20px; padding: 26px 28px; border: 1px solid #CBE0E3; border-radius: 12px; background: linear-gradient(125deg, #F4FBFB, #E2F2F3); box-shadow: 0 14px 34px rgba(18, 55, 75, .07); }
.admin-dashboard-hero-icon,
.admin-navigation-icon { display: inline-flex; align-items: center; justify-content: center; color: #087487; background: #D8EFF1; }
.admin-dashboard-hero-icon { width: 52px; height: 52px; border-radius: 12px; font-size: 21px; }
.admin-dashboard-hero .clinical-eyebrow,
.admin-navigation-card .clinical-eyebrow,
.admin-access-card .clinical-eyebrow,
.admin-dashboard-modal .clinical-eyebrow { margin: 0 0 4px; color: #157581; font-size: 11px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.admin-dashboard-hero h1 { margin: 0 0 5px; color: #0B2E4F; font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.admin-dashboard-hero > div > p:last-child { max-width: 760px; margin: 0; color: #506B7D; font-size: 14px; line-height: 1.5; }
.admin-dashboard-page > .alert { margin: 0 0 16px; border-radius: 8px; }
.admin-dashboard-page > .alert p { margin: 0; }
.admin-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 20px; }
.admin-navigation-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid #D8E3E7; border-radius: 10px; background: #fff; box-shadow: 0 7px 22px rgba(18, 55, 75, .045); }
.admin-navigation-card > header { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; align-items: center; min-height: 78px; padding: 16px 18px; border-bottom: 1px solid #D8E3E7; background: #F8FBFB; }
.admin-navigation-icon { width: 42px; height: 42px; border-radius: 10px; font-size: 17px; }
.admin-navigation-card h2 { margin: 0; color: #0B3859; font-size: 19px; font-weight: 700; }
.admin-navigation-card nav,
.admin-navigation-card > div { padding: 6px 18px 14px; }
.admin-navigation-card nav a,
.admin-navigation-card > div button { position: relative; display: flex; align-items: center; width: 100%; min-height: 47px; margin: 0; padding: 11px 28px 11px 2px; border: 0; border-bottom: 1px solid #E4EBEE; border-radius: 0; background: transparent; color: #17445F; font-size: 14px; font-weight: 600; text-align: left; text-decoration: none; }
.admin-navigation-card nav a:last-child,
.admin-navigation-card > div button:last-child { border-bottom: 0; }
.admin-navigation-card nav a:after,
.admin-navigation-card > div button:after { position: absolute; right: 4px; content: '\203A'; color: #78909E; font-size: 22px; font-weight: 400; line-height: 1; }
.admin-navigation-card > div button .glyphicon { margin-right: 8px; color: #087487; }
.admin-navigation-card nav a:hover,
.admin-navigation-card nav a:focus,
.admin-navigation-card > div button:hover,
.admin-navigation-card > div button:focus { background: #EDF7F8; color: #086C7A; text-decoration: none; }
.admin-access-card { padding: 22px 24px 24px; border: 1px solid #D8E3E7; border-radius: 10px; background: #fff; box-shadow: 0 7px 22px rgba(18, 55, 75, .045); }
.admin-access-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 0 0 18px; border: 0; border-bottom: 1px solid #E1E9EC; }
.admin-access-heading h2 { margin: 0; color: #0B3859; font-size: 20px; font-weight: 700; }
.admin-access-heading > div > p:last-child { margin: 5px 0 0; color: #5F7686; font-size: 13px; }
.admin-access-heading .btn { flex: 0 0 auto; min-width: 110px; margin: 0; border-radius: 999px; }
.admin-access-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto; gap: 14px; align-items: end; padding-top: 18px; }
.admin-access-form .form-group { min-width: 0; margin: 0; }
.admin-access-form label { display: block; margin-bottom: 7px; color: #24465D; font-size: 13px; font-weight: 700; }
.clinical-admin .admin-access-form #userName,
.clinical-admin .admin-access-form #role { width: 100%; max-width: none; min-height: 42px; }
.admin-access-form .btn { min-height: 42px; margin: 0; border-radius: 999px; }

/* Admin dashboard modals */
.clinical-admin .clinical-page-index .admin-dashboard-modal .modal-dialog { width: calc(100% - 32px); max-width: 680px; margin: 30px auto; }
.clinical-admin .clinical-page-index .admin-dashboard-modal-wide .modal-dialog { max-width: 980px; }
.clinical-admin .clinical-page-index .admin-dashboard-modal .modal-content { overflow: hidden; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(11, 46, 79, .24); }
.clinical-admin .clinical-page-index .admin-dashboard-modal .modal-header { position: relative; min-height: 92px; padding: 18px 70px 16px 24px; border-bottom: 1px solid #D7E4E7; background: linear-gradient(135deg, #F6FBFB, #EAF5F6); }
.clinical-admin .clinical-page-index .admin-dashboard-modal .modal-title { margin: 0; color: #0B3859; font-size: 21px; font-weight: 700; line-height: 1.3; }
.clinical-admin .clinical-page-index .admin-dashboard-modal .modal-header .close { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 42px; padding: 0; border: 1px solid #CBD9DE; border-radius: 50%; background: #fff; color: #315268; font-size: 24px; font-weight: 400; opacity: 1; }
.clinical-admin .clinical-page-index .admin-dashboard-modal .modal-header .close:hover,
.clinical-admin .clinical-page-index .admin-dashboard-modal .modal-header .close:focus { border-color: #9DB8C0; background: #EAF4F5; color: #123E59; outline: 0; }
.clinical-admin .clinical-page-index .admin-dashboard-modal .modal-body { max-height: calc(100vh - 220px); padding: 24px; overflow-x: hidden; overflow-y: auto; background: #fff; }
.clinical-admin .clinical-page-index .admin-dashboard-modal .modal-body > .container > .row { margin-right: 0; margin-left: 0; }
.clinical-admin .clinical-page-index .admin-dashboard-modal:not(.admin-dashboard-modal-wide) .modal-body .col-md-8,
.clinical-admin .clinical-page-index #addPracticeModal .modal-body .col-md-8 { width: 100%; padding-right: 0; padding-left: 0; }
.clinical-admin .clinical-page-index .admin-dashboard-modal .modal-body .col-md-12 { padding-right: 0; padding-left: 0; }
.clinical-admin .clinical-page-index .admin-dashboard-modal .form-group label { display: block; margin-bottom: 7px; color: #24465D; font-size: 13px; font-weight: 700; }
.clinical-admin .clinical-page-index .admin-dashboard-modal .form-control { min-height: 42px; border-color: #BFD2D9; border-radius: 6px; }
.clinical-admin .clinical-page-index .admin-dashboard-modal textarea.form-control { min-height: 120px; }
.clinical-admin .clinical-page-index .admin-dashboard-modal .modal-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; min-height: 70px; padding: 14px 24px; border-top: 1px solid #D7E4E7; background: #FBFDFD; }
.clinical-admin .clinical-page-index .admin-dashboard-modal .modal-footer:before,
.clinical-admin .clinical-page-index .admin-dashboard-modal .modal-footer:after { display: none; }
.clinical-admin .clinical-page-index .admin-dashboard-modal .modal-footer .btn { min-width: 118px; min-height: 42px; margin: 0; border-radius: 999px; }
.clinical-admin .clinical-page-index #uploadPhotoDiv { width: 100%; padding: 0; }
.clinical-admin .clinical-page-index #profilephoto { min-height: 210px; padding: 18px; border: 1px dashed #91B4BD; border-radius: 8px; background: #F7FBFB; }

@media (max-width: 900px) {
    .admin-navigation { grid-template-columns: minmax(0, 1fr); }
    .admin-access-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-access-form .btn { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 767px) {
    .admin-dashboard-hero { grid-template-columns: 42px minmax(0, 1fr); padding: 22px 18px; }
    .admin-dashboard-hero-icon { width: 42px; height: 42px; border-radius: 10px; font-size: 18px; }
    .admin-dashboard-hero h1 { font-size: 27px; }
    .admin-access-heading { align-items: stretch; flex-direction: column; }
    .admin-access-heading .btn { width: 100%; }
    .admin-access-form { grid-template-columns: minmax(0, 1fr); }
    .admin-access-form .btn { grid-column: 1; width: 100%; }
    .clinical-admin .clinical-page-index .admin-dashboard-modal .modal-dialog { width: calc(100% - 24px); margin: 12px auto; }
    .clinical-admin .clinical-page-index .admin-dashboard-modal .modal-header { min-height: 86px; padding: 16px 62px 14px 18px; }
    .clinical-admin .clinical-page-index .admin-dashboard-modal .modal-body { max-height: calc(100vh - 170px); padding: 18px; }
    .clinical-admin .clinical-page-index .admin-dashboard-modal-wide .modal-body .col-md-8,
    .clinical-admin .clinical-page-index .admin-dashboard-modal-wide .modal-body .col-md-4 { width: 100%; padding-right: 0; padding-left: 0; }
    .clinical-admin .clinical-page-index .admin-dashboard-modal .modal-footer { padding: 12px 18px; }
    .clinical-admin .clinical-page-index .admin-dashboard-modal .modal-footer .btn { flex: 1 1 140px; }
}

/* Admin pages */
.clinical-admin .clinical-main { max-width: 1380px !important; }
.admin-page { width: 100%; }
.admin-page-hero { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 20px; padding: 24px 28px; border: 1px solid #CBE0E3; border-radius: 12px; background: linear-gradient(125deg, #F4FBFB, #E8F5F6); box-shadow: 0 12px 30px rgba(18, 55, 75, .06); }
.admin-page-hero .clinical-eyebrow,
.admin-card-heading .clinical-eyebrow { margin: 0 0 4px; color: #157581; font-size: 11px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.admin-page-hero h1 { margin: 0 0 5px; color: #0B2E4F; font-size: 29px; font-weight: 700; letter-spacing: -.015em; }
.admin-page-hero > div > p:last-child { max-width: 760px; margin: 0; color: #506B7D; font-size: 14px; line-height: 1.5; }
.admin-page-hero > .btn { flex: 0 0 auto; min-height: 42px; margin: 0; border-radius: 999px; }
.admin-filter-card,
.admin-content-card,
.admin-report-results:not(:empty) { margin-bottom: 20px; border: 1px solid #D8E3E7; border-radius: 10px; background: #fff; box-shadow: 0 7px 22px rgba(18, 55, 75, .045); }
.admin-filter-card { padding: 20px 22px; }
.admin-filter-card > h2 { margin: 0 0 15px; color: #123E59; font-size: 18px; font-weight: 700; }
.admin-inline-filter,
.admin-date-filter { display: grid; gap: 14px; align-items: end; }
.admin-inline-filter { grid-template-columns: minmax(240px, 620px) auto; }
.admin-date-filter { grid-template-columns: minmax(180px, 280px) minmax(180px, 280px) auto; }
.admin-inline-filter .form-group,
.admin-date-filter .form-group { min-width: 0; margin: 0; }
.admin-inline-filter label,
.admin-date-filter label { display: block; margin-bottom: 7px; color: #24465D; font-size: 13px; font-weight: 700; }
.admin-inline-filter .form-control,
.admin-date-filter .form-control { width: 100%; min-height: 42px; }
.admin-inline-filter .btn,
.admin-date-filter .btn { min-height: 42px; margin: 0; border-radius: 999px; }
.clinical-app .ui-datepicker { z-index: 1100 !important; width: 292px; padding: 12px; overflow: hidden; border: 1px solid #C8DADF; border-radius: 11px; background: #fff; background-image: none; color: #29495E; font-family: 'Segoe UI', Arial, sans-serif; font-size: 13px; box-shadow: 0 14px 34px rgba(18, 55, 75, .18); }
.clinical-app .ui-datepicker .ui-datepicker-header { min-height: 44px; padding: 11px 44px; border: 0; border-radius: 8px; background: #E8F5F6; background-image: none; color: #0B455F; }
.clinical-app .ui-datepicker .ui-datepicker-title { margin: 0; color: #0B455F; font-size: 14px; font-weight: 700; line-height: 22px; }
.clinical-app .ui-datepicker .ui-datepicker-title select { width: auto; height: 30px; margin: -4px 3px; padding: 3px 24px 3px 8px; border: 1px solid #B9D5DA; border-radius: 6px; background-color: #fff; color: #174B67; font-size: 12px; font-weight: 600; }
.clinical-app .ui-datepicker .ui-datepicker-prev,
.clinical-app .ui-datepicker .ui-datepicker-next { top: 7px; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 50%; background: transparent; background-image: none; color: #087487; cursor: pointer; }
.clinical-app .ui-datepicker .ui-datepicker-prev { left: 7px; }
.clinical-app .ui-datepicker .ui-datepicker-next { right: 7px; }
.clinical-app .ui-datepicker .ui-datepicker-prev-hover,
.clinical-app .ui-datepicker .ui-datepicker-next-hover { top: 7px; border-color: #B9D5DA; background: #fff; background-image: none; color: #075D6C; }
.clinical-app .ui-datepicker .ui-datepicker-prev-hover { left: 7px; }
.clinical-app .ui-datepicker .ui-datepicker-next-hover { right: 7px; }
.clinical-app .ui-datepicker .ui-datepicker-prev:before,
.clinical-app .ui-datepicker .ui-datepicker-next:before { display: block; font-size: 24px; font-weight: 400; line-height: 1; }
.clinical-app .ui-datepicker .ui-datepicker-prev:before { content: "\2039"; }
.clinical-app .ui-datepicker .ui-datepicker-next:before { content: "\203A"; }
.clinical-app .ui-datepicker .ui-datepicker-prev span,
.clinical-app .ui-datepicker .ui-datepicker-next span { display: none; }
.clinical-app .ui-datepicker table { width: 100%; margin: 8px 0 0; border-collapse: separate; border-spacing: 3px; }
.clinical-app .ui-datepicker th { padding: 6px 2px; border: 0; color: #607687; font-size: 10px; font-weight: 700; letter-spacing: .035em; text-align: center; text-transform: uppercase; }
.clinical-app .ui-datepicker td { padding: 0; border: 0; background: transparent; }
.clinical-app .ui-datepicker td span,
.clinical-app .ui-datepicker td a { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; background-image: none; color: #29495E; font-weight: 500; text-align: center; text-decoration: none; }
.clinical-app .ui-datepicker td a:hover,
.clinical-app .ui-datepicker td a:focus { border-color: #B7D6DB; background: #EAF5F6; background-image: none; color: #086777; outline: 0; }
.clinical-app .ui-datepicker td.ui-datepicker-today a { border-color: #76ADB6; background: #F2F9F9; background-image: none; color: #075D6C; font-weight: 700; }
.clinical-app .ui-datepicker td.ui-datepicker-current-day a,
.clinical-app .ui-datepicker td.ui-datepicker-current-day a:hover,
.clinical-app .ui-datepicker td.ui-datepicker-current-day a:focus { border-color: #0875E1; background: #0875E1; background-image: none; color: #fff; font-weight: 700; }
.clinical-app .ui-datepicker td.ui-state-disabled span { color: #B4C0C6; }
.clinical-app .ui-datepicker .ui-datepicker-buttonpane { margin: 9px 0 0; padding: 9px 0 0; border: 0; border-top: 1px solid #DFE8EB; background: transparent; }
.clinical-app .ui-datepicker .ui-datepicker-buttonpane button { min-height: 34px; margin: 0 4px; padding: 5px 12px; border: 1px solid #C8DADF; border-radius: 999px; background: #fff; background-image: none; color: #174B67; font-size: 12px; }
.admin-content-card { overflow: hidden; }
.admin-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; padding: 15px 20px; border-bottom: 1px solid #D8E3E7; background: #F8FBFB; }
.admin-card-heading h2 { margin: 0; color: #0B3859; font-size: 19px; font-weight: 700; }
.admin-count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: #E2F2F3; color: #0B6876; font-size: 13px; font-weight: 700; }
.admin-card-body { padding: 20px; }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.clinical-admin .admin-table { width: 100%; min-width: 680px; margin: 0; border: 0; }
.clinical-admin .admin-table > thead > tr > th { padding: 11px 14px; background: #F2F6F7; color: #50697A; font-size: 11px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
.clinical-admin .admin-table > thead > tr > th a { color: inherit; text-decoration: none; }
.clinical-admin .admin-table > tbody > tr > td { padding: 13px 14px; }
.clinical-admin .admin-table .btn { min-width: 82px; min-height: 34px; margin: 0; padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.admin-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 58px; padding: 10px 18px; border-top: 1px solid #D8E3E7; background: #FBFDFD; color: #607687; font-size: 13px; }
.admin-card-footer .pagination { margin: 0; }
.admin-card-footer .pagination > li > a,
.admin-card-footer .pagination > li > span { min-width: 36px; min-height: 36px; padding: 7px 11px; border-color: #D3E0E4; color: #174B67; text-align: center; }
.admin-card-footer .pagination > .active > a,
.admin-card-footer .pagination > .active > span { border-color: #0875E1; background: #0875E1; color: #fff; }
.admin-patient-pager .pagination-container { max-width: 100%; margin: 0; overflow-x: auto; overflow-y: hidden; }
.admin-patient-pager .pagination { display: flex; align-items: center; gap: 5px; width: max-content; max-width: none; padding: 2px; }
.admin-patient-pager .pagination > li { display: block; }
.clinical-admin .admin-patient-pager .pagination > li > a,
.clinical-admin .admin-patient-pager .pagination > li > span { display: inline-flex; align-items: center; justify-content: center; float: none; min-width: 34px; min-height: 34px; margin: 0; padding: 6px 9px; border: 1px solid #CBDADF; border-radius: 999px !important; background: #fff; color: #174B67; font-size: 12px; line-height: 20px; text-decoration: none; }
.clinical-admin .admin-patient-pager .pagination > li > a:hover,
.clinical-admin .admin-patient-pager .pagination > li > a:focus { border-color: #8CB8C0; background: #EAF5F6; color: #086777; outline: 0; }
.clinical-admin .admin-patient-pager .pagination > .active > a,
.clinical-admin .admin-patient-pager .pagination > .active > span,
.clinical-admin .admin-patient-pager .pagination > .active > a:hover,
.clinical-admin .admin-patient-pager .pagination > .active > a:focus { border-color: #0875E1; background: #0875E1; color: #fff; font-weight: 700; }
.clinical-admin .admin-patient-pager .pagination > .disabled > a,
.clinical-admin .admin-patient-pager .pagination > .disabled > span { border-color: #E0E8EB; background: #F5F8F9; color: #9AAAB3; cursor: default; }
.admin-report-results:not(:empty) { padding: 18px; overflow-x: auto; }
.admin-report-results .table { min-width: 680px; margin: 0; }
.admin-loading-progress { height: 4px; margin: 0 0 14px; overflow: hidden; border: 0; border-radius: 999px; background: #E6EEF0; box-shadow: none; }
.admin-message-card { max-width: 820px; }
.admin-message-card .form-control { width: 100%; }
.admin-message-card textarea.form-control { min-height: 170px; resize: vertical; }
.admin-page-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.admin-page-actions .btn { min-width: 130px; margin: 0; border-radius: 999px; }
.admin-page-actions-start { justify-content: flex-start; margin-top: 14px; }
.admin-edit-card { max-width: 1120px; margin-bottom: 18px; overflow: hidden; border: 1px solid #D8E3E7; border-radius: 10px; background: #fff; box-shadow: 0 7px 22px rgba(18, 55, 75, .045); }
.admin-edit-card .admin-card-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 22px; }
.admin-edit-card .admin-card-body > .validation-summary-errors { grid-column: 1 / -1; }
.admin-edit-card .form-group { min-width: 0; margin: 0; }
.admin-edit-card .form-group:before,
.admin-edit-card .form-group:after { display: none; }
.admin-edit-card .form-group > .control-label { display: block; float: none; width: 100%; margin: 0 0 7px; padding: 0; color: #24465D; font-size: 13px; font-weight: 700; text-align: left; }
.admin-edit-card .form-group > [class*="col-md-"] { float: none; width: 100%; margin: 0; padding: 0; }
.admin-edit-card .form-control { width: 100%; min-height: 42px; border-color: #BFD2D9; border-radius: 6px; }
.admin-edit-card .checkbox { display: flex; align-items: center; min-height: 42px; margin: 0; padding: 0; }
.admin-edit-card .checkbox input[type="checkbox"] { position: static; width: 20px; height: 20px; margin: 0; accent-color: #0875E1; cursor: pointer; }
.admin-edit-card .checkbox .field-validation-error { margin-left: 9px; }
.admin-edit-card .form-group:last-child { grid-column: 1 / -1; padding-top: 3px; }
.admin-edit-card .form-group:last-child .btn { min-width: 140px; border-radius: 999px; }
.admin-empty-state { margin: 0; padding: 28px 20px; color: #607687; text-align: center; }
.admin-status-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 11px; border-radius: 999px; background: #E2F2F3; color: #0B6876; font-size: 12px; font-weight: 700; text-align: center; }
.pending-payment-table { min-width: 1080px !important; }
.pending-payment-patient { font-weight: 700; }
.pending-payment-amount { color: #173E58; font-weight: 700; white-space: nowrap; }
.pending-payments-page > .alert { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.pending-payments-page > .alert.hide { display: none; }
.pending-payment-table tbody tr { transition: opacity .2s ease; }
.pending-payment-table tbody tr.is-removing { opacity: .35; }
.clinical-admin .admin-page-modal .modal-dialog { width: calc(100% - 32px); max-width: 620px; margin: 30px auto; }
.clinical-admin .admin-page-modal .modal-content { overflow: hidden; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(11, 46, 79, .24); }
.clinical-admin .admin-page-modal .modal-header { position: relative; min-height: 92px; padding: 18px 70px 16px 24px; border-bottom: 1px solid #D7E4E7; background: linear-gradient(135deg, #F6FBFB, #EAF5F6); }
.clinical-admin .admin-page-modal .modal-title { margin: 0; color: #0B3859; font-size: 21px; font-weight: 700; line-height: 1.3; }
.clinical-admin .admin-page-modal .modal-header .close { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 42px; padding: 0; border: 1px solid #CBD9DE; border-radius: 50%; background: #fff; color: #315268; font-size: 24px; font-weight: 400; opacity: 1; }
.clinical-admin .admin-page-modal .modal-header .close:hover,
.clinical-admin .admin-page-modal .modal-header .close:focus { border-color: #9DB8C0; background: #EAF4F5; color: #123E59; outline: 0; }
.clinical-admin .admin-page-modal .modal-body { padding: 24px; background: #fff; color: #315268; font-size: 14px; line-height: 1.55; }
.clinical-admin .admin-page-modal .modal-body p:last-child { margin-bottom: 0; }
.clinical-admin .admin-page-modal .modal-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; min-height: 70px; padding: 14px 24px; border-top: 1px solid #D7E4E7; background: #FBFDFD; }
.clinical-admin .admin-page-modal .modal-footer:before,
.clinical-admin .admin-page-modal .modal-footer:after { display: none; }
.clinical-admin .admin-page-modal .modal-footer .btn { min-width: 118px; min-height: 42px; margin: 0; border-radius: 999px; }
.admin-case-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 22px; }
.admin-case-detail-item { min-width: 0; padding: 14px 0; border-bottom: 1px solid #E1E9EC; }
.admin-case-detail-item > span { display: block; margin-bottom: 5px; color: #607687; font-size: 10px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
.admin-case-detail-item > strong { display: block; overflow-wrap: anywhere; color: #173E58; font-size: 13px; font-weight: 600; }
.admin-case-detail-item > strong.admin-empty-value:empty:after { content: "Unassigned"; color: #6B8090; font-weight: 500; }
.admin-case-conversation { display: flex; align-items: stretch; flex-direction: column; gap: 12px; background: #F7FAFA; }
.admin-case-message { margin: 0; padding: 14px 16px; border: 1px solid #D5E2E6; border-radius: 9px; background: #fff; box-shadow: 0 3px 10px rgba(18, 55, 75, .035); }
.admin-case-message > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.admin-case-message > header strong { color: #123E59; font-size: 13px; }
.admin-case-message > header time { color: #6B8090; font-size: 11px; white-space: nowrap; }
.admin-case-message > p { margin: 0; color: #355368; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.admin-case-reply-card .form-group { margin: 0 0 14px; }
.admin-case-reply-card .control-label { display: block; margin: 0 0 7px; color: #24465D; font-size: 13px; font-weight: 700; text-align: left; }
.admin-case-reply-card textarea.form-control { width: 100%; min-height: 130px; border-color: #BFD2D9; border-radius: 7px; resize: vertical; box-shadow: none; }
.admin-case-reply-card textarea.form-control:focus { border-color: #13808B; box-shadow: 0 0 0 3px rgba(19, 128, 139, .14); }
.admin-case-reply-card .alert { margin: 0 0 12px; border-radius: 7px; }
.admin-case-reply-card .alert p { margin: 0; }
.admin-field-error { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; }
.admin-case-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 3px; }
.admin-case-actions .btn { min-width: 120px; min-height: 42px; margin: 0; border-radius: 999px; }

@media (max-width: 767px) {
    .admin-page-hero { align-items: stretch; flex-direction: column; padding: 21px 18px; }
    .admin-page-hero h1 { font-size: 26px; }
    .admin-page-hero > .btn { width: 100%; }
    .clinical-admin .admin-page-modal .modal-dialog { width: calc(100% - 24px); margin: 12px auto; }
    .clinical-admin .admin-page-modal .modal-header { min-height: 86px; padding: 16px 62px 14px 18px; }
    .clinical-admin .admin-page-modal .modal-body { padding: 18px; }
    .clinical-admin .admin-page-modal .modal-footer { padding: 12px 18px; }
    .clinical-admin .admin-page-modal .modal-footer .btn { flex: 1 1 140px; }
    .admin-inline-filter,
    .admin-date-filter { grid-template-columns: minmax(0, 1fr); }
    .admin-inline-filter .btn,
    .admin-date-filter .btn { width: 100%; }
    .admin-card-heading { padding: 14px 16px; }
    .admin-card-footer { align-items: flex-start; flex-direction: column; }
    .admin-patient-pager .pagination-container { width: 100%; padding-bottom: 3px; }
    .admin-card-body { padding: 16px; }
    .admin-page-actions .btn { width: 100%; }
    .admin-edit-card .admin-card-body { grid-template-columns: minmax(0, 1fr); }
    .admin-edit-card .form-group:last-child { grid-column: 1; }
    .admin-page-actions { align-items: stretch; flex-direction: column; }
    .admin-case-detail-grid { grid-template-columns: minmax(0, 1fr); }
    .admin-case-message > header { align-items: flex-start; flex-direction: column; gap: 3px; }
    .admin-case-message > header time { white-space: normal; }
    .admin-case-actions { align-items: stretch; flex-direction: column; }
    .admin-case-actions .btn { width: 100%; }
}

/* Clinical operations (DermTech) */
.clinical-dermtech .clinical-main { max-width: 1380px !important; }
.dermtech-dashboard-page .dermtech-open-cases-card { margin-top: 0; }
.dermtech-loading-state { padding: 24px 20px; color: #607687; text-align: center; }
.dermtech-loading-state > span { display: block; margin-bottom: 12px; }
.dermtech-modal-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; }
.dermtech-modal-fields .form-group { min-width: 0; margin: 0; }
.dermtech-modal-fields .form-group:last-child:nth-child(odd) { grid-column: 1 / -1; }
.dermtech-currency-field { display: grid; grid-template-columns: 42px minmax(0, 1fr); }
.dermtech-currency-field > span { display: flex; align-items: center; justify-content: center; border: 1px solid #BFD2D9; border-right: 0; border-radius: 6px 0 0 6px; background: #F2F7F8; color: #526E80; font-weight: 700; }
.clinical-dermtech .dermtech-currency-field .form-control { border-radius: 0 6px 6px 0; }
.dermtech-feedback { padding-top: 14px; padding-bottom: 0; }
.dermtech-feedback .alert { margin-bottom: 14px; border-radius: 8px; }
.dermtech-feedback .alert p { margin: 0; }
.dermtech-field-error,
.assignment-result { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; }
#assignment-status,
#report-status { min-height: 20px; margin-top: 10px; color: #527084; font-size: 12px; font-weight: 600; }
.dermtech-case-search { display: grid; grid-template-columns: minmax(240px, 620px) auto; gap: 14px; align-items: end; padding: 18px 20px; border-bottom: 1px solid #D8E3E7; background: #FBFDFD; }
.dermtech-case-search .form-group { min-width: 0; margin: 0; }
.dermtech-case-search label { display: block; margin-bottom: 7px; color: #24465D; font-size: 13px; font-weight: 700; }
.dermtech-case-search .form-control { width: 100%; min-height: 42px; }
.dermtech-case-search .btn { min-height: 42px; margin: 0; border-radius: 999px; }
.dermtech-case-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.dermtech-pager .pagination-container { max-width: 100%; }
.clinical-dermtech .clinical-assignment-table select.form-control { min-width: 190px; min-height: 38px; border-color: #BFD2D9; border-radius: 6px; }
.clinical-dermtech .clinical-assignment-table .updateButton:disabled { opacity: .55; cursor: not-allowed; }

.clinical-dermtech .dermtech-encounter-page { width: 100%; max-width: 1320px; margin: 4px auto 48px; color: #29495E; }
.dermtech-encounter-note { margin: 0 0 16px; padding: 13px 16px; border: 1px solid #D7E4E7; border-radius: 8px; background: #F7FAFA; color: #567084; font-size: 13px; }
.dermtech-encounter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 0; padding: 16px; border: 1px solid #D2E0E4; border-radius: 10px; background: #fff; box-shadow: 0 7px 20px rgba(18, 55, 75, .045); }
.dermtech-encounter-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin: 0; padding: 9px 16px; border-radius: 999px; }
.dermtech-encounter-actions .button-primary { margin-left: auto; }
.clinical-dermtech .provider-encounter-modal .modal-dialog { width: calc(100% - 32px); max-width: 700px; margin: 32px auto; }
.clinical-dermtech .provider-encounter-modal .modal-content { overflow: hidden; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 24px 70px rgba(11, 46, 79, .24); }
.clinical-dermtech .provider-encounter-modal .modal-header { position: relative; min-height: 96px; padding: 18px 72px 17px 24px; border-bottom: 1px solid #D7E4E7; background: linear-gradient(135deg, #F6FBFB, #EAF5F6); }
.clinical-dermtech .provider-encounter-modal .modal-header .clinical-eyebrow { margin: 0 0 4px; color: #157581; font-size: 10px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.clinical-dermtech .provider-encounter-modal .modal-title { margin: 0; color: #0B3859; font-size: 21px; font-weight: 700; line-height: 1.3; }
.clinical-dermtech .provider-encounter-modal .modal-header .close { position: absolute; top: 15px; right: 16px; display: inline-flex; align-items: center; justify-content: center; width: 42px; min-width: 42px; height: 42px; padding: 0; border: 1px solid #CBD9DE; border-radius: 50%; background: #fff; color: #315268; font-size: 24px; font-weight: 400; opacity: 1; }
.clinical-dermtech .provider-encounter-modal .modal-body { max-height: calc(100vh - 210px); padding: 24px; overflow-y: auto; background: #fff; }
.clinical-dermtech .provider-encounter-modal .modal-body .form-group { margin: 0; }
.clinical-dermtech .provider-encounter-modal .modal-body .control-label { display: block; margin: 0 0 7px; color: #24465D; font-size: 13px; font-weight: 700; text-align: left; }
.clinical-dermtech .provider-encounter-modal .modal-body .form-control { width: 100%; min-height: 118px; border-color: #BBCDD5; border-radius: 7px; resize: vertical; box-shadow: none; }
.clinical-dermtech .provider-encounter-modal .modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 70px; padding: 14px 24px; border-top: 1px solid #D7E4E7; background: #FBFDFD; }
.clinical-dermtech .provider-encounter-modal .modal-footer:before,
.clinical-dermtech .provider-encounter-modal .modal-footer:after { display: none; }
.clinical-dermtech .provider-encounter-modal .modal-footer .btn { min-width: 118px; min-height: 42px; margin: 0; border-radius: 999px; }

@media (max-width: 767px) {
    .dermtech-modal-fields { grid-template-columns: minmax(0, 1fr); }
    .dermtech-modal-fields .form-group:last-child:nth-child(odd) { grid-column: 1; }
    .dermtech-case-search { grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .dermtech-case-search .btn { width: 100%; }
    .clinical-dermtech .admin-table-wrap { overflow: visible; }
    .clinical-dermtech .admin-table { display: block; min-width: 0; }
    .clinical-dermtech .admin-table > thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
    .clinical-dermtech .admin-table > tbody,
    .clinical-dermtech .admin-table > tbody > tr,
    .clinical-dermtech .admin-table > tbody > tr > td { display: block; width: 100%; }
    .clinical-dermtech .admin-table > tbody > tr { padding: 10px 16px; border-bottom: 1px solid #D8E3E7; }
    .clinical-dermtech .admin-table > tbody > tr:last-child { border-bottom: 0; }
    .clinical-dermtech .admin-table > tbody > tr > td { display: grid; grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: start; min-height: 38px; padding: 8px 0; border: 0; overflow-wrap: anywhere; }
    .clinical-dermtech .admin-table > tbody > tr > td:before { content: attr(data-label); color: #607687; font-size: 10px; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
    .clinical-dermtech .admin-table > tbody > tr > td.dermtech-case-actions { align-items: stretch; }
    .clinical-dermtech .admin-table > tbody > tr > td.dermtech-case-actions .btn { width: 100%; }
    .clinical-dermtech .clinical-assignment-table select.form-control { min-width: 0; width: 100%; }
    .dermtech-pager { align-items: stretch; }
    .dermtech-pager .pagination-container { width: 100%; overflow-x: auto; }
    .clinical-dermtech .dermtech-encounter-page { margin-top: 0; }
    .dermtech-encounter-actions { align-items: stretch; flex-direction: column; }
    .dermtech-encounter-actions .btn,
    .dermtech-encounter-actions .button-primary { width: 100%; margin-left: 0; }
    .clinical-dermtech .provider-encounter-modal .modal-dialog { width: calc(100% - 24px); margin: 12px auto; }
    .clinical-dermtech .provider-encounter-modal .modal-header { padding: 16px 62px 15px 18px; }
    .clinical-dermtech .provider-encounter-modal .modal-footer { align-items: stretch; flex-direction: column-reverse; padding: 14px 18px; }
    .clinical-dermtech .provider-encounter-modal .modal-footer .btn { width: 100%; }
}
