header.admin__header,
.admin__pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin__margin {
  margin: 0 5%;
}

.admin__form-group {
  margin: 15px 0;
}

table {
  display: block;
  border-collapse: collapse;
  width: 90%;
  margin: 20px auto;
  border: 1px solid #eee;
  border-radius: 8px;
}

thead,
tbody,
tr {
  display: block;
  width: 100%;
}

thead tr {
  background-color: #666;
  color: white;
  border-bottom: #eee 1px solid;
  border-radius: 8px 8px 0 0;
}

tbody tr:nth-child(even) {
  background-color: #eee;
}

tbody tr:last-child {
  border-radius: 0 0 8px 8px;
}

tr {
  display: flex;
  justify-content: space-between;
}

th,
td {
  flex: 1;
  padding: 8px;
  text-align: left;
  text-overflow: ellipsis;
}

th:last-child,
td:last-child {
  text-align: end;
}

a {
  text-decoration: none;
  color: inherit;
}

.table-action {
  display: inline-block;
  color: inherit;
  width: 1rem;
  height: 1rem;
}

.table-action.text {
  width: auto;
  height: auto;
}

header.admin__header small {
  color: red;
}

.admin__gallery-item {
  cursor: pointer;
  width: fit-content;
}

.admin__pagination,
.admin__subtitle,
.admin__info {
  margin: 0 5%;
}

.admin__subtitle,
.admin__info {
  margin-top: 10px;
}

.admin__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 5%;
}

.admin__primary-button,
.admin__secondary-button {
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.admin__primary-button {
  background-color: #2d8cff;
  color: white;
}

.admin__secondary-button {
  background-color: #eee;
}

.admin__primary-button:hover {
  background-color: #1a6ed8;
}

.admin__secondary-button:hover {
  background-color: #ddd;
}

.admin__primary-button:active {
  background-color: #1f62b4;
}

.admin__secondary-button:active {
  background-color: #ccc;
}
