/*
 * lqdm-work-ui — the work-interface design language of Liquidium (OPS 2.0, decision 17 + v3 of 15.10).
 * Generated from lqdm-ops2 622e92e on 2026-10-15 by tools/ui/export.mjs.
 * Do not edit this copy: change app/src/styles in lqdm-ops2 and re-export.
 * Nothing yellow, ever (Guy). RTL, Hebrew first.
 */
/* OPS 2.0 design tokens — design language v2 (decision 17, docs/DESIGN-LANGUAGE.md).
   Grey tones, never full black or white; soft diagonal light on every
   surface; rounded corners; a circle means state. Values are lifted from
   the approved canvas (page "מסכי OPS"). */

/* ---------------------------------------------------------- brand fonts */

@font-face {
  font-family: 'Almoni';
  src: url('./fonts/almoni-regular-aaa.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Almoni';
  src: url('./fonts/almoni-ultrabold-aaa.otf') format('opentype');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Coolvetica';
  src: url('./fonts/coolvetica_rg.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Biko';
  src: url('./fonts/Biko-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

/* -------------------------------------------------------------- tokens */

:root {
  /* surfaces & ink — grey tones, never full black or white (Guy, 2026-10-04) */
  --surface: #eceef1; /* the page — flat, no rake (v3) */
  --chrome: #f4f5f6; /* header and rail */
  --ink: #24272b; /* text: graphite, not black */
  --soft: #4b4f55;
  --steel: #9a9da2;
  --alum: #c6cacf;
  --hair: #d2d5da;
  /* a datum that is simply absent — quieter than steel, still readable.
     Distinct from --alum, which is a border/fill grey, not a text colour. */
  --absent: #a9acb0;
  --ra: #f9fafb; /* surface light, top-left of the diagonal */
  --rb: #eef0f2; /* surface light, bottom-right */
  --field: #f9fafb;
  --night: #4c5056;
  --track: #e3e5e8;

  /* the anchor: the one thing on a screen that carries weight. Since v3 (15.10)
     it is carried by SIZE — one huge thin number on the brightest surface —
     not by a dark-steel block; black appears only in small doses (active rail
     item, pills, primary button), set in components. */
  --anchor-t: #e6e9ec;
  --anchor: #cfd3d7;
  --on-anchor: #24272b;
  --anchor-muted: #5c6066;
  --anchor-line: #aeb3b9;
  --mark: #4c5056;

  /* functional only — never decorative */
  --ok: #557a5a;
  --err: #94585b;
  /* the one warning per screen — rust, never yellow (Guy, 2026-10-14; was #a8842c) */
  --warn: #c66139;

  /* light on material */
  --shadow: 0 1px 0 rgba(36, 39, 43, 0.04), 0 12px 30px -14px rgba(36, 39, 43, 0.2);
  --shadow-2: 0 1px 0 rgba(36, 39, 43, 0.05), 0 22px 44px -18px rgba(36, 39, 43, 0.36);

  /* constants — rounded corners and circles (decision 17) */
  --radius: 18px; /* surfaces: panels, cubes, sheets */
  --radius-c: 12px; /* controls: buttons, fields, segments */

  /* spacing — the 4-scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;

  /* app chrome */
  --header-h: 64px;
  --rail-w: 84px;
  --nav-h: 76px;
  --ok-wash: rgba(122, 158, 126, 0.16);
  --err-wash: rgba(184, 120, 122, 0.14);
  --metal-ink: linear-gradient(118deg, #0b0c0e 0%, #3a3e44 30%, #5a5f66 50%, #3a3e44 70%, #0b0c0e 100%);
}

/* ---------------------------------------------------------------- base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#root {
  height: 100%;
}

body {
  margin: 0;
  background: #eceef1;
  color: var(--ink);
  font-family: 'Almoni', 'Arial Hebrew', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  background-attachment: fixed;
  background-image: none;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
}
a:hover {
  color: var(--soft);
}

/* iOS zooms any input under 16px on focus */
input,
select,
textarea,
button {
  font-family: inherit;
  font-size: 16px;
  color: inherit;
}

/* ---------------------------------------------------- brand typography */

/* The product is the only thing that raises its voice. */
.prod {
  font-family: 'Coolvetica', 'Arial Narrow', sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  direction: ltr;
  unicode-bidi: isolate;
}

/* The brand whispers. */
.wm {
  font-family: 'Biko', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
}

/* Every number: tabular, LTR-isolated so Hebrew never flips it. */
.num {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.lbl {
  font-size: 13px;
  color: var(--soft);
}

/* A large number the eye reads first (v3): thin and big — Almoni regular,
   tight tracking, LTR-isolated. The weight comes from the size, not from bold. */
.big-num {
  font-family: 'Almoni', sans-serif;
  font-weight: 400;
  line-height: 0.9;
  direction: ltr;
  unicode-bidi: isolate;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------- grain */

.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* OPS 2.0 component layer — design language v2 as reusable classes
   (docs/DESIGN-LANGUAGE.md). Anything a screen needs twice lives here;
   screen-specific layout stays in the screen. */

/* -------------------------------------------------------------- panels */

.panel {
  border: 1px solid var(--hair);
  background: linear-gradient(160deg, #fbfbfc, #f6f7f8);
  border-radius: var(--radius);
  /* the cube edge as chosen with ח (Guy, 15.10: back to before the contrast pass) */
  box-shadow: 0 1px 0 rgba(36, 39, 43, 0.03);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: rgba(36, 39, 43, 0.07);
}
/* a scrolling table inside a rounded panel keeps to the corners */
.panel.tbl-scroll,
.panel > .tbl-scroll:last-child {
  border-radius: var(--radius);
}
.panel > .tbl-scroll:last-child {
  border-start-start-radius: 0;
  border-start-end-radius: 0;
}

/* the anchor surface: the one thing on a screen that carries weight */
.panel.anchor-panel {
  border-color: rgba(36, 39, 43, 0.22);
  background: linear-gradient(160deg, var(--anchor-t), var(--anchor));
  color: var(--on-anchor);
  box-shadow: var(--shadow-2);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-image: linear-gradient(160deg, #ffffff 0%, #f8f9fa 100%);
}
.anchor-panel .lbl,
.anchor-panel .cost-line span {
  color: var(--anchor-muted);
}
.anchor-panel .cost-line {
  border-color: var(--anchor-line);
}
.anchor-panel .cost-line.total {
  border-color: var(--anchor-muted);
}

.panel-pad {
  padding: 20px 22px;
}

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  height: 40px;
  padding: 0 var(--s4);
  background: var(--anchor);
  color: var(--on-anchor);
  font-size: 14px;
  font-weight: 800;
  border: 1px solid var(--anchor);
  border-radius: var(--radius-c);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease-out;
}
.btn:hover:not(:disabled) {
  background: var(--anchor-t);
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.btn.sec {
  background: transparent;
  color: var(--ink);
  border-color: var(--alum);
  font-weight: 400;
}
.btn.sec:hover:not(:disabled) {
  background: var(--track);
}
/* on the anchor surface, a primary action turns over */
.anchor-panel .btn:not(.sec) {
  background: var(--on-anchor);
  color: var(--anchor);
  border-color: var(--on-anchor);
}
.anchor-panel .btn.sec {
  color: var(--on-anchor);
  border-color: var(--anchor-line);
}
.anchor-panel .btn.sec:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}
.btn.danger {
  background: var(--err);
  border-color: var(--err);
}
/* touch target floor — mobile controls the floor works with */
.btn.mob {
  height: 44px;
  font-size: 14.5px;
}
.btn.sm {
  height: 34px;
  padding: 0 var(--s3);
  font-size: 13px;
}

/* One light event per screen, in motion only. */
.sheen {
  position: relative;
  overflow: hidden;
}
.sheen::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  left: -60%;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(160, 190, 230, 0.18) 35%,
    rgba(235, 205, 160, 0.2) 65%,
    transparent
  );
  transform: skewX(-18deg);
}
/* retired in v2: no running light on hover (Guy and Yarden, 2026-10-04) */
.sheen::after {
  display: none;
}
@keyframes sheen {
  to {
    left: 120%;
  }
}

/* --------------------------------------------------------------- pills */

/* a chip; when it states a condition, a circle carries the state */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  font-size: 12.5px;
  border: 0;
  border-radius: 999px;
  background: var(--track);
  color: var(--ink);
  white-space: nowrap;
}
.pill.ok::before,
.pill.warn::before,
.pill.err::before,
.pill.strong::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: var(--mark);
}
.pill.warn::before {
  background: var(--warn);
}
.pill.err::before {
  background: var(--err);
}
.pill.mut {
  color: var(--soft);
}
.pill.strong {
  font-weight: 800;
}

/* -------------------------------------------------------------- inputs */

.field {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--alum);
  background: var(--field);
  color: var(--ink);
  font-size: 14px;
  border-radius: var(--radius-c);
  min-width: 0;
}
.field:focus {
  outline: none;
  border-color: var(--ink);
}
.field.num-field {
  text-align: left;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
.field.wide {
  width: 100%;
}
select.field {
  cursor: pointer;
}

/* Inline table editing: borderless until touched. */
.cell-input {
  width: 100%;
  height: 28px;
  padding: 0 6px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-size: 14px;
  border-radius: 8px;
}
.cell-input:hover {
  border-color: var(--hair);
}
.cell-input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--field);
}
.cell-input.num-field {
  text-align: left;
  font-variant-numeric: tabular-nums;
  direction: ltr;
}
/* In a table a number sits under its heading (Yarden, 2026-10-12: "a number
   sits between columns"). Headings are aligned to the start (right); an
   editable number aligned left sat against the next column. The digits stay
   ltr; only the edge moves. */
.tbl .cell-input.num-field {
  text-align: right;
}

/* green flash on a committed save */
@keyframes save-flash {
  from {
    background: rgba(110, 139, 90, 0.25);
  }
  to {
    background: transparent;
  }
}
.saved {
  animation: save-flash 0.6s ease-out;
}

/* -------------------------------------------------------------- tables */

.tbl {
  width: 100%;
  border-collapse: collapse;
}
.tbl th {
  font-size: 12.5px;
  font-weight: 400;
  color: var(--soft);
  text-align: right;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hair);
  white-space: nowrap;
}
.tbl td {
  font-size: 14px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hair);
  vertical-align: middle;
}
.tbl tbody tr:last-child td {
  border-bottom: 0;
}
.tbl tbody tr {
  transition: background-color 0.2s ease-out;
}
.tbl tbody tr:hover {
  background: var(--track);
}
.tbl .empty td {
  color: var(--soft);
  text-align: center;
  padding: var(--s5) 10px;
}
.tbl-scroll {
  overflow-x: auto;
}

