:root {
  font-family:
    Inter,
    system-ui,
    Segoe UI,
    sans-serif;
  color: #1b2a40;
  background: #f5f7fb;
  --blue: #3868e8;
  --line: #e3e9f1;
  --muted: #78869a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #b5c5ff;
}
.hidden {
  display: none !important;
}
.login {
  width: min(460px, calc(100% - 32px));
  margin: 8vh auto;
  padding: 38px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 25px 80px #1c315014;
}
.logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(145deg, #5c82f6, #2853d1);
  border-radius: 13px;
  color: white;
  font-size: 25px;
  font-weight: 900;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 800;
  color: #8492a6;
  margin: 18px 0 8px;
}
.login h1,
h1 {
  margin: 0;
  letter-spacing: -0.8px;
}
.muted {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  background: #f2f5ff;
  padding: 19px 12px;
  margin: 25px 0;
  border-radius: 12px;
  color: #61718a;
  font-size: 10px;
}
.route i {
  height: 2px;
  background: #c6d3ff;
  flex: 1;
}
.primary,
.secondary {
  border: 0;
  border-radius: 8px;
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 750;
}
.primary {
  background: var(--blue);
  color: white;
}
.primary:hover {
  background: #2c56cf;
}
.secondary {
  background: white;
  border: 1px solid #dce3ec;
  color: #3e4d62;
}
.wide {
  width: 100%;
  padding: 14px;
}
.small {
  font-size: 11px;
  color: #8a97a9;
  line-height: 1.6;
  text-align: center;
  margin-top: 18px;
}
.layout {
  min-height: 100vh;
}
.layout aside {
  width: 235px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #15253c;
  color: white;
  padding: 24px 15px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px 30px;
}
.smalllogo {
  width: 36px;
  height: 36px;
  font-size: 20px;
}
.brand strong {
  font-size: 16px;
}
.layout aside .eyebrow {
  margin: 0 10px 12px;
  color: #8293ad;
}
.layout nav {
  display: grid;
  gap: 5px;
}
.layout nav button,
.sidebottom button {
  background: transparent;
  border: 0;
  text-align: left;
  color: #aab8ca;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
}
.layout nav button.active,
.layout nav button:hover {
  background: #304663;
  color: white;
}
.sidebottom {
  margin-top: auto;
  border-top: 1px solid #ffffff18;
  padding-top: 15px;
  display: grid;
  gap: 8px;
}
.sidebottom span {
  font-size: 10px;
  color: #94a8c1;
  padding: 7px;
}
.layout main {
  margin-left: 235px;
  min-width: 0;
}
.layout header {
  height: 70px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  font-size: 12px;
  color: #7d8a9c;
}
.who {
  display: flex;
  align-items: center;
  gap: 13px;
}
.who b {
  color: #253750;
}
.page {
  padding: 32px;
  max-width: 1450px;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.heading h1 {
  font-size: 27px;
}
.heading .eyebrow {
  margin-top: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 22px;
}
.metrics article,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.metrics article {
  padding: 20px;
}
.metrics span {
  font-size: 12px;
  color: #738197;
  display: block;
}
.metrics b {
  display: block;
  font-size: 30px;
  margin-top: 12px;
}
.panel {
  margin-bottom: 18px;
  overflow: hidden;
}
.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  border-bottom: 1px solid #edf0f5;
}
.panelhead h2,
.panel h2 {
  font-size: 15px;
  margin: 0;
}
.panelhead .muted {
  margin: 5px 0 0;
  font-size: 11px;
}
.scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
}
th {
  text-align: left;
  padding: 13px 17px;
  background: #fafbfd;
  color: #8793a4;
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
td {
  padding: 14px 17px;
  border-top: 1px solid #eff2f6;
  font-size: 12px;
  color: #4d5b6f;
}
.ref {
  color: #315ed5;
  font-weight: 800;
}
.pill,
.status {
  display: inline-block;
  border-radius: 20px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 750;
  background: #eef2f7;
  color: #68778a;
}
.status-received {
  background: #edf2ff;
  color: #3b62cf;
}
.status-processing {
  background: #fff3dc;
  color: #9b670e;
}
.status-ready-for-dispatch {
  background: #e8f5ff;
  color: #1b72a8;
}
.status-dispatched {
  background: #e6f7ef;
  color: #16845b;
}
.callout,
.notice {
  padding: 14px 16px;
  border-radius: 10px;
  background: #eef4ff;
  color: #53678b;
  font-size: 12px;
  line-height: 1.6;
  margin: 17px 0;
}
.filters {
  display: flex;
  gap: 9px;
  margin-bottom: 16px;
}
.filters input {
  flex: 1;
}
.filters input,
.filters select,
.form input,
.form select,
#order-form input {
  border: 1px solid #dce3ec;
  border-radius: 8px;
  padding: 10px 11px;
  font-size: 12px;
  min-width: 0;
}
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  padding: 22px;
}
.form label,
#order-form label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 750;
  color: #5d6b80;
}
.form .full {
  grid-column: 1/-1;
}
.actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.pad {
  padding: 20px;
}
.dispatch-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr auto;
  gap: 13px;
  align-items: center;
  padding: 17px 22px;
  border-bottom: 1px solid #eff2f6;
  font-size: 12px;
}
.dispatch-row input {
  min-width: 0;
  width: 100%;
  padding: 8px;
  border: 1px solid #dce3ec;
  border-radius: 7px;
  font-size: 11px;
}
.dispatch-row small {
  display: block;
  color: #8793a4;
  margin-top: 5px;
}
.notice {
  background: #fff7e6;
  color: #7f5b19;
}
.hidden {
  display: none !important;
}
dialog {
  border: 0;
  border-radius: 14px;
  width: min(480px, calc(100% - 24px));
  box-shadow: 0 25px 80px #17263e40;
}
dialog::backdrop {
  background: #13223aa6;
}
#order-form {
  display: grid;
  gap: 13px;
  padding: 22px;
}
#order-form h2 {
  margin: 0 0 5px;
}
#toast {
  position: fixed;
  right: 18px;
  top: 18px;
  background: #1b2c43;
  color: white;
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 12px;
  max-width: 400px;
  display: none;
  z-index: 9;
}
#toast.show {
  display: block;
}
@media (max-width: 1000px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .page {
    padding: 24px;
  }
  .dispatch-row {
    grid-template-columns: 1fr 1fr;
  }
  .dispatch-row form {
    grid-column: 1/-1;
  }
}
@media (max-width: 700px) {
  .layout aside {
    width: 60px;
    padding: 18px 6px;
  }
  .brand strong,
  .layout aside .eyebrow,
  .layout nav button,
  .sidebottom span,
  .sidebottom button {
    font-size: 0;
  }
  .brand {
    padding: 0 5px 25px;
  }
  .smalllogo {
    width: 35px;
    height: 35px;
  }
  .layout nav button {
    padding: 13px 5px;
    text-align: center;
  }
  .sidebottom {
    font-size: 0;
  }
  .layout main {
    margin-left: 60px;
  }
  .layout header {
    padding: 0 13px;
  }
  .page {
    padding: 18px 12px;
  }
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .heading > .primary {
    width: 100%;
  }
  .metrics {
    gap: 9px;
  }
  .metrics article {
    padding: 14px;
  }
  .metrics b {
    font-size: 25px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters input {
    flex-basis: 100%;
  }
  .form {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .form .full,
  .actions {
    grid-column: auto;
  }
  .login {
    padding: 28px 22px;
  }
  .dispatch-row {
    grid-template-columns: 1fr;
  }
  .dispatch-row form {
    grid-column: auto;
  }
}
