:root {
  font-family: Inter, Arial, sans-serif;
  color: #1b1c20;
  background: #f5f5f4;
  font-synthesis: none;
  --red: #e92b31;
  --border: #e0e2e3;
  --muted: #686a70;
  --radius: 12px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 44px;
  background: var(--red);
  color: white;
  padding: 11px 18px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover {
  background: #c82026;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button.secondary {
  background: white;
  color: #26272a;
  border-color: var(--border);
}
button.secondary:hover {
  background: #f1f2f3;
}
button.text-button {
  background: transparent;
  color: #53565c;
  padding: 8px 0;
  min-height: 44px;
}
button.header-button {
  color: #eee;
  background: #27282b;
  font-size: 13px;
}
.icon-button {
  background: #f1f2f3;
  color: #222;
  min-width: 44px;
  padding: 4px;
  font-size: 25px;
}
a {
  color: inherit;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #c8cbce;
  border-radius: 7px;
  background: white;
  color: #1b1c20;
  min-height: 46px;
  padding: 11px 12px;
}
input::placeholder,
textarea::placeholder {
  color: #81848a;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
label input,
label select,
label textarea {
  margin-top: 7px;
}
form > label {
  margin-top: 17px;
}
form > input {
  margin-top: 8px;
}
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  min-height: 19px;
  accent-color: var(--red);
  margin: 0;
  flex-shrink: 0;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.6;
}
.checkbox input {
  margin-top: 2px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #6a94d4;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 9;
  padding: 15px;
  background: white;
}
.skip:focus {
  top: 8px;
}
.header {
  background: #131416;
  color: white;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(24px, calc((100vw - 1240px) / 2));
  gap: 20px;
}
.brand {
  font-size: 30px;
  font-weight: 850;
  letter-spacing: 2.5px;
  text-decoration: none;
  line-height: 1;
}
.brand span {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #aaaeb5;
  margin-top: 9px;
}
.account {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  min-width: 0;
}
.account > span {
  overflow-wrap: anywhere;
}
.dev-tag {
  font-size: 10px;
  letter-spacing: 1.3px;
  border: 1px solid #725128;
  color: #e7bd75;
  border-radius: 4px;
  padding: 5px 7px;
}
main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px 60px;
  min-height: calc(100vh - 163px);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 36px;
  letter-spacing: -1.1px;
  margin-bottom: 0;
  line-height: 1.2;
}
h2 {
  font-size: 21px;
  line-height: 1.35;
  margin-bottom: 18px;
}
h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #797c81;
  margin-bottom: 12px;
}
.hint {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.message {
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.message:empty {
  display: none;
}
.message.error {
  background: #fff0f0;
  color: #9d262e;
  border: 1px solid #f2c9cc;
  border-radius: 8px;
  padding: 12px 14px;
}
.message.success {
  color: #22684b;
}
.login-layout {
  min-height: 630px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 85px;
  padding: 32px 42px;
}
.welcome h1 {
  font-size: 52px;
  line-height: 1.13;
  letter-spacing: -2.3px;
  margin: 20px 0 23px;
}
.welcome > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.8;
  color: #686a70;
  max-width: 350px;
}
.welcome-note {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 50px;
}
.welcome-note p {
  font-size: 12px;
  line-height: 1.8;
  color: #84868a;
  margin: 0;
}
.welcome-note strong {
  font-weight: 500;
  color: #3f4247;
}
.note-line {
  width: 32px;
  height: 2px;
  background: var(--red);
}
.login-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 15px 45px #191b2310;
}
.login-card h2 {
  font-size: 26px;
  margin-bottom: 10px;
}
.login-card form button {
  width: 100%;
  margin-top: 17px;
}
.login-card form button.text-button {
  margin-top: 4px;
}
.login-card #code {
  font-size: 27px;
  text-align: center;
  letter-spacing: 0.36em;
  font-variant-numeric: tabular-nums;
}
.login-card #login-message {
  margin: 15px 0 0;
}
.environment-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.5;
  color: #79622f;
  background: #f5eddb;
  border: 1px solid #e8dbbc;
  border-radius: 7px;
  padding: 10px 13px;
  margin: 0 0 32px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #b18732;
  flex: none;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 25px;
}
.count {
  font-size: 20px;
  color: #92949a;
  font-weight: 400;
  vertical-align: middle;
  margin-left: 7px;
}
.filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.search-field label {
  margin-bottom: 7px;
}
.search-button {
  align-self: end;
}
.filter-details {
  grid-column: 1/-1;
}
.filter-details summary {
  cursor: pointer;
  font-size: 13px;
  color: #61646a;
  width: fit-content;
  padding: 7px 0;
  min-height: 34px;
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 15px;
  border-top: 1px solid #eeeff0;
  padding-top: 18px;
}
.filter-grid .checkbox {
  grid-column: 1/3;
  align-self: center;
}
.filter-grid button {
  grid-column: 3/5;
  justify-self: end;
}
.order-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.order-columns {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.2fr 1fr 0.65fr;
  gap: 18px;
  padding: 0 20px 10px;
  font-size: 10px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #81848a;
}
.order-card {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.2fr 1fr 0.65fr;
  text-align: left;
  gap: 18px;
  align-items: start;
  width: 100%;
  background: white;
  color: #222;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  font-weight: 400;
  min-width: 0;
}
.order-card:hover {
  background: #fff;
  border-color: #a4a7ab;
  box-shadow: 0 3px 8px #1111;
}
.order-card > div {
  min-width: 0;
}
.order-card strong {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}
.order-card p {
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.order-card .order-number {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  word-break: break-all;
}
.order-card .order-total {
  font-size: 14px;
  white-space: nowrap;
  text-align: right;
}
.muted {
  color: var(--muted);
}
.badge {
  display: inline-block;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  border-radius: 5px;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: #eef0f2;
  color: #56606c;
}
.badge.success {
  background: #e8f4ed;
  color: #246247;
}
.badge.danger {
  background: #fcebec;
  color: #a2313b;
}
.badge.pending {
  background: #f4eedf;
  color: #816332;
}
.badge.muted {
  background: #f0f0f1;
  color: #73777e;
}
.issue-count {
  display: block;
  font-size: 11px;
  color: #a3343e;
  line-height: 1.5;
  margin-top: 9px;
}
.order-meta-label {
  display: none;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 25px;
}
.empty {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 60px 25px;
  text-align: center;
}
.empty h2 {
  font-size: 20px;
  margin-bottom: 10px;
}
.empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.back-button {
  margin-bottom: 18px;
}
.detail-heading {
  align-items: flex-start;
}
.detail-heading h1 {
  font-size: 28px;
  overflow-wrap: anywhere;
}
.detail-heading .eyebrow {
  margin: 10px 0;
}
.detail-heading .order-id {
  font-size: 12px;
  word-break: break-all;
  color: #73777c;
  margin-top: 10px;
}
.detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.detail-main,
.detail-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  min-width: 0;
}
.panel h2 {
  font-size: 17px;
}
.facts {
  display: grid;
  grid-template-columns: minmax(80px, 0.65fr) minmax(0, 1fr);
  column-gap: 15px;
  row-gap: 11px;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}