.gap-pos {
  color: var(--ok);
  font-weight: 800;
}
.gap-neg {
  color: var(--err);
  font-weight: 800;
}

/* --------------------------------------------------------------- icons */

.ico {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ico.sm {
  width: 15px;
  height: 15px;
}

/* --------------------------------------------------------------- modal */

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(36, 39, 43, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
  z-index: 100;
}
.modal {
  background: linear-gradient(160deg, var(--ra), var(--rb));
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(36, 39, 43, 0.5);
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4) 18px;
  border-bottom: 1px solid var(--hair);
}
.modal-head h2 {
  font-size: 18px;
  font-weight: 800;
}
.modal-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  padding: var(--s4) 18px;
  border-top: 1px solid var(--hair);
}
.frow {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.frow > label {
  font-size: 12px;
  color: var(--soft);
}
.fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}

/* At phone width a modal becomes a bottom sheet. */
@media (max-width: 720px) {
  .modal-bg {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    width: 100%;
    max-height: 92vh;
    border-inline: none;
    border-bottom: none;
    border-end-start-radius: 0;
    border-end-end-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* -------------------------------------------------------------- toasts */

.toasts {
  position: fixed;
  bottom: calc(var(--s5) + env(safe-area-inset-bottom));
  inset-inline-start: 50%;
  transform: translateX(50%);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  z-index: 200;
  pointer-events: none;
}
.toast {
  background: var(--anchor);
  color: var(--on-anchor);
  padding: 11px var(--s4);
  font-size: 14px;
  max-width: 90vw;
  border-radius: var(--radius-c);
  box-shadow: var(--shadow-2);
}
.toast.err {
  background: var(--err);
}

/* ------------------------------------------------------------ sections */

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}
.sec-head h1 {
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
}
.sec-head .lbl {
  font-size: 14.5px;
}
.sec-head h2 {
  font-size: 16px;
  font-weight: 800;
}

/* toolbar: search grows, actions sit beside it; on a phone the search
   takes the full row and the actions line up underneath */
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 900px) {
  .toolbar {
    width: 100%;
  }
  .toolbar .search {
    flex: 1 1 100%;
  }
  .toolbar .btn {
    flex: 1 1 auto;
  }
}

