* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #18212f;
  background: #f4f6f8;
}

a {
  color: #0b5cad;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: #1f4e78;
  color: #fff;
}

.topbar a {
  color: #fff;
}

.brand {
  font-weight: 700;
  letter-spacing: 0;
}

.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px;
}

.login {
  max-width: 420px;
  margin: 80px auto;
  background: #fff;
  padding: 28px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-card,
.panel {
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 14px;
}

.summary-card strong {
  display: block;
  font-size: 14px;
}

.summary-card span {
  display: block;
  margin-top: 6px;
  color: #4d5c6f;
  font-size: 13px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #354458;
}

input,
select,
button {
  width: 100%;
  min-height: 36px;
  border: 1px solid #c9d2df;
  border-radius: 6px;
  padding: 7px 9px;
  font: inherit;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 92px;
  cursor: pointer;
  background: #1f4e78;
  color: #fff;
  border-color: #1f4e78;
  text-decoration: none;
}

.button.secondary,
button.secondary {
  background: #edf2f7;
  color: #203044;
  border-color: #ccd6e2;
}

.actions {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 12px;
}

.table-wrap {
  margin-top: 18px;
  overflow: auto;
  border: 1px solid #d8dee8;
  background: #fff;
  border-radius: 8px;
}

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

th,
td {
  padding: 8px 10px;
  border-bottom: 1px solid #e7edf4;
  vertical-align: top;
  font-size: 13px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #e9f0f7;
  text-align: left;
}

.muted {
  color: #66758a;
}

.error {
  color: #9d1c1c;
  background: #fff1f1;
  border: 1px solid #f0b8b8;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 12px;
}

.status {
  white-space: nowrap;
  font-weight: 700;
}

.nowrap {
  white-space: nowrap;
}

.small-form {
  display: flex;
  gap: 6px;
}

.small-form select {
  min-width: 190px;
}
