/* Full-bleed content (no side gutters on this page) */
.borrowed-page .borrowed-main {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0.5rem 0;
}

.borrowed-page .borrowed-main h1 {
  margin: 0.5rem 0 1rem;
  padding: 0 0.5rem;
}

.borrowed-books-table {
  width: 100%;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}

.borrowed-books-table thead th {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 12px;
  color: #4a5568;
  vertical-align: middle;
  line-height: 1.3;
}

.borrowed-books-table tbody td {
  font-size: 14px;
  padding: 14px 12px;
  vertical-align: middle;
}

.borrowed-books-table tbody tr {
  transition: background 0.2s ease;
}

.borrowed-books-table tbody tr:hover td {
  background: #c8d9ff;
}

/* Book title left-aligned; all other columns centered */
.borrowed-books-table th:first-child,
.borrowed-books-table td:first-child {
  text-align: left;
}

.borrowed-books-table th:not(:first-child),
.borrowed-books-table td:not(:first-child) {
  text-align: center;
  vertical-align: middle;
}

/* Single cell rows (colspan messages) stay centered */
.borrowed-books-table tbody td:only-child {
  text-align: center;
}

/* Row actions — overrides base.css generic `button` on this page */
.borrowed-btn {
  display: block;
  width: 100%;
  max-width: 7.5rem;
  box-sizing: border-box;
  padding: 6px 12px;
  margin: 0 auto;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.borrowed-btn--details {
  border: none;
  background: #1d9e75;
  color: #fff;
  box-shadow: none;
}

.borrowed-btn--details:hover {
  background: #0f6e56;
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(29, 158, 117, 0.25);
}

.borrowed-btn--details:focus-visible {
  outline: 2px solid #1d9e75;
  outline-offset: 2px;
}

.borrowed-btn--return {
  border: none;
  background: #1a6fc4;
  color: #fff;
  box-shadow: none;
}

.borrowed-btn--return:hover {
  background: #155da0;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(26, 111, 196, 0.25);
}

.borrowed-btn--return:focus-visible {
  outline: 2px solid #1a6fc4;
  outline-offset: 2px;
}

.borrowed-btn--return:active,
.borrowed-btn--details:active {
  transform: translateY(0);
}