.search {
  display: flex;
  align-items: center;
  gap: var(--s2);
  border: 1px solid var(--alum);
  background: var(--field);
  height: 40px;
  padding: 0 var(--s3);
  color: var(--soft);
  min-width: 220px;
  border-radius: var(--radius-c);
}
.search input {
  border: none;
  background: transparent;
  font-size: 14px;
  width: 100%;
  min-width: 0;
}
.search input:focus {
  outline: none;
}

/* icon-only button — 44px touch target, 20px mark */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  border-radius: var(--radius-c);
}
.icon-btn:hover {
  color: var(--ink);
  background: var(--track);
}
@media (max-width: 900px) {
  .icon-btn {
    width: 44px;
    height: 44px;
  }
}

/* inline notices — a line of state, not a decorated box */
/* A notice is running text — links and bold inside it flow as words, so
   it is never a flex row; the state circle hangs in the start padding. */
.notice {
  position: relative;
  font-size: 13.5px;
  line-height: 1.55;
  padding: 12px var(--s4);
  padding-inline-start: 34px;
  border-radius: var(--radius-c);
  background: var(--track);
  color: var(--ink);
}
.notice::before {
  content: '';
  position: absolute;
  inset-inline-start: 16px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-sizing: border-box;
  border: 1.5px solid var(--steel);
}
.notice.err {
  color: var(--err);
}
.notice.err::before {
  border: 0;
  background: var(--err);
}
.notice.warn::before {
  border: 0;
  background: var(--warn);
}

