/* The same compact blue/slate vocabulary as Office, PoS and Insurer editors. */
.ref-workspace { color:#243750; font:13px/1.45 'DM Sans','Segoe UI',sans-serif; }
.ref-workspace > :not(script):not(style):not(link):not(.modal) { max-width:1200px; }
.ref-workspace .ref-page-title { color:#203a55!important; font-size:25px!important; font-weight:650; letter-spacing:-.5px; margin:0 0 20px; }
.ref-workspace > hr,.ref-workspace > .ref-page-title + hr { display:none; }
.ref-workspace .ref-editor-column { flex:1 1 100%; width:100%!important; max-width:1200px!important; min-width:0; }
.ref-workspace .ref-editor-card { display:flex; flex-direction:column; min-width:0; background:#fff; border:1px solid #dce5ee; border-radius:12px; padding:20px 24px; margin:0 0 16px; box-shadow:none; }
.ref-workspace .ref-editor-card > .row { row-gap:14px; }
.ref-workspace .ref-editor-card :is(input[type=hidden],.validation-summary-valid,.form-group:has(> input[type=hidden]):not(:has(input:not([type=hidden]),select,textarea))) { display:none!important; }
.ref-workspace .ref-editor-card .af-control,.ref-workspace .ref-editor-card .form-control,.ref-workspace .ref-editor-card select {
    box-sizing:border-box; border:1px solid #d8e2ec!important; border-radius:6px!important; color:#243b53;
    min-height:36px; font:13px/20px 'DM Sans','Segoe UI',sans-serif!important; padding:7px 10px; background-color:#fff;
}
.ref-workspace .ref-editor-card input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=hidden]),.ref-workspace .ref-editor-card select:not([multiple]) { height:36px; }
.ref-workspace .ref-editor-card :is(input,select,textarea):disabled,.ref-workspace .ref-editor-card [readonly] { background-color:#f3f6f9; color:#7a8b9e; }
.ref-workspace .ref-editor-card .input-validation-error { border-color:#b34343!important; }
.ref-workspace .ref-editor-card .text-danger { font-size:12px!important; }
.ref-workspace .ref-editor-card textarea { min-height:130px; max-height:65vh; resize:vertical; }
.ref-workspace .ref-editor-card textarea[rows="30"] { height:340px; }
.ref-workspace .ref-editor-card select[multiple]:not(.select2-hidden-accessible) { min-height:110px; height:auto; }
.ref-workspace .ref-editor-card .select2-container { width:100%!important; max-width:100%; min-width:0; }
.ref-workspace .ref-editor-card .select2-hidden-accessible { position:absolute!important; width:1px!important; height:1px!important; min-height:0!important; padding:0!important; }
.ref-workspace .ref-editor-card :is(.select2-selection--single,.select2-selection--multiple) { min-height:36px; border:1px solid #d8e2ec; border-radius:6px; }
.ref-workspace .ref-editor-card label { color:#52677d; font:500 12px/1.4 'DM Sans','Segoe UI',sans-serif!important; }
.ref-workspace .ref-editor-card .form-check { display:flex; align-items:center; gap:8px; min-height:36px; margin:0; padding-left:0; }
.ref-workspace .ref-editor-card .form-check-input { position:static; margin:0; width:16px; height:16px; flex:0 0 16px; accent-color:#2866a6; }
.ref-workspace table.ref-field-table.ref-field-grid,.ref-workspace .ref-input-field.ref-field-grid { display:grid!important; grid-template-columns:repeat(var(--ref-columns,12),minmax(0,1fr)); gap:6px 18px; width:100%!important; max-width:100%; min-width:0; margin:0 0 18px!important; padding:0; border:0; border-radius:0; background:transparent; }
.ref-workspace table.ref-field-table > :is(tbody,thead,tfoot),.ref-workspace table.ref-field-table > :is(tbody,thead,tfoot) > tr,.ref-workspace table.ref-field-table > tr { display:contents!important; }
.ref-workspace .ref-field-grid > :is(.ref-grid-label,.ref-grid-value),.ref-workspace .ref-field-table .ref-grid-label,.ref-workspace .ref-field-table .ref-grid-value {
    display:block; grid-column:var(--ref-col) / span var(--ref-span); grid-row:var(--ref-row);
    width:auto!important; max-width:100%; min-width:0!important;
}
.ref-workspace .ref-field-table :is(td.ref-grid-label,td.ref-grid-value) { border:0!important; background:transparent!important; padding:0!important; }
.ref-workspace .ref-field-table .ref-grid-label { align-self:end; margin-top:8px; }
.ref-workspace .ref-field-grid .ref-grid-label label { padding:0!important; margin:0; background:transparent!important; }
.ref-workspace .ref-field-grid > label.ref-grid-label { border:0!important; background:transparent!important; padding:0!important; margin:0; min-height:0; height:auto!important; border-radius:0!important; text-align:left!important; white-space:normal; }
.ref-workspace .ref-input-field > .text-danger:empty { display:none; }
.ref-workspace .ref-field-grid .ref-grid-value > :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea),.ref-workspace .ref-input-field > .ref-grid-value:not(.text-danger) { width:100%!important; max-width:100%!important; min-width:0!important; }
.ref-workspace .ref-field-table .ref-grid-value > label.form-control { display:flex; align-items:center; margin:0; background:#f3f6f9!important; }
.ref-workspace .ref-field-table .ref-grid-value > .d-flex { gap:6px; }
.ref-workspace .ref-field-table .ref-grid-value > .d-flex > input { min-width:0; flex:1; }
.ref-workspace .ref-field-table .ref-grid-value:has(> input[type=checkbox]) { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:8px; min-height:36px; }
.ref-workspace .ref-field-table .ref-grid-value:has(> input[type=checkbox]) > label { width:auto; flex:0 0 auto; }
.ref-workspace .ref-field-stack { display:flex; flex-wrap:wrap; gap:14px 18px; align-items:start; }
.ref-workspace .ref-field-stack > .ref-input-field { flex:1 1 260px; width:auto!important; margin:0!important; }
.ref-workspace .ref-field-stack > .ref-wide-field { flex-basis:100%; }
.ref-workspace .ref-field-stack > .ref-long-field { flex:3 1 600px; }
.ref-workspace .ref-field-stack > .ref-short-field { flex:0 1 180px; }
.ref-workspace .ref-field-stack > .ref-actions { flex-basis:100%; order:100; }
.ref-workspace .ref-field-stack > br { display:none; }
.ref-workspace .ref-editor-card .row > .ref-field-column { width:auto; min-width:0; flex:1 1 220px; }
.ref-workspace .ref-editor-card .row > .ref-wide-column { flex:3 1 520px; }
.ref-workspace .ref-tabbed-view { min-width:0; }
.ref-workspace.ref-tabbed-view .ref-editor-card > .row > :is(.col,.col-8) { flex:1 1 100%; width:100%; }
.ref-workspace.ref-tabbed-view [data-ref-panel][hidden] { display:none!important; }
.ref-workspace .ref-tabs { display:flex; flex-wrap:wrap; gap:26px; border:1px solid #dce5ee; border-bottom:1px solid #e0e6ed; border-radius:12px 12px 0 0; background:#fff; margin:0; padding:0 24px; }
.ref-workspace .ref-editor-card.ref-has-tabs { border-top:0; border-radius:0 0 12px 12px; }
.ref-workspace .ref-tabs button { min-height:52px; padding:16px 0; border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; color:#667b90; font:500 13px/1.4 'DM Sans','Segoe UI',sans-serif; }
.ref-workspace .ref-tabs button[aria-selected=true] { border-bottom-color:#2866a6; color:#2866a6; }
.ref-workspace .ref-tabs button:focus-visible { outline:2px solid #6895c2; outline-offset:-3px; }
.ref-workspace .ref-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; padding:16px 0 0; margin:16px 0 0!important; border-top:1px solid #e0e6ed; order:100; }
.ref-workspace .ref-actions > [class*="col-"] { flex:0 0 auto; width:auto; padding:0; }
.ref-workspace .ref-actions a { display:inline-flex; align-items:center; min-height:36px; padding:7px 13px; border:1px solid #c8d3df; border-radius:7px; text-decoration:none; color:#2866a6; font-size:13px; }
.ref-workspace .ref-actions :is(input[type=submit],button[type=submit]),.ref-workspace .btn { border-radius:7px; min-height:36px; padding:7px 13px; font-size:13px; line-height:20px; }
.ref-workspace .ref-actions .badge { font-size:11px; background:#edf3f8!important; color:#60758a!important; }
.ref-workspace .ref-toolbar { box-sizing:border-box; display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; width:fit-content; max-width:min(100%,1200px)!important; background:#fff; border:1px solid #dce5ee!important; border-radius:10px; padding:8px 12px!important; margin:0 0 12px!important; }
.ref-workspace .ref-toolbar + br { display:none; }
.ref-workspace .ref-toolbar .input-group { flex-wrap:wrap; align-items:center; gap:6px; width:auto; max-width:100%; }
.ref-workspace .ref-toolbar .input-group:has(> :is(h1,h2,h3,h4)) { gap:10px!important; }
.ref-workspace .ref-toolbar .input-group:has(> :is(h1,h2,h3,h4)) > .btn { margin-left:0!important; border-radius:7px!important; }
.ref-workspace .ref-toolbar .input-group > .form-control { flex:1 1 140px; min-width:70px; }
.ref-workspace .ref-toolbar .input-group > .input-group-text { background:transparent; border:0; font-size:12px; padding:0 4px; }
.ref-workspace .ref-toolbar > :is(div,form) { min-width:0; max-width:100%; }
/* AJAX reference filters keep a natural single-line width on wide screens. */
.ref-workspace:is([data-reference-view="/Dictionary/Contacts" i],[data-reference-view="/Dictionary/MDReferralServices" i]) :is(.ref-toolbar,.ref-toolbar > div,.ref-toolbar .input-group) { width:max-content; max-width:100%; }
.ref-workspace:is([data-reference-view="/Dictionary/Contacts" i],[data-reference-view="/Dictionary/MDReferralServices" i]) .ref-toolbar #SearchString { flex:0 1 200px; width:200px; }
.ref-workspace[data-reference-view="/Dictionary/MDReferralServices" i] .ref-toolbar #SearchType { flex:0 1 170px; width:170px; }
.ref-workspace:is([data-reference-view="/Dictionary/Contacts" i],[data-reference-view="/Dictionary/MDReferralServices" i]) .ref-toolbar label { white-space:nowrap; }
.ref-workspace[data-reference-view="/Dictionary/MDReferralServices" i] > .row { --bs-gutter-x:0; margin-left:0; margin-right:0; }
.ref-workspace .ref-table-scroll { width:100%; max-width:100%; overflow:auto; border:1px solid #dce5ee; border-radius:10px; background:#fff; margin:0 0 16px; }
.ref-workspace .ref-table-scroll > table.ref-data-table { display:table!important; width:100%; max-width:none; min-width:540px; margin:0!important; border:0; border-collapse:collapse; border-radius:0; font-size:12px; }
.ref-workspace .ref-data-table > :is(tbody,thead,tfoot) > tr > :is(td,th) { padding:8px 10px!important; font-size:12px!important; border-color:#e8eef4; }
.ref-workspace .ref-data-table > thead > tr > th { color:#526b83; font-weight:600; background:#f4f7fa; }
.ref-workspace .ref-data-table .ref-compact-column { width:1%; white-space:nowrap; }
.ref-workspace .ref-data-table input:not([type=checkbox]):not([type=hidden]),.ref-workspace .ref-data-table select { min-width:65px; max-width:100%; }
.ref-workspace .ref-data-table .btn { min-height:30px; padding:4px 8px; }
/* Keep the CPT code, status marks and comments action together. */
.ref-workspace[data-reference-view="/CPTCodes/Index" i] .ref-data-table > :is(thead,tbody) > tr > :first-child { white-space:nowrap; }
.ref-workspace[data-reference-view="/CPTCodes/Index" i] .ref-data-table > tbody > tr > td:first-child > :is(a,label) { vertical-align:middle; }
.ref-workspace[data-reference-view="/CPTCodes/Index" i] .ref-data-table > tbody > tr > td:first-child > .butcomments { display:inline-flex; align-items:center; vertical-align:middle; margin-left:6px; }
.ref-workspace .cpt-list-heading { display:flex; align-items:center; flex-wrap:wrap; gap:12px 16px; margin:0 0 18px; }
.ref-workspace .cpt-list-heading .ref-page-title { margin:0!important; }
.ref-workspace #cpt-clinic-form { width:320px; max-width:100%; margin:0; }
.ref-workspace #CptClinicId { box-sizing:border-box; width:100%; max-width:100%; height:36px!important; min-height:36px!important; border:1px solid #d8e2ec; border-radius:6px; padding:7px 10px; font:13px/20px 'DM Sans','Segoe UI',sans-serif; }
.ref-workspace .ref-data-table th.cpt-price-heading { white-space:nowrap; }
/* Keep provider actions and signatures from stretching the directory rows. */
.ref-workspace[data-reference-view="/DoctorsClinic/Index" i] > .ref-table-scroll { max-width:100%!important; }
.ref-workspace #providers-table { table-layout:fixed; min-width:1366px; }
#providers-table .provider-id-column { width:44px; }
#providers-table .provider-name-column { width:160px; }
#providers-table .provider-specialty-column { width:76px; }
#providers-table .provider-license-column { width:82px; }
#providers-table .provider-email-column { width:168px; }
#providers-table .provider-credentials-column { width:112px; }
#providers-table .provider-membership-column { width:148px; }
#providers-table .provider-status-column { width:70px; }
#providers-table .provider-employment-column { width:124px; }
#providers-table .provider-documents-column { width:118px; }
#providers-table .provider-signature-column { width:112px; }
#providers-table .provider-delete-column { width:52px; }
.ref-workspace #providers-table :is(th,td) { vertical-align:middle; }
.ref-workspace #providers-table th { white-space:nowrap; }
.ref-workspace #providers-table td:is(:nth-child(2),:nth-child(4),:nth-child(5),:nth-child(10)) { overflow-wrap:anywhere; }
.ref-workspace #providers-table td:nth-child(7) .btn {
    display:inline-flex; align-items:center; justify-content:center; gap:4px;
    min-height:30px; padding:4px 7px; font-size:12px; line-height:20px; white-space:nowrap;
}
.ref-workspace #providers-table td:nth-child(8) { white-space:nowrap; }
.ref-workspace #providers-table td:nth-child(9) select { width:100%; min-width:0; height:32px; min-height:32px; padding:5px 22px 5px 8px; font-size:12px!important; }
.ref-workspace #providers-table .provider-credentials { display:flex; flex-direction:column; gap:2px; font-size:11px; color:#60758a; font-variant-numeric:tabular-nums; }
.ref-workspace #providers-table .provider-credentials > :empty { display:none; }
.ref-workspace #providers-table .provider-signature { display:block; width:auto; height:auto; max-width:92px; max-height:36px; object-fit:contain; margin:auto; }
.reference-office-heading { display:flex; align-items:center; flex-wrap:wrap; gap:12px 16px; margin:0 0 18px; }
.reference-office-heading :is(h3,h4,h5,.ref-page-title) { margin:0!important; }
.reference-office-heading > :is(h3,h4,h5) { color:#203a55!important; font-size:25px!important; font-weight:650; letter-spacing:-.5px; }
select.reference-office-selector { box-sizing:border-box; width:320px; max-width:100%; height:36px!important; min-height:36px!important; border:1px solid #d8e2ec; border-radius:6px; padding:7px 10px; font:13px/20px 'DM Sans','Segoe UI',sans-serif; }
.ref-workspace .ref-settings-menu { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:0; }
.ref-workspace .ref-settings-menu div:is(.row,.col) { display:contents; }
.ref-workspace .ref-settings-menu a { display:flex; align-items:center; gap:10px; padding:18px; min-height:68px; margin:0; width:auto; text-decoration:none; border:1px solid #dce5ee; border-radius:10px; background:#fff; color:#294e72; font-size:13px; }
.ref-workspace .ref-settings-menu a:hover { border-color:#90b5d8; background:#f7faff; }
.ref-workspace canvas { max-width:100%; }
.ref-workspace.ref-owner-view .body-content { position:static!important; width:100%!important; max-width:1200px; min-width:0; margin:0 0 16px!important; padding:16px; border:1px solid #dce5ee; border-radius:12px; background:#fff; box-shadow:none!important; }
/* A single height for native controls and enhanced selects in filter rows. */
.ref-aligned-view .ref-filter-row { --ref-filter-height:36px; align-items:center!important; flex-wrap:wrap; }
.ref-aligned-view .ref-filter-row.ref-filter-row :is(
    input:is(:not([type]),[type=text],[type=search],[type=number],[type=email],[type=tel],[type=url],[type=password],[type=date],[type=datetime-local],[type=time],[type=submit],[type=button]),
    select:not([multiple]):not(.select2-hidden-accessible):is(:not([size]),[size="1"]),
    .btn,.input-group-text,.bootstrap-select > .dropdown-toggle
) {
    box-sizing:border-box; height:var(--ref-filter-height)!important; min-height:var(--ref-filter-height)!important; max-height:var(--ref-filter-height)!important;
    padding-top:7px!important; padding-bottom:7px!important; margin-top:0!important; margin-bottom:0!important;
    font-size:13px!important; line-height:20px!important;
}
.ref-aligned-view .ref-filter-row.ref-filter-row :is(button.btn,a.btn,.input-group-text) { display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.ref-aligned-view .ref-filter-row.ref-filter-row :is(h1,h2,h3,h4,.ref-page-title) { margin-top:0!important; margin-bottom:0!important; line-height:36px; }
.ref-aligned-view .ref-filter-row label { display:inline-flex; align-items:center; min-height:36px; margin-top:0!important; margin-bottom:0!important; }
.ref-aligned-view .ref-filter-row .input-group { align-items:center; }
.ref-aligned-view .ref-filter-row .select2-container { height:36px; min-height:36px; max-width:100%; vertical-align:middle; }
.ref-aligned-view .ref-filter-row .select2-selection--single { box-sizing:border-box; height:36px!important; min-height:36px!important; border-radius:6px; }
.ref-aligned-view .ref-filter-row .select2-selection--single .select2-selection__rendered { box-sizing:border-box; padding-top:0; padding-bottom:0; line-height:34px!important; font-size:13px; }
.ref-aligned-view .ref-filter-row .select2-selection--single .select2-selection__arrow { top:1px!important; height:34px!important; }
.ref-aligned-view .ref-filter-row .select2-hidden-accessible { position:absolute!important; width:1px!important; height:1px!important; min-height:0!important; padding:0!important; }
.ref-aligned-view .ref-filter-row .bootstrap-select .filter-option { display:flex; align-items:center; }
/* Keep each delete header and its row actions on the same centre line. */
.ref-aligned-view table :is(th,td).ref-delete-cell {
    box-sizing:border-box; width:52px!important; min-width:52px; padding:8px!important;
    text-align:center!important; vertical-align:middle!important; white-space:nowrap;
}
.ref-aligned-view table .ref-delete-cell > :is(.d-flex,div) { justify-content:center; align-items:center; }
.ref-aligned-view table .ref-delete-cell :is([class*="fa-trash"],[data-icon^="trash"]) { display:inline-block; width:16px; height:16px; line-height:16px; text-align:center; vertical-align:middle; }
.ref-aligned-view table .ref-delete-cell .ref-delete-button {
    box-sizing:border-box; display:inline-flex!important; align-items:center; justify-content:center; flex:0 0 32px;
    width:32px!important; min-width:32px; height:32px!important; min-height:32px!important;
    padding:0!important; margin:0!important; line-height:1!important; vertical-align:middle;
}
.ref-aligned-view table .ref-delete-cell input[type=checkbox] { float:none!important; margin:0!important; vertical-align:middle; }
@media(max-width:760px) {
    .ref-workspace .ref-editor-card { padding:16px; }
    .ref-workspace .ref-tabs { padding:0 16px; gap:18px; }
    .ref-workspace .ref-settings-menu { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .ref-workspace .ref-toolbar { padding:8px 10px!important; }
}
@media(max-width:650px) {
    .ref-workspace table.ref-field-table.ref-field-grid,.ref-workspace .ref-input-field.ref-field-grid { grid-template-columns:minmax(0,1fr); gap:6px; }
    .ref-workspace .ref-field-grid > :is(.ref-grid-label,.ref-grid-value),.ref-workspace .ref-field-table .ref-grid-label,.ref-workspace .ref-field-table .ref-grid-value { grid-column:1; grid-row:auto; }
    .ref-workspace .ref-field-grid .ref-grid-value { margin-bottom:8px; }
    .ref-workspace .ref-field-stack > .ref-short-field { flex:1 1 140px; }
    .ref-workspace .ref-settings-menu { grid-template-columns:minmax(0,1fr); }
    .ref-workspace .ref-page-title { font-size:22px!important; }
    .reference-office-heading > :is(h3,h4,h5) { font-size:22px!important; }
}
@media print {
    .ref-workspace .ref-table-scroll { overflow:visible; border:0; }
    .ref-workspace .ref-editor-card { border:0; }
    .ref-workspace .ref-table-scroll > table.ref-data-table { min-width:0; }
}
