/* ============ חשבוניות — עיצוב ============ */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --text: #101828;
  --text-2: #344054;
  --muted: #667085;
  --faint: #98a2b3;
  --accent: #2f54eb;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --green: #079455; --green-soft: #ecfdf3; --green-line: #abefc6;
  --amber: #b54708; --amber-dot: #f79009; --amber-soft: #fffaeb; --amber-line: #fedf89;
  --red: #d92d20; --red-soft: #fef3f2; --red-line: #fecdca;
  --blue-soft: #eff4ff;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 4px 12px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 20px 40px -8px rgba(16, 24, 40, .18), 0 6px 12px -4px rgba(16, 24, 40, .06);
  --radius: 10px;
  --radius-sm: 7px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0e12; --surface: #13161b; --surface-2: #181b21; --border: #262a32; --border-strong: #333843;
    --text: #f2f4f7; --text-2: #d0d5dd; --muted: #98a2b3; --faint: #667085;
    --green: #47cd89; --green-soft: #0b2a1c; --green-line: #14532d;
    --amber: #fdb022; --amber-soft: #2b1d05; --amber-line: #5c3b07;
    --red: #f97066; --red-soft: #2d1210; --red-line: #6b1d17;
    --blue-soft: #121a2e;
    --shadow-md: 0 4px 12px -2px rgba(0,0,0,.5); --shadow-lg: 0 20px 40px -8px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0e12; --surface: #13161b; --surface-2: #181b21; --border: #262a32; --border-strong: #333843;
  --text: #f2f4f7; --text-2: #d0d5dd; --muted: #98a2b3; --faint: #667085;
  --green: #47cd89; --green-soft: #0b2a1c; --green-line: #14532d;
  --amber: #fdb022; --amber-soft: #2b1d05; --amber-line: #5c3b07;
  --red: #f97066; --red-soft: #2d1210; --red-line: #6b1d17;
  --blue-soft: #121a2e;
  --shadow-md: 0 4px 12px -2px rgba(0,0,0,.5); --shadow-lg: 0 20px 40px -8px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
svg[aria-hidden] { width: 18px; height: 18px; flex: none; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
.num, .money { font-variant-numeric: tabular-nums; }
.money, span.num, b.num, div.num { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.small { font-size: 12.5px; } .tiny { font-size: 11.5px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ---------- מבנה ---------- */
.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-inline-end: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 16px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; }
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.brand-sub { font-size: 11.5px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-section { font-size: 11px; font-weight: 600; color: var(--faint); padding: 14px 10px 4px; letter-spacing: .02em; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--text-2); font-weight: 500;
  transition: background-color 120ms ease, color 120ms ease;
}
.nav a svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .nav a:hover { background: var(--surface-2); color: var(--text); } }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.nav a.active svg { color: var(--accent); }
.badge { margin-inline-start: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11.5px; font-weight: 600;
  display: inline-grid; place-items: center; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge.red { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.badge.amber { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.sidebar-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); cursor: pointer; width: 100%; background: none; border: 0; text-align: start; }
@media (hover: hover) and (pointer: fine) { .user-chip:hover { background: var(--surface-2); } }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--blue-soft); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 13px; flex: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--border); }
.page { padding: 8px 28px 48px; max-width: 1440px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 12px; margin: 10px 0 18px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 2px; }
.btn.menu-btn { display: none; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); font-weight: 500; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: transform 160ms var(--ease-out), background-color 120ms ease, border-color 120ms ease, opacity 120ms ease;
  user-select: none;
}
.btn svg { width: 16px; height: 16px; }
.btn:active:not(:disabled) { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover:not(:disabled) { background: var(--surface-2); } }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
@media (hover: hover) and (pointer: fine) { .btn.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 88%, black); } }
.btn.danger { color: var(--red); }
.btn.success { background: var(--green); border-color: var(--green); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .btn.ghost:hover:not(:disabled) { background: var(--surface-2); } }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.lg { height: 42px; padding: 0 18px; font-size: 15px; }
.btn.icon { width: 36px; padding: 0; }
.btn.sm.icon { width: 30px; }
.kbd { font-size: 11px; padding: 1px 5px; border-radius: 4px; border: 1px solid currentColor; opacity: .7; direction: ltr; }