/* derived-value strip inside forms (computed, never typed) */
.derived {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  align-items: baseline;
  padding: 10px var(--s3);
  background: var(--rb);
  border: 1px solid var(--hair);
  border-radius: var(--radius-c);
  font-size: 13px;
  color: var(--soft);
}
.derived b {
  color: var(--ink);
  font-weight: 800;
}

/* empty state — replaces the table entirely so the message is never
   stranded past a horizontal scroll */
.empty-state {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  align-items: flex-start;
  padding: var(--s7) var(--s5);
  color: var(--soft);
  font-size: 14.5px;
}
/* the panel spans the column; only the sentence is measure-limited */
.empty-state p {
  max-width: 60ch;
}

/* panel with a titled header strip */
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: 15px 20px;
  border-bottom: 1px solid var(--hair);
}
.panel-head h2 {
  font-size: 17px;
  font-weight: 800;
}

/* a stack of label → value lines (costs, parameters, summaries) */
.rec-cost h2 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
}
.rec-cost .cost-line .cell-input {
  max-width: 120px;
}
/* an inline number on the anchor surface reads as light on dark */
.anchor-panel .cell-input {
  color: var(--on-anchor);
  background: transparent;
  border-color: var(--anchor-line);
}
.anchor-panel .cell-input:focus {
  background: var(--on-anchor);
  color: var(--ink);
}

/* where a detail screen sits: a quiet trail back */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}
.cost-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 9px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--hair);
}
.cost-line b.num {
  font-family: 'Almoni', sans-serif;
  font-weight: 400;
  font-size: 16px;
}
.cost-line:last-of-type {
  border-bottom: none;
}
.cost-line b {
  font-weight: 800;
}
.cost-line.total {
  border-top: 1px solid var(--alum);
  border-bottom: none;
  font-weight: 800;
  font-size: 15.5px;
  padding-top: 11px;
}
.cost-line.total b {
  font-size: 20px;
}

