*{box-sizing:border-box}html{font-family:Montserrat,Arial,sans-serif;color:var(--ink);background:var(--canvas)}body{margin:0}[hidden]{display:none!important}button,input,select,textarea{font:inherit;color:inherit}a{color:inherit}.panel,.mobile-card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.panel{padding:18px}.panel h2{font-size:14px;margin:0 0 16px}.field{margin:0 0 14px}.field label,.field legend{display:block;margin:0 0 7px;font-size:12px;font-weight:500}.field legend{float:none;width:auto}.field input:not([type=radio]):not([type=file]),.field select,.field textarea{display:block;width:100%;border:1px solid var(--border);border-radius:7px;background:#fff;padding:10px 12px;outline:none}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(239,11,24,.08)}.button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border:1px solid transparent;border-radius:7px;padding:10px 18px;font-weight:600;text-decoration:none;cursor:pointer}.button-primary{color:#fff;background:var(--primary);border-color:var(--primary)}.button-primary:hover{background:var(--primary-dark)}.button-muted{background:#f7f7f8;border-color:var(--border);color:var(--ink)}.button.disabled,.button:disabled{opacity:.45;pointer-events:none}.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.message-stack{margin:0 0 12px}.alert{padding:11px 14px;border-radius:8px;background:#fff0f1;border:1px solid #ffc9ce;color:#b00912}.errorlist{list-style:none;padding:6px 0 0;margin:0;color:var(--danger);font-size:11px}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:20px 0}.question-answer-error{min-height:0;margin:-8px 0 12px;color:var(--danger);font-size:12px;font-weight:500}.question-answer-error.is-empty{display:none}.answer-choice{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;height:48px;border:1.5px solid var(--border);border-radius:7px;background:#fff;cursor:pointer}.answer-choice input{position:absolute;opacity:0}.choice-icon{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#85878b;color:#fff;font-weight:700}.yes-choice.selected{border-color:var(--success);background:var(--success-soft);color:#12a84d}.yes-choice.selected .choice-icon{background:var(--success)}.no-choice.selected{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}.no-choice.selected .choice-icon{background:var(--primary)}.finding-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.field-full{grid-column:1/-1}.upload-box{display:flex!important;align-items:center;justify-content:center;gap:9px;height:74px;border:1.5px dashed #d6dae0;border-radius:8px;color:var(--muted);cursor:pointer}.upload-box small{display:block;font-size:10px}.upload-icon{font-size:22px}.question-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}.state-dot{display:inline-grid;place-items:center;flex:0 0 auto;width:10px;height:10px;border-radius:50%;background:#dfe1e5;color:#fff;font-size:9px}.state-dot.yes{background:var(--success)}.state-dot.no{background:var(--danger)}.state-dot.pending{background:#dfe1e5}.status-badge{display:inline-flex;align-items:center;border-radius:20px;padding:5px 11px;font-size:11px;font-weight:600;white-space:nowrap}.status-badge.completed{background:#def9e8;color:#0ca744}.status-badge.in_progress{background:#fff0f2;color:var(--primary)}.green{color:var(--success)!important}.red{color:var(--danger)!important}

.global-dropdown{position:relative;width:100%;min-width:0}.global-dropdown__native{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;border:0!important;opacity:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;pointer-events:none!important}.global-dropdown__trigger{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--border);border-radius:7px;background:#fff;text-align:left;cursor:pointer;outline:none}.global-dropdown__trigger:hover,.global-dropdown__trigger:focus-visible,.global-dropdown.is-open .global-dropdown__trigger{border-color:var(--primary);box-shadow:0 0 0 3px rgba(239,11,24,.08)}.global-dropdown__trigger:disabled{cursor:not-allowed;opacity:.58}.global-dropdown__label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.global-dropdown__label.is-placeholder{color:var(--muted)}.global-dropdown__chevron{margin-left:12px;color:var(--muted);font-size:12px;transition:transform .16s ease}.global-dropdown.is-open .global-dropdown__chevron{color:var(--primary);transform:rotate(180deg)}.global-dropdown__menu{position:fixed;z-index:1200;display:flex;flex-direction:column;overflow:hidden;border:1px solid #dfe2e7;border-radius:9px;background:#fff;box-shadow:0 12px 30px rgba(16,24,40,.16)}.global-dropdown__search{display:flex;align-items:center;gap:8px;margin:8px;padding:0 10px;border:1px solid var(--border);border-radius:7px;color:var(--muted)}.global-dropdown__search:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px rgba(239,11,24,.08)}.global-dropdown__search i{font-size:13px}.global-dropdown__search input{width:100%;min-height:34px;padding:7px 0;border:0;outline:0;background:transparent;font-size:11px}.global-dropdown__actions{display:flex;gap:6px;padding:0 8px 8px}.global-dropdown__actions button{flex:1;min-height:30px;border:1px solid var(--border);border-radius:5px;background:#f8f9fb;color:var(--ink);font-size:10px;font-weight:600;cursor:pointer}.global-dropdown__actions button:hover{border-color:var(--primary);color:var(--primary)}.global-dropdown__options{min-height:0;overflow-y:auto;padding:0 4px 5px}.global-dropdown__option{display:flex;align-items:center;gap:8px;width:100%;min-height:38px;padding:7px 9px;border:0;border-radius:5px;background:transparent;color:var(--ink);text-align:left;font-size:11px;cursor:pointer}.global-dropdown__option:hover,.global-dropdown__option:focus-visible{background:var(--primary-soft);outline:0}.global-dropdown__option.is-selected{color:var(--primary);font-weight:600}.global-dropdown__option:disabled{cursor:not-allowed;opacity:.45}.global-dropdown__check{width:14px;color:transparent;font-size:13px}.global-dropdown__option.is-selected .global-dropdown__check{color:var(--primary)}.global-dropdown__option-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-section-selector .global-dropdown{min-width:160px}


.button-muted {
  transition: border-color .2s ease, color .2s ease;
}
.button-muted:hover,
.button-muted:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}

