/* Reservation history — extends profile.css */

.page-reservation-history .topbar::before {
  display: none !important;
}

.content.content--history {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding-bottom: 40px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rh-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.rh-hero-title {
  font-size: clamp(1.5rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.rh-hero-lead {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
  max-width: 520px;
}

.rh-identity-line {
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.rh-identity-line:empty {
  display: none;
}

.rh-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  min-width: 200px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.85);
}

.rh-search-ico {
  color: var(--muted);
  flex-shrink: 0;
}

.rh-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  outline: none;
}

.rh-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

@media (max-width: 960px) {
  .rh-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .rh-stats {
    grid-template-columns: 1fr;
  }
}

.rh-stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}

.rh-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.rh-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

.rh-stat-hint {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
}

.rh-stat-hint--green {
  color: #166534;
  background: #dcfce7;
}

.rh-stat-hint--purple {
  color: #5b21b6;
  background: #ede9fe;
}

.rh-stat-hint--red {
  color: #b91c1c;
  background: #fee2e2;
}

.rh-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px 20px;
  margin-bottom: 28px;
}

.rh-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.rh-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.rh-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 120px;
}

.rh-field--grow {
  flex: 1;
  min-width: 140px;
}

.rh-field-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.rh-input,
.rh-select {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  min-height: 40px;
}

.rh-select {
  cursor: pointer;
}

.rh-btn-export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary-700);
  background: var(--primary-soft);
  border: 1px solid rgba(93, 95, 239, 0.28);
  cursor: pointer;
  white-space: nowrap;
}

.rh-btn-export:hover {
  background: rgba(93, 95, 239, 0.2);
}

.rh-table-status {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
  min-height: 1.2em;
}

.rh-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.rh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.rh-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

.rh-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text);
  vertical-align: middle;
}

.rh-table tbody tr:last-child td {
  border-bottom: none;
}

.rh-locker-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rh-locker-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #e0e7ff, #eef2ff);
  border: 1px solid #c7d2fe;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.rh-loc-sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.rh-pill {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rh-pill--done {
  background: #dcfce7;
  color: #166534;
}

.rh-pill--cancel {
  background: #fee2e2;
  color: #b91c1c;
}

.rh-pill--expired {
  background: #f1f5f9;
  color: #64748b;
}

.rh-pill--active {
  background: #dbeafe;
  color: #1d4ed8;
}

.rh-pill--overdue {
  background: #fef3c7;
  color: #92400e;
}

.rh-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  color: var(--muted);
}

.rh-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 6px;
  z-index: 40;
  display: none;
}

.rh-menu.show {
  display: block;
}

.rh-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.rh-menu a:hover {
  background: var(--primary-soft);
  color: var(--primary-700);
}

.rh-cell-actions {
  position: relative;
  text-align: right;
}

.rh-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.rh-page-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rh-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
}

.rh-page-btn:hover:not(:disabled) {
  border-color: rgba(93, 95, 239, 0.35);
  background: var(--primary-soft);
}

.rh-page-btn.is-active {
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff;
  border-color: transparent;
}

.rh-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rh-support {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 240px);
  gap: 22px;
  align-items: center;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #4f46e5 0%, #5d5fef 50%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.28);
  margin-bottom: 24px;
}

@media (max-width: 720px) {
  .rh-support {
    grid-template-columns: 1fr;
  }
}

.rh-support-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.rh-support-lead {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.95;
  margin-bottom: 18px;
  max-width: 520px;
}

.rh-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rh-btn-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
  border: 2px solid transparent;
}

.rh-btn-support--solid {
  background: #fff;
  color: var(--primary-700);
}

.rh-btn-support--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.rh-support-visual {
  display: flex;
  justify-content: flex-end;
}

.rh-support-photo {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  background-color: #312e81;
  background-image:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    url("../image/about-locker.jpg");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.rh-footer {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 0 16px;
}

.hidden {
  display: none !important;
}