.qty-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.qty-cell .cell-input {
  max-width: 96px;
}
/* the number hugs its unit: a wide box pushed the unit next to the following column (Guy, 2026-10-14) */
.tbl .qty-cell .cell-input {
  width: 8ch;
  flex: none;
}

/* main column + a narrow side column of summary panels */
.pricing-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--s4);
  align-items: start;
}
/* the money screens' two columns: the picture, then the anchor that sets it */
.pricing-cols.wide {
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) {
  .pricing-cols.wide {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .pricing-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}
.pricing-form {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.pricing-form h2 {
  font-size: 16px;
  font-weight: 800;
}
.pricing-form .frow {
  max-width: 320px;
}

/* screen not built yet — honest, not decorative */
.stub {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s7) var(--s5);
  align-items: flex-start;
}
.stub h1 {
  font-size: 24px;
  font-weight: 800;
}
.stub p {
  color: var(--soft);
  max-width: 56ch;
}

/* segmented filter chips — sized to their words on a desktop, the full
   row on a phone; a long set scrolls rather than wrapping into two rows */
.seg {
  display: inline-flex;
  align-self: flex-start;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border-radius: calc(var(--radius-c) + 4px);
  background: var(--track);
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar {
  display: none;
}
.seg button,
.seg a {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s2) 14px;
  font-size: 13.5px;
  color: var(--soft);
  background: transparent;
  border: none;
  border-radius: var(--radius-c);
  cursor: pointer;
  white-space: nowrap;
  min-height: 34px;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
.seg button:hover,
.seg a:hover {
  color: var(--ink);
}
.seg button.on,
.seg a.on {
  background: var(--ra);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 1px 0 rgba(36, 39, 43, 0.05), 0 4px 10px -6px rgba(36, 39, 43, 0.35);
}

/* sub-navigation inside a tab: sized to its labels, not the viewport */
@media (max-width: 900px) {
  .seg {
    display: flex;
    align-self: stretch;
  }
  .seg button,
  .seg a {
    flex: 1 0 auto;
  }
}

/* ------------------------------------------- multi-select in tables */

.sel-col {
  width: 32px;
  padding-inline: var(--s2) 0;
}
/* a square means selection (decision 17) — a circle would mean state.
   `.check` gives any other checkbox the same square. */
.sel-col input[type='checkbox'],
input[type='checkbox'].check {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--alum);
  border-radius: 5px;
  background: var(--field);
  cursor: pointer;
  display: grid;
  place-content: center;
}
.sel-col input[type='checkbox']:checked,
input[type='checkbox'].check:checked {
  background: var(--anchor)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5 8.5 14.5 15.5 6' fill='none' stroke='%23f4f5f6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 13px no-repeat;
  border-color: var(--anchor);
}
.sel-col input[type='checkbox']:indeterminate,
input[type='checkbox'].check:indeterminate {
  background: var(--anchor)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10h10' fill='none' stroke='%23f4f5f6' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 13px no-repeat;
  border-color: var(--anchor);
}
.sel-col input[type='checkbox']:focus-visible,
input[type='checkbox'].check:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 2px;
}
input[type='checkbox'].check:disabled {
  opacity: 0.45;
  cursor: default;
}

.bulk-bar {
  position: sticky;
  bottom: var(--s3);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  flex-wrap: wrap;
  margin-top: var(--s3);
  padding: 10px 12px 10px var(--s4);
  background: linear-gradient(160deg, var(--anchor-t), var(--anchor));
  color: var(--on-anchor);
  border: 1px solid var(--anchor);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}
.bulk-bar b {
  font-variant-numeric: tabular-nums;
}
.bulk-bar .btn.sec {
  background: transparent;
  color: var(--on-anchor);
  border-color: var(--anchor-line);
}

