/* GR_UI_V1 - one design language for every screen of the systems (the owner, 2026-10-18: "אותה שפה לאורך כל המערכת,
   אותם כפתורים אותם פונטים אותו סט צבעים", "בכל מקום"). One file, the same copy in every system. Every class starts with
   gr- so it does not touch a screen's own styles until that screen is moved to it.
   Button texts are fixed too (see the sample page): the same action has the same words everywhere. */

/* GR_UI_FONT_V1: Heebo (Google Fonts, OFL), served by us so every device shows the same letters */
@font-face{font-family:'Heebo';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/Heebo-400-hebrew.woff2) format('woff2');unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;}
@font-face{font-family:'Heebo';font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/Heebo-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Heebo';font-style:normal;font-weight:600;font-display:swap;src:url(/static/fonts/Heebo-600-hebrew.woff2) format('woff2');unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;}
@font-face{font-family:'Heebo';font-style:normal;font-weight:600;font-display:swap;src:url(/static/fonts/Heebo-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Heebo';font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/Heebo-700-hebrew.woff2) format('woff2');unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;}
@font-face{font-family:'Heebo';font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/Heebo-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Heebo';font-style:normal;font-weight:800;font-display:swap;src:url(/static/fonts/Heebo-800-hebrew.woff2) format('woff2');unicode-range:U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;}
@font-face{font-family:'Heebo';font-style:normal;font-weight:800;font-display:swap;src:url(/static/fonts/Heebo-800-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  /* colours */
  --gr-text: #17202a;        /* main text */
  --gr-muted: #667085;       /* secondary text, labels */
  --gr-line: #e1e6ef;        /* borders, separators */
  --gr-field-line: #cfd7e5;  /* borders of inputs */
  --gr-bg: #f4f6f8;          /* page background */
  --gr-card: #ffffff;        /* cards, tables */
  --gr-soft: #f8fafc;        /* soft panels, table heads */

  --gr-primary: #1d4ed8;     /* the main action, links, selected */
  --gr-primary-bg: #e6f0ff;
  --gr-dark: #17243f;        /* "פתיחה", the top bar */
  --gr-success: #067647;     /* approve, done */
  --gr-success-solid: #12b76a;
  --gr-success-bg: #dcfae6;
  --gr-warning: #93370d;     /* waiting, needs a look */
  --gr-warning-bg: #fef0c7;
  --gr-danger: #b42318;      /* reject, delete, error */
  --gr-danger-bg: #fee4e2;
  --gr-share: #0b6b3a;       /* "שיתוף הקובץ" (WhatsApp green family) */
  --gr-share-line: #25d366;
  --gr-share-bg: #e7fbef;

  /* type */
  --gr-font: "Heebo", Arial, sans-serif;  /* GR_UI_FONT_V1: his choice 18/10 ("הולך עם ההמלצה") */
  --gr-mono: Consolas, "Courier New", monospace;
  --gr-size-s: 13px;   /* notes, meta */
  --gr-size: 16px;     /* body, buttons, fields */
  --gr-size-l: 18px;   /* card titles */
  --gr-size-h2: 20px;
  --gr-size-h1: 24px;

  /* shape */
  --gr-r-field: 8px;
  --gr-r-btn: 10px;
  --gr-r-card: 14px;
  --gr-r-pill: 999px;
  --gr-gap: 12px;
  --gr-touch: 44px;    /* minimum height of anything tapped */
}

/* page */
.gr-page { margin: 0; background: var(--gr-bg); color: var(--gr-text); font: var(--gr-size)/1.45 var(--gr-font); }
.gr-wrap { max-width: 1200px; margin: 0 auto; padding: 14px 16px 40px; }
.gr-head { display: flex; justify-content: space-between; align-items: center; gap: var(--gr-gap); flex-wrap: wrap; margin-bottom: 14px; }
.gr-h1 { font-size: var(--gr-size-h1); font-weight: 800; margin: 0; }
.gr-h2 { font-size: var(--gr-size-h2); font-weight: 800; margin: 0 0 10px; }
.gr-sub { color: var(--gr-muted); font-size: var(--gr-size-s); margin-top: 3px; line-height: 1.5; }
.gr-muted { color: var(--gr-muted); }
.gr-num { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }

/* buttons */
.gr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--gr-touch); padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--gr-r-btn); font: 800 var(--gr-size) var(--gr-font); cursor: pointer;
  text-decoration: none; white-space: nowrap; background: var(--gr-primary); color: #fff; }
.gr-btn:disabled, .gr-btn[aria-disabled="true"] { opacity: .5; cursor: default; }
.gr-btn:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.gr-btn.secondary { background: #fff; color: var(--gr-text); border-color: var(--gr-line); }
.gr-btn.success { background: var(--gr-success); color: #fff; }
.gr-btn.danger { background: #fff; color: var(--gr-danger); border-color: #f3b4ae; }
.gr-btn.danger-solid { background: var(--gr-danger); color: #fff; }
.gr-btn.open { background: var(--gr-dark); color: #fff; }
.gr-btn.share { background: var(--gr-share-bg); color: var(--gr-share); border-color: var(--gr-share-line); }
.gr-btn.ghost { background: transparent; color: var(--gr-primary); border-color: transparent; padding: 0 8px; }
.gr-btn.small { min-height: 34px; padding: 0 12px; font-size: 14px; }
.gr-btn.block { width: 100%; }
.gr-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* cards, panels */
.gr-card { background: var(--gr-card); border: 1px solid var(--gr-line); border-radius: var(--gr-r-card); padding: 14px; margin-bottom: var(--gr-gap); }
.gr-card-title { font-size: var(--gr-size-l); font-weight: 800; }
.gr-note { background: var(--gr-soft); border: 1px solid var(--gr-line); border-radius: var(--gr-r-btn); padding: 10px 12px; white-space: pre-wrap; }
.gr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: var(--gr-gap); }
.gr-stat { background: var(--gr-card); border: 1px solid var(--gr-line); border-radius: 12px; padding: 12px; }
.gr-stat .k { color: var(--gr-muted); font-size: var(--gr-size-s); }
.gr-stat .v { font-size: 22px; font-weight: 800; margin-top: 4px; }

/* chips (status) */
.gr-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--gr-r-pill); font-size: var(--gr-size-s); font-weight: 800;
  background: #eef2f6; color: var(--gr-muted); white-space: nowrap; align-self: center; line-height: 1.4; height: auto; }
.gr-chip.primary { background: var(--gr-primary-bg); color: var(--gr-primary); }
.gr-chip.success { background: var(--gr-success-bg); color: var(--gr-success); }
.gr-chip.warning { background: var(--gr-warning-bg); color: var(--gr-warning); }
.gr-chip.danger { background: var(--gr-danger-bg); color: var(--gr-danger); }

/* messages */
.gr-alert { border-radius: var(--gr-r-btn); padding: 10px 12px; margin-bottom: var(--gr-gap); font-weight: 700; border: 1px solid transparent; }
.gr-alert.info { background: var(--gr-primary-bg); color: var(--gr-primary); }
.gr-alert.success { background: var(--gr-success-bg); color: var(--gr-success); }
.gr-alert.warning { background: var(--gr-warning-bg); color: var(--gr-warning); }
.gr-alert.danger { background: var(--gr-danger-bg); color: var(--gr-danger); }
.gr-empty { color: var(--gr-muted); text-align: center; padding: 40px 10px; }

/* fields */
.gr-field { display: flex; flex-direction: column; gap: 4px; font-size: var(--gr-size-s); font-weight: 700; color: var(--gr-muted); }
.gr-input, .gr-select, .gr-textarea { min-height: var(--gr-touch); padding: 8px 10px; border: 1px solid var(--gr-field-line); border-radius: var(--gr-r-field);
  font: var(--gr-size) var(--gr-font); color: var(--gr-text); background: #fff; box-sizing: border-box; }
.gr-textarea { min-height: 90px; resize: vertical; }
.gr-input:focus, .gr-select:focus, .gr-textarea:focus { outline: 2px solid #93c5fd; border-color: var(--gr-primary); }
.gr-bar { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: var(--gr-gap); }

/* tabs */
.gr-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--gr-gap); }
.gr-tab { min-height: 40px; padding: 0 14px; border: 1px solid var(--gr-line); border-radius: var(--gr-r-btn); background: #fff; color: var(--gr-text);
  font: 700 var(--gr-size) var(--gr-font); cursor: pointer; }
.gr-tab.on { background: var(--gr-text); color: #fff; border-color: var(--gr-text); }
.gr-tab .count { display: inline-block; min-width: 20px; margin-inline-start: 6px; padding: 0 6px; border-radius: var(--gr-r-pill); background: var(--gr-danger-bg);
  color: var(--gr-danger); font-size: var(--gr-size-s); }

/* tables */
.gr-table-wrap { background: var(--gr-card); border: 1px solid var(--gr-line); border-radius: var(--gr-r-card); overflow: auto; }
.gr-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gr-table th, .gr-table td { padding: 8px 10px; border-bottom: 1px solid var(--gr-line); text-align: right; vertical-align: middle; }
.gr-table th { background: var(--gr-soft); color: var(--gr-muted); font-size: var(--gr-size-s); font-weight: 700; position: sticky; top: 0; }
.gr-table tr:last-child td { border-bottom: 0; }

/* phone */
@media (max-width: 760px) {
  .gr-wrap { padding: 10px 12px 32px; }
  .gr-h1 { font-size: 21px; }
  .gr-actions .gr-btn { flex: 1 1 140px; }
  .gr-table.cards thead { display: none; }
  .gr-table.cards tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; padding: 8px 10px; border-bottom: 1px solid var(--gr-line); }
  .gr-table.cards td { border: 0; padding: 2px 0; }
  .gr-table.cards td[data-l]::before { content: attr(data-l) ": "; color: var(--gr-muted); font-size: var(--gr-size-s); }
  .gr-table.cards td.wide { grid-column: 1 / -1; font-weight: 700; }
}
@media print { .gr-page { background: #fff; } .gr-actions, .gr-bar, .gr-tabs { display: none !important; } }
