:root {
  font-family: "Inter",ui-sans-serif,system-ui,sans-serif;
  color: #e6efff;
  background: #0a1220;
  color-scheme: dark;
  --panel: #111e30;
  --border: #263953;
  --muted: #9ab0cb;
  --accent: #74c4ff;
  --ok: #66dab1;
  --bad: #ff9a91;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button,.button,select,input {
  font: inherit;
  background: #172a41;
  color: #e7f3ff;
  border: 1px solid #3b597a;
  border-radius: .45rem;
  padding: .45rem .8rem;
  min-height: 2.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
}

button:hover,.button:hover,select:hover {
  background: #233d59;
}

button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

button:focus-visible,select:focus-visible,a:focus-visible,input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.top {
  min-height: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  padding: .65rem clamp(1rem,6vw,5rem);
  border-bottom: 1px solid var(--border);
  background: #101b2c;
}

.brand {
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: .65rem;
}

.mark {
  color: var(--accent);
  font-size: 1.6rem;
}

.navigation,.account,.health-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
}

.navigation a {
  padding: .45rem .75rem;
  border-radius: .45rem;
  color: var(--muted);
}

.navigation a:hover,.navigation a[aria-current="page"] {
  background: #172a41;
  color: #e6efff;
}

.account,.health-actions {
  justify-content: flex-end;
}

.account span {
  overflow-wrap: anywhere;
}

main {
  width: min(100% - 2rem,78rem);
  margin: 2.5rem auto 4rem;
}

.title,.panel-head,.capacity {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.title {
  margin-bottom: 1.35rem;
}

.compact {
  margin-top: 2.3rem;
  margin-bottom: .75rem;
}

h1,h2,h3,p {
  margin: 0;
}

h1 {
  font-size: clamp(1.9rem,5vw,2.65rem);
  letter-spacing: -.045em;
}

h2 {
  font-size: 1.24rem;
}

h3 {
  font-size: 1rem;
}

.muted,.empty {
  color: var(--muted);
  font-size: .9rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: .8rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.panel-head,.capacity,.empty {
  padding: 1rem 1.15rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}

th,td {
  padding: .75rem 1.15rem;
  border-top: 1px solid var(--border);
  font-size: .875rem;
}

th {
  font-weight: 650;
  color: var(--muted);
}

td {
  font-variant-numeric: tabular-nums;
}

.route-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.route-button:hover {
  background: none;
  color: #c0e7ff;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: 2rem;
  padding: .19rem .55rem;
  background: #203149;
  color: #c4d2e7;
}

.pill:before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: currentColor;
}

.pill.ok {
  background: #11352f;
  color: var(--ok);
}

.pill.bad {
  background: #462b35;
  color: var(--bad);
}

.node-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
}

.node {
  padding: 1rem 1.15rem;
}

.node h3 {
  margin-bottom: .4rem;
}

.node dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  margin: .9rem 0;
}

.node dt {
  color: var(--muted);
  font-size: .87rem;
}

.node dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.node ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.node li {
  padding: .42rem 0;
  border-top: 1px solid var(--border);
  font-size: .87rem;
}

.chart-panel canvas {
  width: 100%;
  height: 12rem;
  display: block;
}

.chart-panel p {
  padding: .55rem 1.15rem .9rem;
}

.legend {
  display: flex;
  gap: 1.2rem;
  padding: 0 1.15rem;
  font-size: .875rem;
}

.legend span:before {
  content: "";
  display: inline-block;
  width: .75rem;
  height: 3px;
  background: currentColor;
  vertical-align: middle;
  margin-right: .4rem;
}

.rx {
  color: #74c4ff;
}

.tx {
  color: #69d9b1;
}

.notice {
  margin-bottom: 1rem;
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: .4rem;
}

.sign-in,.operator-action {
  max-width: 27rem;
  margin-top: clamp(3rem,10vh,7rem);
}

.account-panel {
  padding: clamp(1.15rem,4vw,1.7rem);
}

.account-form {
  display: grid;
  gap: .85rem;
  margin-top: 1rem;
}

.account-form label {
  display: grid;
  gap: .35rem;
}

.account-form > .muted {
  margin-top: -.6rem;
}

.account-form input {
  width: 100%;
  min-width: 0;
  background: #0a1526;
}

.notice.error {
  color: var(--bad);
}

.primary {
  background: #74c4ff;
  color: #091727;
  border-color: transparent;
  font-weight: 650;
}

.primary:hover {
  background: #a5d9ff;
}

.operator-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(15rem, 1fr);
  align-items: start;
  gap: 1rem;
}

.operator-actions .button + .button {
  margin-left: .45rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

[hidden] {
  display: none!important;
}

@media(max-width:46rem) {
  main {
    margin-top: 1.4rem;
  }
  .node-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .title,.capacity {
    align-items: flex-start;
  }
  .capacity {
    flex-direction: column;
  }
  .navigation {
    order: 1;
    width: 100%;
  }
  .operator-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .top .muted {
    font-size: .78rem;
  }
}

.sales-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
}

main > .sales-filter,
.panel > .sales-filter:not(:empty) {
  margin-block: .75rem;
}

.sales-filter input[name="limit"] {
  width: 8rem;
}

.receipt-image { display: block; max-inline-size: 100%; max-block-size: 34rem; object-fit: contain; }