.gap-list {
  list-style: none;
  margin: var(--s2) 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
  font-size: 0.85rem;
  color: var(--soft);
}
.gap-list b {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* ------------------------------------------ density (decision 14c) */

/*
 * A missing datum is a quiet dash, never repeated text and never a chip.
 * Fifteen amber "no time measured" chips on one screen taught us that a
 * warning repeated is a warning ignored.
 */
.dash {
  color: var(--soft);
}

/* the one number a row is read for: heavier, lined up, never coloured */
/* .num is LTR-isolated, so `start` would be its left edge — under a
   right-aligned Hebrew header the number drifted left (Guy, 14.10) */
.tbl td.num {
  text-align: right;
}
/* a number a cell stresses is bigger, not bolder (v3, Guy 15.10) */
.tbl td.num b {
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
}

.tbl td.anchor {
  font-family: 'Almoni', sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
}

.tbl th.sortable {
  cursor: pointer;
  user-select: none;
}
.tbl th.sortable:hover {
  color: var(--ink);
}
.tbl th.sortable[aria-sort]:not([aria-sort='none']) {
  color: var(--ink);
}
.tbl th .sort-mark {
  font-size: 9px;
  margin-inline-start: 4px;
}

/* a whole row that opens something */
.tbl tr.rowlink {
  cursor: pointer;
}
.tbl tr.on {
  background: var(--track);
}

/* the aggregate gap: ONE line above the list, with the count and a way out */
/* the one amber on a screen: a dot, a count, and a way out */
.gap-banner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: 13px 18px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  background: var(--ra);
  font-size: 14.5px;
  color: var(--ink);
}
.gap-banner::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--warn);
  flex: none;
  margin-inline-end: -4px;
}
/* the way out sits at the far end */
.gap-banner > :last-child {
  margin-inline-start: auto;
}
.gap-banner b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* selection bar sits ABOVE the table it acts on */
/* a count beside a segment's label — a margin, because a leading space
   collapses inside the flex button */
.seg-count {
  margin-inline-start: 6px;
}

/* above a long table the bar sticks under the header, so a selection made
   far down the list can still be acted on (Guy, 2026-10-05) */
.bulk-bar.above {
  position: sticky;
  top: calc(var(--header-h) + var(--s2));
  bottom: auto;
  margin-top: 0;
  margin-bottom: var(--s3);
}

/* quiet archive rows under the rich cards */
.arch-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--s3);
  align-items: baseline;
  width: 100%;
  padding: 9px var(--s4);
  border: 0;
  border-bottom: 1px solid var(--hair);
  background: none;
  font: inherit;
  color: inherit;
  text-align: start;
  cursor: pointer;
}
.arch-row:hover {
  background: var(--track);
}
.arch-row.on {
  background: var(--track);
}
.arch-row .n {
  font-variant-numeric: tabular-nums;
  color: var(--soft);
}

/* ------------------------------------------------- weighing dialog */

.weigh-steps {
  margin-top: var(--s3);
}
.weigh-steps td {
  padding: 5px 10px;
  border: 0;
}
.weigh-steps tr:not(:last-child) td {
  border-bottom: 1px dotted var(--hair);
}
.weigh-steps .weigh-total td {
  border-top: 1px solid var(--ink);
  padding-top: 8px;
}
.wm-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--soft);
  cursor: pointer;
}
.wm-add input {
  accent-color: var(--ink);
}

/* acceptance tests passing: quiet confidence, not a green shout */
.ok-panel {
  border-inline-start: 2px solid var(--ok);
}

.util-bar {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--track);
  min-width: 120px;
}
.util-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--mark);
}

/* ------------------------------------------------ consolidated invoice */

.inv-sheet {
  border: 1px solid var(--hair);
  border-radius: var(--radius-c);
  padding: var(--s4);
}
.inv-head {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--hair);
  margin-bottom: var(--s3);
}
.inv-totals {
  margin-top: var(--s3);
  margin-inline-start: auto;
  width: min(320px, 100%);
}
.inv-totals td {
  border: 0;
  padding: 4px 10px;
}
.inv-note {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px dotted var(--hair);
  font-size: 13px;
  color: var(--soft);
}

@media print {
  body * {
    visibility: hidden;
  }
  .inv-sheet,
  .inv-sheet * {
    visibility: visible;
  }
  .inv-sheet {
    position: absolute;
    inset: 0;
    border: 0;
  }
  .no-print {
    display: none !important;
  }
}

/* ------------------------------------------- old-catalog suggestions */