.answer-choice {
  transition: border-color .2s ease, color .2s ease;
}
.answer-choice.yes-choice:not(.selected):hover,
.answer-choice.yes-choice:not(.selected):focus-within {
  border-color: var(--success);
  color: var(--success);
}
.answer-choice.no-choice:not(.selected):hover,
.answer-choice.no-choice:not(.selected):focus-within {
  border-color: var(--primary);
  color: var(--primary);
}
.answer-choice.yes-choice:not(.selected):hover .choice-icon,
.answer-choice.yes-choice:not(.selected):focus-within .choice-icon {
  background: var(--success);
}
.answer-choice.no-choice:not(.selected):hover .choice-icon,
.answer-choice.no-choice:not(.selected):focus-within .choice-icon {
  background: var(--primary);
}
.choice-icon {
  line-height: 1;
}
.choice-icon i {
  display: block;
  line-height: 1;
}
.field input:not([type=radio]):not([type=file]),
.field select,
.shift-grid span {
  transition: border-color .2s ease, color .2s ease;
}
.field input:not([type=radio]):not([type=file]):hover,
.field input:not([type=radio]):not([type=file]):focus-visible,
.field select:hover,
.field select:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
}
.shift-grid label:hover input:not(:checked) + span,
.shift-grid label:focus-within input:not(:checked) + span {
  border-color: var(--primary);
  color: var(--primary);
}

/* A custom inset chevron keeps the select affordance clear of the field edge. */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 12px 8px !important;
}

/* Keep the required file control in the form while the evidence dialog owns file selection. */
.upload-box { position: relative; width: 100%; margin: 0; text-align: left; font-weight: 400; }
.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.upload-box:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(239, 11, 24, .08);
}

