/* V5.1.57 unified Charts, Billing, and Claims workspace */
:root{--ukd-radius:5px;--ukd-panel-radius:7px;--ukd-border:#b6c5c7;--ukd-soft:#f5f8f8;--ukd-teal:#087d82}
html,body{width:100%;max-width:100%;overflow-x:hidden}
.top-header,.top-nav,.content-area{max-width:100%;min-width:0}
@media(min-width:760px){.top-nav{display:flex!important;flex-wrap:nowrap!important;height:44px!important;overflow:hidden!important;white-space:nowrap!important}.top-nav>a{flex:1 1 0!important;min-width:0!important;min-height:44px!important;padding:2px 4px!important;gap:4px!important;font-size:11px!important}.top-nav>a span{font-size:14px!important}}
@media(min-width:760px) and (max-width:1100px){.top-header{display:grid!important;grid-template-columns:140px minmax(220px,1fr) 285px!important;align-items:center!important;height:82px!important;min-height:82px!important;column-gap:6px!important;padding:0 6px!important;flex-wrap:nowrap!important}.brand-block{grid-column:1!important;grid-row:1!important;width:auto!important;min-width:0!important;padding:8px 4px 8px 8px!important}.brand-main{font-size:25px!important;line-height:28px!important}.brand-sub{font-size:12px!important;gap:5px!important}.ehr-badge{padding:2px 5px!important}.global-search{grid-column:2!important;grid-row:1!important;order:initial!important;flex-basis:auto!important;width:auto!important;min-width:0!important;padding:8px 2px!important;background:transparent!important}.global-search input{width:100%!important;min-width:0!important;max-width:none!important}.global-search button{padding:0 12px!important}.account-block{grid-column:3!important;grid-row:1!important;width:auto!important;min-width:0!important;margin:0!important;padding-right:2px!important;gap:5px!important}.account-icon{font-size:17px!important}.account-name{min-width:72px!important;font-size:11px!important}.account-action{min-width:43px!important;font-size:10px!important}.account-action b{font-size:15px!important}.content-area{min-width:0!important}}
@media(min-width:760px) and (max-width:900px){.account-name{display:none!important}.top-header{grid-template-columns:130px minmax(220px,1fr) 190px!important}.account-block{justify-content:flex-end!important}}
.workflow-page{max-width:1500px;margin:0 auto;color:#173d41}
.workflow-page h1{font-size:25px;margin:8px 0 2px}.workflow-page h2{font-size:16px;margin:0;color:#075f65}.workflow-page p{margin:3px 0;color:#60767a}
.workflow-heading{display:flex;align-items:center;justify-content:space-between;margin:4px 0 12px}
.workflow-split,.billing-workspace{display:grid!important;grid-template-columns:270px minmax(0,1fr)!important;gap:12px!important}
.workflow-patients,.workflow-records,.find-patient,.billing-history{background:#fff!important;border:1px solid var(--ukd-border)!important;border-radius:var(--ukd-panel-radius)!important;box-shadow:0 1px 3px rgba(20,62,66,.08);padding:10px!important;min-height:520px!important}
.workflow-patients,.find-patient{background:#f8fafa!important}.workflow-patients h2,.find-patient h2{font-size:16px!important;margin:2px 0 8px!important}
.workflow-search,.find-row{display:grid!important;grid-template-columns:minmax(0,1fr) 58px!important;gap:6px!important}.workflow-search input,.find-row input{min-width:0}
.workflow-patient-count{font-size:11px;color:#60767a;margin:7px 1px}.workflow-patient-list,.mini-table{height:414px!important;border:1px solid #c1cdce!important;border-radius:4px!important;overflow:auto!important;background:#fff}
.workflow-patient-list table,.mini-table table{width:100%;border-collapse:collapse}.workflow-patient-list th,.mini-table th{position:sticky;top:0;background:#edf3f3;z-index:1;text-align:center;font-size:11px;padding:6px;border-bottom:1px solid #b9c7c8}.workflow-patient-list td,.mini-table td{font-size:12px;padding:6px!important;border-bottom:1px solid #e1e8e8}.workflow-patient-list tr,.mini-table tr{cursor:pointer}.workflow-patient-list tr:hover td,.mini-table tr:hover td{background:#eef8f8}.workflow-patient-list tr.selected td,.mini-table tr.selected td{background:#d8eeee!important;border-left:0!important}.workflow-patient-list tr.selected td:first-child,.mini-table tr.selected td:first-child{border-left:3px solid var(--ukd-teal)!important}
.workflow-record-head,.billing-patient-head{display:flex;align-items:center;justify-content:space-between;padding:2px 2px 9px}.workflow-record-head h2,.billing-patient-head h2{font-size:17px!important;margin:0!important}.workflow-record-head p,.billing-patient-head p{font-size:11px;margin:2px 0 0!important}
.workflow-table,.billing-history .desktop-table{height:450px!important;border:1px solid #c1cdce!important;border-radius:4px!important;overflow:auto}.workflow-table table,.billing-history table{width:100%;border-collapse:collapse}.workflow-table th,.billing-history th{background:#edf3f3;padding:7px 6px;font-size:11px;text-align:center;white-space:nowrap}.workflow-table td,.billing-history td{padding:7px 6px!important;font-size:12px;vertical-align:middle;border-bottom:1px solid #e2e8e8}.workflow-table tbody tr:hover td,.billing-history tbody tr:hover td{background:#f5fbfb}.empty-state{text-align:center!important;color:#718489!important;padding:28px!important}.empty-state.large{padding-top:100px!important}
.workflow-page input:not([type=checkbox]):not([type=radio]),.workflow-page select,.workflow-page button,.workflow-page .button{min-height:29px;height:29px;box-sizing:border-box;border-radius:var(--ukd-radius)!important}.workflow-page input:not([type=checkbox]):not([type=radio]),.workflow-page select{padding:3px 7px!important;border:1px solid #aebfc1!important;background:#fff}.workflow-page button,.workflow-page .button{padding:4px 10px!important;line-height:19px}
.workflow-page input[type=checkbox],.v306-encounter input[type=checkbox],.v306-encounter input[type=radio]{width:14px!important;height:14px!important;min-width:14px!important;margin:0 5px 0 0!important}.workflow-page label,.v306-encounter label{font-size:11px}.workflow-page fieldset,.v306-encounter fieldset{border-color:#c1cdce!important;border-radius:5px!important}
.billing-title-row{margin:4px 0 8px}.billing-title-row h2{font-size:16px!important}.billing-delete-compact{height:29px!important}.billing-history td:nth-child(4),.billing-history td:nth-child(6){text-align:right;font-variant-numeric:tabular-nums}
.claims-page .charge-filters{margin:10px 0 7px;gap:7px}.claims-page .charge-filters input{width:118px!important}.claims-page .charge-filters select{width:130px!important}.claims-page .charges-grid{height:470px;max-width:100%;overflow:auto;border:1px solid #bcc9ca;border-radius:5px}.claims-page .charges-grid th{font-size:11px;padding:7px 5px}.claims-page .charges-grid td{font-size:11px;padding:7px 5px!important}.claims-page .admin-tools{max-width:100%;border:1px solid var(--ukd-border);border-radius:6px;padding:7px;background:#fff;gap:8px}.claims-page .admin-tools>div{gap:6px;flex-wrap:wrap}.claims-page .admin-tools-caption{font-size:11px;margin:6px 2px 3px}
/* Compact Billing editor: keep the desktop layout at ordinary laptop widths. */
#billingForm{max-width:1450px;margin:0 auto;font-size:12px}#billingForm .billing-entry-header{margin-bottom:7px;align-items:center}#billingForm .billing-entry-header h1{font-size:22px;margin:2px 0}#billingForm .billing-entry-patient{font-size:20px;margin:2px 0}#billingForm .billing-entry-header p{margin:3px 0}#billingForm .desktop-panel{border:1px solid var(--ukd-border);border-radius:6px;padding:8px 10px;margin-bottom:8px;box-shadow:0 1px 2px rgba(20,62,66,.06)}#billingForm .billing-overview-panel{display:block!important;padding:7px 10px!important}#billingForm .billing-overview-workflow{display:none!important}#billingForm .billing-overview-summary h3{font-size:13px;margin:0 0 4px}#billingForm .billing-summary-line{display:flex!important;gap:20px;padding:2px 0!important}#billingForm .billing-summary-line>span{min-width:0!important;flex:1 1 0!important}#billingForm .billing-step h2,#billingForm .visit-context-panel h2{font-size:16px;margin:3px 0 7px}#billingForm input:not([type=checkbox]):not([type=radio]),#billingForm select,#billingForm button,#billingForm .button{box-sizing:border-box;border-radius:5px!important;min-height:28px;height:28px}#billingForm input:not([type=checkbox]):not([type=radio]),#billingForm select{padding:3px 6px}#billingForm button,#billingForm .button{padding:3px 9px;line-height:20px}#billingForm input[type=checkbox],#billingForm input[type=radio]{width:14px!important;height:14px!important;min-width:14px!important}#billingForm .service-date-layout{grid-template-columns:215px minmax(0,1fr)!important;gap:14px!important;padding:7px!important}#billingForm .calendar-month-nav,#billingForm .calendar-weekdays,#billingForm .calendar-days{width:210px!important;max-width:210px!important}#billingForm .calendar-month-nav{grid-template-columns:32px 1fr 32px!important}#billingForm .calendar-month-nav button{width:32px!important}#billingForm .calendar-days{grid-auto-rows:28px!important;gap:2px!important}#billingForm .calendar-days button{height:28px!important;min-height:28px!important;font-size:12px!important;padding:0!important}#billingForm .selected-service-panel{padding-left:4px}#billingForm .selected-service-panel h3{font-size:13px}#billingForm .billing-location-grid,#billingForm .provider-auth-grid{gap:7px 10px}#billingForm .dx-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px 10px!important}#billingForm .cpt-entry-table{max-height:330px}
/* The chart editor keeps the full page width; controls are compact and visually consistent. */
.v306-encounter{font-size:12px!important;background:#f4f7f7!important}.v306-encounter-box,.v306-lower,.chart-context-line{border-radius:var(--ukd-panel-radius)!important;box-shadow:0 1px 3px rgba(20,62,66,.08)!important}.v306-encounter-box{padding:8px 10px!important;border-color:#aebfc1!important}.chart-context-line{padding:6px 10px!important;margin-bottom:7px!important;font-size:11px}.v306-section-caption{font-size:15px!important;margin-bottom:6px!important}.v306-doc-summary{font-size:11px;margin-bottom:4px!important}.v306-doc-row{gap:6px!important}.v306-doc-tabs button,.v306-subtabs button{min-height:29px!important;height:29px!important;padding:4px 10px!important;border-radius:5px 5px 0 0!important;font-size:11px!important}.v306-subpanel{padding:10px!important}.v306-form-grid{gap:6px 14px!important}.v306-form-grid input:not([type=checkbox]):not([type=radio]),.v306-form-grid select{height:28px!important;min-height:28px!important;padding:3px 6px!important;border-radius:4px!important}.v306-form-grid textarea{padding:5px 6px!important;border-radius:4px!important;min-height:54px!important}.v306-form-grid fieldset{padding:7px 9px!important}.inline-check{margin-right:15px!important;gap:4px!important}.library-item{margin:3px 0!important}.v306-library-grid{gap:7px!important;margin-bottom:8px!important}.v306-library-grid fieldset{padding:6px 8px!important}.v306-collapse{height:32px!important;border-radius:6px!important;font-size:13px!important}.v306-narrative-body{padding:7px!important;border-radius:0 0 6px 6px!important}.encounter-top-actions .button,.encounter-top-actions button{min-height:30px!important;height:30px!important;border-radius:5px!important;padding:4px 10px!important}
.v306-encounter .conditional-field[hidden]{display:none!important;visibility:visible!important}.compact-soap-grid{grid-auto-flow:row!important}.v306-subtabs,.v306-doc-tabs{max-width:100%;min-width:0}.v306-subtabs{overflow-x:auto!important}.v306-encounter-box,.chart-documentation,.v306-document-area,.v306-document-panel,.v306-subpanel{max-width:100%;min-width:0}
@media(max-width:820px){.workflow-split,.billing-workspace{grid-template-columns:1fr!important}.workflow-patients,.find-patient{min-height:0!important}.workflow-patient-list,.mini-table{height:220px!important}}
@media(max-width:650px){#billingForm .service-date-layout{grid-template-columns:1fr!important}#billingForm .calendar-month-nav,#billingForm .calendar-weekdays,#billingForm .calendar-days{width:100%!important;max-width:100%!important}#billingForm .dx-grid{grid-template-columns:1fr!important}}

/* V5.1.60 readability: compact controls remain unchanged, but no workflow text is smaller than 12px. */
.top-nav>a,
.top-nav>a span,
.account-name,
.account-name span,
.account-action,
.workflow-page,
.workflow-page p,
.workflow-page label,
.workflow-page th,
.workflow-page td,
.workflow-patient-count,
.workflow-patient-list th,
.workflow-patient-list td,
.mini-table th,
.mini-table td,
.workflow-record-head p,
.billing-patient-head p,
.claims-page .charges-grid th,
.claims-page .charges-grid td,
.claims-page .admin-tools-caption,
#billingForm,
#billingForm label,
.v306-encounter,
.v306-encounter label,
.v306-doc-summary,
.v306-doc-tabs button,
.v306-subtabs button,
.chart-context-line{font-size:12px!important}

/* Shared application density: Schedule, Patients, Eligibility, Reports, and Settings. */
.content-area{font-size:12px!important}
.content-area p,
.content-area label,
.content-area small,
.content-area th,
.content-area td,
.content-area input,
.content-area select,
.content-area textarea,
.content-area button,
.content-area .button{font-size:12px!important}
.content-area input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.content-area select,
.content-area button,
.content-area .button{box-sizing:border-box;min-height:30px;height:30px;border-radius:5px!important}
.content-area input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.content-area select{padding:4px 7px!important;line-height:18px!important}
.content-area button,
.content-area .button{padding:4px 10px!important;line-height:20px!important}
.content-area input[type="checkbox"],
.content-area input[type="radio"]{width:14px!important;height:14px!important;min-width:14px!important}
.content-area textarea{border-radius:5px!important;padding:5px 7px!important}
.content-area .card,
.content-area .desktop-panel,
.content-area fieldset{border-radius:6px}

/* Compact unified patient search in the teal header. */
.global-search{justify-content:center!important}
.global-search>span{box-sizing:border-box!important;height:36px!important;padding:7px 2px 7px 10px!important;border-color:#79b5b8!important;border-radius:7px 0 0 7px!important;font-size:17px!important}
.global-search input{box-sizing:border-box!important;width:min(390px,40vw)!important;min-width:0!important;max-width:390px!important;height:36px!important;padding:0 8px!important;border-color:#79b5b8!important;border-radius:0!important;font-size:12px!important}
.global-search button{box-sizing:border-box!important;height:36px!important;min-height:36px!important;margin-left:0!important;padding:0 14px!important;border-radius:0 7px 7px 0!important;font-size:12px!important}
.global-search{position:relative!important}.global-search input:focus{outline:none!important;box-shadow:none!important}.global-search:focus-within>span{border-color:#b7dfe0!important}.global-search:focus-within input{border-top-color:#b7dfe0!important;border-bottom-color:#b7dfe0!important}.global-search-results{position:absolute;z-index:5000;top:calc(50% + 18px);left:50%;transform:translateX(-50%);width:min(520px,96%);max-height:300px;overflow:auto;background:#fff;color:#173d41;border:1px solid #9fb7b9;border-radius:0 0 7px 7px;box-shadow:0 8px 20px rgba(16,55,59,.18);text-align:left}.global-search-result{display:flex;flex-direction:column;gap:2px;padding:8px 10px;color:#173d41;border-bottom:1px solid #e1e9e9}.global-search-result:hover{background:#eaf6f6}.global-search-result b{font-size:12px}.global-search-result span,.global-search-empty{font-size:12px;color:#62787b}.global-search-empty{padding:10px}

/* Compact Patient List workspace. */
.patients-page{max-width:1450px;margin:0 auto}.patients-page h1{font-size:24px!important;margin:3px 0 2px}.patients-page .page-subtitle{margin:2px 0 8px!important}.patients-page .patient-list-toolbar{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important;margin:8px 0!important;padding:0!important}.patients-page .searchbox{flex:0 1 340px!important;width:340px!important;min-width:240px!important;max-width:100%!important;height:30px!important;padding:0 8px!important;border:1px solid #9eb2b4!important;border-radius:6px!important;background:#fff!important}.patients-page .searchbox:focus-within{border-color:#087d82!important;box-shadow:0 0 0 2px rgba(8,125,130,.10)!important}.patients-page .searchbox input{height:28px!important;min-height:28px!important;padding:3px 6px!important;border:0!important;outline:0!important;box-shadow:none!important}.patients-page .patient-count{margin:3px 1px 6px!important}.patients-page .patient-list-table{height:430px!important;border:1px solid #b4c2c4!important;border-radius:6px!important;overflow:auto!important}.patients-page .patient-list-table table{min-width:780px!important}.patients-page .patient-list-table th{height:32px!important;padding:6px!important;font-size:12px!important}.patients-page .patient-list-table td{height:32px!important;padding:6px 8px!important;font-size:12px!important}.patients-page .patient-list-table tr.selected td{background:#d8eeee!important;border-left:0!important}.patients-page .patient-list-table tr.selected td:first-child{border-left:3px solid var(--ukd-teal)!important}

/* V5.1.61 final shared UI corrections. */
.record-status,.elig-status,.elig-status.big{box-sizing:border-box!important;min-height:26px!important;height:26px!important;padding:0 9px!important;border-radius:13px!important;font-size:12px!important;line-height:24px!important}
@media(max-width:1100px){.record-status,.elig-status,.elig-status.big{min-height:26px!important;height:26px!important;font-size:12px!important}}
.workflow-table th,.workflow-table td{vertical-align:middle!important}.chart-history-table th:nth-child(1),.chart-history-table td:nth-child(1),.chart-history-table th:nth-child(2),.chart-history-table td:nth-child(2),.chart-history-table th:nth-child(4),.chart-history-table td:nth-child(4),.chart-history-table th:nth-child(5),.chart-history-table td:nth-child(5),.chart-history-table th:nth-child(6),.chart-history-table td:nth-child(6),.chart-history-table th:nth-child(7),.chart-history-table td:nth-child(7){text-align:center!important}.chart-history-table th:nth-child(3),.chart-history-table td:nth-child(3){text-align:left!important}.chart-history-table th:nth-child(1){width:7%}.chart-history-table th:nth-child(2){width:14%}.chart-history-table th:nth-child(3){width:20%}.chart-history-table th:nth-child(4){width:20%}.chart-history-table th:nth-child(5){width:15%}.chart-history-table th:nth-child(6){width:12%}.chart-history-table th:nth-child(7){width:12%}
.chart-row-actions{display:flex;align-items:center;justify-content:center;gap:6px}.chart-row-actions form{display:inline-flex;margin:0}.chart-row-actions .button{min-width:54px!important;height:30px!important;min-height:30px!important;padding:4px 8px!important}.patient-insurance-meta{margin-top:2px!important;color:#315d62!important;font-size:12px!important;line-height:1.35!important}.workflow-record-head .patient-insurance-meta{margin-top:3px!important}
#billingForm .cpt-entry-table th:nth-child(4){width:112px!important}#billingForm .cpt-entry-table .units-cell{width:112px!important;min-width:112px!important;max-width:112px!important;padding-left:3px!important;padding-right:3px!important;text-align:center!important}#billingForm .unit-stepper{display:grid!important;width:max-content!important;grid-template-columns:26px 42px 26px!important;gap:3px!important;align-items:center!important;justify-items:center!important;margin:0 auto!important}#billingForm .unit-step-btn{display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;width:26px!important;min-width:26px!important;height:28px!important;min-height:28px!important;padding:0!important;line-height:1!important;text-align:center!important}#billingForm .unit-stepper .units-input{width:42px!important;min-width:42px!important;max-width:42px!important;height:28px!important}#billingForm .units-input.fixed-unit{display:block!important;width:42px!important;min-width:42px!important;max-width:42px!important;height:28px!important;margin:0 auto!important}#billingForm .cpt-entry-table th:nth-child(10),#billingForm .cpt-entry-table td:nth-child(10){text-align:right!important;font-variant-numeric:tabular-nums!important;padding-right:12px!important}
.billing-specialty-dialog{max-width:760px!important;padding:20px 16px!important}.billing-specialty-dialog .dialog-title{font-size:22px!important;line-height:1.2!important;margin-bottom:4px!important}.billing-specialty-options{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0 18px}.billing-specialty-option{display:flex!important;align-items:center!important;justify-content:flex-start!important;height:42px!important;min-height:42px!important;padding:0 13px!important;font-size:13px!important;font-weight:600!important}@media(max-width:600px){.billing-specialty-options{grid-template-columns:1fr;gap:9px}}
.encounter-choice .choice-row{display:grid!important;grid-template-columns:auto minmax(0,1fr) 18px!important;align-items:center!important;gap:8px!important}.encounter-choice .choice-row input[type="radio"]{grid-column:3!important;margin-left:auto!important}

/* V5.1.62 Billing status columns and SMS Test Mode */
.billing-history .desktop-table{max-width:100%!important;overflow-x:auto!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch}.billing-history .billing-status-table{width:100%!important;min-width:960px!important;table-layout:fixed!important}.billing-history .billing-status-table.with-destination{width:100%!important;min-width:1080px!important}.billing-status-table th,.billing-status-table td{box-sizing:border-box;min-width:0!important;overflow:hidden;text-overflow:ellipsis;vertical-align:middle!important}.billing-status-table th{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;line-height:1.15;text-align:center!important;padding-left:4px!important;padding-right:4px!important}.billing-status-table td:nth-child(3){text-align:center!important}.billing-status-table .billing-cpt-cell{text-align:left!important;padding-left:8px!important}.billing-status-table td:nth-child(3),.billing-status-table .billing-cpt-cell{vertical-align:top!important;padding-top:8px!important;line-height:1.3}.billing-status-table .billing-cpt-cell{white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}.billing-status-table .money-cell{text-align:right!important;padding-right:8px!important;font-variant-numeric:tabular-nums;white-space:nowrap!important}.billing-status-table .billing-destination-cell{text-align:center!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}.billing-status-table .record-status{display:inline-flex!important;align-items:center!important;justify-content:center!important;max-width:none!important;white-space:nowrap!important;padding-left:6px!important;padding-right:6px!important;line-height:1!important}.billing-status-table .record-open-btn{white-space:nowrap!important;overflow:visible!important}.record-status.note-no-chart{background:#edf2f2!important;border-color:#aababc!important;color:#486267!important;text-align:center!important}
.test-mode-banner{margin:8px 0;padding:7px 10px;border:1px solid #d2aa55;border-radius:5px;background:#fff5d8;color:#73540a;font-weight:700;font-size:12px}.sms-test-schedule{margin:12px 0;padding:8px;border:1px solid #aec4c6;border-radius:6px;background:#f8fbfb}.sms-test-schedule h2{margin:0!important;font-size:14px!important}.sms-appt-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:center;padding:7px 0;border-bottom:1px solid #dbe5e6}.sms-appt-row>div{min-width:0}.sms-appt-row b,.sms-appt-row small{display:block}.sms-appt-row small{color:#60767a}.sms-appt-row form{margin:0}.sms-status{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:0 8px;border-radius:12px;border:1px solid #9db2b4;background:#edf2f2;font-size:11px;font-weight:700}.sms-delivered{background:#def2e3;border-color:#86bb91;color:#286638}.sms-failed{background:#fde6e6;border-color:#cb8585;color:#8d3434}.sms-consent-summary{margin-top:3px;color:#315d62;font-size:12px}.sms-consent-opted-in{color:#286638;font-weight:700}.sms-consent-opted-out{color:#8d3434;font-weight:700}.sms-consent-not-set{color:#755c0a;font-weight:700}.sms-settings-card{max-width:920px}.sms-settings-card>label{display:block;margin:8px 0}.sms-consent-page{max-width:900px;margin:10px auto}.sms-history-page{max-width:1500px;margin:0 auto}.sms-history-page table{min-width:1250px}.sms-history-page th,.sms-history-page td{vertical-align:middle}.sms-history-page .sms-body-cell{min-width:280px;white-space:normal}.sms-history-page td form{display:flex;align-items:center;gap:5px}.sms-history-page td small{display:block;margin-top:3px;color:#60767a}

/* V5.1.68 clinic-safe workflow polish. */
.billing-status-table th:nth-child(3),.billing-status-table td:nth-child(3){text-align:center!important;vertical-align:middle!important;white-space:nowrap!important}
.billing-status-table th:nth-child(6),.billing-status-table td:nth-child(6){text-align:center!important;vertical-align:middle!important;white-space:nowrap!important}
.claims-page .col-insurance{text-align:left!important;vertical-align:middle!important}.claims-page .col-insurance>span,.claims-page .insurance-member-id{display:block}.claims-page .insurance-member-id{margin-top:3px;color:#526d72;white-space:nowrap}
.schedule-toolbar .schedule-date-control input,.schedule-toolbar .schedule-calendar-button,.schedule-side .schedule-date-control input,.schedule-side .schedule-calendar-button{height:30px!important;min-height:30px!important}
.schedule-toolbar .schedule-calendar-button,.schedule-side .schedule-calendar-button{width:36px!important;min-width:36px!important}.schedule-toolbar .schedule-date-control{grid-template-columns:minmax(0,1fr) 36px}.schedule-toolbar .schedule-date-picker.toolbar-picker{width:180px;flex-basis:180px}.schedule-calendar-popover{top:35px!important}
.schedule-appt .appt-patient-details{display:block;line-height:1.08;margin-top:1px;overflow:hidden}.schedule-appt .appt-patient-details span{display:block;font-size:9px!important;line-height:1.08;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#21494d}.schedule-appt .appt-top{line-height:1.05}

/* Billing history: keep shared list columns consistently centered. */
.billing-status-table th:nth-child(1){white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
.billing-status-table th:nth-child(3),.billing-status-table td:nth-child(3),
.billing-status-table th:nth-child(4),.billing-status-table td:nth-child(4),
.billing-status-table .billing-cpt-cell{text-align:center!important;vertical-align:middle!important}
.billing-status-table td:nth-child(3){white-space:nowrap!important}
.billing-status-table .billing-cpt-cell{padding-top:7px!important;padding-left:6px!important;padding-right:6px!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
.billing-status-table .billing-cpt-item{display:inline-block!important;white-space:nowrap!important;margin-right:4px!important}

/* Claims: center insurer details and the Charge heading; keep money right aligned. */
.claims-page th.col-insurance,.claims-page td.col-insurance{text-align:center!important;vertical-align:middle!important}
.claims-page th.col-charge{text-align:center!important;vertical-align:middle!important}
.claims-page td.col-charge{text-align:right!important;vertical-align:middle!important;font-variant-numeric:tabular-nums!important;padding-right:12px!important;white-space:nowrap!important}
.claims-page .claim-patient-cell>span,.claims-page .claim-patient-cell>small{display:block!important}.claims-page .claim-patient-cell>small{margin-top:3px;color:#526d72;white-space:nowrap}
.claims-page .charges-grid th.col-charge,.claims-page .charges-grid td.col-charge{width:84px!important;max-width:84px!important}
.claims-page .charges-grid th.col-paid,.claims-page .charges-grid td.col-paid{width:72px!important;max-width:72px!important;white-space:nowrap!important}
.claims-page .charges-grid th.col-paid{text-align:center!important;padding-left:4px!important;padding-right:4px!important}
.claims-page .charges-grid th.col-action,.claims-page .charges-grid td.col-action{width:76px!important;max-width:76px!important;white-space:nowrap!important}
.claims-page .charges-grid td.col-paid{text-align:right!important;padding-right:12px!important;font-variant-numeric:tabular-nums!important}
.claims-page .charges-grid .charge-open-action .button{min-width:54px!important;padding-left:8px!important;padding-right:8px!important}

/* Chart history: Chart Type is centered in both master and patient views. */
.chart-history-table th:nth-child(3),.chart-history-table td:nth-child(3){text-align:center!important;vertical-align:middle!important}
.sms-mode-disabled{background:#edf2f2!important;border-color:#aebbbc!important;color:#52696d!important}.sms-unavailable{display:inline-flex;align-items:center;justify-content:center;min-height:24px;padding:0 7px;border-radius:12px;background:#edf2f2;border:1px solid #b2c0c2;color:#536a6e;font-size:10px;font-weight:700;white-space:nowrap}

/* V5.1.70: defeat legacy Billing selectors that forced Provider left and CPT right. */
.billing-history .desktop-table .billing-status-table th:nth-child(1){text-align:center!important;white-space:nowrap!important;text-overflow:clip!important}
.billing-history .desktop-table .billing-status-table th:nth-child(3),
.billing-history .desktop-table .billing-status-table td:nth-child(3),
.billing-history .desktop-table .billing-status-table th:nth-child(4),
.billing-history .desktop-table .billing-status-table td:nth-child(4),
.billing-history .desktop-table .billing-status-table td.billing-cpt-cell,
.tab-panel .desktop-table .billing-status-table th:nth-child(3),
.tab-panel .desktop-table .billing-status-table td:nth-child(3),
.tab-panel .desktop-table .billing-status-table th:nth-child(4),
.tab-panel .desktop-table .billing-status-table td:nth-child(4),
.tab-panel .desktop-table .billing-status-table td.billing-cpt-cell{
  text-align:center!important;
  vertical-align:middle!important;
}
.sms-consent-label{display:inline-block!important;white-space:nowrap!important}

/* V5.1.96: center both Billing status columns, overriding the older money-column rule. */
.billing-history .desktop-table .billing-status-table th:nth-child(6),
.billing-history .desktop-table .billing-status-table td:nth-child(6),
.billing-history .desktop-table .billing-status-table th:nth-child(7),
.billing-history .desktop-table .billing-status-table td:nth-child(7){text-align:center!important;vertical-align:middle!important}

/* V5.1.97: iPad header and Billing list keep usable control/column widths. */
@media(min-width:700px) and (max-width:1100px){
  .top-header .global-search{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;max-width:100%!important;overflow:hidden!important}
  .top-header .global-search>span,.top-header .global-search button{flex:none!important}
  .top-header .global-search>span,.top-header .global-search input,.top-header .global-search button{height:34px!important;min-height:34px!important;max-height:34px!important}
  .top-header .global-search input{width:100%!important;min-width:0!important;max-width:100%!important;padding-top:0!important;padding-bottom:0!important;line-height:34px!important}
  .billing-history .desktop-table{max-width:100%!important;overflow-x:auto!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch}
  .billing-history .desktop-table .billing-status-table{width:100%!important;min-width:960px!important;table-layout:fixed!important}
  .billing-history .desktop-table .billing-status-table.with-destination{width:100%!important;min-width:1080px!important}
  .billing-history .desktop-table .billing-status-table th:nth-child(2),
  .billing-history .desktop-table .billing-status-table td:nth-child(2),
  .billing-history .desktop-table .billing-status-table th:nth-child(6),
  .billing-history .desktop-table .billing-status-table td:nth-child(6),
  .billing-history .desktop-table .billing-status-table th:nth-child(7),
  .billing-history .desktop-table .billing-status-table td:nth-child(7){white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important}
}

/* V5.1.100: iPad Safari landscape may report a viewport wider than 1100px.
   Detect the touch pointer as well, and cap the complete Patient Search control. */
@media (hover:none) and (pointer:coarse) and (min-width:700px){
  .top-header{grid-template-columns:minmax(110px,150px) minmax(250px,1fr) minmax(220px,285px)!important;column-gap:8px!important;padding-left:6px!important;padding-right:6px!important}
  .top-header .brand-block,.top-header .account-block{min-width:0!important;width:auto!important}
  .top-header .global-search{display:grid!important;grid-template-columns:28px minmax(0,1fr) 58px!important;justify-self:center!important;justify-content:center!important;width:min(100%,400px)!important;max-width:400px!important;min-width:0!important;padding-left:0!important;padding-right:0!important;overflow:visible!important}
  .top-header .global-search>span{box-sizing:border-box!important;width:28px!important;height:34px!important;padding:6px 2px 6px 8px!important}
  .top-header .global-search input{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:none!important;height:34px!important;min-height:34px!important;max-height:34px!important;padding-top:0!important;padding-bottom:0!important;line-height:34px!important;font-size:11px!important;-webkit-appearance:none!important;appearance:none!important}
  .top-header .global-search button{box-sizing:border-box!important;width:58px!important;height:34px!important;min-height:34px!important;padding:0 6px!important;font-size:11px!important}
  .top-header .global-search-results{width:min(400px,96vw)!important;top:calc(50% + 17px)!important}
}

/* V5.1.105: stable narrow-screen Chart/Billing tables and paired ROM figures. */
.workflow-records .chart-history-table{max-width:100%!important;overflow-x:auto!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch}
.workflow-records .chart-history-table table{width:max(100%,820px)!important;min-width:820px!important;table-layout:fixed!important}
.workflow-records .chart-history-table th{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
.workflow-records .chart-history-table td:nth-child(2),
.workflow-records .chart-history-table td:nth-child(5),
.workflow-records .chart-history-table td:nth-child(6),
.workflow-records .chart-history-table td:nth-child(7){white-space:nowrap!important}
.workflow-records .chart-history-table .record-status,
.workflow-records .chart-history-table .record-open-btn{white-space:nowrap!important;max-width:none!important}
.rom-guide-items{align-self:start;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;width:100%;margin-top:10px}
.rom-guide-item{display:grid;grid-template-rows:auto auto;gap:6px;min-width:0;margin:0;text-align:center}
.rom-guide-item figcaption{position:relative;z-index:1;justify-self:center;max-width:100%;padding:3px 7px;border-radius:4px;background:#fff;color:#075f66;font-size:12px;font-weight:700;line-height:1.15;white-space:normal;box-shadow:0 1px 3px rgba(20,60,64,.08)}
.rom-guide-item img{position:static!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:3/2;object-fit:contain!important;margin:0!important}
.rom-guide-item:nth-child(n+3){margin-top:16px}
@media(max-width:900px){.rom-guide-items{width:min(100%,520px);margin:10px auto 0}.rom-guide-item figcaption{font-size:11px}}


/* V5.1.83: keep every SMS appointment in one predictable two-column row. */
.sms-appt-row{
  grid-template-columns:minmax(0,1fr) max-content!important;
  grid-template-rows:auto auto!important;
  column-gap:8px!important;
  row-gap:5px!important;
  align-items:center!important;
}
.sms-appt-row>div:first-child{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  align-self:start!important;
  overflow-wrap:anywhere;
}
.sms-appt-row>.sms-status{
  grid-column:2!important;
  grid-row:1!important;
  justify-self:end!important;
  width:auto!important;
  white-space:nowrap!important;
}
.sms-appt-row>.sms-send-form,
.sms-appt-row>a.button,
.sms-appt-row>.sms-unavailable{
  grid-column:2!important;
  grid-row:2!important;
  justify-self:end!important;
  width:auto!important;
  margin:0!important;
  white-space:nowrap!important;
}
.sms-appt-row>.sms-send-form .button{
  width:auto!important;
  min-width:76px!important;
  margin:0!important;
}

/* V5.1.84: compact centered specialty choices. */
.billing-specialty-dialog{max-width:520px!important;margin:34px auto 0!important;padding:22px 18px!important;box-sizing:border-box!important;text-align:center!important}
.billing-specialty-dialog .dialog-title,.billing-specialty-dialog .page-subtitle{text-align:center!important}
.billing-specialty-options{grid-template-columns:repeat(2,205px)!important;justify-content:center!important;gap:12px!important;margin:18px 0 14px!important}
.billing-specialty-option{justify-content:center!important;text-align:center!important;width:100%!important;box-sizing:border-box!important}
.billing-specialty-cancel{display:flex!important;justify-content:center!important;margin-top:0!important}
.billing-specialty-cancel .button{min-width:92px!important;text-align:center!important}

/* Claims may wrap only between complete CPT + unit tokens. */
.claims-page table td:nth-child(7){white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;line-height:1.45!important}
@media(max-width:600px){.billing-specialty-dialog{max-width:360px!important;margin-top:18px!important}.billing-specialty-options{grid-template-columns:minmax(190px,260px)!important;justify-content:center!important}}

/* V5.1.84 Claims filters, patient picker, and 20-row paging. */
.claims-filter-form{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:12px!important;margin:10px 0 15px!important}
.claims-filter-row{display:flex!important;align-items:flex-end!important;flex-wrap:wrap!important;gap:10px!important;width:100%!important}
.claims-filter-row>label{display:flex!important;flex-direction:column!important;gap:3px!important;margin:0!important;height:auto!important;min-height:0!important;align-items:stretch!important;font-size:11px!important}
.claims-filter-form input,.claims-filter-form select{height:30px!important;min-height:30px!important;box-sizing:border-box!important}
.claims-page .claims-filter-form select{width:100%!important;min-width:0!important}
.claims-filter-form input[name="from"],.claims-filter-form input[name="to"]{width:auto!important}
.claims-date-filter .ukd-date-control{width:145px!important;height:30px!important;min-height:30px!important}
.claims-date-filter .ukd-date-control>.ukd-date-entry{width:calc(100% - 32px)!important;height:30px!important;min-height:30px!important;padding:4px 6px!important}
.claims-date-filter .ukd-calendar-button{flex:0 0 32px!important;width:32px!important;min-width:32px!important;height:30px!important;min-height:30px!important;font-size:14px!important}
.claims-patient-filter{position:relative;display:grid;grid-template-columns:250px auto;justify-content:start;align-items:end;gap:6px}
.claims-page .claims-patient-filter #claimPatientSearch{width:250px!important;min-width:250px!important}
.claims-location-filter{width:145px}.claims-specialty-filter{width:145px}.claims-provider-filter{width:170px}.claims-status-filter{width:170px}
.claims-patient-filter>label{display:flex!important;flex-direction:column!important;gap:3px!important;height:auto!important;min-height:0!important;align-items:stretch!important;font-size:11px}
.claims-patient-clear{height:30px!important;min-height:30px!important;padding:3px 9px!important}
.claims-apply-filter,.claims-clear-filters{white-space:nowrap!important;margin:0!important}
.claims-patient-results{position:absolute;left:0;top:52px;z-index:500;width:360px;padding:10px;border:1px solid #9db5b7;border-radius:6px;background:#fff;box-shadow:0 8px 22px rgba(20,55,60,.2)}
.claims-patient-list{max-height:235px;overflow:auto;margin-top:7px;border:1px solid #c4d1d3}
.claims-patient-list table{width:100%;border-collapse:collapse}.claims-patient-list th,.claims-patient-list td{padding:7px 9px!important;text-align:left!important}.claims-patient-list tbody tr{cursor:pointer}.claims-patient-list tbody tr:hover{background:#dff1f0}
.claims-pagination{display:flex;align-items:center;justify-content:center;width:100%;gap:12px;margin:12px 0 16px}.claims-pagination>div{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}.claims-pagination .button{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:28px;min-height:28px;padding:3px 8px;text-align:center}.claims-pagination .active{background:#087d83;color:#fff}.page-gap{padding:0 3px}
@media(max-width:760px){.claims-filter-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.claims-filter-row>label{width:auto!important}.claims-patient-filter{grid-column:1 / -1!important;grid-template-columns:minmax(0,1fr) auto!important}.claims-date-filter .ukd-date-control{width:145px!important}.claims-apply-filter{justify-self:end!important}.claims-clear-filters{justify-self:start!important}}
@media(max-width:760px){.claims-page .claims-patient-filter #claimPatientSearch{width:100%!important;min-width:0!important}}

/* V5.1.87: center both fixed and adjustable Billing unit values. */
#billingForm .cpt-entry-table .units-input{box-sizing:border-box!important;text-align:center!important;padding-left:0!important;padding-right:0!important;-moz-appearance:textfield!important;appearance:textfield!important}
#billingForm .cpt-entry-table .units-input::-webkit-outer-spin-button,#billingForm .cpt-entry-table .units-input::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important}

/* Live/Test SMS configuration and webhook display. */
.sms-live-banner{background:#e8f7ec!important;border-color:#86c596!important;color:#21633a!important}
.sms-webhook-box{display:grid;gap:5px;margin:10px 0;padding:10px;border:1px solid #abc2c4;background:#f7fbfb}
.sms-webhook-box code{display:block;padding:7px;background:#edf3f3;overflow-wrap:anywhere;user-select:all}
.sms-webhook-box small{color:#5d7478}
.sms-history-page .sms-status+small{display:block;margin-top:3px}

/* V5.1.110: stronger header action contrast and unified clinic request queue. */
.top-header .global-search button{background:#18a5ad!important;border:1px solid #72d4d8!important;border-left:0!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)!important}
.top-header .global-search button:hover,.top-header .global-search button:focus{background:#22b8c0!important;outline:2px solid #fff!important;outline-offset:-3px!important}
.request-tabs{display:flex;gap:5px;overflow-x:auto;margin:8px 0 12px;border-bottom:1px solid #aebfc1}.request-tabs a{padding:9px 12px;white-space:nowrap;color:#174d52;border:1px solid transparent;border-radius:6px 6px 0 0}.request-tabs a.active{background:#087d83;color:#fff;border-color:#087078;font-weight:700}
.request-filters{display:flex;align-items:end;gap:8px;margin-bottom:10px}.request-filters label{display:grid;gap:3px;min-width:180px}.request-queue-card{padding:0;overflow:hidden}.request-table{min-width:920px}.request-table th,.request-table td{vertical-align:middle}.request-table td small{display:block;color:#60777a}.request-type{font-weight:700;color:#075d63}.request-status{display:inline-block;padding:4px 8px;border:1px solid #9db5b7;border-radius:14px;white-space:nowrap;background:#edf4f4;color:#244e52}.request-status.new{background:#fff0c9;border-color:#e2be59;color:#755300}.request-status.in-review,.request-status.waiting-for-payer{background:#e4f2ff;border-color:#87bbe9;color:#245d86}.request-status.waiting-for-clinic{background:#fde6d1;border-color:#e9a76d;color:#82450d}.request-status.resolved,.request-status.closed{background:#e1f4e5;border-color:#83c391;color:#25693a}
.request-form{max-width:980px;display:grid;gap:13px}.request-form-grid{display:grid;grid-template-columns:2fr 2fr 1fr 1.4fr;gap:10px}.request-form label,.request-reply label{display:grid;gap:4px}.request-form input,.request-form select,.request-form textarea,.request-reply textarea,.request-reply select{width:100%;box-sizing:border-box}.request-patient-picker{padding:10px;border:1px solid #b8c9ca;border-radius:6px;background:#f8fbfb}.request-patient-picker h3{margin:0 0 7px}.request-patient-picker h3 small{font-weight:400;color:#60777a}.request-patient-results{display:grid;max-height:185px;overflow:auto;margin:6px 0;border:1px solid #c5d2d3}.request-patient-results button{display:flex;justify-content:space-between;text-align:left;padding:7px 9px;border:0;border-bottom:1px solid #e0e8e9;background:#fff;color:#183f43;cursor:pointer}.request-patient-results button:hover{background:#e4f3f3}.request-patient-results button span{color:#60777a}.request-patient-selected{padding:7px 9px;background:#edf2f2;color:#65777a}.request-patient-selected.chosen{background:#d9eeee;color:#144f54}.request-upload-row{display:flex;align-items:end;gap:12px}.request-upload-row>label{flex:1}.request-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:14px}.request-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:14px}.request-summary>div{display:grid;gap:3px}.request-summary span{font-size:11px;color:#60777a}.request-summary small{display:block}.request-thread{display:grid;gap:10px}.request-message{padding:12px;border:1px solid #bac9ca;border-radius:7px;background:#fff}.request-message.admin-message{border-left:5px solid #087d83;background:#f3fbfb}.request-message.clinic-message{border-left:5px solid #7ca4a7}.request-message header{display:flex;justify-content:space-between;margin-bottom:8px}.request-message header span{font-size:11px;color:#60777a}.request-message footer{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}.request-files>a{display:grid;padding:7px 0;border-bottom:1px solid #e0e8e9}.request-files small{color:#60777a}.request-reply{display:grid;gap:10px;margin-top:14px}.client-row small{display:block}
@media(max-width:900px){.request-form-grid{grid-template-columns:1fr 1fr}.request-detail-grid{grid-template-columns:1fr}.request-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.request-upload-row{flex-direction:column;align-items:stretch}.request-filters{flex-wrap:wrap}}

/* V5.1.111: Eligibility and Requests share navigation, not table formats. */
.request-mode-tabs{display:flex;gap:0;margin:8px 0 12px;border-bottom:1px solid #9fb7b9}.request-mode-tabs a{min-width:110px;padding:9px 16px;text-align:center;color:#174d52;border:1px solid transparent;border-radius:6px 6px 0 0}.request-mode-tabs a.active{background:#087d83;color:#fff;border-color:#087078;font-weight:700}
.request-type{display:inline-block;padding:4px 9px;border:1px solid #8fb8bb;border-radius:13px;white-space:nowrap;background:#e3f2f3;color:#155d63}
.request-type.type-claims-billing{background:#def0f7;border-color:#78b5cd;color:#145976}.request-type.type-payment-eob{background:#e1f3e6;border-color:#83bf91;color:#24653a}.request-type.type-credentialing{background:#ece7f8;border-color:#a89acb;color:#594785}.request-type.type-other{background:#edf1f1;border-color:#aab9ba;color:#4d6264}
.request-status.new{background:#fff3ce!important;border-color:#e4c45d!important;color:#725400!important}.request-status.in-review{background:#e4f2ff!important;border-color:#87bbe9!important;color:#245d86!important}.request-status.waiting-for-clinic{background:#fde6d1!important;border-color:#e9a76d!important;color:#82450d!important}.request-status.waiting-for-payer{background:#ece7f8!important;border-color:#a89acb!important;color:#594785!important}.request-status.resolved{background:#e1f4e5!important;border-color:#83c391!important;color:#25693a!important}.request-status.closed{background:#edf1f1!important;border-color:#aab9ba!important;color:#4d6264!important}
.request-upload-row>label{display:grid!important;grid-template-rows:auto 38px auto!important;align-content:start!important}.request-upload-row select,.request-upload-row input[type=file]{box-sizing:border-box!important;height:38px!important;min-height:38px!important;margin:0!important}.request-upload-row input[type=file]{padding:5px 7px!important;border:1px solid #9fb7b9!important;background:#fff!important}.request-upload-row small{min-height:16px;margin-top:4px}.admin-separated-queues{display:grid;gap:12px;min-width:0}.admin-desk-request-table{min-width:720px}

/* V5.1.112: labels with helper text must not pull the neighboring field downward. */
.request-form .request-upload-row,.request-reply .request-upload-row{align-items:flex-start!important}.request-upload-row>label{align-self:start!important}.request-upload-row>label>select,.request-upload-row>label>input[type=file]{align-self:start!important}

/* V5.1.113: stable Request/Eligibility layout, distinct request semantics, and permission-visible navigation. */
html{scrollbar-gutter:stable}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}
.top-nav>a.nav-locked,.account-action.nav-locked{opacity:.52!important;background:#f4f6f6!important;color:#687b7d!important}
.top-nav>a.nav-locked:hover,.account-action.nav-locked:hover{opacity:.72!important}
.nav-lock{font-size:10px!important;line-height:1!important;color:#6f7f81!important}
.settings-side .settings-nav-item{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

.request-table{width:100%!important;min-width:1060px!important;table-layout:fixed!important}
.request-table th,.request-table td{text-align:center!important;vertical-align:middle!important;padding-left:8px!important;padding-right:8px!important}
.request-table .request-col-patient,.request-table .request-col-subject{text-align:left!important}
.request-col-clinic{width:130px}.request-col-type{width:145px}.request-col-patient{width:145px}.request-col-dos{width:95px}.request-col-subject{width:auto}.request-col-status{width:125px}.request-col-priority{width:75px}.request-col-files{width:55px}.request-col-updated{width:145px}.request-col-action{width:66px}
.request-col-subject a{display:block;max-width:100%;overflow-wrap:anywhere}.request-col-action .button{margin:0!important}
.request-type{display:inline-flex!important;align-items:center!important;gap:6px!important;max-width:100%;padding:4px 8px!important;border:1px solid #92a7aa!important;border-radius:4px!important;background:#fff!important;color:#244b4f!important;box-shadow:none!important;white-space:nowrap!important}
.request-type i{display:inline-flex;align-items:center;justify-content:center;min-width:19px;height:19px;padding:0 2px;border:1px solid #9eadaf;border-radius:3px;background:#eef2f2;color:#405d60;font-size:10px;font-style:normal;font-weight:800}
.request-status{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:max-content!important;max-width:100%;min-height:28px;box-sizing:border-box}
.request-status.new{background:#dff4f5!important;border-color:#6ebdc2!important;color:#075f66!important}
.request-status.in-review{background:#e4f2ff!important;border-color:#87bbe9!important;color:#245d86!important}
.request-status.waiting-for-clinic{background:#fde6d1!important;border-color:#e9a76d!important;color:#82450d!important}
.request-status.waiting-for-payer{background:#ece7f8!important;border-color:#a89acb!important;color:#594785!important}
.request-status.resolved{background:#e1f4e5!important;border-color:#83c391!important;color:#25693a!important}
.request-status.closed{background:#edf1f1!important;border-color:#aab9ba!important;color:#4d6264!important}
.request-summary .request-status{justify-self:start!important;align-self:start!important}

.request-patient-picker{position:relative}.request-patient-search-wrap{position:relative}
.request-patient-results{position:absolute!important;left:0;right:0;top:100%;z-index:500;max-height:210px!important;margin:4px 0 0!important;background:#fff;box-shadow:0 8px 22px rgba(20,55,60,.18)}
.request-patient-results[hidden]{display:none!important}.request-patient-empty{padding:10px;color:#60777a}
.request-patient-none{padding:7px 9px;color:#65777a;background:#edf2f2}
.request-patient-selected{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:7px;padding:9px 11px;border:2px solid #39a3a8;border-radius:6px;background:#dff3f3;color:#123f43}
.request-patient-selected[hidden]{display:none!important}.request-patient-selected>span:nth-child(2){display:grid;gap:2px}.request-patient-selected small{color:#3e686c;font-weight:700}.request-patient-selected b{font-size:15px}.request-patient-selected span span{color:#526d70}.request-selected-check{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#087d83;color:#fff;font-weight:800}

.request-message.admin-message{margin-left:min(8%,70px);border-left:1px solid #8cbfc2!important;border-right:5px solid #087d83;background:#edf8f8!important}
.request-message.clinic-message{margin-right:min(8%,70px);border-left:5px solid #819b9e!important;background:#fff!important}
.request-reply .page-subtitle{margin-top:-5px}.request-reply-submit{justify-self:start;width:auto!important;min-width:190px}
.request-upload-row>label:first-child{order:1}.request-upload-row>label:nth-child(2){order:2}.request-upload-row>label:nth-child(3){order:3}
.editor-header>.actions{display:flex!important;align-items:center!important}.editor-header>.actions>.elig-status.big,.editor-header>.actions>.button{min-height:38px!important;height:38px!important;box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;margin:0!important}
@media(max-width:900px){.request-message.admin-message,.request-message.clinic-message{margin-left:0;margin-right:0}.request-patient-selected{grid-template-columns:auto minmax(0,1fr)}.request-patient-selected .button{grid-column:1/-1;justify-self:start}}

/* V5.1.119: Conversation messages and All Files share one explicit grid. */
.request-conversation-section>h2{margin-bottom:12px!important}
.request-conversation-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0;align-items:start}
.request-conversation-grid>.request-thread,.request-conversation-grid>.request-files{min-width:0}
.request-conversation-grid>.request-files{display:none!important}
.request-conversation-grid .request-message.clinic-message{margin-right:0!important}
@media(max-width:900px){.request-conversation-grid{grid-template-columns:1fr}}

/* V5.1.120: Eligibility and Request use one shared header origin and rhythm. */
.content-area:has(>.queue-workspace-header){padding-top:18px!important}
.content-area>.queue-workspace-header{position:static!important;top:auto!important;margin:0!important;padding:0!important;min-height:0!important;align-items:flex-start!important}
.content-area>.queue-workspace-header h1{margin:0!important;padding:0!important;line-height:1.2!important}
.content-area>.queue-workspace-header .page-subtitle{margin:4px 0 16px!important}
.content-area>.queue-workspace-header+.request-mode-tabs{margin-top:8px!important}

/* Equal Admin Desk queue windows; extra rows scroll inside each table. */
.admin-separated-queues{grid-template-rows:repeat(2,300px)!important}
.admin-separated-queues>.admin-queue-card{display:flex!important;flex-direction:column!important;height:300px!important;min-height:0!important;overflow:hidden!important}
.admin-separated-queues>.admin-queue-card>.table-scroll{flex:1 1 auto!important;min-height:0!important;overflow:auto!important}
.admin-separated-queues>.admin-queue-card>.table-scroll th{position:sticky;top:0;z-index:2}

/* Explicit touch-device camera action, kept separate from Choose Files. */
.mobile-camera-upload{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}
.mobile-camera-upload input[type=file]{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.mobile-camera-upload .camera-file-name{color:#60777a;font-size:11px;overflow-wrap:anywhere}
@media(max-width:900px){.request-detail-grid{grid-template-columns:1fr!important}.admin-separated-queues{grid-template-rows:none!important}.admin-separated-queues>.admin-queue-card{height:300px!important}}

/* V5.1.116: request file containment/preview controls and consistent Settings tables. */
.request-files{min-width:0!important;overflow:hidden!important}
.request-file-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;padding:9px 0;border-bottom:1px solid #e0e8e9;min-width:0}
.request-file-name{grid-column:1/-1;display:grid!important;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:6px;min-width:0;max-width:100%}
.request-file-name>span:last-child{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word;white-space:normal}
.request-file-item>small{grid-column:1;min-width:0;overflow-wrap:anywhere;color:#60777a}
.request-file-download{grid-column:2;justify-self:end;align-self:end;font-size:11px;font-weight:700;white-space:nowrap}
.request-message-file{display:inline-grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px;max-width:100%;min-width:0;padding:4px 7px;border:1px solid #c9d7d8;border-radius:4px;background:#fff}
.request-message-file>a:first-child{min-width:0;overflow-wrap:anywhere;word-break:break-word}

.settings-pane>.table-scroll{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
.settings-pane table{width:100%!important;border-collapse:collapse!important}
.settings-pane table th,.settings-pane table td{box-sizing:border-box!important;vertical-align:middle!important}
.settings-pane table th:last-child,.settings-pane table td:last-child{width:120px!important;min-width:120px!important;text-align:center!important}
#set-users table{table-layout:fixed!important;min-width:850px!important}
#set-users table th:nth-child(-n+2),#set-users table td:nth-child(-n+2){text-align:left!important}
#set-users table th:nth-child(n+3),#set-users table td:nth-child(n+3){text-align:center!important}
#set-users table th:nth-child(1){width:15%!important}#set-users table th:nth-child(2){width:20%!important}#set-users table th:nth-child(3){width:15%!important}#set-users table th:nth-child(4){width:12%!important}#set-users table th:nth-child(5){width:9%!important}#set-users table th:nth-child(6){width:20%!important}#set-users table th:nth-child(7){width:9%!important}
#clinicSettingsTable th:nth-child(1),#clinicSettingsTable td:nth-child(1),#clinicSettingsTable th:nth-child(2),#clinicSettingsTable td:nth-child(2),#clinicSettingsTable th:nth-child(5),#clinicSettingsTable td:nth-child(5){text-align:left!important}
#clinicSettingsTable th:nth-child(3),#clinicSettingsTable td:nth-child(3),#clinicSettingsTable th:nth-child(4),#clinicSettingsTable td:nth-child(4),#clinicSettingsTable th:nth-child(6),#clinicSettingsTable td:nth-child(6),#clinicSettingsTable th:nth-child(7),#clinicSettingsTable td:nth-child(7){text-align:center!important}
#set-billing-entities table th:nth-child(1),#set-billing-entities table td:nth-child(1),#set-billing-entities table th:nth-child(2),#set-billing-entities table td:nth-child(2),#set-billing-entities table th:nth-child(3),#set-billing-entities table td:nth-child(3),#set-billing-entities table th:nth-child(6),#set-billing-entities table td:nth-child(6){text-align:left!important}
#set-billing-entities table th:nth-child(4),#set-billing-entities table td:nth-child(4),#set-billing-entities table th:nth-child(5),#set-billing-entities table td:nth-child(5),#set-billing-entities table th:nth-child(n+7),#set-billing-entities table td:nth-child(n+7){text-align:center!important}
#set-external-facilities table th:nth-child(1),#set-external-facilities table td:nth-child(1),#set-external-facilities table th:nth-child(2),#set-external-facilities table td:nth-child(2),#set-external-facilities table th:nth-child(4),#set-external-facilities table td:nth-child(4){text-align:left!important}
#set-external-facilities table th:nth-child(3),#set-external-facilities table td:nth-child(3),#set-external-facilities table th:nth-child(n+5),#set-external-facilities table td:nth-child(n+5){text-align:center!important}
#set-providers table th:first-child,#set-providers table td:first-child,#set-referring table th:first-child,#set-referring table td:first-child,#set-referring table th:nth-child(6),#set-referring table td:nth-child(6),#set-insurance table th:first-child,#set-insurance table td:first-child{text-align:left!important}
#set-providers table th:not(:first-child),#set-providers table td:not(:first-child),#set-referring table th:not(:first-child):not(:nth-child(6)),#set-referring table td:not(:first-child):not(:nth-child(6)),#set-insurance table th:not(:first-child),#set-insurance table td:not(:first-child){text-align:center!important}
#cptSetTable{width:100%!important;min-width:900px!important;table-layout:fixed!important}
#cptSetTable th,#cptSetTable td{vertical-align:middle!important}
#cptSetTable th:nth-child(1),#cptSetTable td:nth-child(1),#cptSetTable th:nth-child(2),#cptSetTable td:nth-child(2),#cptSetTable th:nth-child(3),#cptSetTable td:nth-child(3){text-align:left!important}
#cptSetTable th:nth-child(4),#cptSetTable td:nth-child(4),#cptSetTable th:nth-child(5),#cptSetTable td:nth-child(5),#cptSetTable th:nth-child(7),#cptSetTable td:nth-child(7){text-align:center!important}
#cptSetTable th:nth-child(6),#cptSetTable td:nth-child(6){text-align:right!important;padding-right:16px!important}
#cptSetTable th:nth-child(1){width:8%!important}#cptSetTable th:nth-child(2){width:42%!important}#cptSetTable th:nth-child(3){width:18%!important}#cptSetTable th:nth-child(4){width:10%!important}#cptSetTable th:nth-child(5){width:8%!important}#cptSetTable th:nth-child(6){width:8%!important}#cptSetTable th:nth-child(7){width:6%!important}
.cpt-set-tabs .doc-tab{flex:0 0 310px!important;width:310px!important;box-sizing:border-box!important;text-align:center!important}

.billing-status-table th:nth-child(7),.billing-status-table td:nth-child(7),.billing-status-table th:last-child,.billing-status-table td:last-child{overflow:visible!important;text-overflow:clip!important;white-space:nowrap!important}
.billing-status-table td:nth-child(7) .record-status{max-width:none!important;overflow:visible!important;text-overflow:clip!important}

/* V5.1.117: replace platform-dependent black paperclip glyphs with clear file labels. */
.request-col-files{white-space:nowrap!important;color:#315f63!important;font-weight:600!important}
.request-file-symbol{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:30px!important;height:18px!important;padding:0 4px!important;box-sizing:border-box!important;border:1px solid #57a8ad!important;border-radius:3px!important;background:#e1f3f4!important;color:#07656b!important;font-size:8px!important;font-weight:800!important;line-height:1!important;letter-spacing:.3px!important}

/* Wide desktop Request entry should be visually centered, not anchored left. */
.request-form{width:min(100%,1500px)!important;max-width:1500px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important}

/* Settings action cells with Edit and Remove always stay on one centered row. */
#clinicSettingsTable th:last-child,#clinicSettingsTable td:last-child,
#set-billing-entities table th:last-child,#set-billing-entities table td:last-child,
#set-external-facilities table th:last-child,#set-external-facilities table td:last-child,
#set-providers table th:last-child,#set-providers table td:last-child,
#set-referring table th:last-child,#set-referring table td:last-child,
#set-insurance table th:last-child,#set-insurance table td:last-child{width:180px!important;min-width:180px!important;text-align:center!important}
.settings-pane td>.row-actions{display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:nowrap!important;gap:7px!important;white-space:nowrap!important}
.settings-pane td>.row-actions form{display:inline-flex!important;align-items:center!important;margin:0!important}
.settings-pane td>.row-actions .button{min-width:66px!important;height:32px!important;min-height:32px!important;margin:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}
#set-users table th:last-child,#set-users table td:last-child{width:100px!important;min-width:100px!important}

/* V5.1.133: central credentials and contained header labels. */
.central-admin-section{margin-bottom:14px!important}.central-admin-section h2{margin-top:0}
.account-action span{display:block;white-space:nowrap}
@media(min-width:1101px){.top-header{grid-template-columns:205px minmax(360px,1fr) 390px!important}.account-block{gap:10px!important}.account-action{min-width:62px!important}}
@media(min-width:760px) and (max-width:1100px){.top-header{grid-template-columns:140px minmax(190px,1fr) 310px!important}.account-name{display:none!important}.account-action{min-width:58px!important}.account-block{gap:5px!important}}
