.admin-records-open { overflow: hidden; }
.admin-records-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(27, 32, 40, .34);
  backdrop-filter: blur(5px);
}
.admin-records-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  width: min(1080px, 96vw);
  max-height: min(760px, 88vh);
  min-height: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(98, 116, 132, .22);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(24, 36, 48, .22);
  color: #263746;
}
.admin-records-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-records-head > div { min-width: 0; }
.admin-records-head h2 { margin: 0 0 3px; font-size: 15px; line-height: 1.35; font-weight: 800; }
.admin-records-head p { margin: 0; color: #71808d; font-size: 12px; font-weight: 650; }
.admin-records-close,
.admin-records-footer button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d5dee5;
  border-radius: 7px;
  background: #fff;
  color: #42586a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}
.admin-records-close:hover,
.admin-records-footer button:hover:not(:disabled) { border-color: #9eb1bf; background: #f7fafc; }
.admin-records-close:focus-visible,
.admin-records-footer button:focus-visible { outline: 3px solid rgba(70, 139, 190, .24); outline-offset: 2px; }
.admin-records-content { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; min-height: 0; }
.admin-records-table-wrap { min-height: 0; overflow: auto; border: 1px solid #dce5eb; border-radius: 8px; }
.admin-records-table { table-layout: fixed; border-collapse: collapse; background: #fff; }
.admin-records-table th,
.admin-records-table td {
  height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid #e7edf1;
  color: #314351;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
}
.admin-records-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5f8;
  color: #496171;
  font-weight: 800;
  box-shadow: inset 0 -1px 0 #d7e1e8;
}
.admin-records-table td span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-records-table tbody tr:hover { background: #f8fafb; }
.admin-records-table .is-center { text-align: center; }
.admin-records-table .is-right { text-align: right; font-variant-numeric: tabular-nums; }
.admin-records-table td.is-status span { display: inline-flex; width: auto; max-width: 100%; padding: 3px 7px; border-radius: 5px; background: #edf7f1; color: #2e7551; font-weight: 750; }
.admin-records-table td.is-status.is-error span { background: #fff0ef; color: #a74743; }
.admin-records-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #71808d; font-size: 12px; }
.admin-records-footer > div { display: flex; gap: 8px; }
.admin-records-footer button:disabled { cursor: not-allowed; opacity: .46; }
.admin-records-message { min-height: 180px; display: grid; place-items: center; color: #71808d; font-size: 13px; font-weight: 700; }
.admin-records-message.is-error { color: #a74743; }
@media (max-width: 640px) {
  .admin-records-modal { padding: 12px; align-items: end; }
  .admin-records-card { width: 100%; max-height: 88vh; padding: 13px; }
  .admin-records-head { align-items: flex-start; }
  .admin-records-footer { align-items: flex-start; flex-direction: column; }
}