/* ---------- טפסים ---------- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 500; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.input, select.input, textarea.input {
  height: 36px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); width: 100%;
  transition: border-color 120ms ease, box-shadow 120ms ease; outline: none;
}
textarea.input { height: auto; min-height: 70px; padding: 8px 10px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.ltr { direction: ltr; text-align: right; }
.input[readonly] { background: var(--surface-2); }
.field.warn .input { border-color: var(--amber-dot); background: var(--amber-soft); }
.field.err .input { border-color: var(--red); background: var(--red-soft); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.seg { display: inline-flex; padding: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { white-space: nowrap; border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; cursor: pointer; color: var(--muted); font-weight: 500; transition: background-color 120ms ease, color 120ms ease; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- כרטיסים וטבלאות ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; cursor: default; transition: border-color 120ms ease; }
a.stat { color: inherit; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { a.stat:hover { border-color: var(--border-strong); } }
.stat .k { font-size: 12.5px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.stat .k svg { width: 15px; height: 15px; }
.stat .v { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .s { font-size: 12.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; }
.t th { text-align: start; font-size: 12px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; position: sticky; top: 0; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr.click { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .t tbody tr.click:hover td { background: var(--surface-2); } }
.t td.n, .t th.n { text-align: left; }
.t tfoot td { font-weight: 600; background: var(--surface-2); border-top: 1px solid var(--border); }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 30px; height: 30px; color: var(--faint); margin-bottom: 6px; }
.empty .big { font-size: 15px; color: var(--text-2); font-weight: 500; margin-bottom: 4px; }

.pill svg { width: 13px; height: 13px; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 500;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.pill.green { background: var(--green-soft); color: var(--green); border-color: var(--green-line); }
.pill.amber { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-line); }
.pill.red { background: var(--red-soft); color: var(--red); border-color: var(--red-line); }
.pill.blue { background: var(--blue-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--faint); }
.dot.green { background: var(--green); } .dot.yellow { background: var(--amber-dot); } .dot.red { background: var(--red); }

/* ---------- סינון ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .input { width: auto; min-width: 140px; }
.search { position: relative; }
.search .input { padding-inline-start: 32px; min-width: 220px; }
.search svg { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 12px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- מסך אישור ---------- */
.review { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(400px, 0.85fr); gap: 16px; align-items: start; }
.viewer { position: sticky; top: 70px; height: calc(100vh - 90px); display: flex; flex-direction: column; overflow: hidden; }
.viewer-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.viewer-body { flex: 1; overflow: auto; background: var(--surface-2); display: grid; place-items: start center; }
.viewer-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.viewer-body .img-wrap { padding: 16px; transform-origin: top center; }
.viewer-body img { display: block; max-width: 100%; box-shadow: var(--shadow-md); background: #fff; transition: transform 200ms var(--ease-out); }
.form-panel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.form-panel > * { min-width: 0; }
details.reads { overflow: hidden; }
.flags { display: flex; flex-direction: column; gap: 6px; }
.flag { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13px; border: 1px solid; }
.flag svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.flag.red { background: var(--red-soft); border-color: var(--red-line); color: var(--red); }
.flag.yellow { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber); }
.flag.info { background: var(--blue-soft); border-color: transparent; color: var(--text-2); }
.flag button { margin-inline-start: auto; }
.agree { display: inline-flex; gap: 3px; margin-inline-start: auto; }
.agree i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-strong); }
.agree.s3 i { background: var(--green); }
.agree.s2 i:nth-child(-n+2) { background: var(--amber-dot); }
.agree.s1 i:first-child { background: var(--red); }
.alts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.alt { border: 1px dashed var(--border-strong); background: var(--surface); border-radius: 6px; padding: 1px 7px; font-size: 12px; cursor: pointer; color: var(--text-2);
  transition: transform 160ms var(--ease-out), border-color 120ms ease; }
.alt:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .alt:hover { border-color: var(--accent); color: var(--accent); } }
.alt .who { color: var(--faint); margin-inline-end: 4px; }
.sticky-actions { flex-wrap: wrap; position: sticky; bottom: 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); padding: 12px 0; display: flex; gap: 8px; align-items: center; border-top: 1px solid var(--border); }
.link-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.link-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.section-title { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin: 4px 0 -4px; }
details.reads summary { cursor: pointer; color: var(--muted); font-size: 13px; }
pre.transcript { white-space: pre-wrap; direction: rtl; font-family: var(--font); font-size: 12.5px; background: var(--surface-2); padding: 10px; border-radius: var(--radius-sm); max-height: 320px; overflow: auto; margin: 8px 0 0; }

/* ---------- רשימת ספקים / קומבו ---------- */
.combo { position: relative; }
.combo-list { position: absolute; z-index: 30; inset-inline: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); max-height: 260px; overflow-y: auto; padding: 4px; transform-origin: top center;
  animation: pop 140ms var(--ease-out); }
