/* Webfont for consistent Hebrew + Latin */
@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@400;600;700;800;900&display=swap");

:root {
  --app-font: "Heebo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

html, body {
  font-family: var(--app-font);
}

/* Ensure header/footer inherit same family */
.pp-top, .pp-top *, .footer-note, .footer-note * {
  font-family: inherit;
}

/* Minimal, high-contrast, mobile-friendly */
:root { --fg:#111; --bg:#fff; --muted:#666; --border:#ddd; --ok:#0a7; --bad:#c33; }

* { box-sizing:border-box; }
html, body { margin:0; padding:0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color:var(--fg); background:var(--bg); }

.container { max-width: 980px; margin: 0 auto; padding: 14px; }
.header { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid var(--border); padding: 10px 0; margin-bottom: 12px; }
.h1 { font-size: 22px; font-weight: 800; margin:0; }
.small { color:var(--muted); font-size: 14px; }

.btn {
  appearance:none; border:1px solid var(--border); background:#f7f7f7;
  padding: 14px 16px; border-radius: 12px; font-size: 18px; font-weight:700;
  cursor:pointer; width:100%;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background:#111; color:#fff; border-color:#111; }
.btn.danger { background:#ffecec; border-color:#f1b0b0; }
.btn.row { width:auto; padding: 10px 12px; font-size: 16px; }

.grid { display:grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 680px) { .grid.cols2 { grid-template-columns: 1fr 1fr; } }

.card { border:1px solid var(--border); border-radius: 14px; padding: 14px; background:#fff; }
.kpi { display:flex; gap: 10px; align-items:baseline; }
.kpi .num { font-size: 34px; font-weight:900; }
.kpi .label { color:var(--muted); }
.table { width:100%; border-collapse: collapse; }
.table th, .table td { border-bottom:1px solid var(--border); padding: 10px 8px; text-align:right; vertical-align: top; }
.table th { font-size: 14px; color: var(--muted); font-weight: 800; }
.badge { display:inline-block; padding: 4px 8px; border-radius: 999px; border:1px solid var(--border); font-size: 12px; }
.badge.ok { border-color: #bfe8d7; background:#e9fff6; }
.badge.bad { border-color:#f1b0b0; background:#ffecec; }

.item { display:flex; gap: 10px; align-items:flex-start; justify-content:space-between; padding: 12px; border:1px solid var(--border); border-radius: 14px; }
.item.packed { background:#e9fff6; border-color:#bfe8d7; }
.item .title { font-size: 18px; font-weight:900; margin:0 0 4px; }
.item .meta { font-size: 14px; color: var(--muted); }
.item .right { min-width: 140px; }

input, select, textarea {
  width:100%; padding: 12px; border:1px solid var(--border); border-radius: 12px;
  font-size: 18px;
}

label { display:block; font-weight:800; margin: 10px 0 6px; }
hr { border:0; border-top:1px solid var(--border); margin: 14px 0; }

@media print {
  .no-print { display:none !important; }
  .container { max-width:none; }
  body { background:#fff; }
  .card { border:none; }
}

/* --- Branding helpers (logos in header) --- */
.header.header--branded { position: relative; padding-left: 76px; padding-right: 76px; }
.brand-logo-left,
.brand-logo-right{
  position: absolute;
  top: 10px;
  width: 52px;
  height: auto;
  opacity: 0.95;
}
.brand-logo-left { left: 12px; }
.brand-logo-right { right: 12px; }
@media (max-width: 420px){
  .header.header--branded { padding-left: 64px; padding-right: 64px; }
  .brand-logo-left, .brand-logo-right { width: 44px; }
}
.footer-note {
  margin-top: 14px;
  color: #777;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}
.footer-note a { color: inherit; text-decoration: none; }

/* Print header with tenant logo */
.print-brand { display:flex; align-items:center; justify-content:space-between; gap:12px; margin: 6px 0 12px; }
.print-brand .tenant-logo { height: 42px; width:auto; }
.print-brand .title { font-weight: 900; font-size: 18px; }

.powered-by{margin-top:6px;opacity:0.55;font-size:12px;}

/* Patch: template header + breadcrumbs (no em-dash) */
.pp-top { border-bottom:1px solid var(--border); padding: 10px 0 12px; margin-bottom: 10px; }
.pp-top-grid {
  display:grid;
  grid-template-columns: 56px 1fr 56px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "vendor system tenantlogo"
    "domain tenant .";
  align-items:center;
  gap: 6px 10px;
}
.pp-vendor { grid-area: vendor; display:flex; align-items:center; justify-content:flex-start; }
.pp-vendor-logo { width: 34px; height:auto; opacity:0.95; }
.pp-system { grid-area: system; text-align:center; }
.pp-system-title { font-size: 20px; font-weight: 900; line-height: 1.2; }
.pp-tenant-logo-wrap { grid-area: tenantlogo; display:flex; align-items:center; justify-content:flex-end; }
.pp-tenant-logo { width: 44px; height:auto; opacity:0.95; }

.pp-domain { grid-area: domain; text-align:left; font-size: 14px; color: var(--muted); }
.pp-tenant { grid-area: tenant; text-align:center; font-size: 14px; color: var(--muted); }
.pp-tenant-label { opacity: 0.65; }

.pp-nav { display:flex; flex-direction:column; gap:8px; margin-bottom: 12px; }
.pp-bc { font-size: 14px; color: var(--muted); }
.pp-bc a { color: inherit; text-decoration:none; border-bottom: 1px dotted rgba(0,0,0,0.25); }
.pp-bc a:hover { border-bottom-style: solid; }
.pp-bc-sep { margin: 0 6px; opacity: 0.55; }
.pp-bc-current { color: var(--fg); font-weight: 800; }

.pp-links { display:flex; flex-wrap:wrap; gap:8px; }
.pp-page-title { font-size: 18px; font-weight: 900; margin: 10px 0 10px; }

@media (max-width: 420px){
  .pp-system-title { font-size: 18px; }
  .pp-vendor-logo { width: 30px; }
  .pp-tenant-logo { width: 40px; }
}

/* Patch: header typography inherit from base (same family as footer) */
.pp-top, .pp-top * { font-family: inherit; }

/* Slightly unify text sizes in header lines */
.pp-domain, .pp-tenant { font-size: 13px; }
.pp-system-title { font-size: 20px; }

/* vendor logo smaller */
.pp-vendor-logo { width: 28px; }
