:root {
  --blue: #135d66;
  --blue-dark: #0e4850;
  --nav: #152b33;
  --bg: #f3f5f6;
  --text: #20343c;
  --muted: #60757e;
  --line: #dde5e8;
}
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.sidebar {
  background: var(--nav);
  overflow-y: auto;
}
.brand span {
  color: #f2ae57;
}
.nav-item.selected {
  background: #2d5057;
  color: #fff;
}
.nav-label {
  color: #a8bec5;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.button {
  background: var(--blue);
  border-color: var(--blue);
}
.button.secondary {
  background: white;
  color: var(--blue);
  border-color: #b9cdd0;
}
.topbar-title {
  font-size: 13px;
}
.content {
  max-width: 1700px;
  margin: auto;
}
.environment {
  background: #fff5db;
  border: 1px solid #ead5a0;
  border-radius: 6px;
  padding: 10px 15px;
  margin-bottom: 18px;
  font-size: 12px;
  color: #765111;
}
.metric-value {
  font-size: 27px;
}
.grid-caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.capacity {
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  padding: 20px;
  border-radius: 8px;
}
.capacity h2 {
  font-size: 15px;
  margin: 0 0 14px;
}
.capacity strong {
  display: block;
  font-size: 30px;
  line-height: 1.2;
}
.capacity small {
  color: var(--muted);
}
.capacity dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 0;
}
.capacity dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.form-grid label,
.stack > label {
  font-size: 12px;
}
.line-item {
  background: #fafcfc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 10px;
}
.line-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 12px;
}
.line-item label {
  font-size: 11px;
}
.line-item .remove-line {
  align-self: end;
  padding-bottom: 12px;
}
.field-help {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.operation-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tab {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  font-size: 12px;
}
.tab.selected {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.check-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.check-grid input {
  width: auto;
}
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 18px;
}
.timeline details {
  margin-bottom: 18px;
}
.code-data {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: Consolas, monospace;
  font-size: 11px;
  background: #f6f8f9;
  padding: 12px;
  border-radius: 6px;
  max-height: 320px;
  overflow: auto;
}
.account-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding: 18px;
  background: #f4f8f8;
  border-radius: 6px;
}
.account-summary strong {
  display: block;
  font-size: 20px;
}
.small {
  font-size: 11px;
}
.table-scroll table {
  min-width: 650px;
}
table th {
  font-size: 11px;
}
table td {
  font-size: 12px;
}
.empty {
  padding: 26px;
  color: var(--muted);
  text-align: center;
}
.columns {
  align-items: start;
}
.bar-chart {
  display: grid;
  gap: 12px;
}
.bar-item {
  display: grid;
  grid-template-columns: 140px 1fr 120px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.bar-track {
  height: 10px;
  background: #e7eef0;
  border-radius: 3px;
}
.bar-fill {
  height: 10px;
  background: var(--blue);
  border-radius: 3px;
}
.readonly-note {
  font-size: 12px;
  background: #eff6f7;
  padding: 12px;
  border-left: 3px solid var(--blue);
  margin-bottom: 18px;
}
.form-actions {
  position: relative;
}
.login-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.login-wrap .environment {
  max-width: 440px;
}
.badge.good {
  color: #135d45;
  background: #e3f3ec;
}
.badge.bad {
  color: #a44232;
  background: #fae9e5;
}
a {
  color: #135d66;
}
.numeric {
  font-variant-numeric: tabular-nums;
}
.report-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 12px 0;
}
.report-summary span {
  padding: 12px;
  background: #f4f8f8;
  border-radius: 5px;
}
.hint {
  color: var(--muted);
  font-size: 12px;
}
.notice {
  overflow-wrap: anywhere;
}
.line-grid [hidden],
[hidden] {
  display: none !important;
}
.linked {
  font-size: 11px;
  color: var(--muted);
}
.app-subtitle {
  font-size: 10px;
  color: #a9bec6;
}
.page-heading h1 {
  font-size: 25px;
}
.danger-button {
  background: #a43d35;
  border-color: #a43d35;
}
.checks-list {
  font-size: 13px;
  line-height: 1.8;
}
.report-filters {
  background: #fff;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.print-heading {
  display: none;
}
@media (max-width: 1100px) {
  .line-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-caps {
    gap: 10px;
  }
  .bar-item {
    grid-template-columns: 100px 1fr 90px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: static;
    width: auto;
    max-height: none;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    padding: 0 12px 12px;
    gap: 5px;
  }
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  .nav-item {
    padding: 7px 9px;
    font-size: 11px;
  }
  .brand {
    padding: 16px;
  }
  .application {
    margin-left: 0;
  }
  .topbar {
    padding: 12px;
  }
  .topbar-title {
    display: none;
  }
  .content {
    padding: 16px;
  }
  .grid-caps {
    grid-template-columns: 1fr;
  }
  .line-grid {
    grid-template-columns: 1fr 1fr;
  }
  .check-grid {
    grid-template-columns: 1fr 1fr;
  }
  .account > span {
    display: none;
  }
  .bar-item {
    grid-template-columns: 85px 1fr 90px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .section-heading {
    gap: 10px;
    flex-wrap: wrap;
  }
  .filters label {
    min-width: 120px;
    flex: 1;
  }
  .capacity dl {
    grid-template-columns: 1fr auto;
  }
  .account-summary {
    gap: 15px;
  }
  .account-summary strong {
    font-size: 17px;
  }
}
@media (max-width: 370px) {
  .line-grid {
    grid-template-columns: 1fr;
  }
  .content {
    padding: 12px;
  }
  .check-grid {
    grid-template-columns: 1fr;
  }
}
@media print {
  body {
    background: #fff;
  }
  .sidebar,
  .topbar,
  .no-print,
  form,
  .environment,
  .tabs {
    display: none !important;
  }
  .application {
    margin: 0;
  }
  .content {
    padding: 0;
    max-width: none;
  }
  .panel {
    border: 0;
    box-shadow: none;
    break-inside: auto;
    padding: 10px 0;
  }
  .table-scroll {
    overflow: visible;
  }
  table {
    min-width: 0 !important;
    width: 100%;
    border-collapse: collapse;
  }
  th,
  td {
    padding: 7px;
    border-bottom: 1px solid #bbb;
    font-size: 10px !important;
  }
  a {
    color: #000;
    text-decoration: none;
  }
  .print-heading {
    display: block;
  }
  .page-heading h1 {
    font-size: 20px;
  }
  .code-data {
    max-height: none;
  }
  .columns {
    display: block;
  }
  .metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  @page {
    size: A4 landscape;
    margin: 12mm;
  }
}

.bar-chart meter {
  width: 100%;
  height: 12px;
  accent-color: #135d66;
}
.bar-chart meter::-webkit-meter-bar {
  background: #e7eef0;
  border: 0;
}
.bar-chart meter::-webkit-meter-optimum-value {
  background: #135d66;
}
.bar-chart meter.negative::-webkit-meter-optimum-value {
  background: #ae5540;
}

/* Company names remain readable in the sidebar and login. */
.brand { font-size: 20px; letter-spacing: 0; line-height: 1.3; overflow-wrap: anywhere; }
