@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/open-sans-regular.woff") format("woff");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/open-sans-semibold.woff") format("woff");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/open-sans-bold.woff") format("woff");
}
:root {
  --brand: #e11e23;
  --brand-dark: #b41419;
  --brand-tint: #fff1f1;
  --brand-gray: #a0a0a0;
  --ink: #191919;
  --muted: #5b5b5b;
  --hair: #dedede;
  --bg: #f6f6f6;
  --pale: #f0f0f0;
  color-scheme: light;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.45 "Harmonia Sans Pro Cyr", "Harmonia Sans Pro", "Open Sans", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,input,textarea,select {
  font: inherit;
}
button,a,input,select,textarea {
  outline-offset: 3px;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: .55;
  cursor: default;
}
a {
  color: var(--brand-dark);
}
button {
  border: 0;
  background: none;
}
h1,h2,h3,p {
  margin: 0;
}
button svg,a svg {
  flex-shrink: 0;
}
button,label,a {
  -webkit-tap-highlight-color: transparent;
}
.workspace {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--ink);
  padding: 0 14px 18px;
  border-right: 1px solid var(--hair);
  overflow-y: auto;
}
.brand {
  align-items: center;
  display: grid;
  place-items: center;
  padding: 0;
  min-height: 168px;
  margin: 0 -14px 14px;
  border-bottom: 1px solid var(--hair);
  flex-shrink: 0;
}
.profile strong,.profile small,.data-row small,.staff-row small,.route-row small {
  display: block;
}
.nav-block {
  margin: 9px 0 23px;
}
.nav-title,.eyebrow {
  font-size: .75rem;
  letter-spacing: .085em;
  text-transform: uppercase;
  font-weight: 650;
}
.nav-title {
  display: block;
  padding: 0 12px 10px;
  color: var(--muted);
  font-size: .75rem;
}
.nav-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  font-size: .925rem;
  margin: 3px 0;
  color: #353535;
  border-radius: 4px;
}
.nav-item svg {
  stroke-width: 1.6;
}
.nav-item:hover {
  background: #f4f4f4;
}
.nav-item.selected {
  background: var(--brand-tint);
  color: var(--brand-dark);
  box-shadow: inset 3px 0 var(--brand);
  font-weight: 600;
}
.nav-item b {
  margin-left: auto;
  font-size: .75rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 20px 4px 0;
  border-top: 1px solid var(--hair);
}
.avatar,.person-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  font-size: .86rem;
  font-weight: 700;
  background: var(--pale);
  color: var(--ink);
  border-radius: 5px;
}
.profile-text {
  min-width: 0;
  flex: 1;
}
.profile strong,.profile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile strong {
  font-size: .87rem;
}
.profile small {
  font-size: .77rem;
  color: var(--muted);
}
.profile a {
  padding: 5px;
  color: var(--muted);
}
.main-column {
  min-width: 0;
}
.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 clamp(20px,3vw,54px);
  border-bottom: 1px solid var(--hair);
  background: #fff;
}
.crumb,.date,.eyebrow,.panel-label,.metric-label,.search,.filter,.actions,.link,.file-link {
  display: flex;
  align-items: center;
}
.crumb {
  gap: 10px;
  color: var(--muted);
  font-size: .87rem;
}
.crumb b {
  font-weight: 550;
  color: var(--ink);
}
.date {
  gap: 8px;
  font-size: .85rem;
  color: var(--muted);
  margin-left: auto;
}
.date svg {
  stroke-width: 1.6;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: clamp(28px,3.8vw,58px) clamp(20px,3vw,54px) 55px;
}
.title-row,.panel-header,.toolbar,.metric-label,.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.title-row {
  margin-bottom: 27px;
  flex-wrap: wrap;
}
.eyebrow {
  gap: 8px;
  font-size: .72rem;
  letter-spacing: .1em;
  margin-bottom: 8px;
  color: var(--muted);
}
.line {
  background: var(--brand);
  width: 24px;
  height: 3px;
}
.title-row h1 {
  font-size: clamp(2rem,3.05vw,3rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.055em;
}
.registry-heading .eyebrow {
  font-size: clamp(1rem, 1.24vw, 1.25rem);
  font-weight: 700;
  letter-spacing: .025em;
  color: var(--ink);
}
.registry-heading h1 {
  font-size: clamp(1.55rem, 2.35vw, 2.25rem);
  letter-spacing: -.025em;
}
.primary,.secondary,.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  font-size: .91rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 5px;
}
.primary {
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
}
.primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}
.secondary {
  border: 1px solid #d6d6d6;
  background: white;
}
.secondary:hover,.icon-btn:hover {
  background: #f3f3f3;
}
.danger {
  color: var(--brand-dark);
  background: var(--brand-tint);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 13px;
  margin: 0 0 26px;
}
.metric {
  position: relative;
  text-align: left;
  background: #fff;
  border: 1px solid var(--hair);
  padding: 17px 18px 16px;
  box-shadow: none;
  border-radius: 7px;
}
.metric:hover {
  border-color: var(--brand-gray);
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--pale);
  color: #4c4c4c;
  border-radius: 4px;
}
.metric-label {
  gap: 4px;
  font-size: .89rem;
  font-weight: 550;
  min-height: 32px;
  color: var(--muted);
}
.metric-amount {
  font-size: clamp(1.48rem,2.1vw,2.15rem);
  line-height: 1.25;
  margin: 11px 0 3px;
  overflow-wrap: anywhere;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.045em;
}
.metric-count {
  font-size: .8rem;
  color: var(--muted);
}
.metric.lead {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.lead .metric-label,.lead .metric-count {
  color: #fff;
}
.lead .metric-icon {
  background: rgb(0 0 0 / 12%);
  color: #fff;
}
.panel {
  border: 1px solid var(--hair);
  background: white;
  overflow: hidden;
  box-shadow: none;
  border-radius: 7px;
}
.panel-header {
  padding: 21px 23px 15px;
}
.panel-label {
  gap: 10px;
}
.panel-label h2,.dialog-head h2 {
  font-size: 1.17rem;
  line-height: 1.2;
  font-weight: 625;
  letter-spacing: -.035em;
}
.panel-icon,.setup-icon,.doc-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: var(--pale);
  color: var(--ink);
  border-radius: 4px;
}
.count {
  padding: 2px 8px;
  border-radius: 6px;
  background: #f1f1f1;
  color: #626262;
  font-size: .78rem;
  font-weight: 600;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  color: #696969;
  border: 1px solid var(--hair);
  background: white;
  border-radius: 4px;
}
.toolbar {
  padding: 0 23px 18px;
  justify-content: flex-start;
  gap: 10px;
}
.search,.filter {
  border: 1px solid var(--hair);
  gap: 8px;
  background: white;
  color: #7a7a7a;
  height: 39px;
  border-radius: 5px;
}
.search {
  padding: 0 10px;
  flex: 1;
  max-width: 430px;
}
.search input {
  border: 0;
  background: none;
  width: 100%;
  min-width: 0;
  outline: none;
  font-size: .9rem;
}
.search:focus-within,.filter:focus-within {
  outline: 2px solid var(--brand);
}
.search button {
  padding: 3px;
  display: grid;
}
.filter {
  padding: 0 10px;
  position: relative;
  font-size: .86rem;
}
.filter select {
  appearance: none;
  cursor: pointer;
  background: none;
  border: 0;
  color: var(--ink);
  outline: none;
  padding-right: 15px;
}
.filter>svg:last-child {
  pointer-events: none;
  position: absolute;
  right: 9px;
}
.invoice-grid {
  display: grid;
  grid-template-columns: minmax(0,1.65fr) minmax(92px,.78fr) minmax(90px,.8fr) minmax(124px,.85fr);
  gap: 12px;
  align-items: center;
  text-align: left;
}
.table-head {
  font-weight: 600;
  padding: 12px 23px;
  border-block: 1px solid #eaeaea;
  background: #f7f7f7;
  color: var(--muted);
  font-size: .8125rem;
}
.data-row,.staff-row,.route-row {
  width: 100%;
  padding: 15px 23px;
  text-align: left;
  border-bottom: 1px solid #ededed;
}
.data-row:hover,.route-row:hover,.staff-row:hover {
  background: #fbfbfb;
}
.cell-main,.staff-row,.route-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-date,.row-money,.cell-main,.staff-row,.route-row {
  font-size: .9rem;
}
.cell-main>div,.route-row>div,.staff-row>div {
  min-width: 0;
}
.cell-main strong,.cell-main small,.staff-row strong,.staff-row small,.route-row strong,.route-row small {
  overflow-wrap: anywhere;
}
.cell-main small,.staff-row small,.route-row small {
  color: var(--muted);
  font-size: .78rem;
  margin-top: 3px;
}
.doc-icon {
  background: #f3f3f3;
}
.pill {
  font-weight: 560;
  border-radius: 6px;
  display: inline-flex;
  justify-self: start;
  padding: 4px 8px;
  white-space: nowrap;
  line-height: 1.45;
  align-self: center;
  font-size: .8125rem;
}
.approval,.returned {
  color: #494949;
  background: #ededed;
}
.pay {
  color: #fff;
  background: #414141;
}
.paid {
  color: #252525;
  background: #e7e7e7;
}
.rejected {
  color: var(--brand-dark);
  background: var(--brand-tint);
}
.empty {
  min-height: 237px;
  padding: 33px 16px 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.empty-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 61px;
  height: 61px;
  margin: 10px 0 19px;
  background: #fafafa;
  color: var(--brand-gray);
  box-shadow: none;
  border: 1px solid var(--hair);
  border-radius: 6px;
}
.empty h3 {
  font-size: 1.08rem;
  letter-spacing: -.025em;
  font-weight: 600;
}
.empty p {
  color: var(--muted);
  max-width: 390px;
  font-size: .9rem;
  margin: 5px 0;
}
.link {
  gap: 5px;
  font-weight: 600;
  font-size: .9rem;
  padding: 4px 0;
  color: var(--brand-dark);
}
.setup {
  margin-top: 19px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 19px;
  background: #fff;
  border: 1px solid var(--hair);
  border-left: 3px solid var(--brand);
  border-radius: 5px;
}
.setup-icon {
  background: var(--brand-tint);
  color: var(--brand-dark);
}
.setup strong {
  font-size: .95rem;
}
.setup p {
  font-size: .85rem;
  color: #606060;
  margin: 2px 0;
}
.setup .secondary {
  margin-left: auto;
  padding: 8px 13px;
}
.staff-row .staff-extra,.route-row .pill {
  margin-left: auto;
}
.staff-row .pill,.route-row .pill {
  align-self: center;
}
.staff-extra {
  font-size: .8rem;
  color: var(--muted);
}
.notice,.form-error {
  padding: 12px 16px;
  font-size: .9rem;
  border-radius: 8px;
  color: #892222;
  background: #fff5f5;
  border: 1px solid #edcdcd;
}
.notice {
  margin-bottom: 16px;
}
.notice .link {
  display: inline;
  padding-left: 8px;
}
.mobile-menu,.scrim {
  display: none;
}
.dialog {
  width: min(540px,95vw);
  max-height: 88dvh;
  border: 1px solid var(--hair);
  padding: 0;
  color: var(--ink);
  box-shadow: 0 24px 80px #28282833;
  border-radius: 8px;
}
.dialog::backdrop {
  background: #27272776;
}
.dialog-head {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  border-bottom: 1px solid var(--hair);
  padding: 16px 22px;
}
.dialog-body {
  padding: 20px 22px 24px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field>span,.due-field>label,legend {
  font-size: .88rem;
  font-weight: 600;
}
.field input,.field select,.field textarea,.step-editor select {
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background-color: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 7px;
  padding: 9px 11px;
  font-size: .94rem;
}
.field select,.step-editor select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23555555' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.due-field { container-type: inline-size; }
.due-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}
.due-controls input, .due-controls .secondary { min-height: 44px; }
.due-controls .secondary {
  padding: 8px 14px;
  color: var(--brand-dark);
  border-radius: 7px;
}
@container (max-width: 324px) {
  .due-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .due-controls input { grid-column: 1 / -1; }
}
.field textarea {
  resize: vertical;
}
.field input:read-only {
  background: #f6f6f6;
}
.file-drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  border-radius: 9px;
  padding: 16px;
  text-align: center;
  overflow: hidden;
  background: #fafafa;
  color: var(--ink);
  border: 1px dashed var(--brand-gray);
}
.file-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.file-drop:focus-within {
  outline: 2px solid var(--brand-dark);
}
.file-drop small,.hint {
  font-size: .82rem;
  color: var(--muted);
}
.file-drop b {
  font-size: .94rem;
  overflow-wrap: anywhere;
}
.form fieldset {
  margin: 0;
  border: 1px solid var(--hair);
  border-radius: 9px;
  padding: 11px 13px;
  min-width: 0;
}
.form fieldset>label,.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 7px 0;
  font-size: .9rem;
}
.form input[type=checkbox],.form input[type=radio] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}
.form .manager-choices>label {
  min-height: 34px;
  margin: 3px 0;
  cursor: pointer;
}
.manager-choices input { flex-shrink: 0; }
.step-editor {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0;
}
.step-editor .icon-btn {
  min-width: 27px;
  height: 31px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  background: #efefef;
  color: #5d5d5d;
  border-radius: 50%;
  min-width: 24px;
  height: 24px;
  font-size: .78rem;
  font-weight: 650;
}
.invoice-summary {
  display: grid;
  gap: 1px;
}
.invoice-summary h3 {
  font-size: 1.4rem;
  letter-spacing: -.04em;
}
.invoice-summary span {
  color: var(--muted);
}
.invoice-summary b {
  font-size: 1.65rem;
  letter-spacing: -.06em;
  margin-top: 6px;
}
.facts {
  display: grid;
  gap: 6px;
  margin: 0;
}
.facts>div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 6px;
  font-size: .9rem;
}
.facts dt {
  color: var(--muted);
}
.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.file-link {
  gap: 10px;
  text-decoration: none;
  padding: 11px;
  border: 1px solid var(--hair);
  border-radius: 7px;
  overflow-wrap: anywhere;
  font-size: .9rem;
}
.file-link span {
  min-width: 0;
  flex: 1;
}
.route-detail h3,.history h3 {
  font-size: 1rem;
  margin-bottom: 9px;
}
.route-detail>div,.history>div {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: .88rem;
  padding: 5px 0;
}
.route-detail small {
  border-radius: 5px;
  padding: 2px 5px;
  color: var(--brand-dark);
  background: var(--brand-tint);
}
.complete {
  background: #333;
  color: #fff;
}
.history article {
  display: grid;
  gap: 2px;
}
.history>div {
  align-items: flex-start;
}
.history small {
  color: var(--muted);
}
.history-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 7px;
  background: var(--brand-gray);
}
.actions {
  gap: 7px;
  flex-wrap: wrap;
}
.actions>button {
  padding: 9px 12px;
}
.full {
  width: 100%;
}
.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: 92vw;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  border-radius: 9px;
  padding: 12px 18px;
  box-shadow: 0 3px 20px #0002;
  font-size: .9rem;
  background: var(--ink);
}
.spin {
  animation: spin 1s linear infinite;
}
.brand-logo {
  display: block;
  width: 85%;
  max-width: 240px;
  height: auto;
  margin: 0;
}
.mobile-sign {
  display: none;
  flex-shrink: 0;
}
.nav-item.selected:hover {
  background: #fbe6e6;
}
:focus-visible {
  outline: 2px solid var(--brand-dark);
}
.row-money, .row-date {
  font-variant-numeric: tabular-nums;
}
.returned {
  color: var(--brand-dark);
  background: var(--brand-tint);
}
@media (max-width:850px) {
  .mobile-sign {
    display: block;
  }
}
@media (max-width:420px) {
  .date {
    display: none;
  }
  .title-row h1 {
    overflow-wrap: anywhere;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media(min-width:1500px) {
  .workspace {
    grid-template-columns: 270px minmax(0,1fr);
  }
  .sidebar {
    padding-inline: 14px;
  }
  .metric {
    padding: 21px 22px;
    border-radius: 7px;
  }
  .empty {
    min-height: 290px;
  }
}
@media(max-width:1150px) {
  .workspace {
    grid-template-columns: 228px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 14px;
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 12px;
    border-radius: 7px;
  }
  .metric-icon {
    width: 27px;
    height: 27px;
  }
  .metric-label {
    font-size: .8rem;
  }
  .invoice-grid {
    grid-template-columns: minmax(0,1.45fr) minmax(80px,.8fr) minmax(75px,.8fr) minmax(106px,.9fr);
    gap: 8px;
  }
  .nav-item {
    font-size: .85rem;
  }
}
@media(max-width:850px) {
  .workspace {
    display: block;
  }
  .sidebar {
    display: none;
    padding-inline: 14px;
  }
  .sidebar.expanded {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 258px;
    z-index: 6;
  }
  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #1e1e1e70;
    z-index: 5;
  }
  .mobile-menu {
    display: inline-grid;
  }
  .topbar {
    height: 57px;
  }
  .crumb>svg:first-child {
    display: none;
  }
  .empty {
    min-height: 215px;
  }
  .date {
    font-size: .78rem;
  }
  .metric {
    padding: 14px;
    border-radius: 7px;
  }
  .title-row {
    margin-bottom: 20px;
  }
}
@media(max-width:600px) {
  main {
    padding: 25px 14px 36px;
  }
  .topbar {
    padding: 0 14px;
  }
  .crumb>span,.crumb>svg {
    display: none;
  }
  .title-row {
    gap: 7px;
    align-items: center;
  }
  .title-row:not(.registry-heading) h1 {
    font-size: 1.95rem;
  }
  .title-row .primary {
    padding: 9px 10px;
    font-size: .83rem;
    gap: 3px;
  }
  .eyebrow {
    font-size: .63rem;
    letter-spacing: .07em;
    margin-bottom: 5px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 0 0 16px;
  }
  .metric {
    padding: 11px 13px;
    border-radius: 7px;
  }
  .metric-amount {
    font-size: 1.55rem;
    margin: 4px 0;
  }
  .metric-count {
    font-size: .75rem;
  }
  .panel-header {
    padding: 15px 12px 12px;
  }
  .panel-label {
    gap: 7px;
  }
  .panel-label h2 {
    font-size: 1.04rem;
  }
  .panel-icon {
    width: 29px;
    height: 29px;
  }
  .toolbar {
    gap: 6px;
    padding: 0 12px 11px;
  }
  .search {
    max-width: none;
    min-width: 0;
  }
  .filter {
    padding-inline: 7px;
  }
  .filter>svg:first-child {
    display: none;
  }
  .filter select,.search input {
    font-size: .82rem;
  }
  .table-head {
    display: none;
  }
  .data-row.invoice-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 5px;
    padding: 12px;
  }
  .cell-main {
    grid-column: 1;
    grid-row: 1/3;
    gap: 7px;
  }
  .row-date {
    display: none;
  }
  .row-money,.data-row .pill {
    justify-self: end;
  }
  .empty {
    border-top: 1px solid var(--hair);
    min-height: 215px;
  }
  .empty p {
    max-width: 285px;
  }
  .setup {
    flex-wrap: wrap;
    gap: 9px;
    padding: 13px;
    margin-top: 12px;
  }
  .setup>div {
    flex: 1;
    min-width: 170px;
  }
  .setup-icon {
    align-self: flex-start;
  }
  .setup .secondary {
    margin: 0 0 0 42px;
    padding: 5px 11px;
  }
  .staff-row,.route-row {
    padding: 12px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .staff-row>div,.route-row>div {
    flex: 1;
  }
  .staff-extra {
    display: none;
  }
  .dialog-body {
    padding: 15px;
  }
  .dialog-head {
    padding: 13px 15px;
  }
  .form-grid {
    gap: 8px;
  }
  .step-editor {
    gap: 2px;
  }
  .step-editor select {
    font-size: .84rem;
  }
  .date {
    font-size: .72rem;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    animation: none!important;
    scroll-behavior: auto!important;
  }
}

.login-page {display:grid;place-items:center;min-height:100dvh;padding:24px 16px}
.login-panel {width:min(100%,440px);padding:36px clamp(20px,5vw,36px);background:white;border:1px solid var(--hair);border-radius:12px}
.login-logo {display:block;width:min(220px,100%);margin:12px auto 46px}
.login-panel h1 {font-size:clamp(24px,6vw,32px);line-height:1.15}
.login-panel>p {color:var(--muted);margin:14px 0 24px}
.password-actions {display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:18px}

.plan-options, .calendar-note { background: #fff9ec; border: 1px solid #e8c89c; border-radius: 8px; padding: 14px; }
.plan-options p, .calendar-note p { margin: 0 0 10px; color: #70511e; }
.plan-options label { align-items: flex-start; }
.plan-options label > span { display: grid; }
.plan-options label > span::first-letter { text-transform: uppercase; }
.plan-options small, .detail-deadline { display: block; color: var(--muted); font-size: .82rem; }
.queue-filters { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 20px 14px; }
.queue-filters button { background: white; border: 1px solid var(--hair); border-radius: 6px; padding: 6px 12px; }
.queue-filters button[aria-pressed=true] { border-color: var(--brand); color: var(--brand-dark); background: #fff4f3; }
.queue-filters b { margin-left: 4px; }
.invoice-grid.with-plan { grid-template-columns: minmax(100px,1.35fr) minmax(104px,1fr) minmax(92px,.8fr) minmax(85px,.8fr) minmax(105px,.8fr); gap: 9px; }
.date-cell { display: grid; justify-items: start; gap: 4px; }
.deadline-row .cell-main > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.deadline-row .cell-main strong,.deadline-row .cell-main small { display: block; }
.deadline-badge { display: inline-block; line-height: 1.3; font-size: .78rem; font-weight: 600; padding: 3px 6px; border-radius: 4px; }
.deadline-badge.late { background: #ffebeb; color: #a21920; }
.deadline-badge.today { background: #fff4d8; color: #764e08; }
.deadline-badge.historic { background: #f0f0f0; color: #565656; }
.mobile-caption { display: none; }
.report-filters { padding: 20px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.report-filters .field { min-width: 0; }
.report-filters .field :is(select,input) { width: 100%; min-width: 0; }
.report-filters .check { align-self: end; padding-block: 8px; }
.report-heading { padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--hair); }
.report-heading h2, .report-heading p { margin: 0; }
.report-heading p { color: var(--muted); margin-top: 4px; }
.report-actions { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.report-table-wrap { overflow-x: auto; }
.report-table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.report-table th,.report-table td { border-top: 1px solid var(--hair); padding: 12px; text-align: right; white-space: nowrap; }
.report-table th:first-child { text-align: left; padding-left: 20px; white-space: normal; min-width: 150px; }
.report-table thead { background: #f5f5f5; color: var(--muted); }
.report-warning { margin: 0 20px 16px; }
@media (max-width: 1050px) { .report-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) {
  .table-head.invoice-grid { display: none; }
  .data-row.deadline-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; padding: 12px; align-items: start; }
  .deadline-row .cell-main { grid-column: 1; grid-row: 1; }
  .deadline-row .row-money { grid-column: 2; grid-row: 1; justify-self: end; }
  .deadline-row .pill { grid-column: 2; grid-row: 2; justify-self: end; }
  .deadline-row .date-cell { grid-column: 1; grid-row: 2; display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 6px; }
  .deadline-row .plan-cell { grid-row: 3; grid-column: 1 / -1; }
  .mobile-caption { display: inline; color: var(--muted); }
  .queue-filters { padding-inline: 12px; }
  .report-filters { padding: 14px; gap: 10px; }
}
@media (max-width: 430px) { .report-filters { grid-template-columns: minmax(0,1fr); } }

.notice-unavailable {display:grid;gap:3px;padding:12px 14px;border:1px solid var(--hair);border-radius:8px;color:var(--muted)}
