/* tasks.css - Tasks (106): the managers' lists and items, the repeat chooser and its sentence, the board, the roles; Today in To do;
   the app's own camera. Tokens only (styles.css), rem sizes, 44 px targets, inputs at 16 px or more, dark mode through the tokens. */

.tl { display: grid; gap: 4px; }
.tl-items, .tl-board, .tl-dlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl-it { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; min-height: 3.5rem; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
@media (hover: hover) { .tl-it:hover { border-color: var(--line-strong); } }
.tl-it-m { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
.tl-it-m b { font-size: var(--fs-lg); overflow-wrap: anywhere; }
.tl-it-m small { flex-basis: 100%; color: var(--muted); font-size: var(--fs-md); overflow-wrap: anywhere; }
.tl-lacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.tl-lacts .btn { min-height: 44px; text-decoration: none; }
.tl-small { margin: 6px 0; } .tl-small a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; }

/* ---- the forms: a list, an item ----------------------------------------------------------------------------------------- */
.tl-form { display: grid; gap: 2px; max-width: 40rem; }
.tl-form input[type=text], .tl-form input:not([type]), .tl-form input[type=date], .tl-form input[type=time], .tl-form input[type=number], .tl-form textarea, .tl-form select,
.tl-cam-sheet input, .mg-sheet input#tlrname, .mg-sheet select#tlrdept {
  width: 100%; min-height: 48px; font-size: var(--fs-lg); padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-family: inherit; }
.tl-form textarea { min-height: 4.5rem; resize: vertical; }
.tl-form label.tk-lbl select, .tl-form label.tk-lbl input { margin-top: 4px; font-weight: 400; }
.tl-form .ux-way { margin: 6px 0 4px; }
/* review 2 C1: the chips are ux.css .ux-chips */
.tl-two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; }
.tl-times { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tl-time { display: inline-flex; align-items: center; gap: 2px; }
.tl-time input { width: 9.5rem; }
.tl-time .btn { min-width: 44px; min-height: 44px; font-size: var(--fs-xl); }
.tl-times > .btn { min-height: 48px; }
.tl-words { margin: 12px 0 4px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); display: grid; gap: 4px; min-height: 3rem; }
.tl-words b { font-size: var(--fs-lg); line-height: 1.3; }
.tl-words small { color: var(--muted); font-size: var(--fs-md); }
.tl-words.warn { background: var(--warn-soft, var(--surface-2)); }
.tl-words.warn b { color: var(--warn, var(--ink)); }
.tl-ex { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.tl-ex #tlexl:empty { display: none; }   /* review 2 C10: an empty example slot takes no gap (the button lines up) */
.tl-ex .tk-lbl { flex-basis: 100%; margin: 0; }
.tl-ex label.btn { min-height: 48px; display: inline-flex; align-items: center; gap: 6px; }
.tl-ex label.btn svg, .tl-ph svg, .tl-cam-act svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the board -------------------------------------------------------------------------------------------------------- */
.tl-oc { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tl-oc.late { border-left: 5px solid var(--bad); }
.tl-oc-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tl-oc-t b { font-size: var(--fs-lg); margin-right: auto; overflow-wrap: anywhere; }
.tl-oc small { color: var(--muted); font-size: var(--fs-md); overflow-wrap: anywhere; }
.tl-oc small a { font-weight: 700; }
.tl-chk { display: flex; gap: 8px; margin-top: 6px; }
.tl-chk .btn { min-height: 48px; flex: 1; }
.tl-ph { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 4px; }
.tl-ph-box { margin-top: 6px; }
.tl-ph-img { max-width: 100%; max-height: 22rem; border-radius: var(--radius); display: block; }
.tl-ph-demo { display: inline-flex; align-items: center; gap: 8px; padding: 18px 22px; border-radius: var(--radius); background: var(--surface-2); color: var(--muted); font-weight: 700; }
.tl-ph-demo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---- Today in To do ---------------------------------------------------------------------------------------------------- */
.tl-today { margin: 0 0 14px; }
.tl-h { font-size: var(--fs-xl); margin: 6px 0 8px; display: flex; align-items: baseline; gap: 8px; }
.tl-h small { font-size: var(--fs-md); color: var(--muted); font-weight: 600; }
.tl-h .neg { color: var(--bad); }
.tl-urg { vertical-align: 2px; margin-right: 2px; }
.tl-dn .tl-dlist li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 3.5rem; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tl-dn .tl-dlist .btn { min-height: 44px; }
.tl-ck { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--good-soft, var(--surface-2)); color: var(--good); font-weight: 800; }

/* ---- the camera (full screen; no file picker anywhere) --------------------------------------------------------------------- */
/* S6: the app's side gutter, room for the close button, and the iPhone's safe areas (notch, home indicator) */
.sheet.full.tl-cam-sheet { padding: calc(12px + env(safe-area-inset-top, 0px)) calc(var(--gutter, 16px) + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(var(--gutter, 16px) + env(safe-area-inset-left, 0px)); }
.tl-cam-sheet > h2 { margin: 6px 56px 10px 0; }
.tl-cam { position: relative; display: grid; gap: 8px; }
.tl-cam video, .tl-cam img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: var(--radius); background: var(--ink); }   /* review 2 N14: a token, no hard-coded colour */
.tl-cam-note { margin: 0; color: var(--muted); font-size: var(--fs-md); text-align: center; }
.tl-cam-act { position: sticky; bottom: 0; }
.tl-cam-act .btn.big { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* ---- the Overview's Tasks box: the missed list ----------------------------------------------------------------------------- */
.tl-missed h3 { font-size: var(--fs-md); margin: 12px 0 6px; } .tl-missed h3 small { color: var(--muted); }
.tl-missed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tl-missed li { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tl-missed li small { color: var(--muted); font-size: var(--fs-md); }
/* review 2 N8: the board's link to the alert's message is a 44 px button */
.tl-msglink { min-height: 44px; display: inline-flex; align-items: center; margin-left: 6px; }
/* review 2 C12: on a computer the camera sheet is as tall as what is in it */
@media (min-width: 900px) { .sheet.full.tl-cam-sheet { height: auto; max-height: 94vh; } }

/* ---- 114: the department work lists - quiet, the due time from open / close, Archived, the spot checks, the switch ------------- */
.tl-quiet { white-space: normal; }
.tl-at { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.tl-it.tl-ro { cursor: default; }
.tl-it:has(.tl-at) { grid-template-columns: minmax(0, 1fr) auto auto; }
.tl-it.tl-ro:has(.tl-at) { grid-template-columns: minmax(0, 1fr) auto; }
.tl-arch { margin: 14px 0 4px; }
.tl-arch .tl-h { font-size: var(--fs-lg); }
.tl-ar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); }
.tl-ar .btn { min-height: 44px; }
.tl-spot.done { opacity: .85; }
.tl-spot .tl-note { color: var(--ink); }
.tl-wl p { margin: 4px 0; }
.tl-switch { margin-top: 8px; }
.tl-qline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 10px; }
.tl-qline .btn { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.tl-anc { display: grid; gap: 2px; }
.tl-anc input#tlmins { max-width: 9.5rem; }
/* 115: a work list's blank slots ("Item 3 · Click here to add item") and the set-up at sign-in */
.tl-slot { border-style: dashed; background: var(--surface-2); }
.tl-slot small { color: var(--muted); }
.tl-setup .act-big { margin-top: 12px; }