/* Evidence capture dialog shared structure. */
.evidence-dialog {
  width: min(680px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(20, 24, 32, .28);
  overflow: hidden;
}
.evidence-dialog::backdrop {
  background: rgba(20, 24, 32, .62);
  backdrop-filter: blur(5px);
}
.evidence-dialog-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  min-height: 560px;
  padding: 20px;
}
.evidence-dialog-header {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
}
.evidence-dialog-header > div { min-width: 0; text-align: center; }
.evidence-dialog-header span,
.evidence-dialog-header strong { display: block; }
.evidence-dialog-header span { color: var(--muted); font-size: 10px; }
.evidence-dialog-header strong { margin-top: 3px; font-size: 15px; }
.evidence-icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.evidence-icon-button:hover { border-color: var(--primary); color: var(--primary); }
.evidence-file-button { justify-self: end; color: var(--primary); }
.evidence-preview-dialog {
  width: min(92vw, 860px);
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  overflow: visible;
}
.history-photo-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  border-radius: 6px;
  background: #f0f2f4;
  color: #a2a8af;
}
.history-evidence-list a.photo .history-photo-fallback i,
.mobile-evidence-list a.photo .history-photo-fallback i {
  font-size: 15px;
  color: #626a72;
}
.history-photo-tile {
  position: relative;
  display: block;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}
