@font-face {
  font-family: Inter;
  src: url(/assets/inter-latin-400-normal.woff2);
}
@font-face {
  font-family: Inter;
  font-weight: 500;
  src: url(/assets/inter-latin-500-normal.woff2);
}
@font-face {
  font-family: Inter;
  font-weight: 600;
  src: url(/assets/inter-latin-600-normal.woff2);
}
@font-face {
  font-family: Inter;
  font-weight: 700;
  src: url(/assets/inter-latin-700-normal.woff2);
}
:root {
  --nav: #142c40;
  --paper: #fff;
  --bg: #f4f6f8;
  --line: #dce2e7;
  --ink: #182e40;
  --muted: #546673;
  --green: #24805c;
  --amber: #956610;
  --red: #b63434;
  font:
    14px/1.48 Inter,
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 3px solid #477ead;
  outline-offset: 2px;
}
.ico {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.65;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 24px;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 14px;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 100dvh;
}
.side {
  position: sticky;
  top: 0;
  height: 100dvh;
  background: var(--nav);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 22px 12px 14px;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.55px;
}
.brand .ico {
  width: 27px;
  height: 27px;
}
.brand small {
  display: block;
  color: inherit;
  opacity: 0.8;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0;
}
.side .brand {
  padding: 0 9px 25px;
  border-bottom: 1px solid #ffffff26;
}
.side nav {
  display: grid;
  gap: 3px;
  margin: 17px 0;
}
.side button,
.bottom button {
  background: transparent;
  color: #dbe4ea;
  border: 0;
  text-align: left;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 4px;
}
.side button.active,
.side button:hover {
  background: #2c485b;
  color: white;
}
.side .foot {
  margin-top: auto;
  border-top: 1px solid #ffffff26;
  padding-top: 12px;
}
.top {
  height: 55px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  gap: 12px;
}
.top .user {
  display: flex;
  align-items: center;
  gap: 9px;
}
.page {
  padding: 24px 26px 42px;
  max-width: 1660px;
  margin: auto;
}
.heading,
.bar,
.actions,
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.heading,
.bar {
  justify-content: space-between;
}
.heading {
  margin-bottom: 18px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-bottom: 16px;
  overflow: hidden;
}
.panel > .bar,
.pad {
  padding: 15px 17px;
}
.panel > .bar {
  border-bottom: 1px solid var(--line);
}
.bar p {
  margin-top: 3px;
  color: var(--muted);
}
.btn,
.iconbtn {
  border: 1px solid #c7d1d8;
  background: #fff;
  border-radius: 4px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 12px;
  font-weight: 500;
}
.btn:hover,
.iconbtn:hover {
  background: #f0f4f6;
}
.primary,
.primary:hover {
  background: var(--nav);
  color: white;
  border-color: var(--nav);
}
.danger {
  color: var(--red);
}
.iconbtn {
  padding: 6px;
  min-width: 34px;
}
.quick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 16px;
  gap: 10px;
}
.quick button {
  justify-content: flex-start;
  padding: 12px;
}
.filters,
.fields {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.filters {
  padding: 12px 16px;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
}
label.field {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  min-width: 0;
  flex: 1 1 130px;
}
.fields label {
  flex-basis: 150px;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  background: white;
  border: 1px solid #bfcbd2;
  border-radius: 4px;
  padding: 8px 10px;
  min-height: 36px;
  font-size: 14px;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--nav);
}
.empty {
  padding: 26px 16px;
  text-align: center;
  color: var(--muted);
}
.tablebox {
  overflow: auto;
  max-height: 68dvh;
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 13px;
}
th {
  background: #f3f5f7;
  color: #4a606f;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
}
td,
th {
  padding: 9px 13px;
  border-bottom: 1px solid #e7ebee;
  overflow-wrap: anywhere;
}
td:first-child {
  font-weight: 500;
}
tr:last-child td {
  border-bottom: 0;
}
.tag {
  display: inline-block;
  background: #edf2f5;
  color: #385466;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 500;
}
.late {
  color: var(--red);
  background: #faeded;
}
.warn {
  color: #765110;
  background: #faf2de;
}
.good {
  color: #1e674c;
  background: #e9f4ee;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  text-align: left;
  padding: 13px 15px;
  color: var(--ink);
}
.metric span {
  color: var(--muted);
  font-size: 13px;
}
.metric strong {
  display: block;
  font-size: 26px;
  font-weight: 600;
  margin-top: 5px;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fold .layout {
  grid-template-columns: 60px minmax(0, 1fr);
}
.fold .side {
  padding: 19px 5px;
}
.fold .side span {
  display: none;
}
.fold .side button,
.fold .side .brand {
  justify-content: center;
}
.bottom {
  display: none;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 18px;
  border-top: 5px solid var(--nav);
}
.access {
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  width: min(100%, 402px);
  padding: 28px;
}
.access .brand {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 22px;
}
.access form,
.stack {
  display: grid;
  gap: 14px;
}
.access h1 {
  margin-bottom: 18px;
}
.err {
  color: var(--red);
  font-weight: 500;
  white-space: pre-line;
}
.err:empty {
  display: none;
}
.msg {
  background: #f0f4f6;
  padding: 10px 12px;
  border-radius: 4px;
}
.qtyrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.qty {
  display: flex;
  align-items: center;
  gap: 4px;
}
.qty input {
  width: 61px;
  text-align: center;
  -moz-appearance: textfield;
}
.qty button {
  width: 38px;
}
.qty input::-webkit-inner-spin-button {
  appearance: none;
}
.sig {
  width: 100%;
  height: 150px;
  border: 1px dashed #8e9da8;
  border-radius: 4px;
  background: #fbfcfd;
  touch-action: none;
}
.summary {
  font-weight: 600;
}
.tabs {
  display: flex;
  gap: 4px;
  overflow: auto;
  flex-wrap: wrap;
  margin: 0 0 14px;
}
.tabs button.active {
  color: white;
  background: var(--nav);
}
dialog {
  color: var(--ink);
  width: min(620px, 95vw);
  max-height: 90dvh;
  overflow: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
}
dialog::backdrop {
  background: #12253578;
}
dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
}
dialog .body {
  padding: 16px 18px;
}
.check {
  display: flex;
  align-items: center;
  gap: 6px;
}
.spaced {
  margin-top: 12px;
}
#toast:not(:empty) {
  position: fixed;
  bottom: 18px;
  right: 18px;
  max-width: min(90vw, 520px);
  background: var(--nav);
  color: white;
  padding: 11px 17px;
  border-radius: 4px;
  z-index: 8;
}
.menuMobile {
  display: none;
}
.subtle {
  font-size: 12px;
  color: var(--muted);
}
progress {
  accent-color: var(--green);
  max-width: 100%;
}
.selection {
  max-height: 300px;
  overflow: auto;
}
.selection button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  padding: 9px;
}
.selection button:hover {
  background: var(--bg);
}
.chartbar {
  display: inline-block;
  height: 7px;
  background: #557386;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 7px;
}
.errorpage {
  padding: 16px;
}
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 184px minmax(0, 1fr);
  }
  .page {
    padding: 18px 16px;
  }
  .top {
    padding: 0 16px;
  }
  .cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 740px) {
  .layout,
  .fold .layout {
    display: block;
  }
  .side {
    display: none;
  }
  .top {
    position: relative;
    padding: 0 12px;
  }
  .menuMobile {
    display: inline-flex;
  }
  .page {
    padding: 15px 10px calc(90px + env(safe-area-inset-bottom));
  }
  .bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--nav);
    justify-content: space-around;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 2;
  }
  .bottom button {
    font-size: 11px;
    flex-direction: column;
    gap: 2px;
    min-height: 51px;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 5px;
  }
  .bottom button.active {
    background: #345166;
  }
  .btn,
  .iconbtn,
  input:not([type="checkbox"]),
  select,
  .selection button,
  .qty button {
    min-height: 44px;
  }
  .qty button {
    width: 44px;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  .metric {
    padding: 10px;
  }
  .metric strong {
    font-size: 23px;
  }
  .heading {
    margin-bottom: 12px;
  }
  .filters {
    padding: 10px;
    gap: 7px;
  }
  .filters label.field {
    flex: 1 1 42%;
  }
  .panel > .bar,
  .pad {
    padding: 12px;
  }
  .tablebox {
    max-height: none;
  }
  table,
  tbody,
  tr,
  td {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    border-bottom: 1px solid var(--line);
    padding: 8px 12px;
  }
  td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    text-align: right;
    border: 0;
  }
  td:before {
    content: attr(data-label);
    text-align: left;
    color: var(--muted);
    font-size: 12px;
  }
  #toast:not(:empty) {
    bottom: 70px;
  }
  .sig {
    height: 174px;
  }
  .top .user small {
    display: none;
  }
  .quick {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }
  h1 {
    font-size: 22px;
  }
  .access {
    padding: 22px;
  }
  .fold .side {
    display: none;
  }
}
@media (max-height: 480px) and (orientation: landscape) {
  dialog {
    max-height: 96dvh;
  }
  .sig {
    height: 48dvh;
  }
  .bottom {
    position: static;
  }
}
