/* עמוד הניהול */

.admin-page { background: #F6F7F3; }
.admin-main { padding: 36px 0 80px; }
.adm-card {
  margin-bottom: 22px;
  padding: 26px 26px 22px;
  border: 1px solid rgba(145, 186, 196, .35);
  border-radius: 20px;
  background: #FFFDF8;
  box-shadow: 0 4px 9px -5px #254b5f14, 0 18px 42px -18px #254b5f30;
}
.adm-card h2 { font-size: 1.25rem; margin-bottom: .6em; }
.adm-narrow { max-width: 520px; margin-inline: auto; }
.adm-sub { margin: 0 0 12px; color: #587985; font-size: .95rem; }

.adm-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.adm-head h1 { margin-bottom: .2em; font-size: clamp(2rem, 4vw, 2.6rem); }
.adm-range { display: inline-flex; padding: 4px; border: 1px solid rgba(145, 186, 196, .5); border-radius: 999px; background: #fff; }
.adm-range button {
  min-height: 38px;
  padding: 4px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #294D59;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.adm-range button[aria-pressed="true"] { background: #294D59; color: #FCFAF5; }
.adm-range button:focus-visible { outline: 3px solid #D9B24A; outline-offset: 2px; }

/* מספרים */
.adm-tiles { display: grid; gap: 14px; margin-bottom: 22px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 600px) {
  .adm-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .adm-tile { padding: 14px; }
  .adm-tile-value { font-size: 1.8rem; }
  .adm-tile:last-child { grid-column: 1 / -1; }
}
.adm-tile {
  padding: 18px 20px;
  border: 1px solid rgba(145, 186, 196, .35);
  border-radius: 18px;
  background: #FFFDF8;
  box-shadow: 0 4px 9px -5px #254b5f14, 0 14px 30px -18px #254b5f30;
}
.adm-tile-label { margin: 0 0 6px; color: #587985; font-weight: 600; font-size: .95rem; }
.adm-tile-value { margin: 0; color: #294D59; font-family: "Heebo", Arial, sans-serif; font-weight: 700; font-size: 2.2rem; line-height: 1.1; }
.adm-tile-delta { margin: 6px 0 0; color: #4C6873; font-size: .88rem; }

/* גרף */
.adm-chart { position: relative; }
.adm-chart svg { display: block; width: 100%; height: 240px; overflow: visible; }
.adm-chart .grid { stroke: #E3EAEB; stroke-width: 1; }
.adm-chart .base { stroke: #C7D4D7; stroke-width: 1; }
.adm-chart .tick { fill: #587985; font-family: "Assistant", Arial, sans-serif; font-size: 12px; font-variant-numeric: tabular-nums; }
.adm-chart .bar { fill: #3F7F8C; transition: fill .15s; }
.adm-chart .bar.is-hover { fill: #294D59; }
.adm-chart .hit { fill: transparent; cursor: default; }
.adm-tip {
  position: absolute;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 12px;
  background: #294D59;
  color: #FCFAF5;
  font-size: .9rem;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -110%);
  box-shadow: 0 10px 24px -12px #12303acc;
}
.adm-tip strong { font-family: "Heebo", Arial, sans-serif; }
.adm-empty { padding: 30px 0; color: #587985; text-align: center; }

.adm-table-view { margin-top: 12px; }
.adm-table-view summary { color: #294D59; font-weight: 700; cursor: pointer; }

/* טבלאות */
.adm-grid { display: grid; gap: 22px; }
.adm-grid .adm-card { margin-bottom: 0; }
.adm-grid { margin-bottom: 22px; }
.adm-scroll { overflow-x: auto; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.adm-table th, .adm-table td { padding: 9px 10px; border-bottom: 1px solid #E3EAEB; text-align: right; white-space: nowrap; }
.adm-table th { color: #587985; font-weight: 700; font-size: .88rem; }
.adm-table td.num, .adm-table th.num { text-align: left; font-variant-numeric: tabular-nums; }
.adm-table td.who { color: #294D59; font-weight: 600; }
.adm-table td.anon { color: #587985; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-share { display: inline-block; height: 6px; margin-inline-start: 8px; border-radius: 3px; background: #91BAC4; vertical-align: middle; }

@media (min-width: 900px) {
  .adm-grid { grid-template-columns: 1fr 1fr; }
}
