* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #172026;
  background: #f6f7f8;
  font-family: Arial, Helvetica, sans-serif;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  background: #ffffff;
  border-bottom: 1px solid #d9dee3;
}

h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

p {
  margin: 4px 0 0;
  color: #5a6670;
  font-size: 13px;
}

main {
  padding: 18px 22px 28px;
}

.auth {
  display: grid;
  grid-template-columns: minmax(220px, 360px) auto auto 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.secondary {
  border-color: #9aa6b2;
  background: #ffffff;
  color: #27313a;
}

.secondary:hover {
  background: #eef2f5;
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

label {
  display: grid;
  gap: 5px;
  color: #3f4b55;
  font-size: 12px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #c7cfd6;
  border-radius: 6px;
  padding: 8px 10px;
  background: #ffffff;
  color: #172026;
  font-size: 14px;
}

button {
  min-height: 36px;
  border: 1px solid #1f6feb;
  border-radius: 6px;
  padding: 8px 12px;
  background: #1f6feb;
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

button:hover {
  background: #185abc;
}

.status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 30px;
  color: #3f4b55;
  font-size: 13px;
}

.tableWrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: calc(100vh - 230px);
  border: 1px solid #d9dee3;
  background: #ffffff;
}

table {
  width: 100%;
  min-width: 1700px;
  border-collapse: collapse;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf0f2;
  text-align: left;
  font-size: 13px;
  line-height: 1.3;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef2f5;
  color: #27313a;
  font-size: 12px;
}

td {
  max-width: 260px;
  overflow-wrap: anywhere;
}

a {
  color: #0b63ce;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

th:nth-child(9),
td:nth-child(9),
th:nth-child(10),
td:nth-child(10) {
  min-width: 260px;
  max-width: 360px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding-bottom: 8px;
}

.pagination button {
  min-width: 40px;
  padding: 6px 11px;
  background: #ffffff;
  color: #27313a;
  border: 1px solid #c7cfd6;
  font-weight: 600;
}

.pagination button:hover:not(:disabled) {
  background: #eef2f5;
}

.pagination button.active {
  background: #1f6feb;
  color: #ffffff;
  border-color: #1f6feb;
  cursor: default;
}

.pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}

.pagination .ellipsis {
  padding: 6px 2px;
  color: #5a6670;
}

.pagination .pageInfo {
  margin-left: 10px;
  color: #3f4b55;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 900px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .auth {
    grid-template-columns: 1fr;
  }

  .tableWrap {
    max-height: none;
  }
}
