.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.adminHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: white;
  border-bottom: solid #eee 1px;
}

.adminLogo {
  display: flex;
  align-items: center;
}

.adminLogo img {
  height: 40px;
  width: auto;
}

.logoutBtn {
  padding: 10px 20px;
  border: solid var(--dark-blue) 1px;
  background: none;
  color: var(--dark-blue);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.logoutBtn:hover {
  background: var(--dark-blue);
  color: white;
}

.adminFooter {
  text-align: center;
  padding: 16px 20px;
  font-size: 13px;
  color: #666;
  border-top: solid #eee 1px;
  background: white;
}

.shell {
  display: flex;
  flex: 1;
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--dark-blue);
  color: white;
  padding: 32px 20px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.navGroupLabel {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 8px;
  padding: 0 12px;
}

.nav a {
  color: white;
  padding: 10px 12px;
  border-radius: 4px;
  text-decoration: none;
}

.nav a:hover {
  background: var(--light-blue);
}

.content {
  flex: 1;
  padding: 32px;
  overflow-x: auto;
}

.content h1 {
  color: var(--dark-blue);
  margin: 0 0 24px;
}

.pageHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pageHeader h1 {
  margin: 0 0 24px;
}

.exportBtn {
  padding: 10px 20px;
  border: solid var(--dark-blue) 1px;
  background: none;
  color: var(--dark-blue);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.exportBtn:hover:not(:disabled) {
  background: var(--dark-blue);
  color: white;
}

.exportBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.deleteLink {
  background: none;
  border: none;
  padding: 0;
  color: #c0392b;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}

.deleteLink:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: solid #eee 1px;
  font-size: 14px;
  vertical-align: top;
}

.table th {
  background: var(--gray);
  color: var(--dark-blue);
}

.table tr:hover td {
  background: var(--gray);
}

.viewLink {
  color: var(--light-blue);
  text-decoration: underline;
}

.pagination {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  border-radius: 4px;
  border: solid #ccc 1px;
  text-decoration: none;
  color: var(--dark-blue);
}

.pagination .disabled {
  opacity: 0.4;
  pointer-events: none;
}

.empty {
  color: #666;
  padding: 20px 0;
}

.detailCard {
  background: white;
  border-radius: 8px;
  padding: 24px;
  max-width: 600px;
}

.detailRow {
  display: flex;
  gap: 8px;
  padding: 10px 0;
  border-bottom: solid #eee 1px;
}

.detailRow strong {
  width: 140px;
  flex-shrink: 0;
  color: var(--dark-blue);
}

.backLink {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--light-blue);
}
