/* 05-admin */
.race-list {
  padding: 16px;
}

.admin-wrap {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.timing-form {
  background:
    linear-gradient(180deg, rgba(24, 40, 61, 0.96) 0%, rgba(10, 18, 29, 0.96) 100%);
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: sticky;
  top: 100px;
  height: fit-content;
  box-shadow: var(--shadow-md);
}

.timing-form::before {
  content: "";
  display: block;
  height: 3px;
  margin: -20px -20px 17px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.timing-form h3 {
  color: var(--text);
  margin-bottom: 14px;
  font-size: 1.08rem;
  font-weight: 700;
}

.form-group {
  margin-bottom: 13px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.small-note {
  color: var(--text-muted);
  font-size: 0.84rem;
  margin-top: 8px;
  line-height: 1.4;
}

.muted {
  color: var(--text-muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 12, 0.74);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  width: min(460px, 92vw);
  background:
    linear-gradient(180deg, rgba(16, 24, 35, 0.98) 0%, rgba(10, 16, 24, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0,0,0,.48);
}

.modal-head {
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(26, 38, 55, 0.96) 0%, rgba(19, 29, 43, 0.96) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.modal-head h3 {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.modal-body {
  padding: 18px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 18px 18px;
}

.inscritos-admin-tools {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 12, 18, 0.45);
}

.inline-grid-auth {
  display: grid;
  grid-template-columns: 220px 220px 1fr;
  gap: 12px;
  align-items: end;
}

.inscritos-delete-tools {
  grid-template-columns: minmax(260px, 1fr) 180px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(143, 169, 196, 0.16);
}

.inscritos-delete-action .btn-danger {
  width: 100%;
}

.no-margin {
  margin: 0;
}

.inline-actions-end {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.inline-buttons-wrap {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.admin-export-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(143, 169, 196, 0.14);
  background:
    linear-gradient(180deg, rgba(9, 17, 27, 0.56), rgba(7, 12, 18, 0.34));
}

.admin-export-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

.admin-export-grid .btn {
  min-height: 43px;
  width: 100%;
}

.last-records-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.last-records-title {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.last-records-content {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.saved-log-ok {
  color: var(--success);
  margin-bottom: 6px;
}