.suggest {
  border: 1px solid var(--hair);
  border-radius: var(--radius-c);
  margin-top: var(--s2);
  max-height: 220px;
  overflow-y: auto;
}
.suggest-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px var(--s3);
  border-bottom: 1px solid var(--hair);
}
.suggest-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s3);
  width: 100%;
  padding: 7px var(--s3);
  border: 0;
  border-bottom: 1px solid var(--hair);
  background: none;
  font: inherit;
  color: inherit;
  text-align: start;
  cursor: pointer;
}
.suggest-row:last-child {
  border-bottom: 0;
}
.suggest-row:hover {
  background: rgba(255, 255, 255, 0.6);
}
/* the price is a hint from 2025, and says so */
.suggest-row i {
  font-style: normal;
  color: var(--absent);
}

/* live numbers in the app header */
.h-stats {
  display: none;
  align-items: baseline;
  gap: var(--s3);
  font-size: 12px;
  color: var(--soft);
  white-space: nowrap;
}
.h-stats b {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
@media (min-width: 1180px) {
  .h-stats {
    display: inline-flex;
  }
}

/* out-of-date tab: present, not modal — finish the sentence first */
.version-gate {
  position: fixed;
  inset-block-end: var(--s4);
  inset-inline-start: 50%;
  transform: translateX(50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: 10px var(--s4);
  background: var(--anchor);
  color: var(--on-anchor);
  border: 1px solid var(--anchor);
  border-radius: var(--radius-c);
  box-shadow: var(--shadow-2);
  font-size: 13.5px;
}
.version-gate .btn {
  background: var(--on-anchor);
  color: var(--anchor);
  border-color: var(--on-anchor);
}
.version-gate .linklike {
  color: color-mix(in srgb, var(--ra) 70%, transparent);
}

/* -------------------------------------- system menu, behind the chip */

.sys-menu {
  position: relative;
}
.sys-pop {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  /*
    The chip sits at the far inline-end of the header, which in RTL is the
    left edge of the screen. Anchoring the popup's inline-START there hung
    it off the edge; anchoring its inline-END makes it open inward, which
    is the only direction with room.
  */
  inset-inline-end: 0;
  z-index: 40;
  min-width: 250px;
  padding: 6px;
  background: var(--ra);
  border: 1px solid var(--hair);
  border-radius: var(--radius-c);
  box-shadow: var(--shadow-2);
  display: grid;
}
.sys-item {
  display: grid;
  gap: 1px;
  padding: 9px var(--s3);
  border-radius: 8px;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.sys-item:hover,
.sys-item:focus-visible {
  background: var(--track);
}
.sys-item .lbl {
  font-size: 11.5px;
}
.sys-sep {
  height: 1px;
  background: var(--hair);
  margin-block: 2px;
}

/* ------------------------------------------------ design language v2 */

/* the state circle (decision 17): a ring is waiting, a filled circle is done */
.state-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-sizing: border-box;
  flex: none;
  background: var(--mark);
}
.state-dot.ring {
  background: transparent;
  border: 1.5px solid var(--steel);
}
.state-dot.warn {
  background: var(--warn);
}

/* a stat cube: label, one big number, one line */
.stat-cube {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: 20px 22px;
}
.stat-cube > .k {
  font-size: 15px;
  font-weight: 800;
}
.stat-cube > .big {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat-cube > .big b {
  font-family: 'Almoni', sans-serif;
  font-weight: 400;
  font-size: 56px;
  letter-spacing: -0.02em;
  line-height: 0.9;
  direction: ltr;
  unicode-bidi: isolate;
}
.stat-cube > .big span {
  font-size: 20px;
  font-weight: 800;
}

:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 2px;
}
.anchor-panel :focus-visible {
  outline-color: var(--on-anchor);
}

/* a quiet text link: the way to the next screen, never a call to action */
.linky {
  color: var(--soft);
  font-size: 13px;
  /* the same quiet link when it is a button (an action, not a place) */
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--alum);
  text-underline-offset: 3px;
}
.linky:hover {
  color: var(--ink);
}

/* a chip that states a fact (a count, a change) — not a state, so no circle */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  background: var(--track);
  color: var(--ink);
  white-space: nowrap;
}
.anchor-panel .chip {
  background: rgba(255, 255, 255, 0.16);
  color: var(--on-anchor);
}

