/* F2.12: category review workspace; relies on existing RASPA UI_v2 tokens. */
.r2-p1193-review{max-width:1300px;margin:0 auto;padding:20px 18px 60px}
.r2-p1193-review__back{margin-bottom:18px}
.r2-p1193-review__layout{display:grid;grid-template-columns:minmax(210px,290px) minmax(0,1fr);gap:18px;align-items:start}
.r2-p1193-review__teachers,.r2-p1193-review__editor,.r2-p1193-review__segment{border:1px solid #dbe3ef;border-radius:12px;background:#fff}
.r2-p1193-review__teachers{position:sticky;top:82px;overflow:hidden}
.r2-p1193-review__search{display:block;padding:12px;border-bottom:1px solid #e6ebf2;font-size:13px;font-weight:600}
.r2-p1193-review__search input{width:100%;margin-top:7px;padding:10px;border:1px solid #cbd5e1;border-radius:8px}
.r2-p1193-review__teacher-list{max-height:min(72vh,720px);overflow:auto}
.r2-p1193-review__teacher{display:flex;flex-direction:column;gap:4px;padding:11px 14px;color:#142947;text-decoration:none;border-left:3px solid transparent;border-bottom:1px solid #f0f3f7;font-size:14px;font-weight:600}
.r2-p1193-review__teacher small{font-size:12px;font-weight:400;color:#60718b}
.r2-p1193-review__teacher:hover,.r2-p1193-review__teacher:focus-visible{background:#f2f6fc}
.r2-p1193-review__teacher.is-selected{border-left-color:#285eab;background:#edf4ff}
.r2-p1193-review__editor{padding:20px;min-width:0}
.r2-p1193-review__intro,.r2-p1193-review__segment-heading,.r2-p1193-review__footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.r2-p1193-review__intro h2{margin:0;font-size:21px;color:#142947}
.r2-p1193-review__note,.r2-p1193-review__group-note{font-size:13px;color:#526683;line-height:1.45}
.r2-p1193-review__error{padding:11px 13px;margin-bottom:16px;border:1px solid #e9bc88;border-radius:8px;background:#fff9ed;color:#7b4c16}
.r2-p1193-review__segment{padding:18px;margin:20px 0}
.r2-p1193-review__segment-heading{margin-bottom:12px}
.r2-p1193-review__segment-heading h3{margin:0;font-size:17px}
.r2-p1193-review__segment-heading strong{color:#23456d}
.r2-p1193-review__segment>button{margin:0 8px 10px 0}
.r2-p1193-review__group{border:0;border-top:1px solid #e3e9f1;margin:12px 0 0;padding:16px 0 6px;min-width:0}
.r2-p1193-review__group legend{font-weight:700;color:#163158;padding:0 8px 0 0}
.r2-p1193-review__group-note{margin:0 0 9px}
.r2-p1193-review__choices{display:flex;gap:18px;flex-wrap:wrap;font-size:13px;margin-bottom:10px}
.r2-p1193-review__choices label{display:flex;align-items:center;gap:6px;cursor:pointer}
.r2-p1193-review__rows{display:grid;gap:8px;margin-bottom:8px}
.r2-p1193-review__row{display:grid;grid-template-columns:minmax(140px,2fr) minmax(110px,1fr) minmax(110px,1fr) auto;gap:8px;align-items:end}
.r2-p1193-review__row label{display:block;min-width:0;font-size:12px;color:#526683}
.r2-p1193-review__row input{width:100%;height:40px;padding:9px;border:1px solid #cbd5e1;border-radius:8px;color:#162d4b}
.r2-p1193-review__row button{margin-bottom:4px}
.r2-p1193-review__group[data-decision="absent"] [data-review-rows],.r2-p1193-review__group[data-decision="absent"] [data-review-add]{display:none}
.r2-p1193-review__footer{padding-top:12px}
.r2-p1193-review__confirm{margin-top:16px;padding-top:16px;border-top:1px solid #e3e9f1}
.r2-p1193-review input:focus-visible,.r2-p1193-review button:focus-visible,.r2-p1193-review a:focus-visible{outline:2px solid #2864b5;outline-offset:2px}
@media(max-width:950px){.r2-p1193-review__layout{grid-template-columns:minmax(0,1fr)}.r2-p1193-review__teachers{position:static}.r2-p1193-review__teacher-list{max-height:240px}}
@media(max-width:610px){.r2-p1193-review{padding:14px 10px 40px}.r2-p1193-review__editor{padding:12px}.r2-p1193-review__segment{padding:12px}.r2-p1193-review__row{grid-template-columns:1fr 1fr}.r2-p1193-review__row label:first-child{grid-column:1/-1}}

/* F2.13: select reviewed teachers without altering direct editor navigation. */
.r2-p1193-review__teacher-row{display:flex;align-items:stretch;border-bottom:1px solid #f0f3f7}
.r2-p1193-review__teacher-row[hidden]{display:none}
.r2-p1193-review__teacher-row .r2-p1193-review__teacher{flex:1;min-width:0;border-bottom:0}
.r2-p1193-review__bulk-check{display:flex;align-items:center;justify-content:center;padding:0 4px 0 13px;cursor:pointer}
.r2-p1193-review__bulk-check input[type="checkbox"]{width:17px;height:17px;accent-color:#285eab;cursor:pointer}
.r2-p1193-review__bulk-heading{padding:10px 14px 4px;color:#385278;font-size:12px;font-weight:600}
.r2-p1193-review__bulk-actions{padding:12px;border-top:1px solid #e6ebf2;display:grid;gap:10px}
.r2-p1193-review__bulk-helpers{display:flex;gap:8px;flex-wrap:wrap}
.r2-p1193-review__bulk-actions [data-review-bulk-submit]{width:100%;white-space:normal}
.r2-p1193-review__bulk-actions [data-review-bulk-submit]:disabled{opacity:.55;cursor:not-allowed}

/* F2.16: prioritize the required base hours; optional categories remain explicit but compact. */
.r2-p1193-review__section-label{margin:16px 0 0;font-size:.87rem;font-weight:700;color:#153661}
.r2-p1193-review__section-label span{font-weight:400;color:#61718b}
.r2-p1193-review__group--extra{padding:11px 0 4px;margin:4px 0;border-top:1px solid #edf1f6}
.r2-p1193-review__group--extra[data-decision="absent"] .r2-p1193-review__group-note{display:none}
.r2-p1193-review__group--extra legend{font-size:.93rem}
.r2-p1193-review__choices input{width:18px;height:18px;accent-color:#265da8}
.r2-p1193-review__teacher-row{min-height:54px}

/* F2.20: stable, compact grouped review controls and aligned actions. */
.r2-p1193-review__group-note{display:none;}
.r2-p1193-review__group--extra{padding:10px 0;margin:0;}
.r2-p1193-review__group--extra .r2-p1193-review__rows{padding:10px 0 4px;}
.r2-p1193-review__row{grid-template-columns:minmax(180px,2fr) minmax(130px,1fr) minmax(130px,1fr) minmax(70px,auto);align-items:end;}
.r2-p1193-review__row button[data-review-remove]{align-self:end;justify-self:start;height:40px;margin:0;}
.r2-p1193-review__segment{margin:12px 0;}
.r2-p1193-review__segment-heading{padding:0 0 8px;border-bottom:1px solid #e5eaf1;}
.r2-p1193-review__section-label{margin:12px 0 6px;}
.r2-p1193-review__group[data-decision="absent"]{padding-bottom:6px;}
.r2-p1193-review__group[data-decision="absent"] [data-review-add]{display:none;}
.r2-p1193-review__validation{border:1px solid #e5bd8d;background:#fff7ec;color:#794409;border-radius:8px;padding:9px 12px; margin-bottom:12px;font-size:13px;}
.r2-p1193-review__partial-info{color:#526683;font-size:13px;}
@media(max-width:750px){.r2-p1193-review__row{grid-template-columns:1fr 1fr;}.r2-p1193-review__row label:first-child{grid-column:1/-1}.r2-p1193-review__row button[data-review-remove]{grid-column:1/-1}}

.r2-p1193-review__group.has-error{border-left:3px solid #c15c16;padding-left:10px;}
.r2-p1193-review__field-error{color:#8c4311;background:#fff5e8;padding:8px 10px;border-radius:6px;font-size:13px;line-height:1.4;}
.r2-p1193-review__copied{color:#774b0b;font-size:13px;border-left:3px solid #d4a049;padding:6px 10px;background:#fffaf0;}

.r2-p1193-review__segment{padding:0;}
.r2-p1193-review__segment > summary.r2-p1193-review__segment-heading{display:flex;cursor:pointer;padding:14px 18px;margin:0;align-items:center;gap:12px;}
.r2-p1193-review__segment-heading > span{margin-left:auto;color:#244b75;font-weight:650;}
.r2-p1193-review__segment-heading small{font-size:12px;color:#64748b;font-weight:500;}
.r2-p1193-review__segment-body{padding:12px 18px 18px;border-top:1px solid #e5eaf1;}
.r2-p1193-review__segment:focus-visible{outline:2px solid #255da9;}
@media(max-width:610px){.r2-p1193-review__segment > summary.r2-p1193-review__segment-heading{padding:12px;flex-wrap:wrap;}.r2-p1193-review__segment-body{padding:12px;}}

.r2-p1193-review__accept-copy{margin:0 0 10px}
.r2-p1193-review__accept-copy[hidden]{display:none!important}

/* UI-02: compact review groups; reset legacy form margins only on this screen.
   Do not change the shared form system or payroll calculation inputs. */
.r2-p1193-review__group--extra {
  padding: 8px 0 4px;
  margin: 0;
}
.r2-p1193-review__section-label {
  margin: 14px 0 5px;
}
.r2-p1193-review__choices {
  align-items: center;
  gap: 16px;
  margin: 5px 0 8px;
}
.r2-p1193-review__choices label {
  margin: 0;
  line-height: 1.25;
}
.r2-p1193-review__choices input[type="radio"] {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
}
.r2-p1193-review__rows {
  gap: 8px;
  margin: 5px 0 8px;
}
.r2-p1193-review__row label {
  margin: 0;
}
.r2-p1193-review__row label > span {
  display: block;
  margin-bottom: 6px;
}
.r2-p1193-review__row input {
  display: block;
  box-sizing: border-box;
  margin: 0;
  min-height: 40px;
}
body.r2-app .r2-p1193-review__row button[data-review-remove] {
  align-self: end;
  justify-self: stretch;
  box-sizing: border-box;
  width: 76px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #ebc0bd;
  border-radius: 7px;
  color: #b32318;
  background: #fff;
  box-shadow: none;
  white-space: nowrap;
}
body.r2-app .r2-p1193-review__row button[data-review-remove]:hover {
  border-color: #d88c85;
  background: #fff6f5;
}
/* Native numeric validation/keyboard behavior remains; hide only the steppers. */
.r2-p1193-review input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.r2-p1193-review input[type="number"]::-webkit-inner-spin-button,
.r2-p1193-review input[type="number"]::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}
@media (max-width: 750px) {
  body.r2-app .r2-p1193-review__row button[data-review-remove] {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* UI-02.1: the app shell's body.has-app-shell label rule adds a 7px bottom
   margin. Match its specificity inside this form so the label/input bottoms
   line up with the 40px remove action. Keep the global form styles intact. */
body.has-app-shell .r2-p1193-review__row > label {
  display: block;
  margin: 0;
}
