/* focus.css - Financial Focus (focus.js, 076; Tom 2026-10-15): the totals strip, four sections, each a tree company -> store ->
   department -> items; OT in bold red; handled lines dimmed; a department under earned in grey. Tokens from styles.css. */

/* the totals strip: four tiles that are buttons (each jumps to its section) */
.fx-tiles .tile { font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.fx-tiles .tile:hover { border-color: var(--line-strong); background: var(--surface-2); }
.fx-tiles .tile:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* a section: the heading is the summary, open by default */
details.fx-sec { border-top: 1px solid var(--line); margin: 18px 0 0; scroll-margin-top: 72px; }
details.fx-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 10px 0; }
details.fx-sec > summary::-webkit-details-marker { display: none; }
details.fx-sec > summary::before { content: ""; width: 9px; height: 9px; border-right: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); flex: none; margin: 0 4px 0 2px; transition: transform .15s; }
details.fx-sec[open] > summary::before { transform: rotate(45deg); margin-top: -4px; }
details.fx-sec > summary h2 { margin: 0; font-size: var(--fs-xl); }
details.fx-sec > summary:hover h2 { color: var(--red); }
.fx-note { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 8px; max-width: 90ch; }
.fx-sec > .fx-body { padding-bottom: 6px; }

/* one level of the tree: name · count · amount (· OT) on one row */
details.fx-node { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 6px 0; }
details.fx-node > summary { list-style: none; cursor: pointer; color: var(--ink); font-size: var(--fs-md); margin: 0; display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; grid-template-areas: "car name amt" "car n x"; column-gap: 10px; row-gap: 1px; align-items: center; padding: 10px 12px; }
details.fx-node > summary::-webkit-details-marker { display: none; }
details.fx-node > summary::before { content: ""; grid-area: car; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; justify-self: center; }
details.fx-node[open] > summary::before { transform: rotate(45deg); border-color: var(--red); }
details.fx-node > summary:hover .fx-name { color: var(--red); }
details.fx-node > .fx-body { padding: 0 10px 10px 26px; }
.fx-name { grid-area: name; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.fx-n { grid-area: n; font-size: var(--fs-sm); color: var(--muted); min-width: 0; }
.fx-n small { font-size: var(--fs-xs); }
.fx-amt { grid-area: amt; font-family: var(--display); font-weight: 800; font-size: var(--fs-lg); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fx-amt small { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); margin-left: 3px; }
.fx-x { grid-area: x; text-align: right; font-size: var(--fs-sm); white-space: nowrap; }
details.fx-node.lvl0 { border-color: var(--line-strong); }
details.fx-node.lvl0 > summary .fx-name { font-size: var(--fs-lg); }
details.fx-node.lvl2, details.fx-node.lvl3 { background: var(--surface-2); }
@media (min-width: 700px) {
  details.fx-node > summary { grid-template-columns: 16px minmax(0, 1fr) minmax(120px, auto) minmax(110px, auto) auto; grid-template-areas: "car name n amt x"; }
  .fx-n { text-align: right; }
}

/* "Open the ... page" under a kind: a 44 px target */
details.fx-node > .fx-body > p.note a { display: inline-block; padding: 12px 0; }

/* an item */
.fx-items { display: grid; gap: 6px; margin-top: 4px; }
.fx-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "txt amt" "acts acts"; gap: 6px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.fx-i-txt { grid-area: txt; min-width: 0; }
.fx-i-txt b { display: block; overflow-wrap: anywhere; }
.fx-i-d { display: block; font-size: var(--fs-sm); color: var(--muted); overflow-wrap: anywhere; }
.fx-i-a { display: block; margin-top: 3px; }
.fx-i-amt { grid-area: amt; font-weight: 800; font-size: var(--fs-md); text-align: right; white-space: nowrap; }
.fx-i-amt small { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.fx-i-acts { grid-area: acts; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fx-i-acts .btn.ghost, .fx-item .btn.ghost { border-style: dashed; color: var(--info); }
.fx-item.handled { opacity: .62; background: var(--surface-2); }
.fx-done { font-size: var(--fs-sm); color: var(--good); font-weight: 600; overflow-wrap: anywhere; }
.fx-neg { color: var(--red); }
.fx-assign-all { margin: 2px 0 8px; }
.fx-assign-all .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* labor: OT in bold red on every row; under earned (or no goal) in grey */
.fx-ot { color: var(--bad); font-weight: 800; }   /* a bad number: the darker red, never the brand red */
.fx-ot0 { color: var(--muted); }
.fx-over { color: var(--red); font-weight: 800; }
.fx-under { color: var(--muted); font-weight: 600; }
details.fx-node.fx-hot { background: var(--surface); border-left: 4px solid var(--red); }
details.fx-node.fx-dim > summary .fx-name, details.fx-node.fx-dim > summary .fx-n { color: var(--muted); font-weight: 600; }
details.fx-node.fx-dim { background: var(--surface-2); border-style: dashed; }
.fx-lab-line { margin: 2px 0 8px; font-size: var(--fs-md); }
.fx-people { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 6px; }
.fx-ph { font-size: var(--fs-xs); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.fx-person { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-md); }
.fx-person:last-child { border-bottom: 0; }
.fx-sub { margin: 12px 0 4px; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); }

@media print {
  details.fx-node, .fx-item { break-inside: avoid; }
  .fx-i-acts, .fx-assign-all { display: none; }
}

/* 077: the unemployment deadlines box */
.fx-uc { display: grid; gap: 6px; margin: 4px 0 14px; }
.fx-uc-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line);
             border-radius: 8px; background: var(--surface); color: inherit; text-decoration: none; }
