:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #17212b;
  background: #f3f6f8;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #0d6b78; }
.topbar {
  background: #102a43;
  color: white;
  padding: 16px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}
.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.topbar nav a {
  color: white;
  text-decoration: none;
}
.container {
  width: min(1100px, 92%);
  margin: 28px auto;
}
.auth-card, .panel, .card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 7px 24px rgba(15, 42, 67, .08);
}
.auth-card {
  max-width: 520px;
  margin: 45px auto;
  padding: 28px;
}
.auth-card.wide {
  max-width: 760px;
}
.panel {
  padding: 24px;
  margin-bottom: 22px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.card {
  padding: 20px;
}
.card strong {
  font-size: 2rem;
}
.grid-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 16px;
}
input, select, textarea {
  width: 100%;
  padding: 11px;
  margin-top: 6px;
  border: 1px solid #c9d4de;
  border-radius: 7px;
  font: inherit;
}
button, .button {
  display: inline-block;
  background: #0d6b78;
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 11px 16px;
  cursor: pointer;
  text-decoration: none;
}
button.secondary {
  background: #556575;
}
button.danger {
  background: #a61b1b;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.flash {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  background: #e7f3f5;
}
.flash.danger {
  background: #fde8e8;
  color: #8b1d1d;
}
.flash.warning {
  background: #fff4d6;
  color: #6d5200;
}
.flash.success {
  background: #e3f5e8;
  color: #245b31;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e4e9ee;
}
.notice {
  background: #eef6f8;
  padding: 14px;
  border-left: 4px solid #0d6b78;
  margin: 18px 0;
}
.description {
  line-height: 1.6;
  margin: 18px 0;
}
.muted {
  color: #637282;
}
.documents {
  display: flex;
  gap: 16px;
  margin: 16px 0;
}
@media (max-width: 800px) {
  .cards, .grid-form {
    grid-template-columns: 1fr;
  }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
