.screening-page { max-width: 1100px; margin: 0 auto; color: #33392f; }
.screening-page .screening-heading { display: block; max-width: none; margin: 0; }
.screening-page .screening-heading .admin-overline { display: block; font-size: .68rem; letter-spacing: .14em; }
.screening-page .screening-heading h1 { max-width: none; margin: 12px 0 12px; font-size: clamp(1.8rem, 3.2vw, 2.35rem); line-height: 1.15; letter-spacing: -.035em; }
.screening-page .screening-heading h1, .screening-page .screening-heading p { white-space: nowrap; }
.screening-page .screening-heading p { max-width: none; margin: 0; font-size: .95rem; line-height: 1.65; }
.screening-consent-first { padding: 10px 14px; margin-bottom: 10px; border: 1px solid #d8dfca; border-radius: 10px; background: #f6f7ef; }
.screening-consent-first label { display: flex; align-items: flex-start; gap: 10px; color: #3f4b31; font-size: 14px; font-weight: 700; line-height: 1.55; }
.screening-consent-first input { width: 17px; height: 17px; flex: 0 0 auto; margin: 2px 0 0; accent-color: #62744b; }
.screening-consent-first p { margin: 5px 0 0 27px; color: #66705d; font-size: 12px; line-height: 1.5; }
.screening-form-controls { min-width: 0; padding: 0; margin: 0; border: 0; }
.screening-form-controls:disabled { opacity: .78; }
.screening-list { padding: 22px; border: 1px solid #dde2d4; border-radius: 14px; background: #fffdf7; }
.screening-list-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.screening-list-header h2 { margin: 0 0 6px; color: #33392f; font-size: 20px; }
.screening-list-header p, .screening-list-hint { margin: 0; color: #66705d; font-size: 13px; line-height: 1.6; }
.screening-add-button, .screening-open-button, .screening-back-button { min-height: 42px; padding: 10px 16px; border: 1px solid #62744b; border-radius: 8px; background: #62744b; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.screening-add-button:disabled { opacity: .55; cursor: not-allowed; }
.screening-back-button { margin: 0 0 12px; border-color: #cfd5c2; background: #fff; color: #4d5737; }
.screening-list-table-wrap { overflow-x: auto; }
.screening-list-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.screening-list-table th, .screening-list-table td { padding: 13px 12px; border-bottom: 1px solid #e4e8de; text-align: left; vertical-align: middle; }
.screening-list-table th { color: #66705d; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.screening-open-button { min-height: 36px; padding: 7px 12px; white-space: nowrap; }
.screening-list-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.screening-share-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 12px; border: 1px solid #cfd5c2; border-radius: 8px; background: #fff; color: #4d5737; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.screening-share-button:hover { background: #f6f7ef; }
.screening-share-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(29 35 25 / 55%); }
.screening-share-modal { width: min(100%, 560px); max-height: min(88vh, 760px); overflow: auto; padding: 24px; border: 1px solid #dde2d4; border-radius: 14px; background: #fffdf7; box-shadow: 0 20px 60px rgb(0 0 0 / 20%); }
.screening-share-heading { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.screening-share-heading h2 { margin: 7px 0; color: #33392f; font-size: 21px; }
.screening-share-heading p { margin: 0; color: #66705d; font-size: 13px; line-height: 1.5; }
.screening-share-heading > button { align-self: flex-start; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #dde2d4; border-radius: 7px; background: #fff; color: #4d5737; cursor: pointer; }
.screening-share-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; margin-bottom: 12px; border: 1px solid #d5ddca; border-radius: 8px; background: #fff; color: #66705d; }
.screening-share-search input { width: 100%; min-width: 0; padding: 10px 0; border: 0; outline: 0; background: transparent; color: #33392f; font: inherit; font-size: 13px; }
.screening-share-list { display: grid; max-height: 300px; overflow-y: auto; border: 1px solid #e4e8de; border-radius: 8px; }
.screening-share-list > label { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border-bottom: 1px solid #e4e8de; cursor: pointer; }
.screening-share-list > label:last-child { border-bottom: 0; }
.screening-share-list input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: #62744b; }
.screening-share-list label > span { display: grid; gap: 3px; color: #33392f; font-size: 13px; }
.screening-share-list small { color: #66705d; font-size: 12px; }
.screening-share-list .screening-share-active { color: #4d6738; }
.screening-share-error { padding: 10px 12px; border-radius: 7px; background: #fae9e4; color: #843e30; font-size: 13px; }
.screening-share-submit { width: 100%; min-height: 42px; padding: 10px 14px; margin-top: 16px; border: 0; border-radius: 8px; background: #62744b; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.screening-share-submit:disabled { opacity: .55; cursor: not-allowed; }
.screening-share-admin-button { display: flex; width: 100%; min-height: 42px; align-items: center; justify-content: center; padding: 10px 14px; margin-top: 10px; border: 1px solid #cfd5c2; border-radius: 8px; background: #fffdf7; color: #4d5737; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.screening-share-admin-button:hover:not(:disabled) { border-color: #9ca887; background: #f6f7ef; }
.screening-share-admin-button:disabled { color: #78816b; background: #f3f4ef; cursor: default; }
.screening-list-empty { padding: 18px; border-radius: 8px; background: #f6f7ef; color: #66705d; font-size: 14px; }
.screening-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screening-child, .screening-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.screening-child { max-width: 360px; margin: 0 0 14px; }
.screening-page .screening-child .select2-container { width: 100% !important; min-width: 0; font: inherit; font-weight: 400; }
.screening-page .screening-child .select2-selection--single { box-sizing: border-box; min-height: 44px; height: auto; border: 1px solid #d5ddca; border-radius: 8px; background: #fff; }
.screening-page .screening-child .select2-selection--single .select2-selection__rendered { padding: 10px 36px 10px 12px; line-height: 22px; color: #33392f; }
.screening-page .screening-child .select2-selection--single .select2-selection__arrow { height: 42px; right: 7px; }
.screening-page .screening-child .select2-container--focus .select2-selection--single,
.screening-page .screening-child .select2-container--open .select2-selection--single { border-color: #718054; }
.screening-page .screening-child .select2-container--disabled .select2-selection--single { background: #f3f4f1; cursor: wait; }
.screening-page select, .screening-field input, .screening-field textarea { width: 100%; padding: 11px 12px; border: 1px solid #d5ddca; border-radius: 8px; background: #fff; color: #33392f; font: inherit; }
.screening-page .child-date-field { display: flex; min-width: 0; flex-direction: column; gap: 8px; color: #33392f; font-size: 14px; font-weight: 600; }
.screening-page .child-date-field > .required-label { display: block; min-height: 2.8em; line-height: 1.4; }
.screening-page .screening-fields :is(input:not([type="checkbox"]):not([type="radio"]), textarea), .screening-page .screening-fields .parent-date-picker-control { box-sizing: border-box; min-width: 0; }
.screening-page .parent-date-picker-control { width: 100%; }
.screening-page .parent-date-picker-input { box-sizing: border-box; width: 100%; min-height: 44px; padding: 11px 52px 11px 12px; border: 1px solid #d5ddca; border-radius: 8px; background: #fff; color: #33392f; color-scheme: light; font: inherit; cursor: pointer; }
.screening-page .parent-date-picker-control > button { width: 44px; height: calc(100% - 2px); border-left: 1px solid #d5ddca; border-radius: 0 7px 7px 0; background: #f6f7ef; color: #62744b; }
.screening-page .parent-date-picker-control > button:hover { background: #e9efdf; }
.screening-page :is(input,select,textarea,button,a):focus-visible { outline: 2px solid #718054; outline-offset: 3px; }
.screening-page [aria-invalid="true"] { border-color: #c53b32 !important; }
.screening-field-error { display: block; margin-top: 6px; color: #b42318; font-size: 12px; font-weight: 600; line-height: 1.4; }
.screening-field textarea { resize: vertical; }
.screening-progress { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 18px 20px; margin-bottom: 18px; border: 1px solid #e3e6da; border-radius: 10px; background: #fffef9; }
.screening-progress-copy { display: flex; flex-direction: column; gap: 4px; }
.screening-progress-copy span { color: #7d846e; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.screening-progress-copy strong { color: #3c4433; font-size: 15px; }
.screening-step-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; max-height: 180px; overflow-y: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.screening-step-tabs button { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 38px; padding: 7px 11px; border: 1px solid #e0e4d6; border-radius: 7px; background: #fff; color: #66705d; font: inherit; font-size: 12px; cursor: pointer; }
.screening-step-tabs button > span:first-child { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #f0f1e8; color: #66705d; font-size: 11px; font-weight: 700; }
.screening-step-tabs button.is-current { border-color: #718054; background: #e9efdf; color: #3f4b31; font-weight: 700; }
.screening-step-tabs button.is-current > span:first-child, .screening-step-tabs button.is-complete > span:first-child { background: #718054; color: #fff; }
.screening-step-tabs button:disabled { cursor: default; opacity: .65; }
.screening-section { padding: 26px; margin-bottom: 20px; border: 1px solid #dde2d4; border-radius: 14px; background: #fffdf7; scroll-margin-top: 24px; }
.screening-section h2 { font-size: 21px; line-height: 1.3; margin: 0 0 22px; color: #33392f; }
.screening-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-items: start; }
.screening-field-label { min-height: 2.8em; line-height: 1.4; }
.screening-field.is-wide { grid-column: 1/-1; }
.screening-medicine-row { grid-column: 1/-1; min-width: 0; padding: 14px; border: 1px solid #e0e4d6; border-radius: 9px; background: #fffef9; }
.screening-medicine-title { display: block; margin-bottom: 12px; color: #4e5d3b; font-size: 13px; }
.screening-medicine-inputs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.screening-medicine-instruction { grid-column: 1/-1; margin: 4px 0 -8px; font-size: 14px; font-weight: 700; }
.screening-fields fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.screening-fields fieldset.is-single-row { grid-column: 1/-1; min-width: 0; }
.screening-fields fieldset:has(input[type="radio"]) { grid-column: 1/-1; }
.screening-fields legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.screening-options { display: flex; flex-wrap: wrap; gap: 8px; }
.screening-options.is-single-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; overflow: visible; padding-bottom: 0; }
.screening-options.is-single-row label { min-width: 0; align-items: flex-start; padding: 8px; font-size: 12px; line-height: 1.35; white-space: normal; }
.screening-fields fieldset:has(input[type="radio"]) .screening-options { flex-wrap: wrap; overflow: visible; }
.screening-fields fieldset:has(input[type="radio"]) .screening-options label { flex: 0 0 auto; min-width: 0; gap: 6px; padding: 7px 10px; font-size: 12px; white-space: nowrap; }
.screening-fields fieldset:has(input[type="radio"]) .screening-options input { width: 15px; height: 15px; }
.screening-options label { display: flex; align-items: center; gap: 8px; border: 1px solid #e0e4d6; border-radius: 8px; padding: 9px 12px; font-size: 13px; background: #f6f7ef; }
.screening-options input, .screening-save input { width: 16px; height: 16px; flex-shrink: 0; accent-color: #62744b; }
.screening-help, .screening-save p { font-size: 13px; line-height: 1.7; color: #66705d; }
.screening-save { padding: 24px; background: #e9efdf; border-radius: 12px; }
.screening-save label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; }
.screening-save button, .screening-notice button { padding: 11px 18px; border: 0; border-radius: 8px; color: #fff; background: #62744b; margin-top: 16px; cursor: pointer; }
.screening-save button:disabled { opacity: .6; cursor: default; }
.screening-save small { display: block; margin-top: 10px; }
.screening-autosave-status { display: flex; align-items: center; gap: 10px; min-height: 24px; margin: 0 0 16px; color: #66705d; font-size: 13px; line-height: 1.5; }
.screening-autosave-status button { padding: 5px 10px; border: 1px solid #cfd5c2; border-radius: 6px; background: #fff; color: #4d5737; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.screening-video-uploads { padding: 14px; margin: 0 0 18px; border: 1px solid #dde2d4; border-radius: 10px; background: #fffdf7; }
.screening-video-uploads > label { display: block; margin-bottom: 5px; color: #3c4433; font-size: 14px; font-weight: 700; }
.screening-video-uploads > p, .screening-video-uploads > small { display: block; margin: 0 0 10px; color: #66705d; font-size: 12px; line-height: 1.5; }
.screening-video-uploads > input { display: block; max-width: 100%; margin: 8px 0; }
.screening-video-uploads ul { display: grid; gap: 8px; padding: 0; margin: 12px 0 0; list-style: none; }
.screening-video-uploads li { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 10px; border-radius: 7px; background: #f6f7ef; font-size: 12px; }
.screening-video-uploads li span { flex: 1 1 220px; overflow-wrap: anywhere; }
.screening-video-uploads li button { padding: 5px 9px; border: 1px solid #cfd5c2; border-radius: 6px; background: #fff; color: #4d5737; font: inherit; font-weight: 700; cursor: pointer; }
.screening-video-uploads li button:disabled { opacity: .55; cursor: wait; }
.screening-notice { padding: 14px; margin: 16px 0; border-radius: 8px; background: #e8f0df; }
.screening-notice.is-error { background: #fae9e4; color: #843e30; }
.screening-notice button { margin-left: 12px; }
.screening-step-actions { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 30px; }
.screening-step-actions button { min-height: 42px; padding: 10px 18px; border: 1px solid #cfd5c2; border-radius: 7px; background: #fffef9; color: #4d5737; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.screening-step-actions .screening-next { margin-left: auto; border-color: #62744b; background: #62744b; color: #fff; }
.screening-step-actions button:disabled { opacity: .45; cursor: default; }
@media(max-width:900px) { .screening-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:1100px) { .screening-page .screening-heading h1, .screening-page .screening-heading p { white-space: normal; } }
@media(max-width:640px) { .screening-page .screening-heading h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); } .screening-list { padding: 16px; } .screening-list-header { align-items: flex-start; flex-direction: column; } .screening-list-table thead { display: none; } .screening-list-table, .screening-list-table tbody, .screening-list-table tr, .screening-list-table td { display: block; width: 100%; } .screening-list-table tr { padding: 10px 0; border-bottom: 1px solid #e4e8de; } .screening-list-table td { display: flex; justify-content: space-between; gap: 14px; padding: 7px 4px; border: 0; text-align: right; } .screening-list-table td::before { content: attr(data-label); color: #66705d; font-size: 11px; font-weight: 700; text-align: left; text-transform: uppercase; } .screening-list-table td:last-child { justify-content: flex-end; } .screening-list-table td:last-child::before { display: none; } .screening-progress { padding: 15px; } .screening-step-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 190px; } .screening-step-tabs button { min-width: 0; padding: 6px 8px; } .screening-tab-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .screening-fields { grid-template-columns: 1fr; } .screening-field-label { min-height: 0; } .screening-options.is-single-row { grid-template-columns: repeat(2,minmax(0,1fr)); } .screening-options.is-single-row label { align-items: center; overflow-wrap: anywhere; } .screening-medicine-inputs { grid-template-columns: repeat(2,minmax(0,1fr)); } .screening-section { padding: 18px; } }