.combo-item { padding: 7px 9px; border-radius: 6px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.combo-item.on, .combo-item:hover { background: var(--surface-2); }
@keyframes pop { from { opacity: 0; transform: scale(0.97) translateY(-2px); } }

/* ---------- חלונות ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(16, 24, 40, .45); display: grid; place-items: center; padding: 16px;
  opacity: 0; transition: opacity 200ms var(--ease-out); }
.overlay.open { opacity: 1; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg);
  transform: scale(0.97); opacity: 0; transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out); }
.overlay.open .modal { transform: scale(1); opacity: 1; }
.overlay.closing { opacity: 0; transition-duration: 140ms; }
.overlay.closing .modal { transform: scale(0.98); opacity: 0; transition-duration: 140ms; }
.modal.wide { width: min(900px, 100%); }
.modal.xwide { width: min(1180px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-start; padding: 14px 20px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); }

.toasts { position: fixed; z-index: 200; bottom: 18px; inset-inline-start: 50%; transform: translateX(50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 500;
  display: flex; gap: 10px; align-items: center; max-width: min(520px, calc(100vw - 32px));
  transition: transform 260ms var(--ease-out), opacity 260ms var(--ease-out); }
.toast.enter { transform: translateY(16px); opacity: 0; }
.toast.leave { transform: translateY(8px); opacity: 0; transition-duration: 160ms; }
.toast.error { background: var(--red); color: #fff; }
.toast.ok svg { color: var(--green); }

/* ---------- העלאה ---------- */
.drop { border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 30px 16px; text-align: center; background: var(--surface-2); cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop svg { width: 30px; height: 30px; color: var(--muted); }
.file-list { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; }
.drag-veil { position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 3px dashed var(--accent);
  display: grid; place-items: center; font-size: 20px; font-weight: 600; color: var(--accent); pointer-events: none; opacity: 0; transition: opacity 120ms ease; }
.drag-veil.on { opacity: 1; }

.progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); transition: width 200ms ease; }
.spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 600ms linear infinite; display: inline-block; opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--border), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 6px; height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- כניסה ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(400px, 100%); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-card h1 { font-size: 21px; }

/* ---------- מטריצת הרשאות ---------- */
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.perm-group { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.perm-group h4 { font-size: 13px; color: var(--muted); display: flex; align-items: center; }

/* ---------- יתרות ---------- */
.matrix td.cell { text-align: left; cursor: pointer; }
.matrix td.cell.zero { color: var(--faint); cursor: default; }
.matrix td.cell.open { color: var(--red); font-weight: 500; }
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding-top: 10px; }
.bar-chart .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-chart .b i { width: 100%; max-width: 44px; background: var(--accent); border-radius: 5px 5px 2px 2px; min-height: 2px; opacity: .85; transition: height 400ms var(--ease-out); }
.bar-chart .b span { font-size: 11.5px; color: var(--muted); }

/* ---------- הודעת תשלום (הדפסה) ---------- */
.notice-paper { background: #fff; color: #101828; max-width: 780px; margin: 0 auto; padding: 40px 44px; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); }
.notice-paper h1 { font-size: 24px; }
.notice-paper table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.notice-paper th, .notice-paper td { padding: 9px 10px; border-bottom: 1px solid #e4e7ec; text-align: start; }
.notice-paper th { background: #f9fafb; font-size: 12.5px; color: #475467; }
.notice-paper .total td { font-weight: 700; font-size: 15px; border-top: 2px solid #101828; border-bottom: 0; }
@media print {
  body { background: #fff; }
  .sidebar, .topbar, .no-print, .toasts { display: none !important; }
  .app { display: block; }
  .page { padding: 0; max-width: none; }
  .notice-paper { border: 0; box-shadow: none; padding: 0; }
}

/* ---------- מסכים צרים ---------- */
@media (max-width: 1100px) {
  .review { grid-template-columns: minmax(0, 1fr); }
  .viewer { position: relative; top: 0; height: 60vh; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 80; width: 260px; transform: translateX(100%); transition: transform 260ms var(--ease-drawer, var(--ease-out)); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .btn.menu-btn { display: inline-flex; }
  .topbar { padding: 10px 16px; }
  .page { padding: 4px 16px 40px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .filters .input { min-width: 0; flex: 1 1 140px; }
  .search .input { min-width: 0; }
  .hide-sm { display: none !important; }
  .notice-paper { padding: 22px 14px; overflow-x: auto; }
  .notice-paper table { font-size: 12px; }
  .notice-paper th, .notice-paper td { padding: 7px 5px; }
  .notice-paper .row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