.fx-uc-row:hover { border-color: var(--line-strong); background: var(--surface-2); }
.fx-uc-row span:last-child { font-size: var(--fs-sm); color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 599px) { .fx-uc-row { grid-template-columns: auto minmax(0, 1fr); } .fx-uc-row span:last-child { grid-column: 1 / -1; } }

/* 278: To do group projects - the switch in the + sheet, the row, the sheet */
.sheet label.gp-sw { display: flex; flex-direction: row; text-transform: none; letter-spacing: 0; gap: 10px; align-items: flex-start; min-height: 44px; margin: 12px 0 4px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; }
.gp-sw input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; }
.gp-sw > span { flex: 1 1 0; min-width: 0; }
.gp-sw b { display: block; font-size: var(--fs-md); } .gp-sw small { display: block; color: var(--muted); font-size: var(--fs-sm); }
.td-list .td-row.gp-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; }
.gp-main { flex: 1 1 0; min-width: 0; display: block; }
.gp-main b { display: block; font-weight: 800; }
.gp-main small { display: block; color: var(--muted); font-size: var(--fs-sm); }
.gp-dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 50%; background: var(--red); }
.gp-bar { display: block; height: 6px; margin-top: 6px; border-radius: 4px; background: var(--line-strong); overflow: hidden; }
.gp-row .td-chev { transform: rotate(-45deg); margin-top: 0; }
.gp-new { white-space: nowrap; }
.gp-lastl { margin: 4px 0 8px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); }
.gp-ppl .chip { font-size: var(--fs-sm); }
.as-forpanel.gp { max-height: none; overflow: visible; }
.gp-bar i { display: block; height: 100%; background: var(--red); }
.gp-ppl { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.gp-info { white-space: pre-wrap; margin: 8px 0; }
.gp-h { margin: 16px 0 6px; font-size: var(--fs-md); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.gp-steps, .gp-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.gp-step { display: flex; gap: 10px; align-items: flex-start; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; }
.gp-step input { width: 22px; height: 22px; margin-top: 1px; flex: 0 0 auto; }
.gp-step b { display: block; font-weight: 600; } .gp-step small { display: block; color: var(--muted); font-size: var(--fs-sm); }
.gp-step.on b { text-decoration: line-through; color: var(--muted); }
.gp-add { display: flex; gap: 8px; margin: 8px 0; }
.gp-add input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: var(--fs-md); }
.gp-add .btn { min-height: 44px; }
.gp-notes li { padding: 8px 12px; border-radius: 8px; background: var(--surface-2); }
.gp-notes p { margin: 2px 0 0; white-space: pre-wrap; }
.gp-notes small { color: var(--muted); font-size: var(--fs-sm); }
