:root {
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: #14211b;
  background: #f4f7f4;
  font-size: 15px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.login form,
.panel-card,
.table-wrap {
  background: #ffffff;
  border: 1px solid #dbe5de;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(24, 45, 36, 0.08);
}

.login form {
  width: min(420px, 100%);
  padding: 28px;
}

h1,
h2,
h3 {
  margin: 0;
}

.muted {
  color: #66756d;
}

.topbar {
  align-items: center;
  background: #102119;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
}

.topbar strong {
  display: block;
  font-size: 20px;
}

.topbar span {
  color: #b9c9c0;
  font-size: 13px;
}

.shell {
  padding: 20px 24px 40px;
}

.grid {
  display: grid;
  gap: 16px;
}

.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.stat {
  background: #ffffff;
  border: 1px solid #dbe5de;
  border-radius: 8px;
  padding: 16px;
}

.stat b {
  color: #126a42;
  display: block;
  font-size: 30px;
  margin-top: 8px;
}

.stat small {
  color: #66756d;
  display: block;
  font-weight: 800;
  margin-top: 6px;
}

.columns {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 360px 1fr;
}

.panel-card {
  padding: 18px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tabs button,
.subtabs button,
.primary,
.secondary,
.danger {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
}

.tabs button,
.subtabs button,
.secondary {
  background: #eaf0ec;
  color: #14211b;
}

.tabs .active,
.subtabs .active,
.primary {
  background: #147a4c;
  color: #ffffff;
}

.subtabs {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.subtabs button {
  border: 1px solid #dbe5de;
}

.report-toolbar {
  box-shadow: none;
}

.report-page {
  display: grid;
  gap: 16px;
}

.report-stats {
  margin-bottom: 0;
}

.danger {
  background: #ffe7e4;
  color: #a9281d;
}

label {
  display: grid;
  font-weight: 800;
  gap: 6px;
  margin-top: 12px;
}

input,
select,
textarea {
  border: 1px solid #cddbd2;
  border-radius: 6px;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  min-height: 74px;
  resize: vertical;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 260px;
}

.row-actions button {
  padding: 8px 10px;
}

.table-wrap {
  overflow: auto;
}

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

th,
td {
  border-bottom: 1px solid #edf2ef;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

th {
  background: #f7faf8;
  color: #52645a;
  font-size: 12px;
  text-transform: uppercase;
}

.status {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 8px;
}

.status.ACTIVE {
  background: #dff6e8;
  color: #11663f;
}

.status.PAUSED {
  background: #fff1d6;
  color: #8a5700;
}

.status.PENDING {
  background: #e8eefc;
  color: #2d4c91;
}

.status.STOPPED {
  background: #ffe7e4;
  color: #a9281d;
}

.message {
  color: #126a42;
  font-weight: 800;
  min-height: 22px;
}

.error {
  color: #a9281d;
  font-weight: 800;
}

@media (max-width: 980px) {
  .stats,
  .columns {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
}

@media print {
  .topbar,
  .tabs,
  .subtabs,
  .message,
  .actions,
  .row-actions,
  form.panel-card {
    display: none !important;
  }

  body {
    background: #ffffff;
  }

  .shell {
    padding: 0;
  }

  .table-wrap,
  .panel-card,
  .stat {
    border: 1px solid #999;
    box-shadow: none;
  }
}
