/* Phone layout (< 744px) for the teaching screens — see the mobile handoff. */
@media (max-width:743.98px){
  /* ---- filter cards: Class setup (Standard + Class, then Subject across) and
     Approvals (Find across, Showing + Record, then the bulk-decide row) */
  .tch-cs-bar > .inline-field:last-child:nth-child(odd){grid-column:1 / -1}
  .tch-ap-bar > .bar.tight{grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:8px;margin:0}
  .tch-ap-bar > .bar.tight > .selectall{flex:1 1 100%;min-height:44px;font-size:14px;color:#16211C;gap:10px}
  .tch-ap-bar > .bar.tight > .selectall input{width:22px;height:22px;accent-color:#0E7A63}
  .tch-ap-bar > .bar.tight > .btn{flex:1 1 0;min-width:0;width:auto;font-size:14px;padding:8px 10px;
    white-space:normal;line-height:1.2}

  /* ---- a subject's colour, where a row has its face */
  .tch-swatch{display:block;width:40px;height:40px;border-radius:12px;border:1px solid rgba(22,33,28,.08)}
  .tch-swatch.none{background:#EEF1EE}
  .tch-cs-head > .btn.primary{min-height:44px}
  .mrow .mrow-note .ar{font-size:15px}

  /* ---- a pending request's tick, sized for a thumb, in the face's place */
  .tch-tick{display:flex;align-items:center;justify-content:center;width:44px;height:44px;
    margin:-2px;cursor:pointer}
  .tch-tick input{width:22px;height:22px;margin:0;accent-color:#0E7A63}

  /* ---- status pills in the handoff's colours */
  .pill.tch-st,.pill.tch-pill-neutral{border:0;border-radius:99px;font-size:12px;font-weight:600;
    padding:3px 10px;white-space:nowrap}
  .pill.tch-st-pending{background:#F7EED9;color:#7A5A0E}
  .pill.tch-st-approved{background:#DDF1E8;color:#0A6B52}
  .pill.tch-st-rejected{background:#F7E4E1;color:#9C332B}
  .pill.tch-st-neutral,.pill.tch-pill-neutral{background:#EEF1EE;color:#46564D}
  .mlist .pill.leave-pending,.tch-detail .pill.leave-pending{background:#F7EED9;color:#7A5A0E;border-color:transparent}
  .mlist .pill.leave-approved,.tch-detail .pill.leave-approved{background:#DDF1E8;color:#0A6B52;border-color:transparent}
  .mlist .pill.leave-rejected,.tch-detail .pill.leave-rejected{background:#F7E4E1;color:#9C332B;border-color:transparent}
  .mlist .pill.leave-pending,.mlist .pill.leave-approved,.mlist .pill.leave-rejected,.mlist .pill.leave-escalated{
    border-radius:99px;font-size:12px;font-weight:600;padding:3px 10px;white-space:nowrap}

  /* ---- a request, opened: labelled lines on one white card, decisions in a
     bar along the bottom */
  .tch-detail{gap:0}
  .tch-dl{display:flex;flex-direction:column;gap:3px;background:#fff;padding:12px 14px;
    border-top:1px solid #EDF0EC;min-width:0}
  .tch-dl:first-child{border-top:0;border-radius:16px 16px 0 0}
  .tch-dl:last-child{border-radius:0 0 16px 16px}
  .tch-dl:only-child{border-radius:16px}
  .tch-dt{font-size:12px;color:#5C6D64}
  .tch-dd{font-size:16px;color:#16211C;line-height:1.4;overflow-wrap:anywhere;min-width:0}
  .tch-dd > .pill{align-self:flex-start}
  .tch-actbar{display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid #E5EAE6}
  .tch-actbar > .btn{flex:1 1 0;min-width:0;min-height:52px;justify-content:center;font-size:16px;font-weight:600}
  /* three decisions: Send to admin across, Reject and Approve under it */
  .tch-actbar > .btn:nth-last-child(3){flex-basis:100%}

  /* ---- the file-leave form: one column, a thumb-sized row per child */
  .leave-sheet .sheet-body{grid-template-columns:minmax(0,1fr)}
  .leave-sheet .sheet-body > .field{min-width:0}
  .leave-sheet input[type=date],.leave-sheet input[type=text]{width:100%;min-width:0}
  .leave-sheet .checkset{background:#fff;border-radius:16px;padding:4px;gap:0}
  .leave-sheet .checkrow{min-height:48px;padding:8px 10px;gap:12px;font-size:16px}
  .leave-sheet .checkrow input{width:22px;height:22px;accent-color:#0E7A63}
  .leave-sheet .checkrow > .grow{min-width:0;overflow-wrap:anywhere}
  .leave-sheet .checkrow > .pill{flex:none;font-size:12px}
}
