:root {
  --ink: #17202a;
  --muted: #687381;
  --line: #c9d0d8;
  --paper: #f3f5f7;
  --panel: #ffffff;
  --nav: #233244;
  --nav-dark: #182433;
  --green: #237a57;
  --green-soft: #e5f4ec;
  --amber-soft: #fff2dc;
  --red: #b93b35;
  --blue: #245d8f;
  --shadow: 0 12px 30px rgba(24, 36, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #dfe4ea;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

button,
.nav-link,
.auth-tab {
  cursor: pointer;
}

button {
  min-height: 38px;
  border: 1px solid #aeb8c3;
  border-radius: 4px;
  color: var(--ink);
  background: linear-gradient(#ffffff, #e8edf2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

button:hover,
.nav-link:hover {
  filter: brightness(1.03);
}

button.primary {
  border-color: #1d6044;
  color: #ffffff;
  background: linear-gradient(#2d956c, #1f704f);
}

button.danger {
  border-color: #9d2c27;
  color: #ffffff;
  background: linear-gradient(#d5534d, #a93631);
}

input,
select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #aeb8c3;
  border-radius: 4px;
  padding: 8px 10px;
  color: var(--ink);
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid #d8dee5;
  text-align: left;
  vertical-align: middle;
}

th {
  color: #344456;
  font-size: 13px;
  background: #eef2f5;
}

td {
  font-size: 14px;
}

.form-message {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-message.error {
  color: var(--red);
}

.form-message.success {
  color: var(--green);
}

.form-message.info {
  color: var(--blue);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding: 16px 18px;
  border-bottom: 1px solid #d8dee5;
  background: #f8fafc;
}

.panel-heading.compact {
  min-height: 64px;
}

.panel-heading p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.panel-heading h1,
.panel-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
}

.badge.success {
  color: #12442f;
  background: var(--green-soft);
}

.badge.warning {
  color: #6b3a00;
  background: var(--amber-soft);
}

@media (max-width: 760px) {
  th,
  td {
    padding: 9px 8px;
  }
}