/* a Hebrew product name: the body face, made to stand (ProdName) */
.he-name {
  font-weight: 800;
}

/* state circles beyond done/waiting: a half circle is "low" */
.state-dot.half {
  background: linear-gradient(90deg, transparent 50%, var(--mark) 50%);
  border: 1.5px solid var(--mark);
}
.state-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

/* shared table rows: a totals row, a credit, a line priced below its floor */
.tfoot-row td {
  border-bottom: none;
  border-top: 1px solid var(--alum);
  font-weight: 800;
  font-size: 14px;
}
.credit-row td {
  color: var(--ok);
}
.tbl tr.row-flag {
  background: color-mix(in srgb, var(--err) 6%, transparent);
}

/* an inline field inside a product name keeps the name's own face */
.prod .cell-input,
.he-name .cell-input {
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

/* one line under a title that says why the screen can be trusted */
.lede {
  margin-top: -12px;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--soft);
}
@media (max-width: 900px) {
  .lede {
    margin-top: -8px;
    font-size: 14px;
  }
}

/* fields on the anchor surface: light on dark, labels in the muted tone */
.anchor-panel .field {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--anchor-line);
  color: var(--on-anchor);
}
.anchor-panel .field::placeholder {
  color: var(--anchor-muted);
  opacity: 0.7;
}
.anchor-panel .frow > label {
  color: var(--anchor-muted);
}
.pr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pr-grid .field {
  width: 100%;
}

/* the hourly cost as the expenses screen's one number (Yarden, 2026-10-12) */
.hour-cube { display: grid; gap: var(--s1); margin-bottom: var(--s3); }
.hour-cube .hour-x { font-family: 'Almoni', sans-serif; font-size: 56px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); }
.hour-cube details, .pr-more { margin-top: var(--s2); }
.hour-cube summary, .pr-more summary { cursor: pointer; color: var(--soft); }

/* /columns — the column settings (Guy, 2026-10-14); the fold header is shared with the clients screen */
.col-set .cl-fold { display: flex; align-items: baseline; gap: 4px 12px; width: 100%; border: 0; background: transparent; font: inherit; color: var(--ink); text-align: start; cursor: pointer; justify-content: flex-start; }
.col-set .cl-fold h2 { font-size: 17px; font-weight: 800; margin: 0; }


/* ---------------------------------------------------------- design language v3 (15.10) —
   rules that had no v2 home: new selectors, :has() grids, and the phone tier.
   Folded from the v3 layer; one rule per selector, final values. */

.anchor-panel {
  background-image: linear-gradient(160deg, #fbfbfc 0%, #f1f2f4 100%);
  border-color: rgba(36, 39, 43, 0.22);
  box-shadow: 0 1px 0 rgba(36, 39, 43, 0.04), 0 18px 40px -22px rgba(36, 39, 43, 0.35);
}

.cube-go {
  border-color: var(--anchor-line);
  color: var(--ink);
}

.btn:not(.sec):not(.danger) {
  background: var(--ink);
  border-color: var(--ink);
  color: #f4f5f6;
}

.rl[aria-current='page'],
.rl[aria-current='page']:hover,
.tb[aria-current='page'],
.seg button.on,
.seg a.on {
  background: var(--ink);
  color: #f4f5f6;
}

td.anchor.pos .num {
  border-radius: 8px;
  padding: 0;
  border: 0;
  background: none;
}

.cube:hover,
.cube:focus-visible {
  box-shadow: 0 1px 0 rgba(36, 39, 43, 0.04), 0 14px 30px -18px rgba(36, 39, 43, 0.3);
}

.screen > p.lbl {
  color: var(--soft);
}

.cube-big.word b {
  font-size: 28px !important;
  color: var(--soft);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
}

@media (max-width: 900px) {
  .home-head h1,
  .cube-open .cube-stat-v b {
    font-size: 28px;
  }

  .ph-name {
    font-weight: 500;
    font-size: 22px;
  }

  .ph-row[aria-expanded='true'] .ph-num b {
    font-size: 52px;
    font-family: 'Almoni', sans-serif;
    font-weight: 400;
    background: var(--metal-ink);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
