/* S37A guard requests and the uniform check. Same tokens as app.css; no inline styles (CSP). */

/* Shifts tab: Next | Past | Requests */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.seg-btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 6px 8px; border: 0; border-radius: 10px;
  background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.seg-btn .i { width: 20px; height: 20px; }
.seg-btn.on { background: var(--panel-2); color: var(--text); }
.seg-btn.on .i { color: var(--accent); }
.seg-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.loading-line { text-align: center; padding: 24px 0; }

/* a smaller button inside a list row */
.btn.slim { min-height: 44px; font-size: 16px; padding: 8px 14px; width: auto; flex: none; }
.row .btn.slim { margin-left: auto; }
.past-row > div { flex: 1; }
.past-row .btn.slim { align-self: flex-start; margin: 8px 0 0; }

/* punches on the Fix my time screen */
.row.punch { align-items: center; }
.row.punch > div { flex: 1; }
.row.punch .chip { margin-top: 4px; padding: 3px 10px; font-size: 13px; }
.row.punch .chip .i { width: 16px; height: 16px; }
.chip.gps { background: var(--accent-soft); color: var(--accent-text); }
.row.missing { border-style: dashed; }
.row.missing .row-ic { color: var(--warn); }

/* request status */
.req > div { flex: 1; }
.req .small .i { width: 16px; height: 16px; }
.req-note { margin-top: 6px; padding: 8px 10px; border-left: 3px solid var(--line-2); background: var(--bg-2); border-radius: 0 10px 10px 0; font-size: 15px; color: var(--text); }

/* forms in a sheet or on the claim screen */
.field textarea, .field select {
  font: inherit; font-size: 18px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 12px 14px; width: 100%; min-height: var(--tap);
}
.field textarea { resize: vertical; min-height: 96px; }
.field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=time], input[type=datetime-local] { color-scheme: dark; }
/* S56A mobile fix 1: the columns may shrink (a time input will not shrink under its own text), and below 360 px they stack. */
.two.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 359px) { .two.even { grid-template-columns: minmax(0, 1fr); } }
.sheet .field { text-align: left; }
.search-box { display: flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 14px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 18px; padding: 12px 0; outline: none; }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.picks { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.pick-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 14px; text-align: left; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; color: var(--text); font: inherit; font-size: 17px; }
.pick-row > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.pick-row[aria-checked="true"] { border-color: var(--good); background: var(--good-soft); }
.pick-row[aria-checked="true"] .box { background: var(--good); border-color: var(--good); color: #062014; }
.pick-row:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* uniform: what to wear on top */
.wear { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.wear-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 140px; padding: 16px 10px;
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; font-size: 18px; font-weight: 650; text-align: center; }
.wear-ic { width: 72px; height: 72px; border-radius: 20px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; }
.wear-ic .i { width: 44px; height: 44px; stroke-width: 1.6; }