.history-photo-retry {
  position: absolute;
  right: -3px;
  bottom: -3px;
  z-index: 1;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #626a72;
  color: #fff;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
}
.history-photo-retry:hover,
.history-photo-retry:focus-visible {
  background: #454c53;
}
.history-photo-retry:focus-visible {
  outline: 2px solid #626a72;
  outline-offset: 2px;
}
.history-photo-retry:disabled {
  cursor: wait;
  opacity: .65;
}
.evidence-preview-dialog::backdrop {
  background: rgba(31, 35, 42, .72);
}
.evidence-preview-dialog-shell {
  position: relative;
  display: grid;
  min-height: min(80vh, 720px);
  place-items: center;
  padding: 18px;
  border-radius: 14px;
  background: #8b8d91;
}
.evidence-preview-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(80vh - 36px);
  border-radius: 6px;
  background: #707277;
  object-fit: contain;
}
.evidence-preview-document {
  width: 100%;
  min-width: 0;
}
.evidence-preview-document-frame {
  display: block;
  width: 100%;
  height: min(76vh, 640px);
  border: 0;
  border-radius: 7px;
  background: #fff;
}
.evidence-preview-document-fallback {
  display: grid;
  min-width: min(100%, 320px);
  place-items: center;
  gap: 9px;
  padding: 34px 24px;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  text-align: center;
}
.evidence-preview-document-fallback > i {
  color: var(--primary);
  font-size: 34px;
}
.evidence-preview-document-fallback strong {
  max-width: min(100%, 520px);
  overflow-wrap: anywhere;
  font-size: 13px;
}
.evidence-preview-document-fallback span {
  color: var(--muted);
  font-size: 10px;
}
.evidence-preview-document-fallback .button {
  min-height: 38px;
  margin-top: 4px;
  font-size: 11px;
}
.evidence-preview-close {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  cursor: pointer;
}
.evidence-preview-close:hover,
.evidence-preview-close:focus-visible {
  color: var(--primary);
  outline: 2px solid rgba(255, 255, 255, .85);
  outline-offset: 2px;
}
.evidence-camera-stage {
  position: relative;
  display: grid;
  min-height: 360px;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #15171b;
}
.evidence-camera-stage video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.evidence-thumbnail-rail {
  height: 72px;
  min-width: 0;
  margin-top: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.evidence-thumbnail-list,
.upload-preview-list {
  display: flex;
  min-width: max-content;
  gap: 8px;
}
.evidence-thumbnail {
  position: relative;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #f0f1f3;
}
.evidence-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.evidence-thumbnail-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 24, 32, .78);
  color: #fff;
  cursor: pointer;
}
.evidence-thumbnail-remove:hover,
.evidence-thumbnail-remove:focus-visible { background: var(--primary); }
.evidence-camera-message {
  position: absolute;
  display: grid;
  max-width: 240px;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  color: #fff;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
}
.evidence-camera-message i { font-size: 30px; }
.evidence-status {
  min-height: 17px;
  margin: 12px 0 14px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.evidence-actions { display: grid; gap: 10px; }
.evidence-main-actions { grid-template-columns: 1fr 1fr; }
.evidence-actions .button { width: 100%; gap: 8px; }
.evidence-capture-button { min-height: 48px; }
.upload-copy { min-width: 0; }
.upload-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-preview-list {
  width: 100%;
  max-width: 100%;
  margin: 8px 0 0;
  padding: 0 2px 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.evidence-form-status {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-size: 10px;
  line-height: 1.4;
}
.evidence-requirement {
  display: block;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.evidence-requirement-label { color: var(--danger); }
.upload-preview-list .evidence-thumbnail {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
  border-radius: 7px;
}
.upload-preview-list .evidence-thumbnail-remove {
  width: 16px;
  height: 16px;
  font-size: 9px;
}
.document-evidence-section {
  margin-bottom: 14px;
}
.upload-box {
  position: relative;
}
.upload-add-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.evidence-requirement {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.document-upload-box.is-disabled {
  cursor: not-allowed;
  opacity: .55;
}
.document-preview-list {
  display: flex;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  margin-top: 8px;
  padding: 0 2px 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.evidence-thumbnail-rail::-webkit-scrollbar,
.upload-preview-list::-webkit-scrollbar,
.document-preview-list::-webkit-scrollbar,
.history-evidence-list::-webkit-scrollbar,
.mobile-evidence-list::-webkit-scrollbar,
.report-table-wrap::-webkit-scrollbar {
  display: none;
}
.evidence-document-item {
  display: grid;
  flex: 0 0 min(280px, calc(100vw - 64px));
  grid-template-columns: 24px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfbfc;
}
.evidence-document-icon {
  color: var(--primary);
  font-size: 19px;
  text-align: center;
}
.evidence-document-copy {
  display: block;
  min-width: 0;
}
.evidence-document-copy strong,
.evidence-document-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.evidence-document-copy strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.evidence-document-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}
.evidence-document-remove {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.evidence-document-remove:hover,
.evidence-document-remove:focus-visible {
  background: var(--primary-soft);
  color: var(--primary);
}
.evidence-icon-button:disabled,
.evidence-actions .button:disabled {
  cursor: not-allowed;
}
.evidence-confirm-button:disabled { opacity: .45; }
.upload-box[role="button"] { cursor: pointer; }
.upload-box[role="button"]:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(239, 11, 24, .08);
  outline: none;
}
.eligibility-message { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.eligibility-message.is-error { color: var(--danger); }
.eligibility-message.is-success { color: var(--success); }

/* Shared face-enrollment card and camera modal. */
.face-enrollment-field { margin: 0 0 14px; }
.face-enrollment-field > label { display: block; margin: 0 0 7px; font-size: 12px; font-weight: 500; }
.face-enrollment-field > label small { color: var(--danger); font-size: 10px; font-weight: 500; }
.face-purpose-notice { margin: 0 0 8px; padding: 9px 10px; border: 1px solid #f3d8d8; border-radius: 8px; background: #fff8f8; color: var(--muted); font-size: 12px; line-height: 1.45; }
.face-purpose-notice p { margin: 0 0 7px; }
.face-purpose-consent { display: flex !important; align-items: flex-start; gap: 6px; margin: 0 !important; color: var(--ink); font-size: 12px !important; line-height: 1.4; }
.face-purpose-consent input { flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--primary); }
.face-enrollment-box {
  display: flex;
  width: 100%;
  min-height: 70px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1.5px dashed #d6dae0;
  border-radius: 8px;
  background: #fbfbfc;
  text-align: left;
  cursor: pointer;
}
.face-enrollment-box:hover { border-color: var(--primary); }
.face-enrollment-box:disabled { opacity: 1; cursor: default; }
.face-enrollment-box.is-complete { border-color: #bce8ca; background: #f7fff9; }
.face-enrollment-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 19px;
}
.face-enrollment-box.is-complete .face-enrollment-icon { background: #e9f9ee; color: var(--success); }
.face-enrollment-copy { min-width: 0; }
.face-enrollment-copy strong,
.face-enrollment-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.face-enrollment-copy strong { font-size: 12px; }
.face-enrollment-copy small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.face-enrollment-chevron { margin-left: auto; color: #92969d; font-size: 12px; }
.face-enrollment-status { margin: 6px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.face-enrollment-status.is-error { color: var(--danger); }
.face-enrollment-status.is-success { color: var(--success); }
.face-dialog {
  width: min(680px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(20, 24, 32, .28);
  overflow: hidden;
}
.face-dialog::backdrop { background: rgba(20, 24, 32, .62); backdrop-filter: blur(6px); }
.face-dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 560px; padding: 20px; }
.face-dialog-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; padding-bottom: 16px; }
.face-dialog-header > :first-child { justify-self: start; }
.face-dialog-header > :last-child { justify-self: end; }
.face-dialog-header > .face-header-action { justify-self: end; }
.face-dialog-header > div { min-width: 0; text-align: center; }
.face-dialog-header span,
.face-dialog-header strong { display: block; }
.face-dialog-header span { color: var(--muted); font-size: 10px; }
.face-dialog-header strong { margin-top: 3px; font-size: 15px; }
.face-header-spacer { width: 38px; height: 38px; }
.face-icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.face-icon-button:hover { border-color: var(--primary); color: var(--primary); }
.face-header-action { color: var(--primary); font-size: 15px; }
.face-header-action--text {
  width: auto;
  height: auto;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.face-header-action--text:hover,
.face-header-action--text:focus-visible {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
.face-header-action--text:hover span,
.face-header-action--text:focus-visible span { color: var(--primary); }

/* Face lifecycle notifications. */
.notification-list { display: grid; gap: 10px; }
.notification-count { display: inline-grid; min-width: 17px; height: 17px; align-items: center; justify-content: center; border-radius: 999px; padding: 0 4px; color: #fff; background: var(--primary); font-size: 9px; font-weight: 700; line-height: 1; }
.notification-card { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.notification-card__icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 14px; }
.notification-card--approved .notification-card__icon { background: var(--success-soft); color: var(--success); }
.notification-card--cancelled .notification-card__icon,
.notification-card--expired .notification-card__icon { background: #f1f2f4; color: var(--muted); }
.notification-card__body { min-width: 0; flex: 1; }
.notification-card__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.notification-card__heading strong { font-size: 11px; }
.notification-card__heading time { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.notification-card__body p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.notification-empty { display: flex; min-height: 260px; align-items: center; justify-content: center; flex-direction: column; padding: 24px; text-align: center; }
.notification-empty .empty-icon { margin-bottom: 14px; }
.notification-empty h2 { margin: 0; font-size: 15px; }
.notification-empty p { max-width: 260px; margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.face-camera-stage,
.face-preview-stage {
  position: relative;
  display: grid;
  min-height: 390px;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  border-radius: 16px;
  background: #15171b;
}
.face-camera-stage video,
.face-preview-stage img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.face-camera-stage video { transform: scaleX(-1); }
.face-camera-stage video.face-camera-video--environment { transform: none; }
.face-camera-switch {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: rgba(20, 24, 32, .72);
  color: #fff;
  cursor: pointer;
}
.face-camera-switch:hover { background: rgba(20, 24, 32, .9); }
.face-camera-guide {
  position: absolute;
  z-index: 2;
  width: min(64%, 310px);
  aspect-ratio: .72;
  border: 2px dashed rgba(255, 255, 255, .94);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .48);
  pointer-events: none;
}
.face-camera-message {
  position: absolute;
  z-index: 3;
  display: grid;
  max-width: 240px;
  justify-items: center;
  gap: 10px;
  padding: 20px;
  color: #fff;
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
}
.face-camera-message i { font-size: 30px; }
.face-dialog-footer { min-width: 0; }
.face-dialog-footer .face-purpose-notice { margin: 14px 0 10px; }
.face-status { min-height: 17px; margin: 12px 0 14px; color: #111; font-size: 13px; text-align: center; }
.face-actions { display: grid; gap: 10px; }
.face-confirm-actions { grid-template-columns: 1fr 1fr; }
.face-actions .button { width: 100%; gap: 8px; }
.face-actions .button:disabled { opacity: .45; pointer-events: none; }

/* A selected answer keeps its semantic color even while the pointer is over it. */
.answer-choice.yes-choice:is(.selected, :has(input:checked)) {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--success);
}
.answer-choice.yes-choice:is(.selected, :has(input:checked)) .choice-icon {
  background: var(--success);
}
.answer-choice.no-choice:is(.selected, :has(input:checked)) {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
.answer-choice.no-choice:is(.selected, :has(input:checked)) .choice-icon {
  background: var(--primary);
}

.finding-category-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}
.finding-category-fields .field { min-width: 0; }
.finding-category-fields .field:first-child:last-child { grid-column: 1 / -1; }

[data-finding-rows] {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
}
.finding-add-button {
  display: inline-flex;
  align-items: center;
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 26px;
  margin: 4px 0 12px;
  border: 0;
  padding: 5px 0;
  color: var(--danger);
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
.finding-add-button:hover,
.finding-add-button:focus-visible { color: var(--primary-dark); }
.finding-row {
  position: relative;
  min-width: 0;
  padding: 0;
}
.finding-row[data-finding-row].finding-row--category-empty > .field-full {
  grid-column: 1 / -1;
}
.finding-remove-button {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  margin: 0;
  border: 0;
  padding: 3px 0;
  color: var(--danger);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}
.finding-remove-button:disabled { opacity: .45; cursor: default; }

/* Shared by the desktop and mobile absence dialogs. */
.absence-dialog {
  width: min(460px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(20, 24, 32, .24);
}
.absence-dialog::backdrop {
  background: rgba(20, 24, 32, .48);
}
.absence-dialog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
}
.absence-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 15px;
  border-bottom: 1px solid var(--border);
}
.absence-dialog-header span {
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.absence-dialog-header h2 {
  margin: 4px 0 0;
  font-size: 17px;
}
.absence-dialog-close {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: #666b72;
  cursor: pointer;
}
.absence-dialog-body {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
}
.absence-dialog-body label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.absence-dialog-body label small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}
.absence-dialog-body input,
.absence-dialog-body textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}
.absence-dialog-body textarea {
  min-height: 90px;
  resize: vertical;
}
.absence-dialog-body input[readonly],
.absence-dialog-body textarea[readonly] {
  background: #f7f7f8;
  color: var(--muted);
  cursor: default;
}
.absence-dialog-body input:focus,
.absence-dialog-body textarea:focus {
  outline: 2px solid rgba(239, 27, 39, .14);
  border-color: var(--primary);
}
.absence-dialog-status {
  min-height: 0;
  margin: 0;
  color: var(--danger);
  font-size: 10px;
  line-height: 1.4;
}
.absence-dialog-status:empty { display: none; }
.absence-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 22px 20px;
  border-top: 1px solid var(--border);
}
.absence-evidence-file {
  display: grid;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f7f7f8;
  color: var(--muted);
  font-size: 10px;
}
.absence-evidence-file span {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
}
.absence-evidence-file strong {
  overflow-wrap: anywhere;
  font-weight: 500;
}
.absence-evidence-file .history-evidence-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.absence-dialog-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}
.history-absence-meta {
  line-height: 1.6;
}
.history-absence-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.history-absence-dialog .absence-dialog-body {
  padding-top: 12px;
}
.history-absence-dialog .absence-dialog-header {
  padding-bottom: 8px;
}
.status-badge.not_started {
  background: #f0f1f3;
  color: #858a92;
}

/* Prevent the native select from flashing before global_dropdown.js enhances it. */
html.global-dropdown-pending select:not(.global-dropdown__native):not([data-global-dropdown-ignore]) {
  visibility: hidden;
}

.date-picker {
  position: relative;
  width: 100%;
  min-width: 0;
}
.date-picker__display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  pointer-events: none;
}
.date-picker__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.date-picker__icon {
  flex: 0 0 auto;
  margin-left: 10px;
  color: var(--muted);
}
.date-picker__native {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  cursor: pointer;
}
.date-picker:focus-within .date-picker__display,
.date-picker:hover .date-picker__display {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(239, 11, 24, .08);
}
.date-picker.is-disabled .date-picker__display {
  opacity: .58;
}
.date-picker.is-disabled .date-picker__native {
  cursor: not-allowed;
}
