/* פאנל הניהול - נשען על משתני העיצוב של styles.css */

.login { display: grid; place-items: center; padding: clamp(40px, 12vh, 110px) 20px; }
.login-card {
  width: min(94vw, 380px);
  display: grid;
  gap: 14px;
  border: 1px solid var(--ink);
  background: #fff;
  padding: 28px;
}
.login-card h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.login-error { color: var(--stamp); font-size: 13.5px; min-height: 18px; }

.dash {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(24px, 5vh, 44px) clamp(16px, 5vw, 56px) 80px;
  display: grid;
  gap: 34px;
}

.dash .panel { border-top: 1px solid var(--ink); padding-top: 18px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border: 1px solid var(--ink); background: #fff; }
.card { padding: 16px 18px; border-inline-start: 1px solid var(--rule); }
.card:first-child { border-inline-start: 0; }
.card .k { font-family: var(--sans); font-size: 11px; letter-spacing: .06em; color: var(--ink-45); }
.card .v { font-size: 26px; font-weight: 800; margin-top: 4px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.card .s { font-size: 12.5px; color: var(--ink-45); margin-top: 3px; }
.card.ok .v { color: var(--green); }
.card.bad .v { color: var(--stamp); }

.dash-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.dash-head h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.4px; }
.dash-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-tools select { width: auto; }
.dash-tools input { min-width: 240px; width: auto; }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); background: #fff; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 900px; }
.tbl th {
  text-align: start;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-45);
  font-weight: 400;
  padding: 10px 12px;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
  background: var(--paper);
}
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--rule); color: var(--ink-70); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: var(--paper); }
.tbl .id { font-family: var(--sans); color: var(--blue); direction: ltr; }
.tbl .song { color: var(--ink); font-weight: 500; max-width: 260px; }
.tbl a { color: var(--blue); }
.tbl .muted { color: var(--ink-45); font-size: 12.5px; font-family: var(--sans); }
.tbl tr.is-reset td { color: var(--ink-25); }
.tbl tr.is-reset .id, .tbl tr.is-reset .song { color: var(--ink-25); }

.empty { color: var(--ink-45); font-size: 14px; text-align: center; padding: 24px 0 4px; }

.reset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  border: 1px solid var(--rule);
  border-block-end: 0;
  border-inline-start: 0;
  background: #fff;
  margin-top: 14px;
}
.reset-btn {
  font: inherit;
  font-size: 14px;
  padding: 11px 4px;
  border: 0;
  border-block-end: 1px solid var(--rule);
  border-inline-start: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-25);
  cursor: default;
  text-align: center;
}
.reset-btn small { display: block; font-family: var(--sans); font-size: 10.5px; margin-top: 2px; }
.reset-btn.taken { color: var(--ink); cursor: pointer; background: var(--blue-pale); }
.reset-btn.taken:hover { background: var(--blue); color: #fff; }

.admin-action-modal .modal-inner { width: min(92vw, 420px); }
.admin-action-modal .modal-actions { justify-content: flex-start; }

.audit { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; border-top: 1px solid var(--rule); }
.audit li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
  color: var(--ink-70);
  padding: 9px 2px;
  border-bottom: 1px solid var(--rule);
}
.audit time { color: var(--ink-45); font-family: var(--sans); font-size: 11.5px; white-space: nowrap; direction: ltr; }
