:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #202823;
  background: #f7f8f6;
  font-synthesis: none;
  --accent: #24644e;
  --line: #e1e5df;
  --muted: #727b74;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 100px;
  max-width: 1120px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
}
a {
  color: var(--accent);
}
.brand {
  text-decoration: none;
  color: #253c30;
  font-size: 25px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}
.mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 42px;
  border: 1.5px solid var(--accent);
  border-radius: 12px 12px 18px 18px;
  font-size: 27px;
  font-weight: 450;
}
.brand-caption {
  font-size: 8px;
  letter-spacing: 2px;
  position: absolute;
  left: 50px;
  top: 31px;
}
.header-note {
  font-size: 13px;
  color: var(--muted);
}
main {
  max-width: 1040px;
  min-height: calc(100vh - 184px);
  margin: auto;
  padding: 44px 24px 64px;
}
footer {
  max-width: 1056px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 26px 16px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
footer a {
  color: var(--muted);
}
h1 {
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin: 13px 0 14px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
  margin: 0 0 20px;
}
h3 {
  font-size: 16px;
  margin: 0;
}
p {
  line-height: 1.55;
}
.sub {
  color: var(--muted);
  font-size: 15px;
  margin-top: 0;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--accent);
}
.steps {
  display: flex;
  gap: 24px;
  font-size: 12px;
  color: #879088;
  margin-bottom: 36px;
}
.steps span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.steps b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e9ede7;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 500;
}
.steps .active {
  color: var(--accent);
  font-weight: 600;
}
.steps .active b {
  background: var(--accent);
  color: white;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 48px;
  margin-top: 32px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
}
.section {
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.wide {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.5;
}
input,
select,
textarea {
  font: inherit;
  font-size: 15px;
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  min-height: 47px;
  color: #202823;
  background: white;
  border: 1px solid #d5dcd4;
  border-radius: 8px;
}
input::placeholder {
  color: #98a098;
}
input:disabled {
  background: #f2f4f0;
  color: #929992;
}
input[type="checkbox"] {
  width: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: var(--accent);
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 400;
}
button,
.button {
  font: inherit;
  min-height: 47px;
  padding: 12px 20px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: white;
  color: #263f31;
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
button:hover,
.button:hover {
  background: #f1f5ee;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.primary:hover {
  background: #194c39;
}
.full {
  width: 100%;
}
.plain {
  border: 0;
  background: none;
  padding: 6px 0;
  min-height: 36px;
}
.danger {
  color: #9c3e31;
}
.car-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}
.car-number {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  margin-right: 8px;
}
.car {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.car:first-child {
  border: 0;
  padding-top: 0;
}
.add {
  border: 1px dashed #becbc0;
  width: 100%;
  background: transparent;
}
.summary {
  position: sticky;
  top: 25px;
  align-self: start;
  background: #edf2e9;
  border: 1px solid #dce5d5;
  border-radius: 12px;
  padding: 25px;
}
.summary .price {
  font-size: 42px;
  font-weight: 550;
  letter-spacing: -1.7px;
}
.currency {
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-left: 6px;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
}
.summary hr {
  border: 0;
  border-top: 1px solid #d5dfd1;
  margin: 22px 0;
}
.small {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.summary p {
  margin-bottom: 0;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.lookup-link {
  font-size: 13px;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.narrow {
  max-width: 650px;
  margin: auto;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.bank-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.bank-row small {
  display: block;
  color: var(--muted);
  margin-bottom: 7px;
}
.bank-row strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.bank-row button {
  font-size: 12px;
  flex-shrink: 0;
}
.info {
  background: #edf2e9;
  padding: 16px 18px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.6;
  margin: 22px 0;
}
.folio {
  font-family: ui-monospace, monospace;
  font-size: 16px;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.badge {
  display: inline-block;
  border-radius: 30px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 550;
  background: #f4eddc;
  color: #816119;
}
.badge.approved {
  background: #e6f1e9;
  color: #25664e;
}
.badge.rejected {
  background: #f7e9e3;
  color: #9c3e31;
}
.badge.pending {
  background: #ecefeb;
  color: #67716a;
}
.vehicle {
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}
.vehicle strong {
  display: block;
  font-size: 15px;
}
.vehicle span {
  font-size: 13px;
  color: var(--muted);
}
.upload {
  display: block;
  background: #fafbf8;
  padding: 24px;
  border: 1px dashed #bac9b8;
  border-radius: 12px;
}
.upload input {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 12px;
}
.preview {
  max-height: 300px;
  max-width: 100%;
  display: block;
  margin: 16px auto;
  border-radius: 8px;
}
.error {
  background: #faebe7;
  color: #8c3527;
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
}
.tabs {
  display: flex;
  gap: 10px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}
.stat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.stat strong {
  display: block;
  font-size: 28px;
  margin-top: 9px;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
td,
th {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 15px 10px;
  white-space: nowrap;
}
th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.ticket {
  background: white;
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  padding: 32px;
  border-radius: 10px;
}
.ticket-title {
  font-size: 30px;
  font-weight: 650;
}
.ticket-id {
  word-break: break-all;
  font-size: 12px;
  color: var(--muted);
}
#notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #243a2c;
  color: white;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 5px 20px #0002;
  max-width: 90%;
  display: none;
  z-index: 20;
}
:focus-visible {
  outline: 3px solid #89b49e;
  outline-offset: 3px;
}
dialog {
  max-width: min(94vw, 900px);
  border: 0;
  border-radius: 12px;
  padding: 18px;
}
dialog::backdrop {
  background: #0009;
}
dialog img {
  max-width: 100%;
  max-height: 75vh;
  display: block;
}
.loading {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 760px) {
  header {
    height: 83px;
    padding: 0 22px;
  }
  .header-note {
    display: none;
  }
  main {
    padding: 28px 20px 40px;
  }
  .steps {
    gap: 19px;
    margin-bottom: 26px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 25px;
  }
  .summary {
    position: static;
  }
  .intro {
    display: block;
  }
  h1 {
    font-size: 32px;
  }
  .lookup-link {
    display: inline-block;
    margin-top: 8px;
  }
  .fields {
    gap: 16px 12px;
  }
  .panel {
    padding: 20px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  footer {
    margin: 0 20px;
    gap: 15px;
    padding: 22px 0;
  }
  .actions > * {
    flex: 1;
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .summary .price {
    font-size: 36px;
  }
}
@media print {
  header,
  footer,
  .no-print,
  #notice,
  .steps {
    display: none !important;
  }
  main {
    padding: 0;
    max-width: 100%;
  }
  .ticket {
    border: 1px solid #888;
    break-inside: avoid;
  }
  .narrow {
    max-width: 100%;
  }
  body {
    background: white;
  }
}

.brand-caption {
  white-space: nowrap;
}
.mobile-total {
  display: none;
}
@media (max-width: 760px) {
  body:has(#registration) {
    padding-bottom: 90px;
  }
  #registration .summary {
    display: none;
  }
  .mobile-total {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px max(14px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    gap: 14px;
  }
  .mobile-total span {
    display: block;
    color: var(--muted);
    font-size: 12px;
  }
  .mobile-total strong {
    display: block;
    font-size: 25px;
    letter-spacing: -0.5px;
  }
  .mobile-total small {
    font-size: 11px;
    font-weight: 400;
  }
  .mobile-total button {
    min-width: 170px;
  }
  #registration .section .fields {
    grid-template-columns: 1fr;
  }
}