.facts dt {
  color: #74777e;
  min-width: 0;
}
.facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.facts dd a {
  color: #40474f;
}
.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  font-size: 13px;
}
.status-row .badge {
  text-align: right;
}
.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border-bottom: 1px solid #eeeff0;
  padding: 15px 0;
}
.item:first-child {
  padding-top: 0;
}
.item h3 {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.item p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.6;
}
.item > strong {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.totals {
  margin-top: 20px;
}
.totals .status-row:last-child {
  border-top: 1px solid var(--border);
  padding-top: 17px;
  font-size: 18px;
  font-weight: 700;
}
.totals .status-row > span:last-child {
  white-space: nowrap;
}
.issue-box {
  background: #fff8f1;
  border: 1px solid #f0d7bb;
  border-radius: 8px;
  padding: 14px;
  margin-top: 12px;
}
.issue-box.error {
  background: #fff4f4;
  border-color: #f0cccc;
}
.issue-box h3 {
  font-size: 13px;
  margin: 0 0 5px;
}
.issue-box p {
  font-size: 13px;
  color: #66545a;
  line-height: 1.6;
  margin: 0;
}
.document-button {
  width: 100%;
  margin-top: 14px;
  text-align: left;
  overflow-wrap: anywhere;
}
.invoice-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 22px 22px;
  border-left: 1px solid #e1e3e5;
  margin-left: 4px;
}
.timeline li:before {
  content: "";
  position: absolute;
  top: 4px;
  left: -4px;
  background: #c5c8cc;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.timeline li:first-child:before {
  background: var(--red);
}
.timeline li:last-child {
  border-color: transparent;
  padding-bottom: 0;
}
.timeline p {
  font-size: 13px;
  margin: 0 0 5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.timeline time {
  font-size: 11px;
  color: var(--muted);
}
.shipment + .shipment {
  border-top: 1px solid var(--border);
  margin-top: 18px;
  padding-top: 18px;
}
.shipment h3 {
  font-size: 13px;
}
dialog {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 560px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  box-shadow: 0 25px 95px #0004;
}
dialog::backdrop {
  background: #13151a90;
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.dialog-heading h2 {
  margin: 6px 0;
  font-size: 21px;
}
.payment-callout {
  background: #f7f0df;
  border: 1px solid #eadbb2;
  padding: 13px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.65;
  color: #715b2c;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  flex-wrap: wrap;
}
.payment-review {
  margin: 20px 0;
}
.payment-review dd {
  font-weight: 600;
}
#payment-dialog .message {
  margin-top: 18px;
  margin-bottom: 0;
}
.payment-note {
  margin-top: 18px;
}
.job {
  border-top: 1px solid #eeeff0;
  margin-top: 12px;
  padding-top: 12px;
}
.job p {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 5px;
}
footer {
  max-width: 1240px;
  margin: auto;
  border-top: 1px solid var(--border);
  padding: 24px;
  color: #64676d;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
footer span {
  font-weight: 400;
}
@media (max-width: 900px) {
  .header {
    padding: 18px 24px;
  }
  .login-layout {
    gap: 35px;
    padding: 32px 0;
  }
  .welcome h1 {
    font-size: 42px;
  }
  .login-card {
    padding: 27px;
  }
  .order-columns {
    display: none;
  }
  .order-card {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
  }
  .order-card .order-total {
    text-align: left;
  }
  .order-meta-label {
    display: block;
    font-size: 10px;
    color: #8a8d93;
    margin-bottom: 6px;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-grid .checkbox {
    grid-column: 1;
  }
  .filter-grid button {
    grid-column: 2;
  }
  .detail-heading {
    flex-wrap: wrap;
  }
  .detail-actions {
    width: 100%;
  }
  .detail-actions button {
    flex: 1;
  }
}
@media (max-width: 620px) {
  main {
    padding: 16px 16px 40px;
  }
  .header {
    min-height: 76px;
    padding: 16px;
    gap: 12px;
  }
  .brand {
    font-size: 25px;
  }
  .brand span {
    font-size: 8px;
    letter-spacing: 1.25px;
  }
  .account {
    gap: 9px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  #account-email {
    display: none;
  }
  .account .header-button {
    min-height: 38px;
    padding: 8px 10px;
  }
  .login-layout {
    display: block;
    min-height: unset;
    padding: 20px 0;
  }
  .welcome {
    margin-bottom: 30px;
  }
  .welcome h1 {
    font-size: 38px;
    letter-spacing: -1.4px;
    margin: 16px 0;
  }
  .welcome > p:not(.eyebrow) {
    font-size: 14px;
    margin: 0;
  }
  .welcome-note {
    display: none;
  }
  .login-card {
    padding: 23px 20px;
  }
  .login-card h2 {
    font-size: 24px;
  }
  .environment-note {
    font-size: 11px;
    margin-bottom: 24px;
  }
  h1 {
    font-size: 30px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .page-heading > button {
    font-size: 12px;
    padding: 10px 13px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .filters {
    padding: 16px;
    gap: 12px;
  }
  .search-field {
    grid-column: 1/-1;
  }
  .search-button {
    grid-column: 1/-1;
  }
  .filter-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .filter-grid .checkbox,
  .filter-grid button {
    grid-column: 1;
  }
  .filter-grid button {
    justify-self: start;
  }
  .order-card {
    grid-template-columns: 1fr 1fr;
    padding: 17px;
    gap: 17px 12px;
  }
  .order-card > div:first-child {
    grid-column: 1/-1;
  }
  .order-card .order-number {
    font-size: 12px;
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .order-card .order-total {
    font-size: 16px;
  }
  .pagination {
    gap: 10px;
    font-size: 11px;
  }
  .pagination button {
    font-size: 12px;
    padding: 10px 12px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-heading h1 {
    font-size: 24px;
  }
  .detail-heading .order-id {
    line-height: 1.6;
  }
  .panel {
    padding: 20px;
  }
  .facts {
    font-size: 12px;
    grid-template-columns: minmax(76px, 0.6fr) minmax(0, 1fr);
    gap: 10px;
  }
  .item h3 {
    font-size: 14px;
  }
  .item > strong {
    font-size: 13px;
  }
  .item p {
    font-size: 11px;
  }
  .totals .status-row:last-child {
    font-size: 17px;
  }
  .dialog-actions {
    flex-direction: column-reverse;
  }
  .dialog-actions button {
    width: 100%;
  }
  dialog {
    padding: 20px;
  }
  .dialog-heading h2 {
    font-size: 19px;
  }
  .empty {
    padding: 42px 20px;
  }
  footer {
    font-size: 11px;
    flex-direction: column;
    padding: 23px 16px;
    gap: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
