/* Exact Source Sans Pro faces from MVC css/css.css (loaded after the AdminLTE bundle). Keep its weights, italic face and Unicode subsets so inherited table arrows and labels use the same font fallback. */
@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7qsDJT9g.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7jsDJT9g.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7rsDJT9g.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7ksDJT9g.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7osDJT9g.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7psDJT9g.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: italic;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK1dSBYKcSV-LCoeQqfX1RYOo3qPZ7nsDI.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmhduz8A.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwkxduz8A.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmxduz8A.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlBduz8A.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmBduz8A.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwmRduz8A.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 300;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ik4zwlxdu.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNa7lqDY.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK3dSBYKcSV-LCoeQqfX1RYOo3qPK7lqDY.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNK7lqDY.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK3dSBYKcSV-LCoeQqfX1RYOo3qO67lqDY.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK3dSBYKcSV-LCoeQqfX1RYOo3qN67lqDY.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK3dSBYKcSV-LCoeQqfX1RYOo3qNq7lqDY.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xK3dSBYKcSV-LCoeQqfX1RYOo3qOK7l.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmhduz8A.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwkxduz8A.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmxduz8A.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlBduz8A.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmBduz8A.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwmRduz8A.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/s/sourcesanspro/v22/6xKydSBYKcSV-LCoeQqfX1RYOo3ig4vwlxdu.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --intella-blue: #183d83;
    --intella-red: #982943;
}

/* AdminLTE's portal chrome uses Source Sans Pro as its document font.  The
   native SPA already ships that face for individual legacy surfaces; making
   it the document default keeps the navigation and shared controls on the
   same metrics without importing an MVC stylesheet. */
