/* Approved evaluation controls; operational states and score rules are unchanged. */
html, body { font-family:"SECA Manrope","Segoe UI",Arial,sans-serif; }
button,input,select,textarea { font-family:inherit; }
html[data-workspace="evaluation"] {
  --criterion-sat:#1b754b; --criterion-sat-rest:#f0f8f3; --criterion-sat-active:#ddf0e5;
  --criterion-unsat:#b43944; --criterion-unsat-rest:#fcf0f1; --criterion-unsat-active:#f8dfe3;
  --criterion-na:#596875; --criterion-na-rest:#f0f3f5; --criterion-na-active:#e1e7ec;
  --criterion-unreviewed:#3569b7; --criterion-unreviewed-rest:#eef4fd; --criterion-unreviewed-active:#dfeafb;
  --criterion-pending:#9b680e; --criterion-pending-rest:#fdf6e9; --criterion-pending-active:#faeccb;
  --eval-selected:#e8edf0; --eval-selected-marker:#66747e; --eval-note-ring:#6554ad;
}
html[data-workspace="evaluation"][data-theme="dark"] {
  --criterion-sat:#73ca97; --criterion-sat-rest:#26362c; --criterion-sat-active:#294b37;
  --criterion-unsat:#f5969f; --criterion-unsat-rest:#38292b; --criterion-unsat-active:#542f35;
  --criterion-na:#c4cbd4; --criterion-na-rest:#303439; --criterion-na-active:#414851;
  --criterion-unreviewed:#95b7f5; --criterion-unreviewed-rest:#283345; --criterion-unreviewed-active:#304b73;
  --criterion-pending:#f0c16b; --criterion-pending-rest:#3a3224; --criterion-pending-active:#514127;
  --eval-selected:#3b3b3b; --eval-selected-marker:#c4c4c4; --eval-note-ring:#b7a1ef;
}
html[data-workspace="evaluation"] .field-criterion .state-control--symbols {
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  padding:0; border:0; background:transparent; justify-content:flex-start;
}
html[data-workspace="evaluation"] .field-criterion .state-control--symbols .state-pill {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 40px;
  width:40px; min-width:40px; height:40px; min-height:40px;
  padding:6px; border:2px solid transparent; border-radius:8px;
  color:var(--criterion-tone); background:var(--criterion-rest); box-shadow:none;
}
html[data-workspace="evaluation"] .field-criterion .state-control--symbols .state-pill .ui-icon { width:22px; height:22px; flex:0 0 22px; }
html[data-workspace="evaluation"][data-theme="dark"] .field-criterion .state-control--symbols .state-pill:not(.state-pill--active) { color:var(--criterion-tone); background:var(--criterion-rest); border-color:transparent; }
html[data-workspace="evaluation"] .state-control--symbols .state-pill__label { display:none; }
html[data-workspace="evaluation"] .state-control--symbols .state-pill--satisfactorio { --criterion-tone:var(--criterion-sat); --criterion-rest:var(--criterion-sat-rest); --criterion-active:var(--criterion-sat-active); }
html[data-workspace="evaluation"] .state-control--symbols .state-pill--no-satisfactorio,
html[data-workspace="evaluation"] .state-control--symbols .state-pill--severidad-alta { --criterion-tone:var(--criterion-unsat); --criterion-rest:var(--criterion-unsat-rest); --criterion-active:var(--criterion-unsat-active); }
html[data-workspace="evaluation"] .state-control--symbols .state-pill--no-aplica { --criterion-tone:var(--criterion-na); --criterion-rest:var(--criterion-na-rest); --criterion-active:var(--criterion-na-active); }
html[data-workspace="evaluation"] .state-control--symbols .state-pill--no-se-reviso { --criterion-tone:var(--criterion-unreviewed); --criterion-rest:var(--criterion-unreviewed-rest); --criterion-active:var(--criterion-unreviewed-active); }
html[data-workspace="evaluation"] .state-control--symbols .state-pill--no-revisado,
html[data-workspace="evaluation"] .state-control--symbols .state-pill--severidad-baja { --criterion-tone:var(--criterion-pending); --criterion-rest:var(--criterion-pending-rest); --criterion-active:var(--criterion-pending-active); }
html[data-workspace="evaluation"] .state-control--symbols .state-pill--severidad-media { --criterion-tone:#aa581c; --criterion-rest:#fff3e8; --criterion-active:#f6dbc4; }
html[data-workspace="evaluation"][data-theme="dark"] .state-control--symbols .state-pill--severidad-media { --criterion-tone:#edac75; --criterion-rest:#3e3026; --criterion-active:#634129; }
html[data-workspace="evaluation"] .field-criterion .state-control--symbols .state-pill.state-pill--active,
html[data-workspace="evaluation"] .field-criterion .state-control--symbols .state-pill:hover:not(:disabled) {
  color:var(--criterion-tone); background:var(--criterion-active); border-color:var(--criterion-tone);
}
html[data-workspace="evaluation"] .field-criterion .state-control--symbols .state-pill.state-pill--active { box-shadow:inset 0 0 0 1px var(--panel); }
html[data-workspace="evaluation"] .field-criterion .state-control--symbols .state-pill:disabled { opacity:1; cursor:default; }
html[data-workspace="evaluation"] .state-control--symbols :is(.state-pill--severidad-baja,.state-pill--severidad-media,.state-pill--severidad-alta) { flex-basis:57px!important; width:57px!important; min-width:57px!important; flex-direction:column; gap:1px; padding:4px!important; }
html[data-workspace="evaluation"] .state-control--symbols :is(.state-pill--severidad-baja,.state-pill--severidad-media,.state-pill--severidad-alta) .state-pill__label { display:block; font-size:9px; }
html[data-workspace="evaluation"] .field-criterion { grid-template-columns:minmax(180px,1fr) auto; gap:20px; }
html[data-workspace="evaluation"] .field-criterion__controls { display:flex; align-items:center; gap:20px; margin-left:0; max-width:none; }
html[data-workspace="evaluation"] .field-criterion .evidence-control { gap:6px; }
html[data-workspace="evaluation"] .evaluation-workspace__nav-item--active,
html[data-workspace="evaluation"] .evaluation-workspace__sublist.is-active { background:var(--eval-selected)!important; color:var(--ink)!important; border-color:var(--line)!important; box-shadow:inset 3px 0 var(--eval-selected-marker); }
html[data-workspace="evaluation"] .evaluation-workspace__nav-item--active strong { color:var(--ink); }
html[data-workspace="evaluation"] .evaluation-workspace-toolbar { padding:8px 14px; gap:12px; }
html[data-workspace="evaluation"] .evaluation-surfaces-inline { gap:7px; }
html[data-workspace="evaluation"] .evaluation-surface-field { display:inline-flex; gap:8px; padding:4px 9px; border:1px solid var(--line); border-radius:7px; }
html[data-workspace="evaluation"] .evaluation-surface-field > span { border-right:1px solid var(--line-strong); padding-right:9px; white-space:nowrap; }
html[data-workspace="evaluation"] .evaluation-surface-field :is(select,strong) { font-size:13px; font-weight:650; color:var(--ink); padding:3px; max-width:none; min-height:28px; }
html[data-workspace="evaluation"] .evaluation-surface-field.is-pending :is(select,strong) { color:#80520d; }
html[data-workspace="evaluation"][data-theme="dark"] .evaluation-surface-field.is-pending :is(select,strong) { color:#f0c36c; }
html[data-workspace="evaluation"] .evaluation-surface-field[data-surface-kind="runway"] { background:#f1f5fb; }
html[data-workspace="evaluation"] .evaluation-surface-field[data-surface-kind="taxiway"] { background:#eff7f5; }
html[data-workspace="evaluation"] .evaluation-surface-field[data-surface-kind="apron"] { background:#f6f2fa; }
html[data-workspace="evaluation"] .evaluation-surface-field[data-surface-kind="runway"] > .ui-icon { color:#416caa; }
html[data-workspace="evaluation"] .evaluation-surface-field[data-surface-kind="taxiway"] > .ui-icon { color:#167e80; }
html[data-workspace="evaluation"] .evaluation-surface-field[data-surface-kind="apron"] > .ui-icon { color:#805aa2; }
html[data-workspace="evaluation"][data-theme="dark"] .evaluation-surface-field[data-surface-kind="runway"] { background:#2a313b; }
html[data-workspace="evaluation"][data-theme="dark"] .evaluation-surface-field[data-surface-kind="taxiway"] { background:#283734; }
html[data-workspace="evaluation"][data-theme="dark"] .evaluation-surface-field[data-surface-kind="apron"] { background:#342e3c; }
html[data-workspace="evaluation"][data-theme="dark"] .evaluation-surface-field[data-surface-kind="runway"] > .ui-icon { color:#9dbdec; }
html[data-workspace="evaluation"][data-theme="dark"] .evaluation-surface-field[data-surface-kind="taxiway"] > .ui-icon { color:#85c7bd; }
html[data-workspace="evaluation"][data-theme="dark"] .evaluation-surface-field[data-surface-kind="apron"] > .ui-icon { color:#c2a7e3; }
.evaluation-value-donut { display:inline-grid; vertical-align:middle; }
.evaluation-value-donut .evaluation-dashboard-donut { width:64px; height:64px; }
.evaluation-value-donut.is-compact .evaluation-dashboard-donut { width:44px; height:44px; }
.evaluation-value-donut.is-compact .evaluation-dashboard-donut strong { font-size:10px; }
.evaluation-value-donut.is-compact .evaluation-dashboard-donut small { font-size:8px; }
.criterion-observation-form__actions { margin-top:20px; padding-top:4px; }
.report-airport-dialog__option:disabled { opacity:1; cursor:default; background:var(--panel-strong); }
.report-airport-dialog__option:disabled :is(strong,.report-airport-dialog__icao) { color:var(--muted); }
html[data-workspace="evaluation"] .criterion-observation-form textarea { min-height:230px; }
@media(min-width:1100px) {
  html[data-workspace="evaluation"] :is(#criterionObservationModal,#criterionMediaModal,#criterionHistoryModal) {
    inset:150px 20px 20px auto; width:360px; display:block;
    padding:0; background:none; backdrop-filter:none; z-index:35;
  }
  html[data-workspace="evaluation"] :is(#criterionObservationModal,#criterionMediaModal,#criterionHistoryModal)[hidden] { display:none; }
  html[data-workspace="evaluation"] :is(#criterionObservationModal,#criterionMediaModal,#criterionHistoryModal) .modal-panel {
    width:100%; max-width:100%; height:100%; max-height:100%; margin:0;
    border:1px solid var(--line); border-radius:9px; box-shadow:0 5px 24px #0002;
  }
  html[data-workspace="evaluation"] .evaluation-detail-view:has(:is(#criterionObservationModal,#criterionMediaModal,#criterionHistoryModal):not([hidden])) .evaluation-workspace { margin-right:380px; }
  html[data-workspace="evaluation"] .criterion-media-grid { grid-template-columns:1fr; }
  html[data-workspace="evaluation"] body.modal-open:has(:is(#criterionObservationModal,#criterionMediaModal,#criterionHistoryModal):not([hidden])) { overflow:auto; }
}
@media(max-width:1500px) {
  html[data-workspace="evaluation"] .field-criterion .state-control--symbols { gap:6px; }
  html[data-workspace="evaluation"] .field-criterion .state-control--symbols .state-pill { flex-basis:36px; width:36px; min-width:36px; height:36px; min-height:36px; padding:5px; }
  html[data-workspace="evaluation"] .field-criterion { grid-template-columns:minmax(0,1fr); gap:12px; }
  html[data-workspace="evaluation"] .field-criterion__controls { margin-left:50px; flex-wrap:wrap; gap:12px; }
}
@media(max-width:760px) {
  html[data-workspace="evaluation"] .field-criterion__controls { margin-left:0; }
  html[data-workspace="evaluation"] .field-criterion .state-control--symbols .state-pill { flex-basis:42px; width:42px; min-width:42px; min-height:42px; height:42px; }
  html[data-workspace="evaluation"] .evaluation-surface-field { flex:0 1 auto; }
}
