:root {
  --bg: #f4f6f9; --panel: #ffffff; --ink: #172234; --muted: #66748a; --line: #e2e7ee; --soft: #f7f9fc;
  --navy: #14294a; --navy2: #1d3a66; --accent: #2563eb; --accent-soft: #e8f0fe;
  --ok: #15803d; --ok-soft: #e7f6ec; --warn: #b45309; --warn-soft: #fdf3e2; --bad: #b91c1c; --bad-soft: #fdeaea;
  --legal: #6d28d9; --legal-soft: #f1eafd; --gray-soft: #eef1f5;
  --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  font-family: "Segoe UI", "Rubik", "Arial Hebrew", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; }
.hidden { display: none !important; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 0; } h2 { font-size: 17px; margin: 0 0 10px; } h3 { font-size: 15px; margin: 0 0 8px; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; direction: ltr; unicode-bidi: isolate; display: inline-block; }
.neg { color: var(--bad); }

/* מבנה */
.shell { display: flex; min-height: 100vh; }
.nav { width: 230px; background: var(--navy); color: #dbe4f3; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; flex-shrink: 0; }
.brand { display: flex; gap: 10px; align-items: center; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand b { color: #fff; font-size: 16px; display: block; } .brand small { color: #9fb0cc; }
.logo { width: 34px; height: 34px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
#menu { flex: 1; overflow-y: auto; padding: 8px; }
#menu a { display: flex; justify-content: space-between; align-items: center; color: #cfd9ea; padding: 9px 12px; border-radius: 8px; margin-bottom: 2px; }
#menu a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
#menu a.active { background: var(--navy2); color: #fff; font-weight: 600; }
#menu .count { background: rgba(255,255,255,.14); border-radius: 10px; padding: 0 7px; font-size: 11px; }
.nav-foot { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; font-size: 12px; }
.nav-foot .link { color: #9fb0cc; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.search { position: relative; flex: 1; max-width: 640px; }
.search input { width: 100%; }
.search-results { position: absolute; top: 40px; right: 0; left: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 420px; overflow: auto; }
.search-results a { display: flex; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.search-results a:hover { background: var(--soft); text-decoration: none; }
.view { padding: 20px; max-width: 1500px; width: 100%; }
.icon-btn { border: 0; background: transparent; font-size: 18px; cursor: pointer; color: inherit; padding: 4px 8px; }
#menuToggle { display: none; }

/* רכיבים */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); gap: 8px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); border-top: 3px solid var(--accent); display: block; color: inherit; }
a.kpi:hover { text-decoration: none; border-color: var(--accent); }
.kpi .label { color: var(--muted); font-size: 12px; } .kpi .value { font-size: 21px; font-weight: 700; margin-top: 6px; } .kpi .hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.kpi.ok { border-top-color: var(--ok); } .kpi.warn { border-top-color: var(--warn); } .kpi.bad { border-top-color: var(--bad); } .kpi.legal { border-top-color: var(--legal); } .kpi.gray { border-top-color: #94a3b8; }
.summary-strip { display: flex; gap: 22px; flex-wrap: wrap; padding: 12px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
.summary-strip div span { display: block; font-size: 11px; color: var(--muted); } .summary-strip div b { font-size: 15px; }

button, .btn { font: inherit; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; padding: 7px 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
button:hover, .btn:hover { border-color: #b8c3d3; text-decoration: none; }
.primary { background: var(--accent); color: #fff; border-color: var(--accent); } .primary:hover { background: #1d4ed8; }
.danger { color: var(--bad); } .sm { padding: 4px 9px; font-size: 12px; }
.link { border: 0; background: none; color: var(--accent); padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: var(--panel); color: var(--ink); min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { width: 100%; min-height: 80px; resize: vertical; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
label.f > input, label.f > select, label.f > textarea { color: var(--ink); font-size: 14px; }
label.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; }
.form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.form .wide { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; justify-content: flex-start; margin-top: 16px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin: 0; } legend { color: var(--muted); font-size: 12px; padding: 0 6px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.filters input[type=search] { min-width: 220px; }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { background: var(--soft); color: var(--muted); font-weight: 600; font-size: 12px; text-align: right; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; position: sticky; top: 0; }
.t th.sorted::after { content: ' ▾'; } .t th.sorted.asc::after { content: ' ▴'; }
.t td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.t tr:hover td { background: #fafbfd; }
.t tfoot td { font-weight: 700; background: var(--soft); }
.t .row-link { cursor: pointer; }
.empty { padding: 30px; text-align: center; color: var(--muted); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; background: var(--gray-soft); color: #475569; white-space: nowrap; }
.b-ok { background: var(--ok-soft); color: var(--ok); } .b-warn { background: var(--warn-soft); color: var(--warn); } .b-bad { background: var(--bad-soft); color: var(--bad); }
.b-legal { background: var(--legal-soft); color: var(--legal); } .b-info { background: var(--accent-soft); color: var(--accent); }
.stage { display: flex; gap: 3px; } .stage i { width: 16px; height: 6px; border-radius: 3px; background: var(--line); } .stage i.on { background: var(--accent); } .stage i.done { background: var(--ok); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 10px 14px; color: var(--muted); }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

.task { display: grid; grid-template-columns: 6px 1fr auto; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.task .bar { align-self: stretch; border-radius: 3px; background: var(--accent); }
.task.p1 .bar { background: var(--bad); } .task.p2 .bar { background: var(--warn); } .task.p3 .bar { background: var(--accent); } .task.p4 .bar { background: #94a3b8; }
.task .t1 { font-weight: 600; } .task .t2 { color: var(--muted); font-size: 13px; margin-top: 2px; }
.task .ops { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.task.hiddenTask { opacity: .55; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.timeline .when { color: var(--muted); font-size: 12px; } .timeline .what { white-space: pre-wrap; }
.timeline .meta { color: var(--muted); font-size: 12px; margin-top: 4px; }

.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px 18px; }
.kv div span { display: block; color: var(--muted); font-size: 12px; } .kv div b { font-weight: 600; }
.notice { padding: 10px 14px; border-radius: 8px; background: var(--accent-soft); color: #1e3a8a; margin-bottom: 14px; font-size: 13px; }
.notice.warn { background: var(--warn-soft); color: #7c2d12; } .notice.bad { background: var(--bad-soft); color: #7f1d1d; }
.chart-box { position: relative; height: 280px; }

.modal { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-box { background: var(--panel); border-radius: 12px; width: min(820px, 100%); max-height: 92vh; overflow: auto; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); z-index: 1; }
.modal-head h3 { margin: 0; } #modalBody { padding: 18px; }
.toast { position: fixed; bottom: 20px; left: 20px; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: 420px; }
.toast.err { background: var(--bad); }

.auth { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy), #24508f); padding: 16px; }
.auth .box { background: var(--panel); border-radius: 14px; padding: 28px; width: min(400px, 100%); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.auth h1 { margin-bottom: 4px; } .auth .form { grid-template-columns: 1fr; margin-top: 16px; }

.imp-row.low td { background: var(--bad-soft); } .imp-row.medium td { background: var(--warn-soft); } .imp-row.off td { opacity: .45; }
.imp-row input, .imp-row select { padding: 4px 6px; font-size: 13px; width: 100%; }

@media (max-width: 900px) {
  .nav { position: fixed; right: 0; z-index: 40; transform: translateX(100%); transition: transform .2s; }
  .nav.open { transform: none; box-shadow: -8px 0 30px rgba(0,0,0,.3); }
  #menuToggle { display: inline-block; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .view { padding: 12px; }
  .top { padding: 8px 12px; } #todayBox { display: none; }
  .task { grid-template-columns: 6px 1fr; } .task .ops { grid-column: 2; justify-content: flex-start; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .kpi .value { font-size: 18px; }
}
@media print { .nav, .top, .actions, .filters, .task .ops { display: none !important; } .view { padding: 0; } .card { box-shadow: none; } }
.imp-t { min-width: 1500px; } .imp-t td:nth-child(3) { min-width: 200px; } .imp-t td:last-child { min-width: 260px; }

/* גרסה פשוטה */
.kpis.big { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.kpis.big .kpi .value { font-size: 26px; }
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; align-items: flex-start; }
.big-btn { padding: 11px 18px; font-size: 15px; border-radius: 10px; }
details.more { position: relative; } details.more > summary { list-style: none; cursor: pointer; } details.more > summary::-webkit-details-marker { display: none; }
.more-menu { position: absolute; top: 48px; left: 0; z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); min-width: 230px; padding: 6px; display: flex; flex-direction: column; }
.more-menu a, .more-menu button { border: 0; background: none; text-align: right; padding: 9px 12px; border-radius: 8px; color: var(--ink); font: inherit; cursor: pointer; }
.more-menu a:hover, .more-menu button:hover { background: var(--soft); text-decoration: none; }
details.card > summary { cursor: pointer; }
.notice.ok-notice { background: var(--ok-soft); color: #14532d; }
.menu-sep { display: block; width: 100%; text-align: right; background: none; border: 0; color: #9fb0cc; padding: 14px 12px 6px; font-size: 12px; cursor: pointer; }
.menu-sep:hover { color: #fff; }
.task { grid-template-columns: 6px 1fr; }
.task .ops { grid-column: 2; justify-content: flex-start; }
/* מודול בדק ואחריות */
.submenu { margin: -2px 14px 6px 0; border-right: 2px solid rgba(255,255,255,.12); padding-right: 6px; }
.submenu a { padding: 6px 10px !important; font-size: 13px; color: #b9c6dc !important; }
.submenu a.active { background: rgba(255,255,255,.1) !important; color: #fff !important; }
.wform label.uncertain > input, .wform label.uncertain > select, .wform label.uncertain > textarea { border-color: #f59e0b; background: #fffbeb; }
.wform label.uncertain::after { content: 'לבדיקה – זוהה בוודאות חלקית'; color: var(--warn); font-size: 11px; }
.wform label.missing > input, .wform label.missing > select, .wform label.missing > textarea { border-color: #ef4444; background: #fef2f2; }
.wform label.missing::after { content: 'לא נמצא במסמך – להשלמה'; color: var(--bad); font-size: 11px; }
.uncertain-demo { background: #fffbeb; border: 1px solid #f59e0b; padding: 0 6px; border-radius: 4px; }
.pdftext { white-space: pre-wrap; font-size: 12px; max-height: 360px; overflow: auto; background: var(--soft); padding: 10px; border-radius: 8px; direction: rtl; }
.wgal { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.wph { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--soft); color: inherit; }
.wph img { width: 100%; height: 110px; object-fit: cover; display: block; }
.wph span { display: block; padding: 4px 6px; font-size: 11px; }
.wdocs { list-style: none; padding: 0; margin: 10px 0 0; } .wdocs li { padding: 4px 0; }
.field-actions { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 16px; }
.field-actions button { background: var(--soft); }
.calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-h { padding: 8px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); text-align: center; }
.cal-d { min-height: 96px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 4px; }
.cal-d.today { background: var(--accent-soft); } .cal-d.other { background: #fafbfd; color: #aab; }
.cal-n { font-size: 12px; color: var(--muted); }
.vchip { display: block; background: #eef4ff; border-right: 3px solid var(--accent); border-radius: 6px; padding: 3px 6px; margin: 3px 0; font-size: 11px; color: var(--ink); }
.vchip.done { background: var(--ok-soft); border-color: var(--ok); }
.vchip span { color: var(--muted); } .vchip select { font-size: 11px; padding: 1px 4px; width: 100%; margin-top: 2px; }
.plan td { min-width: 120px; } .plan td.over { background: var(--bad-soft); }
.sug { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.job-card .jt { font-size: 15px; margin-bottom: 4px; } .job-card .jl { margin: 4px 0; } .job-card .jl.big { font-size: 18px; font-weight: 700; }
.job-card.done { opacity: .7; }
.sign-card { border: 2px solid var(--accent); }
.conf-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; font-size: 15px; cursor: pointer; }
.conf-row input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.sig-wrap { position: relative; margin: 10px 0; }
.sig-wrap canvas { width: 100%; height: 200px; border: 2px dashed #94a3b8; border-radius: 12px; background: #fff; display: block; }
.sig-wrap button { position: absolute; top: 8px; left: 8px; }
body.sign-page { background: var(--bg); }
@media (max-width: 900px) { .calgrid { grid-template-columns: 1fr; } .cal-h { display: none; } .cal-d { min-height: 0; } .cal-d:not(:has(.vchip)) { display: none; } .sug { flex-direction: column; align-items: flex-start; } }

.steps { margin: 6px 0 12px; padding-right: 20px; line-height: 1.9; }

/* הפקת חשבונות */
.wsteps { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.wsteps span { padding: 6px 12px; border-radius: 20px; background: var(--gray-soft); color: var(--muted); font-size: 13px; }
.wsteps span.on { background: var(--accent); color: #fff; font-weight: 600; } .wsteps span.done { background: var(--ok-soft); color: var(--ok); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px; border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; background: var(--soft); }
.drop.over, .drop:hover { border-color: var(--accent); background: var(--accent-soft); } .drop b { font-size: 16px; }
.form.map { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.opts { display: flex; flex-direction: column; gap: 8px; }
table.compact td, table.compact th { padding: 5px 7px; font-size: 12.5px; }
table.compact input:not([type=checkbox]) { padding: 3px 6px; font-size: 12.5px; width: 85px; }
table.lines td input.nt { width: 130px; }
table.edit input, table.edit select { padding: 4px 6px; font-size: 13px; }
table.hist input { padding: 3px 6px; font-size: 13px; width: 120px; }
tr.r-off td { opacity: .45; } tr.r-warn td { background: #fffbeb; } tr.r-bad td { background: #fef2f2; } tr.r-sum td { background: var(--soft); font-weight: 600; } tr.r-cur td { background: var(--accent-soft); }
.ck-error { color: var(--bad); } .ck-warn { color: var(--warn); } .ck-info { color: var(--muted); }
.totbar { display: flex; flex-wrap: wrap; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; position: sticky; top: 58px; z-index: 10; box-shadow: var(--shadow); overflow: hidden; }
.totbar div { padding: 8px 14px; border-left: 1px solid var(--line); } .totbar span { display: block; font-size: 11px; color: var(--muted); } .totbar b { font-size: 15px; }
.totbar div.b { background: var(--soft); } .totbar div.g { background: var(--navy); color: #fff; } .totbar div.g span { color: #cfd9ea; }
.chk-card summary { cursor: pointer; } .chk-card .notice { margin: 6px 0 0; }
.steps-help li { margin: 4px 0; } .logo-prev { max-height: 90px; max-width: 260px; border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: block; margin-bottom: 10px; }
.ok-t { color: var(--ok); } .nowrap { white-space: nowrap; } button.link { background: none; border: 0; color: var(--accent); padding: 0 4px; }

.totbar div.p { background: var(--ok-soft); } .totbar div.p b { color: var(--ok); }

/* ===================== מראה בסגנון SAP Fiori ===================== */
:root {
  --bg: #f5f6f7; --panel: #ffffff; --ink: #1d2d3e; --muted: #556b82; --line: #e5e9ee; --soft: #f5f6f7;
  --navy: #1d2d3e; --navy2: #2b4257; --accent: #0070f2; --accent-soft: #ebf5fe;
  --radius: 12px; --shadow: 0 0 2px rgba(34,53,72,.12), 0 2px 4px rgba(34,53,72,.10);
  font-family: "Segoe UI", "72", "Rubik", Arial, sans-serif;
}
body { font-size: 14px; }
.top { background: #fff; box-shadow: 0 1px 0 var(--line), 0 2px 6px rgba(34,53,72,.06); border-bottom: 0; min-height: 52px; }
.search input { border-radius: 18px; background: #f2f4f6; border-color: transparent; padding-inline: 16px; }
.search input:focus { background: #fff; border-color: var(--accent); }
.nav { width: 248px; background: var(--navy); }
.brand { padding: 16px; } .brand .logo { background: var(--accent); border-radius: 10px; }
#menu a { color: #d6e0ea; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; }
#menu a.home { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
#menu a.active { background: var(--accent); color: #fff; }
.ngroup { margin-bottom: 4px; }
.ghead { width: 100%; display: flex; align-items: center; gap: 8px; background: transparent; border: 0; color: #fff; font-weight: 600; font-size: 14px; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.ghead:hover { background: rgba(255,255,255,.07); }
.ghead .gi { width: 22px; text-align: center; opacity: .9; } .ghead .gc { margin-inline-start: auto; opacity: .6; font-size: 11px; }
.ngroup.cur > .ghead { background: rgba(255,255,255,.06); }
.gitems { padding: 2px 0 6px; border-inline-start: 2px solid rgba(255,255,255,.12); margin-inline-start: 22px; }
.gitems a { margin-inline-start: 6px; }
#menu .count.warn { background: #e9730c; color: #fff; }
.view { padding: 24px 28px; }
.page-head h1 { font-size: 24px; font-weight: 700; }
.card { border: 0; box-shadow: var(--shadow); border-radius: var(--radius); }
.kpi { border: 0; box-shadow: var(--shadow); border-top: 4px solid var(--accent); border-radius: var(--radius); }
.t th { background: #f5f6f7; color: #475e75; font-size: 12.5px; }
.t td { padding: 10px; } .t tr:hover td { background: #f2f8ff; }
button, .btn { border-radius: 8px; border-color: #bcc3ca; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover, .btn.primary:hover { background: #0064d9; }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.submenu { display: none; } /* תתי-תפריטים ישנים – הוחלפו בקבוצות */

/* מסך בית – אריחים */
.lp-head { margin-bottom: 18px; } .lp-head h1 { font-size: 26px; } .lp-head .sub { color: var(--muted); margin-top: 4px; }
.lp-alert { display: block; background: #fff4e5; color: #8a4a00; border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; box-shadow: var(--shadow); font-weight: 600; }
.lp-alert:hover { text-decoration: none; background: #ffecd1; }
.lp-group { margin-bottom: 26px; } .lp-group h2 { font-size: 16px; color: #1d2d3e; margin: 0 0 12px; font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 176px)); gap: 14px; }
.tile { height: 176px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 0 2px rgba(34,53,72,.15), 0 8px 16px rgba(34,53,72,.15); }
.tile .tt { font-size: 15px; font-weight: 700; line-height: 1.3; } .tile .ts { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.tile .tf { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; }
.tile .ti { font-size: 24px; color: #7a8ea3; } .tile .tn { font-size: 24px; font-weight: 300; color: var(--accent); direction: ltr; white-space: nowrap; }
.tile.hot .tn { color: #e9730c; font-weight: 600; }
.tile.accent { background: var(--accent); color: #fff; } .tile.accent .ts, .tile.accent .ti { color: #dbeeff; }
@media (max-width: 700px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile { height: 150px; } .view { padding: 14px; } }

/* כניסה והרשמה */
.auth { background: linear-gradient(160deg, #1d2d3e 0%, #2b4257 55%, #0070f2 140%); }
.auth .box { border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.auth-logo { width: 52px; height: 52px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.auth-alt { margin-top: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.card.pend { box-shadow: 0 0 0 2px #e9730c, var(--shadow); }

tr.r-total td { background: var(--navy); color: #fff; font-weight: 700; } tr.r-ded td { background: var(--soft); font-weight: 600; } tr.r-part td { color: var(--muted); font-size: 12px; padding-top: 4px; padding-bottom: 4px; } tr.r-total a, tr.r-ded a { color: var(--accent); }
