/* מקדמים כספים: the pages' own parts (infographics first, plain words, one color per person). f- = this system's classes. */
.f-grid { display: grid; gap: 18px; }
.f-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.f-g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.f-span2 { grid-column: span 2; }
.f-top { align-items: start; }
@media (max-width: 980px) { .f-g3, .f-g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .f-g2, .f-g3, .f-g4 { grid-template-columns: minmax(0, 1fr); } .f-span2 { grid-column: auto; } }
.card h2.f-h { margin: 0 0 4px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.card h2.f-h svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.f-lead { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.f-small { font-size: 13px; }
.f-gold-text { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* the money hero */
.f-hero { padding: 24px 26px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 26px; align-items: center; }
@media (max-width: 860px) { .f-hero { grid-template-columns: minmax(0, 1fr); } }
.f-hero .label { color: var(--muted); font-size: 14px; }
.f-big { font-size: 54px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.05; }
.f-big small { font-size: 28px; }
.f-hero p { margin: 8px 0 0; color: var(--muted); max-width: 46ch; }
.f-jar { display: grid; gap: 10px; }
.f-jarbar { height: 26px; border-radius: 999px; overflow: hidden; display: flex; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); }
.f-jarbar span { height: 100%; }
.f-leg { display: grid; gap: 6px; font-size: 14px; }
.f-leg div { display: flex; align-items: center; gap: 8px; }
.f-leg i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; flex: none; }
.f-leg b { margin-inline-start: auto; }
.f-hatch { background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .25) 0 6px, transparent 6px 12px); }

/* a partner's dot / face */
.f-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: none;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35); }
.f-av.s { width: 26px; height: 26px; font-size: 12px; }
.f-legend { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; color: var(--muted); }
.f-legend span { display: inline-flex; align-items: center; gap: 6px; }
.f-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }

/* bars */
.f-pbar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 100px; align-items: center; gap: 12px; padding: 8px 0; }
.f-pbar .who { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.f-track { height: 20px; border-radius: 999px; background: var(--surface-3); overflow: hidden; display: flex; }
.f-track span { height: 100%; }
.f-pbar .amt { text-align: left; font-weight: 700; }
.f-segleg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.f-segleg span { display: inline-flex; align-items: center; gap: 5px; }
.f-segleg i { width: 18px; height: 9px; border-radius: 3px; display: inline-block; }

/* the rounds' columns */
.f-cols { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 22px; }
.f-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; height: 100%; text-decoration: none; color: inherit; }
.f-col .bar { width: 100%; max-width: 46px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #f3d58a, #c9952f 70%, #9a6716); position: relative; transition: transform .15s; }
.f-col .bar.dim { background: linear-gradient(180deg, #ecdcb2, #d8bf86); opacity: .75; }
.f-col .bar b { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; white-space: nowrap; color: var(--muted); font-weight: 600; }
.f-col:hover .bar { transform: translateY(-3px); }
.f-col small { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* alerts */
.f-alert { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); align-items: start; }
.f-alert + .f-alert { margin-top: 10px; }
.f-alert .ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; }
.f-alert .ic svg { width: 19px; height: 19px; }
.f-alert.bad .ic { background: var(--bad-soft); color: var(--bad); }
.f-alert.warn .ic { background: var(--warn-soft); color: var(--warn); }
.f-alert.good .ic { background: var(--good-soft); color: var(--good); }
.f-alert.info .ic { background: var(--accent-soft); color: var(--accent); }
.f-alert b { display: block; }
.f-alert p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* rings (the day banks) */
.f-rings { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.f-ring { display: grid; justify-items: center; text-align: center; gap: 4px; }
.f-ring svg { width: 108px; height: 108px; }
.f-ring b { font-size: 14px; }
.f-ring small { color: var(--muted); font-size: 12px; line-height: 1.3; }

/* the round's steps */
.f-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; }
.f-step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.f-step i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--surface); font-style: normal; font-weight: 700; font-size: 13px; }
.f-step.done { color: var(--ink); }
.f-step.done i { background: var(--good); border-color: var(--good); color: #fff; }
.f-step.now i { border-color: var(--accent); color: var(--accent); }
.f-step.bad i { border-color: var(--bad); color: var(--bad); }
.f-step-line { width: 36px; height: 2px; background: var(--line); margin: 0 8px; }
.f-step-line.done { background: var(--good); }

/* the rounds picker */
.f-rounds { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.f-rounds a { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 7px 12px; display: grid; justify-items: center; min-width: 76px;
  text-decoration: none; color: inherit; flex: none; }
.f-rounds a small { color: var(--muted); font-size: 11px; }
.f-rounds a.on { border-color: transparent; background: var(--gold); color: #2d1d02; }
.f-rounds a.on small { color: #5a3d07; }
.f-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-top: 3px; display: inline-block; }
.f-dot.warn { background: var(--warn); }
.f-dot.bad { background: var(--bad); }
.f-dot.draft { background: var(--accent); }

/* the flow (sankey) */
.f-sankey { width: 100%; height: auto; display: block; direction: ltr; }
.f-sankey text { font-family: var(--body); font-size: 13px; fill: var(--ink); }
.f-sankey text.sub { fill: var(--muted); font-size: 11.5px; }
.f-sankey path { transition: opacity .15s; }
.f-sankey.hl path { opacity: .1 !important; }
.f-sankey.hl path.on { opacity: .6 !important; }

/* an income */
.f-inc { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; background: var(--surface-2); }
.f-inc + .f-inc { margin-top: 10px; }
.f-inc.deferred { opacity: .65; }
.f-inc-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.f-inc-h > svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.f-inc-h b { font-size: 15px; }
.f-inc-h .amt { margin-inline-start: auto; font-weight: 800; font-size: 17px; }
.f-stack { height: 30px; border-radius: 10px; overflow: hidden; display: flex; margin: 10px 0 8px; background: var(--surface-3); }
.f-stack span { height: 100%; display: grid; place-items: center; color: #fff; font-size: 11.5px; font-weight: 600; overflow: hidden; white-space: nowrap; border-inline-start: 1px solid rgba(255, 255, 255, .5); }
.f-stack .unsplit { background: repeating-linear-gradient(-45deg, var(--bad) 0 6px, var(--bad-soft) 6px 12px); color: var(--bad); }
.f-costs-first { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.f-costs-first .arrow { flex: 1; height: 1px; background: var(--line); }
.f-lines { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.f-lines .chip { font-weight: 500; }
.f-lines .chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.f-lines .chip button { border: 0; background: none; padding: 0 0 0 2px; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.f-lines .chip button:hover { color: var(--bad); }
.f-inc-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* a partner's "equation" */
.f-payee { border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: var(--surface); display: grid; gap: 12px; position: relative; overflow: hidden; }
.f-payee::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--c); }
.f-payee-h { display: flex; align-items: center; gap: 10px; }
.f-payee-h .total { margin-inline-start: auto; text-align: left; }
.f-payee-h .total b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.f-payee-h .total small { color: var(--muted); font-size: 12px; }
.f-eq { display: grid; gap: 6px; }
.f-eq-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 14px; }
.f-eq-row .op { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; }
.f-eq-row .op.plus { background: var(--good-soft); color: var(--good); }
.f-eq-row .op.minus { background: var(--bad-soft); color: var(--bad); }
.f-eq-row .op.base { background: var(--accent-soft); color: var(--accent); }
.f-eq-row .op.q { background: var(--warn-soft); color: var(--warn); }
.f-eq-row .op.soon { background: var(--surface-3); color: var(--muted); }
.f-eq-row b { font-variant-numeric: tabular-nums; }
.f-eq-row.total { border-top: 2px dashed var(--line); padding-top: 8px; font-weight: 700; }
.f-eq-row .x { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 4px; }
.f-eq-row .x:hover { color: var(--bad); }
.f-bankcheck { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 10px; border-radius: 12px; }
.f-bankcheck.good { background: var(--good-soft); color: var(--good); }
.f-bankcheck.bad { background: var(--bad-soft); color: var(--bad); }
.f-bankcheck.wait { background: var(--surface-3); color: var(--muted); }
.f-bankcheck svg { width: 16px; height: 16px; flex: none; }

/* lists */
.f-rows { display: grid; }
.f-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.f-row:last-child { border-bottom: 0; }
.f-row .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.f-row .ic svg { width: 19px; height: 19px; }
.f-row .ic.in { background: var(--good-soft); color: var(--good); }
.f-row .ic.out { background: var(--bad-soft); color: var(--bad); }
.f-row .ic.msv { background: var(--accent-soft); color: var(--accent); }
.f-row b.t { display: block; font-weight: 600; font-size: 14px; }
.f-row small { color: var(--muted); font-size: 12.5px; }
.f-row .amt { font-weight: 700; text-align: left; white-space: nowrap; }
.f-row .amt.in { color: var(--good); }
.f-row .amt.out { color: var(--bad); }
.f-month { font-size: 13px; color: var(--muted); font-weight: 600; padding: 14px 4px 4px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.f-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.f-filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-size: 13px; cursor: pointer; color: inherit; }
.f-filters button.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }

/* in vs out, month by month */
.f-flow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; align-items: center; height: 230px; position: relative; }
.f-flow .mcol { display: grid; grid-template-rows: 1fr 1fr; height: 100%; }
.f-flow .up { align-self: end; background: linear-gradient(180deg, #5fd39b, #1d8a5a); border-radius: 8px 8px 2px 2px; }
.f-flow .down { align-self: start; background: linear-gradient(180deg, #e8796d, #c0392b); border-radius: 2px 2px 8px 8px; }
.f-flow .mid { position: absolute; inset: 50% 0 auto 0; height: 1px; background: var(--line); }
.f-flow-labels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; font-size: 11px; color: var(--muted); text-align: center; margin-top: 6px; }

/* explainers */
.f-explain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.f-explain.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .f-explain, .f-explain.two { grid-template-columns: minmax(0, 1fr); } }
.f-explain > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 6px; }
.f-explain .n { width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: #2d1d02; font-weight: 800; display: grid; place-items: center; }
.f-explain b { font-size: 14px; }
.f-explain p { margin: 0; color: var(--muted); font-size: 13px; }
.f-tip { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; background: var(--accent-soft); border-radius: 14px; padding: 10px 12px; }
.f-tip svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 1px; }

/* day banks: the battery */
.f-battery { display: grid; gap: 8px; }
.f-batt { height: 34px; border-radius: 12px; border: 2px solid var(--line); display: flex; background: var(--surface-2); overflow: hidden; }
.f-batt .cell { flex: 1; border-inline-start: 2px solid var(--surface); }
.f-batt .cell.used { background: var(--good); }
.f-batt .cell.plan { background: repeating-linear-gradient(-45deg, var(--accent) 0 5px, var(--accent-soft) 5px 10px); }
.f-batt .cell.over { background: var(--bad); }
.f-batt-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.f-batt-h svg { width: 20px; height: 20px; color: var(--accent); }
.f-batt-h b { font-size: 15px; }
.f-batt-h .chip { margin-inline-start: auto; }
.f-batt-cap { font-size: 13px; color: var(--muted); }

/* the shooting days */
.f-day { display: grid; grid-template-columns: 62px minmax(0, 1fr) 220px; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.f-day:last-child { border-bottom: 0; }
@media (max-width: 700px) { .f-day { grid-template-columns: 54px minmax(0, 1fr); } .f-day .money { grid-column: 1 / -1; } }
.f-datebox { border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); text-align: center; padding: 6px 0; }
.f-datebox b { display: block; font-size: 20px; line-height: 1.1; }
.f-datebox small { color: var(--muted); font-size: 11px; }
.f-crew { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.f-crew span.w { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 8px 2px 3px; border-radius: 999px; background: var(--surface-3); }
.f-crew .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.f-day .money { display: grid; gap: 4px; font-size: 12px; }
.f-bva { height: 10px; border-radius: 999px; background: var(--surface-3); position: relative; }
.f-bva span { position: absolute; inset: 0 0 0 auto; border-radius: 999px; }
.f-bva i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }

/* the share editor */
.f-se-row { display: grid; grid-template-columns: 26px 44px minmax(0, 1fr) 70px; align-items: center; gap: 8px; font-size: 14px; }
.f-se-row input[type=range] { width: 100%; }
.f-se-row input[type=number] { width: 70px; padding: 4px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-align: left; }
.f-se-prev { display: grid; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.f-split { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.f-mini { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: inherit; }
.f-mini:hover { border-color: var(--accent); color: var(--accent); }

/* the partners' balances */
.f-owes { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.f-ow-p { display: flex; align-items: center; gap: 8px; }
.f-ow-arrows { display: grid; gap: 22px; }
.f-ow-a { position: relative; height: 4px; border-radius: 99px; background: var(--line); }
.f-ow-a i { position: absolute; inset: 0; border-radius: 99px; opacity: .85; }
.f-ow-a::after { content: ""; position: absolute; left: -2px; top: -6px; border: 8px solid transparent; border-right-color: var(--ink); border-left: 0; }
.f-ow-a span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 700; white-space: nowrap; }

table.f-t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.f-t th { text-align: right; color: var(--muted); font-weight: 500; font-size: 12.5px; padding: 8px; border-bottom: 1px solid var(--line); }
table.f-t td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.f-stat { padding: 16px 18px; }
.f-stat .k { color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: center; }
.f-stat .k svg { width: 18px; height: 18px; }
.f-stat .v { font-size: 26px; font-weight: 800; margin-top: 4px; }
.f-stat .meter { height: 6px; border-radius: 99px; background: var(--surface-3); margin-top: 8px; overflow: hidden; }
.f-stat .meter i { display: block; height: 100%; border-radius: 99px; }
.f-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
select.f-in, input.f-in, textarea.f-in { width: 100%; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; }

/* התראות */
.f-alert-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.f-alert-link { display: block; color: inherit; text-decoration: none; }
.f-alert-link:hover .f-alert { filter: brightness(1.03); }
.f-compare { display: flex; gap: 8px; margin-top: 10px; }
.f-compare .f-in { flex: 1; min-width: 0; }

/* the month a מס"ב pays for, next to its date */
.f-for { font-size: .55em; font-weight: 500; color: var(--muted, #6b7a86); vertical-align: middle; margin-inline-start: 6px; }
/* "מימי הצילום": the shooting days an income takes its costs from */
.f-days-g { border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 12px; padding: 8px 12px; margin: 8px 0; }
.f-days-g summary { cursor: pointer; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 4px 0; }
.f-days-d { padding: 6px 0; border-top: 1px dashed var(--line, rgba(0,0,0,.1)); }
.f-days-d:first-of-type { border-top: 0; }
.f-days-w { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; padding: 3px 0; cursor: pointer; }
.f-days-w.off { opacity: .55; cursor: default; }
.f-days-w small { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .f-days-w { grid-template-columns: auto 1fr auto; } .f-days-w > small { grid-column: 2 / -1; order: 5; } }

/* the suggestions of a מס"ב (what to put in), the archive, everyone's bar, the deals and the forecast (Amir, 2026-12-01) */
.f-sug { display: grid; gap: 8px; }
.f-sug-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.f-sug-row.new { border-color: var(--gold-flat, #c9952f); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold-flat, #c9952f) 30%, transparent); }
.f-sug-row.in { opacity: .7; }
.f-sug-row.skipped { opacity: .6; border-style: dashed; }
.f-sug-row .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.f-sug-row .ic.in { background: var(--good-soft); color: var(--good); }
.f-sug-row .ic.out { background: var(--bad-soft); color: var(--bad); }
.f-sug-t { min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.f-sug-t small { flex-basis: 100%; color: var(--muted); font-size: 12.5px; }
.f-sug-b { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.f-archive summary, .f-archive-in summary { cursor: pointer; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.f-archive summary .f-small { flex-basis: 100%; }
.f-archive-in { margin-top: 10px; }
.f-pbar .f-pbar-what { grid-column: 1 / -1; margin-top: -6px; }
.f-deal { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; margin-bottom: 8px; background: var(--surface); }
.f-deal.off { opacity: .6; }
.f-deal-h { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.f-deal-h .amt { margin-inline-start: auto; font-weight: 700; }
.f-table-wrap { overflow-x: auto; }
.f-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.f-table th, .f-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.f-table thead th small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.f-table tbody th { text-align: right; font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.f-table tr.tot th, .f-table tr.tot td { font-weight: 800; border-top: 2px solid var(--line); }
.f-table tr.sep th { text-align: right; color: var(--muted); font-weight: 600; padding-top: 14px; }
.f-table td.f-guess { color: var(--muted); }
.f-table td.f-wallet { background-image: repeating-linear-gradient(135deg, transparent 0 5px, color-mix(in srgb, var(--p-reserve, #3a8f7a) 18%, transparent) 5px 7px); }
@media (max-width: 640px) {
  .f-sug-row { grid-template-columns: 36px minmax(0, 1fr); }
  .f-sug-row .amt, .f-sug-b { grid-column: 2; justify-content: flex-start; text-align: right; }
}

/* the home page's two big actions (Amir, 2026-12-02: "much bigger and more prominent") */
.f-bigacts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.f-bigacts .btn { min-height: 76px; font-size: 20px; font-weight: 700; justify-content: center; gap: 12px; border-radius: 18px; padding: 14px 18px; }
.f-bigacts .btn svg { width: 28px; height: 28px; }
.f-bigacts .btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.f-bigacts .btn small { font-size: 13px; font-weight: 500; opacity: .85; }
@media (max-width: 560px) { .f-bigacts { grid-template-columns: 1fr; } .f-bigacts .btn { min-height: 64px; font-size: 18px; } }

/* a מס"ב in two halves on the home page: the incomes on the right, the expenses on the left (Amir, 2026-12-02) */
.f-split { gap: 18px; }
.f-half h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 16px; }
.f-half h4 svg { width: 20px; height: 20px; }
.f-half.in h4 { color: var(--good); }
.f-half.out h4 { color: var(--bad); }
.f-half.out { border-inline-start: 1px solid var(--line, rgba(127,127,127,.2)); padding-inline-start: 16px; }
.f-costgrp { margin-top: 10px; }
.f-costgrp .h { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; padding: 4px 0; border-bottom: 1px dashed var(--line, rgba(127,127,127,.25)); }
@media (max-width: 900px) { .f-half.out { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line, rgba(127,127,127,.2)); padding-top: 12px; } }

/* the expenses page (Amir, 2026-12-02): one big button, the three kinds of expense, the ones turned off in grey */
.f-bigacts.one { grid-template-columns: 1fr; }
.f-seg3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.f-seg3 button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; }
.f-seg3 button small { font-size: 12px; opacity: .75; font-weight: 400; }
.f-row.f-off { opacity: .5; filter: grayscale(1); }
.f-seg2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.f-seg2 button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; }
.f-seg2 button small { font-size: 12px; opacity: .75; font-weight: 400; }

/* לקוחות ועבודות (Amir, 2026-12-02) */
.f-sec { font-size: 18px; margin: 18px 0 10px; display: flex; gap: 8px; align-items: baseline; }
.f-ctile { display: grid; gap: 8px; text-decoration: none; color: inherit; transition: transform .12s; }
.f-ctile:hover { transform: translateY(-2px); }
.f-ctile .h { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.f-ctile .h b { font-size: 17px; }
.f-ctile .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.f-ctile-m { display: flex; gap: 12px; align-items: center; }
.card.f-off, .f-job.f-off { opacity: .55; filter: grayscale(1); }
.f-pie { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.f-pie-in { display: grid; gap: 8px; flex: 1; min-width: 200px; }
.f-pie-in label { display: grid; grid-template-columns: auto 1fr 90px auto; gap: 8px; align-items: center; }
.f-pie-in input { text-align: center; }
.f-job { border: 1px solid var(--line, rgba(127,127,127,.2)); border-radius: 14px; padding: 12px 14px; display: grid; gap: 10px; margin-bottom: 10px; }
.f-job .h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.f-job .h .amt { margin-inline-start: auto; font-weight: 800; }
.f-job-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.f-job-g small { display: block; color: var(--muted); font-size: 12px; }
.f-job-g b { font-size: 14.5px; }
.f-x { border: 0; background: none; cursor: pointer; color: var(--bad); font-weight: 700; padding: 0 2px; }

/* the alerts tab in a gold frame (Amir, 2026-12-02) */
.tabs a.tab[href="/alerts"] { box-shadow: inset 0 0 0 2px var(--gold-flat, #d4a843), 0 0 10px rgba(212, 168, 67, .35); }

/* the home page's buttons in groups with titles (Amir, 2026-12-02) */
.f-actgroups { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 12px; margin-bottom: 14px; }
.f-actgroups section { background: var(--surface); border-radius: 18px; padding: 12px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow); }
.f-actgroups h3 { margin: 0 2px 2px; font-size: 14px; color: var(--muted); font-weight: 700; }
.f-actgroups .btn { min-height: 58px; font-size: 17px; font-weight: 700; justify-content: flex-start; gap: 10px; border-radius: 14px; padding: 10px 14px; }
.f-actgroups .btn svg { width: 22px; height: 22px; }
.f-actgroups .btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.f-actgroups .btn small { font-size: 12.5px; font-weight: 500; opacity: .85; }
.f-bigacts.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .f-actgroups { grid-template-columns: 1fr; } .f-bigacts.three { grid-template-columns: 1fr; } }

/* טעינת ימי צילום (Amir, 2026-12-02): the rows turned off are grey */
.f-dl-grp { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; }
.f-dl-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 4px 2px; cursor: pointer; }
.f-dl-row.off { opacity: .45; filter: grayscale(1); }
