/* ########## GLOBAL STYLES ########## */
.screen-reader-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screening-page { box-sizing: border-box; width: min(100% - 48px, 1380px); margin: 40px auto 90px; color: #303944; }
.screening-page-narrow { max-width: 900px; }
.screening-heading, .screening-section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.screening-heading { margin-bottom: 24px; }
.screening-heading h1, .screening-section-heading h2, .screening-card h2 { margin: 0 0 6px; color: #252a31; }
.screening-heading p, .screening-section-heading p { margin: 0; color: #6b7480; }
.screening-heading-actions { display: flex; align-items: center; gap: 10px; }
.screening-row-actions { display: flex; align-items: center; gap: 6px; }
.screening-primary-button, .screening-secondary-button, .screening-add-button, .screening-edit-button { display: inline-block; box-sizing: border-box; padding: 10px 15px; border-radius: 7px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.screening-primary-button, .screening-add-button, .screening-edit-button { border: 0; background: #087df0; color: #fff; }
.screening-secondary-button { border: 1px solid #cfd6df; background: #fff; color: #4e5968; }
.screening-card, .screening-table-card { margin-bottom: 20px; border: 1px solid #e0e5eb; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(28,39,51,.05); }
.screening-card { padding: 25px; }
.screening-form-grid, .screening-question-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 20px; }
.screening-field, .screening-question-grid > label { display: grid; gap: 7px; color: #495463; font-size: 13px; font-weight: 700; }
.screening-field input:not([type=checkbox]), .screening-field textarea, .screening-question-grid input:not([type=checkbox]), .screening-question-grid textarea, .screening-question-grid select, .screening-preview-level select { box-sizing: border-box; width: 100%; padding: 10px 11px; border: 1px solid #cfd6df; border-radius: 7px; background: #fff; font: inherit; }
.screening-checkbox-field { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; }
.screening-scope-field { grid-column: 1 / -1; }
.screening-scope-field > div { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 13px 14px; border: 1px solid #dce3eb; border-radius: 8px; background: #fafbfc; }
.screening-scope-field > div label { display: flex; align-items: center; gap: 7px; white-space: nowrap; cursor: pointer; }
.screening-form-grid:has(input[name="application_scope"][value="global"]:checked) .screening-role-template-field { display: none; }
.screening-form-actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.screening-table-card { overflow: hidden; }
.screening-table { width: 100%; border-collapse: collapse; }
.screening-table th { padding: 13px 15px; background: #f5f7f9; color: #536071; font-size: 12px; text-align: left; text-transform: uppercase; }
.screening-table td { padding: 16px 15px; border-top: 1px solid #e7ebf0; vertical-align: middle; }
.screening-table td small { display: block; margin-top: 5px; color: #778291; }
.screening-status { padding: 5px 9px; border-radius: 999px; background: #eaf3fd; color: #315a87; font-size: 12px; font-weight: 700; }
.screening-delete-button, .screening-remove-button, .screening-close-button { border: 0; background: transparent; color: #c33434; font: inherit; font-weight: 700; cursor: pointer; }
.screening-row-actions .screening-row-button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 92px; height: 44px; padding: 5px 7px; font-size: 13px; line-height: 1.15; text-align: center; white-space: normal; }
.screening-row-actions .screening-delete-button { border: 1px solid #efcaca; border-radius: 7px; background: #fff; }
.screening-row-actions form { margin: 0; }
.screening-template-list-page { width: min(100% - 40px, 1740px); }
.screening-template-table { table-layout: fixed; }
.screening-template-table th:nth-child(1) { width: 38px; }
.screening-template-table th:nth-child(2) { width: 28%; }
.screening-template-table th:nth-child(3) { width: 18%; }
.screening-template-table th:nth-child(4) { width: 70px; }
.screening-template-table th:nth-child(5) { width: 105px; }
.screening-template-table th:nth-child(6) { width: 510px; }
.screening-select-column { padding-right: 4px !important; text-align: center !important; }
.screening-select-column input, .screening-bulk-toolbar input { width: 17px; height: 17px; cursor: pointer; }
.screening-bulk-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; padding: 10px 14px; border: 1px solid #e0e5eb; border-radius: 9px; background: #fff; }
.screening-bulk-toolbar label { display: flex; align-items: center; gap: 7px; font-weight: 700; cursor: pointer; }
.screening-bulk-toolbar > span { color: #6b7480; font-size: 13px; }
.screening-bulk-delete-button { margin-left: auto; padding: 8px 12px; border: 1px solid #efcaca; border-radius: 7px; background: #fff; }
.screening-bulk-delete-button:disabled { opacity: .45; cursor: not-allowed; }
.screening-template-table .screening-row-actions { justify-content: flex-end; gap: 5px; }
.screening-template-table .screening-row-actions .screening-row-button { width: auto; min-width: 76px; height: 36px; padding: 4px 9px; font-size: 12px; white-space: nowrap; }
.screening-template-table .screening-row-actions .screening-edit-button { min-width: 105px; }
.screening-empty { padding: 45px !important; text-align: center; color: #778291; }
.screening-section-heading { margin-bottom: 20px; }
.screening-question-list { display: grid; gap: 16px; }
.screening-question-card { padding: 18px; border: 1px solid #dce3eb; border-radius: 9px; background: #fafbfc; }
.screening-question-top { display: flex; justify-content: space-between; margin-bottom: 15px; }
.screening-wide { grid-column: 1 / -1; }
.screening-inline { display: flex !important; grid-auto-flow: column; justify-content: start; align-items: center; }
.screening-levels { display: flex; gap: 18px; padding: 12px; border: 1px solid #dce3eb; border-radius: 7px; }
.screening-levels legend { padding: 0 5px; font-size: 13px; font-weight: 700; }
.screening-levels label { text-transform: capitalize; }
.minimum-field small { color: #778291; font-weight: 400; }
.screening-sticky-actions { position: sticky; bottom: 45px; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border: 1px solid #dce3eb; border-radius: 10px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(28,39,51,.12); }
.screening-preview-modal { position: fixed; inset: 0; z-index: 2000; padding: 35px 20px; overflow-y: auto; background: rgba(17,24,39,.55); }
.screening-preview-modal[hidden] { display: none; }
.screening-preview-panel { box-sizing: border-box; width: min(100%, 760px); margin: auto; padding: 26px; border-radius: 12px; background: #fff; }
.screening-preview-level { display: grid; gap: 6px; max-width: 210px; margin-bottom: 24px; font-weight: 700; }
.screening-preview-question { display: grid; gap: 10px; padding: 18px 0; border-top: 1px solid #e5e9ee; }
.screening-preview-control { display: grid; gap: 8px; }
.screening-preview-control input[type=text], .screening-preview-control textarea { box-sizing: border-box; width: 100%; padding: 10px; border: 1px solid #cfd6df; border-radius: 7px; }
.screening-template-summary { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; padding: 14px 18px; border: 1px solid #e0e5eb; border-radius: 10px; background: #fff; box-shadow: 0 5px 14px rgba(28,39,51,.04); }
.screening-template-summary > div { display: grid; gap: 3px; }
.screening-summary-label { color: #778291; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.screening-summary-description { flex: 1; min-width: 0; }
.screening-summary-description span:last-child { overflow: hidden; color: #596575; text-overflow: ellipsis; white-space: nowrap; }
.screening-summary-edit { margin-left: auto; color: #526174; font-size: 13px; font-weight: 700; }
.screening-forms-canvas { position: relative; width: min(100%, 820px); margin: 0 auto 20px; }
.screening-forms-add { position: sticky; top: 90px; float: right; margin-right: -62px; width: 44px; height: 44px; border: 1px solid #d8dee7; border-radius: 8px; background: #fff; color: #087df0; font-size: 30px; line-height: 1; box-shadow: 0 4px 14px rgba(28,39,51,.1); cursor: pointer; }
.screening-forms-question { position: relative; padding: 22px 24px 14px; border-left: 5px solid transparent; background: #fff; }
.screening-forms-question.is-active { border-left-color: #087df0; box-shadow: 0 8px 26px rgba(28,39,51,.1); }
.screening-drag-handle { position: absolute; top: 2px; left: 50%; border: 0; background: transparent; color: #9ca6b2; font-size: 20px; line-height: 1; transform: translateX(-50%); cursor: grab; }
.screening-forms-question.is-dragging { opacity: .5; }
.screening-forms-question-head { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 16px; align-items: start; }
.screening-forms-question-head textarea { box-sizing: border-box; width: 100%; padding: 13px; border: 0; border-bottom: 2px solid #cfd6df; background: #f6f7f9; font: inherit; }
.screening-forms-question-head textarea:focus { border-bottom-color: #087df0; outline: 0; }
.screening-question-type-wrap { display: flex; align-items: center; min-height: 48px; border: 1px solid #d5dbe3; border-radius: 6px; background: #fff; }
.screening-question-type-icon { width: 43px; color: #657180; font-size: 20px; text-align: center; }
.screening-question-type-wrap select { flex: 1; min-width: 0; padding: 13px 36px 13px 3px; border: 0; background: transparent; font: inherit; cursor: pointer; }
.screening-builder { max-width: 1180px; }
.screening-builder .screening-question-list { gap: 18px; }
.screening-builder .screening-forms-question { padding: 26px 28px 20px; border-radius: 12px; box-shadow: 0 5px 18px rgba(28,39,51,.05); }
.screening-builder .screening-forms-question-head { grid-template-columns: minmax(0, 1fr) 260px; }
.screening-builder .screening-question-type-wrap { padding-left: 12px; color: #657180; font-size: 12px; font-weight: 700; }
.role-plan-question-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr); gap: 14px 18px; margin-top: 18px; }
.role-plan-field { display: grid; gap: 6px; color: #536071; font-size: 12px; font-weight: 700; }
.role-plan-field > span { display: flex; justify-content: space-between; gap: 8px; }
.role-plan-field > span small { color: #8a95a3; font-weight: 500; }
.role-plan-field input, .role-plan-field textarea { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid #cfd6df; border-radius: 7px; background: #fff; color: #303944; font: inherit; font-size: 14px; resize: vertical; }
.role-plan-guidance { grid-column: 1 / -1; }
.role-plan-options, .role-plan-scale, .role-plan-minimum { display: none; }
.uses-options .role-plan-options, .uses-scale .role-plan-scale, .uses-minimum .role-plan-minimum { display: grid; }
.uses-options .role-plan-options { grid-column: 1 / -1; }
.role-plan-scale { grid-template-columns: repeat(2, minmax(0, 180px)); gap: 12px; grid-column: 1 / -1; }
.role-plan-minimum { grid-column: 1 / -1; max-width: 520px; }
.screening-forms-question-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; padding-top: 15px; border-top: 1px solid #e5e9ee; }
.screening-forms-question-controls label { display: inline-flex; align-items: center; gap: 6px; color: #465262; font-weight: 600; }
.screening-forms-question-controls .screening-delete-button { margin-left: auto; }
.screening-question-evidence { display: grid; gap: 4px; margin-top: 13px; padding: 10px 12px; border-radius: 7px; background: #f3f7fb; color: #536071; font-size: 12px; }
#role-screening-plan .screening-question-list { gap: 12px; }
#role-screening-plan .screening-forms-question { padding: 0 20px 14px; overflow: hidden; border: 1px solid #dfe5ec; border-radius: 10px; box-shadow: 0 2px 8px rgba(28,39,51,.035); transition: border-color .15s ease, opacity .15s ease; }
#role-screening-plan .screening-forms-question:hover { border-color: #cbd5e0; }
#role-screening-plan .screening-forms-question.is-excluded { opacity: .64; }
#role-screening-plan .role-plan-card-toolbar { display: flex; align-items: center; min-height: 38px; margin: 0 -20px 14px; padding: 0 14px; border-bottom: 1px solid #edf0f4; background: #fbfcfd; }
#role-screening-plan .screening-drag-handle { position: static; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 30px; padding: 0; color: #8d99a7; font-size: 18px; transform: none; }
#role-screening-plan .screening-question-number { margin-left: 3px; color: #647184; font-size: 12px; font-weight: 700; }
#role-screening-plan .role-plan-card-toolbar .screening-status { margin-left: 10px; padding: 3px 8px; font-size: 11px; }
#role-screening-plan .role-plan-card-toolbar .screening-delete-button { margin-left: auto; padding: 6px 2px 6px 10px; font-size: 12px; }
#role-screening-plan .screening-forms-question-head { grid-template-columns: minmax(0, 1fr) 210px; gap: 14px; }
#role-screening-plan .role-plan-prompt { min-width: 0; }
#role-screening-plan .screening-forms-question-head textarea { min-height: 72px; padding: 10px 11px; border: 1px solid #cfd6df; border-radius: 7px; background: #fff; line-height: 1.4; }
#role-screening-plan .screening-forms-question-head textarea:focus { border-color: #087df0; box-shadow: 0 0 0 2px rgba(8,125,240,.1); }
#role-screening-plan .screening-forms-question-head textarea[readonly],
#role-screening-plan .role-plan-field textarea[readonly],
#role-screening-plan .role-plan-field input[readonly] { background: #fafbfc; }
#role-screening-plan .screening-question-type-wrap { display: grid; align-content: start; gap: 6px; min-height: 0; border: 0; background: transparent; color: #536071; font-size: 12px; font-weight: 700; }
#role-screening-plan .screening-question-type-wrap select { box-sizing: border-box; width: 100%; min-height: 42px; padding: 9px 34px 9px 11px; border: 1px solid #cfd6df; border-radius: 7px; background-color: #fff; color: #303944; font-size: 14px; font-weight: 500; }
#role-screening-plan .role-plan-question-fields { display: block; margin-top: 12px; }
#role-screening-plan .role-plan-field { gap: 5px; }
#role-screening-plan .role-plan-field input,
#role-screening-plan .role-plan-field textarea { padding: 9px 11px; line-height: 1.4; }
#role-screening-plan .role-plan-guidance textarea { min-height: 54px; }
#role-screening-plan .role-plan-options,
#role-screening-plan .role-plan-scale,
#role-screening-plan .role-plan-minimum { margin-top: 12px; }
#role-screening-plan .screening-forms-question-controls { gap: 8px 18px; margin: 14px -20px 0; padding: 11px 20px 0; border-top: 1px solid #edf0f4; }
#role-screening-plan .screening-forms-question-controls label { gap: 7px; color: #526071; font-size: 13px; }
#role-screening-plan .screening-forms-question-controls input { width: 16px; height: 16px; margin: 0; }
#role-screening-plan .screening-question-evidence { display: block; margin: 11px -6px 0; padding: 0; border: 0; background: transparent; color: #647184; }
#role-screening-plan .screening-question-evidence summary { width: max-content; padding: 4px 6px; color: #5a687a; font-size: 12px; font-weight: 700; cursor: pointer; }
#role-screening-plan .screening-question-evidence summary:hover { color: #315a87; }
#role-screening-plan .screening-question-evidence > div { display: grid; gap: 5px; margin-top: 5px; padding: 9px 11px; border-radius: 7px; background: #f5f8fb; line-height: 1.4; }
.screening-coverage-card { margin-bottom: 20px; padding: 22px 24px; border: 1px solid #dce3eb; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(28,39,51,.05); }
.screening-coverage-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 14px; }
.screening-coverage-heading h2 { margin: 4px 0 0; font-size: 19px; }
.screening-coverage-heading > span { color: #778291; font-size: 13px; }
.screening-coverage-list { display: grid; gap: 8px; }
.screening-coverage-row { display: grid; grid-template-columns: 115px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 11px 13px; border: 1px solid #e1e6ec; border-radius: 8px; }
.screening-coverage-row small { display: block; margin-top: 3px; color: #7a8593; }
.screening-coverage-state { font-size: 12px; font-weight: 800; }
.screening-coverage-row.is-covered .screening-coverage-state { color: #247447; }
.screening-coverage-row.is-uncovered { border-color: #e8c6c1; background: #fff8f7; }
.screening-coverage-row.is-uncovered .screening-coverage-state { color: #b43d32; }
.screening-coverage-row.is-partial { border-color: #dcc98f; background: #fffaf0; }
.screening-coverage-row.is-partial .screening-coverage-state { color: #88640d; }
.screening-coverage-row.is-waived .screening-coverage-state { color: #88640d; }
.screening-waiver { display: inline-flex; align-items: center; gap: 6px; color: #5d6876; font-size: 12px; font-weight: 700; }
.ai-generation-progress { position: fixed; right: 24px; bottom: 24px; z-index: 1500; box-sizing: border-box; width: min(420px, calc(100vw - 32px)); padding: 19px 20px; border: 1px solid #bcd8f3; border-radius: 12px; background: #fff; box-shadow: 0 16px 42px rgba(22,49,78,.22); }
.ai-generation-progress[hidden] { display: none; }
.ai-generation-progress-head { display: flex; align-items: center; gap: 13px; }
.ai-generation-progress-head > div { display: grid; gap: 3px; }
.ai-generation-progress-head strong { color: #24384d; font-size: 15px; }
.ai-generation-progress-head span:not(.ai-generation-spinner) { color: #718096; font-size: 12px; }
.ai-generation-spinner { flex: 0 0 auto; width: 24px; height: 24px; box-sizing: border-box; border: 3px solid #d9e9f8; border-top-color: #087df0; border-radius: 50%; animation: interview-spin .8s linear infinite; }
.ai-generation-track { height: 4px; margin: 15px 0 13px; overflow: hidden; border-radius: 999px; background: #e8f0f7; }
.ai-generation-track span { display: block; width: 42%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #087df0, #55a8f8); animation: ai-generation-track 1.5s ease-in-out infinite; }
.ai-generation-progress p { margin: 0 0 8px; color: #435164; font-size: 13px; line-height: 1.45; }
.ai-generation-progress small { display: block; color: #778291; line-height: 1.4; }
.ai-generation-progress.is-complete { border-color: #a8d6bb; }
.ai-generation-progress.is-complete .ai-generation-spinner { border-color: #cce8d7; border-top-color: #258451; animation: none; }
.ai-generation-progress.is-failed { border-color: #e4b8b3; }
.ai-generation-progress.is-failed .ai-generation-spinner { border-color: #f0d3d0; border-top-color: #b43d32; animation: none; }
.screening-generation-result { display: grid; gap: 4px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #bcd8f3; border-radius: 9px; background: #f4f9fe; color: #3f5266; }
.screening-generation-result.is-failed { border-color: #e4b8b3; background: #fff5f4; color: #7e342d; }
.screening-generation-result.is-warning { border-color: #dcc98f; background: #fffaf0; color: #735a19; }
.screening-generation-result span { font-size: 13px; line-height: 1.45; }
@keyframes ai-generation-track { from { transform: translateX(-105%); } to { transform: translateX(245%); } }
.screening-forms-answer-settings { display: grid; gap: 15px; margin-top: 18px; }
.screening-forms-answer-settings [hidden] { display: none !important; }
.screening-forms-answer-settings label { display: grid; gap: 6px; color: #596575; font-size: 12px; font-weight: 700; }
.screening-forms-answer-settings input, .screening-forms-answer-settings textarea { box-sizing: border-box; width: 100%; padding: 10px 11px; border: 1px solid #cfd6df; border-radius: 6px; font: inherit; }
.answer-preview { display: grid; gap: 14px; padding: 10px 0 18px; color: #778291; }
.answer-preview label { display: flex; grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; color: #495463; font-size: 14px; font-weight: 400; }
.screening-answer-line { display: block; width: 55%; padding-bottom: 7px; border-bottom: 1px dotted #aeb7c2; }
.screening-answer-line-long { width: 80%; }
.screening-option-list { display: grid; gap: 8px; }
.screening-option-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 32px; align-items: center; gap: 8px; }
.screening-option-marker { display: inline-block; box-sizing: border-box; width: 20px; height: 20px; border: 2px solid #aeb7c2; border-radius: 50%; }
.screening-option-row input { padding: 9px 3px !important; border: 0 !important; border-bottom: 1px solid transparent !important; border-radius: 0 !important; }
.screening-option-row input:focus { border-bottom-color: #087df0 !important; outline: 0; }
.screening-option-row button { border: 0; background: transparent; color: #707b88; font-size: 24px; cursor: pointer; }
.screening-add-option { margin: 8px 0 0 32px; padding: 5px 0; border: 0; background: transparent; color: #087df0; font: inherit; font-weight: 700; cursor: pointer; }
.scale-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.screening-forms-question-footer { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 18px; padding-top: 13px; border-top: 1px solid #e7ebf0; }
.screening-forms-question-footer .question-number { margin-right: auto; color: #778291; font-size: 12px; }
.screening-icon-button { border: 0; background: transparent; color: #536071; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.screening-footer-divider { width: 1px; height: 25px; background: #dce2e9; }
.screening-preview-page { max-width: 900px; }
.screening-preview-form { display: grid; gap: 15px; padding: 28px; border-top: 8px solid #087df0; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(28,39,51,.08); }
.screening-preview-description { margin: 0; color: #536071; font-size: 16px; }
.screening-preview-instructions { padding: 14px; border-radius: 7px; background: #f5f7f9; color: #536071; }
.screening-preview-instructions p { margin: 0; }
.screening-preview-question-card { display: grid; gap: 10px; padding: 20px; border: 1px solid #e0e5eb; border-radius: 9px; }
.screening-preview-question-card > label { color: #252a31; font-weight: 700; }
.screening-preview-question-card > label span { color: #c33434; }
.screening-preview-question-card > p { margin: 0; color: #778291; font-size: 13px; }
.screening-preview-question-card > input, .screening-preview-question-card > textarea { box-sizing: border-box; width: 100%; padding: 11px; border: 1px solid #cfd6df; border-radius: 6px; background: #fafbfc; }
.screening-preview-options { display: grid; gap: 9px; }
.screening-preview-scale { display: flex; align-items: center; gap: 12px; }
@media (max-width: 760px) {
    .screening-page { width: min(100% - 24px, 1380px); margin-top: 24px; }
    .screening-heading, .screening-section-heading, .screening-heading-actions { flex-direction: column; width: 100%; }
    .screening-form-grid, .screening-question-grid { grid-template-columns: 1fr; }
    .screening-wide { grid-column: auto; }
    .screening-table thead { display: none; }
    .screening-table, .screening-table tbody, .screening-table tr, .screening-table td { display: block; width: 100%; box-sizing: border-box; }
    .screening-table tr { padding: 12px 16px; border-top: 1px solid #e7ebf0; }
    .screening-table td { display: grid; grid-template-columns: 90px minmax(0,1fr); padding: 8px 0; border: 0; }
    .screening-table td::before { content: attr(data-label); color: #778291; font-size: 12px; font-weight: 700; text-transform: uppercase; }
    .screening-template-list-page { width: min(100% - 24px, 1740px); }
    .screening-template-table { table-layout: auto; }
    .screening-template-table .screening-row-actions { justify-content: flex-start; flex-wrap: wrap; }
    .screening-bulk-toolbar { flex-wrap: wrap; }
    .screening-template-summary { align-items: flex-start; flex-wrap: wrap; }
    .screening-summary-description { flex-basis: 100%; order: 3; }
    .screening-forms-add { position: static; float: none; display: block; margin: 0 auto 14px; }
    .screening-forms-question-head { grid-template-columns: 1fr; }
    #role-screening-plan .screening-forms-question { padding-right: 14px; padding-left: 14px; }
    #role-screening-plan .role-plan-card-toolbar { margin-right: -14px; margin-left: -14px; }
    #role-screening-plan .screening-forms-question-head { grid-template-columns: 1fr; }
    #role-screening-plan .screening-forms-question-controls { margin-right: -14px; margin-left: -14px; padding-right: 14px; padding-left: 14px; }
    .role-plan-question-fields { grid-template-columns: 1fr; }
    .screening-coverage-row { grid-template-columns: 1fr; }
    .screening-sticky-actions { flex-wrap: wrap; gap: 10px; }
    .ai-generation-progress { right: 16px; bottom: 16px; }
    .screening-forms-question-footer { flex-wrap: wrap; }
}

/* Security access control */
.security-page { max-width: 1500px; margin: 0 auto; padding: 28px; color: #263342; }
.security-heading { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 22px; }
.security-heading span { color: #0878df; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.security-heading h1 { margin: 6px 0; font-size: 34px; }
.security-heading p { margin: 0; color: #66758a; }
.security-heading > a { border: 1px solid #cdd8e5; border-radius: 9px; padding: 11px 15px; color: #185a96; text-decoration: none; background: #fff; }
.security-heading-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.security-heading-actions a { border: 1px solid #cdd8e5; border-radius: 9px; padding: 11px 15px; color: #185a96; text-decoration: none; background: #fff; }
.security-layout { display: grid; grid-template-columns: minmax(245px, 310px) minmax(0, 1fr); gap: 20px; align-items: start; }
.security-capabilities, .security-users { background: #fff; border: 1px solid #d9e3ee; border-radius: 14px; box-shadow: 0 8px 22px rgba(34, 61, 91, .07); }
.security-capabilities { padding: 16px; max-height: calc(100vh - 190px); overflow: auto; position: sticky; top: 112px; }
.security-capabilities h2 { margin: 14px 8px 6px; font-size: 15px; }
.security-capabilities h3 { margin: 12px 8px 5px; color: #718096; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.security-capabilities a { display: block; padding: 10px; border-radius: 9px; color: #27384a; text-decoration: none; }
.security-capabilities a:hover { background: #eef6ff; }
.security-capabilities a.is-selected { background: #0878df; color: #fff; }
.security-capabilities a strong, .security-capabilities a small { display: block; }
.security-capabilities a small { margin-top: 3px; opacity: .78; line-height: 1.3; }
.security-users { padding: 20px; min-width: 0; }
.security-selection { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.security-selection span { color: #0878df; font-weight: 700; }
.security-selection h2 { margin: 4px 0; }
.security-selection p { margin: 0; color: #66758a; }
.security-count { padding: 8px 12px; border-radius: 999px; background: #eef6ff; color: #0878df; white-space: nowrap; font-weight: 700; }
.security-filters { display: grid; grid-template-columns: minmax(220px, 1fr) 170px auto; gap: 10px; margin: 20px 0; }
.security-filters input, .security-filters select, .security-filters button { min-height: 43px; border: 1px solid #ccd8e5; border-radius: 8px; padding: 9px 11px; background: #fff; }
.security-filters button { background: #0878df; border-color: #0878df; color: #fff; font-weight: 700; }
.security-actions { display: flex; align-items: center; gap: 10px; padding: 12px; background: #f6f9fc; border-radius: 10px; margin-bottom: 14px; }
.security-actions button { border: 0; border-radius: 8px; padding: 10px 14px; color: #fff; font-weight: 700; }
.security-grant { background: #198754; }
.security-revoke { background: #b42318; }
.security-actions span { margin-left: auto; color: #697789; font-size: 12px; max-width: 390px; }
.security-table-wrap { overflow-x: auto; border: 1px solid #dbe4ed; border-radius: 10px; }
.security-table-wrap table { width: 100%; border-collapse: collapse; }
.security-table-wrap th { background: #f1f5f9; color: #526277; text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.security-table-wrap th, .security-table-wrap td { padding: 12px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.security-table-wrap td small { display: block; margin-top: 3px; color: #718096; }
.security-pill { display: inline-block; padding: 5px 9px; border-radius: 999px; background: #f2f4f7; color: #667085; font-size: 12px; font-weight: 700; }
.security-pill.is-active, .security-pill.is-allowed { background: #e8f7ed; color: #15783a; }
.security-add-modal[hidden] { display: none; }
.security-add-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px; }
.security-add-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(20, 32, 48, .55); }
.security-add-modal > section { position: relative; width: min(680px, 100%); max-height: min(760px, calc(100vh - 48px)); overflow: hidden; display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: 0 22px 60px rgba(15, 23, 42, .3); }
.security-add-heading { display: flex; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid #dbe4ed; }
.security-add-heading span { color: #0878df; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.security-add-heading h2 { margin: 4px 0; }
.security-add-heading p { margin: 0; color: #66758a; }
.security-add-heading > button { border: 0; background: transparent; font-size: 28px; color: #64748b; }
.security-add-modal form { min-height: 0; display: flex; flex-direction: column; }
.security-add-list { overflow: auto; padding: 10px 24px; }
.security-add-list label { display: flex; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid #e5ebf2; }
.security-add-list label span, .security-add-list label small { display: block; }
.security-add-list label small { color: #718096; margin-top: 2px; }
.security-add-footer, .security-template-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid #dbe4ed; }
.security-add-footer button, .security-template-footer button { border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 15px; font-weight: 700; }
.security-add-footer .security-grant, .security-template-footer button { background: #0878df; border-color: #0878df; color: #fff; }
.security-modal-open { overflow: hidden; }
.security-template-card { background: #fff; border: 1px solid #d9e3ee; border-radius: 14px; box-shadow: 0 8px 22px rgba(34,61,91,.07); overflow: hidden; }
.security-template-selector { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid #dbe4ed; }
.security-template-selector label { font-weight: 700; }
.security-template-selector select { min-width: 260px; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; }
.security-template-meta { display: flex; justify-content: space-between; gap: 20px; padding: 20px 24px; background: #f7fafc; }
.security-template-meta strong, .security-template-meta span { display: block; }
.security-template-meta span, .security-template-meta p { color: #66758a; }
.security-template-meta p { margin: 0; }
.security-template-sections > section { padding: 22px 24px; border-bottom: 1px solid #e2e8f0; }
.security-template-sections h2 { margin: 0 0 14px; font-size: 18px; }
.security-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.security-template-grid label { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #dbe4ed; border-radius: 9px; }
.security-template-grid span, .security-template-grid small { display: block; }
.security-template-grid small { color: #718096; margin-top: 3px; }
.security-template-grid .security-template-dependency { color: #0878df; }
.security-template-footer > span { margin-right: auto; color: #66758a; }
.three_p_users-access-template-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #cfe1f1; border-radius: 10px; background: #f4f9fd; }
.three_p_users-access-template-summary strong, .three_p_users-access-template-summary small { display: block; }
.three_p_users-access-template-summary small { margin-top: 4px; color: #617187; }
@media (max-width: 900px) { .security-layout { grid-template-columns: 1fr; } .security-capabilities { position: static; max-height: 360px; } .security-filters { grid-template-columns: 1fr; } .security-actions { align-items: stretch; flex-direction: column; } .security-actions span { margin-left: 0; } }
@media (max-width: 900px) { .security-template-grid { grid-template-columns: 1fr; } .security-template-meta { flex-direction: column; } }

/* Shared operational workspace */
.ops-page {
    box-sizing: border-box;
    width: min(1440px, calc(100% - 40px));
    margin: 34px auto 80px;
    color: #202b3c;
}
.ops-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}
.ops-page-heading h1,
.ops-page > h1 {
    margin: 5px 0 6px;
    color: #172033;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.12;
    letter-spacing: -.025em;
}
.ops-page-heading p,
.ops-form-intro {
    max-width: 720px;
    margin: 0;
    color: #68758a;
    font-size: 14px;
    line-height: 1.5;
}
.ops-page-eyebrow {
    color: #087fcb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.ops-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #e0e6ee;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(32, 50, 74, .05);
}
.ops-toolbar label { color: #4a566a; font-size: 12px; font-weight: 750; }
.ops-toolbar select,
.ops-toolbar input {
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #d7dee8;
    border-radius: 7px;
    background: #fff;
    color: #263246;
}
.ops-form-card {
    padding: 24px;
    border: 1px solid #e0e6ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(32, 50, 74, .06);
}
.ops-page :is(.attendance-table, .attendance-hr-table, .attendance-client-table, .attendance-payments-table, .holidays-list-table, #payments-table, #manualTsForm table) {
    width: 100%;
    overflow: hidden;
    border: 1px solid #e0e6ee;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(32, 50, 74, .06);
}
.ops-page :is(.attendance-table, .attendance-hr-table, .attendance-client-table, .attendance-payments-table, .holidays-list-table, #payments-table, #manualTsForm table) th {
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid #dce4ed;
    background: #f2f6fa;
    color: #526075;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .045em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}
.ops-page :is(.attendance-table, .attendance-hr-table, .attendance-client-table, .attendance-payments-table, .holidays-list-table, #payments-table, #manualTsForm table) td {
    padding: 14px;
    border: 0;
    border-bottom: 1px solid #e8edf3;
    color: #3f4b5e;
    font-size: 12px;
    line-height: 1.45;
    vertical-align: middle;
}
.ops-page :is(.attendance-table, .attendance-hr-table, .attendance-client-table, .attendance-payments-table, .holidays-list-table, #payments-table, #manualTsForm table) tbody tr:last-child td { border-bottom: 0; }
.ops-page :is(.attendance-table, .attendance-hr-table, .attendance-client-table, .attendance-payments-table, .holidays-list-table, #payments-table) tbody tr:hover { background: #f8fbfd; }
.ops-page :is(button, .btn, .holidays-list-btn) { border-radius: 7px; font-weight: 700; }
.ops-page :is(.btn-primary, .holidays-list-btn, #generateBtn) {
    padding: 10px 15px;
    border: 0;
    background: #087fcb;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}
.ops-page .attendance-badge {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}
.ops-page .table-container { overflow-x: auto; border-radius: 11px; }
.ops-page.upload-timesheet-container,
.ops-page.holidays-form-container { display: block; }
.ops-page .upload-timesheet-card,
.ops-page.holidays-form-container .holidays-form {
    box-sizing: border-box;
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 28px;
    border: 1px solid #e0e6ee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(32, 50, 74, .08);
}
.ops-page .upload-timesheet-title,
.ops-page.holidays-form-container h1 { margin: 6px 0 8px; color: #172033; }
.ops-page .upload-timesheet-section {
    margin-top: 20px;
    padding: 18px;
    border: 1px solid #e5eaf0;
    border-radius: 9px;
    background: #fafbfd;
}
.ops-page .esigning-pdf-viewer {
    overflow: hidden;
    padding: 12px;
    border: 1px solid #dfe5ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(32, 50, 74, .06);
}
.ops-page .esigning-upload-section {
    margin-top: 18px;
    padding: 20px;
    border: 1px solid #e0e6ee;
    border-radius: 11px;
    background: #fff;
}
@media (max-width: 760px) {
    .ops-page { width: calc(100% - 24px); margin-top: 20px; }
    .ops-page-heading,
    .ops-toolbar { align-items: stretch; flex-direction: column; }
    .ops-page :is(.attendance-table, .attendance-hr-table, .attendance-client-table, .attendance-payments-table, .holidays-list-table, #payments-table, #manualTsForm table) { display: block; overflow-x: auto; }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.layout-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ########## LANDING PAGE ########## */
.landing-page-body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8; /* Light background for the page */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.landing-page-header {
    background-color: #fcfffd; /* Blue header background */
    padding: 20px;
    text-align: center;
}

.landing-page-logo {
    max-height: 80px;
    height: 50px;
    width: auto;
}

.landing-page-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.landing-page-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.landing-page-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-page-link {
    color: #007bff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

.landing-page-link:hover {
    text-decoration: underline;
}

.landing-page-footer {
    background-color: #f8f9fa; /* Light gray footer background */
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #6c757d;
}

/* ########## HEADER ########## */

.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* Ensure the header spans the viewport width */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4f4f4f; /* Lighter background */
    color: white;
    padding: 10px 20px;
    z-index: 1000; /* Ensure the header is above other elements */
    box-sizing: border-box; /* Includes padding in the width calculation */
    overflow: hidden; /* Prevents content from spilling out */
}

.modern-header .header-left .company-logo {
    height: 50px;
}

.modern-header .header-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Add consistent spacing between elements */
    flex-wrap: wrap; /* Allow wrapping of elements if they overflow */
    max-width: calc(100% - 100px); /* Prevent overflowing beyond a safe width */
    justify-content: flex-end; /* Aligns items to the right */
}

.modern-header .user-info {
    color: #000000;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* Prevent wrapping of user info text */
    /*max-width: 150px; /* Prevent the user info from occupying too much space */
}

.modern-header .header-icon {
    background-color: transparent; /* Ensure no background color */
    height: 30px;
    width: 30px;
    cursor: pointer;
}

.modern-header .header-icon img {
    width: 24px;
    height: 24px;
}
.status-banner-stack { position: fixed; top: 78px; right: 20px; z-index: 3000; display: grid; gap: 10px; width: min(420px, calc(100vw - 40px)); pointer-events: none; }
.status-banner { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid #cbd9e8; border-left: 4px solid #3978b8; border-radius: 8px; background: #f5f9fd; color: #24496d; font-size: 14px; font-weight: 600; line-height: 1.35; box-shadow: 0 10px 28px rgba(28,39,51,.16); opacity: 1; transform: translateX(0); transition: opacity .22s ease, transform .22s ease; pointer-events: auto; }
.status-banner-success { border-color: #b9dfc8; border-left-color: #23824b; background: #f0faf4; color: #176238; }
.status-banner-error { border-color: #efc4c4; border-left-color: #c93636; background: #fff4f4; color: #9f2525; }
.status-banner-warning { border-color: #ecd99d; border-left-color: #c58a12; background: #fff9e8; color: #805b0e; }
.status-banner-close { flex: 0 0 auto; padding: 0; border: 0; background: transparent; color: currentColor; font-size: 20px; line-height: 1; cursor: pointer; opacity: .7; }
.status-banner-close:hover { opacity: 1; }
.status-banner-hiding { opacity: 0; transform: translateX(24px); }
@media (max-width: 600px) { .status-banner-stack { top: 70px; right: 12px; width: calc(100vw - 24px); } }

/* Shared assignment and work order forms */
.entity-form-page { box-sizing: border-box; width: min(100% - 48px, 1120px); margin: 40px auto 90px; }
.entity-form-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.entity-form-heading h1 { margin: 0 0 6px; color: #252a31; font-size: 32px; }
.entity-form-heading p, .entity-section-heading p { margin: 0; color: #6b7480; }
.entity-back-link, .entity-secondary-button { padding: 10px 14px; border: 1px solid #cfd6df; border-radius: 7px; background: #fff; color: #4e5968; font-weight: 700; text-decoration: none; white-space: nowrap; }
.entity-form-card { padding: 28px; border: 1px solid #e0e5eb; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(28, 39, 51, .05); }
.entity-section-heading { margin-bottom: 22px; }
.entity-section-heading h2 { margin: 0 0 5px; color: #252a31; font-size: 19px; }
.entity-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; }
.entity-form-grid .assignments-form-group, .entity-form-grid .edit-assignment-form-group, .entity-form-grid .workorders-form-group { display: flex; flex-direction: column; gap: 7px; }
.entity-form-grid label { margin: 0; color: #495463; font-size: 13px; font-weight: 700; }
.entity-form-grid input:not([type="checkbox"]), .entity-form-grid select, .entity-form-grid textarea { box-sizing: border-box; width: 100%; padding: 11px 12px; border: 1px solid #cfd6df; border-radius: 7px; background: #fff; color: #303944; font: inherit; }
.entity-form-grid textarea { min-height: 92px; resize: vertical; }
.entity-form-grid .workorders-skill-rate-field { grid-column: span 2; }
.entity-form-grid .workorders-rate-override-toggle { justify-content: center; padding: 10px 12px; border: 1px solid #d8e2ec; border-radius: 8px; background: #f7fafc; }
.entity-form-grid .workorders-rate-override-toggle label { display: flex; align-items: center; gap: 8px; }
.entity-form-grid .workorders-rate-override-toggle input { width: auto; }
.entity-form-grid .workorders-rate-override-toggle small { color: #68778a; font-size: 11px; line-height: 1.45; }
.entity-form-grid .workorders-rate-override-reason { grid-column: span 2; }
.entity-form-grid .workorders-rate-override-reason[hidden] { display: none; }
.entity-toggle-field { grid-column: span 2; }
.entity-toggle { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid #e0e5eb; border-radius: 8px; cursor: pointer; }
.entity-toggle input { margin-top: 3px; }
.entity-toggle span { display: grid; gap: 3px; }
.entity-toggle small { color: #778291; font-weight: 400; }
.entity-form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #e7ebf0; }
.entity-primary-button { padding: 11px 18px; border: 0; border-radius: 7px; background: #087df0; color: #fff; font-weight: 700; cursor: pointer; }
.entity-primary-button:hover { background: #0569cb; }
.entity-primary-button:disabled { cursor: wait; opacity: .72; }
.entity-button-spinner { display: inline-block; width: 12px; height: 12px; margin-right: 7px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: entity-button-spin .7s linear infinite; }
.entity-button-spinner[hidden] { display: none; }
@keyframes entity-button-spin { to { transform: rotate(360deg); } }
.entity-response-message { margin-top: 16px; padding: 0 4px; }

/* Work order list */
.workorders-page { box-sizing: border-box; width: min(100% - 48px, 1500px); margin: 40px auto 90px; }
.workorders-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.workorders-page-heading h1 { margin: 0 0 6px; color: #252a31; font-size: 32px; }
.workorders-page-heading p { margin: 0; color: #6b7480; }
.workorders-heading-actions { display: flex; gap: 12px; }
.workorders-back-link, .workorders-primary-button { padding: 10px 14px; border-radius: 7px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.workorders-back-link { border: 1px solid #cfd6df; color: #4e5968; background: #fff; }
.workorders-primary-button { color: #fff; background: #087df0; }
.workorders-filter-card { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; padding: 20px; border: 1px solid #e0e5eb; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(28, 39, 51, .04); }
.workorders-filter-field { display: grid; gap: 7px; min-width: 210px; }
.workorders-filter-field label { color: #536071; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.workorders-filter-field select { padding: 10px 12px; border: 1px solid #cfd6df; border-radius: 7px; background: #fff; }
.workorders-filter-button, .workorders-edit-button { padding: 11px 16px; border: 0; border-radius: 7px; background: #087df0; color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; }
.workorders-table-card { overflow: hidden; border: 1px solid #e0e5eb; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(28, 39, 51, .05); }
.workorders-table-summary { display: flex; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #e7ebf0; color: #687586; }
.workorders-table-summary strong { color: #252a31; }
.workorders-table-scroll { overflow-x: auto; }
.workorders-table-modern { width: 100%; border-collapse: collapse; }
.workorders-table-modern th { padding: 13px 15px; background: #f5f7f9; color: #536071; font-size: 12px; text-align: left; text-transform: uppercase; }
.workorders-table-modern td { padding: 16px 15px; border-top: 1px solid #e7ebf0; color: #374151; font-size: 14px; vertical-align: middle; }
.workorders-table-modern td small { display: block; margin-top: 5px; color: #778291; }
.workorders-status, .workorders-deadline { display: inline-flex; margin-top: 7px; padding: 5px 9px; border-radius: 999px; background: #eaf3fd; color: #315a87; font-size: 12px; font-weight: 700; }
.workorders-deadline-overdue { color: #9c3131; background: #fdeaea; }
.workorders-deadline-urgent { color: #986b00; background: #fff5c7; }
.workorders-deadline-warning { color: #9a5b08; background: #fff0d8; }
.workorders-estimate-details { display: flex; align-items: center; gap: 7px; margin-top: 5px; }
.workorders-table-modern td .workorders-estimate-details small { margin-top: 0; }
.workorders-breakdown-button { display: inline-flex; flex: 0 0 24px; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 1px solid #b9d7f2; border-radius: 50%; background: #fff; color: #087df0; font: inherit; font-size: 13px; font-weight: 800; line-height: 1; cursor: pointer; }
.workorders-breakdown-button:hover, .workorders-breakdown-button:focus-visible { border-color: #087df0; background: #eaf3fd; outline: none; }
.workorders-row-actions { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; min-width: 154px; }
.workorders-edit-button,
.workorders-delete-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 40px;
    padding: 11px 16px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}
.workorders-delete-button { background: #c93636; }
.workorders-row-actions form { margin: 0; }
.workorders-draft-delete-button { min-height: 40px; padding: 10px 14px; border: 1px solid #e4bcbc; border-radius: 7px; background: #fff; color: #b42318; font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; }
.workorders-draft-delete-button:hover, .workorders-draft-delete-button:focus-visible { border-color: #c93636; background: #fff4f3; outline: none; }
.workorders-draft-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; border-color: #edceca; }
.workorders-draft-danger-zone h2 { margin: 0 0 5px; color: #7f1d1d; font-size: 17px; }
.workorders-draft-danger-zone p { margin: 0; color: #6f5960; font-size: 13px; }
.workorders-draft-danger-zone form { flex: 0 0 auto; }
.workorders-empty-row { padding: 45px !important; text-align: center; color: #778291 !important; }
.workorders-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(17, 24, 39, .52); }
.workorders-modal[hidden] { display: none; }
.workorders-modal-panel { width: 100%; max-width: 430px; padding: 26px; border-radius: 12px; background: #fff; }
.workorders-modal-panel h2 { margin: 0 0 10px; }
.workorders-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.workorders-modal-cancel, .workorders-modal-delete { padding: 10px 15px; border-radius: 7px; font-weight: 700; cursor: pointer; }
.workorders-modal-cancel { border: 1px solid #cfd6df; background: #fff; }
.workorders-modal-delete { border: 0; background: #c93636; color: #fff; }
.workorders-breakdown-panel { box-sizing: border-box; width: min(920px, 100%); max-width: none; max-height: calc(100vh - 40px); overflow-y: auto; }
.workorders-breakdown-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.workorders-breakdown-heading h2 { margin: 4px 0 0; }
.workorders-breakdown-eyebrow { color: #087df0; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.workorders-breakdown-close { padding: 0 5px; border: 0; background: transparent; color: #596579; font-size: 30px; line-height: 1; cursor: pointer; }
.workorders-breakdown-result { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 22px 0 16px; padding: 14px 16px; border-radius: 9px; background: #eaf3fd; color: #315a87; }
.workorders-breakdown-result strong { font-size: 18px; }
.workorders-breakdown-table-wrap { overflow-x: auto; }
.workorders-breakdown-table { width: 100%; border: 1px solid #dce3eb; border-collapse: collapse; }
.workorders-breakdown-table th, .workorders-breakdown-table td { padding: 10px 12px; border: 1px solid #dce3eb; text-align: left; vertical-align: top; }
.workorders-breakdown-table th { background: #f5f7f9; color: #536071; font-size: 11px; text-transform: uppercase; }
.workorders-breakdown-table td { color: #374151; font-size: 13px; }
.workorders-breakdown-table small { display: block; margin-top: 4px; color: #778291; }
.workorders-breakdown-exclusions { margin-top: 18px; padding: 16px; border: 1px solid #e0e5eb; border-radius: 9px; background: #fafbfd; }
.workorders-breakdown-exclusions h3 { margin: 0 0 8px; font-size: 14px; }
.workorders-breakdown-exclusions p { margin: 6px 0; color: #596579; }
.workorders-breakdown-exclusions ul { margin: 8px 0 0; padding-left: 20px; color: #596579; }
.workorders-breakdown-actions { display: flex; justify-content: flex-end; margin-top: 20px; }

@media (min-width: 761px) and (max-width: 1050px) { .entity-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .entity-form-page, .workorders-page { width: min(100% - 24px, 1500px); margin-top: 24px; }
    .entity-form-heading, .workorders-page-heading, .workorders-heading-actions { flex-direction: column; width: 100%; align-items: stretch; }
    .entity-form-card { padding: 20px; }
    .entity-form-grid { grid-template-columns: 1fr; }
    .entity-form-grid .workorders-skill-rate-field { grid-column: auto; }
    .entity-form-grid .workorders-rate-override-reason { grid-column: auto; }
    .entity-toggle-field { grid-column: auto; }
    .entity-form-actions { flex-direction: column-reverse; }
    .entity-form-actions > * { box-sizing: border-box; width: 100%; text-align: center; }
    .workorders-filter-card { display: grid; grid-template-columns: 1fr; }
    .workorders-filter-field { min-width: 0; }
    .workorders-table-modern thead { display: none; }
    .workorders-table-modern, .workorders-table-modern tbody, .workorders-table-modern tr, .workorders-table-modern td { display: block; width: 100%; box-sizing: border-box; }
    .workorders-table-modern tr { padding: 14px 16px; border-top: 1px solid #e7ebf0; }
    .workorders-table-modern td { display: grid; grid-template-columns: 105px minmax(0, 1fr); padding: 8px 0; border: 0; }
    .workorders-table-modern td::before { content: attr(data-label); color: #778291; font-size: 12px; font-weight: 700; text-transform: uppercase; }
    .workorders-row-actions { display: flex !important; }
    .workorders-row-actions::before { width: 100%; }
}

.notification-icon-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; text-decoration: none; }
.notification-bell { font-size: 20px; line-height: 1; }
.notification-count { position: absolute; top: -4px; right: -5px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 999px; background: #d92d20; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.notification-count-hidden { display: none !important; }
.notification-update-banner { align-self: end; border-radius: 999px; background: #1f2937; border-color: #1f2937; color: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, .28); }

.modern-header .logout-button {
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.modern-header .logout-button img {
    width: 24px;
    height: 24px;
}

/* ########## FOOTER ########## */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f9fa;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    color: #6c757d;
    z-index: 1000; /* Ensures the footer stays above other content */
}

/* ########## MAIN CONTENT ########## */
.main-content {
    flex: 1; /* Ensures main content expands to fill available space */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px 20px 20px;
    background-color: #f8f9fa;
}

/* ########## MODERN HEADER ########## */
.modern-header {
    background-color: #fcfffd;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 2px solid #007bff; /* Optional: Stylish blue border */
}

.modern-header .logo img {
    height: 50px; /* Adjust the logo size */
}

.modern-header .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modern-header .header-right img {
    height: 25px; /* Icon size */
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.modern-header .header-right img:hover {
    opacity: 0.8; /* Hover effect */
}

.modern-header .header-right .header-headshot {
    width: 38px;
    height: 38px;
    border: 2px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px #cdd8e4, 0 3px 9px rgba(30, 55, 80, .13);
}


/* ########## BUTTON STYLES ########## */
.btn-primary {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 5px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    padding: 10px 20px;
    background-color: #d9534f;
    color: white;
    border: none;
    border-radius: 5px;
}

.btn-danger:hover {
    background-color: #c9302c;
}

/* ########## AUTHENTICATION PAGES ########## */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px);
    background-color: #f8f9fa;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 600px;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.auth-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
}

.auth-container p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #6c757d;
    text-align: center;
}

.auth-links {
    margin-top: 30px;
    text-align: center;
}

.auth-links a {
    color: #007bff;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* ########## SIGNUP ########## */

.g-recaptcha {
    padding-top: 10px;
}
/* ########## MYACCOUNT EMAIL CONFIRMATION ########## */
.myaccount-email-confirmation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-color: #f9f9f9;
    padding: 20px;
}

.myaccount-email-confirmation-card {
    max-width: 500px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

.myaccount-email-confirmation-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.myaccount-email-confirmation-message {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.myaccount-email-confirmation-note {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

.myaccount-email-confirmation-note a {
    color: #007bff;
    text-decoration: none;
}

.myaccount-email-confirmation-note a:hover {
    text-decoration: underline;
}

.myaccount-btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
}

.myaccount-btn:hover {
    background-color: #0056b3;
}

/* ########## EMAIL VERIFICATION SECTION ########## */
.email-verification-container {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 50px auto;
    font-family: Arial, sans-serif;
}

.email-verification-header {
    font-size: 24px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.email-verification-header-failed {
    color: #f44336;
}

.email-verification-text {
    font-size: 16px;
    color: #333333;
    margin: 10px 0;
}

.email-verification-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.email-verification-button:hover {
    background-color: #45a049;
}

.email-verification-header-failed + .email-verification-button {
    background-color: #f44336;
}

.email-verification-header-failed + .email-verification-button:hover {
    background-color: #d32f2f;
}

/* ########## LOGIN ############## */
.login-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #495057;
}

.login-form-group input[type="checkbox"] {
    margin: 0px 0px 10px 0px; /* Removes default margin */
    transform: scale(1.2); /* Optional: Enlarges checkbox slightly for better usability */
}

.login-form-group input[type="email"], input[type="password"], input[type="text"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
}

.login-form-group input[type="email"]:focus, input[type="password"]:focus, input[type="text"]:focus, select:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}


.login-form-group {
    margin-bottom: 0px;
    margin-top: 15px;
}

.login-form-remember {
    display: flex;
    align-items: center; /* Center align the checkbox with the label */
    gap: 10px; /* Add some space between the checkbox and the label */
}

/* ########## DASHBOARD ########## */
.my-documents-page { width: 100%; max-width: 1180px; margin: 40px auto; }
.my-documents-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.my-documents-heading h1 { margin: 0 0 6px; color: #222; }
.my-documents-heading p { margin: 0; color: #6b7280; }
.mandatory-document-status { display: inline-block; margin-top: 8px; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.document-gate-statuses { display: flex; flex-wrap: wrap; gap: 6px; }
.mandatory-document-status-complete { background: #eaf7ee; color: #246b38; }
.mandatory-document-status-incomplete { background: #fef0ef; color: #b42318; }
.mandatory-document-label { display: block; margin-top: 4px; color: #b42318; font-size: 11px; }
.my-documents-back-link { color: #4b5563; font-size: 14px; text-decoration: none; }
.my-documents-back-link:hover { color: #007bff; }
.my-documents-message { margin-bottom: 16px; padding: 11px 14px; border-radius: 6px; background: #eaf7ee; color: #246b38; }
.my-documents-message-error { background: #fef0ef; color: #b42318; }
.my-documents-table-card { overflow-x: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05); }
.my-documents-table { width: 100%; border-collapse: collapse; color: #374151; }
.my-documents-table th { padding: 13px 14px; background: #f8f9fa; border-bottom: 1px solid #e5e7eb; color: #4b5563; font-size: 12px; text-align: left; text-transform: uppercase; letter-spacing: 0.04em; }
.my-documents-table td { padding: 15px 14px; border-bottom: 1px solid #eef0f2; font-size: 14px; vertical-align: top; }
.my-documents-table tbody tr:last-child td { border-bottom: 0; }
.my-documents-table tbody tr:hover { background: #fbfcfd; }
.my-documents-title { font-weight: 600; color: #222; }
.my-documents-file-name { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-documents-not-uploaded { color: #8a919b; }
.document-review-status { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.document-review-status-pending { background: #fff3d6; color: #8a5a00; }
.document-review-status-accepted { background: #eaf7ee; color: #246b38; }
.document-review-status-rejected { background: #fef0ef; color: #b42318; }
.document-validity { display: block; min-width: 150px; color: #374151; }
.document-validity-warning { color: #8a5a00; font-weight: 600; }
.document-validity-expired { color: #b42318; font-weight: 600; }
.document-rejection-reason, .document-review-email { display: block; margin-top: 5px; color: #6b7280; font-size: 12px; white-space: normal; }
.my-documents-actions { display: flex; align-items: center; gap: 8px; min-width: max-content; white-space: nowrap; }
.my-documents-action-link { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 34px; padding: 7px 11px; border: 1px solid #b9d7f2; border-radius: 6px; background: #fff; color: #006bd6; cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.my-documents-action-link:hover { border-color: #78afe0; background: #f2f8fe; }
.my-documents-delete-link { border-color: #efcaca; color: #b42318; }
.my-documents-delete-link:hover { border-color: #dc8f88; background: #fff5f4; }
.my-documents-empty { padding: 36px !important; color: #6b7280; text-align: center; }
.my-documents-modal[hidden] { display: none; }
.my-documents-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(17, 24, 39, 0.52); }
.my-documents-modal-panel { box-sizing: border-box; width: 100%; max-width: 500px; padding: 24px; background: #fff; border-radius: 10px; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2); }
.my-documents-delete-panel { max-width: 430px; }
.my-documents-modal-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.my-documents-modal-heading h2, .my-documents-delete-panel h2 { margin: 0; color: #222; font-size: 21px; }
.my-documents-modal-heading button { border: 0; background: none; color: #6b7280; font-size: 26px; cursor: pointer; }
.my-documents-modal-panel label { display: block; margin-bottom: 7px; color: #374151; font-size: 14px; font-weight: 600; }
.my-documents-file-input { box-sizing: border-box; width: 100%; padding: 10px; border: 1px solid #d1d5db; border-radius: 6px; }
.my-documents-help { margin: 7px 0 0; color: #6b7280; font-size: 12px; }
.my-documents-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.my-documents-primary-button, .my-documents-secondary-button, .my-documents-danger-button { border-radius: 6px; padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
.my-documents-primary-button { border: 0; background: #007bff; color: #fff; }
.my-documents-secondary-button { border: 1px solid #d1d5db; background: #fff; color: #374151; }
.my-documents-danger-button { border: 0; background: #b42318; color: #fff; }
.document-review-page, .notifications-page { width: 100%; max-width: 1180px; margin: 40px auto; }
.notification-heading-actions { display: flex; gap: 10px; align-items: center; }
.document-review-filters { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 18px; padding: 16px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; }
.document-review-filters div { flex: 1; }
.document-review-filters label { display: block; margin-bottom: 5px; color: #374151; font-size: 12px; font-weight: 600; }
.document-review-filters select { box-sizing: border-box; width: 100%; padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; }
.document-review-inline-form { display: inline; margin-left: 10px; }
.document-accept-link { color: #24743b; }
.notifications-list { overflow: hidden; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05); }
.notification-item { margin: 0; border-bottom: 1px solid #eef0f2; }
.notification-item:last-child { border-bottom: 0; }
.notification-item button { display: block; box-sizing: border-box; width: 100%; padding: 16px 18px; border: 0; background: #fff; color: #374151; text-align: left; cursor: pointer; }
.notification-item-unread button { background: #f1f7ff; border-left: 3px solid #007bff; }
.notification-item button:hover { background: #f8fafc; }
.notification-item-title { display: block; margin-bottom: 4px; color: #222; font-size: 14px; font-weight: 700; }
.notification-item-message { display: block; font-size: 14px; }
.notification-item-date { display: block; margin-top: 7px; color: #6b7280; font-size: 12px; }
.notifications-empty { padding: 36px; color: #6b7280; text-align: center; }

@media (max-width: 700px) {
    .my-documents-heading { align-items: flex-start; flex-direction: column; }
    .document-review-filters { align-items: stretch; flex-direction: column; }
}

.configuration-home, .configuration-list-page {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto;
}
.document-types-page { max-width: 1450px; }
.contractor-rates-page { max-width: 1650px; }
.role-catalog-page { box-sizing: border-box; width: calc(100% - 40px); max-width: 1740px; }
.role-catalog-table { table-layout: fixed; }
.role-catalog-table th:nth-child(1) { width: 42px; }
.role-catalog-table th:nth-child(2) { width: 42%; }
.role-catalog-table th:nth-child(3) { width: 13%; }
.role-catalog-table th:nth-child(4) { width: 10%; }
.role-catalog-table th:nth-child(5) { width: 20%; }
.role-catalog-table th:nth-child(6) { width: 15%; }
.role-select-column { padding-right: 4px !important; text-align: center !important; vertical-align: middle !important; }
.role-select-column input, .configuration-bulk-toolbar input { width: 17px; height: 17px; cursor: pointer; }
.role-selection-unavailable { color: #a5acb5; }
.configuration-bulk-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; padding: 10px 14px; border: 1px solid #e0e5eb; border-radius: 9px; background: #fff; }
.configuration-bulk-toolbar label { display: flex; align-items: center; gap: 7px; font-weight: 700; cursor: pointer; }
.configuration-bulk-toolbar > span { color: #6b7280; font-size: 13px; }
.configuration-bulk-delete-button { margin-left: auto; padding: 8px 12px; }
.configuration-bulk-delete-button:disabled { cursor: not-allowed; opacity: .45; }
.role-catalog-table .configuration-row-actions { vertical-align: middle; }
.role-catalog-table .configuration-action-link { font-size: 13px; }
.role-catalog-table .configuration-action-link + .configuration-action-link { margin-left: 9px; }
.role-catalog-name { white-space: nowrap; }
.roles-list-page { box-sizing: border-box; width: calc(100% - 40px); max-width: 1700px; }
.roles-table { min-width: 1180px; table-layout: fixed; }
.roles-table th, .roles-table td { padding-right: 12px; padding-left: 12px; overflow-wrap: normal; word-break: normal; }
.roles-table th { white-space: nowrap; }
.roles-table th:nth-child(1) { width: 8%; }
.roles-table th:nth-child(2) { width: 13%; }
.roles-table th:nth-child(3) { width: 13%; }
.roles-table th:nth-child(4) { width: 11%; }
.roles-table th:nth-child(5) { width: 8%; }
.roles-table th:nth-child(6) { width: 9%; }
.roles-table th:nth-child(7) { width: 16%; }
.roles-table th:nth-child(8) { width: 7%; }
.roles-table th:nth-child(9) { width: 15%; }
.roles-table .configuration-title-cell { width: auto; }
.roles-table .configuration-status, .role-schedule-line { white-space: nowrap; }
.role-row-actions { white-space: nowrap; }
.role-table-action { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 5px 9px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; color: #1f5f91; font: inherit; font-size: 12px; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer; }
.role-table-action + .role-table-action { margin-left: 4px; }
.role-table-action:hover { border-color: #8fb4d1; background: #f4f9fd; }
.role-table-action-danger { border-color: #efc1bd; color: #b42318; }
.role-table-action-danger:hover { border-color: #dc8f88; background: #fff5f4; }

/* Candidate job board */
.job-board-page { box-sizing: border-box; width: min(100% - 40px, 1480px); margin: 32px auto 90px; color: #202733; }
.job-board-hero { position: relative; overflow: hidden; padding: 34px 42px 38px; border-radius: 20px; background: linear-gradient(125deg, #062b52 0%, #07579a 56%, #0d82d8 100%); color: #fff; box-shadow: 0 18px 42px rgba(7, 53, 94, .2); }
.job-board-hero::after { position: absolute; right: -80px; bottom: -180px; width: 460px; height: 460px; border-radius: 50%; background: rgba(255, 255, 255, .08); content: ""; }
.job-board-back-link { position: relative; z-index: 1; color: #d9edff; font-size: 13px; font-weight: 700; text-decoration: none; }
.job-board-hero-copy { position: relative; z-index: 1; max-width: 760px; margin: 24px 0 28px; }
.job-board-eyebrow { display: block; margin-bottom: 9px; color: #8fd1ff; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.job-board-hero h1 { margin: 0 0 10px; font-size: clamp(32px, 4vw, 50px); line-height: 1.08; letter-spacing: -.03em; }
.job-board-hero p { margin: 0; color: #d9e9f7; font-size: 17px; line-height: 1.55; }
.job-board-search { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(260px, 1.6fr) minmax(180px, .8fr) minmax(180px, .8fr) auto; align-items: end; gap: 10px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 12px 28px rgba(0, 24, 48, .22); }
.job-board-search-field { display: grid; gap: 5px; padding: 0 9px; border-right: 1px solid #dfe5ec; }
.job-board-search-field label { color: #617084; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.job-board-search-field input, .job-board-search-field select { box-sizing: border-box; width: 100%; padding: 5px 0; border: 0; outline: 0; background: #fff; color: #202733; font: inherit; }
.job-board-search-button { min-height: 48px; padding: 0 24px; border: 0; border-radius: 8px; background: #f2a900; color: #17202b; font-size: 15px; font-weight: 800; cursor: pointer; }
.job-board-search-button:hover { background: #ffba24; }
.job-board-summary { display: flex; justify-content: space-between; align-items: center; padding: 24px 2px 16px; color: #687487; }
.job-board-summary strong { color: #202733; }
.job-board-summary a { color: #086fc1; font-weight: 700; text-decoration: none; }
.job-board-layout { display: grid; grid-template-columns: minmax(380px, .8fr) minmax(520px, 1.2fr); align-items: start; gap: 22px; }
.job-board-results { display: grid; gap: 14px; }
.job-card { display: block; padding: 22px; border: 1px solid #dfe5ec; border-radius: 13px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 5px 16px rgba(26, 39, 54, .045); transition: border-color .16s, box-shadow .16s, transform .16s; }
.job-card:hover { transform: translateY(-2px); border-color: #7fb9e8; box-shadow: 0 10px 24px rgba(26, 67, 104, .1); }
.job-card-selected { border-color: #0878ce; box-shadow: inset 4px 0 #0878ce, 0 9px 24px rgba(26, 67, 104, .11); }
.job-card-topline { display: flex; justify-content: space-between; align-items: center; color: #7c8796; font-size: 12px; }
.job-card-new { padding: 4px 8px; border-radius: 999px; background: #e7f6ed; color: #25713e; font-weight: 800; }
.job-card h2 { margin: 15px 0 5px; color: #17212e; font-size: 21px; }
.job-card-company { margin: 0; color: #526074; font-weight: 700; }
.job-card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.job-card-meta span, .job-detail-tags span { padding: 6px 9px; border-radius: 6px; background: #f0f4f8; color: #4b5b6f; font-size: 12px; font-weight: 700; }
.job-card-excerpt { margin: 0; color: #687487; line-height: 1.5; }
.job-card-footer { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 15px; border-top: 1px solid #edf0f3; color: #0871c2; font-size: 13px; font-weight: 800; }
.job-detail-panel { position: sticky; top: 92px; overflow: hidden; border: 1px solid #dfe5ec; border-radius: 15px; background: #fff; box-shadow: 0 10px 30px rgba(26, 39, 54, .075); }
.job-detail-header { padding: 30px 32px 26px; border-bottom: 1px solid #e7ebf0; background: linear-gradient(180deg, #fbfdff, #f5f9fc); }
.job-detail-role-id { color: #0871c2; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.job-detail-header h2 { margin: 10px 0 6px; color: #17212e; font-size: 30px; line-height: 1.15; }
.job-detail-header p { margin: 0; color: #526074; font-size: 16px; font-weight: 700; }
.job-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.job-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 24px 32px; border-bottom: 1px solid #e7ebf0; }
.job-detail-facts div { display: grid; gap: 5px; }
.job-detail-facts span { color: #7a8797; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.job-detail-facts strong { color: #303c4c; font-size: 14px; }
.job-detail-description { padding: 26px 32px; color: #4c596a; font-size: 15px; line-height: 1.65; }
.job-detail-description h3 { margin: 0 0 14px; color: #202b38; font-size: 19px; }
.job-detail-description div + h3 { margin-top: 26px; }
.job-detail-description p:first-child { margin-top: 0; }
.job-detail-action { padding: 24px 32px; border-top: 1px solid #e7ebf0; background: #f8fafc; }
.job-detail-action a { display: inline-flex; padding: 12px 18px; border-radius: 8px; background: #0878ce; color: #fff; font-weight: 800; text-decoration: none; }
.job-detail-action p { margin: 10px 0 0; color: #7b8795; font-size: 12px; }
.public-role-page { box-sizing: border-box; width: min(920px, calc(100% - 40px)); margin: 42px auto 90px; color: #202733; }
.public-role-back-link { display: inline-block; margin-bottom: 18px; color: #0871c2; font-size: 14px; font-weight: 700; text-decoration: none; }
.public-role-page .job-detail-panel { position: static; }
.public-role-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.public-role-actions .public-role-secondary { border: 1px solid #0878ce; background: #fff; color: #0878ce; }
.public-role-page .job-detail-action > p { margin-top: 14px; }
.job-board-empty { padding: 70px 24px; border: 1px solid #dfe5ec; border-radius: 15px; background: #fff; text-align: center; }
.job-board-empty-icon { font-size: 34px; }
.job-board-empty h2 { margin: 14px 0 7px; }
.job-board-empty p { margin: 0 0 20px; color: #707c8b; }
.job-board-empty a { color: #0871c2; font-weight: 800; }
.application-page { box-sizing: border-box; width: min(100% - 32px, 980px); margin: 36px auto 80px; color: #263242; }
.application-back-link { display: inline-block; margin-bottom: 16px; color: #0871c2; font-weight: 700; text-decoration: none; }
.application-card { padding: 30px; border: 1px solid #dfe5ec; border-radius: 15px; background: #fff; box-shadow: 0 10px 30px rgba(26, 39, 54, .075); }
.application-card h1 { margin: 8px 0 12px; color: #17212e; }
.application-card h2 { margin-top: 0; }
.application-eyebrow, .application-question-scope { color: #0871c2; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.application-status { margin-bottom: 24px; }
.application-steps { display: grid; gap: 10px; margin: 26px 0; padding: 0; list-style: none; counter-reset: application-step; }
.application-steps li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e2e7ed; border-radius: 9px; background: #f8fafc; counter-increment: application-step; }
.application-steps li::before { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #dce3eb; color: #526074; content: counter(application-step); font-size: 12px; font-weight: 800; }
.application-steps li strong { flex: 1; }
.application-steps li span { color: #748093; font-size: 13px; }
.application-steps .is-complete { border-color: #b9e0c5; background: #f1faf4; }
.application-steps .is-complete::before { background: #34a853; color: #fff; content: "✓"; }
.application-steps .is-current { border-color: #8bc8f3; background: #eff8ff; }
.application-steps .is-current::before { background: #0878ce; color: #fff; }
.application-steps .is-stopped { border-color: #efb5b5; background: #fff5f5; }
.application-alert { margin: 20px 0; padding: 14px 16px; border: 1px solid #efc36e; border-radius: 8px; background: #fff9e8; color: #684d14; }
.application-confirmation { color: #596779; }
.application-primary-button { display: inline-flex; padding: 12px 18px; border: 0; border-radius: 8px; background: #0878ce; color: #fff; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }
.application-screening-form { display: grid; gap: 18px; margin-top: 26px; }
.application-screening-save-status { margin-top: 12px; color: #607089; font-size: 12px; font-weight: 700; }
.application-screening-save-status[data-state="saving"],
.application-screening-save-status[data-state="pending"] { color: #9a6700; }
.application-screening-save-status[data-state="error"] { color: #b42318; }
.application-screening-submit-progress { align-items: center; gap: 8px; }
.application-screening-submit-progress:not([hidden]) { display: inline-flex; }
.application-screening-progress { display: grid; gap: 9px; margin-top: 24px; }
.application-screening-progress > div:first-child { display: flex; justify-content: space-between; gap: 16px; color: #536177; font-size: 13px; }
.application-screening-progress > div:first-child strong { color: #26364c; }
.application-screening-progress-track { height: 8px; overflow: hidden; border-radius: 999px; background: #e7edf3; }
.application-screening-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0878ce, #27a4df); transition: width .25s ease; }
.application-question { display: grid; gap: 7px; padding: 18px; border: 1px solid #e2e7ed; border-radius: 10px; }
.application-screening-step { min-height: 270px; align-content: start; padding: 28px; background: #fff; box-shadow: 0 10px 24px rgba(26,39,54,.06); }
.application-screening-step[hidden] { display: none; }
.application-screening-step.has-error { border-color: #e59b95; }
.application-screening-question-number { color: #748399; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.application-step-error { color: #b42318; font-size: 13px; font-weight: 700; }
.application-screening-navigation { display: flex; justify-content: space-between; gap: 12px; }
.application-screening-navigation [hidden] { display: none; }
.application-screening-previous { padding: 11px 17px; border: 1px solid #cbd5df; border-radius: 8px; background: #fff; color: #344258; font: inherit; font-weight: 800; cursor: pointer; }
.application-screening-navigation #screeningNextButton,
.application-screening-navigation > :last-child { margin-left: auto; }
.application-question label { color: #283548; font-weight: 700; }
.application-question small { color: #748093; }
.application-question input, .application-question select, .application-question textarea, .application-admin-form input, .application-admin-form select, .application-admin-form textarea { box-sizing: border-box; width: 100%; padding: 11px 12px; border: 1px solid #ccd5df; border-radius: 7px; background: #fff; font: inherit; }
.application-field-error { display: block; color: #b42318; font-size: 13px; }
@media (max-width: 600px) {
    .application-screening-progress > div:first-child { align-items: flex-start; flex-direction: column; gap: 3px; }
    .application-screening-step { min-height: 0; padding: 20px; }
}
.application-queue-filter { display: grid; grid-template-columns: minmax(200px, 1.2fr) minmax(280px, 1.6fr) minmax(175px, 1fr) minmax(175px, 1fr) repeat(2, minmax(150px, .9fr)); align-items: end; gap: 16px; margin-bottom: 22px; padding: 20px; border: 1px solid #e0e5eb; border-radius: 10px; background: #fff; }
.application-queue-filter-field { display: grid; gap: 6px; }
.application-queue-filter label { color: #374151; font-size: 13px; font-weight: 700; }
.application-queue-filter input, .application-queue-filter select { box-sizing: border-box; width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #ccd5df; border-radius: 7px; background: #fff; font: inherit; }
.application-queue-filter-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 9px; }
.application-queue-filter-actions .configuration-primary-button, .application-queue-filter-actions .configuration-secondary-button { box-sizing: border-box; min-height: 40px; }
.application-queue-filter-actions .button-progress:not([hidden]) { display: inline-flex; align-items: center; gap: 7px; }
.application-queue-page { box-sizing: border-box; width: calc(100% - 24px); max-width: 1600px; }
.application-queue-page .configuration-table-card { overflow-x: auto; }
.application-queue-page .configuration-table { min-width: 1180px; table-layout: fixed; }
.application-queue-page .configuration-table th,
.application-queue-page .configuration-table td { padding-right: 16px; padding-left: 16px; overflow-wrap: anywhere; }
.application-queue-page .configuration-table th:nth-child(1) { width: 20%; }
.application-queue-page .configuration-table th:nth-child(2) { width: 18%; }
.application-queue-page .configuration-table th:nth-child(3) { width: 18%; }
.application-queue-page .configuration-table th:nth-child(4) { width: 22%; }
.application-queue-page .configuration-table th:nth-child(5) { width: 16%; }
.application-queue-page .configuration-table th:nth-child(6) { width: 6%; }
.application-queue-page .configuration-row-actions { white-space: normal; }
.application-queue-role small, .application-queue-stage small, .application-queue-progress small { line-height: 1.4; }
.application-queue-score-row { display: flex; flex-wrap: wrap; gap: 6px; }
.application-queue-score-row span { padding: 4px 7px; border-radius: 999px; background: #edf6fd; color: #31546f; font-size: 11px; font-weight: 700; }
.application-queue-score-row span:first-child { background: #dff1fd; color: #086cae; }
.application-queue-score-row strong { font-size: 14px; }
.application-queue-muted { color: #7a8796; font-size: 12px; }
.application-queue-interview { color: #31546f !important; font-weight: 700; }
.application-manage-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: start; gap: 20px; }
.application-admin-form, .application-form-group { display: grid; gap: 7px; }
.application-admin-form { gap: 17px; }
.application-form-group label { font-weight: 700; }
.application-screening-answers { display: grid; gap: 12px; margin: 20px 0; }
.application-screening-answers div { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid #e8edf2; }
.application-screening-answers span { color: #596779; white-space: pre-wrap; }

@media (max-width: 1350px) {
    .application-queue-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 950px) {
    .job-board-search { grid-template-columns: 1fr 1fr; }
    .job-board-search-keyword { grid-column: 1 / -1; }
    .job-board-search-field { border-right: 0; }
    .job-board-layout { grid-template-columns: 1fr; }
    .job-detail-panel { position: static; }
    .application-manage-grid { grid-template-columns: 1fr; }
    .application-queue-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .job-board-page { width: min(100% - 24px, 1480px); margin-top: 18px; }
    .job-board-hero { padding: 25px 20px; border-radius: 14px; }
    .job-board-search { grid-template-columns: 1fr; }
    .job-board-search-keyword { grid-column: auto; }
    .job-board-layout { display: flex; flex-direction: column; }
    .job-board-results, .job-detail-panel { width: 100%; }
    .job-detail-header, .job-detail-description, .job-detail-action { padding-right: 22px; padding-left: 22px; }
    .job-detail-facts { grid-template-columns: 1fr; padding-right: 22px; padding-left: 22px; }
    .application-queue-filter { grid-template-columns: 1fr; }
}

/* Interview availability */
.interview-schedule-page { box-sizing: border-box; width: min(1360px, calc(100% - 40px)); margin: 0 auto 70px; padding-top: 36px; color: #18304a; }
.interview-schedule-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.interview-schedule-heading h1 { margin: 5px 0 6px; font-size: 30px; letter-spacing: -.03em; }
.interview-schedule-heading p, .interview-panel-copy { margin: 0; color: #6a7889; font-size: 12px; }
.interview-eyebrow { color: #0789df; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.interview-timezone-chip { padding: 9px 13px; border: 1px solid #dbe4ec; border-radius: 999px; background: #fff; color: #687789; font-size: 11px; }
.interview-schedule-layout { display: grid; grid-template-columns: minmax(420px, 480px) minmax(0, 1fr); gap: 22px; align-items: start; }
.interview-settings-column { display: grid; gap: 18px; }
.interview-panel { padding: 22px; border: 1px solid #dce5ed; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(25, 48, 74, .05); }
.interview-panel h2 { margin: 0 0 7px; font-size: 17px; }
.interview-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.interview-upcoming-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.interview-upcoming-heading > span { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; height: 25px; border-radius: 999px; background: #eaf6fd; color: #087fd0; font-size: 10px; font-weight: 850; }
.interview-upcoming-list { display: grid; gap: 7px; margin-top: 16px; }
.interview-upcoming-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 14px; align-items: center; gap: 11px; padding: 10px; border: 1px solid #e1e8ef; border-radius: 9px; background: #f9fbfd; color: #2d435a; text-decoration: none; }
.interview-upcoming-row:hover { border-color: #9bccec; background: #f1f9fe; }
.interview-upcoming-row time { display: grid; gap: 2px; padding-right: 10px; border-right: 1px solid #dce5ed; }
.interview-upcoming-row time strong { color: #087fd0; font-size: 11px; text-transform: uppercase; }
.interview-upcoming-row time span { color: #66788c; font-size: 9px; }
.interview-upcoming-row > span { display: grid; gap: 3px; min-width: 0; }
.interview-upcoming-row > span strong, .interview-upcoming-row > span small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.interview-upcoming-row > span strong { font-size: 11px; }
.interview-upcoming-row > span small { color: #748397; font-size: 9px; }
.interview-upcoming-row b { color: #87a0b5; font-size: 18px; }
.interview-field { display: grid; gap: 6px; min-width: 0; }
.interview-field[hidden] { display: none; }
.interview-field label { color: #41526a; font-size: 10px; font-weight: 800; }
.interview-field > small { color: #7d8a99; font-size: 9px; line-height: 1.4; }
.interview-preference-field { padding-top: 11px; border-top: 1px solid #e7edf2; }
.interview-preference-summary { display: grid; gap: 5px; margin-top: 14px; padding: 13px; border: 1px solid #dce7ef; border-radius: 9px; background: #f6fafc; }
.interview-preference-summary > span { color: #557086; font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.interview-preference-summary > p { margin: 0; color: #29465e; font-size: 10px; line-height: 1.5; }
.interview-reset-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 5px; padding: 7px 10px; border: 1px solid #cbd8e4; border-radius: 7px; background: #fff; color: #385770; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.interview-reset-button:disabled { cursor: wait; opacity: .65; }
.interview-reset-button .button-progress:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; }
.interview-field .errorlist, .interview-action-form > .errorlist { margin: 0; padding: 7px 9px; border-radius: 6px; background: #fff0f0; color: #b42318; font-size: 10px; list-style: none; }
.interview-primary-button, .interview-secondary-button, .interview-icon-button, .interview-view-switcher button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; border-radius: 8px; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.interview-primary-button { width: 100%; border: 1px solid #087fd0; background: #087fd0; color: #fff; }
.interview-secondary-button { padding: 0 13px; border: 1px solid #cbd8e4; background: #fff; color: #1f4365; }
.interview-icon-button { width: 34px; min-height: 34px; border: 1px solid #d4dfe8; background: #fff; color: #234560; font-size: 20px; }
.interview-primary-button:disabled, .interview-secondary-button:disabled, .interview-icon-button:disabled { cursor: wait; opacity: .68; }
.interview-window-list { display: grid; gap: 7px; margin: 17px 0; }
.interview-window-row, .interview-override-row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 7px 9px; border: 1px solid #e4ebf1; border-radius: 8px; background: #f8fafc; font-size: 11px; }
.interview-window-row .inline, .interview-override-row .inline { margin-left: auto; }
.interview-window-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.interview-window-actions .inline { margin-left: 0; }
.interview-copy-menu { position: relative; }
.interview-copy-menu summary { padding: 8px 10px; border: 1px solid #d4dfe8; border-radius: 7px; background: #fff; color: #245073; font-size: 10px; font-weight: 800; list-style: none; cursor: pointer; }
.interview-copy-menu summary::-webkit-details-marker { display: none; }
.interview-copy-menu[open] summary { border-color: #168ed9; box-shadow: 0 0 0 2px rgba(22, 142, 217, .1); }
.interview-copy-form { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: 250px; box-sizing: border-box; padding: 14px; border: 1px solid #d9e3ec; border-radius: 10px; background: #fff; box-shadow: 0 16px 38px rgba(28, 50, 74, .18); }
.interview-copy-form > strong { display: block; margin-bottom: 10px; color: #34465b; font-size: 11px; }
.interview-copy-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 11px; }
.interview-copy-days label { display: flex; align-items: center; gap: 5px; padding: 7px; border: 1px solid #e1e8ef; border-radius: 6px; background: #f8fafc; color: #465a70; font-size: 9px; font-weight: 800; cursor: pointer; }
.interview-copy-days input { margin: 0; accent-color: #087fd0; }
.interview-copy-form .interview-primary-button { min-height: 34px; }
.interview-day { width: 74px; font-weight: 800; }
.interview-override-row > div { display: grid; gap: 3px; }
.interview-override-row span { color: #677689; }
.interview-empty { color: #8491a0; font-size: 11px; }
.interview-inline-form { display: grid; gap: 12px; padding-top: 15px; border-top: 1px solid #e5ebf1; }
.interview-fields-row { display: grid; align-items: end; gap: 10px; }
.weekly-fields-row { grid-template-columns: minmax(120px, 1.25fr) 1fr 1fr; }
.override-time-row { grid-template-columns: 1fr 1fr; }
.interview-inline-form > .interview-secondary-button { width: 100%; }
.interview-availability-toggle { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #dce5ed; border-radius: 8px; background: #f8fafc; cursor: pointer; }
.interview-availability-toggle input { width: 17px; height: 17px; margin: 0; accent-color: #087fd0; }
.interview-availability-toggle span { display: grid; gap: 2px; }
.interview-availability-toggle strong { color: #34465b; font-size: 11px; }
.interview-availability-toggle small { color: #7b8999; font-size: 9px; }
.interview-calendar-panel { position: sticky; top: 94px; min-height: 700px; }
.interview-calendar-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.interview-calendar-toolbar h2 { flex: 1; margin: 0 12px; font-size: 18px; }
.interview-calendar-legend { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin: -8px 0 14px; color: #65758a; font-size: 9px; font-weight: 750; }
.interview-calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.interview-calendar-legend i { width: 9px; height: 9px; border-radius: 3px; }
.interview-calendar-legend i.availability { background: #b8e2f8; }
.interview-calendar-legend i.unavailable { background: #cbd3dc; }
.interview-calendar-legend i.booking { background: #f6b85f; }
.interview-calendar-visibility-note { display: grid; gap: 3px; margin: -4px 0 18px; padding: 12px 14px; border: 1px solid #cfe4f2; border-radius: 9px; background: #f0f8fd; color: #536b7f; font-size: 10px; line-height: 1.45; }
.interview-calendar-visibility-note strong { color: #174d70; font-size: 11px; }
.interview-view-switcher { display: flex; padding: 3px; border-radius: 9px; background: #edf3f7; }
.interview-view-switcher button { min-height: 31px; padding: 0 11px; border: 0; background: transparent; color: #607187; }
.interview-view-switcher button.is-active { background: #fff; color: #087fd0; box-shadow: 0 1px 4px rgba(25, 48, 74, .14); }
.interview-calendar.month-view { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid #dfe7ee; border-left: 1px solid #dfe7ee; }
.interview-calendar-weekday { padding: 9px; border-right: 1px solid #dfe7ee; border-bottom: 1px solid #dfe7ee; color: #728095; font-size: 9px; font-weight: 800; text-align: center; text-transform: uppercase; }
.interview-calendar-day { min-height: 94px; padding: 8px; border-right: 1px solid #dfe7ee; border-bottom: 1px solid #dfe7ee; background: #fff; }
.interview-calendar-day > strong { display: flex; align-items: center; justify-content: center; width: 23px; height: 23px; margin-bottom: 5px; font-size: 10px; }
.interview-calendar-day.is-today > strong { border-radius: 50%; background: #087fd0; color: #fff; }
.interview-calendar-day.is-outside { background: #f8fafc; color: #a4afba; }
.interview-calendar-event { display: block; overflow: hidden; margin: 3px 0; padding: 5px 6px; border-left: 3px solid #0a92e6; border-radius: 4px; background: #eaf6fd; color: #17618f; font-size: 9px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
.interview-calendar-event.slot { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.interview-calendar-event.slot small { overflow: hidden; font-size: 7px; font-weight: 700; text-overflow: ellipsis; text-transform: uppercase; }
.interview-calendar-event.slot.unavailable { border-left-color: #8795a5; background: #f0f2f4; color: #697786; }
.interview-calendar-event.slot.unavailable small { color: #9a3e2b; }
.interview-calendar-event.booking { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px; border-left-color: #dc8100; background: #fff4df; color: #774600; text-decoration: none; }
.interview-calendar-event.booking:hover { background: #ffeac2; }
.interview-calendar-event.booking strong { font-size: 9px; }
.interview-calendar-event.booking span, .interview-calendar-event.booking small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.interview-calendar-event.booking small { grid-column: 1 / -1; color: #8b6a36; font-size: 8px; font-weight: 600; }
.interview-agenda-day .interview-calendar-event { padding: 8px; }
.interview-agenda-day details.interview-calendar-event.slot { display: block; white-space: normal; }
.interview-agenda-day details.interview-calendar-event.slot summary { display: grid; grid-template-columns: 75px minmax(0, 1fr) auto; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.interview-agenda-day details.interview-calendar-event.slot summary::-webkit-details-marker { display: none; }
.interview-agenda-day details.interview-calendar-event.slot summary span { text-transform: uppercase; }
.interview-agenda-day details.interview-calendar-event.slot summary small { color: #087fd0; font-size: 8px; }
.interview-agenda-day details.interview-calendar-event.slot p { margin: 8px 0 0; padding-top: 8px; border-top: 1px solid rgba(90, 113, 134, .18); color: #5e6f80; font-size: 9px; font-weight: 600; line-height: 1.45; }
.interview-calendar.week-view { display: grid; grid-template-columns: repeat(7, minmax(100px, 1fr)); overflow-x: auto; }
.interview-calendar.day-view { display: grid; }
.interview-agenda-day { min-height: 500px; padding: 12px; border: 1px solid #dfe7ee; border-right: 0; }
.interview-agenda-day:last-child { border-right: 1px solid #dfe7ee; }
.interview-agenda-day h3 { margin: 0 0 13px; font-size: 11px; }
.interview-spinner { display: inline-block; width: 13px; height: 13px; box-sizing: border-box; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: interview-spin .7s linear infinite; }
.interview-spinner.dark { border-color: rgba(31, 67, 101, .25); border-top-color: #1f4365; }
@keyframes interview-spin { to { transform: rotate(360deg); } }
@media (max-width: 1100px) { .interview-schedule-layout { grid-template-columns: 1fr; } .interview-calendar-panel { position: static; min-height: auto; } }
@media (max-width: 680px) { .interview-schedule-page { width: calc(100% - 20px); padding-top: 24px; } .interview-schedule-heading { align-items: flex-start; flex-direction: column; } .interview-form-grid, .weekly-fields-row, .override-time-row { grid-template-columns: 1fr; } .interview-calendar-toolbar { flex-wrap: wrap; } .interview-calendar-toolbar h2 { order: -1; flex-basis: 100%; margin: 0 0 8px; } .interview-view-switcher { margin-left: auto; } .interview-calendar-day { min-height: 68px; padding: 4px; } .interview-calendar-event { padding: 3px; font-size: 8px; } }
.interview-queue-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.interview-queue-actions .configuration-primary-button { min-width: 210px; }
.interview-queue-page { box-sizing: border-box; width: calc(100% - 40px); max-width: 1500px; }
.interview-queue-page .configuration-table { min-width: 1100px; }
.interview-queue-page .configuration-table th,
.interview-queue-page .configuration-table td { white-space: nowrap; }
.interview-queue-page .configuration-row-actions { display: flex; align-items: center; gap: 8px; }
.interview-queue-action-button { display: inline-flex; min-height: 34px; box-sizing: border-box; align-items: center; justify-content: center; padding: 7px 13px; border: 1px solid transparent; border-radius: 6px; font: inherit; font-size: 12px; font-weight: 750; line-height: 1; text-decoration: none; cursor: pointer; }
.interview-review-button { border-color: #087fd0; background: #087fd0; color: #fff; }
.interview-review-button:hover { border-color: #066eae; background: #066eae; color: #fff; text-decoration: none; }
.interview-unassign-button { border-color: #e1a09a; background: #fff; color: #b42318; }
.interview-unassign-button:hover { border-color: #b42318; background: #fff4f2; color: #8f1d14; }
.candidate-interview-page { box-sizing: border-box; width: min(1060px, calc(100% - 32px)); margin: 0 auto 60px; }
.candidate-interview-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.candidate-interview-context { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.candidate-interview-context .application-back-link { margin: 0; padding-right: 12px; border-right: 1px solid #ccd8e3; }
.candidate-interview-context .application-eyebrow { line-height: 1.2; }
.candidate-interview-heading h1 { margin: 7px 0; color: #20354c; font-size: 30px; }
.candidate-interview-heading p { margin: 0; color: #66788c; }
.candidate-interview-confirmed { margin-bottom: 20px; padding: 24px; border: 1px solid #b9dfc9; border-radius: 13px; background: #f0fbf5; }
.candidate-interview-confirmed > span { color: #17804a; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.candidate-interview-confirmed h2 { margin: 8px 0 4px; color: #183d2a; }
.candidate-interview-confirmed p { margin: 0 0 12px; color: #23623e; font-size: 17px; font-weight: 800; }
.candidate-interview-confirmed small { color: #5d7767; }
.candidate-zoom-access { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 16px; border: 1px solid #a9d7bd; border-radius: 10px; background: #fff; }
.candidate-zoom-access > div { display: grid; gap: 4px; }
.candidate-zoom-access strong { color: #183d2a; font-size: 14px; }
.candidate-zoom-access .application-primary-button { align-items: center; justify-content: center; flex: 0 0 auto; }
.candidate-reschedule-status { display: grid; gap: 3px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #cce7d7; }
.candidate-reschedule-status strong { color: #285d3f; font-size: 12px; }
.candidate-reschedule-status span { color: #5d7767; font-size: 11px; }
.candidate-interview-calendar { padding: 22px 24px; border: 1px solid #dce5ed; border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(25,48,74,.06); }
.candidate-interview-calendar-heading h2 { margin: 0 0 5px; }
.candidate-interview-calendar-heading p { margin: 0; color: #708095; font-size: 12px; }
.candidate-interview-slots { display: grid; gap: 15px; margin-top: 18px; }
.candidate-interview-date-navigation { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: stretch; gap: 8px; }
.candidate-interview-date-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.candidate-interview-date-strip::-webkit-scrollbar { display: none; }
.candidate-date-arrow { border: 1px solid #d5e0e9; border-radius: 9px; background: #fff; color: #245073; font-size: 22px; cursor: pointer; }
.candidate-date-arrow:hover { border-color: #168ed9; background: #f1f9fe; }
.candidate-date-tab { display: grid; gap: 3px; min-height: 74px; padding: 10px; border: 1px solid #dce5ed; border-radius: 9px; background: #f8fafc; color: #354a60; text-align: left; scroll-snap-align: center; cursor: pointer; }
.candidate-date-tab span { color: #77879a; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.candidate-date-tab strong { font-size: 13px; }
.candidate-date-tab small { color: #77879a; font-size: 9px; }
.candidate-date-tab.is-active { border-color: #0789df; background: #eaf6fd; box-shadow: inset 0 0 0 1px #0789df; }
.candidate-date-tab.is-active span, .candidate-date-tab.is-active small { color: #1472aa; }
.candidate-interview-time-stage { min-height: 126px; padding: 17px 18px; border: 1px solid #e1e8ef; border-radius: 11px; background: #fbfcfd; }
.candidate-time-panel { margin: 0; padding: 0; border: 0; }
.candidate-time-panel[hidden] { display: none; }
.candidate-time-panel legend { display: flex; align-items: baseline; gap: 7px; margin-bottom: 13px; color: #30475f; }
.candidate-time-panel legend span { color: #7b8998; font-size: 10px; font-weight: 700; }
.candidate-time-panel legend strong { font-size: 13px; }
.candidate-time-panel > div { display: grid; grid-template-columns: repeat(6, minmax(90px, 1fr)); gap: 8px; }
.candidate-interview-slots label input { position: absolute; opacity: 0; pointer-events: none; }
.candidate-interview-slots label span { display: block; padding: 10px 8px; border: 1px solid #cbd9e5; border-radius: 8px; background: #fff; color: #245073; font-size: 11px; font-weight: 800; text-align: center; cursor: pointer; }
.candidate-interview-slots label span:hover { border-color: #168ed9; background: #f1f9fe; }
.candidate-interview-slots label input:checked + span { border-color: #0789df; background: #0789df; color: #fff; }
.candidate-interview-confirm-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; border-radius: 10px; background: #eef5fa; }
.candidate-interview-confirm-bar > div { display: grid; gap: 3px; }
.candidate-interview-confirm-bar > div span { color: #728195; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.candidate-interview-confirm-bar > div strong { color: #263e56; font-size: 13px; }
.candidate-interview-confirm-bar .application-primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 190px; margin: 0; text-align: center; }
.candidate-interview-confirm-bar .button-progress:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.candidate-interview-confirm-bar .application-primary-button:disabled { cursor: not-allowed; opacity: .5; }
.candidate-interview-summary { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #e2e8ef; }
.candidate-interview-summary > div { display: flex; justify-content: space-between; gap: 20px; }
.candidate-interview-summary span { color: #738195; }
.candidate-application-status small { display: block; margin-top: 3px; font-size: 9px; font-weight: 700; }
.candidate-client-interview-summary h3 { margin: 0 0 3px; color: #27354b; font-size: 14px; }
.candidate-client-interview-summary p { margin: 3px 0 0; color: #69768a; font-size: 11px; line-height: 1.5; }
.candidate-application-summary strong small { display: block; margin-top: 4px; color: #087ac1; font-size: 9px; }
.candidate-interview-withdraw { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; padding: 17px 20px; border: 1px solid #eed4d2; border-radius: 11px; background: #fffafa; }
.candidate-interview-withdraw span { color: #73312c; font-size: 13px; font-weight: 800; }
.candidate-interview-withdraw p { margin: 4px 0 0; color: #7f6a69; font-size: 11px; }
.candidate-interview-withdraw button,
.candidate-interview-withdraw > a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 168px; padding: 10px 14px; border: 1px solid #d92d20; border-radius: 7px; background: #fff; color: #b42318; cursor: pointer; text-decoration: none; font-weight: 700; }
.candidate-interview-withdraw button:hover,
.candidate-interview-withdraw > a:hover { background: #fff5f4; }
.candidate-interview-withdraw button:disabled { cursor: not-allowed; opacity: .55; }
.candidate-interview-withdraw .button-progress:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 900px) { .candidate-time-panel > div { grid-template-columns: repeat(4, minmax(80px, 1fr)); } }
@media (max-width: 680px) { .candidate-interview-heading { align-items: flex-start; flex-direction: column; } .candidate-interview-context { align-items: flex-start; flex-direction: column; gap: 6px; } .candidate-interview-context .application-back-link { padding-right: 0; border-right: 0; } .candidate-interview-calendar { padding: 18px; } .candidate-time-panel > div { grid-template-columns: repeat(2, minmax(90px, 1fr)); } .candidate-interview-confirm-bar, .candidate-interview-withdraw, .candidate-zoom-access { align-items: stretch; flex-direction: column; } .candidate-interview-confirm-bar .application-primary-button, .candidate-interview-withdraw button, .candidate-interview-withdraw > a, .candidate-zoom-access .application-primary-button { width: 100%; box-sizing: border-box; } }
.contractor-rates-filter-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 14px; }
.contractor-rates-filter-form label { color: #374151; font-size: 14px; font-weight: 600; }
.contractor-rates-filter-form .configuration-form-control { width: 180px; }
.contractor-rates-filter-form input.configuration-form-control { width: 160px; }
.contractor-rates-table { min-width: 1250px; }
.contractor-rates-table .configuration-title-cell, .contractor-rates-period { white-space: nowrap; }
.contractor-rates-table .configuration-title-cell { width: auto; min-width: 210px; }
.contractor-rates-period { min-width: 190px; }
.contractor-rates-margin { min-width: 210px; white-space: nowrap; }
.contractor-rates-margin span { display: block; }
.contractor-rates-margin span + span { margin-top: 4px; }

.configuration-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.configuration-page-heading h1 { margin: 0 0 6px; color: #222; }
.configuration-page-heading p { margin: 0; color: #6b7280; }
.interview-policy-form { display: grid; gap: 18px; }
.configuration-form-section { display: grid; gap: 18px; padding: 24px; border: 1px solid #dce5ed; border-radius: 13px; background: #fff; box-shadow: 0 10px 28px rgba(25,48,74,.05); }
.configuration-form-section-heading h2 { margin: 0 0 5px; color: #20354c; }
.configuration-form-section-heading p { margin: 0; color: #708095; font-size: 12px; }
.interview-policy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.configuration-form-field { display: grid; gap: 6px; }
.configuration-form-field label { color: #45566a; font-size: 12px; font-weight: 800; }
.interview-policy-form .configuration-primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; justify-self: end; min-width: 220px; }
.interview-policy-form .button-progress:not([hidden]) { display: inline-flex; align-items: center; gap: 8px; }
.interview-policy-form .configuration-primary-button:disabled { cursor: not-allowed; opacity: .6; }
.configuration-heading-actions { display: flex; align-items: center; gap: 12px; }
.configuration-back-link { color: #4b5563; text-decoration: none; font-size: 14px; }
.configuration-back-link:hover { color: #007bff; }
.configuration-primary-button, .configuration-secondary-button, .configuration-danger-button {
    border: 0;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.configuration-primary-button { background: #007bff; color: #fff; }
.configuration-secondary-button { background: #fff; color: #374151; border: 1px solid #d1d5db; }
.configuration-danger-button { background: #b42318; color: #fff; }
.configuration-message { margin-bottom: 16px; padding: 11px 14px; border-radius: 6px; background: #eaf7ee; color: #246b38; }
.configuration-table-card { overflow-x: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05); }
.configuration-table { width: 100%; border-collapse: collapse; color: #374151; }
.configuration-table th { padding: 13px 16px; background: #f8f9fa; border-bottom: 1px solid #e5e7eb; color: #4b5563; font-size: 12px; text-align: left; text-transform: uppercase; letter-spacing: 0.04em; }
.configuration-table td { padding: 15px 16px; border-bottom: 1px solid #eef0f2; font-size: 14px; vertical-align: top; }
.configuration-table tbody tr:last-child td { border-bottom: 0; }
.configuration-table tbody tr:hover { background: #fbfcfd; }
.configuration-title-cell { width: 18%; font-weight: 600; color: #222; }
.configuration-table td small { display: block; margin-top: 4px; color: #6b7280; }
.configuration-gate-column { width: 90px; text-align: center !important; white-space: nowrap; }
.configuration-gate-cell { text-align: center; vertical-align: middle !important; }
.configuration-gate-box { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 1px solid #c7cdd4; border-radius: 4px; background: #fff; color: #fff; font-size: 14px; font-weight: 700; line-height: 1; }
.configuration-gate-box-required { border-color: #16803c; background: #16803c; }
.configuration-actions-column { width: 1%; white-space: nowrap; }
.configuration-row-actions { display: flex; align-items: center; gap: 8px; min-width: max-content; white-space: nowrap; }
.configuration-action-link { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 34px; padding: 7px 11px; border: 1px solid #b9d7f2; border-radius: 6px; background: #fff; color: #006bd6; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.configuration-action-link:hover { border-color: #78afe0; background: #f2f8fe; }
.configuration-delete-link { border-color: #efcaca; color: #b42318; }
.configuration-delete-link:hover { border-color: #dc8f88; background: #fff5f4; }
.configuration-empty-row { padding: 36px !important; color: #6b7280; text-align: center; }
.configuration-status { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.configuration-status-active { background: #eaf7ee; color: #246b38; }
.configuration-status-inactive { background: #f1f3f5; color: #5f6670; }
.configuration-modal[hidden] { display: none; }
.configuration-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(17, 24, 39, 0.52); }
.configuration-modal-panel { box-sizing: border-box; width: 100%; max-width: 520px; padding: 24px; background: #fff; border-radius: 10px; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2); }
.role-modal { align-items: flex-start; overflow-y: auto; }
.role-modal-panel { max-width: 1280px; margin: auto; }
.role-form-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 20px; }
.role-form-grid > .configuration-form-group { grid-column: span 2; }
.role-form-half-width { grid-column: span 3 !important; }
.role-form-full-width { grid-column: 1 / -1; }
.role-context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.role-context-panel { margin-bottom: 14px; padding: 14px 16px; border: 1px solid #cfe0ef; border-radius: 8px; background: #f4f9fd; color: #35465a; }
.role-context-panel strong { color: #1e5f91; font-size: 13px; }
.role-context-panel p { margin: 6px 0 0; white-space: pre-wrap; font-size: 13px; line-height: 1.5; }
.role-field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.role-ai-create-button { margin-bottom: 6px; padding: 7px 12px; border: 0; border-radius: 6px; background: #6d3bd1; color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.role-ai-create-button:disabled { opacity: .6; cursor: wait; }
.role-confidentiality-field { display: grid; grid-template-columns: auto minmax(0, 1fr); align-self: end; align-items: center; gap: 0 10px; padding: 12px 14px; border: 1px solid #e0e5eb; border-radius: 8px; background: #fafbfc; }
.role-confidentiality-field .role-field-label-row { grid-column: 2; grid-row: 1; display: block; }
.role-confidentiality-field .role-field-label-row label { margin: 0; cursor: pointer; }
.role-confidentiality-field input { grid-column: 1; grid-row: 1; margin: 0; }
.role-confidentiality-field .configuration-field-help, .role-confidentiality-field .configuration-field-error { grid-column: 1 / -1; }

@media (max-width: 1050px) {
    .role-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .role-form-grid > .configuration-form-group, .role-form-half-width { grid-column: span 1 !important; }
    .role-form-full-width { grid-column: 1 / -1; }
}
.configuration-delete-panel { max-width: 430px; }
.configuration-modal-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.configuration-modal-heading h2, .configuration-delete-panel h2 { margin: 0; color: #222; font-size: 21px; }
.configuration-modal-close { border: 0; background: none; color: #6b7280; font-size: 26px; cursor: pointer; }
.configuration-form-group { margin-bottom: 17px; }
.configuration-form-group label { display: block; margin-bottom: 6px; color: #374151; font-size: 14px; font-weight: 600; }
.configuration-form-control { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; font: inherit; resize: vertical; }
.configuration-form-control:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12); }
.configuration-checkbox-group { display: flex; align-items: center; gap: 9px; }
.configuration-checkbox-group label { margin: 0; }
.configuration-form-checkbox { width: 17px; height: 17px; }
.configuration-field-error { display: block; margin-top: 4px; color: #b42318; font-size: 12px; }
.configuration-field-help { display: block; margin-top: 5px; color: #6b7280; font-size: 12px; }
.configuration-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

@media (max-width: 700px) {
    .configuration-page-heading { align-items: flex-start; flex-direction: column; }
    .interview-policy-grid { grid-template-columns: 1fr; }
    .configuration-heading-actions { width: 100%; justify-content: space-between; }
    .role-form-grid { grid-template-columns: 1fr; }
    .role-form-grid > .configuration-form-group, .role-form-half-width, .role-form-full-width { grid-column: auto !important; }
    .role-context-grid { grid-template-columns: 1fr; }
}

.profile-page {
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
}

.profile-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    padding: 32px;
}

.profile-heading, .profile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-heading h1 { margin: 0 0 6px; color: #222; }
.profile-heading p { margin: 0; color: #6b7280; }
.profile-form section { margin-top: 28px; }
.profile-form h2 { font-size: 17px; color: #333; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; }
.profile-section-note { margin: -5px 0 15px; color: #6b7280; font-size: 13px; }
.profile-banking-section { padding: 18px; border: 1px solid #dbe6f2; border-radius: 8px; background: #fbfdff; }
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-name-grid { grid-template-columns: 0.65fr 1.4fr 1.4fr 1.4fr 0.65fr; }
.profile-field-wide { grid-column: 1 / -1; }
.profile-field-linkedin { grid-column: span 2; }
.profile-field label { display: block; margin-bottom: 6px; color: #374151; font-size: 14px; font-weight: 600; }
.profile-form-control { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; font-size: 15px; }
.profile-form-control:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12); }
.profile-readonly-grid div { background: #f8f9fa; border-radius: 6px; padding: 12px; }
.profile-readonly-grid span { display: block; color: #6b7280; font-size: 12px; margin-bottom: 4px; }
.profile-readonly-grid strong { color: #333; font-size: 14px; }
.profile-message, .profile-error { margin-top: 18px; padding: 10px 12px; border-radius: 6px; background: #eaf7ee; color: #246b38; }
.profile-error, .profile-field-error { color: #b42318; }
.profile-field-error { display: block; font-size: 12px; margin-top: 4px; }
.profile-field-help { display: block; margin-top: 5px; color: #6b7280; font-size: 12px; }
.profile-actions { justify-content: flex-end; margin-top: 30px; }
.profile-save-button, .profile-secondary-button, .profile-cancel-button { border-radius: 6px; padding: 10px 16px; text-decoration: none; font-size: 14px; cursor: pointer; }
.profile-save-button { border: 0; background: #007bff; color: #fff; font-weight: 600; }
.profile-save-button:disabled { cursor: wait; opacity: .75; }
.profile-save-spinner { display: none; width: 13px; height: 13px; box-sizing: border-box; margin-right: 6px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: profile-upload-spin .7s linear infinite; vertical-align: -2px; }
.profile-form-saving .profile-save-spinner { display: inline-block; }
.profile-secondary-button, .profile-cancel-button { border: 1px solid #d1d5db; background: #fff; color: #374151; }
.profile-headshot-section { display: grid; grid-template-columns: auto minmax(220px, 1fr) minmax(230px, auto); align-items: center; gap: 20px; margin: 26px 0 6px; padding: 20px; border: 1px solid #d8e4ef; border-radius: 13px; background: linear-gradient(135deg, #f8fbff, #f2f7fc); }
.profile-headshot-preview { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; overflow: hidden; border: 4px solid #fff; border-radius: 50%; background: linear-gradient(145deg, #397db7, #1e4e77); color: #fff; font-size: 30px; font-weight: 800; box-shadow: 0 6px 18px rgba(31, 76, 114, .18); }
.profile-headshot-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-headshot-copy { display: grid; gap: 5px; }
.profile-headshot-eyebrow { color: #2877b8; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.profile-headshot-copy h2 { margin: 0; border: 0; padding: 0; color: #27384a; font-size: 18px; }
.profile-headshot-copy p { max-width: 560px; margin: 0; color: #667587; font-size: 13px; line-height: 1.45; }
.profile-headshot-copy small { color: #9b3f38; font-size: 12px; }
.profile-headshot-status { justify-self: start; margin-top: 4px; padding: 5px 8px; border-radius: 999px; background: #e6f0f9; color: #35688f; font-size: 11px; font-weight: 800; }
.profile-headshot-status-accepted { background: #e5f5eb; color: #227044; }
.profile-headshot-status-rejected { background: #fde9e7; color: #a43c34; }
.profile-specimen-view-button { justify-self: start; margin-top: 3px; padding: 0; border: 0; background: transparent; color: #176ba7; font: inherit; font-size: 12px; font-weight: 800; text-decoration: underline; cursor: pointer; }
.profile-signature-dialog { width: min(520px, calc(100vw - 32px)); box-sizing: border-box; padding: 24px; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(21, 43, 65, .28); }
.profile-signature-dialog::backdrop { background: rgba(16, 32, 48, .58); }
.profile-signature-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.profile-signature-dialog-heading h2 { margin: 3px 0 0; color: #27384a; }
.profile-signature-dialog-close { width: 36px; height: 36px; padding: 0; border: 1px solid #c7d5e2; border-radius: 50%; background: #fff; color: #43586d; font-size: 25px; line-height: 1; cursor: pointer; }
.profile-signature-dialog-preview { display: flex; align-items: center; justify-content: center; min-height: 170px; margin-top: 20px; padding: 18px; border: 1px solid #d8e4ef; border-radius: 10px; background: #fff; }
.profile-signature-dialog-preview img { display: block; max-width: 100%; max-height: 220px; object-fit: contain; }
.profile-signature-dialog > p { margin: 14px 0 0; color: #667587; font-size: 12px; line-height: 1.5; }
.profile-headshot-form { display: grid; justify-items: stretch; gap: 8px; min-width: 220px; }
.profile-headshot-form label, .profile-headshot-form button { box-sizing: border-box; padding: 10px 13px; border-radius: 8px; font-size: 12px; font-weight: 800; text-align: center; cursor: pointer; }
.profile-headshot-form label { border: 1px solid #c7d5e2; background: #fff; color: #43586d; }
.profile-headshot-form input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.profile-headshot-filename { overflow: hidden; color: #718093; font-size: 11px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.profile-headshot-form button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: #2479bd; color: #fff; }
.profile-headshot-form button:disabled { cursor: wait; opacity: .78; }
.profile-upload-spinner { display: none; width: 13px; height: 13px; box-sizing: border-box; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: profile-upload-spin .7s linear infinite; }
.profile-headshot-form-uploading .profile-upload-spinner { display: inline-block; }
.profile-headshot-upload-status { min-height: 16px; color: #657487; font-size: 11px; line-height: 1.35; text-align: center; }
.profile-headshot-upload-status-error { color: #a43c34; font-weight: 700; }
.profile-headshot-upload-status-success { color: #227044; font-weight: 700; }
@keyframes profile-upload-spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
    .profile-card { padding: 22px; }
    .profile-grid, .profile-name-grid { grid-template-columns: 1fr; }
    .profile-heading { align-items: flex-start; flex-direction: column; }
    .profile-headshot-section { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .profile-headshot-copy { justify-items: center; }
    .profile-headshot-form { width: 100%; min-width: 0; }
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 36px;
    color: #333;
}

.dashboard-header p {
    font-size: 18px;
    color: #555;
}

.dashboard-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.nav-card {
    position: relative;
    width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-card-notification-count {
    position: absolute;
    top: 10px;
    right: 12px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #d92d20;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: #333;
}

.nav-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.nav-link span {
    font-size: 16px;
    font-weight: bold;
    color: #555;
}

/* ########## ASSIGNMENTS ########## */
.assignments-page { box-sizing: border-box; width: min(100% - 48px, 1400px); margin: 40px auto 90px; }
.assignments-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.assignments-page-heading h1 { margin: 0 0 6px; color: #252a31; font-size: 32px; }
.assignments-page-heading p { margin: 0; color: #6b7480; }
.assignments-heading-actions { display: flex; align-items: center; gap: 12px; }
.assignments-back-link, .assignments-primary-button { padding: 10px 14px; border-radius: 7px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.assignments-back-link { border: 1px solid #cfd6df; color: #4e5968; background: #fff; }
.assignments-primary-button { border: 1px solid #087df0; color: #fff; background: #087df0; }
.assignments-primary-button:hover { background: #0569cb; }
.assignments-table-card { overflow: hidden; border: 1px solid #e0e5eb; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(28, 39, 51, .05); }
.assignments-table-summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid #e7ebf0; color: #687586; }
.assignments-table-summary strong { color: #252a31; }
.assignments-table-scroll { overflow-x: auto; }
.assignments-table-modern { width: 100%; border-collapse: collapse; }
.assignments-table-modern th { padding: 13px 15px; background: #f5f7f9; color: #536071; font-size: 12px; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.assignments-table-modern td { padding: 16px 15px; border-top: 1px solid #e7ebf0; color: #374151; font-size: 14px; vertical-align: middle; }
.assignments-table-modern tbody tr:hover { background: #fafcff; }
.assignments-table-modern td small { display: block; margin-top: 5px; color: #778291; }
.assignments-contractor { color: #252a31; }
.assignments-skill { display: inline-flex; padding: 5px 9px; border-radius: 6px; color: #315a87; background: #eaf3fd; font-size: 12px; font-weight: 700; white-space: nowrap; }
.assignments-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.assignments-status-active { color: #177345; background: #e7f6ee; }
.assignments-status-inactive { color: #9c3131; background: #fdeaea; }
.assignments-row-actions { display: flex; align-items: center; gap: 9px; min-width: 120px; }
.assignments-edit-button { padding: 9px 14px; border-radius: 7px; background: #087df0; color: #fff; font-weight: 700; text-decoration: none; }
.assignments-delete-button { padding: 9px 5px; border: 0; background: transparent; color: #c33434; cursor: pointer; }
.assignments-backup-select { box-sizing: border-box; max-width: 210px; margin-top: 7px; padding: 8px 10px; border: 1px solid #cfd6df; border-radius: 7px; background: #fff; color: #303944; }
.assignments-empty-row { padding: 45px !important; text-align: center; color: #778291 !important; }
.assignments-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(17, 24, 39, .52); }
.assignments-modal[hidden] { display: none; }
.assignments-modal-panel { box-sizing: border-box; width: 100%; max-width: 430px; padding: 26px; border-radius: 12px; background: #fff; box-shadow: 0 20px 45px rgba(0, 0, 0, .2); }
.assignments-modal-panel h2 { margin: 0 0 10px; color: #252a31; }
.assignments-modal-panel p { color: #5d6875; line-height: 1.5; }
.assignments-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.assignments-modal-cancel, .assignments-modal-delete { padding: 10px 15px; border-radius: 7px; font-weight: 700; cursor: pointer; }
.assignments-modal-cancel { border: 1px solid #cfd6df; background: #fff; color: #4e5968; }
.assignments-modal-delete { border: 0; background: #c93636; color: #fff; }
.assignments-message { margin-bottom: 18px; padding: 14px 18px; border-radius: 8px; font-weight: 600; }
.assignments-message-error { border: 1px solid #f0caca; background: #fff1f1; color: #a92323; }
.assignments-message-success { border: 1px solid #bde5cc; background: #edf9f2; color: #177345; }
.assignments-filters { display: grid; grid-template-columns: minmax(180px, 1.25fr) minmax(150px, 1fr) minmax(180px, 1.15fr) minmax(125px, .7fr) auto; align-items: end; gap: 16px; margin-bottom: 20px; padding: 0 20px 20px; border: 1px solid #dce3eb; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(28, 39, 51, .04); }
.assignments-filter-heading { display: flex; grid-column: 1 / -1; justify-content: space-between; align-items: center; margin: 0 -20px; padding: 16px 20px; border-bottom: 1px solid #e7ebf0; }
.assignments-filter-heading > div { display: grid; gap: 3px; }
.assignments-filter-heading strong { color: #252a31; font-size: 15px; }
.assignments-filter-heading span { color: #778291; font-size: 12px; }
.assignments-filter-heading a { color: #087df0; font-size: 13px; font-weight: 700; text-decoration: none; }
.assignments-filter-field { display: grid; gap: 7px; min-width: 0; }
.assignments-filters label { color: #536071; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.assignments-filters select { box-sizing: border-box; width: 100%; height: 42px; padding: 0 36px 0 12px; border: 1px solid #cbd4df; border-radius: 8px; background-color: #fff; color: #374151; font-size: 14px; }
.assignments-filters select:focus { border-color: #087df0; outline: 0; box-shadow: 0 0 0 3px rgba(8, 125, 240, .12); }
.assignments-filter-actions { display: flex !important; grid-auto-flow: column; align-items: center; gap: 10px !important; }
.assignments-filter-actions button { height: 42px; padding: 0 17px; border: 0; border-radius: 8px; background: #087df0; color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap; }
.assignments-filter-actions button:hover { background: #0569cb; }
.assignments-filter-actions a { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; height: 42px; padding: 0 15px; border: 1px solid #cbd4df; border-radius: 8px; background: #fff; color: #687586; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.assignments-filter-actions a:hover { border-color: #9eabb9; background: #f7f9fb; }

.user-delete-page { box-sizing: border-box; width: min(100% - 48px, 1100px); margin: 40px auto 90px; }
.user-delete-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 22px; }
.user-delete-heading h1 { margin: 0 0 6px; color: #252a31; font-size: 32px; }
.user-delete-heading p { margin: 0; color: #687586; }
.user-delete-warning { margin-bottom: 18px; padding: 18px 20px; border: 1px solid #efc8c8; border-radius: 10px; background: #fff5f5; color: #8f2929; }
.user-delete-warning p { margin: 6px 0 0; line-height: 1.5; }
.user-delete-card { margin-bottom: 18px; padding: 24px; border: 1px solid #e0e5eb; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(28, 39, 51, .05); }
.user-delete-card-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.user-delete-card-heading h2 { margin: 0; font-size: 20px; }
.user-delete-card-heading span { color: #778291; font-size: 13px; }
.user-delete-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.user-delete-summary-grid > div { display: grid; gap: 3px; padding: 15px; border-radius: 8px; background: #f6f8fa; }
.user-delete-summary-grid strong { color: #252a31; font-size: 22px; }
.user-delete-summary-grid span { color: #687586; font-size: 12px; }
.user-delete-record-group { margin-top: 20px; }
.user-delete-record-group h3 { margin: 0 0 8px; color: #495463; font-size: 14px; }
.user-delete-record { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid #edf0f3; }
.user-delete-record small { color: #778291; text-align: right; }
.user-delete-confirm { display: grid; gap: 18px; padding: 22px; border: 1px solid #e0e5eb; border-radius: 12px; background: #fff; }
.user-delete-confirm label { display: flex; align-items: flex-start; gap: 10px; color: #4e5968; }
.user-delete-confirm > div { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.user-delete-danger { padding: 11px 16px; border: 0; border-radius: 7px; background: #c93636; color: #fff; font-weight: 700; cursor: pointer; }

@media (min-width: 761px) and (max-width: 1100px) {
    .assignments-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .assignments-filter-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 760px) {
    .user-delete-page { width: min(100% - 24px, 1100px); margin-top: 24px; }
    .user-delete-heading, .user-delete-card-heading, .user-delete-record { flex-direction: column; }
    .user-delete-summary-grid { grid-template-columns: repeat(2, 1fr); }
    .user-delete-record small { text-align: left; }
    .user-delete-confirm > div { flex-direction: column-reverse; }
    .user-delete-confirm > div > * { box-sizing: border-box; width: 100%; text-align: center; }
}

@media (max-width: 760px) {
    .assignments-page { width: min(100% - 24px, 1400px); margin-top: 24px; }
    .assignments-page-heading, .assignments-heading-actions { flex-direction: column; width: 100%; align-items: stretch; }
    .assignments-back-link, .assignments-primary-button { text-align: center; }
    .assignments-filters { grid-template-columns: 1fr; }
    .assignments-filter-heading { align-items: flex-start; }
    .assignments-filter-actions { justify-content: space-between; }
    .assignments-table-summary { padding: 15px; }
    .assignments-table-modern thead { display: none; }
    .assignments-table-modern, .assignments-table-modern tbody, .assignments-table-modern tr, .assignments-table-modern td { display: block; width: 100%; box-sizing: border-box; }
    .assignments-table-modern tr { padding: 14px 16px; border-top: 1px solid #e7ebf0; }
    .assignments-table-modern td { display: grid; grid-template-columns: 105px minmax(0, 1fr); padding: 8px 0; border: 0; }
    .assignments-table-modern td::before { content: attr(data-label); color: #778291; font-size: 12px; font-weight: 700; text-transform: uppercase; }
    .assignments-row-actions { display: flex !important; min-width: 0; }
    .assignments-row-actions::before { width: 100%; }
}

/* ########## ASSIGNMENTS FORM ########## */
.assignments-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.assignments-form-container h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.assignments-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.assignments-form-group {
    flex: 1 1 calc(50% - 15px);
    display: flex;
    flex-direction: column;
}

.assignments-form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.assignments-form-group input,
.assignments-form-group select {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.assignments-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.assignments-form-actions button,
.assignments-form-actions a {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.assignments-form-actions .btn-success {
    background-color: #28a745;
    color: #fff;
}

.assignments-form-actions .btn-success:hover {
    background-color: #218838;
}

.assignments-form-actions .btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.assignments-form-actions .btn-secondary:hover {
    background-color: #5a6268;
}


/* ########## EDIT ASSIGNMENT ########## */
.edit-assignment-container {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.edit-assignment-container h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

.edit-assignment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.edit-assignment-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.edit-assignment-form-group-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edit-assignment-form-group label {
    font-size: 14px;
    font-weight: bold;
    color: #495057;
}

.edit-assignment-form-select,
.edit-assignment-form-textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background-color: #fff;
    color: #495057;
}

.edit-assignment-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.edit-assignment-form-select:focus,
.edit-assignment-form-textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    outline: none;
}

.edit-assignment-form-group-inline input[type="checkbox"] {
    transform: scale(1.2);
    margin: 0;
}

.edit-assignment-form-actions {
    display: flex;
    justify-content: center;
}

.edit-assignment-form-submit {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.edit-assignment-form-submit:hover {
    background-color: #0056b3;
}

/* ########## ATTENDANCE TABLE ########## */
.attendance-container {
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    min-width: 80%;
}

.attendance-title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.ops-page .attendance-title {
    margin: 5px 0 8px;
    color: #172033;
    text-align: left;
}

.attendance-filter-container {
    align-items: center;
    justify-content: flex-start;
}

.attendance-filter-container .attendance-filter-dropdown {
    width: min(280px, 100%);
    margin-left: auto;
}

.attendance-table-wrap {
    overflow-x: auto;
    border-radius: 11px;
}

.ops-page .attendance-timesheet-table {
    min-width: 1120px;
    table-layout: fixed;
}

.attendance-col-period { width: 12%; }
.attendance-col-assignment { width: 15%; }
.attendance-col-status { width: 12%; }
.attendance-col-feedback { width: 19%; }
.attendance-col-client { width: 10%; }
.attendance-col-files { width: 18%; }
.attendance-col-action { width: 14%; }

.attendance-period-cell strong,
.attendance-period-cell span {
    display: block;
}

.attendance-period-cell strong {
    color: #263246;
    white-space: nowrap;
}

.attendance-period-cell span {
    margin-top: 3px;
    color: #718096;
    font-size: 11px;
    white-space: nowrap;
}

.attendance-assignment-cell { font-weight: 650; }
.attendance-status-cell { white-space: nowrap; }
.ops-page .attendance-status-cell .attendance-badge {
    max-width: 100%;
    white-space: nowrap;
}

.attendance-feedback {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.attendance-document-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.attendance-document-links .attendance-view-link {
    min-height: 30px;
    margin: 0;
    padding: 6px 9px;
    font-size: 11px;
}

.attendance-next-action .attendance-action-button {
    box-sizing: border-box;
    width: 100%;
    max-width: 180px;
    padding: 9px 12px;
    line-height: 1.3;
    text-decoration: none;
    white-space: normal;
}

@media (max-width: 760px) {
    .attendance-filter-container .attendance-filter-dropdown { width: 100%; margin-left: 0; }
}

.attendance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.attendance-table th, .attendance-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.attendance-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    text-transform: uppercase;
    color: #555;
}

.attendance-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.attendance-table tr:hover {
    background-color: #f1f1f1;
}

.attendance-empty-row {
    text-align: center;
    color: #777;
    font-style: italic;
    font-size: 14px;
}

.attendance-view-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid #b9d7f2;
    border-radius: 6px;
    background: #fff;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    margin: 3px 0;
    white-space: nowrap;
}

.attendance-view-link:hover {
    border-color: #78afe0;
    background: #f2f8fe;
}

.attendance-badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    color: #fff;
}

.attendance-badge-success {
    background-color: #28a745;
}

.attendance-badge-warning {
    background-color: #ffc107;
}

.attendance-badge-danger {
    background-color: #dc3545;
}

/* ########## ATTENDANCE SECTION ########## */
.attendance-filter-container {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.attendance-filter-label {
    font-weight: bold;
    font-size: 14px;
}

.attendance-filter-dropdown {
    width: 200px; /* Adjust width as needed */
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Modal Styles */
.attendance-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    padding: 24px;
    background-color: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
}

.attendance-modal-content {
    background-color: #fff;
    margin: 5vh auto;
    padding: 0;
    border: 0;
    width: min(680px, 100%);
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.attendance-modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.attendance-modal-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #0877b9;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.attendance-modal-header {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 750;
    color: #1e293b;
}

.attendance-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 25px;
    cursor: pointer;
}

.attendance-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.attendance-upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 28px 28px;
}

.attendance-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.attendance-label {
    font-size: .82rem;
    font-weight: 700;
    color: #334155;
}

.attendance-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.attendance-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.attendance-modal-submit-btn,
.attendance-modal-cancel-btn {
    display: inline-block;
    min-width: 104px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}

.attendance-modal-submit-btn {
    color: #fff;
    background-color: #087fc3;
    border: none;
    transition: background-color 0.2s ease-in-out;
}

.attendance-modal-submit-btn:hover {
    background-color: #0056b3;
}

.attendance-modal-cancel-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
}

.attendance-modal-cancel-btn:hover { background: #f8fafc; }

.attendance-days-helper-text {
    margin: 0;
    padding: 13px 15px;
    border-left: 4px solid #38a3dc;
    border-radius: 0 8px 8px 0;
    background: #f0f8fd;
    color: #334155;
    line-height: 1.5;
}

.attendance-invoice-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 18px;
}

.attendance-amount-field { grid-column: 1 / -1; }
.attendance-amount-field small,
.attendance-helper-text { color: #64748b; font-size: .78rem; }

.attendance-text-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 43px;
    padding: 9px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font: inherit;
}

.attendance-text-input:focus {
    border-color: #168bc9;
    outline: 3px solid rgba(22, 139, 201, .14);
}

.attendance-file-picker {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px dashed #94a3b8;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
}

.attendance-file-picker:hover { border-color: #168bc9; background: #f0f8fd; }
.attendance-file-picker-button {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #1e293b;
    font-weight: 700;
}

@media (max-width: 620px) {
    .attendance-modal { padding: 12px; }
    .attendance-modal-content { margin: 0 auto; }
    .attendance-modal-heading, .attendance-upload-form { padding-left: 20px; padding-right: 20px; }
    .attendance-invoice-fields { grid-template-columns: 1fr; }
    .attendance-amount-field { grid-column: auto; }
    .attendance-file-picker { align-items: flex-start; flex-direction: column; }
}

.upload-timesheet-message {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

/* Adjusting the width of number input boxes */
.attendance-number-input {
    width: 80px; /* Set to a narrower width */
    text-align: right; /* Align text to the right for better readability of numbers */
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Updated Action Button Styles */
.attendance-action-button {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    color: #fff;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease-in-out;
}

.attendance-action-button:hover {
    background-color: #218838;
}

/* ########## ATTENDANCE-PAYMENTS SECTION ########### */
.attendance-payments-container {
    margin: 20px auto;
    padding: 20px;
    max-width: 1200px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.attendance-payments-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.attendance-payments-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: #fff;
}

.attendance-payments-table th,
.attendance-payments-table td {
    padding: 10px;
    border: 1px solid #ccc;
}

.attendance-payments-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.attendance-payments-table tr:nth-child(even) {
    background-color: #f7f7f7;
}


/* ########## UPLOAD TIMESHEET ########## */
.upload-timesheet-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f8f9fa; /* Light background */
}

.upload-timesheet-card {
    background: none;
    border: none;
    box-shadow: none;
    max-width: 600px;
    width: 100%;
}

.upload-timesheet-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.upload-timesheet-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #495057;
    margin-bottom: 15px;
}

.upload-timesheet-group {
    margin-bottom: 15px;
}

.upload-timesheet-label {
    font-weight: bold;
    color: #495057;
}

.upload-timesheet-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    color: #495057;
}

.upload-timesheet-small-input {
    width: 80px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    text-align: center;
}

.upload-timesheet-info {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

.upload-timesheet-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    transition: background-color 0.3s ease;
}

.upload-timesheet-button:hover {
    background-color: #0056b3;
    cursor: pointer;
}

.upload-timesheet-message {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}

.upload-timesheet-error {
    color: red;
}

/* ########## ATTENDANCE HR ########## */
.attendance-container {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 80%;
}

.attendance-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.attendance-hr-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    table-layout: fixed; /* Prevents columns from shrinking unevenly */
}

.attendance-hr-table th,
.attendance-hr-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.attendance-hr-table > thead > tr > th:first-child,
.attendance-hr-table > tbody > .period-row > td:first-child {
    box-sizing: border-box;
    width: 140px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
}

.attendance-hr-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    white-space: normal;
}

.attendance-period-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #d7dee8;
    border-radius: 8px;
    background: #fff;
    color: #344258;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.attendance-period-toggle input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #087fcb;
}

.attendance-table .attendance-period-empty,
.attendance-hr-table .attendance-period-empty {
    padding: 24px;
    color: #68758a;
    text-align: center;
}

.ops-page .attendance-hr-table > thead > tr > th {
    box-sizing: border-box;
    overflow: hidden;
    white-space: normal !important;
    overflow-wrap: break-word;
    word-break: normal;
    text-overflow: clip;
    line-height: 1.35;
    vertical-align: middle;
}

.attendance-hr-table td {
    background-color: #ffffff;
}

.attendance-hr-table .green-highlight {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
}

.attendance-hr-table .expand-details {
    cursor: pointer;
    background: none;
    border: 1px solid #007bff;
    border-radius: 4px;
    color: #007bff;
    padding: 5px 10px;
    font-size: 12px;
}

.attendance-hr-table .expand-details:hover {
    background-color: #007bff;
    color: white;
}

.attendance-hr-table .expand-details:disabled {
    cursor: wait;
    opacity: .7;
}

.attendance-button-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: attendance-spin .7s linear infinite;
}

@keyframes attendance-spin {
    to { transform: rotate(360deg); }
}

.attendance-hr-status-dropdown {
    width: 150px; /* Ensure enough width for the options */
    height: auto; /* Allow the dropdown to expand */
    font-size: 14px; /* Adjust font size for readability */
    padding: 5px; /* Add padding for better spacing */
    border: 1px solid #ccc; /* Define a border for visibility */
    border-radius: 4px; /* Optional: round the edges */
    background-color: #fff; /* Set background color */
    color: #333; /* Set text color */
    appearance: auto; /* Ensure default browser styling */
    outline: none; /* Remove default outline */
    cursor: pointer; /* Change cursor to pointer */
}


/* Details Row */
.details-row {
    background-color: #f9f9f9;
    display: none;
    text-align: left;
}

.details-row table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.details-row th,
.details-row td {
    border: 1px solid #ddd;
    padding: 8px;
}

.details-row th {
    background-color: #e9ecef;
    font-weight: bold;
    text-align: left;
}

.details-row td {
    background-color: #ffffff;
}

.details-table {
    table-layout: auto;
}

.details-table .attendance-record-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: normal;
}

.view-record-details {
    padding: 7px 10px;
    border: 1px solid #087fcb;
    border-radius: 6px;
    background: #fff;
    color: #087fcb;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.view-record-details:hover {
    background: #087fcb;
    color: #fff;
}

/* ########## MODAL STYLING ########## */

/* General Modal Container (Shared) */
.attendance-hr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0%;
    width: 100%;
    height: auto;
    max-height: 90%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Shared Modal Content Styling */
.attendance-hr-modal-content {
    background-color: #fff;
    padding: 20px;
    max-height: 90%;
    overflow-y: auto;
    border-radius: 8px;
    width: 400px; /* Default width */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Specific Styling for Payment Modal */
#paymentsModal .attendance-hr-modal-content {
    width: 600px; /* Wider modal for forms */
    text-align: left; /* Align content to the left for form labels */
}

/* Shared Modal Header */
.attendance-hr-modal h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

/* Close Button Styling */
.attendance-hr-close {
    float: right;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
}

.attendance-hr-close:hover {
    color: #d9534f;
}

/* Form Styling for Payment Modal */
/* Payments Modal Styling */
#paymentsModal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
}

#paymentsModal .attendance-hr-modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 400px; /* Adjust modal width */
    max-width: 90%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin: auto;
}

#paymentsModal h3 {
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

/* Form Layout */
#paymentsForm .form-group {
    margin-bottom: 15px;
}

#paymentsForm label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    color: #555;
}

#paymentsForm input,
#paymentsForm textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#paymentsForm input[type="text"],
#paymentsForm input[type="number"],
#paymentsForm input[type="date"],
#paymentsForm textarea {
    max-width: 100%; /* Prevent overly wide fields */
}

#paymentsForm textarea {
    resize: vertical;
    min-height: 80px;
}

#paymentsForm button {
    display: block;
    width: 100%;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#paymentsForm button:hover {
    background-color: #45a049;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #paymentsModal .attendance-hr-modal-content {
        width: 90%;
    }
}

/* HR Review Modal Specific Styles */
.hr-review-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    height: auto; /* Adjusts height to fit the content dynamically */
    max-height: 90%; /* Ensures the modal doesn't grow too tall on smaller screens */
    width: 90%;
    z-index: 1000;
    overflow-y: auto;
    max-height: 90vh;
}

.hr-review-modal-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

.hr-review-modal .hr-review-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.hr-review-modal .hr-review-close:hover {
    color: #333;
}

.hr-review-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hr-review-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hr-review-label {
    font-size: 14px;
    font-weight: bold;
    color: #555;
}

.hr-review-input,
.hr-review-textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.hr-review-textarea {
    resize: none;
    height: 80px;
}

.hr-review-button {
    background-color: #28a745;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.hr-review-button:hover {
    background-color: #218838;
}


/* ########## ATTENDANCE CLIENT ########## */
.attendance-client-container {
    margin: 20px auto;
    max-width: 1000px;
    min-width: 80%;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.attendance-client-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.attendance-client-sort {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.attendance-client-sort label {
    font-size: 16px;
    font-weight: bold;
    margin-right: 10px;
}

.attendance-client-sort select {
    width: 200px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.attendance-client-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.attendance-client-table th,
.attendance-client-table td {
    text-align: left;
    padding: 10px;
    border: 1px solid #dee2e6;
}

.attendance-client-table th {
    background-color: #f1f3f5;
    font-weight: bold;
    font-size: 14px;
    color: #495057;
}

.attendance-client-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.attendance-client-table tr:hover {
    background-color: #e9ecef;
}

.attendance-client-actions {
    display: flex;
    gap: 10px;
}

.attendance-client-actions .btn {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.attendance-client-actions .btn-info {
    background-color: #17a2b8;
    color: white;
    border: none;
}

.attendance-client-actions .btn-info:hover {
    background-color: #138496;
}

.attendance-client-actions .btn-warning {
    background-color: #ffc107;
    color: white;
    border: none;
}

.attendance-client-actions .btn-warning:hover {
    background-color: #e0a800;
}

.attendance-client-actions .btn-success {
    background-color: #28a745;
    color: white;
    border: none;
}

.attendance-client-actions .btn-success:hover {
    background-color: #218838;
}

/* Attendance Client Modal */
.attendance-client-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.attendance-client-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 5px;
    width: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.attendance-client-close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.attendance-client-close-btn:hover,
.attendance-client-close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.attendance-client-modal-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.attendance-client-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    font-size: 14px;
    margin-bottom: 20px;
}

.attendance-client-modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.attendance-client-submit-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.attendance-client-submit-btn:hover {
    background-color: #0056b3;
}

/* ########## USER MANAGEMENT ########## */
.users-page { box-sizing: border-box; width: min(100% - 48px, 1400px); margin: 40px auto 90px; }
.users-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.users-page-heading h1 { margin: 0 0 6px; color: #252a31; font-size: 32px; }
.users-page-heading p { margin: 0; color: #6b7480; }
.users-heading-actions { display: flex; align-items: center; gap: 14px; }
.users-create-card { display: grid; gap: 18px; max-width: 720px; padding: 24px; border: 1px solid #dfe4ea; border-radius: 10px; background: #fff; }
.users-create-card input:not([type="checkbox"]), .users-create-card select { box-sizing: border-box; width: 100%; padding: 10px 12px; border: 1px solid #cbd2da; border-radius: 6px; }
.users-create-card small { color: #6b7480; }
.users-form-errors { color: #b42318; }
.users-back-link { padding: 10px 14px; border: 1px solid #cfd6df; border-radius: 7px; color: #4e5968; text-decoration: none; background: #fff; white-space: nowrap; }
.users-back-link:hover { border-color: #087df0; color: #087df0; }
.users-filter-card { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; padding: 20px; border: 1px solid #e0e5eb; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(28, 39, 51, .04); }
.users-filter-field { display: grid; gap: 7px; min-width: 210px; }
.users-filter-field label { color: #536071; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.users-filter-field select, .users-profile-select { box-sizing: border-box; padding: 10px 12px; border: 1px solid #cfd6df; border-radius: 7px; background: #fff; color: #303944; font-size: 14px; }
.users-filter-button, .users-edit-button { padding: 11px 17px; border: 0; border-radius: 7px; background: #087df0; color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; }
.users-filter-button:hover, .users-edit-button:hover { background: #0569cb; }
.users-table-card { overflow: hidden; border: 1px solid #e0e5eb; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(28, 39, 51, .05); }
.users-table-summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #e7ebf0; color: #536071; }
.users-table-summary strong { color: #252a31; }
.users-table-scroll { overflow-x: auto; }
.users-table { width: 100%; border-collapse: collapse; }
.users-table th { padding: 13px 16px; background: #f5f7f9; color: #536071; font-size: 12px; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.users-table td { padding: 16px; border-top: 1px solid #e7ebf0; color: #374151; font-size: 14px; vertical-align: middle; }
.users-table tbody tr:hover { background: #fafcff; }
.users-name, .users-email, .users-table td small { display: block; }
.users-name { margin-bottom: 5px; color: #252a31; }
.users-email { color: #687586; font-size: 13px; text-decoration: none; }
.users-table td small { margin-top: 5px; color: #778291; }
.users-muted { color: #8a94a1; }
.users-profile-badge, .users-status { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.users-profile-badge { color: #315a87; background: #eaf3fd; }
.users-document-gates { display: flex; gap: 6px; }
.users-document-gate { display: inline-flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.users-document-gate i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.users-document-gate.is-complete { color: #18733c; background: #e8f7ee; }
.users-document-gate.is-incomplete { color: #b42318; background: #fdeceb; }
.users-document-gate.is-override { color: #8a5700; background: #fff3d6; }
.users-profile-2 { color: #6941a5; background: #f0eafa; }
.users-profile-4 { color: #9a5b08; background: #fff3d9; }
.users-status-active { color: #177345; background: #e7f6ee; }
.users-status-inactive { color: #9c3131; background: #fdeaea; }
.users-row-actions { display: flex; align-items: center; gap: 9px; min-width: 335px; }
.users-profile-select { width: 150px; padding: 9px 10px; }
.users-delete-button { padding: 9px 6px; border: 0; background: transparent; color: #c33434; cursor: pointer; }
.users-empty-row { padding: 45px !important; text-align: center; color: #778291 !important; }
.users-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 16px 20px; border-top: 1px solid #e7ebf0; color: #687586; font-size: 13px; }
.users-pagination a { width: max-content; padding: 8px 12px; border: 1px solid #cfd6df; border-radius: 6px; color: #087df0; text-decoration: none; }
.users-pagination a:last-child { justify-self: end; }
.users-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(17, 24, 39, .52); }
.users-modal[hidden] { display: none; }
.users-modal-panel { box-sizing: border-box; width: 100%; max-width: 430px; padding: 26px; border-radius: 12px; background: #fff; box-shadow: 0 20px 45px rgba(0, 0, 0, .2); }
.users-modal-panel h2 { margin: 0 0 10px; color: #252a31; }
.users-modal-panel p { color: #5d6875; }
.users-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.users-modal-cancel, .users-modal-delete { padding: 10px 15px; border-radius: 7px; font-weight: 700; cursor: pointer; }
.users-modal-cancel { border: 1px solid #cfd6df; background: #fff; color: #4e5968; }
.users-modal-delete { border: 0; background: #c93636; color: #fff; text-decoration: none; }

@media (max-width: 760px) {
    .users-page { width: min(100% - 24px, 1400px); margin-top: 24px; }
    .users-page-heading { flex-direction: column; }
    .users-filter-card { display: grid; grid-template-columns: 1fr; }
    .users-filter-field { min-width: 0; }
    .users-table-summary { padding: 15px; }
    .users-table thead { display: none; }
    .users-table, .users-table tbody, .users-table tr, .users-table td { display: block; width: 100%; box-sizing: border-box; }
    .users-table tr { padding: 14px 16px; border-top: 1px solid #e7ebf0; }
    .users-table td { display: grid; grid-template-columns: 105px minmax(0, 1fr); padding: 8px 0; border: 0; }
    .users-table td::before { content: attr(data-label); color: #778291; font-size: 12px; font-weight: 700; text-transform: uppercase; }
    .users-row-actions { display: flex !important; min-width: 0; flex-wrap: wrap; }
    .users-row-actions::before { width: 100%; }
    .users-pagination { padding: 14px; }
}

#recordDetailsModal,
#recordedDaysModal {
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    padding: 24px;
    box-sizing: border-box;
}

#recordDetailsModal .attendance-record-modal-content,
#recordedDaysModal .attendance-record-modal-content {
    box-sizing: border-box;
    width: min(980px, 100%);
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 20px;
    text-align: left;
}

#recordedDaysModal .attendance-record-modal-content {
    width: min(560px, 100%);
}

#recordedDaysModal .close-recorded-days {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.attendance-record-state,
.attendance-record-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.attendance-record-section-heading {
    margin-bottom: 8px;
}

.attendance-record-section-heading h4 {
    margin: 0;
}

.attendance-record-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 4px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #526075;
    cursor: pointer;
}

.attendance-record-icon-button:hover,
.attendance-record-icon-button:focus-visible {
    background: #e0e6ee;
    color: #17456a;
}

#recordDetailsModal h3,
#recordedDaysModal h3 {
    margin: 0 28px 12px 0;
}

.attendance-record-modal-intro {
    margin: -8px 28px 16px 0;
    color: #65738a;
    font-size: 14px;
}

.attendance-record-tabs {
    display: flex;
    gap: 4px;
    margin: 14px 0 0;
    border-bottom: 1px solid #ccd7e3;
}

.attendance-record-tab {
    padding: 10px 14px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #65738a;
    font-weight: 700;
    cursor: pointer;
}

.attendance-record-tab:hover,
.attendance-record-tab:focus-visible { color: #0878c1; background: #f3f7fb; }
.attendance-record-tab.is-active { border-bottom-color: #1581cc; color: #17456a; }
.attendance-record-tab-panel[hidden] { display: none; }
.attendance-record-section-intro { margin: 0 0 12px; color: #65738a; font-size: 13px; }
.attendance-record-log-scroll { overflow-x: auto; }
.attendance-record-log-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13px; }
.attendance-record-log-table th,
.attendance-record-log-table td { padding: 9px 10px; border: 1px solid #e0e6ee; text-align: left; vertical-align: top; }
.attendance-record-log-table th { color: #526075; background: #eef3f8; white-space: nowrap; }
.attendance-record-log-table th:nth-child(3),
.attendance-record-log-table th:nth-child(4),
.attendance-record-log-table td:nth-child(3),
.attendance-record-log-table td:nth-child(4) { text-align: right; white-space: nowrap; }

.attendance-record-close {
    border: 0;
    background: transparent;
}

.attendance-record-summary {
    display: grid;
    grid-template-columns: minmax(140px, .55fr) minmax(260px, 1.7fr) minmax(140px, .65fr);
    gap: 8px;
    margin: 12px 0;
}

.attendance-record-workflow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 12px 0;
    padding: 14px 16px;
    border: 1px solid #bed6eb;
    border-left: 4px solid #1581cc;
    border-radius: 8px;
    background: #f2f8fd;
}

.attendance-record-workflow > div { display: grid; gap: 5px; }
.attendance-record-eyebrow,
.attendance-record-status-control > span {
    color: #526075;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.attendance-record-status-badge { color: #27384a; font-size: 19px; }
.attendance-record-status-control { display: grid; min-width: 230px; gap: 5px; }
.attendance-record-status-control .attendance-hr-status-dropdown { width: 100%; }
.attendance-record-no-actions {
    color: #65738a;
    font-size: 13px;
    font-weight: 700;
}
.attendance-record-workflow-actions { display: grid; justify-items: end; gap: 8px; }
.attendance-record-delete {
    border: 0;
    padding: 0;
    color: #a52222;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.attendance-record-delete:hover,
.attendance-record-delete:focus-visible { color: #751717; }
.attendance-record-delete:disabled { cursor: wait; opacity: .65; }

.attendance-record-summary div,
.attendance-record-section {
    padding: 10px;
    border: 1px solid #e0e6ee;
    border-radius: 8px;
    background: #f8fafc;
}

.attendance-record-summary dt,
.attendance-record-section h4 {
    margin: 0 0 6px;
    color: #526075;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.attendance-record-summary dd,
.attendance-record-notes p {
    margin: 0;
    overflow-wrap: anywhere;
}

.attendance-record-section {
    margin-top: 10px;
}

.attendance-record-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.attendance-record-stat {
    padding: 10px;
    border-radius: 6px;
    background: #fff;
    text-align: center;
}

.attendance-record-stat span,
.attendance-record-stat strong {
    display: block;
}

.attendance-record-stat span {
    min-height: 22px;
    color: #65738a;
    font-size: 11px;
}

.attendance-record-balances,
.attendance-record-files {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.attendance-record-balances span,
.attendance-record-files a {
    padding: 8px 10px;
    border-radius: 6px;
    background: #fff;
}

.attendance-record-balances span {
    border: 1px solid #dfe7ef;
    color: #526075;
    font-size: 13px;
}
.attendance-record-balances span strong { margin-left: 5px; color: #26384a; }
.attendance-record-balances .is-sufficient { border-color: #b9dfc8; background: #f1faf4; }
.attendance-record-balances .is-insufficient { border-color: #efc2ba; background: #fff5f3; }

.attendance-record-allocation { margin-top: 10px; }
.attendance-record-allocation h5 { margin: 0 0 6px; color: #526075; font-size: 12px; }
.attendance-record-allocation-scroll { overflow-x: auto; }
.attendance-record-allocation table { width: 100%; border-collapse: collapse; background: #fff; font-size: 12px; }
.attendance-record-allocation th,
.attendance-record-allocation td { padding: 7px 8px; border: 1px solid #e0e6ee; text-align: right; white-space: nowrap; }
.attendance-record-allocation th:first-child,
.attendance-record-allocation td:first-child { text-align: left; }
.attendance-record-allocation td small { display: block; margin-top: 2px; color: #65738a; }
.attendance-record-allocation-warning { margin: 8px 0 0; color: #a33a2b; font-weight: 700; }

.attendance-record-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.attendance-record-notes > div {
    padding: 8px;
    border-radius: 6px;
    background: #fff;
}

.attendance-record-notes p {
    margin-top: 8px;
    line-height: 1.35;
}

.attendance-record-section h5 {
    margin: 16px 0 8px;
    color: #526075;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.attendance-record-audit-history {
    display: grid;
    gap: 7px;
}

.attendance-record-audit-event {
    display: grid;
    gap: 3px;
    padding: 9px 10px;
    border: 1px solid #dfe7ef;
    border-radius: 6px;
    background: #fff;
}

.attendance-record-audit-event span,
.attendance-record-audit-event small {
    color: #65738a;
    font-size: 12px;
}

.attendance-record-files a {
    border: 1px solid #b9d5eb;
    color: #0878c1;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.attendance-record-files a:hover,
.attendance-record-files a:focus-visible { border-color: #0878c1; background: #eef7fd; }

.attendance-record-archived {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #dfe7ef;
}
.attendance-record-archived > strong { display: block; margin-bottom: 8px; color: #526075; }
.attendance-record-archived > div { margin-top: 7px; }
.attendance-record-archived a { color: #0878c1; font-weight: 700; }
.attendance-record-archived small { display: block; margin-top: 3px; color: #65738a; }

.attendance-record-empty {
    color: #65738a;
}

@media (max-width: 600px) {
    .attendance-record-summary,
    .attendance-record-notes {
        grid-template-columns: 1fr;
    }

    .attendance-record-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attendance-record-workflow { align-items: stretch; flex-direction: column; gap: 12px; }
    .attendance-record-status-control { min-width: 0; }
}

/* ########## THREE_P_USERS EDIT USER ########## */
.three_p_users-edit-page {
    box-sizing: border-box;
    width: min(100% - 48px, 1200px);
    margin: 40px auto 90px;
}

.three_p_users-edit-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.three_p_users-edit-heading h1 { margin: 0 0 6px; font-size: 32px; color: #252a31; }
.three_p_users-edit-heading p, .three_p_users-section-heading p { margin: 0; color: #6b7480; }
.three_p_users-edit-heading-actions { display: flex; align-items: center; gap: 14px; }
.three_p_users-edit-heading-actions form { margin: 0; }
.three_p_users-switch-user {
    padding: 9px 14px;
    border: 1px solid #0878df;
    border-radius: 6px;
    color: #fff;
    background: #0878df;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}
.three_p_users-switch-user:hover { background: #0068c7; }
.three_p_users-edit-form { display: grid; gap: 20px; }
.three_p_users-sticky-context {
    position: sticky;
    top: 12px;
    z-index: 8;
    padding: 7px;
    background: rgba(244, 247, 251, .96);
    border: 1px solid #dce3eb;
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(28, 39, 51, .08);
    backdrop-filter: blur(8px);
}
.three_p_users-record-identity {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 5px 10px 7px;
    color: #586474;
    font-size: 13px;
}
.three_p_users-record-identity strong { color: #263342; }
.three_p_users-record-label {
    color: #748091;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.three_p_users-record-divider { width: 1px; height: 15px; background: #cbd4df; }
.three_p_users-tabs { display: flex; gap: 6px; overflow-x: auto; }
.three_p_users-tab {
    flex: 0 0 auto;
    padding: 10px 15px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #586474;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.three_p_users-tab:hover { background: #eaf2fb; color: #185a96; }
.three_p_users-tab[aria-selected="true"] { background: #0878df; color: #fff; box-shadow: 0 3px 9px rgba(0, 97, 189, .24); }
.three_p_users-tab:focus-visible { outline: 3px solid rgba(0, 123, 255, .25); outline-offset: 2px; }
.three_p_users-form-section[hidden] { display: none !important; }
.three_p_users-form-section {
    padding: 28px;
    background: #fff;
    border: 1px solid #e0e5eb;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(28, 39, 51, .05);
}
.three_p_users-section-heading { margin-bottom: 22px; }
.three_p_users-section-heading h2 { margin: 0 0 5px; font-size: 19px; color: #252a31; }
.three_p_users-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; }
.three_p_users-form-group { display: flex; flex-direction: column; gap: 7px; }
.three_p_users-form-group[hidden], .three_p_users-assignment-panel[hidden] { display: none !important; }
.three_p_users-form-group label { font-size: 13px; font-weight: 700; color: #495463; }

.three_p_users-form-input,
.three_p_users-form-select,
.three_p_users-edit-page .profile-form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #cfd6df;
    border-radius: 7px;
    font-size: 15px;
    background-color: #fff;
    color: #495057;
}

.three_p_users-form-input:focus,
.three_p_users-form-select:focus,
.three_p_users-edit-page .profile-form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, .12);
}
.three_p_users-field-error { color: #b42318; font-size: 12px; }
.three_p_users-edit-page button.is-processing::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 7px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: three-p-users-spin .7s linear infinite;
}
@keyframes three-p-users-spin { to { transform: rotate(360deg); } }
.three_p_users-assignment-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; padding: 20px; border-radius: 9px; background: #f5f9ff; border: 1px solid #d9e9ff; }
.three_p_users-account-section { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.three_p_users-account-section .three_p_users-section-heading { grid-column: 1 / -1; }
.three_p_users-password-reset { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 15px; border: 1px solid #c9d7e8; border-radius: 8px; background: #f5f9ff; }
.three_p_users-password-reset > div { display: grid; flex: 1; gap: 4px; }
.three_p_users-password-reset strong { color: #303944; font-size: 14px; }
.three_p_users-password-reset small { color: #657180; font-size: 12px; }
.three_p_users-password-reset .three_p_users-small-button { flex: 0 0 auto; }
.three_p_users-password-dialog { width: min(100% - 32px, 480px); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 24px 70px rgba(21, 34, 50, .28); }
.three_p_users-password-dialog::backdrop { background: rgba(19, 31, 45, .58); backdrop-filter: blur(2px); }
.three_p_users-password-dialog-content { display: grid; gap: 16px; padding: 30px; text-align: center; }
.three_p_users-password-dialog-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; background: #e6f7ec; color: #18733c; font-size: 25px; font-weight: 700; }
.three_p_users-password-dialog h2 { margin: 0; color: #252a31; font-size: 22px; }
.three_p_users-password-dialog p { margin: 0; color: #657180; font-size: 14px; line-height: 1.5; }
.three_p_users-password-dialog code { padding: 13px; border: 1px solid #94c7a5; border-radius: 7px; background: #effaf3; color: #173c25; font-size: 17px; overflow-wrap: anywhere; user-select: all; }
.three_p_users-password-dialog-actions { display: flex; justify-content: flex-end; gap: 14px; margin-top: 4px; }
.three_p_users-password-dialog-actions .three_p_users-form-cancel { border: 0; background: transparent; cursor: pointer; }
.three_p_users-password-dialog-actions .three_p_users-small-button { min-width: 120px; }
.three_p_users-toggle { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid #e0e5eb; border-radius: 8px; cursor: pointer; }
.three_p_users-toggle input { margin-top: 3px; }
.three_p_users-toggle span { display: grid; gap: 3px; }
.three_p_users-toggle strong { color: #303944; font-size: 14px; }
.three_p_users-toggle small { color: #75808d; font-size: 12px; }
.three_p_users-work-status { margin-bottom: 20px; }
.three_p_users-gate-statuses { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.three_p_users-gate { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid; border-radius: 999px; font-size: 12px; }
.three_p_users-gate i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.three_p_users-gate.is-complete { color: #18733c; background: #edf9f1; border-color: #a9dbba; }
.three_p_users-gate.is-incomplete { color: #a92323; background: #fff1f1; border-color: #f0caca; }
.three_p_users-gate.is-override { color: #8a5700; background: #fff7df; border-color: #ead08a; }
.three_p_users-document-upload { display: grid; grid-template-columns: 1fr 1.4fr 1fr auto; align-items: start; gap: 14px; margin-bottom: 20px; padding: 18px; background: #f5f9ff; border: 1px solid #d9e9ff; border-radius: 8px; }
.three_p_users-document-upload small { color: #75808d; font-size: 12px; }
.three_p_users-document-upload .three_p_users-form-submit { height: 43px; margin-top: 24px; white-space: nowrap; }
.three_p_users-documents-table-wrap { overflow-x: auto; border: 1px solid #e0e5eb; border-radius: 8px; }
.three_p_users-documents-table { width: 100%; border-collapse: collapse; color: #374151; }
.three_p_users-documents-table th { padding: 12px 14px; background: #f8f9fa; color: #4b5563; font-size: 12px; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.three_p_users-documents-table td { padding: 14px; border-top: 1px solid #e9edf2; font-size: 14px; }
.three_p_users-documents-table td small { display: block; margin-top: 5px; color: #75808d; }
.three_p_users-documents-table a { color: #006bd6; text-decoration: none; }
.three_p_users-row-gates span { display: inline-block; margin-right: 4px; padding: 2px 5px; color: #345c87; background: #eaf3ff; border-radius: 3px; font-weight: 700; }
.three_p_users-muted { color: #89929e; }
.three_p_users-document-state { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.three_p_users-document-state.is-complete { color: #18733c; background: #edf9f1; }
.three_p_users-document-state.is-missing, .three_p_users-document-state.is-rejected, .three_p_users-document-state.is-expired { color: #a92323; background: #fff1f1; }
.three_p_users-document-state.is-pending, .three_p_users-document-state.is-renewal { color: #8a5700; background: #fff7df; }
.three_p_users-small-button { padding: 7px 10px; color: #fff; background: #007bff; border: 0; border-radius: 5px; cursor: pointer; }
.three_p_users-document-actions { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; min-width: max-content; }
.three_p_users-link-button { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 34px; padding: 7px 11px; border: 1px solid #b9d7f2; border-radius: 6px; background: #fff; color: #006bd6; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.three_p_users-link-button:hover { border-color: #78afe0; background: #f2f8fe; }
.three_p_users-link-button.is-danger { border-color: #efcaca; color: #b42318; }
.three_p_users-link-button.is-danger:hover { border-color: #dc8f88; background: #fff5f4; }
.three_p_users-upload-row td { padding: 0; background: #f5f9ff; }
.three_p_users-upload-panel { display: grid; grid-template-columns: minmax(190px, 1fr) minmax(240px, 1.5fr) minmax(190px, 1fr) auto; align-items: start; gap: 18px; padding: 18px 20px; border-top: 1px solid #d9e9ff; border-bottom: 1px solid #d9e9ff; }
.three_p_users-upload-panel > div, .three_p_users-upload-panel label { display: grid; gap: 6px; color: #4b5563; font-size: 12px; font-weight: 700; }
.three_p_users-upload-panel small { margin: 0; font-weight: 400; }
.three_p_users-upload-panel input { box-sizing: border-box; width: 100%; min-height: 39px; padding: 7px 9px; background: #fff; border: 1px solid #cfd7e2; border-radius: 5px; }
.three_p_users-upload-panel .three_p_users-small-button { min-height: 39px; margin-top: 24px; white-space: nowrap; }
.three_p_users-documents-empty { color: #75808d; text-align: center; }
.three_p_users-form-errors { margin-bottom: 20px; padding: 14px 18px; color: #a92323; background: #fff1f1; border: 1px solid #f0caca; border-radius: 8px; }
.three_p_users-form-errors p { margin: 3px 0; }
.three_p_users-form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }

.three_p_users-form-submit {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.three_p_users-form-submit:hover {
    background-color: #0056b3;
}

.three_p_users-form-cancel {
    padding: 10px 4px;
    font-size: 14px;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.three_p_users-form-cancel:hover {
    color: #333;
}

@media (max-width: 768px) {
    .three_p_users-edit-page { width: min(100% - 24px, 1040px); margin: 24px auto; }
    .three_p_users-edit-heading { align-items: flex-start; }
    .three_p_users-edit-heading-actions { align-items: flex-end; flex-direction: column-reverse; }
    .three_p_users-form-section { padding: 20px; }
    .three_p_users-sticky-context { top: 6px; margin-inline: -2px; }
    .three_p_users-record-identity { flex-wrap: wrap; gap: 5px 8px; }
    .three_p_users-form-grid, .three_p_users-assignment-panel, .three_p_users-account-section { grid-template-columns: 1fr; }
    .three_p_users-account-section .three_p_users-section-heading { grid-column: auto; }
    .three_p_users-password-reset { grid-column: auto; align-items: stretch; flex-direction: column; }
    .three_p_users-password-reset .three_p_users-small-button { width: 100%; }
    .three_p_users-password-dialog-content { padding: 24px 20px; }
    .three_p_users-password-dialog-actions { flex-direction: column-reverse; }
    .three_p_users-password-dialog-actions .three_p_users-form-cancel, .three_p_users-password-dialog-actions .three_p_users-small-button { box-sizing: border-box; width: 100%; }
    .three_p_users-form-actions { flex-direction: column-reverse; }
    .three_p_users-form-submit, .three_p_users-form-actions .three_p_users-form-cancel { box-sizing: border-box; width: 100%; text-align: center; }
    .three_p_users-upload-panel { grid-template-columns: 1fr; }
}

/* ########## AUTHENTICATED APPLICATION SHELL ########## */
.authenticated-shell {
    background: #f4f7fb;
    color: #263342;
}

.authenticated-shell .layout-wrapper {
    padding-left: 270px;
}

.authenticated-shell .modern-header {
    left: 270px;
    width: calc(100% - 270px);
    height: 72px;
    padding: 0 28px;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 3px 14px rgba(26, 44, 68, .04);
}

.authenticated-shell .modern-header .header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-page-name {
    color: #263342;
    font-size: 17px;
    font-weight: 800;
}

.sidebar-toggle,
.app-sidebar-close {
    display: none;
    border: 0;
    background: transparent;
    color: #33475b;
    cursor: pointer;
}

.authenticated-shell .main-content {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 104px 32px 78px;
    background:
        radial-gradient(circle at 88% 5%, rgba(43, 129, 215, .08), transparent 28%),
        #f4f7fb;
}

.authenticated-shell footer {
    left: 270px;
    width: calc(100% - 270px);
    box-sizing: border-box;
    border-top: 1px solid #e4e9f0;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    width: 270px;
    box-sizing: border-box;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 8%, rgba(63, 149, 234, .22), transparent 25%),
        linear-gradient(165deg, #16293c 0%, #102235 48%, #0b1c2d 100%);
    color: #fff;
    box-shadow: 12px 0 35px rgba(15, 33, 51, .14);
}

.app-sidebar-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 23px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.app-sidebar-brand img {
    display: block;
    width: 152px;
    max-height: 43px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.cascade-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 16px;
}

.cascade-group {
    position: relative;
    margin-bottom: 12px;
    padding: 5px 7px 8px;
    border-radius: 12px;
}

.cascade-group-active {
    background: rgba(255, 255, 255, .055);
}

.cascade-group-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 34px;
    color: #dce8f4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
}

button.cascade-group-heading {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    letter-spacing: .065em;
    text-align: left;
    cursor: pointer;
}

.cascade-group-toggle::after {
    content: "+";
    margin-left: auto;
    color: #78b8ed;
    font-size: 17px;
    font-weight: 500;
}

.cascade-group-collapsible .cascade-children { display: none; }
.cascade-group-collapsible.cascade-group-pinned .cascade-children { display: block; }
.cascade-group-collapsible.cascade-group-pinned .cascade-group-toggle::after { content: "−"; }

.cascade-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border: 1px solid rgba(149, 202, 255, .28);
    border-radius: 9px;
    background: rgba(62, 142, 222, .12);
    color: #8cc8ff;
    font-size: 11px;
}

.cascade-children {
    position: relative;
    margin: 3px 0 1px 13px;
    padding: 2px 0 2px 25px;
}

.cascade-children::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 14px;
    left: 0;
    width: 1px;
    background: linear-gradient(#4d91ca, rgba(77, 145, 202, .12));
}

.cascade-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 35px;
    gap: 8px;
    padding: 2px 9px 2px 0;
    border-radius: 8px;
    color: #aebfd0;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .16s ease, background .16s ease, transform .16s ease;
}

.cascade-link:hover {
    color: #fff;
    transform: translateX(2px);
}

.cascade-link-active {
    color: #fff;
    background: linear-gradient(90deg, rgba(44, 137, 225, .2), transparent);
}

.cascade-node {
    position: absolute;
    left: -29px;
    width: 7px;
    height: 7px;
    border: 2px solid #4e8bbd;
    border-radius: 50%;
    background: #102235;
}

.cascade-link-active .cascade-node {
    border-color: #90d0ff;
    background: #3a9beb;
    box-shadow: 0 0 0 4px rgba(58, 155, 235, .14);
}

.cascade-label {
    flex: 1;
}

.cascade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    box-sizing: border-box;
    padding: 0 6px;
    border-radius: 999px;
    background: #d95b52;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.app-sidebar-account {
    flex: 0 0 auto;
    display: grid;
    gap: 2px;
    padding: 17px 22px 20px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.app-sidebar-account a,
.app-sidebar-account button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 7px;
    border: 0;
    background: transparent;
    color: #b5c6d6;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.app-sidebar-account a:hover,
.app-sidebar-account button:hover {
    color: #fff;
}

.app-sidebar-account form {
    margin: 0;
}

.app-sidebar-scrim {
    display: none;
}

/* ########## ROLE DASHBOARDS ########## */
.role-dashboard {
    width: min(100%, 1380px);
    margin: 0 auto;
}

.role-dashboard-heading {
    position: static;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: auto;
    padding: 0;
    margin-bottom: 25px;
    overflow: visible;
    background: transparent;
    color: inherit;
}

.role-dashboard-heading h1 {
    margin: 5px 0 6px;
    color: #1f2d3d;
    font-size: clamp(27px, 3vw, 37px);
    letter-spacing: -.035em;
}

.role-dashboard-heading p {
    margin: 0;
    color: #687789;
    font-size: 15px;
}

.role-dashboard-eyebrow,
.dashboard-card-kicker {
    color: #2d80cb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.role-dashboard-date {
    padding: 9px 12px;
    border: 1px solid #dce5ef;
    border-radius: 9px;
    background: rgba(255, 255, 255, .7);
    color: #647386;
    font-size: 13px;
    font-weight: 700;
}

.dashboard-hero-card,
.dashboard-priority-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 20px;
    padding: 28px 30px;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 83% 15%, rgba(98, 184, 255, .26), transparent 28%),
        linear-gradient(135deg, #193c5d, #236da9);
    color: #fff;
    box-shadow: 0 15px 35px rgba(28, 80, 124, .18);
}

.dashboard-hero-card h2,
.dashboard-priority-strip h2 {
    margin: 6px 0 8px;
    font-size: 24px;
}

.dashboard-hero-card p {
    margin: 0 0 18px;
    color: #d8e9f7;
}

.dashboard-hero-card .dashboard-card-kicker,
.dashboard-priority-strip .dashboard-card-kicker {
    color: #a8d8ff;
}

.dashboard-primary-action {
    display: inline-flex;
    padding: 10px 15px;
    border-radius: 9px;
    background: #fff;
    color: #1e6098;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-hero-stat {
    display: grid;
    flex: 0 0 170px;
    gap: 5px;
    padding-left: 25px;
    border-left: 1px solid rgba(255, 255, 255, .22);
}

.dashboard-hero-stat strong {
    overflow-wrap: anywhere;
    font-size: 31px;
    line-height: 1.05;
}

.dashboard-hero-stat-status {
    flex-basis: 250px;
}

.dashboard-hero-stat-status strong {
    overflow-wrap: normal;
    font-size: clamp(22px, 2vw, 31px);
    white-space: nowrap;
}

.dashboard-hero-stat span {
    color: #c9e0f2;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-stat-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.dashboard-stat-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-stat-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stat-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard-stat-card {
    position: relative;
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 21px;
    border: 1px solid #e0e7ef;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(35, 56, 78, .055);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    border-color: #b7d3ec;
    box-shadow: 0 12px 28px rgba(35, 75, 112, .1);
}

.dashboard-stat-card > span {
    color: #607084;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-stat-card > strong {
    color: #1f3448;
    font-size: 30px;
}

.dashboard-stat-card > .dashboard-stat-text {
    overflow: hidden;
    font-size: 19px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-stat-card small {
    color: #7b8795;
    font-size: 12px;
}

.dashboard-stat-alert::before {
    content: "";
    position: absolute;
    top: 18px;
    right: 18px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e56d63;
    box-shadow: 0 0 0 5px rgba(229, 109, 99, .1);
}

.dashboard-two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 20px;
}

.dashboard-panel {
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e0e7ef;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(35, 56, 78, .05);
}

.dashboard-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #edf1f5;
}

.dashboard-panel-heading h2 {
    margin: 4px 0 0;
    color: #26384a;
    font-size: 18px;
}

.dashboard-panel-heading > a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid #b9d7f2;
    border-radius: 6px;
    background: #fff;
    color: #287bc3;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.dashboard-panel-heading > a:hover { border-color: #78afe0; background: #f2f8fe; }

.dashboard-list {
    display: grid;
}

.dashboard-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 22px;
    border-bottom: 1px solid #edf1f5;
    color: inherit;
    text-decoration: none;
}

.dashboard-list-row:last-child {
    border-bottom: 0;
}

a.dashboard-list-row:hover {
    background: #f8fbfe;
}

.dashboard-list-row > div {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.dashboard-list-row strong {
    overflow: hidden;
    color: #2c3a49;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-list-row div span {
    color: #7a8794;
    font-size: 12px;
}

.dashboard-status {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eaf3fb;
    color: #346b98;
    font-size: 11px;
    font-weight: 800;
}
.dashboard-role-statuses { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; white-space: nowrap; }
.dashboard-status-viewed { background: #f0f2f5; color: #5d6875; }
.dashboard-status-applied { background: #e7f6ee; color: #177345; }

.dashboard-empty {
    padding: 28px 22px;
    color: #788593;
    font-size: 14px;
}

.dashboard-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: #edf1f5;
}

.dashboard-detail-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-detail-grid-assignment {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-detail-grid > div,
.dashboard-detail-grid > a {
    display: grid;
    gap: 7px;
    min-height: 65px;
    padding: 21px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.dashboard-detail-grid span {
    color: #748191;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-detail-grid strong {
    color: #293c50;
    font-size: 17px;
}

.dashboard-detail-grid .workorders-deadline { margin-top: 0; font-size: 12px; text-transform: none; }
.dashboard-detail-grid .workorders-estimate-details small { color: #748191; font-size: 12px; font-weight: 400; text-transform: none; }

.payments-due-section { margin-bottom: 24px; padding: 20px; border: 1px solid #cfe1f3; border-radius: 12px; background: #f7fbff; }
.payments-due-heading { margin-bottom: 16px; }
.payments-due-heading h2 { margin: 4px 0 6px; color: #293c50; font-size: 21px; }
.payments-due-heading p { margin: 0; color: #617184; font-size: 13px; }
.payments-due-table-wrap { overflow-x: auto; }
.payments-due-table td small, .payments-due-table td span { display: block; margin-top: 4px; color: #6f7c8d; }
.payments-due-table td strong + small { font-size: 11px; }

@media (max-width: 1100px) {
    .dashboard-stat-grid-four,
    .dashboard-stat-grid-five {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .authenticated-shell .layout-wrapper {
        width: 100%;
        padding-left: 0;
    }

    .authenticated-shell .modern-header {
        left: 0;
        width: 100%;
        padding: 0 16px;
    }

    .authenticated-shell .main-content {
        width: 100%;
        padding: 92px 14px 70px;
    }

    .authenticated-shell footer {
        left: 0;
        width: 100%;
    }

    .app-sidebar {
        width: min(290px, 88vw);
        transform: translateX(-105%);
        transition: transform .22s ease;
    }

    .sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-sidebar-close,
    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
    }

    .app-sidebar-close {
        color: #fff;
    }

    .app-sidebar-scrim {
        position: fixed;
        inset: 0;
        z-index: 1400;
        border: 0;
        background: rgba(5, 18, 31, .55);
    }

    .sidebar-open .app-sidebar-scrim {
        display: block;
    }

    .role-dashboard-heading,
    .dashboard-hero-card,
    .dashboard-priority-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-hero-stat {
        width: 100%;
        box-sizing: border-box;
        padding: 18px 0 0;
        border-top: 1px solid rgba(255, 255, 255, .22);
        border-left: 0;
    }

    .dashboard-stat-grid-three,
    .dashboard-stat-grid-four,
    .dashboard-stat-grid-five {
        grid-template-columns: 1fr;
    }

    .dashboard-detail-grid,
    .dashboard-detail-grid-two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .authenticated-shell .modern-header .user-info,
    .authenticated-shell .modern-header .icon-link {
        display: none;
    }

    .role-dashboard-date {
        display: none;
    }

    .dashboard-hero-card,
    .dashboard-priority-strip {
        padding: 23px 20px;
    }

    .dashboard-list-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* HR application review workspace */
.application-review-page {
    width: min(1380px, calc(100% - 48px));
    margin: 28px auto 64px;
    align-self: flex-start;
    color: #172033;
}
.application-review-sticky {
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 8px 20px rgba(36, 55, 83, .06);
}
.application-review-topline,
.application-review-header,
.application-review-tabs,
.application-review-section-heading,
.application-review-layout,
.application-ai-summary,
.application-ai-score-grid,
.application-ai-columns {
    display: flex;
}
.application-review-topline {
    justify-content: space-between;
    margin-bottom: 14px;
    color: #647087;
    font-size: 13px;
}
.application-review-header {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    align-items: center;
    gap: 24px;
    padding: 15px 20px;
    border: 1px solid #e2e7ef;
    border-radius: 14px 14px 0 0;
    background: #fff;
    color: #172033;
    overflow: visible;
    box-sizing: border-box;
}
.application-review-identity { flex: 1.4; min-width: 0; }
.application-review-role { flex: 1; display: grid; gap: 5px; }
.application-review-state { display: grid; justify-items: end; gap: 7px; }
.application-review-header h1 { margin: 2px 0 5px; font-size: 21px; line-height: 1.15; }
.application-review-role span,
.application-eyebrow {
    color: #68758b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.application-review-role strong { font-size: 17px; }
.application-review-role small,
.application-review-state small { color: #6c778a; }
.application-review-contact { display: flex; flex-wrap: wrap; gap: 5px 15px; font-size: 12px; }
.application-review-contact a { color: #087ac1; }
.application-review-status,
.application-review-gate,
.application-ai-recommendation {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f2fc;
    color: #075f9e;
    font-size: 12px;
    font-weight: 700;
}
.application-review-gate.is-complete { background: #e5f5eb; color: #187a42; }
.application-review-gate.is-incomplete { background: #fff0df; color: #9a5b0a; }
.application-review-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    padding: 0 20px;
    border: 1px solid #e2e7ef;
    border-top: 0;
    background: #fff;
    overflow: hidden;
}
.application-review-progress {
    padding: 13px 20px 15px;
    border: 1px solid #e2e7ef;
    border-top: 0;
    background: #fff;
}
.application-review-progress h2 {
    margin: 0 0 3px;
    color: #536075;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.application-progress-summary { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.application-progress-current-marker { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #0878ce; color: #fff; font-size: 12px; font-weight: 800; }
.application-progress-summary > div:nth-child(2) > strong { display: block; color: #263449; font-size: 14px; }
.application-progress-summary > div:nth-child(2) > small { display: block; margin-top: 2px; color: #748093; font-size: 11px; }
.application-progress-summary-action { display: flex; align-items: center; gap: 18px; }
.application-progress-summary-action > span { color: #748093; font-size: 11px; white-space: nowrap; }
.application-progress-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #d6dfe8; border-radius: 7px; background: #fff; color: #344056; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.application-progress-toggle:hover { border-color: #8bc5ed; background: #f0f8fe; color: #0872bb; }
.application-full-progress { margin-top: 14px; padding-top: 14px; border-top: 1px solid #e5eaf0; }
.application-full-progress[hidden] { display: none; }
.application-review-progress ol {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}
.application-review-progress li {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 8px;
    align-items: center;
    min-width: 0;
    padding-right: 12px;
}
.application-review-progress li:not(:last-child)::after {
    position: absolute;
    top: 13px;
    right: 4px;
    left: 36px;
    height: 2px;
    background: #dce3eb;
    content: "";
}
.application-progress-marker {
    z-index: 1;
    display: grid;
    width: 28px;
    height: 28px;
    grid-row: 1 / span 2;
    place-items: center;
    border-radius: 50%;
    background: #e3e9f0;
    color: #59677a;
    font-size: 11px;
    font-weight: 800;
}
.application-review-progress strong,
.application-review-progress small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.application-review-progress strong { z-index: 1; grid-column: 2; color: #344056; font-size: 11px; }
.application-review-progress small { grid-column: 2; color: #748093; font-size: 10px; }
.application-review-progress .is-complete .application-progress-marker { background: #2da65b; color: #fff; }
.application-review-progress .is-complete:not(:last-child)::after { background: #8fd0a5; }
.application-review-progress .is-current .application-progress-marker { background: #0878ce; color: #fff; }
.application-review-progress .is-current strong { color: #0872bb; }
.application-review-progress .is-stopped .application-progress-marker { background: #c83f49; color: #fff; }
.application-review-progress .is-stopped strong,
.application-review-progress .is-stopped small { color: #a32d36; }
.application-review-tabs a {
    display: flex;
    min-width: 0;
    min-height: 54px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    box-sizing: border-box;
    padding: 15px 10px 10px;
    border-bottom: 3px solid transparent;
    color: #566176;
    font-size: 13px;
    text-decoration: none;
}
.application-review-tabs a:hover { background: #f4f9fd; color: #0872bb; }
.application-review-tabs a strong { font: inherit; font-weight: 700; white-space: nowrap; }
.application-review-tabs a.is-active { border-color: #0b82d4; color: #086cab; }
.application-review-tabs span {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-top: 7px;
    padding: 2px 6px;
    border-radius: 9px;
    background: #edf1f6;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.application-review-subtabs { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 20px; border: 1px solid #e2e7ef; border-top: 0; background: #f8fafc; }
.application-review-subtabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 7px; color: #5e6b7e; font-size: 12px; font-weight: 700; text-decoration: none; }
.application-review-subtabs a:hover { background: #eaf4fb; color: #0872bb; }
.application-review-subtabs a.is-active { background: #e3f1fb; color: #0872bb; }
.application-review-subtabs span { padding: 2px 6px; border-radius: 9px; background: #fff; color: #68758b; font-size: 10px; }
.application-commercial-stage-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.application-commercial-stage-list > div {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 15px;
    border: 1px solid #dfe6ee;
    border-radius: 9px;
    background: #f8fafc;
}
.application-commercial-stage-list span {
    display: grid;
    width: 27px;
    height: 27px;
    grid-row: 1 / span 2;
    place-items: center;
    border-radius: 50%;
    background: #e3e9f0;
    color: #59677a;
    font-size: 11px;
    font-weight: 800;
}
.application-commercial-stage-list strong { color: #344056; font-size: 13px; }
.application-commercial-stage-list small { margin-top: 3px; color: #748093; font-size: 11px; }
.application-commercial-stage-list .is-complete span { background: #2da65b; color: #fff; }
.application-commercial-stage-list .is-current { border-color: #8bc5ed; background: #f0f8fe; }
.application-commercial-stage-list .is-current span { background: #0878ce; color: #fff; }
.application-commercial-stage-list .is-current strong { color: #0872bb; }
.application-commercial-task-list { margin: 4px -24px -24px; border-top: 1px solid #e2e7ef; }
.application-commercial-task { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid #e2e7ef; color: #344056; text-decoration: none; }
.application-commercial-task:last-child { border-bottom: 0; }
.application-commercial-task.is-actionable:hover { background: #f0f8fe; }
.application-commercial-task-number { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #e3e9f0; color: #59677a; font-size: 11px; font-weight: 800; }
.application-commercial-task > span:nth-child(2) { display: grid; gap: 3px; min-width: 0; }
.application-commercial-task strong { font-size: 13px; }
.application-commercial-task small { color: #748093; font-size: 11px; }
.application-commercial-task em { color: #8792a3; font-size: 11px; font-style: normal; white-space: nowrap; }
.application-commercial-task.is-current .application-commercial-task-number { background: #0878ce; color: #fff; }
.application-commercial-task.is-current strong,
.application-commercial-task.is-current em { color: #0872bb; font-weight: 700; }
.application-commercial-task.is-complete .application-commercial-task-number { background: #2da65b; color: #fff; }
.application-commercial-task.is-complete em { color: #23864b; font-weight: 700; }
.application-commercial-release-form { margin: 0; }
.application-commercial-release-form .application-primary-button { min-width: 150px; padding: 9px 13px; }
.application-workorder-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.application-workorder-status { display: grid; justify-items: end; gap: 4px; flex: 0 0 auto; padding: 10px 12px; border-radius: 8px; background: #f0f3f7; color: #526176; }
.application-workorder-status strong { font-size: 12px; }
.application-workorder-status span { font-size: 10px; }
.application-workorder-status.is-saved { background: #edf6fc; color: #0872bb; }
.application-workorder-status.is-approved_release,
.application-workorder-status.is-released,
.application-workorder-status.is-approved { background: #e5f5eb; color: #187a42; }
.application-workorder-summary-note { display: block; margin-top: 4px; color: #748093; font-size: 10px; }
.workorders-current-reference { margin-bottom: 18px; padding: 20px 22px; border: 1px solid #dce4ed; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(30, 48, 73, .05); color: #26364a; }
.workorders-current-reference-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 14px; border-bottom: 1px solid #e7ecf2; }
.workorders-current-reference-heading h2 { margin: 4px 0 0; color: #26364a; font-size: 20px; line-height: 1.2; }
.workorders-current-reference-badge { padding: 6px 10px; border: 1px solid #cfe0ef; border-radius: 999px; background: #eef6fc; color: #17669f; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.workorders-current-reference-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 4px; }
.workorders-current-reference-grid div { display: grid; align-content: start; gap: 5px; min-height: 66px; padding: 14px 18px 12px 0; border-bottom: 1px solid #edf1f5; }
.workorders-current-reference-grid div:nth-child(3n+2), .workorders-current-reference-grid div:nth-child(3n+3) { padding-left: 18px; border-left: 1px solid #edf1f5; }
.workorders-current-reference-grid span { color: #68788d; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.workorders-current-reference-grid strong { color: #26364a; font-size: 13px; line-height: 1.4; }
.workorders-current-reference-grid strong small { display: block; margin-top: 2px; color: #77879a; font-size: 10px; font-weight: 500; }
.workorders-current-reference-grid strong .workorders-legacy-missing { color: #77879a; font-size: 12px; font-style: italic; font-weight: 500; letter-spacing: 0; text-transform: none; }
.workorders-current-reference-notice { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #f2f7fb; color: #52667d; font-size: 12px; line-height: 1.5; }
.workorders-current-reference-notice strong { flex: 0 0 auto; color: #285f8d; }
.application-commercial-signed-link { color: #23864b; font-size: 11px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.client-workorder-list { border: 1px solid #e1e7ee; border-radius: 10px; overflow: hidden; }
.client-workorder-row { display: grid; grid-template-columns: 1fr 1.35fr 1.2fr auto auto; align-items: center; gap: 18px; padding: 16px 18px; border-bottom: 1px solid #e6ebf0; }
.client-workorder-row:last-child { border-bottom: 0; }
.client-workorder-row > div { display: grid; gap: 4px; min-width: 0; }
.client-workorder-row strong { color: #263449; font-size: 13px; }
.client-workorder-row small { color: #748093; font-size: 11px; }
.client-workorder-page { box-sizing: border-box; width: min(100% - 48px, 1080px); margin: 40px auto 90px; }
.client-workorder-card { padding: 26px; border: 1px solid #e0e5eb; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(28,39,51,.05); }
.client-workorder-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.client-workorder-header h2 { margin: 0 0 6px; }
.client-workorder-header p { margin: 0; color: #67748a; }
.client-workorder-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0; border: 1px solid #e2e7ef; border-radius: 9px; overflow: hidden; }
.client-workorder-summary > div { display: grid; gap: 5px; padding: 14px; border-right: 1px solid #e2e7ef; }
.client-workorder-summary > div:last-child { border-right: 0; }
.client-workorder-summary span { color: #748093; font-size: 11px; }
.client-workorder-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.client-workorder-upload-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 16px; margin-top: 22px; padding: 18px; border-radius: 9px; background: #f6f9fb; }
.client-workorder-upload-form label { color: #263449; font-weight: 700; }
.client-workorder-upload-form p { grid-column: 1; margin: 0; color: #748093; font-size: 11px; }
.client-workorder-upload-form input { grid-column: 1; padding: 10px; border: 1px solid #cfd8e2; border-radius: 7px; background: #fff; }
.client-workorder-upload-form button { grid-column: 2; grid-row: 1 / span 3; }
.client-workorder-uploaded { margin-top: 12px; color: #23864b; font-size: 12px; font-weight: 700; }
.application-review-layout { align-items: flex-start; gap: 20px; margin-top: 20px; }
.application-review-main { flex: 1; min-width: 0; display: grid; gap: 18px; }
.application-decision-rail { position: sticky; top: 150px; width: 330px; display: grid; gap: 14px; }
.application-review-card {
    padding: 24px;
    border: 1px solid #e2e7ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(36, 55, 83, .05);
}
.application-review-card h2,
.application-review-card h3 { margin-top: 0; }

/* Client endorsement response */
.client-endorsement-response { width: min(860px, calc(100% - 48px)); }
.client-endorsement-summary { padding: 32px; }
.client-endorsement-summary > h1 { margin: 6px 0 22px; color: #142033; font-size: 30px; }
.client-endorsement-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.client-endorsement-detail-heading h1 { margin: 6px 0 0; color: #142033; font-size: 30px; }
.client-endorsement-summary > p { color: #26364b; line-height: 1.65; }
.client-endorsement-role-card {
    margin: 24px 0;
    padding: 16px 18px;
    border-left: 4px solid #1687cf;
    background: #f3f7fa;
}
.client-endorsement-role-card span { display: block; margin-bottom: 6px; color: #60738a; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.client-endorsement-role-card strong { display: block; color: #18304a; }
.client-endorsement-role-card p { margin: 4px 0 0; color: #40526a; line-height: 1.5; }
.client-endorsement-summary > h2 { margin: 28px 0 12px; color: #142033; font-size: 21px; }
.client-endorsement-copy,
.client-endorsement-profile { color: #26364b; font-size: 14px; line-height: 1.65; }
.client-endorsement-action-card { margin-top: 18px; padding: 28px 32px; scroll-margin-top: 24px; }
.client-endorsement-decision-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.client-endorsement-decision-switch > a { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 15px; border: 1px solid #d7e0e9; border-radius: 9px; background: #fafbfd; color: #445268; text-decoration: none; }
.client-endorsement-decision-switch > a > span { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; background: #e9eef4; font-weight: 800; }
.client-endorsement-decision-switch > a > div { display: grid; min-width: 0; gap: 3px; }
.client-endorsement-decision-switch strong { font-size: 13px; }
.client-endorsement-decision-switch small { color: #748095; font-size: 10px; }
.client-endorsement-decision-switch > a:hover { border-color: #a9bfd2; background: #f5f9fc; }
.client-endorsement-decision-switch > .is-active { box-shadow: 0 0 0 2px rgba(8,127,203,.1); }
.client-endorsement-decision-switch > .is-active.is-proceed { border-color: #6fbe8d; background: #f0faf4; color: #18723d; }
.client-endorsement-decision-switch > .is-active.is-proceed > span { background: #dff2e6; }
.client-endorsement-decision-switch > .is-active.is-reject { border-color: #de938e; background: #fdf3f2; color: #9c2922; box-shadow: 0 0 0 2px rgba(180,35,24,.08); }
.client-endorsement-decision-switch > .is-active.is-reject > span { background: #f8dfdd; }
.client-availability-form { display: grid; gap: 20px; }
.client-availability-placement { overflow: hidden; border: 1px solid #dbe5ee; border-radius: 10px; background: #f7fafc; }
.client-availability-placement > div:first-child { padding: 14px 16px 12px; border-bottom: 1px solid #e2e9f0; }
.client-availability-placement > div:first-child span { display: block; margin-bottom: 4px; color: #087ac1; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.client-availability-placement > div:first-child strong { color: #243149; font-size: 13px; }
.client-availability-placement > div:first-child p { margin: 4px 0 0; color: #6f7c90; font-size: 10px; }
.client-availability-placement-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 16px 16px; background: #fff; }
.client-availability-placement-fields > div { display: grid; min-width: 0; gap: 6px; }
.client-availability-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.client-availability-settings > div { display: grid; min-width: 0; gap: 6px; }
.client-availability-settings > div:first-child { grid-column: 1 / -1; }
.client-availability-settings label,
.client-availability-placement-fields label,
.client-availability-window-fields label { color: #344159; font-size: 11px; font-weight: 800; }
.client-availability-settings select,
.client-availability-settings input,
.client-availability-placement-fields input,
.client-availability-window-fields input { width: 100%; min-width: 0; box-sizing: border-box; padding: 11px 12px; border: 1px solid #cfd9e5; border-radius: 7px; background: #fff; color: #26344b; font: inherit; }
.client-availability-settings select:focus,
.client-availability-settings input:focus,
.client-availability-placement-fields input:focus,
.client-availability-window-fields input:focus { border-color: #1688cf; outline: 3px solid rgba(22,136,207,.12); }
.client-availability-input-suffix { position: relative; }
.client-availability-input-suffix input { padding-right: 62px; }
.client-availability-placement-fields .client-availability-input-suffix input { padding-right: 78px; }
.client-availability-input-suffix span { position: absolute; top: 50%; right: 12px; color: #78859a; font-size: 10px; transform: translateY(-50%); }
.client-availability-windows { display: grid; gap: 12px; }
.client-availability-window[hidden],
.client-availability-add[hidden] { display: none; }
.client-availability-window { padding: 16px; border: 1px solid #dce4ed; border-radius: 10px; background: #f9fbfd; }
.client-availability-window > div:first-child { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 12px; margin-bottom: 13px; }
.client-availability-window > div:first-child > span { grid-column: 1; color: #78859a; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.client-availability-window > div:first-child > strong { grid-column: 1; color: #233149; font-size: 13px; }
.client-availability-remove { grid-row: 1 / 3; grid-column: 2; padding: 5px 7px; border: 0; background: transparent; color: #a73730; cursor: pointer; font-size: 10px; font-weight: 800; }
.client-availability-window-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.client-availability-window-fields > div { display: grid; min-width: 0; gap: 6px; }
.client-availability-form .errorlist { margin: 0; padding: 0; color: #b42318; font-size: 10px; list-style: none; }
.client-availability-add { width: fit-content; margin-top: -8px; }
.client-availability-add span { margin-right: 4px; font-size: 15px; }
.client-availability-form > .application-primary-button { width: fit-content; }
.client-availability-warning { display: grid; gap: 4px; padding: 13px 15px; border: 1px solid #efc46c; border-radius: 8px; background: #fff9eb; color: #6f4d08; }
.client-availability-warning strong { font-size: 12px; }
.client-availability-warning span { font-size: 10px; line-height: 1.5; }
.client-conference-edit { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e4e9ef; }
.client-conference-edit summary { color: #087ac1; cursor: pointer; font-size: 11px; font-weight: 800; }
.client-conference-edit form { margin-top: 12px; }
.client-amend-availability { display: inline-flex; width: fit-content; margin-top: 14px; text-decoration: none; }
.client-endorsement-action-card > p { margin: -2px 0 22px; color: #5f6e82; line-height: 1.55; }
.client-endorsement-action-card .application-review-form > p { display: grid; gap: 7px; margin: 0 0 16px; }
.client-endorsement-action-card .application-review-form label { color: #28364a; font-size: 13px; font-weight: 700; }
.client-endorsement-action-card .application-review-form input:not([type="radio"]),
.client-endorsement-action-card .application-review-form select,
.client-endorsement-action-card .application-review-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #ccd6e2;
    border-radius: 7px;
    background: #fff;
    color: #26364b;
    font: inherit;
}
.client-endorsement-action-card .application-review-form textarea { resize: vertical; }
.client-endorsement-action-card .application-primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 210px; }
.client-endorsement-action-card .client-reject-button { background: #b42318; }
.client-endorsement-action-card .button-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: interview-spin .7s linear infinite; }

/* Client recruitment workspace */
.client-recruitment-page { width: min(1360px, calc(100% - 56px)); margin: 34px auto 70px; color: #172033; }
.client-recruitment-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.client-recruitment-hero h1 { margin: 6px 0 7px; font-size: 32px; line-height: 1.15; }
.client-recruitment-hero p { margin: 0; color: #68758a; font-size: 15px; }
.client-recruitment-attention { display: flex; align-items: center; gap: 13px; min-width: 260px; padding: 14px 16px; border: 1px solid #c7e2f5; border-radius: 12px; background: #f1f8fd; }
.client-recruitment-attention > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: #087fcb; color: #fff; font-size: 18px; font-weight: 800; }
.client-recruitment-attention div { display: grid; gap: 3px; }
.client-recruitment-attention strong { font-size: 13px; }
.client-recruitment-attention small { color: #65758b; font-size: 11px; }
.client-recruitment-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.client-recruitment-metrics article { display: grid; min-height: 118px; align-content: center; padding: 18px 20px; border: 1px solid #e0e7ef; border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(36,55,83,.045); }
.client-recruitment-metrics span { color: #68758a; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.client-recruitment-metrics strong { margin: 5px 0 2px; color: #142033; font-size: 28px; line-height: 1; }
.client-recruitment-metrics small { color: #7a8698; font-size: 11px; }
.client-recruitment-section { margin-top: 18px; padding: 24px; border: 1px solid #e0e7ef; border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(36,55,83,.045); }
.client-recruitment-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.client-recruitment-section-heading h2 { margin: 4px 0 0; color: #172033; font-size: 21px; }
.client-recruitment-count { padding: 6px 10px; border-radius: 999px; background: #edf2f7; color: #5c697c; font-size: 11px; font-weight: 800; }
.client-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.client-role-card { padding: 20px; border: 1px solid #dfe6ee; border-radius: 11px; background: #fbfcfe; }
.client-role-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.client-role-card-topline > span:first-child { color: #66758a; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.client-role-card h3 { margin: 14px 0 5px; color: #152238; font-size: 19px; }
.client-role-card > p { margin: 0 0 17px; color: #6b778a; font-size: 12px; }
.client-role-card dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding-top: 15px; border-top: 1px solid #e4e9ef; }
.client-role-card dl div { min-width: 0; }
.client-role-card dt { margin-bottom: 4px; color: #7b8798; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.client-role-card dd { margin: 0; color: #2c3a50; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.client-recruitment-status { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #edf2f7; color: #56657a; font-size: 10px; font-weight: 800; line-height: 1.2; }
.client-recruitment-status.is-open,
.client-recruitment-status.is-interview_scheduled,
.client-recruitment-status.is-client_accepted { background: #e6f5eb; color: #207a43; }
.client-recruitment-status.is-released { background: #e8f3fc; color: #096aab; }
.client-recruitment-status.is-availability_submitted { background: #fff4dd; color: #8b5c08; }
.client-recruitment-status.is-client_rejected { background: #fdecec; color: #a62d35; }
.client-endorsement-list { overflow: hidden; border: 1px solid #e0e6ed; border-radius: 10px; }
.client-endorsement-list-header,
.client-endorsement-row { display: grid; grid-template-columns: 1.35fr 1.1fr .9fr 1.1fr .72fr; gap: 18px; align-items: center; }
.client-endorsement-list-header { padding: 11px 16px; background: #f5f7fa; color: #6a778a; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.client-endorsement-row { min-height: 74px; padding: 14px 16px; border-top: 1px solid #e5e9ef; }
.client-endorsement-row:first-of-type { border-top: 0; }
.client-endorsement-row > div { display: grid; min-width: 0; gap: 4px; }
.client-endorsement-row strong { color: #27364b; font-size: 12px; }
.client-endorsement-row small { color: #778396; font-size: 10px; }
.client-endorsement-candidate { display: flex !important; align-items: center; gap: 11px !important; }
.client-endorsement-candidate > span { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 50%; background: #e5f2fb; color: #0875bd; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.client-endorsement-candidate > div { display: grid; gap: 3px; min-width: 0; }
.client-endorsement-action { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; color: #0875bd; font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.client-endorsement-action:hover { color: #075c94; }
.client-endorsement-muted { color: #8a94a4; font-size: 11px; }
.client-recruitment-empty { display: flex; align-items: center; gap: 14px; padding: 24px; border: 1px dashed #d5dde7; border-radius: 10px; background: #fafbfd; }
.client-recruitment-empty > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #e8f3fc; color: #0875bd; font-weight: 800; }
.client-recruitment-empty strong { color: #2b394d; }
.client-recruitment-empty p { margin: 4px 0 0; color: #728094; font-size: 12px; }

/* Client endorsement editor */
.endorsement-workspace { width: min(1180px, calc(100% - 48px)); }
.endorsement-back-row { margin-bottom: 16px; }
.endorsement-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #46566d;
    font-weight: 700;
    text-decoration: none;
}
.endorsement-back-link:hover { color: #0878ce; }
.endorsement-editor-card { padding: 0; overflow: hidden; }
.endorsement-editor-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 32px 24px;
    border-bottom: 1px solid #e8ecf2;
}
.endorsement-editor-header h1 { margin: 5px 0 7px; color: #142033; font-size: 28px; line-height: 1.2; }
.endorsement-editor-header p { max-width: 670px; margin: 0; color: #68758a; font-size: 14px; line-height: 1.55; }
.endorsement-header-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.endorsement-header-actions .endorsement-submit-button { min-width: 164px; }
.endorsement-status-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 7px 11px;
    border: 1px solid #d9e1eb;
    border-radius: 999px;
    background: #f5f7fa;
    color: #536177;
    font-size: 12px;
    font-weight: 800;
}
.endorsement-status-badge.is-draft { border-color: #f0d49b; background: #fff8e8; color: #8a5b08; }
.endorsement-status-badge.is-released,
.endorsement-status-badge.is-interview_scheduled { border-color: #a9d9bb; background: #f0faf4; color: #207a43; }
.endorsement-context-grid {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.4fr);
    gap: 1px;
    border-bottom: 1px solid #e5eaf0;
    background: #e5eaf0;
}
.endorsement-context-grid > div { min-width: 0; padding: 17px 22px; background: #f8fafc; }
.endorsement-context-grid span,
.endorsement-context-grid strong,
.endorsement-context-grid small { display: block; }
.endorsement-context-grid span { margin-bottom: 5px; color: #758196; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.endorsement-context-grid strong { overflow-wrap: anywhere; color: #263348; font-size: 13px; }
.endorsement-context-grid small { margin-top: 4px; overflow-wrap: anywhere; color: #748096; font-size: 11px; }
.endorsement-editor-form { padding: 26px 32px 0; }
.endorsement-form-alert,
.endorsement-editor-form .errorlist {
    margin: 0 0 8px;
    padding: 10px 12px;
    border-radius: 7px;
    background: #fff1f0;
    color: #a32d36;
    font-size: 12px;
    list-style: none;
}
.endorsement-field { display: grid; gap: 7px; min-width: 0; }
.endorsement-field .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.endorsement-field > label { color: #29364a; font-size: 12px; font-weight: 800; }
.endorsement-field-help { color: #7a8699; font-size: 11px; }
.endorsement-field input,
.endorsement-field textarea {
    width: 100%;
    border: 1px solid #d5dce6;
    border-radius: 8px;
    background: #fff;
    color: #202d40;
    box-sizing: border-box;
    font: inherit;
    font-size: 13px;
    line-height: 1.55;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.endorsement-field input { height: 44px; padding: 10px 12px; }
.endorsement-field textarea { min-height: 160px; padding: 13px 14px; resize: vertical; }
.endorsement-field input:focus,
.endorsement-field textarea:focus { border-color: #4c9dd4; box-shadow: 0 0 0 3px rgba(8, 127, 203, .11); }
.endorsement-subject-field { margin-bottom: 22px; }
.endorsement-content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.endorsement-field-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e1e6ed;
    border-radius: 10px;
    background: #fbfcfd;
}
.endorsement-field-heading { margin-bottom: 14px; }
.endorsement-field-heading > div { display: flex; align-items: center; gap: 9px; }
.endorsement-field-heading span {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 6px;
    background: #e9f3fb;
    color: #0875ba;
    font-size: 10px;
    font-weight: 900;
}
.endorsement-field-heading h2 { margin: 0; color: #263348; font-size: 15px; }
.endorsement-field-heading p { margin: 7px 0 0 34px; color: #788498; font-size: 11px; line-height: 1.45; }
.endorsement-cv-card { grid-column: 1 / -1; }
.endorsement-cv-card textarea { min-height: 390px; }
.endorsement-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 26px -32px 0;
    padding: 18px 32px;
    border-top: 1px solid #e2e7ee;
    background: #f8fafc;
}
.endorsement-action-bar p { display: grid; gap: 3px; margin: 0; }
.endorsement-action-bar p strong { color: #2a374a; font-size: 12px; }
.endorsement-action-bar p span { color: #788498; font-size: 11px; }
.endorsement-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.endorsement-submit-button { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; }
.endorsement-actions .application-primary-button { min-width: 174px; }
.endorsement-button-progress:not([hidden]) { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 820px) {
    .endorsement-editor-header { align-items: stretch; flex-direction: column; }
    .endorsement-header-actions { justify-content: space-between; }
    .endorsement-context-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .endorsement-recipient-context { grid-column: 1 / -1; }
    .endorsement-content-grid { grid-template-columns: 1fr; }
    .endorsement-cv-card { grid-column: auto; }
    .endorsement-action-bar { align-items: stretch; flex-direction: column; }
    .endorsement-actions { justify-content: flex-end; }
}
@media (max-width: 560px) {
    .endorsement-workspace { width: calc(100% - 24px); }
    .endorsement-editor-header { padding: 22px 20px 18px; }
    .endorsement-editor-header h1 { font-size: 23px; }
    .endorsement-header-actions { align-items: stretch; flex-direction: column; }
    .endorsement-header-actions .endorsement-submit-button { width: 100%; }
    .endorsement-editor-form { padding: 20px 18px 0; }
    .endorsement-context-grid { grid-template-columns: 1fr; }
    .endorsement-recipient-context { grid-column: auto; }
    .endorsement-field-card { padding: 16px; }
    .endorsement-action-bar { margin: 22px -18px 0; padding: 16px 18px; }
    .endorsement-actions { flex-direction: column-reverse; }
    .endorsement-actions button { width: 100%; }
}
.application-review-section-heading {
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}
.application-review-section-heading h2 { margin-bottom: 4px; font-size: 18px; }
.application-review-section-heading p { margin: 0; color: #6b7689; font-size: 13px; }
.application-review-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #e5e9ef;
    border-radius: 9px;
    background: #e5e9ef;
}
.application-review-facts > div { min-width: 0; padding: 14px; background: #fafbfd; }
.application-review-facts span,
.application-document-row small,
.application-quick-evidence span {
    display: block;
    margin-bottom: 5px;
    color: #768195;
    font-size: 11px;
}
.application-review-facts strong { overflow-wrap: anywhere; font-size: 13px; }
.application-review-copy { margin-top: 20px; color: #3e485a; font-size: 13px; line-height: 1.55; }
.application-review-copy h3 { margin-bottom: 8px; font-size: 14px; }
.application-inline-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid #b9d7f2;
    border-radius: 6px;
    background: #fff;
    color: #087ac1;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.application-inline-link:hover { border-color: #78afe0; background: #f2f8fe; }
.application-document-action { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 34px; padding: 7px 11px; border: 1px solid #b9d7f2; border-radius: 6px; background: #fff; color: #087ac1; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.application-document-action:hover { border-color: #78afe0; background: #f2f8fe; }
.application-endorsement-rate-refresh { display: flex; justify-content: flex-end; margin-top: 12px; }
.application-fit-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.application-fit-summary a {
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    background: #fafbfd;
    color: inherit;
    text-decoration: none;
}
.application-fit-summary a:hover { border-color: #91c6e8; background: #f3f9fd; }
.application-fit-summary span { color: #778398; font-size: 11px; }
.application-fit-summary strong { font-size: 13px; }
.application-fit-summary small { color: #788397; font-size: 10px; }
.application-fit-summary a.is-good { border-color: #a9d9bb; background: #f1faf4; box-shadow: inset 4px 0 #2f9e5b; }
.application-fit-summary a.is-good strong { color: #207a43; }
.application-fit-summary a.is-warning { border-color: #efd49a; background: #fffaf0; box-shadow: inset 4px 0 #e0a126; }
.application-fit-summary a.is-warning strong,
.application-fit-summary a.is-warning small { color: #8a5b08; }
.application-fit-summary a.is-danger { border-color: #efb5b0; background: #fff7f6; box-shadow: inset 4px 0 #d6453a; }
.application-fit-summary a.is-danger strong,
.application-fit-summary a.is-danger small { color: #b42318; }
.application-fit-summary a.has-red-flag { border-color: #efb5b0; background: #fff7f6; }
.application-fit-summary a.has-red-flag strong,
.application-fit-summary a.has-red-flag small { color: #b42318; }
.application-fit-summary a.has-amber-flag { border-color: #efd49a; background: #fffaf0; }
.application-fit-summary a.has-amber-flag small { color: #8a5b08; }
.application-checklist-progress {
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef3f8;
    color: #526177;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.application-review-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}
.application-review-checklist label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px;
    border: 1px solid #e1e6ed;
    border-radius: 7px;
    font-size: 12px;
}
.application-review-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.application-review-field { display: grid; gap: 6px; }
.application-review-field.is-wide { grid-column: 1 / -1; }
.application-review-field label { font-size: 12px; font-weight: 700; }
.application-review-field select,
.application-review-field textarea,
.application-review-field input,
.configuration-field select {
    width: 100%;
    padding: 10px;
    border: 1px solid #d9dfe8;
    border-radius: 7px;
    background: #fff;
    box-sizing: border-box;
}
.application-review-field textarea { min-height: 68px; resize: vertical; }
.application-primary-button {
    padding: 11px 16px;
    border: 0;
    border-radius: 7px;
    background: #087fcb;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}
.application-primary-button:disabled { cursor: wait; opacity: .78; }
.application-secondary-button {
    padding: 10px 15px;
    border: 1px solid #cbd6e3;
    border-radius: 7px;
    background: #fff;
    color: #40506a;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}
.application-secondary-button:disabled { cursor: wait; opacity: .65; }
.application-ai-spinner.dark { border-color: rgba(64,80,106,.25); border-top-color: #40506a; }
.application-ai-button-progress { align-items: center; gap: 8px; }
.application-ai-button-progress:not([hidden]),
.application-action-button-progress:not([hidden]),
.clarification-submit-progress:not([hidden]) { display: inline-flex; align-items: center; gap: 8px; }
.application-ai-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: application-ai-spin .75s linear infinite;
}
@keyframes application-ai-spin {
    to { transform: rotate(360deg); }
}

/* Candidate application tracking */
.candidate-applications-page,
.candidate-application-page {
    align-self: flex-start;
    box-sizing: border-box;
    width: min(1180px, calc(100% - 40px));
    margin: 34px auto 80px;
    color: #263242;
}
.candidate-applications-heading,
.candidate-application-heading,
.candidate-applications-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.candidate-applications-heading { margin-bottom: 28px; }
.candidate-applications-heading h1,
.candidate-application-heading h1 { margin: 10px 0 6px; font-size: 30px; }
.candidate-applications-heading p,
.candidate-application-heading p { margin: 0; color: #6e798c; }
.candidate-applications-section { margin-top: 28px; }
.candidate-applications-section-heading { align-items: center; margin-bottom: 12px; }
.candidate-applications-section-heading h2 { margin: 0; font-size: 18px; }
.candidate-applications-section-heading > span { padding: 4px 8px; border-radius: 999px; background: #e9eef4; color: #596579; font-size: 11px; font-weight: 700; }
.candidate-applications-list { overflow: hidden; border: 1px solid #e0e6ed; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(28,39,51,.05); }
.candidate-application-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 125px 180px 65px;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-top: 1px solid #e8ecf1;
    color: inherit;
    text-decoration: none;
}
.candidate-application-row:first-child { border-top: 0; }
.candidate-application-row:hover { background: #f8fbfd; }
.candidate-application-row h3 { margin: 4px 0 5px; font-size: 16px; }
.candidate-application-row p { margin: 0; color: #687488; font-size: 12px; }
.candidate-application-row div > span,
.candidate-application-row div:nth-child(2) span { display: block; color: #8290a4; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.candidate-application-row div:nth-child(2) strong { display: block; margin-top: 5px; font-size: 12px; }
.candidate-application-open { color: #087ac1; font-size: 12px; }
.candidate-applications-empty { padding: 35px; text-align: center; color: #6d798b; }
.candidate-applications-empty h3 { margin: 0 0 7px; color: #303a49; }
.candidate-applications-empty p { margin: 0 0 10px; }
.candidate-application-status {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f2fc;
    color: #075f9e;
    font-size: 11px;
    font-weight: 700;
}
.candidate-application-status-accepted { background: #e5f5eb; color: #187a42; }
.candidate-application-status-rejected,
.candidate-application-status-withdrawn { background: #f3e9e9; color: #8f3131; }
.candidate-application-heading { align-items: center; margin-bottom: 22px; }
.candidate-application-heading .application-eyebrow { display: block; margin-top: 16px; }
.candidate-application-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 20px; }
.candidate-application-layout main { display: grid; gap: 18px; }
.candidate-application-layout aside { position: sticky; top: 88px; display: grid; gap: 16px; }
.candidate-application-card { padding: 24px; border: 1px solid #e0e6ed; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(28,39,51,.05); }
.candidate-application-card h2 { margin: 0 0 18px; font-size: 18px; }
.candidate-application-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; gap: 1px; border: 1px solid #e4e8ee; border-radius: 8px; background: #e4e8ee; }
.candidate-application-facts > div { padding: 13px; background: #fafbfd; }
.candidate-application-facts span,
.candidate-application-summary span { display: block; margin-bottom: 5px; color: #7a8699; font-size: 10px; }
.candidate-application-facts strong,
.candidate-application-summary strong { font-size: 12px; }
.candidate-application-description { margin-top: 22px; color: #4d596b; font-size: 13px; line-height: 1.55; }
.candidate-application-summary { display: grid; gap: 12px; }
.candidate-application-summary h2 { margin-bottom: 2px; }
.candidate-application-summary > div { padding-top: 11px; border-top: 1px solid #e9edf2; }
.candidate-withdraw-card { border-color: #eed4d2; }
.candidate-withdraw-card p { color: #697487; font-size: 12px; line-height: 1.45; }
.candidate-withdraw-button { display: block; width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #d92d20; border-radius: 7px; background: #fff; color: #b42318; text-align: center; text-decoration: none; font-weight: 700; }
.candidate-withdraw-button:hover { background: #fff5f4; }
.candidate-withdraw-page { width: min(720px, calc(100% - 40px)); margin: 46px auto; }
.candidate-withdraw-form { display: grid; gap: 22px; }
.candidate-withdraw-form fieldset { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.candidate-withdraw-form legend,
.candidate-withdraw-form > label { margin-bottom: 8px; color: #263248; font-weight: 800; }
.candidate-withdraw-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.candidate-withdraw-options label { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid #dce3eb; border-radius: 8px; cursor: pointer; }
.candidate-withdraw-options label:hover { background: #f8fbfd; }
.candidate-withdraw-form textarea { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #ccd6e1; border-radius: 8px; font: inherit; resize: vertical; }
.candidate-withdraw-actions { display: flex; justify-content: flex-end; gap: 12px; }
.candidate-withdraw-actions a { padding: 11px 16px; color: #4f5c70; text-decoration: none; }
.candidate-withdraw-submit { padding: 11px 18px; border: 0; border-radius: 7px; background: #b42318; color: #fff; cursor: pointer; font-weight: 800; }
.candidate-withdraw-submit:disabled { cursor: wait; opacity: .7; }
.application-withdrawal-summary { border-color: #efc4c0; background: #fffafa; }

@media (max-width: 850px) {
    .candidate-application-row { grid-template-columns: minmax(0, 1fr) auto; }
    .candidate-application-row div:nth-child(2),
    .candidate-application-open { display: none; }
    .candidate-application-layout { grid-template-columns: 1fr; }
    .candidate-application-layout aside { position: static; }
}
@media (max-width: 620px) {
    .client-endorsement-decision-switch { grid-template-columns: 1fr; }
    .client-availability-placement-fields,
    .client-availability-settings,
    .client-availability-window-fields { grid-template-columns: 1fr; }
    .candidate-applications-page,
    .candidate-application-page { width: calc(100% - 24px); }
    .candidate-applications-heading,
    .candidate-application-heading { align-items: stretch; flex-direction: column; }
    .candidate-applications-heading .application-primary-button { text-align: center; }
    .candidate-application-row { grid-template-columns: 1fr; gap: 10px; }
    .candidate-application-facts { grid-template-columns: 1fr 1fr; }
    .candidate-withdraw-options { grid-template-columns: 1fr; }
}
.application-review-form > .application-primary-button { margin-top: 16px; }
.application-field-error { color: #b42318; font-size: 11px; }
.application-reopen-form { display: grid; gap: 8px; margin-bottom: 14px; }
.application-reopen-form h3 { margin: 0; color: #243249; }
.application-reopen-form > p { margin: 0 0 6px; color: #68758a; font-size: 11px; line-height: 1.5; }
.application-reopen-form > label:not(.application-reopen-confirm) { color: #45536a; font-size: 11px; font-weight: 800; }
.application-reopen-form select,
.application-reopen-form textarea { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid #d4dce6; border-radius: 7px; background: #fff; color: #27364b; font: inherit; }
.application-reopen-form textarea { resize: vertical; }
.application-reopen-confirm { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0; color: #59677b; font-size: 10px; line-height: 1.4; }
.application-reopen-confirm input { margin-top: 2px; }
.application-reopen-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; margin-top: 5px; }
.application-reopen-progress:not([hidden]) { display: inline-flex; align-items: center; gap: 7px; }

.error-state-page { display: grid; width: min(720px, calc(100% - 32px)); min-height: calc(100vh - 180px); margin: 0 auto; place-items: center; }
.error-state-card { width: 100%; box-sizing: border-box; padding: 46px; border: 1px solid #dfe6ee; border-radius: 15px; background: #fff; box-shadow: 0 14px 34px rgba(28,39,51,.08); text-align: center; }
.error-state-code { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #edf5fb; color: #087ac1; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.error-state-card h1 { margin: 14px 0 9px; color: #1e2b42; font-size: 29px; }
.error-state-card p { max-width: 510px; margin: 0 auto; color: #68758a; font-size: 14px; line-height: 1.6; }
.error-state-actions { display: flex; justify-content: center; gap: 10px; margin-top: 25px; }
.error-state-actions a { display: inline-flex; align-items: center; text-decoration: none; }

.role-dashboard-page { width: min(1460px, calc(100% - 44px)); margin: 38px auto 70px; color: #1d2940; }
.role-dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.role-dashboard-heading .application-eyebrow { display: block; margin-top: 18px; }
.role-dashboard-heading h1 { margin: 7px 0 5px; font-size: 30px; }
.role-dashboard-heading p { margin: 0; color: #68758a; }
.role-dashboard-heading-state { display: flex; align-items: center; gap: 12px; }
.role-share-button { display: inline-grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid #b8c7d8; border-radius: 8px; background: #fff; color: #0871c2; cursor: pointer; }
.role-share-button:hover { border-color: #0871c2; background: #f0f7fd; }
.role-share-button:disabled { cursor: wait; opacity: .65; }
.role-share-button.is-copied { border-color: #4eaa6c; background: #edf9f1; color: #25713e; }
.role-share-icon { width: 18px; height: 18px; fill: currentColor; }
.role-share-progress { display: inline-flex; }
.role-share-progress[hidden] { display: none; }
.role-share-status { min-width: 0; margin-left: -7px; color: #4f6074; font-size: 12px; font-weight: 700; }
.role-metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.role-metric-grid article { min-height: 96px; padding: 18px; border: 1px solid #dce4ec; border-radius: 12px; background: #fff; box-shadow: 0 7px 20px rgba(37,51,71,.05); }
.role-metric-grid article.is-warning { border-color: #efd49a; background: #fffaf0; }
.role-metric-grid article.is-alert { border-color: #efb5b0; background: #fff7f6; }
.role-metric-grid span, .role-metric-grid small { display: block; color: #7a8698; font-size: 11px; }
.role-metric-grid strong { display: block; margin: 8px 0 5px; font-size: 26px; }
.role-dashboard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 18px; }
.role-dashboard-layout main { display: grid; gap: 18px; }
.role-dashboard-layout aside { position: sticky; top: 88px; display: grid; gap: 18px; }
.role-dashboard-card { padding: 22px; border: 1px solid #dfe6ed; border-radius: 12px; background: #fff; box-shadow: 0 7px 20px rgba(37,51,71,.05); }
.role-dashboard-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.role-dashboard-card-heading h2 { margin: 0 0 4px; font-size: 17px; }
.role-dashboard-card-heading p { margin: 0; color: #788498; font-size: 12px; }
.role-chart-legend { display: flex; gap: 14px; color: #69768a; font-size: 11px; }
.role-chart-legend span::before { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; background: #9cc9e8; content: ""; }
.role-chart-legend .is-application::before { background: #1685cb; }
.role-activity-chart { display: flex; align-items: stretch; gap: 4px; height: 210px; padding-top: 10px; border-bottom: 1px solid #dfe5ec; }
.role-chart-day { display: flex; min-width: 0; flex: 1; flex-direction: column; justify-content: flex-end; }
.role-chart-bars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 175px; }
.role-chart-bars i { width: min(8px, 45%); min-height: 2px; border-radius: 3px 3px 0 0; background: #a6cee8; }
.role-chart-bars i.is-application { background: #1685cb; }
.role-chart-day small { height: 18px; margin-top: 5px; overflow: visible; color: #8a95a5; font-size: 9px; white-space: nowrap; }
.role-dashboard-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.role-stat-list { display: grid; gap: 13px; }
.role-stat-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: #536075; font-size: 12px; }
.role-stat-heading strong { color: #253149; }
.role-stat-heading + div { height: 7px; overflow: hidden; border-radius: 99px; background: #edf1f5; }
.role-stat-heading + div i { display: block; height: 100%; border-radius: inherit; background: #1685cb; }
.role-stat-list.is-withdrawal .role-stat-heading + div i { background: #d66a61; }
.role-stat-list.is-compact { gap: 8px; }
.role-stat-list.is-compact > div { padding-bottom: 7px; border-bottom: 1px solid #edf0f4; }
.role-stat-list.is-compact .role-stat-heading { margin: 0; }
.role-dashboard-empty { color: #8490a1; font-size: 12px; }
.role-candidate-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.role-profile-block { min-height: 130px; padding: 16px; border: 1px solid #e1e7ed; border-radius: 10px; background: #fafbfd; }
.role-profile-block h3 { margin: 0 0 13px; font-size: 13px; }
.role-profile-block > span, .role-profile-block > small { display: block; margin-top: 5px; color: #788598; font-size: 11px; line-height: 1.4; }
.role-profile-primary { display: block; margin-top: 28px; font-size: 20px; }
.role-insight-list { display: grid; gap: 10px; }
.role-insight-list article { display: grid; grid-template-columns: 5px 1fr; gap: 12px; padding: 13px; border-radius: 9px; background: #f6f8fa; color: #667286; font-size: 12px; line-height: 1.45; }
.role-insight-list article > div { border-radius: 99px; background: #8090a4; }
.role-insight-list article.is-warning { background: #fff8ea; }
.role-insight-list article.is-warning > div { background: #d99b21; }
.role-insight-list article.is-danger { background: #fff4f3; }
.role-insight-list article.is-danger > div { background: #d6453a; }
.role-insight-list strong { display: block; margin-bottom: 2px; color: #273248; }
.role-detail-list { margin: 0; }
.role-detail-list div { display: grid; grid-template-columns: 115px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid #edf0f3; }
.role-detail-list div:first-child { border-top: 0; }
.role-detail-list dt { color: #7d899a; font-size: 11px; }
.role-detail-list dd { margin: 0; color: #263249; font-size: 12px; font-weight: 700; }
.role-dashboard-card details { border-top: 1px solid #e7ebf0; }
.role-dashboard-card details:first-of-type { border-top: 0; }
.role-dashboard-card summary { padding: 12px 0; cursor: pointer; color: #344158; font-size: 12px; font-weight: 800; }
.role-detail-copy { color: #606c7f; font-size: 12px; line-height: 1.5; }

@media (max-width: 1180px) {
    .role-metric-grid { grid-template-columns: repeat(3, 1fr); }
    .role-dashboard-layout { grid-template-columns: 1fr; }
    .role-dashboard-layout aside { position: static; grid-template-columns: 1fr 1fr; }
    .role-candidate-metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
    .role-dashboard-page { width: calc(100% - 24px); margin-top: 24px; }
    .role-dashboard-heading { align-items: stretch; flex-direction: column; }
    .role-dashboard-heading-state { justify-content: space-between; }
    .role-metric-grid, .role-dashboard-two-column, .role-dashboard-layout aside, .role-candidate-metrics { grid-template-columns: 1fr; }
    .role-activity-chart { gap: 2px; }
}
.application-decision-form { display: grid; gap: 15px; }
.application-decision-form h2 { margin: 4px 0 0; font-size: 18px; }
.application-quick-evidence { display: grid; gap: 11px; }
.application-quick-evidence h3 { margin-bottom: 3px; font-size: 14px; }
.application-quick-evidence > a { display: flex; justify-content: space-between; border-top: 1px solid #edf0f4; padding-top: 10px; color: inherit; font-size: 12px; text-decoration: none; }
.application-quick-evidence > a:hover strong { color: #087ac1; }
.application-quick-evidence span { margin: 0; }
.application-delete-link { width: 100%; border: 0; background: transparent; color: #b42318; cursor: pointer; font-size: 12px; }
.application-admin-actions {
    padding: 12px;
    border: 1px solid #e1e6ed;
    border-radius: 8px;
    background: #fff;
    color: #6e798c;
    font-size: 11px;
}
.application-admin-actions summary { cursor: pointer; font-weight: 700; }
.application-admin-actions form { margin-top: 12px; }
.application-role-details { margin-top: 22px; border-top: 1px solid #e4e8ee; padding-top: 16px; }
.application-role-details summary { cursor: pointer; color: #087ac1; font-size: 13px; font-weight: 700; }
.application-audit-list { display: grid; }
.application-audit-list > div { position: relative; display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 0 0 20px; }
.application-audit-list > div:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 12px; bottom: 0; width: 1px; background: #dce3eb; }
.application-audit-dot { position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 3px; border-radius: 50%; background: #1688cf; }
.application-audit-list strong { font-size: 13px; }
.application-audit-list p { margin: 4px 0; color: #566176; font-size: 12px; }
.application-audit-list small { color: #7a8699; }
.application-document-list,
.application-history-list,
.application-screening-review,
.application-requirement-list { display: grid; }
.application-document-row {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) 1fr 1fr 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid #e8ebf0;
    font-size: 12px;
}
.application-document-row:first-child { border-top: 0; }
.application-document-row strong,
.application-document-row small { overflow-wrap: anywhere; }
.application-history-list a {
    display: grid;
    grid-template-columns: 1fr auto 100px;
    gap: 18px;
    padding: 15px 0;
    border-top: 1px solid #e8ebf0;
    color: inherit;
    text-decoration: none;
}
.application-history-list a:first-child { border-top: 0; }
.application-history-list a div { display: grid; gap: 5px; }
.application-history-list a div span,
.application-history-list small { color: #748094; font-size: 11px; }
.application-endorsement-history { display: grid; gap: 12px; }
.application-endorsement-attempt { overflow: hidden; border: 1px solid #dfe6ee; border-radius: 10px; background: #fff; }
.application-endorsement-attempt-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; border-bottom: 1px solid #e8edf2; background: #f8fafc; }
.application-endorsement-attempt-heading > div { display: grid; gap: 4px; }
.application-endorsement-attempt-heading > div span,
.application-endorsement-attempt-dates span,
.application-endorsement-attempt-note > span { color: #77849a; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.application-endorsement-attempt-heading strong { color: #1e2b42; font-size: 14px; }
.application-endorsement-attempt-status { display: inline-flex; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #e8f2fc; color: #075f9e; font-size: 10px; font-weight: 800; }
.application-endorsement-attempt-status.is-client_rejected { background: #fdeceb; color: #a52a24; }
.application-endorsement-attempt-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.application-endorsement-attempt-dates > div { display: grid; gap: 5px; padding: 14px 17px; }
.application-endorsement-attempt-dates > div + div { border-left: 1px solid #e8edf2; }
.application-endorsement-attempt-dates strong { color: #354158; font-size: 11px; }
.application-endorsement-attempt-note { display: grid; gap: 5px; margin: 0 17px 15px; padding: 12px 14px; border-left: 3px solid #cf4038; border-radius: 0 7px 7px 0; background: #fff7f6; }
.application-endorsement-attempt-note strong { color: #812b27; font-size: 11px; }
.application-endorsement-attempt-note p { margin: 1px 0 0; color: #5d6677; font-size: 11px; line-height: 1.45; }
.application-screening-review > div { padding: 17px 0; border-top: 1px solid #e7eaf0; }
.application-screening-review > div:first-child { border-top: 0; }
.application-screening-review strong { display: block; margin: 4px 0 7px; }
.application-screening-review p { margin: 0; color: #586478; line-height: 1.5; }
.application-screening-review > div.screening-risk-red { margin: 0 -16px; padding: 17px 16px; border-left: 4px solid #d92d20; background: #fff8f7; }
.application-screening-review > div.screening-risk-amber { margin: 0 -16px; padding: 17px 16px; border-left: 4px solid #e6a21a; background: #fffbf2; }
.application-screening-score { display: grid; justify-items: end; }
.application-screening-score strong { color: #087ac1; font-size: 26px; line-height: 1; }
.application-screening-score span { margin-top: 4px; color: #718096; font-size: 10px; }
.application-screening-risk-summary {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 12px;
}
.application-screening-risk-summary span { color: #647087; font-size: 11px; }
.application-screening-risk-summary.has-red-flag { border: 1px solid #efb5b0; background: #fff6f5; color: #a82218; }
.application-screening-risk-summary.has-amber-flag { border: 1px solid #efd49a; background: #fff9ec; color: #805408; }
.application-screening-risk-summary.is-clear { border: 1px solid #b9dfc6; background: #f1faf4; color: #187a42; }
.application-question-feedback { display: flex; align-items: flex-start; gap: 10px; margin-top: 11px; }
.application-question-feedback > div { display: grid; gap: 4px; }
.application-question-feedback > div strong { margin: 0; color: #3e485a; font-size: 11px; }
.application-question-feedback small { color: #6d788c; font-size: 11px; }
.application-ai-authorship { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 3px 9px; margin-top: 11px; padding: 9px 11px; border: 1px solid #dce3ee; border-radius: 8px; background: #f7f9fc; }
.application-ai-authorship strong { color: #3e485a; font-size: 11px; }
.application-ai-authorship span { color: #087fcb; font-size: 11px; font-weight: 800; }
.application-ai-authorship small { grid-column: 1 / -1; color: #6d788c; font-size: 10px; line-height: 1.45; }
.application-ai-authorship.is-unassessable span { color: #6d788c; }
.screening-risk-badge { flex: 0 0 auto; padding: 3px 7px; border-radius: 999px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.screening-risk-badge-green { background: #e4f4e9; color: #187a42; }
.screening-risk-badge-amber { background: #fff0cf; color: #8a5b08; }
.screening-risk-badge-red { background: #fde7e5; color: #b42318; }
.application-question-scope { color: #087ac1; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.application-review-empty,
.application-ai-notice { padding: 16px; border-radius: 8px; background: #f5f7fa; color: #647087; font-size: 12px; }
.application-ai-notice { margin-bottom: 20px; border-left: 3px solid #f1a10b; background: #fff8e9; color: #75500b; }
.application-ai-summary { align-items: center; gap: 22px; margin-bottom: 18px; }
.application-ai-score { display: grid; place-items: center; width: 112px; height: 112px; flex: 0 0 112px; border-radius: 50%; background: #e9f4fc; color: #086eae; }
.application-ai-score strong { font-size: 38px; line-height: 1; }
.application-ai-score span { text-align: center; font-size: 10px; }
.application-ai-recommendation { text-transform: capitalize; }
.application-ai-summary h3 { margin: 9px 0; font-size: 16px; }
.application-ai-summary small { color: #728096; }
.application-ai-score-grid { gap: 12px; margin: 18px 0; }
.application-ai-score-grid div { flex: 1; padding: 16px; border-radius: 9px; background: #f6f8fb; }
.application-ai-score-grid strong { display: block; color: #087ac1; font-size: 28px; }
.application-ai-score-grid span { color: #6d788c; font-size: 11px; }
.application-ai-columns { gap: 18px; }
.application-ai-columns > div { flex: 1; padding: 18px; border: 1px solid #e4e8ee; border-radius: 9px; }
.application-ai-columns h3,
.application-ai-card > h3 { font-size: 14px; }
.application-ai-columns li,
.application-ai-card > ol li { margin-bottom: 8px; color: #4e596c; font-size: 12px; line-height: 1.45; }
.application-requirement-list > div { display: grid; grid-template-columns: 45px 1fr; gap: 4px 12px; padding: 13px 0; border-top: 1px solid #e6eaf0; }
.application-requirement-list span { grid-row: 1 / 3; color: #087ac1; font-weight: 700; }
.application-requirement-list p { margin: 0; color: #677387; font-size: 12px; }
.application-clarification-list { display: grid; gap: 16px; }
.application-clarification-item { padding: 18px; border: 1px solid #e3e8ef; border-radius: 9px; }
.application-clarification-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.application-clarification-meta div { display: grid; gap: 5px; }
.application-clarification-meta small,
.application-clarification-meta > span,
.application-clarification-response > span,
.application-clarification-response > small { color: #748094; font-size: 11px; }
.application-clarification-item details { margin-top: 14px; }
.application-clarification-item summary { color: #087ac1; cursor: pointer; font-size: 12px; font-weight: 700; }
.application-clarification-email,
.application-clarification-response { margin-top: 12px; padding: 14px; border-radius: 8px; background: #f7f9fb; color: #4d596b; font-size: 12px; line-height: 1.5; }
.application-clarification-email p,
.application-clarification-response p { margin: 0 0 10px; }
.application-clarification-response { border-left: 3px solid #1688cf; }
.application-clarification-response > span,
.application-clarification-response > small { display: block; }
.application-clarification-response > span { margin-bottom: 8px; font-weight: 700; }
.application-clarification-response > small { margin-top: 10px; }
.application-clarification-response-form { display: grid; gap: 12px; margin-top: 16px; }
.application-clarification-response-form .application-primary-button { justify-self: start; }
.application-clarification-pending { display: grid; gap: 5px; margin-top: 16px; padding: 13px 15px; border: 1px solid #efd49a; border-radius: 8px; background: #fff9ec; color: #805408; font-size: 12px; }
.application-clarification-pending span { color: #796846; font-size: 11px; }
.application-interview-meta { display: flex; flex-wrap: wrap; gap: 5px 16px; margin: -6px 0 14px; color: #667489; font-size: 11px; }
.application-interview-clarification-notice { display: grid; gap: 4px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid #efcf91; border-radius: 8px; background: #fff8e9; color: #76510d; }
.application-interview-clarification-notice strong { font-size: 12px; }
.application-interview-clarification-notice span { color: #75664a; font-size: 11px; line-height: 1.45; }
.application-interview-heading-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.application-interview-draft-pill { min-width: 58px; padding: 7px 12px; font-size: 12px; text-align: center; animation: interview-draft-flash 1.4s ease-in-out infinite; }
.application-interview-header-save { min-width: 104px; padding: 8px 13px; }
.application-interview-header-approve { min-width: 132px; padding: 8px 13px; }
.application-interview-save-status { color: #607089; font-size: 12px; font-weight: 700; }
.application-interview-save-status[data-state="saving"],
.application-interview-save-status[data-state="pending"] { color: #9a6700; }
.application-interview-save-status[data-state="error"] { color: #b42318; }
@keyframes interview-draft-flash {
    0%, 100% { background: #fff0d9; box-shadow: 0 0 0 0 rgba(217,119,6,0); color: #9a5b0a; }
    50% { background: #ffdca8; box-shadow: 0 0 0 4px rgba(217,119,6,.13); color: #754005; }
}
@media (prefers-reduced-motion: reduce) {
    .application-interview-draft-pill { animation: none; }
}
.application-interview-flow { margin-bottom: 14px; padding: 14px 16px; border-radius: 9px; background: #f7f9fc; }
.application-interview-flow h3 { margin-bottom: 10px; font-size: 13px; }
.application-interview-flow ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 24px; margin: 0; padding-left: 0; list-style: none; counter-reset: interview-flow; }
.application-interview-flow li { display: flex; align-items: flex-start; gap: 8px; padding-left: 2px; color: #2d3a4f; font-size: 12px; break-inside: avoid; }
.application-interview-flow li::before { content: counter(interview-flow) "."; counter-increment: interview-flow; flex: 0 0 18px; color: #536177; font-weight: 700; text-align: right; }
.application-interview-flow li > input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: #087fcb; cursor: pointer; }
.application-interview-flow li > div { min-width: 0; }
.application-interview-flow p { margin: 3px 0 0; color: #5e6c82; font-size: 11px; line-height: 1.45; }
.application-compensation-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-bottom: 16px; padding: 13px 16px; border: 1px solid #efd49a; border-radius: 9px; background: #fff9ec; }
.application-compensation-context div { display: grid; gap: 4px; }
.application-compensation-context span { color: #7d6b47; font-size: 11px; text-transform: uppercase; }
.application-compensation-context strong { color: #704c08; font-size: 14px; }
.application-compensation-context .application-rate-warning { grid-column: 1 / -1; padding: 10px 12px; border: 1px solid #e4b95f; border-radius: 7px; background: #fff3d5; color: #704c08; font-size: 12px; line-height: 1.45; }
.application-compensation-context p { grid-column: 1 / -1; margin: 2px 0 0; color: #6f6045; font-size: 12px; line-height: 1.5; }
.application-interview-question-list { display: grid; gap: 12px; }
.application-interview-question-list article { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 14px 16px; border: 1px solid #e1e7ef; border-radius: 9px; background: #fff; }
.application-interview-question-list article > span { grid-column: 1 / -1; justify-self: start; padding: 3px 8px; border-radius: 999px; background: #eaf4fb; color: #087ac1; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.application-interview-question-list .application-interview-prompt { grid-column: 1 / -1; }
.application-interview-question-list .application-interview-ideal { grid-column: 1 / -1; }
.application-interview-question-list h3 { margin: 0; font-size: 15px; line-height: 1.45; }
.application-interview-question-list article > h3,
.application-interview-question-list article > label,
.application-interview-question-list article > small,
.application-interview-ideal-answer,
.application-interview-outcome { grid-column: 1 / -1; }
.application-interview-question-list p { margin: 0; color: #566276; font-size: 12px; }
.application-interview-question-list label,
.application-interview-assessment label { display: grid; gap: 6px; color: #344258; font-size: 12px; font-weight: 700; }
.application-interview-question-list textarea,
.application-interview-assessment textarea,
.application-interview-assessment select,
.application-interview-ratings select { box-sizing: border-box; width: 100%; padding: 10px; border: 1px solid #d6dee8; border-radius: 7px; background: #fff; color: #253147; font: inherit; resize: vertical; }
.application-interview-question-list textarea { min-height: 68px; line-height: 1.4; }
.application-interview-question-list .application-interview-prompt textarea { min-height: 62px; }
.application-interview-question-list small { color: #6d7a90; font-size: 11px; }
.application-interview-evidence { display: flex; grid-column: 1 / -1; gap: 7px; padding: 8px 10px; border-radius: 6px; background: #f6f8fb; line-height: 1.4; }
.application-interview-evidence strong { flex: 0 0 auto; color: #536177; text-transform: uppercase; }
.application-interview-ideal-answer { padding: 12px 14px; border-left: 3px solid #1688cf; border-radius: 7px; background: #f3f8fc; color: #344258; }
.application-interview-ideal-answer > strong { display: block; margin-bottom: 5px; color: #0871b6; font-size: 10px; text-transform: uppercase; }
.application-interview-ideal-answer p { color: #45536a; font-size: 12px; line-height: 1.5; }
.application-interview-outcome { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 10px 12px; border-radius: 7px; background: #f7f9fb; }
.application-interview-outcome label,
.application-interview-observations label { display: flex; align-items: center; gap: 7px; color: #344258; font-size: 12px; font-weight: 700; cursor: pointer; }
.application-interview-outcome input,
.application-interview-observations input { width: 16px; height: 16px; margin: 0; accent-color: #087fcb; }
.application-interview-question-list details { color: #536078; font-size: 11px; }
.application-interview-question-list details summary { cursor: pointer; font-weight: 700; }
.application-interview-question-list details li { margin: 6px 0; }
.application-interview-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.application-interview-assessment { display: grid; gap: 14px; margin: 22px 0; padding: 20px; border-radius: 9px; background: #f5f8fb; }
.application-interview-assessment > p { margin: -8px 0 0; color: #6d798d; font-size: 11px; }
.application-interview-observations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px; border-radius: 8px; background: #fff; }
.application-interview-ratings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.clarification-public-page { box-sizing: border-box; width: min(820px, calc(100% - 32px)); margin: 42px auto 80px; color: #263246; }
.clarification-public-heading { margin-bottom: 20px; }
.clarification-public-heading h1 { margin: 6px 0; color: #172033; font-size: 32px; letter-spacing: -.025em; }
.clarification-public-heading p { margin: 0; color: #68758a; }
.clarification-public-card { padding: 28px; border: 1px solid #dfe6ee; border-radius: 13px; background: #fff; box-shadow: 0 14px 38px rgba(32,50,74,.08); }
.clarification-public-intro { padding-bottom: 20px; border-bottom: 1px solid #e5eaf0; }
.application-clarification-suggestions { display: grid; gap: 14px; margin: 18px 0 22px; padding: 18px; border: 1px solid #f0ce86; border-radius: 10px; background: #fffbf2; }
.application-clarification-suggestions-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.application-clarification-suggestions-heading h3 { margin: 0 0 5px; color: #263449; }
.application-clarification-suggestions-heading p { margin: 0; color: #67748a; font-size: 12px; line-height: 1.5; }
.application-clarification-suggestions-heading > span { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #fff0c9; color: #8a5b00; font-size: 11px; font-weight: 800; }
.application-clarification-suggestion-list { display: grid; gap: 10px; }
.application-clarification-suggestion-list article { display: grid; gap: 9px; padding: 14px; border-left: 4px solid #e0a11a; border-radius: 7px; background: #fff; }
.application-clarification-suggestion-list article.is-red { border-left-color: #d63b30; }
.application-clarification-suggestion-list article > div { display: flex; align-items: center; gap: 9px; }
.application-clarification-suggestion-list article > div span { padding: 3px 7px; border-radius: 999px; background: #fff0c9; color: #8a5b00; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.application-clarification-suggestion-list article.is-red > div span { background: #fde9e7; color: #b42318; }
.application-clarification-suggestion-list article > div small { color: #6d798d; font-size: 11px; }
.application-clarification-suggestion-list article p { display: grid; gap: 3px; margin: 0; color: #3f4c60; font-size: 13px; line-height: 1.5; }
.application-clarification-suggestion-list article p strong { color: #202d43; font-size: 11px; text-transform: uppercase; }
.application-clarification-suggestions > small { color: #7c6640; font-weight: 700; }
.clarification-public-intro h2 { margin: 0 0 8px; font-size: 20px; }
.clarification-public-intro p { margin: 0 0 8px; color: #4f5c70; line-height: 1.55; }
.clarification-public-intro > span { color: #9a5b0a; font-size: 12px; font-weight: 700; }
.clarification-public-form { display: grid; gap: 20px; margin-top: 22px; }
.clarification-public-question { display: grid; gap: 9px; }
.clarification-public-question label { display: flex; align-items: flex-start; gap: 10px; color: #283448; font-size: 13px; font-weight: 700; line-height: 1.45; }
.clarification-public-question label span { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 50%; background: #e9f4fc; color: #0871b6; font-size: 11px; }
.clarification-public-question textarea { box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid #d4dce6; border-radius: 8px; color: #263246; font: inherit; line-height: 1.5; resize: vertical; }
.clarification-public-question textarea:focus { border-color: #1688cf; outline: 3px solid rgba(22,136,207,.12); }
.clarification-public-confirm { display: flex; align-items: flex-start; gap: 9px; padding: 13px; border-radius: 8px; background: #f5f8fb; color: #566276; font-size: 12px; }
.clarification-public-form > button { justify-self: end; min-width: 190px; }
.clarification-public-success { display: flex; align-items: flex-start; gap: 16px; }
.clarification-public-success > span { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 50%; background: #e5f5eb; color: #187a42; font-size: 20px; font-weight: 800; }
.clarification-public-success h2,
.clarification-public-unavailable h2 { margin: 0 0 8px; }
.clarification-public-success p,
.clarification-public-unavailable p { margin: 0; color: #586579; line-height: 1.55; }
.clarification-public-unavailable p + p { margin-top: 10px; }
@media (max-width: 620px) {
    .clarification-public-page { margin-top: 22px; }
    .clarification-public-card { padding: 20px; }
    .clarification-public-form > button { justify-self: stretch; }
}

@media (max-width: 980px) {
    .client-recruitment-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .client-role-grid { grid-template-columns: 1fr; }
    .client-endorsement-list-header { display: none; }
    .client-endorsement-row { grid-template-columns: 1fr 1fr; }
    .client-endorsement-row > div:last-child { grid-column: 2; }
    .application-review-page { width: calc(100% - 24px); }
    .application-review-header { align-items: flex-start; flex-direction: column; }
    .application-review-state { justify-items: start; }
    .application-review-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .application-progress-summary { grid-template-columns: 36px minmax(0, 1fr); }
    .application-progress-summary-action { grid-column: 1 / -1; justify-content: space-between; }
    .application-full-progress { overflow-x: auto; }
    .application-full-progress ol { min-width: 900px; }
    .application-review-layout { display: block; }
    .application-decision-rail { position: static; width: auto; margin-top: 18px; }
    .application-review-facts { grid-template-columns: repeat(2, 1fr); }
    .application-commercial-stage-list { grid-template-columns: 1fr; }
    .application-review-sticky { position: static; }
    .application-fit-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .client-recruitment-page { width: calc(100% - 24px); margin-top: 20px; }
    .client-recruitment-hero { align-items: stretch; flex-direction: column; }
    .client-recruitment-hero h1 { font-size: 27px; }
    .client-recruitment-attention { min-width: 0; }
    .client-recruitment-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
    .client-recruitment-metrics article { min-height: 98px; padding: 14px; }
    .client-recruitment-section { padding: 18px; }
    .client-role-card dl { grid-template-columns: 1fr 1fr; }
    .client-endorsement-row { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
    .client-endorsement-row > div:last-child { grid-column: auto; }
    .client-endorsement-action { justify-content: flex-start; }
    .application-review-page { margin-top: 14px; }
    .application-review-header,
    .application-review-card { padding: 18px; }
    .client-endorsement-response { width: calc(100% - 24px); }
    .application-review-topline span { display: none; }
    .application-review-facts,
    .application-fit-summary,
    .application-review-checklist,
    .application-review-form-grid,
    .application-ai-columns { grid-template-columns: 1fr; flex-direction: column; }
    .application-compensation-context,
    .application-interview-ratings { grid-template-columns: 1fr; }
    .application-interview-flow ol,
    .application-interview-question-list article,
    .application-interview-observations { grid-template-columns: 1fr; }
    .application-interview-question-list .application-interview-prompt,
    .application-interview-question-list article > span,
    .application-interview-evidence { grid-column: auto; }
    .application-review-field.is-wide { grid-column: auto; }
    .application-document-row { grid-template-columns: 1fr 1fr; }
    .application-document-row > div:first-child { grid-column: 1 / -1; }
    .application-history-list a { grid-template-columns: 1fr; gap: 6px; }
    .application-review-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .application-review-tabs a { min-height: 48px; }
    .application-progress-summary-action { align-items: flex-start; flex-direction: column; gap: 8px; }
    .application-commercial-task { grid-template-columns: 34px minmax(0, 1fr); padding: 15px 18px; }
    .application-commercial-task em { grid-column: 2; }
    .application-commercial-release-form { grid-column: 2; }
    .application-workorder-heading { flex-direction: column; }
    .application-workorder-status { justify-items: start; }
    .workorders-current-reference-heading { flex-direction: column; }
    .workorders-current-reference-badge { white-space: normal; }
    .workorders-current-reference-grid { grid-template-columns: 1fr; }
    .workorders-current-reference-grid div, .workorders-current-reference-grid div:nth-child(3n+2), .workorders-current-reference-grid div:nth-child(3n+3) { min-height: 0; padding: 12px 0; border-left: 0; }
    .workorders-current-reference-notice { align-items: flex-start; flex-direction: column; gap: 3px; }
    .workorders-draft-danger-zone { align-items: flex-start; flex-direction: column; }
    .client-workorder-row { grid-template-columns: 1fr; }
    .client-workorder-summary { grid-template-columns: 1fr; }
    .client-workorder-summary > div { border-right: 0; border-bottom: 1px solid #e2e7ef; }
    .client-workorder-summary > div:last-child { border-bottom: 0; }
    .client-workorder-upload-form { grid-template-columns: 1fr; }
    .client-workorder-upload-form button { grid-column: 1; grid-row: auto; }
    .application-endorsement-attempt-heading { align-items: flex-start; flex-direction: column; }
    .application-endorsement-attempt-dates { grid-template-columns: 1fr; }
    .application-endorsement-attempt-dates > div + div { border-top: 1px solid #e8edf2; border-left: 0; }
}

@media (max-width: 900px) {
    .three_p_users-document-upload { grid-template-columns: 1fr 1fr; }
    .three_p_users-upload-panel { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .three_p_users-document-upload { grid-template-columns: 1fr; }
    .three_p_users-document-upload .three_p_users-form-submit { margin-top: 0; }
    .three_p_users-upload-panel { grid-template-columns: 1fr; }
    .three_p_users-upload-panel .three_p_users-small-button { margin-top: 0; }
}

@media (min-width: 769px) and (max-width: 1050px) {
    .three_p_users-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .three_p_users-assignment-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ########## CLIENT MANAGEMENT ########## */
.clients-page {
    box-sizing: border-box;
    width: min(100% - 40px, 1120px);
    margin: 40px auto;
}

.clients-page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.clients-page-heading h1 { margin: 0 0 6px; color: #222; font-size: 28px; }
.clients-page-heading p { margin: 0; color: #6b7280; font-size: 14px; }
.clients-heading-actions { display: flex; align-items: center; gap: 14px; }
.clients-back-link { color: #4b5563; font-size: 14px; text-decoration: none; }
.clients-back-link:hover { color: #007bff; }
.clients-primary-button,
.clients-filter-button {
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.clients-primary-button:hover,
.clients-filter-button:hover { background: #0056b3; }
.clients-message { margin-bottom: 16px; padding: 11px 14px; border-radius: 6px; background: #eaf7ee; color: #246b38; }

.clients-filter-card {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}
.clients-filter-field { min-width: 180px; }
.clients-filter-field label { display: block; margin-bottom: 6px; color: #4b5563; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.clients-filter-field select { box-sizing: border-box; width: 100%; padding: 9px 11px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #222; font: inherit; }
.clients-filter-field select:focus { outline: none; border-color: #007bff; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12); }

.clients-table-card { overflow-x: auto; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05); }
.clients-table { width: 100%; border-collapse: collapse; color: #374151; }
.clients-table th { padding: 13px 16px; border-bottom: 1px solid #e5e7eb; background: #f8f9fa; color: #4b5563; font-size: 12px; text-align: left; text-transform: uppercase; letter-spacing: 0.04em; }
.clients-table td { padding: 15px 16px; border-bottom: 1px solid #eef0f2; font-size: 14px; vertical-align: middle; }
.clients-table tbody tr:last-child td { border-bottom: 0; }
.clients-table tbody tr:hover { background: #fbfcfd; }
.clients-name-cell { color: #222; font-weight: 600; }
.clients-location-link { color: #006bd6; text-decoration: none; }
.clients-location-link:hover { text-decoration: underline; }
.clients-requirement-note { display: block; margin-top: 4px; color: #8a9099; font-size: 11px; }
.clients-status { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.clients-status-active { background: #eaf7ee; color: #246b38; }
.clients-status-inactive { background: #f1f3f5; color: #5f6670; }
.clients-actions-column { width: 1%; white-space: nowrap; }
.clients-row-actions { display: flex; align-items: center; gap: 8px; min-width: max-content; white-space: nowrap; }
.clients-action-link { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 34px; padding: 7px 11px; border: 1px solid #b9d7f2; border-radius: 6px; background: #fff; color: #006bd6; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.clients-action-link:hover { border-color: #78afe0; background: #f2f8fe; }
.clients-delete-link { border-color: #efcaca; color: #b42318; }
.clients-delete-link:hover { border-color: #dc8f88; background: #fff5f4; }
.clients-empty-row { padding: 38px !important; color: #6b7280; text-align: center; }

.clients-modal[hidden] { display: none; }
.clients-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(17, 24, 39, 0.52); }
.clients-modal-content { box-sizing: border-box; width: 100%; max-width: 430px; padding: 24px; border-radius: 10px; background: #fff; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2); }
.clients-modal-content h2 { margin: 0 0 12px; color: #222; font-size: 21px; }
.clients-modal-content p { margin: 0; color: #4b5563; line-height: 1.5; }
.clients-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.clients-modal-confirm,
.clients-modal-cancel { padding: 10px 15px; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 600; }
.clients-modal-confirm { border: 0; background: #b42318; color: #fff; }
.clients-modal-cancel { border: 1px solid #d1d5db; background: #fff; color: #374151; }

@media (max-width: 720px) {
    .clients-page { width: min(100% - 24px, 1120px); margin: 24px auto; }
    .clients-page-heading { flex-direction: column; gap: 14px; }
    .clients-heading-actions { width: 100%; justify-content: space-between; }
    .clients-filter-card { align-items: stretch; flex-direction: column; }
    .clients-filter-field { min-width: 0; }
    .clients-filter-button { align-self: flex-start; }
}

/* ########## CLIENT FORM ########## */
.client-form-page {
    box-sizing: border-box;
    width: min(100% - 40px, 680px);
    margin: 42px auto;
}

.client-form-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.client-form-heading h1 {
    margin: 0 0 6px;
    color: #222;
    font-size: 28px;
}

.client-form-heading p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.client-form-card {
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.client-form-group {
    margin-bottom: 20px;
}

.client-form-group > label {
    display: block;
    margin-bottom: 7px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.client-form-control {
    box-sizing: border-box;
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font: inherit;
}

.client-form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.12);
}

.client-form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-form-checkbox-group > label {
    margin: 0;
}

.client-form-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    order: -1;
}

.client-form-error {
    display: block;
    margin-top: 5px;
    color: #b42318;
    font-size: 12px;
}

.client-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #eef0f2;
}

.client-form-submit,
.client-form-cancel {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.client-form-submit {
    border: 0;
    background: #007bff;
    color: #fff;
    cursor: pointer;
}

.client-form-submit:hover { background: #0056b3; }
.client-form-cancel { border: 1px solid #d1d5db; color: #374151; background: #fff; }
.client-form-cancel:hover { border-color: #9ca3af; color: #111827; }

/* ########## PROJECT DETAIL ########## */
.project-detail-page {
    box-sizing: border-box;
    width: min(100% - 40px, 1200px);
    margin: 42px auto;
}

.project-detail-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 22px;
}

.project-detail-heading-copy { min-width: 0; }
.project-detail-heading .configuration-back-link { display: inline-block; margin-bottom: 14px; }
.project-detail-heading h1 { margin: 0 0 7px; color: #222; font-size: 30px; line-height: 1.2; overflow-wrap: anywhere; }
.project-detail-heading p { margin: 0; color: #6b7280; font-size: 14px; }
.project-detail-edit { flex: 0 0 auto; white-space: nowrap; }

.project-detail-card {
    overflow: hidden;
    border: 1px solid #e1e6ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 45, 61, 0.07);
}

.project-detail-summary,
.project-detail-metadata { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.project-detail-summary { border-bottom: 1px solid #edf0f3; }
.project-detail-summary > div { padding: 18px 24px; }
.project-detail-summary > div + div { border-left: 1px solid #edf0f3; }
.project-detail-card dt { margin-bottom: 7px; color: #6b7280; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.project-detail-card dd { margin: 0; color: #25364a; font-size: 16px; line-height: 1.5; }

.project-status { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #f1f3f5; color: #5f6670; font-size: 12px; font-weight: 700; }
.project-status-active { background: #eaf7ee; color: #246b38; }
.project-status-draft { background: #eef4fb; color: #315d86; }
.project-status-on_hold { background: #fff6df; color: #8a6200; }
.project-status-completed { background: #e8f5f5; color: #176b6b; }
.project-status-cancelled { background: #fcecec; color: #9c2f2f; }

.project-detail-overview { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(0, 2fr); }
.project-detail-description { min-height: 0; padding: 22px 24px; }
.project-detail-description h2 { margin: 0 0 12px; color: #25364a; font-size: 18px; }
.project-detail-description p { margin: 0; color: #4b5563; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.project-detail-section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.project-detail-description.project-owner-summary { border-right: 1px solid #edf0f3; }
.project-owner-summary p + p { margin-top: 4px; }
.project-owner-summary .project-detail-note { margin-top: 10px; color: #7a5a17; font-size: 13px; line-height: 1.45; }
.project-description-expander { margin-top: 10px; }
.project-description-expander summary { width: fit-content; color: #066bc7; font-size: 13px; font-weight: 600; cursor: pointer; }
.project-description-expander[open] > summary { margin-bottom: 10px; }
.project-description-expander[open] > summary::marker { content: "▾ "; }

.project-detail-metadata { border-top: 1px solid #edf0f3; background: #f8fafc; }
.project-detail-metadata > div { padding: 18px 28px; }
.project-detail-metadata dd { font-size: 14px; }
.project-membership-summary,
.project-read-workspace-summary,
.project-members-management-list { margin-top: 22px; }
.project-read-workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; min-height: 0; }
.project-read-workspace-summary .clients-table th,
.project-read-workspace-summary .clients-table td { white-space: nowrap; }
.workspace-delete-form { display: inline-flex; margin: 0; vertical-align: middle; }
.workspace-delete-button { display: inline-grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #9b3a32; cursor: pointer; }
.workspace-delete-button:hover { border-color: #efc4c0; background: #fff4f3; color: #b42318; }
.workspace-delete-button:focus-visible { outline: 3px solid rgba(180, 35, 24, .16); outline-offset: 2px; }
.workspace-delete-button:disabled { cursor: wait; opacity: .6; }
.workspace-delete-button svg { width: 17px; height: 17px; fill: currentColor; }
.workspace-delete-form .profile-save-spinner { display: none; }
.workspace-delete-form.profile-form-saving svg { display: none; }
.workspace-delete-form.profile-form-saving .profile-save-spinner { display: inline-block; }

@media (max-width: 600px) {
    .project-detail-page { width: min(100% - 24px, 920px); margin: 24px auto; }
    .project-detail-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
    .project-detail-heading h1 { font-size: 26px; }
    .project-detail-summary,
    .project-detail-metadata { grid-template-columns: 1fr; }
    .project-detail-overview { grid-template-columns: 1fr; }
    .project-detail-summary > div + div { border-top: 1px solid #edf0f3; border-left: 0; }
    .project-detail-description.project-owner-summary { border-right: 0; border-bottom: 1px solid #edf0f3; }
    .project-detail-summary > div,
    .project-detail-description,
    .project-detail-metadata > div { padding-right: 20px; padding-left: 20px; }
    .project-read-workspace-heading { flex-direction: column; }
}

@media (max-width: 600px) {
    .client-form-page { width: min(100% - 24px, 680px); margin: 24px auto; }
    .client-form-heading { flex-direction: column; gap: 10px; }
    .client-form-card { padding: 20px; }
}

/* ########## MODALS ########## */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

/* ########## PROFILE COMPLETION ########## */
.profile-completion-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.profile-completion-container h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
}

/* ########## WORKORDERS SECTION ########## */

.workorders-container {
    padding: 20px;
    font-family: Arial, sans-serif;
}

.workorders-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333333;
    text-align: center;
}

.workorders-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    text-align: left;
}

.workorders-table th,
.workorders-table td {
    border: 1px solid #dddddd;
    padding: 8px;
    text-align: center;
}

.workorders-table th {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #555555;
}

.workorders-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.workorders-table tr:hover {
    background-color: #f1f1f1;
}

.workorders-actions a {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    font-size: 14px;
}

.workorders-actions a.btn-primary {
    background-color: #007bff;
    border: none;
}

.workorders-actions a.btn-primary:hover {
    background-color: #0056b3;
}

.workorders-actions a.btn-danger {
    background-color: #dc3545;
    border: none;
}

.workorders-actions a.btn-danger:hover {
    background-color: #a71d2a;
}

/* ########## WORKORDERS FORM SECTION ########## */

.workorders-form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.workorders-form-container h1 {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.workorders-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.workorders-form-group {
    flex: 1 1 calc(50% - 15px); /* Make fields occupy half the width */
    display: flex;
    flex-direction: column;
}

.workorders-form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.workorders-form-group input,
.workorders-form-group select,
.workorders-form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.workorders-form-group textarea {
    resize: vertical;
}

.workorders-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.workorders-form-actions button,
.workorders-form-actions a {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.workorders-form-actions .btn-success {
    background-color: #28a745;
    color: #fff;
}

.workorders-form-actions .btn-success:hover {
    background-color: #218838;
}

.workorders-form-actions .btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.workorders-form-actions .btn-secondary:hover {
    background-color: #5a6268;
}

/* ########## WORKORDERS FILTER STYLES ########## */
.workorders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.workorders-filter-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.workorders-filter-container label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.workorders-filter-container select {
    padding: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
}

.workorders-filter-container button {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.workorders-filter-container button:hover {
    background-color: #0056b3;
}


/* ########## HOLIDAYS LIST PAGE ########## */
.holidays-list-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.holidays-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.holidays-list-header h1 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.holidays-sort-form {
    justify-content: flex-start;
}

.holidays-sort-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.holidays-list-btn {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.holidays-list-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.holidays-list-table th, .holidays-list-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.holidays-list-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.holidays-list-table td {
    font-size: 14px;
}

.holidays-list-empty {
    text-align: center;
    font-style: italic;
    color: #666;
    padding: 20px;
}

/* Align action buttons */
.holidays-list-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid #b9d7f2;
    border-radius: 6px;
    background: #fff;
    color: #007bff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.holidays-list-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border: 1px solid #efcaca;
    border-radius: 6px;
    background: #fff;
    color: #dc3545;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.holidays-list-actions { display: flex; align-items: center; gap: 8px; min-width: max-content; white-space: nowrap; }
.holidays-list-edit:hover { border-color: #78afe0; background: #f2f8fe; }
.holidays-list-delete:hover { border-color: #dc8f88; background: #fff5f4; }

/* ########## HOLIDAYS FORM PAGE ########## */
.holidays-form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.holidays-form-header {
    text-align: center;
    margin-bottom: 20px;
}

.holidays-form {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.holidays-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.holidays-form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.holidays-form-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.holidays-form-checkbox-group {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.holidays-form-checkbox-group label,
.holidays-form-checkbox-group input {
    margin: 0;
}

.holidays-form-helper-text {
    font-size: 12px;
    color: #666;
}

.holidays-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.holidays-form-btn {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

.holidays-form-btn-secondary {
    padding: 10px 15px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
}
/* ########## HOLIDAYS DELETE MODAL ########## */
.holidays-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.holidays-modal-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.holidays-modal-btn-danger {
    background-color: #dc3545;
    padding: 10px 15px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.holidays-modal-btn-secondary {
    background-color: #6c757d;
    padding: 10px 15px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

/* ############# PAYMENTS_HR ######### */
/* ########## PAYMENTS_HR STYLES ########## */

.payments-hr {
    font-family: Arial, sans-serif;
    max-width: 90%;
    margin: 20px auto;
    padding-top: 20px; /* Ensures content starts near the top */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Adjust the header spacing */
.payments-hr h1 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px; /* Adds spacing between title and dropdown */
}

/* Timesheet Period Dropdown */
.payments-hr .mb-3 {
    margin-bottom: 20px; /* Adds spacing between dropdown and table */
}

/* Table Styling */
.payments-hr .table-container {
    width: 100%;
    margin-top: 20px;
    overflow-x: auto;
}

.payments-hr table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    text-align: center;
}

.payments-hr th,
.payments-hr td {
    border: 1px solid #ddd;
    padding: 10px;
}

.payments-hr th {
    text-align: center;
    background-color: #f8f8f8;
    font-weight: bold;
}

/* Center align hours */
.payments-hr .hours {
    text-align: center;
}

/* Right align currency fields */
.payments-hr .currency {
    text-align: right;
}

.payments-hr .wht-rate-input {
    display: inline-block;
    width: 5.5rem;
    margin-right: 0.35rem;
    text-align: right;
}

.payments-hr .wht-amount {
    display: block;
    margin-top: 0.2rem;
    white-space: nowrap;
}

/* Hide commit button container initially */
.payments-hr #commit-container {
    display: none;
    text-align: center;
    margin-top: 20px;
}

/* Ensure the commit button is visually distinct */
.payments-hr #commit-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.payments-hr #commit-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.payments-hr #commit-btn:hover:not(:disabled) {
    background-color: #0056b3;
}

/* Ensure checkboxes align properly */
.payments-hr .commit-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Prevent already committed checkboxes from being interacted with */
.payments-hr .commit-checkbox:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ########## PAYMENTS_HR MODAL STYLES ########## */

/* Overlay Background */
.payments-hr .modal {
    display: none; /* Initially hidden */
    position: fixed;
    z-index: 1050; /* Ensure it appears on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
}

/* Modal Content */
.payments-hr .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 300px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Modal Buttons */
.payments-hr .modal-content button {
    width: 120px;
    margin: 10px;
    padding: 10px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}

/* Confirm Button */
.payments-hr .btn-success {
    background-color: #28a745;
    color: white;
}

.payments-hr .btn-success:hover {
    background-color: #218838;
}

/* Cancel Button */
.payments-hr .btn-danger {
    background-color: #dc3545;
    color: white;
}

.payments-hr .btn-danger:hover {
    background-color: #c82333;
}

/* ============================= */
/* E-SIGNING PAGE STYLES (.e-signing) */
/* ============================= */

    .esigning-container {
        max-width: 1000px;
        margin: 0 auto;
        padding: 20px;
    }
    .esigning-title {
        margin-bottom: 20px;
    }
    .esigning-pdf-viewer {
        margin-bottom: 30px;
    }
    .esigning-upload-section {
        margin-bottom: 20px;
    }
    .esigning-btn {
        padding: 8px 16px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-weight: bold;
    }
    .esigning-btn-green {
        background-color: #4CAF50;
        color: white;
    }
    .esigning-btn-green:hover {
        background-color: #45a049;
    }
    .esigning-modal {
        display: none;
        position: fixed;
        z-index: 1000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0,0,0,0.4);
    }
    .esigning-modal-content {
        background-color: #fefefe;
        margin: 10% auto;
        padding: 20px;
        border: 1px solid #888;
        width: 80%;
        max-width: 600px;
    }
    .esigning-close-btn {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }
    .esigning-close-btn:hover {
        color: black;
    }
    .esigning-instructions {
        font-style: italic;
        color: #666;
        margin-top: 10px;
    }
    #clientNotesText {
        width: 100%;
        padding: 8px;
        margin-bottom: 15px;
    }

/* ============================= */
/* Attendance HR – Mobile Fix */
/* ============================= */

@media (max-width: 768px) {

    /* Main container */
    .attendance-container {
        min-width: 100%;
        padding: 10px;
        overflow-x: auto;
    }

    /* Main HR table */
    .attendance-hr-table {
        min-width: 700px;
        table-layout: auto;
    }

    .attendance-hr-table th,
    .attendance-hr-table td {
        white-space: normal;
        font-size: 12px;
    }

    /* ----------------------------- */
    /* Details table inside expand */
    /* ----------------------------- */

    .details-row td {
        padding: 0; /* Remove extra padding so scroll fits cleanly */
    }

    .details-row table {
        min-width: 900px; /* Force scroll instead of squashing */
    }

}

/* Keep the shared operational shell authoritative over legacy module widths. */
.attendance-container.ops-page,
.attendance-client-container.ops-page,
.attendance-payments-container.ops-page,
.payments-hr.ops-page,
.esigning-container.ops-page,
.upload-timesheet-container.ops-page,
.holidays-list-container.ops-page,
.holidays-form-container.ops-page {
    box-sizing: border-box;
    width: min(1440px, calc(100% - 40px));
    max-width: 1440px;
    margin: 34px auto 80px;
}
@media (max-width: 760px) {
    .attendance-container.ops-page,
    .attendance-client-container.ops-page,
    .attendance-payments-container.ops-page,
    .payments-hr.ops-page,
    .esigning-container.ops-page,
    .upload-timesheet-container.ops-page,
    .holidays-list-container.ops-page,
    .holidays-form-container.ops-page {
        width: calc(100% - 24px);
        margin-top: 20px;
    }
}
/* ===================================== */
/* GLOBAL MOBILE HARD WIDTH FIX         */
/* ===================================== */

@media (max-width: 768px) {

    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .layout-wrapper,
    .main-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }

    .attendance-container {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }

    .attendance-hr-table {
        min-width: 900px;   /* Force horizontal scroll instead of squashing */
        table-layout: auto;
    }

    .details-table {
        min-width: 1100px;  /* Details table wider than parent */
    }

}
/* ===================================== */
/* FIX FLEX WRAPPER BREAKING TABLES     */
/* ===================================== */

@media (max-width: 768px) {

    .main-content {
        display: block;              /* Remove flex centering */
        padding: 70px 10px 20px 10px;
    }

    .attendance-container {
        width: 100%;
        min-width: 0;                /* CRITICAL */
        overflow-x: auto;
    }

    .attendance-hr-table {
        min-width: 900px;            /* Forces horizontal scroll */
        table-layout: auto;
    }

    .details-row table {
        min-width: 1100px;
    }

}

/* Public website and authentication shell */
.public-shell { display: flex; min-height: 100vh; margin: 0; flex-direction: column; background: #f3f6fa; color: #1f2a3b; }
.public-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    min-height: 72px;
    padding: 14px max(28px, calc((100% - 1240px) / 2));
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(12px);
}
.public-brand { display: inline-flex; align-items: center; gap: 11px; color: #172033; font-size: 15px; font-weight: 800; text-decoration: none; }
.public-brand img { width: 38px; height: 38px; object-fit: contain; }
.public-header-nav { display: flex; align-items: center; gap: 8px; }
.public-header-nav a { padding: 9px 12px; border-radius: 7px; color: #526075; font-size: 12px; font-weight: 700; text-decoration: none; }
.public-header-nav a:hover { background: #f0f5f9; color: #0875ba; }
.public-header-nav .public-header-action { padding-inline: 15px; background: #087fcb; color: #fff; }
.public-header-nav .public-header-action:hover { background: #066cae; color: #fff; }
.public-main { flex: 1; }
.public-footer { padding: 22px 24px; border-top: 1px solid #e1e7ee; background: #fff; color: #748094; text-align: center; font-size: 11px; }
.public-footer p { margin: 0; }
.public-kicker { color: #087fcb; font-size: 11px; font-weight: 800; letter-spacing: .105em; text-transform: uppercase; }
.public-primary-button,
.public-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.public-primary-button { border: 1px solid #087fcb; background: #087fcb; color: #fff; }
.public-primary-button:hover { border-color: #066cae; background: #066cae; }
.public-secondary-button { border: 1px solid #ccd7e3; background: #fff; color: #334155; }
.landing-page-body { display: flex; min-height: 100vh; flex-direction: column; }
.landing-page-main {
    flex: 1;
    width: 100%;
    padding: 0;
    background:
        radial-gradient(circle at 88% 8%, rgba(17,118,174,.18), transparent 31%),
        radial-gradient(circle at 10% 44%, rgba(20,56,77,.08), transparent 28%),
        linear-gradient(180deg, #f8fbfd 0%, #edf3f7 100%);
}
.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    align-items: center;
    gap: 64px;
    box-sizing: border-box;
    width: min(1240px, calc(100% - 48px));
    min-height: 610px;
    margin: 0 auto;
    padding: 70px 0;
}
.landing-hero-copy h1 { max-width: 760px; margin: 12px 0 20px; color: #142034; font-size: clamp(44px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -.052em; }
.landing-hero-copy > p { max-width: 660px; margin: 0; color: #5f6d82; font-size: 18px; line-height: 1.6; }
.landing-hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.landing-trust-row { display: flex; flex-wrap: wrap; gap: 9px 22px; margin-top: 28px; color: #64748b; font-size: 11px; font-weight: 700; }
.landing-trust-row span::before { content: "✓"; margin-right: 7px; color: #1a8b50; }
.landing-hero-panel { position: relative; overflow: hidden; padding: 30px; border: 1px solid rgba(186,207,220,.9); border-radius: 20px; background: linear-gradient(155deg, rgba(255,255,255,.96), rgba(238,247,251,.92)); box-shadow: 0 24px 65px rgba(38,62,89,.13); backdrop-filter: blur(10px); }
.landing-hero-panel::before { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #123b53, #1688cf 65%, #7dc9dd); content: ""; }
.landing-panel-label { display: block; margin-bottom: 16px; color: #6e7b8f; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.landing-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.landing-panel-grid div { min-height: 105px; padding: 18px; border: 1px solid #e3e9ef; border-radius: 11px; background: #f8fafc; }
.landing-panel-grid strong,
.landing-panel-grid span { display: block; }
.landing-panel-grid strong { margin-bottom: 8px; color: #263246; font-size: 14px; }
.landing-panel-grid span { color: #738095; font-size: 11px; line-height: 1.45; }
.landing-service-stack { display: grid; gap: 2px; }
.landing-service-stack > div { display: grid; grid-template-columns: 38px 1fr; align-items: start; gap: 15px; padding: 19px 0; border-top: 1px solid #dce7ed; }
.landing-service-stack > div:first-child { border-top: 0; }
.landing-service-number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #123b53; color: #fff; font-size: 10px; font-weight: 800; }
.landing-service-stack p { margin: 0; }
.landing-service-stack strong,
.landing-service-stack small { display: block; }
.landing-service-stack strong { margin-bottom: 5px; color: #1f3041; font-size: 15px; }
.landing-service-stack small { color: #68788b; font-size: 11px; line-height: 1.5; }
.landing-audience { box-sizing: border-box; width: min(1240px, calc(100% - 48px)); margin: 0 auto 80px; padding: 40px; border: 1px solid #dfe6ed; border-radius: 16px; background: #fff; box-shadow: 0 14px 38px rgba(32,50,74,.06); }
.landing-audience > div:first-child { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.landing-audience h2 { max-width: 580px; margin: 7px 0 0; color: #1d293b; font-size: 28px; letter-spacing: -.025em; }
.landing-audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.landing-audience-grid article { padding: 22px; border-radius: 11px; background: #f6f9fb; }
.landing-audience-grid article > span { color: #1688cf; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.landing-audience-grid h3 { margin: 13px 0 8px; font-size: 17px; }
.landing-audience-grid p { margin: 0; color: #657287; font-size: 12px; line-height: 1.55; }
.public-auth-page { box-sizing: border-box; width: min(1160px, calc(100% - 40px)); margin: 50px auto 80px; }
.public-auth-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 470px); align-items: center; gap: 70px; }
.public-auth-context { padding: 28px 10px; }
.public-auth-context h1 { max-width: 610px; margin: 12px 0 18px; color: #172033; font-size: clamp(38px, 5vw, 58px); line-height: 1.04; letter-spacing: -.045em; }
.public-auth-context > p { max-width: 610px; margin: 0; color: #637087; font-size: 16px; line-height: 1.6; }
.public-auth-points { display: grid; gap: 12px; margin-top: 30px; }
.public-auth-points > div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding-top: 12px; border-top: 1px solid #dde5ed; }
.public-auth-points strong { color: #263246; font-size: 12px; }
.public-auth-points span { color: #6b788c; font-size: 12px; }
.public-auth-service-points > div { grid-template-columns: 96px 1fr; }
.public-auth-note { display: grid; gap: 5px; max-width: 570px; margin-top: 28px; padding: 15px; border-left: 3px solid #1688cf; border-radius: 7px; background: #edf6fc; }
.public-auth-note strong { font-size: 12px; }
.public-auth-note span { color: #607086; font-size: 11px; line-height: 1.45; }
.public-auth-card,
.public-shell .auth-container,
.public-shell .password-change-container,
.public-shell .email-verification-container,
.public-shell .myaccount-email-confirmation-card {
    box-sizing: border-box;
    width: 100%;
    padding: 30px;
    border: 1px solid #dfe6ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(32,50,74,.09);
}
.public-auth-card h2 { margin: 7px 0 8px; color: #1c2739; font-size: 25px; letter-spacing: -.02em; }
.public-auth-intro { margin: 0 0 22px; color: #6b788c; font-size: 12px; line-height: 1.5; }
.public-auth-form { display: grid; gap: 15px; }
.public-auth-form .login-form-group { display: grid; gap: 7px; margin: 0; }
.public-auth-form label { color: #344155; font-size: 12px; font-weight: 750; }
.public-auth-form input:not([type=checkbox]),
.public-auth-form select,
.public-auth-form textarea,
.public-shell .auth-container input:not([type=checkbox]),
.public-shell .password-change-container input {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d3dce6;
    border-radius: 8px;
    background: #fff;
    color: #263246;
    font: inherit;
}
.public-auth-form input:focus { border-color: #1688cf; outline: 3px solid rgba(22,136,207,.12); }
.public-auth-form .login-form-remember { display: flex; align-items: center; gap: 8px; }
.public-auth-form .login-form-checkbox { width: 16px; min-height: 16px; }
.public-auth-form .public-primary-button { width: 100%; margin-top: 3px; }
.public-auth-card .auth-links { display: flex; justify-content: space-between; gap: 14px; margin-top: 20px; color: #748094; font-size: 11px; }
.public-auth-card .auth-links a,
.public-shell .auth-links a { color: #0878c1; font-weight: 700; text-decoration: none; }
.public-signup-form small { color: #7a8799; font-size: 10px; line-height: 1.4; }
.public-signup-form ul { margin: 6px 0 0; padding-left: 18px; color: #7a8799; font-size: 10px; }
.public-signup-form .g-recaptcha { max-width: 100%; overflow: hidden; }
.public-shell .auth-wrapper,
.public-shell .password-change-wrapper,
.public-shell .email-verification-container,
.public-shell .myaccount-email-confirmation-container { box-sizing: border-box; width: min(520px, calc(100% - 32px)); margin: 50px auto 80px; }
.public-shell .auth-container h1,
.public-shell .password-change-container h1,
.public-shell .email-verification-header,
.public-shell .myaccount-email-confirmation-title { margin: 0 0 12px; color: #1c2739; font-size: 27px; letter-spacing: -.025em; }
.public-shell .auth-container p,
.public-shell .email-verification-text,
.public-shell .myaccount-email-confirmation-message,
.public-shell .myaccount-email-confirmation-note { color: #667388; font-size: 13px; line-height: 1.55; }
@media (max-width: 900px) {
    .landing-hero,
    .public-auth-layout { grid-template-columns: 1fr; }
    .landing-hero { gap: 35px; padding: 55px 0; }
    .public-auth-page { margin-top: 28px; }
    .public-auth-context { padding-bottom: 0; }
}
@media (max-width: 620px) {
    .public-header { min-height: 64px; padding: 11px 16px; }
    .public-brand span { display: none; }
    .public-header-nav a:first-child { display: none; }
    .landing-hero,
    .landing-audience { width: calc(100% - 24px); }
    .landing-hero-copy h1 { font-size: 42px; }
    .landing-panel-grid,
    .landing-audience-grid { grid-template-columns: 1fr; }
    .landing-audience { padding: 24px; }
    .public-auth-page { width: calc(100% - 24px); }
    .public-auth-layout { gap: 24px; }
    .public-auth-context h1 { font-size: 38px; }
    .public-auth-card { padding: 23px; }
    .public-auth-card .auth-links { align-items: flex-start; flex-direction: column; }
}

/* Shared mobile stability layer */
img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

.main-content > *,
.public-main > * {
    min-width: 0;
}

.main-content :is(input:not([type="checkbox"], [type="radio"]), select, textarea),
.public-main :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
    max-width: 100%;
}

.main-content :is(p, li, dd, td, th, label, a, span, strong),
.public-main :is(p, li, dd, label, a, span, strong) {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .authenticated-shell .main-content {
        overflow-x: clip;
        padding-right: 12px;
        padding-left: 12px;
    }

    .authenticated-shell .modern-header {
        gap: 10px;
    }

    .authenticated-shell .modern-header .header-left,
    .authenticated-shell .modern-header .header-right,
    .header-page-name {
        min-width: 0;
    }

    .header-page-name {
        overflow: hidden;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .authenticated-shell .modern-header .header-right {
        flex: 0 0 auto;
        max-width: none;
        gap: 9px;
    }

    .notification-icon-link,
    .icon-link,
    .sidebar-toggle {
        flex: 0 0 auto;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .main-content :is(
        .table-container,
        .configuration-table-card,
        .clients-table-card,
        .users-table-card,
        .assignments-table-card,
        .workorders-table-card,
        .my-documents-table-card,
        .application-table-card,
        .application-review-tabs,
        .interview-calendar-scroll
    ) {
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .main-content :is(table, .details-table) {
        max-width: none;
    }

    .main-content :is(
        .configuration-modal,
        .clients-modal,
        .users-modal,
        .assignments-modal,
        .workorders-modal,
        .my-documents-modal,
        .screening-preview-modal,
        .attendance-modal,
        .attendance-hr-modal,
        .attendance-client-modal,
        .holidays-modal,
        .hr-review-modal,
        .modal,
        #paymentsModal,
        .esigning-modal
    ) {
        box-sizing: border-box;
        padding: 12px;
        overflow-y: auto;
    }

    .main-content :is(
        .configuration-modal-panel,
        .clients-modal-content,
        .users-modal-panel,
        .assignments-modal-panel,
        .workorders-modal-panel,
        .my-documents-modal-panel,
        .screening-preview-panel,
        .attendance-modal-content,
        .attendance-hr-modal-content,
        .attendance-client-modal-content,
        .holidays-modal-content,
        .hr-review-modal,
        .modal-content,
        .esigning-modal-content
    ) {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        max-height: calc(100dvh - 24px);
        margin: auto;
        overflow-y: auto;
    }

    .main-content :is(
        .entity-form-actions,
        .configuration-modal-actions,
        .clients-modal-actions,
        .users-modal-actions,
        .assignments-modal-actions,
        .workorders-modal-actions,
        .my-documents-modal-actions,
        .application-actions,
        .application-heading-actions,
        .screening-actions,
        .ops-page-actions
    ) {
        flex-wrap: wrap;
    }

    .main-content :is(
        .entity-form-actions,
        .configuration-modal-actions,
        .clients-modal-actions,
        .users-modal-actions,
        .assignments-modal-actions,
        .workorders-modal-actions,
        .my-documents-modal-actions
    ) > * {
        min-width: min(100%, 130px);
        flex: 1 1 auto;
    }

    .public-header-nav {
        min-width: 0;
        gap: 3px;
    }

    .public-header-nav a {
        padding-inline: 8px;
        white-space: nowrap;
    }

    .landing-hero-copy h1,
    .public-auth-context h1 {
        overflow-wrap: normal;
        word-break: normal;
    }
}

@media (max-width: 420px) {
    .authenticated-shell .modern-header {
        padding-right: 10px;
        padding-left: 10px;
    }

    .authenticated-shell .modern-header .user-info {
        display: none;
    }

    .landing-hero-copy h1 {
        font-size: 36px;
    }

    .landing-hero-actions > *,
    .public-header-action {
        min-width: 0;
    }

    .landing-hero-actions > * {
        width: 100%;
    }
}