html,
body {
    font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

body.no-scroll {
    overflow: hidden !important;
}

.portal-list-page { padding: 1.25rem; }
.portal-page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.portal-page-header h1 { margin: 0; color: #183d83; font-size: 1.55rem; font-weight: 500; }
.portal-page-header p { margin: .25rem 0 0; color: #6c757d; }
.portal-toolbar { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.portal-filter-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0 0 1rem; padding: 1rem; border: 1px solid #d7dfec; border-radius: 4px; background: #f8faff; }
.portal-filter-panel label { display: grid; gap: .35rem; color: #495057; font-size: .9rem; font-weight: 600; }
.portal-filter-panel input, .portal-filter-panel select { width: 100%; padding: .5rem .6rem; border: 1px solid #ced4da; border-radius: 3px; color: #212529; background: #fff; font: inherit; font-weight: 400; }
.portal-filter-actions { display: flex; align-items: end; gap: .55rem; }
.portal-search, .portal-sort { width: min(100%, 420px); padding: .55rem .7rem; border: 1px solid #ced4da; border-radius: 3px; background: #fff; }
.portal-sort { width: auto; }
.portal-result-count { color: #6c757d; font-size: .9rem; }
.portal-primary-button, .portal-secondary-button { padding: .48rem .75rem; border: 1px solid #183d83; border-radius: 3px; color: #fff; background: #183d83; font-weight: 600; }
.portal-secondary-button { color: #183d83; background: #fff; }
.portal-danger-button { padding: .48rem .75rem; border: 1px solid #982943; border-radius: 3px; color: #fff; background: #982943; font-weight: 600; }
.portal-primary-button:disabled, .portal-secondary-button:disabled { opacity: .65; cursor: wait; }
.portal-danger-button:disabled { opacity: .65; cursor: wait; }
.portal-primary-button:hover:not(:disabled) { background: #102e66; }
.portal-secondary-button:hover:not(:disabled) { color: #fff; background: #183d83; }
.portal-danger-button:hover:not(:disabled) { background: #7c2037; }
.portal-table-wrap { overflow-x: auto; border: 1px solid #dee2e6; background: #fff; }
.portal-table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: .9rem; }
.portal-table th { padding: .72rem; color: #495057; background: #e9ecef; font-weight: 600; text-align: left; white-space: nowrap; }
.portal-table td { padding: .68rem .72rem; border-top: 1px solid #e4e7ea; vertical-align: middle; }
.portal-table tbody tr:hover { background: #f8f9fa; }
.portal-actions-cell { display: flex; justify-content: flex-end; gap: .45rem; text-align: right; }
.portal-link-button { padding: 0; border: 0; color: #183d83; background: transparent; text-decoration: underline; font: inherit; font-weight: 600; }
.portal-status { display: inline-block; padding: .18rem .42rem; border-radius: 3px; color: #fff; background: #6c757d; white-space: nowrap; }
.portal-loading, .portal-empty, .portal-error { padding: 2.5rem 1rem; border: 1px solid #dee2e6; background: #fff; color: #6c757d; text-align: center; }
.portal-error { color: #842029; border-color: #f5c2c7; background: #f8d7da; }
.portal-unread td { background: #eef4ff; }
.portal-message-preview { max-width: 450px; margin-top: .25rem; color: #6c757d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-detail-page { padding: 1.25rem; }
.portal-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.portal-detail-grid section { padding: 1.1rem 1.2rem; border: 1px solid #dee2e6; border-radius: 4px; background: #fff; }
.portal-detail-grid h2 { margin: 0 0 1rem; color: #183d83; font-size: 1.1rem; font-weight: 600; }
.portal-detail-grid .field-row { display: grid; grid-template-columns: minmax(125px, .8fr) minmax(0, 1.3fr); gap: 1rem; padding: .5rem 0; border-bottom: 1px solid #edf0f2; }
.portal-detail-grid .field-row:last-child { border-bottom: 0; }
.portal-detail-grid .field-label { font-weight: 600; }
.portal-form-card { margin-bottom: 1rem; padding: 1.1rem 1.2rem; border: 1px solid #dee2e6; border-radius: 4px; background: #fff; }
.portal-form-card h2 { margin: 0 0 1rem; color: #183d83; font-size: 1.1rem; font-weight: 600; }
.portal-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.portal-card-heading h2 { margin-bottom: 0; }
.portal-patient-search { display: grid; gap: 1rem; margin: 0 0 1rem; padding: 1rem; border: 1px solid #c9d7ef; border-radius: 4px; background: #f5f8fe; }
.portal-patient-results { max-height: 18rem; }
.portal-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.portal-form-grid label { display: grid; gap: .35rem; color: #495057; font-size: .9rem; font-weight: 600; }
.portal-form-grid input, .portal-form-grid select, .portal-form-grid textarea { width: 100%; padding: .5rem .6rem; border: 1px solid #ced4da; border-radius: 3px; color: #212529; background: #fff; font: inherit; font-weight: 400; }
.portal-form-grid textarea { min-height: 6rem; resize: vertical; }
.portal-form-grid .portal-checkbox { display: flex; align-items: center; gap: .5rem; padding-top: 1.85rem; }
.portal-form-grid .portal-checkbox input { width: auto; }
.portal-encounter-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.portal-encounter-tools .portal-checkbox { display: flex; align-items: center; gap: .45rem; margin: 0; color: #495057; font-weight: 600; }
.portal-encounter-tools .portal-checkbox input { width: auto; }
.portal-encounter-tools a.portal-secondary-button { text-decoration: none; }
.portal-note-grid { grid-template-columns: 1fr; }
.portal-note-full { grid-column: 1 / -1; }
.portal-note-actions { display: flex; justify-content: flex-end; gap: .5rem; margin: -2.9rem 0 1rem; }
.portal-call-policy-alert { margin: 0 0 1rem; padding: .6rem .85rem; color: #fff; background: #982943; font-weight: 600; }
.portal-care-note-preview dd { white-space: pre-wrap; }
.portal-editor-actions { display: flex; justify-content: flex-end; gap: .65rem; }
.portal-validation { margin-bottom: 1rem; color: #842029; }
.portal-form-grid .validation-message { color: #842029; font-size: .82rem; }
.portal-account-card { display: grid; max-width: 520px; gap: 1rem; }
.portal-account-card label { display: grid; gap: .35rem; color: #495057; font-size: .9rem; font-weight: 600; }
.portal-account-card input { padding: .5rem .6rem; border: 1px solid #ced4da; border-radius: 3px; font: inherit; font-weight: 400; }
.portal-success { padding: .75rem 1rem; color: #0f5132; border: 1px solid #badbcc; border-radius: 4px; background: #d1e7dd; }
.portal-modal-backdrop { position: fixed; z-index: 1050; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(24, 40, 72, .55); }
.portal-modal { display: grid; gap: 1rem; width: min(100%, 38rem); max-height: calc(100vh - 2rem); overflow: auto; padding: 1.25rem; border-radius: 5px; background: #fff; box-shadow: 0 1rem 3rem rgba(0, 0, 0, .22); }
.portal-modal header h2 { margin: 0; color: #183d83; font-size: 1.2rem; }
.portal-modal p { margin: 0; color: #495057; }
.portal-modal label { display: grid; gap: .35rem; color: #495057; font-size: .9rem; font-weight: 600; }
.portal-modal select { width: 100%; padding: .5rem .6rem; border: 1px solid #ced4da; border-radius: 3px; color: #212529; background: #fff; font: inherit; font-weight: 400; }
.portal-modal footer { display: flex; justify-content: flex-end; gap: .65rem; }
@media (max-width: 767px) { .portal-form-grid, .portal-filter-panel { grid-template-columns: 1fr; } .portal-form-grid .portal-checkbox { padding-top: 0; } }
@media (max-width: 900px) { .portal-detail-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .portal-list-page, .portal-detail-page { padding: 1rem; } .portal-page-header, .portal-toolbar { align-items: stretch; flex-direction: column; } .portal-primary-button { align-self: flex-start; } }

/* Native Blazor tables share the current IntellaHub desktop chrome.  The
   application does not load MVC layouts, scripts, or assets. */
.mvc-reference-page { min-height: 100%; padding: 0; color: #212529; background: #fff; font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif; }
.mvc-content-header { padding: 15px .5rem; }
.mvc-content-header h1 { display: inline-block; margin: 0 0 0 5px; color: #212529; font-size: 20px; font-weight: 500; line-height: 1.2; vertical-align: baseline; }
/* The MVC content-header rule applies to the real Font Awesome element, not
   the modern blue used by toolbar actions.  Keep the shared header component
   on that 20px navy baseline so its own 10px component margin does not add a
   second gap before the h1's native 5px margin.  More specific page rules
   still own any intentional per-screen geometry. */
.portal-main .mvc-content-header > .portal-header-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-right: 0;
    color: #000080;
    font-size: 20px;
    line-height: 20px;
    vertical-align: baseline;
}
.mvc-header-actions, .portal-calendar-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0; vertical-align: middle; }
.mvc-app-button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; flex-direction: column; gap: 0; width: auto; min-width: 80px; height: 60px; min-height: 60px; margin: 0 0 10px 10px; padding: 15px 5px; border: 1px solid #ddd; border-radius: 7px; color: #6c757d; background: #f8f9fa; box-shadow: none; font: inherit; font-size: 0; line-height: 1; text-align: center; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; vertical-align: middle; }
.mvc-app-button::before { display: block; width: 20px; height: 20px; flex: 0 0 20px; content: ""; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -64 448 512'%3E%3Cpath d='M416 240c17.6699 0 32 -14.3301 32 -32v-32c0 -17.6699 -14.3301 -32 -32 -32h-144v-144c0 -17.6699 -14.3301 -32 -32 -32h-32c-17.6699 0 -32 14.3301 -32 32v144h-144c-17.6699 0 -32 14.3301 -32 32v32c0 17.6699 14.3301 32 32 32h144v144c0 17.6699 14.3301 32 32 32h32c17.6699 0 32 -14.3301 32 -32v-144h144z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -64 448 512'%3E%3Cpath d='M416 240c17.6699 0 32 -14.3301 32 -32v-32c0 -17.6699 -14.3301 -32 -32 -32h-144v-144c0 -17.6699 -14.3301 -32 -32 -32h-32c-17.6699 0 -32 14.3301 -32 32v144h-144c-17.6699 0 -32 14.3301 -32 32v32c0 17.6699 14.3301 32 32 32h144v144c0 17.6699 14.3301 32 32 32h32c17.6699 0 32 -14.3301 32 -32v-144h144z'/%3E%3C/svg%3E"); }
.mvc-app-button > span { font-size: 12px; line-height: 1.25; }
.mvc-app-button > span[aria-hidden="true"] { display: none; }
.mvc-app-button.mvc-action-export::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32v274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 306.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64h384c35.3 0 64-28.7 64-64v-32c0-35.3-28.7-64-64-64H352l-48 48h144v48H64v-48h144l-48-48H64z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32v274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 306.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64h384c35.3 0 64-28.7 64-64v-32c0-35.3-28.7-64-64-64H352l-48 48h144v48H64v-48h144l-48-48H64z'/%3E%3C/svg%3E"); }
.mvc-app-button.mvc-action-import::before, .mvc-app-button.mvc-action-template::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M288 480c0 17.7-14.3 32-32 32s-32-14.3-32-32V205.3l-73.4 73.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l128-128c12.5-12.5 32.8-12.5 45.3 0l128 128c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L288 205.3V480zM64 0C28.7 0 0 28.7 0 64v32c0 35.3 28.7 64 64 64h96l48-48H64V64h384v48H304l48 48h96c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M288 480c0 17.7-14.3 32-32 32s-32-14.3-32-32V205.3l-73.4 73.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l128-128c12.5-12.5 32.8-12.5 45.3 0l128 128c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L288 205.3V480zM64 0C28.7 0 0 28.7 0 64v32c0 35.3 28.7 64 64 64h96l48-48H64V64h384v48H304l48 48h96c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64z'/%3E%3C/svg%3E"); }
.mvc-app-button.mvc-action-back::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -64 448 512'%3E%3Cpath d='M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H109.3L246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -64 448 512'%3E%3Cpath d='M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H109.3L246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z'/%3E%3C/svg%3E"); }
.mvc-app-button.mvc-action-refresh::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M0 224c0-17.7 14.3-32 32-32h132.7l-35.4-35.4c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l90 90c12.5 12.5 12.5 32.8 0 45.3l-90 90c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l35.4-35.4H64c0 106 86 192 192 192 56.7 0 107.6-24.5 142.7-63.5 11.8-13.1 32-14.2 45.2-2.4s14.2 32 2.4 45.2C399.5 474.9 331.6 512 256 512 114.6 512 0 397.4 0 256v-32z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M0 224c0-17.7 14.3-32 32-32h132.7l-35.4-35.4c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l90 90c12.5 12.5 12.5 32.8 0 45.3l-90 90c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l35.4-35.4H64c0 106 86 192 192 192 56.7 0 107.6-24.5 142.7-63.5 11.8-13.1 32-14.2 45.2-2.4s14.2 32 2.4 45.2C399.5 474.9 331.6 512 256 512 114.6 512 0 397.4 0 256v-32z'/%3E%3C/svg%3E"); }
.mvc-app-button.mvc-action-search::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.4-40 122.9L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.9 376C296.4 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208zm-208 144c79.5 0 144-64.5 144-144S287.5 64 208 64 64 128.5 64 208s64.5 144 144 144z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.4-40 122.9L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.9 376C296.4 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0s208 93.1 208 208zm-208 144c79.5 0 144-64.5 144-144S287.5 64 208 64 64 128.5 64 208s64.5 144 144 144z'/%3E%3C/svg%3E"); }
.mvc-app-button.portal-file-action::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M288 480c0 17.7-14.3 32-32 32s-32-14.3-32-32V205.3l-73.4 73.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l128-128c12.5-12.5 32.8-12.5 45.3 0l128 128c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L288 205.3V480zM64 0C28.7 0 0 28.7 0 64v32c0 35.3 28.7 64 64 64h96l48-48H64V64h384v48H304l48 48h96c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M288 480c0 17.7-14.3 32-32 32s-32-14.3-32-32V205.3l-73.4 73.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l128-128c12.5-12.5 32.8-12.5 45.3 0l128 128c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L288 205.3V480zM64 0C28.7 0 0 28.7 0 64v32c0 35.3 28.7 64 64 64h96l48-48H64V64h384v48H304l48 48h96c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64z'/%3E%3C/svg%3E"); }
.mvc-app-button:hover { border-color: #aaa; color: #444; background: #f8f9fa; }
.mvc-app-button:focus-visible, .mvc-button:focus-visible, .mvc-icon-button:focus-visible, .mvc-text-button:focus-visible { outline: 3px solid rgba(24, 61, 131, .3); outline-offset: 2px; }
.mvc-content { min-height: 180px; padding: 0 .5rem; }
/* The MVC reference grids still render the legacy `box box-primary` wrapper.
   It is a layout container in the loaded AdminLTE stack, not a modern card;
   the individual views that need a card opt in with their scoped rules. */
.mvc-box { position: relative; margin-bottom: 20px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.mvc-box-primary { border-top: 0; }
.mvc-box-body { padding: 0; }
.mvc-table-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 16px 12px; border-bottom: 1px solid #e5e7eb; color: #374151; font-size: 14px; }
.mvc-table-tools label { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.mvc-table-tools input, .mvc-table-tools select { box-sizing: border-box; height: 38px; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; color: #374151; background: #fff; font: inherit; }
.mvc-table-tools input { width: 260px; }
.mvc-table-tools input:focus, .mvc-table-tools select:focus, .mvc-form-control:focus { border-color: var(--intella-blue); outline: 0; box-shadow: 0 0 0 3px rgba(24, 61, 131, .12); }
.mvc-table-responsive { min-height: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mvc-data-table { width: 100%; margin-bottom: 1rem; border-spacing: 0; border-collapse: collapse; color: #212529; font-size: inherit; background: transparent; }
.mvc-data-table th { padding: .75rem; border: 1px solid #dee2e6; border-bottom: 2px solid #dee2e6; color: #000; background: transparent; font-weight: 400; text-align: left; vertical-align: bottom; white-space: nowrap; }
.mvc-data-table td { padding: .75rem; border: 1px solid #dee2e6; vertical-align: top; }
.mvc-data-table tbody tr { position: relative; }
.mvc-data-table tbody tr:hover { background: transparent; }
.mvc-manage-heading, .mvc-action-cell { width: 1%; min-width: 48px; text-align: center !important; white-space: nowrap; }
.mvc-icon-button { display: inline-grid; min-width: 38px; height: 38px; padding: 0; border: 1px solid transparent; border-radius: .25rem; color: #fff; background-position: center; place-items: center; font: inherit; font-size: 0; cursor: pointer; }
.mvc-icon-button::before { width: 1rem; height: 1rem; content: ""; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.mvc-edit-button::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -64 512 512'%3E%3Cpath d='M497.9 305.9l-46.1006 -46.1006c-4.7002 -4.7002 -12.2998 -4.7002 -17 0l-111 111c-4.7002 4.7002 -4.7002 12.2998 0 17l46.1006 46.1006c18.6992 18.6992 49.0996 18.6992 67.8994 0l60.1006 -60.1006c18.7998 -18.7002 18.7998 -49.0996 0 -67.8994zM284.2 348.2c4.7002 4.7002 12.2998 4.7002 17.0996 0l111 -111c4.7002 -4.7002 4.7002 -12.2998 0 -17l-262.6 -262.601l-121.5 -21.2998c-16.4004 -2.7998 -30.7002 11.4004 -27.7998 27.7998l21.1992 121.5zM124.1 108.1c5.5 -5.5 14.3008 -5.5 19.8008 0l154 154c5.5 5.5 5.5 14.3008 0 19.8008s-14.3008 5.5 -19.8008 0l-154 -154c-5.5 -5.5 -5.5 -14.3008 0 -19.8008zM88 24v48h-36.2998l-11.2998 -64.5l31.0996 -31.0996l64.5 11.2998v36.2998h-48z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -64 512 512'%3E%3Cpath d='M497.9 305.9l-46.1006 -46.1006c-4.7002 -4.7002 -12.2998 -4.7002 -17 0l-111 111c-4.7002 4.7002 -4.7002 12.2998 0 17l46.1006 46.1006c18.6992 18.6992 49.0996 18.6992 67.8994 0l60.1006 -60.1006c18.7998 -18.7002 18.7998 -49.0996 0 -67.8994zM284.2 348.2c4.7002 4.7002 12.2998 4.7002 17.0996 0l111 -111c4.7002 -4.7002 4.7002 -12.2998 0 -17l-262.6 -262.601l-121.5 -21.2998c-16.4004 -2.7998 -30.7002 11.4004 -27.7998 27.7998l21.1992 121.5zM124.1 108.1c5.5 -5.5 14.3008 -5.5 19.8008 0l154 154c5.5 5.5 5.5 14.3008 0 19.8008s-14.3008 5.5 -19.8008 0l-154 -154c-5.5 -5.5 -5.5 -14.3008 0 -19.8008zM88 24v48h-36.2998l-11.2998 -64.5l31.0996 -31.0996l64.5 11.2998v36.2998h-48z'/%3E%3C/svg%3E"); }
.mvc-delete-button::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -64 448 512'%3E%3Cpath d='M432 416c8.83203 0 16 -7.16797 16 -16v-32c0 -8.83203 -7.16797 -16 -16 -16h-416c-8.83203 0 -16 7.16797 -16 16v32c0 8.83203 7.16797 16 16 16h120l9.40039 18.7002c3.58984 7.3418 13.1357 13.2998 21.3086 13.2998h0.0908203h114.3h0.0175781c8.20215 0 17.8262 -5.95801 21.4824 -13.2998l9.40039 -18.7002h120zM53.2002 -19l-21.2002 339h384l-21.2002 -339c-1.55469 -24.8369 -23.0146 -44.9971 -47.8994 -45h-245.801c-24.8848 0.00292969 -46.3447 20.1631 -47.8994 45z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -64 448 512'%3E%3Cpath d='M432 416c8.83203 0 16 -7.16797 16 -16v-32c0 -8.83203 -7.16797 -16 -16 -16h-416c-8.83203 0 -16 7.16797 -16 16v32c0 8.83203 7.16797 16 16 16h120l9.40039 18.7002c3.58984 7.3418 13.1357 13.2998 21.3086 13.2998h0.0908203h114.3h0.0175781c8.20215 0 17.8262 -5.95801 21.4824 -13.2998l9.40039 -18.7002h120zM53.2002 -19l-21.2002 339h384l-21.2002 -339c-1.55469 -24.8369 -23.0146 -44.9971 -47.8994 -45h-245.801c-24.8848 0.00292969 -46.3447 20.1631 -47.8994 45z'/%3E%3C/svg%3E"); }
.mvc-edit-button { border-color: #0f0f8f; background: #000080; }
.mvc-edit-button:hover { border-color: #117a8b; background: #138496; }
.mvc-delete-button { border-color: #dc3545; background: #dc3545; }
.mvc-delete-button:not(:disabled):not(.disabled):hover { border-color: #bd2130; background: #c82333; }

/* Native SPA action controls use the Font Awesome 5 glyphs that the MVC
   portal ships.  These overrides replace the interim mask/Unicode rendering
   while preserving the shared button dimensions, colors, and permissions. */
.mvc-icon-button::before {
    width: auto;
    height: auto;
    background: none;
    -webkit-mask: none;
    mask: none;
    -webkit-mask-image: none;
    mask-image: none;
    font-family: "Font Awesome 5 Free";
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}
.mvc-edit-button::before { content: "\f303"; }
.mvc-delete-button::before { content: "\f1f8"; }
/* Some migrated MVC tables retain their original <i class="fa…"> glyph.
   The shared button intentionally suppresses text labels, so restore the
   direct Font Awesome glyph and avoid rendering it beside a fallback pseudo
   icon. */
.mvc-icon-button > i {
    display: inline-block;
    color: currentColor;
    font-size: 1rem;
    line-height: 1;
}
.mvc-icon-button > i.fa,
.mvc-icon-button > i.fas,
.mvc-icon-button > i.far,
.mvc-icon-button > i.fab,
.mvc-icon-button > i.portal-mvc-action-icon {
    /* Legacy grids intentionally set the button text to zero so an accessible
       label cannot change the compact 38px button.  Keep their real MVC
       Font Awesome glyph visible even when a page has a more specific text
       reset of its own. */
    display: inline-block !important;
    color: currentColor;
    font-size: 1rem !important;
    line-height: 1;
}
.mvc-icon-button:has(> i)::before { display: none; }
.mvc-icon-button:not(.mvc-edit-button):not(.mvc-delete-button) { color: var(--intella-blue); background: #f8fafc; font-size: 18px; }
.mvc-icon-button:not(.mvc-edit-button):not(.mvc-delete-button)::before { display: none; }

/* IntellaHub's MVC additional-styles overrides Bootstrap's .btn-info with
   its navy base.  The stock Bootstrap hover remains teal, so preserve both
   states for edits and confirmation buttons everywhere in the SPA. */
.portal-shell .portal-main .mvc-edit-button,
.portal-shell .portal-main .mvc-info-button {
    border-color: #0f0f8f;
    background: #000080;
}

.portal-shell .portal-main :is(.mvc-edit-button, .mvc-info-button):not(:disabled):not(.disabled):is(:hover, :focus) {
    border-color: #117a8b;
    background: #138496;
}

/* MVC keeps enabled btn-info pressed states darker than hover, even though
   additional-styles changes the normal button background to navy. */
.portal-shell .portal-main :is(.mvc-edit-button, .mvc-info-button):not(:disabled):not(.disabled):is(:active, .active) {
    border-color: #10707f;
    color: #fff;
    background: #117a8b;
}

/* These icon controls mirror Bootstrap 4 btn-danger. Keep text-only modal
   actions under their page-owned styles, including the burgundy actions. */
.portal-shell .portal-main .mvc-icon-button.mvc-delete-button:not(:disabled):not(.disabled):is(:hover, :focus) {
    border-color: #bd2130;
    color: #fff;
    background: #c82333;
}

.portal-shell .portal-main .mvc-icon-button.mvc-delete-button:not(:disabled):not(.disabled):is(:active, .active) {
    border-color: #b21f2d;
    color: #fff;
    background: #bd2130;
}

/* MVC's app-toolbar controls are Font Awesome glyphs.  The first SPA pass
   used CSS masks here; use the same icon font as the MVC markup instead so
   every legacy toolbar has the correct weight and baseline. */
.mvc-app-button::before {
    width: auto;
    height: auto;
    background: none;
    -webkit-mask: none;
    mask: none;
    -webkit-mask-image: none;
    mask-image: none;
    content: "\f067";
    font-family: "Font Awesome 5 Free";
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}
.mvc-app-button::before { content: "\f067"; }
.mvc-app-button.mvc-action-export::before { content: "\f15b"; }
.mvc-app-button.mvc-action-import::before { content: "\f15b"; }
.mvc-app-button.mvc-action-template::before { content: "\f6dd"; }
.mvc-app-button.mvc-action-back::before { content: "\f060"; }
.mvc-app-button.mvc-action-refresh::before { content: "\f2f1"; }
.mvc-app-button.mvc-action-search::before { content: "\f002"; }
.mvc-app-button.mvc-action-export::before,
.mvc-app-button.mvc-action-import::before,
.mvc-app-button.mvc-action-template::before,
.mvc-app-button.mvc-action-back::before,
.mvc-app-button.mvc-action-refresh::before,
.mvc-app-button.mvc-action-search::before {
    background: none;
    -webkit-mask: none;
    mask: none;
    -webkit-mask-image: none;
    mask-image: none;
}
.mvc-app-button > i { font-size: 20px; line-height: 1; }
.mvc-app-button > i.fa,
.mvc-app-button > i.fas,
.mvc-app-button > i.far,
.mvc-app-button > i.fab {
    /* The toolbar shares the intentionally text-free app-button base.  Direct
       MVC glyphs must keep their own size so page-specific rules cannot make
       the real Font Awesome icon disappear with the accessible label. */
    display: inline-block !important;
    font-size: 20px !important;
    line-height: 1;
}
.mvc-app-button:has(> i)::before,
.mvc-app-button:has(> .portal-header-icon)::before { display: none; }
.mvc-empty, .mvc-table-state { padding: 34px !important; color: #6b7280; text-align: center; }
/* Empty cells follow the Source Bootstrap table's regular 12px cell inset.
   Component-scoped compact tables override this with their 8px contract. */
.mvc-data-table td.mvc-empty { padding: 12px !important; }
.mvc-table-error, .mvc-validation { color: #a94442; }
.mvc-validation { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #f5c2c7; border-radius: 6px; background: #fff5f5; }

/* The legacy MVC views predate the table-card stylesheet.  Preserve their
   Bootstrap/AdminLTE table geometry in the SPA without loading MVC CSS. */
.portal-legacy-surface .mvc-reference-page { min-height: calc(100vh - var(--portal-header-height, 56px)); color: #212529; background: #fff; }
.portal-legacy-surface .mvc-box { margin-bottom: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.portal-legacy-surface .mvc-table-tools { padding: 0 0 1rem; border: 0; color: #212529; background: transparent; }
.portal-legacy-surface .mvc-table-tools input,
.portal-legacy-surface .mvc-table-tools select { border-color: #ced4da; border-radius: .25rem; color: #495057; }
.portal-legacy-surface .mvc-data-table { margin-bottom: 1rem; border-spacing: 0; border-collapse: collapse; color: #212529; background: transparent; font-size: 1rem; }
.portal-legacy-surface .mvc-data-table th,
.portal-legacy-surface .mvc-data-table td { padding: .75rem; border: 1px solid #dee2e6; vertical-align: top; }
.portal-legacy-surface .mvc-data-table th { color: inherit; background: transparent; font-weight: 700; }
.portal-legacy-surface .mvc-data-table thead th { border-bottom-width: 2px; vertical-align: bottom; }
.portal-legacy-surface .mvc-data-table tbody tr:hover { background: transparent; }
.portal-legacy-surface .mvc-manage-heading,
.portal-legacy-surface .mvc-action-cell { min-width: 0; }

/* Programs retains the MVC/DataTables grid geometry rather than the full-width
   reference-grid treatment used by the other legacy reference screens. */
.portal-reference-programs .mvc-app-button { margin-left: 13.2px; }
.portal-reference-programs .mvc-box { margin: 0 12.5px; padding-bottom: 5px; }
.portal-reference-programs .mvc-reference-grid-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: start; box-sizing: border-box; height: 39px; margin: 0 7.5px 5px; padding: 0 5px; font-size: 16px; line-height: 24px; }
.portal-reference-programs .mvc-data-table-length { height: 39px; margin-right: 7.5px; }
.portal-reference-programs .mvc-data-table-filter { height: 39px; margin-left: 7.5px; text-align: right; }
.portal-reference-programs .mvc-reference-grid-tools label { margin: 0; }
.portal-reference-programs .mvc-reference-grid-tools select,
.portal-reference-programs .mvc-reference-grid-tools input { box-sizing: border-box; height: 31px; border: 1px solid #ced4da; border-radius: .25rem; color: #495057; background: #fff; font-size: 14px; line-height: 21px; }
.portal-reference-programs .mvc-reference-grid-tools select { width: 59.2px; padding: 4px 8px; }
.portal-reference-programs .mvc-reference-grid-tools input { width: 176px; margin-left: 7px; padding: 4px 8px; }
.portal-reference-programs .mvc-table-responsive { box-sizing: border-box; margin: 0 7.5px; padding: 0 5px; }
.portal-reference-programs .mvc-data-table { width: 931px; margin: 6px 0; border: 1px solid #dee2e6; table-layout: fixed; }
.portal-reference-programs .mvc-data-table th,
.portal-reference-programs .mvc-data-table td { box-sizing: content-box; padding: 12px; border: 1px solid #dee2e6; color: #212529; text-align: left !important; vertical-align: top; white-space: pre-wrap; }
.portal-reference-programs .mvc-data-table th { padding-right: 30px; color: #000; font-weight: 400; vertical-align: bottom; }
.portal-reference-programs .mvc-data-table th:nth-child(1),
.portal-reference-programs .mvc-data-table td:nth-child(1) { width: 618px; }
.portal-reference-programs .mvc-data-table th:nth-child(2),
.portal-reference-programs .mvc-data-table td:nth-child(2) { width: 79px; }
.portal-reference-programs .mvc-data-table th:nth-child(3),
.portal-reference-programs .mvc-data-table td:nth-child(3) { width: 107px; }
.portal-reference-programs .mvc-data-table th:has(.mvc-sort-button),
.portal-reference-programs .mvc-data-table th.mvc-sort-idle { position: relative; }
.portal-reference-programs .mvc-sort-button { width: auto; margin: -12px -30px -12px -12px; padding: 12px 30px 12px 12px; }
.portal-reference-programs .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-programs .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-reference-programs .mvc-data-table th.mvc-sort-idle::before,
.portal-reference-programs .mvc-data-table th.mvc-sort-idle::after { position: absolute; bottom: .9em; color: #000; font-size: 16px; font-weight: 400; line-height: 24px; opacity: .3; }
.portal-reference-programs .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-programs .mvc-data-table th.mvc-sort-idle::before { right: 16px; content: "↑"; }
.portal-reference-programs .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-reference-programs .mvc-data-table th.mvc-sort-idle::after { right: 8px; content: "↓"; }
.portal-reference-programs .mvc-data-table th:has(.mvc-sort-asc)::before,
.portal-reference-programs .mvc-data-table th:has(.mvc-sort-desc)::after { opacity: 1; }
.portal-reference-programs .mvc-manage-heading,
.portal-reference-programs .mvc-action-cell { min-width: 0; text-align: left !important; }
.portal-reference-programs .mvc-icon-button { display: inline-grid; min-width: 0; height: 37.6px; padding: 0; place-items: center; }
.portal-reference-programs .mvc-edit-button { width: 41.6px; border-color: #0f0f8f; background: #000080; }
.portal-reference-programs .mvc-edit-button:hover { border-color: #117a8b; background: #138496; }
.portal-reference-programs .mvc-delete-button { width: 39.6px; }
.portal-reference-programs .mvc-reference-grid-footer { box-sizing: border-box; display: grid; grid-template-columns: 5fr 7fr; align-items: flex-start; gap: 0; width: calc(100% - 15px); min-height: 41.6px; margin: 5px 7.5px 0; padding: 0 5px; }
.portal-reference-programs .mvc-data-table-info { position: relative; top: 0; width: calc(100% - 7.5px); }
.portal-reference-programs .mvc-data-table-pagination { box-sizing: border-box; position: relative; top: 2px; display: flex; justify-content: flex-end; height: 37.6px; margin-left: 7.5px; }
.portal-reference-programs .mvc-data-table-pagination button,
.portal-reference-programs .mvc-data-table-pagination span { min-width: 0; padding: 8px 12px; line-height: 20px; }
.portal-reference-programs .mvc-data-table-pagination ul { margin: 0; }

/* MVC Relationship uses the same Bootstrap/DataTables frame as Programs, with
   the four reference columns preserved at their native desktop widths. */
.portal-reference-relationships .mvc-app-button { margin-left: 13.2px; }
.portal-reference-relationships .mvc-box { margin: 0 12.5px; padding-bottom: 5px; }
.portal-reference-relationships .mvc-reference-grid-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: start; box-sizing: border-box; height: 39px; margin: 0 7.5px 5px; padding: 0 5px; font-size: 16px; line-height: 24px; }
.portal-reference-relationships .mvc-data-table-length { height: 39px; margin-right: 7.5px; }
.portal-reference-relationships .mvc-data-table-filter { height: 39px; margin-left: 7.5px; text-align: right; }
.portal-reference-relationships .mvc-reference-grid-tools label { margin: 0; }
.portal-reference-relationships .mvc-reference-grid-tools select,
.portal-reference-relationships .mvc-reference-grid-tools input { box-sizing: border-box; height: 31px; border: 1px solid #ced4da; border-radius: .25rem; color: #495057; background: #fff; font-size: 14px; line-height: 21px; }
.portal-reference-relationships .mvc-reference-grid-tools select { width: 59.2px; padding: 4px 8px; }
.portal-reference-relationships .mvc-reference-grid-tools input { width: 176px; margin-left: 7px; padding: 4px 8px; }
.portal-reference-relationships .mvc-table-responsive { box-sizing: border-box; margin: 0 7.5px; padding: 0 5px; }
.portal-reference-relationships .mvc-data-table { width: 931px; margin: 6px 0; border: 1px solid #dee2e6; table-layout: fixed; }
.portal-reference-relationships .mvc-data-table th,
.portal-reference-relationships .mvc-data-table td { box-sizing: content-box; padding: 12px; border: 1px solid #dee2e6; color: #212529; text-align: left !important; vertical-align: top; white-space: pre-wrap; }
.portal-reference-relationships .mvc-data-table th { color: #000; font-weight: 400; vertical-align: bottom; }
.portal-reference-relationships .mvc-data-table th:nth-child(1),
.portal-reference-relationships .mvc-data-table th:nth-child(2) { padding-right: 30px; }
.portal-reference-relationships .mvc-data-table th:nth-child(1),
.portal-reference-relationships .mvc-data-table td:nth-child(1) { width: 326px; }
.portal-reference-relationships .mvc-data-table th:nth-child(2),
.portal-reference-relationships .mvc-data-table td:nth-child(2) { width: 247px; }
.portal-reference-relationships .mvc-data-table th:nth-child(3),
.portal-reference-relationships .mvc-data-table td:nth-child(3) { width: 114px; }
.portal-reference-relationships .mvc-data-table th:nth-child(4),
.portal-reference-relationships .mvc-data-table td:nth-child(4) { width: 110px; }
.portal-reference-relationships .mvc-data-table th:has(.mvc-sort-button) { position: relative; }
.portal-reference-relationships .mvc-sort-button { width: auto; margin: -12px -30px -12px -12px; padding: 12px 30px 12px 12px; }
.portal-reference-relationships .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-relationships .mvc-data-table th:has(.mvc-sort-button)::after { position: absolute; bottom: .9em; color: #000; font-size: 16px; font-weight: 400; line-height: 24px; opacity: .3; }
.portal-reference-relationships .mvc-data-table th:has(.mvc-sort-button)::before { right: 16px; content: "↑"; }
.portal-reference-relationships .mvc-data-table th:has(.mvc-sort-button)::after { right: 8px; content: "↓"; }
.portal-reference-relationships .mvc-data-table th:has(.mvc-sort-asc)::before,
.portal-reference-relationships .mvc-data-table th:has(.mvc-sort-desc)::after { opacity: 1; }
.portal-reference-relationships .mvc-manage-heading,
.portal-reference-relationships .mvc-action-cell { min-width: 0; text-align: left !important; }
.portal-reference-relationships .mvc-icon-button { display: inline-grid; min-width: 0; height: 37.6px; padding: 0; place-items: center; }
.portal-reference-relationships .mvc-edit-button { width: 41.6px; border-color: #0f0f8f; background: #000080; }
.portal-reference-relationships .mvc-edit-button:hover { border-color: #117a8b; background: #138496; }
.portal-reference-relationships .mvc-delete-button { width: 39.6px; }
.portal-reference-relationships .mvc-reference-grid-footer { box-sizing: border-box; display: grid; grid-template-columns: 5fr 7fr; align-items: flex-start; gap: 0; width: calc(100% - 15px); min-height: 41.6px; margin: 5px 7.5px 0; padding: 0 5px; }
.portal-reference-relationships .mvc-data-table-info { position: relative; top: 0; width: calc(100% - 7.5px); }
.portal-reference-relationships .mvc-data-table-pagination { box-sizing: border-box; position: relative; top: 2px; display: flex; justify-content: flex-end; height: 37.6px; margin-left: 7.5px; }
.portal-reference-relationships .mvc-data-table-pagination button,
.portal-reference-relationships .mvc-data-table-pagination span { min-width: 0; padding: 8px 12px; line-height: 20px; }
.portal-reference-relationships .mvc-data-table-pagination ul { margin: 0; }

/* Request Types keeps the MVC/DataTables desktop grid's native narrow width. */
.portal-reference-request-types .mvc-app-button { margin-left: 13.2px; }
.portal-reference-request-types .mvc-box { margin: 0 12.5px; padding-bottom: 5px; }
.portal-reference-request-types .mvc-reference-grid-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: start; box-sizing: border-box; height: 39px; margin: 0 7.5px 5px; padding: 0 5px; font-size: 16px; line-height: 24px; }
.portal-reference-request-types .mvc-data-table-length { height: 39px; margin-right: 7.5px; }
.portal-reference-request-types .mvc-data-table-filter { height: 39px; margin-left: 7.5px; text-align: right; }
.portal-reference-request-types .mvc-reference-grid-tools label { margin: 0; }
.portal-reference-request-types .mvc-reference-grid-tools select,
.portal-reference-request-types .mvc-reference-grid-tools input { box-sizing: border-box; height: 31px; border: 1px solid #ced4da; border-radius: .25rem; color: #495057; background: #fff; font-size: 14px; line-height: 21px; }
.portal-reference-request-types .mvc-reference-grid-tools select { width: 59.2px; padding: 4px 8px; }
.portal-reference-request-types .mvc-reference-grid-tools input { width: 176px; margin-left: 7px; padding: 4px 8px; }
.portal-reference-request-types .mvc-table-responsive { box-sizing: border-box; margin: 0 7.5px; padding: 0 5px; }
.portal-reference-request-types .mvc-data-table { width: 930px; margin: 6px 0; border: 1px solid #dee2e6; table-layout: fixed; }
.portal-reference-request-types .mvc-data-table th,
.portal-reference-request-types .mvc-data-table td { box-sizing: content-box; padding: 12px; border: 1px solid #dee2e6; color: #212529; text-align: left !important; vertical-align: top; white-space: pre-wrap; }
.portal-reference-request-types .mvc-data-table th { color: #000; font-weight: 400; vertical-align: bottom; }
.portal-reference-request-types .mvc-data-table th:nth-child(1),
.portal-reference-request-types .mvc-data-table th:nth-child(2) { padding-right: 30px; }
.portal-reference-request-types .mvc-data-table th:nth-child(1),
.portal-reference-request-types .mvc-data-table td:nth-child(1) { width: 310px; }
.portal-reference-request-types .mvc-data-table th:nth-child(2),
.portal-reference-request-types .mvc-data-table td:nth-child(2) { width: 282px; }
.portal-reference-request-types .mvc-data-table th:nth-child(3),
.portal-reference-request-types .mvc-data-table td:nth-child(3) { width: 104px; }
.portal-reference-request-types .mvc-data-table th:nth-child(4),
.portal-reference-request-types .mvc-data-table td:nth-child(4) { width: 100px; }
.portal-reference-request-types .mvc-data-table th:has(.mvc-sort-button) { position: relative; }
.portal-reference-request-types .mvc-sort-button { width: auto; margin: -12px -30px -12px -12px; padding: 12px 30px 12px 12px; }
.portal-reference-request-types .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-request-types .mvc-data-table th:has(.mvc-sort-button)::after { position: absolute; bottom: .9em; color: #000; font-size: 16px; font-weight: 400; line-height: 24px; opacity: .3; }
.portal-reference-request-types .mvc-data-table th:has(.mvc-sort-button)::before { right: 16px; content: "↑"; }
.portal-reference-request-types .mvc-data-table th:has(.mvc-sort-button)::after { right: 8px; content: "↓"; }
.portal-reference-request-types .mvc-data-table th:has(.mvc-sort-asc)::before,
.portal-reference-request-types .mvc-data-table th:has(.mvc-sort-desc)::after { opacity: 1; }
.portal-reference-request-types .mvc-manage-heading,
.portal-reference-request-types .mvc-action-cell { min-width: 0; text-align: left !important; }
.portal-reference-request-types .mvc-icon-button { display: inline-grid; min-width: 0; height: 37.6px; padding: 0; place-items: center; }
.portal-reference-request-types .mvc-edit-button { width: 41.6px; border-color: #0f0f8f; background: #000080; }
.portal-reference-request-types .mvc-edit-button:hover { border-color: #117a8b; background: #138496; }
.portal-reference-request-types .mvc-delete-button { width: 39.6px; }
.portal-reference-request-types .mvc-reference-grid-footer { box-sizing: border-box; display: grid; grid-template-columns: 5fr 7fr; align-items: flex-start; gap: 0; width: calc(100% - 15px); min-height: 41.6px; margin: 5px 7.5px 0; padding: 0 5px; }
.portal-reference-request-types .mvc-data-table-info { position: relative; top: 0; width: calc(100% - 7.5px); }
.portal-reference-request-types .mvc-data-table-pagination { box-sizing: border-box; position: relative; top: 2px; display: flex; justify-content: flex-end; height: 37.6px; margin-left: 7.5px; }
.portal-reference-request-types .mvc-data-table-pagination button,
.portal-reference-request-types .mvc-data-table-pagination span { min-width: 0; padding: 8px 12px; line-height: 20px; }
.portal-reference-request-types .mvc-data-table-pagination ul { margin: 0; }
@media (min-width: 901px) {
    .portal-reference-request-types .mvc-table-responsive { scrollbar-width: none; }
    .portal-reference-request-types .mvc-table-responsive::-webkit-scrollbar { height: 0; }
}

/* On-Call Roles uses MVC's fluid Bootstrap/DataTables column sizing. */
.portal-reference-on-call-roles .mvc-content-header h1 { position: relative; top: -3.3125px; font-weight: 500; line-height: 24px; }
.portal-reference-on-call-roles .mvc-app-button { margin-left: 13.2px; }
.portal-reference-on-call-roles .mvc-box { margin: 0 12.5px; padding-bottom: 5px; }
.portal-reference-on-call-roles .mvc-reference-grid-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: start; box-sizing: border-box; height: 39px; margin: 0 7.5px 5px; padding: 0 5px; font-size: 16px; line-height: 24px; }
.portal-reference-on-call-roles .mvc-data-table-length { height: 39px; margin-right: 7.5px; }
.portal-reference-on-call-roles .mvc-data-table-filter { height: 39px; margin-left: 7.5px; text-align: right; }
.portal-reference-on-call-roles .mvc-reference-grid-tools label { margin: 0; }
.portal-reference-on-call-roles .mvc-reference-grid-tools select,
.portal-reference-on-call-roles .mvc-reference-grid-tools input { box-sizing: border-box; height: 31px; border: 1px solid #ced4da; border-radius: .25rem; color: #495057; background: #fff; font-size: 14px; line-height: 21px; }
.portal-reference-on-call-roles .mvc-reference-grid-tools select { width: 59.2px; padding: 4px 8px; }
.portal-reference-on-call-roles .mvc-reference-grid-tools input { width: 176px; margin-left: 7px; padding: 4px 8px; }
.portal-reference-on-call-roles .mvc-table-responsive { box-sizing: border-box; margin: 0 7.5px; padding: 0 5px; }
.portal-reference-on-call-roles .mvc-data-table { width: 100%; margin: 6px 0; border: 1px solid #dee2e6; table-layout: auto; }
.portal-reference-on-call-roles .mvc-data-table th,
.portal-reference-on-call-roles .mvc-data-table td { box-sizing: content-box; padding: 12px; border: 1px solid #dee2e6; color: #212529; text-align: left !important; vertical-align: top; white-space: pre-wrap; }
.portal-reference-on-call-roles .mvc-data-table th { color: #000; font-weight: 400; vertical-align: bottom; }
.portal-reference-on-call-roles .mvc-data-table th:nth-child(1),
.portal-reference-on-call-roles .mvc-data-table th:nth-child(2) { padding-right: 30px; }
.portal-reference-on-call-roles .mvc-data-table th:has(.mvc-sort-button) { position: relative; }
.portal-reference-on-call-roles .mvc-sort-button { width: auto; margin: -12px -30px -12px -12px; padding: 12px 30px 12px 12px; }
.portal-reference-on-call-roles .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-on-call-roles .mvc-data-table th:has(.mvc-sort-button)::after { position: absolute; bottom: .9em; display: block; color: inherit; font: inherit; opacity: .3; }
.portal-reference-on-call-roles .mvc-data-table th:has(.mvc-sort-button)::before { right: 1em; content: "\2191"; }
.portal-reference-on-call-roles .mvc-data-table th:has(.mvc-sort-button)::after { right: .5em; content: "\2193"; }
.portal-reference-on-call-roles .mvc-data-table th:has(.mvc-sort-asc)::before,
.portal-reference-on-call-roles .mvc-data-table th:has(.mvc-sort-desc)::after { opacity: 1; }
.portal-reference-on-call-roles .mvc-manage-heading,
.portal-reference-on-call-roles .mvc-action-cell { width: auto; min-width: 0; text-align: left !important; }
.portal-reference-on-call-roles .mvc-icon-button { display: inline-grid; min-width: 0; height: 37.6px; padding: 0; place-items: center; }
.portal-reference-on-call-roles .mvc-edit-button { width: 41.6px; border-color: #0f0f8f; background: #000080; }
.portal-reference-on-call-roles .mvc-edit-button:hover { border-color: #117a8b; background: #138496; }
.portal-reference-on-call-roles .mvc-delete-button { width: 39.6px; }
.portal-reference-on-call-roles .mvc-reference-grid-footer { box-sizing: border-box; display: grid; grid-template-columns: 5fr 7fr; align-items: flex-start; gap: 0; width: calc(100% - 15px); min-height: 41.6px; margin: -10.2px 7.5px 0; padding: 0 5px; }
.portal-reference-on-call-roles .mvc-data-table-info { position: relative; top: 0; width: calc(100% - 7.5px); }
.portal-reference-on-call-roles .mvc-data-table-pagination { box-sizing: border-box; position: relative; top: 2px; display: flex; justify-content: flex-end; height: 37.6px; margin-left: 7.5px; }
.portal-reference-on-call-roles .mvc-data-table-pagination button,
.portal-reference-on-call-roles .mvc-data-table-pagination span { min-width: 0; padding: 8px 12px; line-height: 20px; }
.portal-reference-on-call-roles .mvc-data-table-pagination ul { margin: 0; }

/* Dispositions legacy controls and four visible columns. The final parity
   stylesheet restores Bootstrap's full-width table and automatic columns. */
.portal-reference-dispositions .mvc-content-header h1 { position: relative; top: -3.3125px; font-weight: 500; line-height: 24px; }
.portal-reference-dispositions .mvc-app-button { margin-left: 13.2px; }
.portal-reference-dispositions .mvc-box { margin: 0 12.5px; padding-bottom: 5px; }
.portal-reference-dispositions .mvc-reference-grid-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: start; box-sizing: border-box; height: 39px; margin: 0 7.5px 5px; padding: 0 5px; font-size: 16px; line-height: 24px; }
.portal-reference-dispositions .mvc-data-table-length { height: 39px; margin-right: 7.5px; }
.portal-reference-dispositions .mvc-data-table-filter { height: 39px; margin-left: 7.5px; text-align: right; }
.portal-reference-dispositions .mvc-reference-grid-tools label { margin: 0; }
.portal-reference-dispositions .mvc-reference-grid-tools select,
.portal-reference-dispositions .mvc-reference-grid-tools input { box-sizing: border-box; height: 31px; border: 1px solid #ced4da; border-radius: .25rem; color: #495057; background: #fff; font-size: 14px; line-height: 21px; }
.portal-reference-dispositions .mvc-reference-grid-tools select { width: 59.2px; padding: 4px 8px; }
.portal-reference-dispositions .mvc-reference-grid-tools input { width: 176px; margin-left: 7px; padding: 4px 8px; }
.portal-reference-dispositions .mvc-table-responsive { box-sizing: border-box; margin: 0 7.5px; padding: 0 5px; }
.portal-reference-dispositions .mvc-data-table { width: 931px; margin: 6px 0; border: 1px solid #dee2e6; table-layout: fixed; }
.portal-reference-dispositions .mvc-data-table th,
.portal-reference-dispositions .mvc-data-table td { box-sizing: content-box; padding: 12px; border: 1px solid #dee2e6; color: #212529; text-align: left !important; vertical-align: top; white-space: pre-wrap; }
.portal-reference-dispositions .mvc-data-table th { padding-right: 30px; color: #000; font-weight: 400; vertical-align: bottom; }
.portal-reference-dispositions .mvc-data-table th:nth-child(1),
.portal-reference-dispositions .mvc-data-table td:nth-child(1) { width: 323px; }
.portal-reference-dispositions .mvc-data-table th:nth-child(2),
.portal-reference-dispositions .mvc-data-table td:nth-child(2) { width: 203px; }
.portal-reference-dispositions .mvc-data-table th:nth-child(3),
.portal-reference-dispositions .mvc-data-table td:nth-child(3) { width: 102px; }
.portal-reference-dispositions .mvc-data-table th:nth-child(4),
.portal-reference-dispositions .mvc-data-table td:nth-child(4) { width: 135px; }
.portal-reference-dispositions .mvc-data-table th:has(.mvc-sort-button),
.portal-reference-dispositions .mvc-data-table th.mvc-sort-idle { position: relative; }
.portal-reference-dispositions .mvc-sort-button { width: auto; margin: -12px -30px -12px -12px; padding: 12px 30px 12px 12px; }
.portal-reference-dispositions .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-dispositions .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-reference-dispositions .mvc-data-table th.mvc-sort-idle::before,
.portal-reference-dispositions .mvc-data-table th.mvc-sort-idle::after { position: absolute; bottom: .9em; color: #000; font-size: 16px; font-weight: 400; line-height: 24px; opacity: .3; }
.portal-reference-dispositions .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-dispositions .mvc-data-table th.mvc-sort-idle::before { right: 16px; content: "↑"; }
.portal-reference-dispositions .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-reference-dispositions .mvc-data-table th.mvc-sort-idle::after { right: 8px; content: "↓"; }
.portal-reference-dispositions .mvc-data-table th:has(.mvc-sort-asc)::before,
.portal-reference-dispositions .mvc-data-table th:has(.mvc-sort-desc)::after { opacity: 1; }
.portal-reference-dispositions .mvc-manage-heading,
.portal-reference-dispositions .mvc-action-cell { min-width: 0; text-align: left !important; }
.portal-reference-dispositions .mvc-icon-button { display: inline-grid; min-width: 0; height: 37.6px; padding: 0; place-items: center; }
.portal-reference-dispositions .mvc-edit-button { width: 41.6px; border-color: #0f0f8f; background: #000080; }
.portal-reference-dispositions .mvc-edit-button:hover { border-color: #117a8b; background: #138496; }
.portal-reference-dispositions .mvc-delete-button { width: 39.6px; }
.portal-reference-dispositions .mvc-reference-grid-footer { box-sizing: border-box; display: grid; grid-template-columns: 5fr 7fr; align-items: flex-start; gap: 0; width: calc(100% - 15px); min-height: 41.6px; margin: -10.2px 7.5px 0; padding: 0 5px; }
.portal-reference-dispositions .mvc-data-table-info { position: relative; top: 0; width: calc(100% - 7.5px); }
.portal-reference-dispositions .mvc-data-table-pagination { box-sizing: border-box; position: relative; top: 2px; display: flex; justify-content: flex-end; height: 37.6px; margin-left: 7.5px; }
.portal-reference-dispositions .mvc-data-table-pagination button,
.portal-reference-dispositions .mvc-data-table-pagination span { min-width: 0; padding: 8px 12px; line-height: 20px; }
.portal-reference-dispositions .mvc-data-table-pagination ul { margin: 0; }

/* DAR Methods uses the same narrow MVC/DataTables frame as Dispositions with
   its own legacy column widths. */
.portal-reference-dar-methods .mvc-content-header h1 { position: relative; top: -3.3125px; font-weight: 500; line-height: 24px; }
.portal-reference-dar-methods .mvc-app-button { margin-left: 13.2px; }
.portal-reference-dar-methods .mvc-box { margin: 0 12.5px; padding-bottom: 5px; }
.portal-reference-dar-methods .mvc-reference-grid-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: start; box-sizing: border-box; height: 39px; margin: 0 7.5px 5px; padding: 0 5px; font-size: 16px; line-height: 24px; }
.portal-reference-dar-methods .mvc-data-table-length { height: 39px; margin-right: 7.5px; }
.portal-reference-dar-methods .mvc-data-table-filter { height: 39px; margin-left: 7.5px; text-align: right; }
.portal-reference-dar-methods .mvc-reference-grid-tools label { margin: 0; }
.portal-reference-dar-methods .mvc-reference-grid-tools select,
.portal-reference-dar-methods .mvc-reference-grid-tools input { box-sizing: border-box; height: 31px; border: 1px solid #ced4da; border-radius: .25rem; color: #495057; background: #fff; font-size: 14px; line-height: 21px; }
.portal-reference-dar-methods .mvc-reference-grid-tools select { width: 59.2px; padding: 4px 8px; }
.portal-reference-dar-methods .mvc-reference-grid-tools input { width: 176px; margin-left: 7px; padding: 4px 8px; }
.portal-reference-dar-methods .mvc-table-responsive { box-sizing: border-box; margin: 0 7.5px; padding: 0 5px; }
.portal-reference-dar-methods .mvc-data-table { width: 932px; margin: 6px 0; border: 1px solid #dee2e6; table-layout: fixed; }
.portal-reference-dar-methods .mvc-data-table th,
.portal-reference-dar-methods .mvc-data-table td { box-sizing: content-box; padding: 12px; border: 1px solid #dee2e6; color: #212529; text-align: left !important; vertical-align: top; white-space: pre-wrap; }
.portal-reference-dar-methods .mvc-data-table th { color: #000; font-weight: 400; vertical-align: bottom; }
.portal-reference-dar-methods .mvc-data-table th:nth-child(1),
.portal-reference-dar-methods .mvc-data-table th:nth-child(2) { padding-right: 30px; }
.portal-reference-dar-methods .mvc-data-table th:nth-child(1),
.portal-reference-dar-methods .mvc-data-table td:nth-child(1) { width: 341px; }
.portal-reference-dar-methods .mvc-data-table th:nth-child(2),
.portal-reference-dar-methods .mvc-data-table td:nth-child(2) { width: 219px; }
.portal-reference-dar-methods .mvc-data-table th:nth-child(3),
.portal-reference-dar-methods .mvc-data-table td:nth-child(3) { width: 121px; }
.portal-reference-dar-methods .mvc-data-table th:nth-child(4),
.portal-reference-dar-methods .mvc-data-table td:nth-child(4) { width: 117px; }
.portal-reference-dar-methods .mvc-data-table th:has(.mvc-sort-button) { position: relative; }
.portal-reference-dar-methods .mvc-sort-button { width: auto; margin: -12px -30px -12px -12px; padding: 12px 30px 12px 12px; }
.portal-reference-dar-methods .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-dar-methods .mvc-data-table th:has(.mvc-sort-button)::after { position: absolute; bottom: .9em; color: #000; font-size: 16px; font-weight: 400; line-height: 24px; opacity: .3; }
.portal-reference-dar-methods .mvc-data-table th:has(.mvc-sort-button)::before { right: 16px; content: "↑"; }
.portal-reference-dar-methods .mvc-data-table th:has(.mvc-sort-button)::after { right: 8px; content: "↓"; }
.portal-reference-dar-methods .mvc-data-table th:has(.mvc-sort-asc)::before,
.portal-reference-dar-methods .mvc-data-table th:has(.mvc-sort-desc)::after { opacity: 1; }
.portal-reference-dar-methods .mvc-manage-heading,
.portal-reference-dar-methods .mvc-action-cell { min-width: 0; text-align: left !important; }
.portal-reference-dar-methods .mvc-icon-button { display: inline-grid; min-width: 0; height: 37.6px; padding: 0; place-items: center; }
.portal-reference-dar-methods .mvc-edit-button { width: 41.6px; border-color: #0f0f8f; background: #000080; }
.portal-reference-dar-methods .mvc-edit-button:hover { border-color: #117a8b; background: #138496; }
.portal-reference-dar-methods .mvc-delete-button { width: 39.6px; }
.portal-reference-dar-methods .mvc-reference-grid-footer { box-sizing: border-box; display: grid; grid-template-columns: 5fr 7fr; align-items: flex-start; gap: 0; width: calc(100% - 15px); min-height: 41.6px; margin: -10.2px 7.5px 0; padding: 0 5px; }
.portal-reference-dar-methods .mvc-data-table-info { position: relative; top: 0; width: calc(100% - 7.5px); }
.portal-reference-dar-methods .mvc-data-table-pagination { box-sizing: border-box; position: relative; top: 2px; display: flex; justify-content: flex-end; height: 37.6px; margin-left: 7.5px; }
.portal-reference-dar-methods .mvc-data-table-pagination button,
.portal-reference-dar-methods .mvc-data-table-pagination span { min-width: 0; padding: 8px 12px; line-height: 20px; }
.portal-reference-dar-methods .mvc-data-table-pagination ul { margin: 0; }

/* DAR Categories keeps the MVC/DataTables column widths, including the
   sortable action headings emitted by its legacy screen. */
.portal-reference-dar-categories .mvc-content-header h1 { position: relative; top: -3.3125px; font-weight: 500; line-height: 24px; }
.portal-reference-dar-categories .mvc-app-button { margin-left: 13.2px; }
.portal-reference-dar-categories .mvc-box { margin: 0 12.5px; padding-bottom: 5px; }
.portal-reference-dar-categories .mvc-reference-grid-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: start; box-sizing: border-box; height: 39px; margin: 0 7.5px 5px; padding: 0 5px; font-size: 16px; line-height: 24px; }
.portal-reference-dar-categories .mvc-data-table-length { height: 39px; margin-right: 7.5px; }
.portal-reference-dar-categories .mvc-data-table-filter { height: 39px; margin-left: 7.5px; text-align: right; }
.portal-reference-dar-categories .mvc-reference-grid-tools label { margin: 0; }
.portal-reference-dar-categories .mvc-reference-grid-tools select,
.portal-reference-dar-categories .mvc-reference-grid-tools input { box-sizing: border-box; height: 31px; border: 1px solid #ced4da; border-radius: .25rem; color: #495057; background: #fff; font-size: 14px; line-height: 21px; }
.portal-reference-dar-categories .mvc-reference-grid-tools select { width: 59.2px; padding: 4px 8px; }
.portal-reference-dar-categories .mvc-reference-grid-tools input { width: 176px; margin-left: 7px; padding: 4px 8px; }
.portal-reference-dar-categories .mvc-table-responsive { box-sizing: border-box; margin: 0 7.5px; padding: 0 5px; }
.portal-reference-dar-categories .mvc-data-table { width: 931px; margin: 6px 0; border: 1px solid #dee2e6; table-layout: fixed; }
.portal-reference-dar-categories .mvc-data-table th,
.portal-reference-dar-categories .mvc-data-table td { box-sizing: content-box; padding: 12px; border: 1px solid #dee2e6; color: #212529; text-align: left !important; vertical-align: top; white-space: pre-wrap; }
.portal-reference-dar-categories .mvc-data-table th { padding-right: 30px; color: #000; font-weight: 400; vertical-align: bottom; }
.portal-reference-dar-categories .mvc-data-table th:nth-child(1),
.portal-reference-dar-categories .mvc-data-table td:nth-child(1) { width: 328px; }
.portal-reference-dar-categories .mvc-data-table th:nth-child(2),
.portal-reference-dar-categories .mvc-data-table td:nth-child(2) { width: 214px; }
.portal-reference-dar-categories .mvc-data-table th:nth-child(3),
.portal-reference-dar-categories .mvc-data-table td:nth-child(3) { width: 95px; }
.portal-reference-dar-categories .mvc-data-table th:nth-child(4),
.portal-reference-dar-categories .mvc-data-table td:nth-child(4) { width: 126px; }
.portal-reference-dar-categories .mvc-data-table th:has(.mvc-sort-button),
.portal-reference-dar-categories .mvc-data-table th.mvc-sort-idle { position: relative; }
.portal-reference-dar-categories .mvc-sort-button { width: auto; margin: -12px -30px -12px -12px; padding: 12px 30px 12px 12px; }
.portal-reference-dar-categories .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-dar-categories .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-reference-dar-categories .mvc-data-table th.mvc-sort-idle::before,
.portal-reference-dar-categories .mvc-data-table th.mvc-sort-idle::after { position: absolute; bottom: .9em; color: #000; font-size: 16px; font-weight: 400; line-height: 24px; opacity: .3; }
.portal-reference-dar-categories .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-dar-categories .mvc-data-table th.mvc-sort-idle::before { right: 16px; content: "↑"; }
.portal-reference-dar-categories .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-reference-dar-categories .mvc-data-table th.mvc-sort-idle::after { right: 8px; content: "↓"; }
.portal-reference-dar-categories .mvc-data-table th:has(.mvc-sort-asc)::before,
.portal-reference-dar-categories .mvc-data-table th:has(.mvc-sort-desc)::after { opacity: 1; }
.portal-reference-dar-categories .mvc-manage-heading,
.portal-reference-dar-categories .mvc-action-cell { min-width: 0; text-align: left !important; }
.portal-reference-dar-categories .mvc-icon-button { display: inline-grid; min-width: 0; height: 37.6px; padding: 0; place-items: center; }
.portal-reference-dar-categories .mvc-edit-button { width: 41.6px; border-color: #0f0f8f; background: #000080; }
.portal-reference-dar-categories .mvc-edit-button:hover { border-color: #117a8b; background: #138496; }
.portal-reference-dar-categories .mvc-delete-button { width: 39.6px; }
.portal-reference-dar-categories .mvc-reference-grid-footer { box-sizing: border-box; display: grid; grid-template-columns: 5fr 7fr; align-items: flex-start; gap: 0; width: calc(100% - 15px); min-height: 41.6px; margin: -10.2px 7.5px 0; padding: 0 5px; }
.portal-reference-dar-categories .mvc-data-table-info { position: relative; top: 0; width: calc(100% - 7.5px); }
.portal-reference-dar-categories .mvc-data-table-pagination { box-sizing: border-box; position: relative; top: 2px; display: flex; justify-content: flex-end; height: 37.6px; margin-left: 7.5px; }
.portal-reference-dar-categories .mvc-data-table-pagination button,
.portal-reference-dar-categories .mvc-data-table-pagination span { min-width: 0; padding: 8px 12px; line-height: 20px; }
.portal-reference-dar-categories .mvc-data-table-pagination ul { margin: 0; }

/* Address Book Types is a full-width legacy DataTable with the same shell as
   the MVC page, while retaining a native Blazor implementation. */
.portal-reference-on-call-resource-types .mvc-content-header h1 { position: relative; top: -3.3125px; font-weight: 500; line-height: 24px; }
.portal-reference-on-call-resource-types .mvc-app-button { margin-left: 13.2px; }
.portal-reference-on-call-resource-types .mvc-box { margin: 0 12.5px; padding-bottom: 5px; }
.portal-reference-on-call-resource-types .mvc-table-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: start; box-sizing: border-box; height: 39px; margin: 0 7.5px 5px; padding: 0 5px; border: 0; color: #212529; background: transparent; font-size: 16px; line-height: 24px; }
.portal-reference-on-call-resource-types .mvc-table-tools label { margin: 0; }
.portal-reference-on-call-resource-types .mvc-table-tools > label:last-child { justify-self: end; }
.portal-reference-on-call-resource-types .mvc-table-tools input,
.portal-reference-on-call-resource-types .mvc-table-tools select { box-sizing: border-box; height: 31px; border: 1px solid #ced4da; border-radius: .25rem; color: #495057; background: #fff; font-size: 14px; line-height: 21px; }
.portal-reference-on-call-resource-types .mvc-table-tools select { width: 59.2px; padding: 4px 8px; }
.portal-reference-on-call-resource-types .mvc-table-tools input { width: 176px; margin-left: 7px; padding: 4px 8px; }
.portal-reference-on-call-resource-types .mvc-table-responsive { box-sizing: border-box; margin: 0 7.5px; padding: 0 5px; overflow: visible; }
.portal-reference-on-call-resource-types .mvc-data-table { width: calc(100% + 8px); margin: 11px 0 6px; border: 1px solid #dee2e6; table-layout: fixed; }
.portal-reference-on-call-resource-types .mvc-data-table th,
.portal-reference-on-call-resource-types .mvc-data-table td { box-sizing: content-box; padding: 12px; border: 1px solid #dee2e6; color: #212529; text-align: left !important; vertical-align: top; white-space: pre-wrap; }
.portal-reference-on-call-resource-types .mvc-data-table th { color: #000; font-weight: 400; vertical-align: bottom; }
.portal-reference-on-call-resource-types .mvc-data-table th:nth-child(1),
.portal-reference-on-call-resource-types .mvc-data-table th:nth-child(3),
.portal-reference-on-call-resource-types .mvc-data-table th:nth-child(4),
.portal-reference-on-call-resource-types .mvc-data-table th:nth-child(5),
.portal-reference-on-call-resource-types .mvc-data-table th:nth-child(6) { padding-right: 30px; }
.portal-reference-on-call-resource-types .mvc-data-table th:nth-child(1),
.portal-reference-on-call-resource-types .mvc-data-table td:nth-child(1) { width: 123.162px; }
.portal-reference-on-call-resource-types .mvc-data-table th:nth-child(2),
.portal-reference-on-call-resource-types .mvc-data-table td:nth-child(2) { width: 385.925px; }
.portal-reference-on-call-resource-types .mvc-data-table th:nth-child(3),
.portal-reference-on-call-resource-types .mvc-data-table td:nth-child(3) { width: 127.162px; }
.portal-reference-on-call-resource-types .mvc-data-table th:nth-child(4),
.portal-reference-on-call-resource-types .mvc-data-table td:nth-child(4) { width: 129.15px; }
.portal-reference-on-call-resource-types .mvc-data-table th:nth-child(5),
.portal-reference-on-call-resource-types .mvc-data-table td:nth-child(5) { width: 210.075px; }
.portal-reference-on-call-resource-types .mvc-data-table th:nth-child(6),
.portal-reference-on-call-resource-types .mvc-data-table td:nth-child(6) { width: 141.125px; }
.portal-reference-on-call-resource-types .mvc-data-table th:nth-child(7),
.portal-reference-on-call-resource-types .mvc-data-table td:nth-child(7) { width: 71.174px; }
.portal-reference-on-call-resource-types .mvc-data-table th:nth-child(8),
.portal-reference-on-call-resource-types .mvc-data-table td:nth-child(8) { width: 100.049px; }
.portal-reference-on-call-resource-types .mvc-data-table th:has(.mvc-sort-button) { position: relative; }
.portal-reference-on-call-resource-types .mvc-sort-button { width: auto; margin: -12px -30px -12px -12px; padding: 12px 30px 12px 12px; }
.portal-reference-on-call-resource-types .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-on-call-resource-types .mvc-data-table th:has(.mvc-sort-button)::after { position: absolute; bottom: .9em; color: #000; font-size: 16px; font-weight: 400; line-height: 24px; opacity: .3; }
.portal-reference-on-call-resource-types .mvc-data-table th:has(.mvc-sort-button)::before { right: 16px; content: "↑"; }
.portal-reference-on-call-resource-types .mvc-data-table th:has(.mvc-sort-button)::after { right: 8px; content: "↓"; }
.portal-reference-on-call-resource-types .mvc-data-table th:has(.mvc-sort-asc)::before,
.portal-reference-on-call-resource-types .mvc-data-table th:has(.mvc-sort-desc)::after { opacity: 1; }
.portal-reference-on-call-resource-types .mvc-sort-indicator { display: none; }
.portal-reference-on-call-resource-types .mvc-manage-heading { min-width: 0; text-align: center !important; }
.portal-reference-on-call-resource-types .mvc-data-table td.mvc-action-cell { min-width: 0; text-align: center !important; }
.portal-reference-on-call-resource-types .mvc-action-buttons { gap: 0; }
.portal-reference-on-call-resource-types .mvc-icon-button { display: inline-grid; min-width: 0; height: 37.6px; margin: 0 4px; padding: 0; place-items: center; }
.portal-reference-on-call-resource-types .mvc-edit-button { width: 41.6px; border-color: #0f0f8f; background: #000080; }
.portal-reference-on-call-resource-types .mvc-edit-button:hover { border-color: #117a8b; background: #138496; }
.portal-reference-on-call-resource-types .mvc-delete-button { width: 39.6px; }
.portal-reference-on-call-resource-types .mvc-reference-grid-footer { box-sizing: border-box; display: grid; grid-template-columns: 5fr 7fr; align-items: flex-start; gap: 0; width: calc(100% - 15px); min-height: 41.6px; margin: 10px 7.5px 0; padding: 0 5px; }
.portal-reference-on-call-resource-types .mvc-data-table-info { position: relative; top: 0; width: calc(100% - 7.5px); }
.portal-reference-on-call-resource-types .mvc-data-table-pagination { box-sizing: border-box; position: relative; top: 2px; display: flex; justify-content: flex-end; height: 37.6px; margin-left: 7.5px; }
.portal-reference-on-call-resource-types .mvc-data-table-pagination button,
.portal-reference-on-call-resource-types .mvc-data-table-pagination span { min-width: 0; padding: 8px 12px; line-height: 20px; }
.portal-reference-on-call-resource-types .mvc-data-table-pagination ul { margin: 0; }

/* On-Call Resources uses the MVC server-side DataTable shell.  Keep the
   paired, faint sort affordances rather than rendering text arrow glyphs. */
.portal-reference-on-call-resources .mvc-data-table th:has(.mvc-sort-button) { position: relative; }
.portal-reference-on-call-resources .mvc-sort-button { width: auto; margin: -12px -30px -12px -12px; padding: 12px 30px 12px 12px; }
.portal-reference-on-call-resources .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-on-call-resources .mvc-data-table th:has(.mvc-sort-button)::after { position: absolute; bottom: .9em; color: #000; font-size: 16px; font-weight: 400; line-height: 24px; opacity: .3; }
.portal-reference-on-call-resources .mvc-data-table th:has(.mvc-sort-button)::before { right: 16px; content: "↑"; }
.portal-reference-on-call-resources .mvc-data-table th:has(.mvc-sort-button)::after { right: 8px; content: "↓"; }
.portal-reference-on-call-resources .mvc-data-table th:has(.mvc-sort-asc)::before,
.portal-reference-on-call-resources .mvc-data-table th:has(.mvc-sort-desc)::after { opacity: 1; }
.portal-reference-on-call-resources .mvc-sort-indicator { display: none; }

.portal-reference-client-contacts .mvc-data-table th:has(.mvc-sort-button) { position: relative; }
.portal-reference-client-contacts .mvc-sort-button { width: auto; margin: -12px -30px -12px -12px; padding: 12px 30px 12px 12px; }
.portal-reference-client-contacts .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-client-contacts .mvc-data-table th:has(.mvc-sort-button)::after { position: absolute; bottom: .9em; color: #000; font-size: 16px; font-weight: 400; line-height: 24px; opacity: .3; }
.portal-reference-client-contacts .mvc-data-table th:has(.mvc-sort-button)::before { right: 16px; content: "↑"; }
.portal-reference-client-contacts .mvc-data-table th:has(.mvc-sort-button)::after { right: 8px; content: "↓"; }
.portal-reference-client-contacts .mvc-data-table th:has(.mvc-sort-asc)::before,
.portal-reference-client-contacts .mvc-data-table th:has(.mvc-sort-desc)::after { opacity: 1; }
.portal-reference-client-contacts .mvc-sort-indicator { display: none; }

/* Actions has its own seven-column MVC DataTable geometry. */
.portal-reference-actions .mvc-content-header h1 { position: relative; top: -3.3125px; font-weight: 500; line-height: 24px; }
.portal-reference-actions .mvc-app-button { margin-left: 13.2px; }
.portal-reference-actions .mvc-app-button::before,
.portal-reference-actions .mvc-icon-button::before { display: none; }
.portal-reference-actions .mvc-app-button > i { font-size: 20px; line-height: 1; }
.portal-reference-actions .mvc-icon-button > i { font-size: 1rem; line-height: 1; }
.portal-reference-actions .mvc-box { margin: 0 12.5px; padding-bottom: 5px; }
.portal-reference-actions .mvc-table-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: start; box-sizing: border-box; height: 39px; margin: 0 7.5px 5px; padding: 0 5px; border: 0; color: #212529; background: transparent; font-size: 16px; line-height: 24px; }
.portal-reference-actions .mvc-table-tools label { margin: 0; }
.portal-reference-actions .mvc-table-tools > label:last-child { justify-self: end; }
.portal-reference-actions .mvc-table-tools input,
.portal-reference-actions .mvc-table-tools select { box-sizing: border-box; height: 31px; border: 1px solid #ced4da; border-radius: .25rem; color: #495057; background: #fff; font-size: 14px; line-height: 21px; }
.portal-reference-actions .mvc-table-tools select { width: 59.2px; padding: 4px 8px; }
.portal-reference-actions .mvc-table-tools input { width: 176px; margin-left: 7px; padding: 4px 8px; }
.portal-reference-actions .mvc-table-responsive { box-sizing: border-box; margin: 0 7.5px; padding: 0 5px; overflow: visible; }
.portal-reference-actions .mvc-data-table { width: calc(100% + 8px); margin: 11px 0 6px; border: 1px solid #dee2e6; table-layout: fixed; }
.portal-reference-actions .mvc-data-table th,
.portal-reference-actions .mvc-data-table td { box-sizing: content-box; padding: 12px; border: 1px solid #dee2e6; color: #212529; text-align: left !important; vertical-align: top; white-space: pre-wrap; }
.portal-reference-actions .mvc-data-table th { padding-right: 30px; color: #000; font-weight: 400; vertical-align: bottom; }
.portal-reference-actions .mvc-data-table th:nth-child(1),
.portal-reference-actions .mvc-data-table td:nth-child(1) { width: 65.937px; }
.portal-reference-actions .mvc-data-table th:nth-child(2),
.portal-reference-actions .mvc-data-table td:nth-child(2) { width: 236px; }
.portal-reference-actions .mvc-data-table th:nth-child(3),
.portal-reference-actions .mvc-data-table td:nth-child(3) { width: 121.075px; }
.portal-reference-actions .mvc-data-table th:nth-child(4),
.portal-reference-actions .mvc-data-table td:nth-child(4) { width: 409.875px; }
.portal-reference-actions .mvc-data-table th:nth-child(5),
.portal-reference-actions .mvc-data-table td:nth-child(5) { width: 283.9625px; }
.portal-reference-actions .mvc-data-table th:nth-child(6),
.portal-reference-actions .mvc-data-table td:nth-child(6) { width: 77.75px; }
.portal-reference-actions .mvc-data-table th:nth-child(7),
.portal-reference-actions .mvc-data-table td:nth-child(7) { width: 100px; }
.portal-reference-actions .mvc-data-table th:nth-child(7) { padding-right: 12px; }
.portal-reference-actions .mvc-data-table th:has(.mvc-sort-button) { position: relative; }
.portal-reference-actions .mvc-sort-button { width: auto; margin: -12px -30px -12px -12px; padding: 12px 30px 12px 12px; }
.portal-reference-actions .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-actions .mvc-data-table th:has(.mvc-sort-button)::after { position: absolute; bottom: .9em; color: #000; font-size: 16px; font-weight: 400; line-height: 24px; opacity: .3; }
.portal-reference-actions .mvc-data-table th:has(.mvc-sort-button)::before { right: 16px; content: "↑"; }
.portal-reference-actions .mvc-data-table th:has(.mvc-sort-button)::after { right: 8px; content: "↓"; }
.portal-reference-actions .mvc-data-table th:has(.mvc-sort-asc)::before,
.portal-reference-actions .mvc-data-table th:has(.mvc-sort-desc)::after { opacity: 1; }
.portal-reference-actions .mvc-sort-indicator { display: none; }
.portal-reference-actions .mvc-manage-heading { min-width: 0; padding-right: 12px; text-align: center !important; }
.portal-reference-actions .mvc-data-table td.mvc-action-cell { min-width: 0; text-align: center !important; }
.portal-reference-actions .mvc-action-buttons { gap: 0; }
.portal-reference-actions .mvc-icon-button { display: inline-grid; min-width: 0; height: 37.6px; margin: 0 4px; padding: 0; place-items: center; }
.portal-reference-actions .mvc-edit-button { width: 41.6px; border-color: #0f0f8f; background: #000080; }
.portal-reference-actions .mvc-edit-button:hover { border-color: #117a8b; background: #138496; }
.portal-reference-actions .mvc-delete-button { width: 39.6px; }
.portal-reference-actions .mvc-reference-grid-footer { box-sizing: border-box; display: grid; grid-template-columns: 5fr 7fr; align-items: flex-start; gap: 0; width: calc(100% - 15px); min-height: 41.6px; margin: 11px 7.5px 0; padding: 0 5px; }
.portal-reference-actions .mvc-data-table-info { position: relative; top: 0; width: calc(100% - 7.5px); }
.portal-reference-actions .mvc-data-table-pagination { box-sizing: border-box; position: relative; top: 2px; display: flex; justify-content: flex-end; height: 37.6px; margin-left: 7.5px; }
.portal-reference-actions .mvc-data-table-pagination button,
.portal-reference-actions .mvc-data-table-pagination span { min-width: 0; padding: 8px 12px; line-height: 20px; }
.portal-reference-actions .mvc-data-table-pagination ul { margin: 0; }

/* Workflows retains the MVC DataTables column layout, including its two
   independent action columns. */
.portal-reference-workflows .mvc-content-header h1 { position: relative; top: -3.3125px; font-weight: 500; line-height: 24px; }
.portal-reference-workflows .mvc-app-button { margin-left: 13.2px; }
.portal-reference-workflows .mvc-box { margin: 0 12.5px; padding-bottom: 5px; }
.portal-reference-workflows .mvc-table-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: start; box-sizing: border-box; height: 39px; margin: 0 7.5px 5px; padding: 0 5px; border: 0; color: #212529; background: transparent; font-size: 16px; line-height: 24px; }
.portal-reference-workflows .mvc-table-tools label { margin: 0; }
.portal-reference-workflows .mvc-table-tools > label:last-child { justify-self: end; }
.portal-reference-workflows .mvc-table-tools input,
.portal-reference-workflows .mvc-table-tools select { box-sizing: border-box; height: 31px; border: 1px solid #ced4da; border-radius: .25rem; color: #495057; background: #fff; font-size: 14px; line-height: 21px; }
.portal-reference-workflows .mvc-table-tools select { width: 59.2px; padding: 4px 8px; }
.portal-reference-workflows .mvc-table-tools input { width: 176px; margin-left: 7px; padding: 4px 8px; }
.portal-reference-workflows .mvc-table-responsive { box-sizing: border-box; margin: 0 7.5px; padding: 0 5px; overflow: visible; }
.portal-reference-workflows .mvc-data-table { width: 933px; margin: 11px 0 6px; border: 1px solid #dee2e6; table-layout: fixed; }
.portal-reference-workflows .mvc-data-table th,
.portal-reference-workflows .mvc-data-table td { box-sizing: content-box; padding: 12px; border: 1px solid #dee2e6; color: #212529; text-align: left !important; vertical-align: top; white-space: pre-wrap; }
.portal-reference-workflows .mvc-data-table th { color: #000; font-weight: 400; vertical-align: bottom; }
.portal-reference-workflows .mvc-data-table th:nth-child(-n + 3) { padding-right: 30px; }
.portal-reference-workflows .mvc-data-table th:nth-child(1),
.portal-reference-workflows .mvc-data-table td:nth-child(1) { width: 160.1125px; }
.portal-reference-workflows .mvc-data-table th:nth-child(2),
.portal-reference-workflows .mvc-data-table td:nth-child(2) { width: 91.1875px; }
.portal-reference-workflows .mvc-data-table th:nth-child(3),
.portal-reference-workflows .mvc-data-table td:nth-child(3) { width: 415.6875px; }
.portal-reference-workflows .mvc-data-table th:nth-child(4),
.portal-reference-workflows .mvc-data-table td:nth-child(4) { width: 44.1875px; }
.portal-reference-workflows .mvc-data-table th:nth-child(5),
.portal-reference-workflows .mvc-data-table td:nth-child(5) { width: 43.025px; }
.portal-reference-workflows .mvc-data-table th:has(.mvc-sort-button) { position: relative; }
.portal-reference-workflows .mvc-sort-button { width: auto; margin: -12px -30px -12px -12px; padding: 12px 30px 12px 12px; }
.portal-reference-workflows .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-workflows .mvc-data-table th:has(.mvc-sort-button)::after { position: absolute; bottom: .9em; color: #000; font-size: 16px; font-weight: 400; line-height: 24px; opacity: .3; }
.portal-reference-workflows .mvc-data-table th:has(.mvc-sort-button)::before { right: 16px; content: "↑"; }
.portal-reference-workflows .mvc-data-table th:has(.mvc-sort-button)::after { right: 8px; content: "↓"; }
.portal-reference-workflows .mvc-data-table th:has(.mvc-sort-asc)::before,
.portal-reference-workflows .mvc-data-table th:has(.mvc-sort-desc)::after { opacity: 1; }
.portal-reference-workflows .mvc-sort-indicator { display: none; }
.portal-reference-workflows .mvc-manage-heading,
.portal-reference-workflows .mvc-data-table td.mvc-action-cell { min-width: 0; text-align: left !important; }
.portal-reference-workflows .mvc-icon-button { display: inline-grid; min-width: 0; height: 37.6px; margin: 0; padding: 0; place-items: center; }
.portal-reference-workflows .mvc-edit-button { width: 41.6px; border-color: #0f0f8f; background: #000080; }
.portal-reference-workflows .mvc-edit-button:hover { border-color: #117a8b; background: #138496; }
.portal-reference-workflows .mvc-delete-button { width: 39.6px; }
.portal-reference-workflows .mvc-reference-grid-footer { box-sizing: border-box; display: grid; grid-template-columns: 5fr 7fr; align-items: flex-start; gap: 0; width: calc(100% - 15px); min-height: 41.6px; margin: 11px 7.5px 0; padding: 0 5px; }
.portal-reference-workflows .mvc-data-table-info { position: relative; top: 0; width: calc(100% - 7.5px); }
.portal-reference-workflows .mvc-data-table-pagination { box-sizing: border-box; position: relative; top: 2px; display: flex; justify-content: flex-end; height: 37.6px; margin-left: 7.5px; }
.portal-reference-workflows .mvc-data-table-pagination button,
.portal-reference-workflows .mvc-data-table-pagination span { min-width: 0; padding: 8px 12px; line-height: 20px; }
.portal-reference-workflows .mvc-data-table-pagination ul { margin: 0; }

/* Natures is a seven-column MVC/DataTables screen, including its wrapped
   sortable headers and desktop action-column geometry. */
.portal-natures-surface .mvc-app-button { margin-left: 13.2px; }
.portal-natures-surface .mvc-box { margin: 0 12.5px; padding-bottom: 5px; }
.portal-natures-surface .mvc-table-tools { display: grid; grid-template-columns: 1fr 1fr; align-items: start; box-sizing: border-box; height: 39px; margin: 0 7.5px 5px; padding: 0 5px; border: 0; color: #212529; background: transparent; font-size: 16px; line-height: 24px; }
.portal-natures-surface .mvc-data-table-length { height: 39px; margin-right: 7.5px; }
.portal-natures-surface .mvc-table-tools > label:last-child { height: 39px; margin: 0 0 0 7.5px; text-align: right; }
.portal-natures-surface .mvc-table-tools label { font-weight: 400; }
.portal-natures-surface .mvc-table-tools select,
.portal-natures-surface .mvc-table-tools input { box-sizing: border-box; height: 31px; border: 1px solid #ced4da; border-radius: .25rem; color: #495057; background: #fff; font-size: 14px; line-height: 21px; }
.portal-natures-surface .mvc-table-tools select { width: 59.2px; padding: 4px 8px; }
.portal-natures-surface .mvc-table-tools input { width: 176px; margin-left: 7px; padding: 4px 8px; }
.portal-natures-surface .mvc-table-responsive { box-sizing: border-box; margin: 0 7.5px; padding: 0 5px; }
.portal-natures-surface .mvc-data-table { width: calc(100% + 8px); margin: 6px 0; border: 1px solid #dee2e6; table-layout: fixed; }
.portal-natures-surface .mvc-data-table th,
.portal-natures-surface .mvc-data-table td { box-sizing: content-box; padding: 12px; border: 1px solid #dee2e6; color: #212529; text-align: left !important; vertical-align: top; white-space: pre-wrap; }
.portal-natures-surface .mvc-data-table th { padding-right: 30px; color: #000; font-weight: 400; vertical-align: bottom; }
.portal-natures-surface .mvc-data-table th:nth-child(1), .portal-natures-surface .mvc-data-table td:nth-child(1) { width: 101.162px; }
.portal-natures-surface .mvc-data-table th:nth-child(2), .portal-natures-surface .mvc-data-table td:nth-child(2) { width: 244.1px; }
.portal-natures-surface .mvc-data-table th:nth-child(3), .portal-natures-surface .mvc-data-table td:nth-child(3) { width: 89.175px; }
.portal-natures-surface .mvc-data-table th:nth-child(4), .portal-natures-surface .mvc-data-table td:nth-child(4) { width: 60.1875px; }
.portal-natures-surface .mvc-data-table th:nth-child(5), .portal-natures-surface .mvc-data-table td:nth-child(5) { width: 729.75px; }
.portal-natures-surface .mvc-data-table th:nth-child(6), .portal-natures-surface .mvc-data-table td:nth-child(6) { width: 45.1875px; }
.portal-natures-surface .mvc-data-table th:nth-child(7), .portal-natures-surface .mvc-data-table td:nth-child(7) { width: 43.0375px; }
.portal-natures-surface .mvc-data-table th:nth-child(6), .portal-natures-surface .mvc-data-table th:nth-child(7) { padding-right: 12px; }
.portal-natures-surface .mvc-data-table th.mvc-sortable { position: relative; cursor: pointer; }
.portal-natures-surface .mvc-data-table th.mvc-sortable::before,
.portal-natures-surface .mvc-data-table th.mvc-sortable::after { position: absolute; bottom: .9em; color: #000; font-size: 16px; font-weight: 400; line-height: 24px; opacity: .3; }
.portal-natures-surface .mvc-data-table th.mvc-sortable::before { right: 16px; content: "↑"; }
.portal-natures-surface .mvc-data-table th.mvc-sortable::after { right: 8px; content: "↓"; }
.portal-natures-surface .mvc-data-table th.mvc-sort-asc::before,
.portal-natures-surface .mvc-data-table th.mvc-sort-desc::after { opacity: 1; }
.portal-natures-surface .mvc-manage-heading,
.portal-natures-surface .mvc-action-cell { min-width: 0; text-align: left !important; }
.portal-natures-surface .mvc-icon-button { display: inline-grid; min-width: 0; height: 37.6px; padding: 0; place-items: center; }
.portal-natures-surface .mvc-edit-button { width: 41.6px; border-color: #0f0f8f; background: #000080; }
.portal-natures-surface .mvc-edit-button:hover { border-color: #117a8b; background: #138496; }
.portal-natures-surface .mvc-delete-button { width: 39.6px; }
.portal-natures-surface .mvc-reference-grid-footer { box-sizing: border-box; display: grid; grid-template-columns: 5fr 7fr; align-items: flex-start; gap: 0; width: calc(100% - 15px); min-height: 41.6px; margin: 5px 7.5px 0; padding: 0 5px; }
.portal-natures-surface .mvc-data-table-info { position: relative; top: 0; width: calc(100% - 7.5px); }
.portal-natures-surface .mvc-data-table-pagination { box-sizing: border-box; position: relative; top: 2px; display: flex; justify-content: flex-end; height: 37.6px; margin-left: 7.5px; }
.portal-natures-surface .mvc-data-table-pagination button,
.portal-natures-surface .mvc-data-table-pagination span { min-width: 0; padding: 8px 12px; line-height: 20px; }
.portal-natures-surface .mvc-data-table-pagination ul { margin: 0; }
@media (min-width: 901px) {
    .portal-natures-surface .mvc-table-responsive { scrollbar-width: none; }
    .portal-natures-surface .mvc-table-responsive::-webkit-scrollbar { height: 0; }
}
.mvc-modal-backdrop { position: fixed; z-index: 1050; inset: 0; display: grid; place-items: center; padding: 20px; overflow-y: auto; background: rgba(0, 0, 0, .5); }
.mvc-modal-content { position: relative; display: flex; flex-direction: column; width: min(100%, 500px); overflow: hidden; border: 1px solid rgba(0, 0, 0, .2); border-radius: .3rem; background: #fff; background-clip: padding-box; box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .5); outline: 0; }
.mvc-modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 1rem; border-bottom: 1px solid #e9ecef; }
.mvc-modal-header h4 { margin: 0; color: #212529; font-size: 1.5rem; font-weight: 700; line-height: 1.5; }
/* Match the MVC .modal-icon and .delete-modal-icon rules for every native modal.
   The repeated class keeps this global rule ahead of the scoped component default. */
.mvc-modal-header .portal-header-icon.portal-header-icon { width: 18px; height: 18px; flex: 0 0 18px; margin-right: 12px; }
.mvc-modal-header .portal-header-icon.portal-header-icon--trash { color: #982943; }
.mvc-close-button { display: inline-grid; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 4px; color: #4b5563; background: transparent; place-items: center; font-size: 0 !important; font-weight: 400; line-height: 1; cursor: pointer; }
.mvc-close-button::after { content: "×"; font-size: 24px; line-height: 1; }
.mvc-close-button:hover { color: #111827; background: #f3f4f6; }
.mvc-modal-content[aria-labelledby="global-setting-editor-title"] { width: min(100%, 1050px); }
.mvc-modal-content[aria-labelledby="global-setting-editor-title"] .mvc-modal-header,
.mvc-modal-content[aria-labelledby="delete-global-setting-title"] .mvc-modal-header,
.mvc-modal-content[aria-labelledby="address-book-type-editor-title"] .mvc-modal-header,
.mvc-modal-content[aria-labelledby="address-book-type-details-title"] .mvc-modal-header { position: relative; justify-content: center; }
.mvc-modal-content[aria-labelledby="global-setting-editor-title"] .mvc-modal-header h4,
.mvc-modal-content[aria-labelledby="delete-global-setting-title"] .mvc-modal-header h4,
.mvc-modal-content[aria-labelledby="address-book-type-editor-title"] .mvc-modal-header h4,
.mvc-modal-content[aria-labelledby="address-book-type-details-title"] .mvc-modal-header h4 { width: 100%; text-align: center; font-weight: 700; }
.mvc-modal-content[aria-labelledby="global-setting-editor-title"] .mvc-close-button,
.mvc-modal-content[aria-labelledby="delete-global-setting-title"] .mvc-close-button,
.mvc-modal-content[aria-labelledby="address-book-type-editor-title"] .mvc-close-button,
.mvc-modal-content[aria-labelledby="address-book-type-details-title"] .mvc-close-button { position: absolute; right: 14px; }
.mvc-modal-content[aria-labelledby="address-book-type-details-title"] { width: min(100%, 850px); }
.mvc-modal-content[aria-labelledby="address-book-type-details-title"] .mvc-modal-footer { justify-content: center; }
body .portal-sms-details { max-width: 650px; }
.portal-oncall-resource-details .mvc-modal-header { position: relative; justify-content: center; }
.portal-oncall-resource-details .mvc-modal-header h4 { width: 100%; text-align: center; font-weight: 700; }
.portal-oncall-resource-details .mvc-close-button { position: absolute; right: 14px; }
.mvc-modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }
.mvc-modal-body p { margin: 0; }
.mvc-form-group { margin-bottom: 15px; }
.mvc-form-group:last-child { margin-bottom: 0; }
.mvc-form-group label { display: block; margin: 0 0 6px; color: #374151; font-weight: 600; }
.mvc-form-control { display: block; box-sizing: border-box; width: 100%; height: calc(2.25rem + 2px); padding: .375rem .75rem; border: 1px solid #000 !important; border-radius: .25rem; color: #000 !important; background: #fff; font: inherit; font-size: 1rem; line-height: 1.5; box-shadow: none; }
.mvc-form-control::placeholder { color: #606060 !important; opacity: 1; }
/* Source AdminLTE's textarea.form-control uses auto height. Keep the declared
   rows effective instead of giving textareas the shared single-line height. */
textarea.mvc-form-control { height: auto; }
.mvc-textarea-control { height: auto; min-height: 74px; resize: vertical; }
.mvc-action-table td { max-width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvc-action-buttons { display: inline-flex; gap: 4px; }
.mvc-action-editor { width: min(100%, 640px); }
.mvc-check-row { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.mvc-check-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--intella-blue); }
.mvc-check-row label { margin: 0; font-weight: 400; }
.mvc-help { color: #0f0f8f; cursor: help; }
.mvc-multiselect { height: 126px; }
.mvc-form-group small { display: block; margin-top: 4px; color: #777; }
.mvc-wide-button { width: 150px; }
.mvc-modal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0; padding: .75rem; border-top: 1px solid #e9ecef; text-align: right; }
.mvc-modal-footer > * { margin: .25rem; }
.mvc-button {
    min-width: 0;
    padding: .375rem .75rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    color: #fff;
    background: var(--intella-blue);
    font: 400 1rem / 1.5 "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
    cursor: pointer;
}
.portal-published-unpublish-confirmation { width: min(100%, 500px); }
.portal-published-unpublish-confirmation .mvc-modal-header { position: relative; justify-content: center; }
.portal-published-unpublish-confirmation .mvc-modal-header h4 { width: 100%; text-align: center; font-weight: 700; }
.portal-published-unpublish-confirmation .mvc-close-button { position: absolute; right: 14px; }
.portal-published-outline-primary, .portal-published-outline-secondary { background: transparent; }
.portal-published-outline-primary { color: #007bff; border-color: #007bff; }
.portal-published-outline-primary:hover { color: #fff; background: #007bff; }
.portal-published-outline-secondary { color: #6c757d; border-color: #6c757d; }
.portal-published-outline-secondary:hover { color: #fff; background: #6c757d; }
.mvc-info-button { border-color: #0f0f8f; background: #000080; }
.mvc-info-button:hover { border-color: #117a8b; background: #138496; }
.mvc-danger-button { border-color: #dc3545; background: #dc3545; }
.mvc-danger-button:hover { border-color: #bd2130; background: #c82333; }
.mvc-button:disabled, .mvc-close-button:disabled { cursor: wait; opacity: .65; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.portal-client-name { color: #3c8dbc; font-weight: 600; text-decoration: none; }
.portal-client-name:hover { color: #367fa9; text-decoration: underline; }
.portal-client-address { max-width: 300px; }
.portal-client-editor-page { max-width: 1280px; }
.portal-client-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.portal-client-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-bottom: 1px solid #f4f4f4; color: #444; background: #fafafa; font-size: 16px; font-weight: 600; }
.portal-client-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; }
.portal-client-form-grid .mvc-form-group { min-width: 0; }
.portal-client-subheading { margin: 20px 0 12px; padding-bottom: 7px; border-bottom: 1px solid #eee; color: #555; font-size: 15px; font-weight: 600; }
.portal-client-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 15px; }
.portal-client-check-grid .mvc-check-row { min-width: 0; }
.portal-client-editor-actions { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 20px; }
.portal-client-editor-actions .mvc-button { text-decoration: none; text-align: center; }
.portal-client-success { margin-bottom: 12px; padding: 10px 12px; border: 1px solid #b3dfbd; border-radius: 3px; color: #155724; background: #d4edda; }
.portal-client-programs { margin-top: 15px; }
.portal-client-program-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.mvc-secondary-button { border-color: #6c757d; background: #fff; color: #6c757d; }
.mvc-secondary-button:hover { color: #fff; background: #6c757d; }
.portal-program-table { min-width: 1000px; }
.portal-program-table td { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mvc-program-editor { width: min(100%, 940px); }
.mvc-work-group-editor { width: min(100%, 760px); }
.portal-work-group-table { min-width: 940px; }
.portal-work-group-swatch { display: inline-block; width: 13px; height: 13px; margin-right: 7px; border: 1px solid #555; border-radius: 2px; vertical-align: -1px; }
/* UserProgram MVC uses one Bootstrap row with two col-md-3 controls.  Keep
   the remaining half of the row empty rather than stretching Client and
   Program to a third of the page; its 15px gutter and form rhythm are part
   of the original desktop layout. */
.portal-user-program-filter-section { margin: 0 15px; }
.portal-user-program-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 -15px; }
.portal-user-program-filters .mvc-form-group { min-width: 0; margin-bottom: 1rem; padding: 0 15px; }
.mvc-sort-button { width: 100%; margin: -10px -8px; padding: 10px 8px; border: 0; color: inherit; background: transparent; font: inherit; font-weight: inherit; text-align: left; cursor: pointer; }
.mvc-sort-button:hover { color: inherit; }
.mvc-sort-button:focus-visible { outline: 3px solid rgba(24, 61, 131, .3); outline-offset: -3px; }

/* OCRHistory's modern filter wrappers draw the source .filter-chevron at
   right:12px/#666; their older local picker rules still used 9px/slate. */
.portal-shell .portal-main .portal-ocr-history-client-filter .portal-selectpicker-caret--fa,
.portal-shell .portal-main .portal-ocr-history-program-filter .portal-multiselect-caret {
    right: 12px;
    color: #666;
}

/* EncounterStatus/_Upsert uses classic Bootstrap-select/multiselect, not the
   modern header's FA chevron. Match the Bootstrap 4 dropdown-toggle triangle
   and its 1rem .btn font, leaving the picker interactions unchanged. */
.portal-shell .portal-main .mvc-modal-content[aria-labelledby="encounter-status-editor-title"] .portal-selectpicker-caret,
.portal-shell .portal-main .mvc-modal-content[aria-labelledby="encounter-status-editor-title"] .portal-multiselect-caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: .255em;
    border-top: .3em solid currentColor;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
    color: inherit;
    font-size: 1rem;
    vertical-align: .255em;
}
.portal-shell .portal-main .mvc-modal-content[aria-labelledby="encounter-status-editor-title"] .portal-selectpicker-caret {
    margin-top: -1px;
}
.portal-shell .portal-main .mvc-modal-content[aria-labelledby="encounter-status-editor-title"] .portal-multiselect-caret::before {
    content: none;
}
.portal-client-full-field { grid-column: 1 / -1; }
.mvc-text-button { padding: 0; border: 0; color: #337ab7; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.mvc-text-button:hover { color: #23527c; text-decoration: underline; }
.mvc-modal-content:has(> .mvc-modal-body > :is(.portal-detail-list, .portal-work-type-detail-list)) { width: min(100%, 650px); }
.mvc-modal-content:has(> .mvc-modal-body > :is(.portal-detail-list, .portal-work-type-detail-list)) .mvc-modal-header { position: relative; justify-content: center; }
.mvc-modal-content:has(> .mvc-modal-body > :is(.portal-detail-list, .portal-work-type-detail-list)) .mvc-modal-header h4 { width: 100%; color: #212529; font-size: 24px; font-weight: 700; text-align: center; }
.mvc-modal-content:has(> .mvc-modal-body > :is(.portal-detail-list, .portal-work-type-detail-list)) .mvc-close-button { position: absolute; right: 20px; }
.mvc-modal-content:has(> .mvc-modal-body > :is(.portal-detail-list, .portal-work-type-detail-list)) .mvc-modal-body { padding: 1rem; }
.mvc-modal-content:has(> .mvc-modal-body > :is(.portal-detail-list, .portal-work-type-detail-list)) .mvc-modal-footer { justify-content: center; }
.mvc-modal-content:has(> .mvc-modal-body > :is(.portal-detail-list, .portal-work-type-detail-list)) .mvc-modal-footer .mvc-button { width: 7rem; min-width: 7rem; height: 2.5rem; }
.portal-detail-list { display: flex; flex-flow: row wrap; width: 100%; margin: 0; padding: 0; list-style: none; }
.portal-detail-list dt, .portal-detail-list dd { box-sizing: border-box; position: relative; display: block; min-width: 0; min-height: 50px; margin: 0 0 -1px; padding: .75rem 1.25rem; border: 1px solid rgba(0, 0, 0, .125); background: #fff; }
.portal-detail-list dt { width: 30%; color: inherit; background: #f5f5f5; font-weight: 400; }
.portal-detail-list dd { width: 70%; overflow-wrap: anywhere; }
.mvc-reference-grid-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .125rem; color: #212529; font-size: 1rem; }
.mvc-data-table-info { padding-top: .85em; white-space: nowrap; }
.mvc-data-table-pagination ul { display: flex; justify-content: flex-end; margin: 2px 0; padding: 0; list-style: none; }
.mvc-data-table-pagination li { margin-left: -1px; list-style: none; }
.mvc-data-table-pagination li:first-child, .mvc-data-table-pagination li:first-child button { margin-left: 0; border-top-left-radius: .25rem; border-bottom-left-radius: .25rem; }
.mvc-data-table-pagination li:last-child button { border-top-right-radius: .25rem; border-bottom-right-radius: .25rem; }
.mvc-data-table-pagination button, .mvc-data-table-pagination span { display: block; min-width: 2.375rem; padding: .5rem .75rem; border: 1px solid #dee2e6; color: #007bff; background: #fff; font: inherit; line-height: 1.5; text-align: center; }
.mvc-data-table-pagination button { cursor: pointer; }
.mvc-data-table-pagination button:hover:not(:disabled):not(.active) { border-color: #dee2e6; color: #0056b3; background-color: #e9ecef; }
.mvc-data-table-pagination button.active { position: relative; z-index: 1; border-color: #007bff; color: #fff; background-color: #007bff; }
.mvc-data-table-pagination button:disabled { border-color: #dee2e6; color: #6c757d; background-color: #fff; cursor: default; }
.mvc-data-table-pagination span { color: #6c757d; cursor: default; }
.portal-color-sample { display: block; min-width: 70px; height: 26px; border: 1px solid rgba(0, 0, 0, .18); border-radius: 2px; }
.portal-clamp-value { display: -webkit-box; max-width: 250px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; text-overflow: ellipsis; white-space: normal; }
.mvc-inline-switch { display: flex; align-items: center; min-height: 50px; margin-left: 12px; }
.mvc-inline-switch .mvc-check-row { margin: 0; color: #000; }
.portal-switch-form-group { display: flex; align-items: end; padding-bottom: 7px; }
.portal-switch-form-group .mvc-check-row { margin: 0; font-weight: 700; }
.portal-alert-preview-wrap { display: grid; justify-items: center; margin-top: 24px; text-align: center; }
.portal-alert-preview-wrap p { margin: 0 0 12px; font-weight: 700; }
.portal-alert-preview { display: flex; align-items: center; width: 70%; gap: 7px; padding: 15px; border-radius: 6px; text-align: left; }
.portal-announcement-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin-bottom: 15px; }
.portal-ocr-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; margin-bottom: 15px; }
.portal-announcement-filters .mvc-form-group { margin: 0; }
.mvc-filter-buttons { display: flex; gap: 8px; padding-bottom: 0; }
@media (max-width: 1200px) { .portal-detail-list dt, .portal-detail-list dd { width: 49%; } }
@media (max-width: 480px) { .portal-detail-list dt, .portal-detail-list dd { width: 100%; } .portal-detail-list dt { margin-bottom: 0; } .portal-detail-list dd { padding-top: 2px; } }
@media (max-width: 600px) { .mvc-content-header { padding: 12px .5rem; } .mvc-table-tools { align-items: flex-start; flex-direction: column; } .mvc-table-tools input { width: min(78vw, 320px); } }
@media (max-width: 800px) { .portal-client-editor-grid, .portal-client-form-grid, .portal-client-check-grid { grid-template-columns: 1fr; } .portal-client-program-heading-actions { justify-content: flex-start; } }
@media (max-width: 800px) { .portal-user-program-filters { grid-template-columns: 1fr; margin: 0; } .portal-user-program-filters .mvc-form-group { padding: 0; } }
@media (max-width: 800px) { .portal-announcement-filters { grid-template-columns: 1fr; } }
@media (max-width: 800px) { .portal-ocr-filters { grid-template-columns: 1fr; } }

/* Live portal overlays are native Blazor components driven by the browser's
   SignalR connection.  They retain the information density of the MVC modals. */
.portal-live-alerts { position: fixed; z-index: 1060; top: .75rem; right: .75rem; left: 17rem; display: grid; gap: .5rem; pointer-events: none; }
.portal-live-alert { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; border-radius: 4px; color: #17202a; box-shadow: 0 3px 12px rgba(0, 0, 0, .2); pointer-events: auto; }
.portal-live-alert button, .portal-close { padding: 0; border: 0; color: inherit; background: transparent; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.portal-live-alert.is-success, .portal-live-alert.is-info { background: #a5d46a; }
.portal-live-alert.is-warning { background: #f39c12; color: #fff; }
.portal-live-alert.is-danger { background: #dc3545; color: #fff; }
.portal-nurse-transfer-modal { width: min(100%, 62rem); }
.portal-transfer-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem 1rem; margin: 0; padding: .9rem; border: 1px solid #d9e1ec; }
.portal-transfer-summary legend { float: none; width: auto; margin: 0; padding: 0 .25rem; color: #183d83; font-size: 1rem; font-weight: 700; }
.portal-transfer-summary div { min-width: 0; overflow-wrap: anywhere; color: #495057; }
.portal-priority { display: inline-block; min-width: 6rem; padding: .2rem .45rem; border: 1px solid rgba(0, 0, 0, .4); border-radius: 12px; text-align: center; }
.portal-transfer-response { color: #183d83 !important; font-weight: 700; }
/* MVC renders CallbackReminder inside a Bootstrap modal-dialog/modal-content
   pair: a black .5 backdrop, a 1000px content surface, a borderless centered
   header, a mx-3 body and the standard modal footer.  Keep this scoped so
   other native SPA dialogs retain their own source-derived geometry. */
.portal-callback-backdrop { background: rgba(0, 0, 0, .5); }
.portal-callback-modal { display: block; width: min(100%, 1000px); padding: 0; border: 1px solid rgba(0, 0, 0, .2); border-radius: .3rem; box-shadow: 0 .25rem .5rem rgba(0, 0, 0, .5); }
.portal-callback-modal header { position: relative; display: flex; align-items: flex-start; justify-content: space-between; min-height: 0; padding: 1rem; border: 0; border-radius: calc(.3rem - 1px) calc(.3rem - 1px) 0 0; }
.portal-callback-modal header h2 { width: 100%; margin: 0; color: #212529; font-size: 1.5rem; font-weight: 700; line-height: 1.2; text-align: center; }
.portal-callback-modal .portal-close { position: static; width: auto; height: auto; padding: 1rem; margin: -1rem -1rem -1rem auto; border-radius: 0; color: #000; background: transparent; text-shadow: 0 1px 0 #fff; opacity: .5; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.portal-callback-modal .portal-close:hover, .portal-callback-modal .portal-close:focus { color: #000; background: transparent; opacity: .75; }
.portal-callback-modal dl { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 2fr); gap: 0 1rem; margin: 0 1rem; padding: 1rem; }
.portal-callback-modal dt, .portal-callback-modal dd { min-height: 1.5rem; padding: 0 0 1rem; color: #212529; line-height: 1.5; }
.portal-callback-modal dt { font-weight: 400; }.portal-callback-modal dd { margin: 0; overflow-wrap: anywhere; }
.portal-callback-modal footer { align-items: center; padding: .75rem; border-top: 1px solid #dee2e6; gap: .5rem; }
.portal-callback-modal footer select { width: auto; min-width: 7.75rem; min-height: calc(1.5em + .75rem + 2px); padding: .375rem .75rem; border: 1px solid #ced4da; border-radius: .25rem; font-size: 1rem; line-height: 1.5; }
.portal-callback-snooze { width: 150px; border: 0; color: #6c757d; background: #fff; }
.portal-callback-snooze:hover:not(:disabled) { color: #fff; background: #6c757d; }
.portal-callback-view { width: 200px; border: 0; color: #183d83; background: #fff; }
.portal-callback-view:hover:not(:disabled) { color: #fff; background: #183d83; }
.portal-callback-dial { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; color: #183d83; background: transparent; font: inherit; text-align: left; text-decoration: underline; cursor: pointer; }
.portal-callback-dial:disabled { color: #6c757d; cursor: wait; text-decoration: none; }
.portal-callback-dial svg { width: .9rem; height: .9rem; flex: 0 0 auto; color: #183d83; }
.portal-callback-dial > svg,
.portal-callback-dial-modal header h2 > svg { display: none; }
.portal-callback-dial:has(> svg)::before,
.portal-callback-dial-modal header h2:has(> svg)::before {
    color: #183d83;
    content: "\f095";
    flex: 0 0 auto;
    font-family: "Font Awesome 5 Free";
    font-size: .9rem;
    font-weight: 900;
    line-height: 1;
}
.portal-callback-dial-modal { width: min(100%, 31rem); }
.portal-callback-dial-modal header { position: relative; display: grid; min-height: 1.8rem; place-items: center; }
.portal-callback-dial-modal header h2 { width: 100%; color: #212529; font-size: 1.25rem; font-weight: 700; text-align: center; }
.portal-callback-dial-modal header h2 svg { width: 1rem; height: 1rem; color: #183d83; vertical-align: -.1rem; }
.portal-callback-dial > i { flex: 0 0 auto; color: #183d83; font-size: .9rem; line-height: 1; }
.portal-callback-dial-modal header h2 > i { margin-right: .25rem; color: #183d83; font-size: 1rem; line-height: 1; vertical-align: -.1rem; }
.portal-callback-dial-modal .portal-close { position: absolute; top: 0; right: 0; color: #000; font-size: 1.9rem; font-weight: 400; }
.portal-callback-dial-modal footer { align-items: center; }
.portal-callback-dial-cancel, .portal-callback-dial-continue { width: 150px; border: 0; background: #fff; }
.portal-callback-dial-cancel { color: #982943; }
.portal-callback-dial-cancel:hover:not(:disabled) { color: #fff; background: #982943; }
.portal-callback-dial-continue { color: #183d83; }
.portal-callback-dial-continue:hover:not(:disabled) { color: #fff; background: #183d83; }
.portal-callback-dial-backdrop { z-index: 1060; }
/* Mirrors the MVC TopNavigation CxOne status pill and dropdown. */
.portal-cxone-controls { position: relative; display: flex; align-items: center; }
.portal-cxone-status { display: inline-flex; align-items: center; width: 250px; padding: 6px 12px; margin: 0; border: 1px solid #ccc; border-radius: 6px; color: #333; background: #fff; font-family: Arial, sans-serif; font-size: 14px; font-weight: 400; text-align: left; text-decoration: none; cursor: pointer; }
.portal-cxone-status-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.portal-cxone-current-reason { margin-left: 4px; color: #666; font-weight: 400; }
.portal-cxone-chevron { width: 12px; flex: 0 0 auto; margin-left: auto; color: #666; font-size: 12px; line-height: 1; text-align: center; }
.portal-cxone-launch { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 33px; padding: 4px 10px; border: 1px solid #003399; border-radius: 3px; color: #444; background: #fff; font-family: Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 1; text-decoration: none; cursor: pointer; }
.portal-cxone-launch:hover { color: #444; background: #f9f9f9; }
.portal-cxone-launch > i { color: #003399; font-size: 13px; line-height: 1; }
.portal-cxone-status:disabled { cursor: not-allowed; opacity: .72; }
.portal-cxone-dot { display: inline-block; width: 10px; height: 10px; flex: 0 0 auto; margin-right: 10px; border-radius: 50%; background: var(--portal-cxone-color, #adb5bd); }
.portal-cxone-menu { position: absolute; z-index: 1062; top: calc(100% + .125rem); left: 0; width: 250px; padding: 10px; border: 0; border-radius: 4px; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.portal-cxone-menu-option { display: block; width: 100%; padding: 0 !important; border: 0; background: transparent !important; font: inherit; text-align: left; cursor: pointer; }
.portal-cxone-choice-pill { display: flex; align-items: center; padding: 6px 12px; margin-bottom: 8px; border: 1px solid #ddd; border-radius: 6px; background: #fff; font-family: Arial, sans-serif; font-size: 14px; font-weight: 400; transition: background .2s; }
.portal-cxone-menu-option.is-available .portal-cxone-choice-pill { border-color: #198754; color: #198754; font-weight: 700; }
.portal-cxone-menu-option.is-available .portal-cxone-dot { background-color: #198754; }
.portal-cxone-menu-option.is-unavailable .portal-cxone-choice-pill { border-color: #e85d46; color: #e85d46; font-weight: 700; }
.portal-cxone-menu-option.is-unavailable .portal-cxone-dot { background-color: #e85d46; }
.portal-cxone-reason { margin-left: 4px; color: #666; font-weight: 400; }
.portal-cxone-menu-option:hover .portal-cxone-choice-pill, .portal-cxone-menu-option:focus .portal-cxone-choice-pill { background-color: #f8f9fa; }
.portal-cxone-menu-option:last-child .portal-cxone-choice-pill { margin-bottom: 0; }
.portal-cxone-menu-option:disabled { cursor: wait; opacity: .6; }
.portal-cxone-error { position: absolute; z-index: 1063; top: calc(100% + .3rem); right: 0; width: max-content; max-width: 18rem; padding: .4rem .55rem; border-radius: 3px; color: #fff; background: #b3261e; font-size: .75rem; }.portal-dialer-modal { width: min(100%, 32rem); }
.portal-dialer-modal header { display: flex; align-items: center; justify-content: space-between; }
.portal-dialer-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #dfe5ec; }
.portal-dialer-tabs button { border: 0; border-bottom: 3px solid transparent; padding: .6rem .3rem; color: #495057; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.portal-dialer-tabs button.is-active { border-bottom-color: #183d83; color: #183d83; }
.portal-dialer-pad { display: grid; gap: .75rem; padding: .8rem 3rem; }
.portal-dialer-pad input { width: 100%; padding: .6rem; border: 1px solid #aebac9; border-radius: 4px; font-size: 1.1rem; text-align: center; }
.portal-dialer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
.portal-dialer-grid button { aspect-ratio: 1; border: 1px solid #cfd7e5; border-radius: 50%; color: #183d83; background: #fff; font: 700 1.35rem inherit; cursor: pointer; }
.portal-dialer-grid button:hover { color: #fff; background: #183d83; }
.portal-dialer-directory { display: grid; gap: .3rem; max-height: 20rem; margin: .8rem 0; padding: 0; overflow-y: auto; list-style: none; }
.portal-dialer-directory li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .55rem; padding: .55rem; border-bottom: 1px solid #edf0f4; }
.portal-dialer-directory li > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 800px) { .portal-live-alerts { left: .75rem; } .portal-transfer-summary { grid-template-columns: 1fr; } }

/* The MVC reference forms share the standard 500px Bootstrap modal, a
   centered action row, and compact .btn geometry.  Keep that legacy surface
   intact inside the native SPA instead of inheriting the newer portal modal. */
.portal-reference-legacy-editor { width: min(100%, 500px); border-radius: .3rem; }
.portal-reference-legacy-editor .mvc-modal-header { position: relative; justify-content: center; padding: 1rem; border-bottom-color: #e9ecef; text-align: center; }
.portal-reference-legacy-editor .mvc-modal-header h4 { width: 100%; font-size: 1.5rem; font-weight: 700; line-height: 1.5; }
.portal-reference-legacy-editor .mvc-close-button { position: absolute; top: 0; right: 0; width: auto; height: auto; padding: 1rem; border-radius: 0; color: #000; background: transparent; text-shadow: 0 1px 0 #fff; opacity: .5; font-size: 0 !important; font-weight: 700; line-height: 1; }
.portal-reference-legacy-editor .mvc-close-button::after { font-size: 1.5rem; }
.portal-reference-legacy-editor .mvc-close-button:hover:not(:disabled), .portal-reference-legacy-editor .mvc-close-button:focus:not(:disabled) { color: #000; background: transparent; opacity: .75; }
.portal-reference-legacy-editor .mvc-modal-body { margin-right: 1rem; margin-left: 1rem; padding: 1rem; }
.portal-reference-legacy-editor .mvc-form-group { margin-bottom: 1rem; }
.portal-reference-legacy-editor .mvc-form-control { min-height: calc(1.5em + .75rem + 2px); padding: .375rem .75rem; border-radius: .25rem; font-size: 1rem; line-height: 1.5; }
.portal-reference-editor-footer-centered { justify-content: center; padding: .75rem; border-top-color: #e9ecef; }
.portal-reference-editor-footer-centered .mvc-button { min-width: 0; padding: .375rem .75rem; border-radius: .25rem; font-size: 1rem; line-height: 1.5; }
.portal-reference-editor-footer-centered .mvc-info-button { border-color: #0f0f8f; background: #000080; }
.portal-reference-editor-footer-centered .mvc-info-button:hover:not(:disabled) { border-color: #117a8b; background: #138496; }
.portal-reference-editor-footer-centered .mvc-danger-button { border-color: #dc3545; background: #dc3545; }
.portal-reference-editor-footer-centered .mvc-danger-button:hover:not(:disabled) { border-color: #bd2130; background: #c82333; }

/* Match the paired arrows in MVC's dataTables.bootstrap4.css, using the
   header's text face and keeping each page's active-state opacity. */
.portal-legacy-surface .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-legacy-surface .mvc-data-table th.mvc-sort-idle::before {
    content: "\2191" !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}
.portal-legacy-surface .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-legacy-surface .mvc-data-table th.mvc-sort-idle::after {
    content: "\2193" !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* The remaining native DataTable variants use the same MVC sort glyphs.  Keep
   only the glyph face/content centralized; each page retains its own geometry,
   active state, filtering, paging, and permission logic. */
.portal-alert-banner-page .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-call-center-page .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-acuity-email-page .portal-acuity-email-table .mvc-sortable::before,
.portal-acuity-page .portal-acuity-table .mvc-sortable::before,
.portal-adc-page .portal-adc-sortable::before,
.portal-reference-client-dar-labels .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-emergency-coverage-page .portal-emergency-coverage-table .mvc-sortable::before,
.portal-client-incidents-page .mvc-data-table th:not(:last-child)::before,
.portal-special-request-page .portal-special-request-table th:not(.mvc-action-header)::before,
.portal-client-workgroup-page .portal-client-workgroup-table .mvc-sortable::before,
.portal-client-enc-status-page .portal-client-enc-status-table .mvc-sortable::before,
.portal-customer-reference-page .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-custom-field-page .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-status-table th:has(.portal-status-sort)::before,
.portal-incident-status-page .portal-incident-status-table .mvc-sortable::before,
.mvc-reference-page.portal-investigation-list .portal-investigation-table th[aria-sort]::before,
.portal-natures-page .portal-natures-table .mvc-sortable::before,
.portal-ocr-history-sortable::before,
.portal-power-bi-configuration-page .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-second-call-rules .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-user-clients .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-reference-user-types .mvc-data-table th:has(.mvc-sort-button)::before,
.portal-call-log-page .portal-call-log-table thead button.portal-call-log-sort::before,
.portal-client-mapping-table th button::before,
.portal-sms-table th:has(.portal-sms-sort)::before {
    content: "\2191" !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}
.portal-alert-banner-page .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-call-center-page .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-acuity-email-page .portal-acuity-email-table .mvc-sortable::after,
.portal-acuity-page .portal-acuity-table .mvc-sortable::after,
.portal-adc-page .portal-adc-sortable::after,
.portal-reference-client-dar-labels .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-emergency-coverage-page .portal-emergency-coverage-table .mvc-sortable::after,
.portal-client-incidents-page .mvc-data-table th:not(:last-child)::after,
.portal-special-request-page .portal-special-request-table th:not(.mvc-action-header)::after,
.portal-client-workgroup-page .portal-client-workgroup-table .mvc-sortable::after,
.portal-client-enc-status-page .portal-client-enc-status-table .mvc-sortable::after,
.portal-customer-reference-page .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-custom-field-page .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-status-table th:has(.portal-status-sort)::after,
.portal-incident-status-page .portal-incident-status-table .mvc-sortable::after,
.mvc-reference-page.portal-investigation-list .portal-investigation-table th[aria-sort]::after,
.portal-natures-page .portal-natures-table .mvc-sortable::after,
.portal-ocr-history-sortable::after,
.portal-power-bi-configuration-page .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-reference-second-call-rules .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-reference-user-clients .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-reference-user-types .mvc-data-table th:has(.mvc-sort-button)::after,
.portal-call-log-page .portal-call-log-table thead button.portal-call-log-sort::after,
.portal-client-mapping-table th button::after,
.portal-sms-table th:has(.portal-sms-sort)::after {
    content: "\2193" !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* Shared DataTables Bootstrap 4 arrow geometry. Page-specific grids retain
   their own widths, sorting handlers and active-state rules. */
.mvc-data-table th:has(.mvc-sort-button) {
    position: relative;
    padding-right: 30px;
}

.mvc-data-table th:has(.mvc-sort-button)::before,
.mvc-data-table th:has(.mvc-sort-button)::after {
    position: absolute;
    bottom: .9em;
    color: #000;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    opacity: .3;
}

.mvc-data-table th:has(.mvc-sort-button)::before {
    right: 1em;
    content: "\2191";
}

.mvc-data-table th:has(.mvc-sort-button)::after {
    right: .5em;
    content: "\2193";
}

.mvc-data-table th:has(.mvc-sort-asc)::before,
.mvc-data-table th:has(.mvc-sort-desc)::after {
    opacity: 1;
}

.mvc-data-table .mvc-sort-indicator {
    display: none;
}

/* Shared encounter sheets now use the Font Awesome controls already shipped
   by the MVC portal. Keep the original 18px SVG footprint so their title
   alignment does not move when rendered inside the web SPA. */
.filter-title > i {
    width: 18px;
    flex: 0 0 18px;
    font-size: 18px;
    line-height: 18px;
    text-align: center;
}

/* The shared MVC-style reference grids use DataTables' page-length control.
   Match its Font Awesome 5 chevron without affecting unrelated page selects. */
.portal-legacy-surface .mvc-reference-grid-tools .mvc-data-table-length {
    display: block;
    position: relative;
}

.portal-legacy-surface .mvc-reference-grid-tools .mvc-data-table-length label {
    display: flex;
    align-items: center;
    color: #6b7280;
    font-weight: 400;
    margin: 0;
}

.portal-legacy-surface .mvc-reference-grid-tools .mvc-data-table-length select {
    padding: 0 24px 0 12px;
    appearance: none;
    background-image: none;
    cursor: pointer;
}

.portal-legacy-surface .mvc-reference-grid-tools .mvc-data-table-length::after {
    content: "\f078";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
    font-size: 12px;
}
