.transport-page {
  --transport-accent: #0f766e;
  --transport-accent-strong: #115e59;
  --transport-accent-soft: #ecfdf5;
  --transport-blue: #2563eb;
  --transport-blue-soft: #eff6ff;
  --transport-bg: #f4f6f8;
  --transport-border: #d9e2ec;
  --transport-border-strong: #a8b7c7;
  --transport-danger: #be123c;
  --transport-danger-soft: #fff1f2;
  --transport-disabled-bg: #f1f5f9;
  --transport-disabled-border: #d8e1eb;
  --transport-disabled-text: #94a3b8;
  --transport-green: #15803d;
  --transport-green-soft: #f0fdf4;
  --transport-ink: #111827;
  --transport-muted: #667085;
  --transport-panel: #ffffff;
  --transport-row-alt: #fbfcfe;
  --transport-warn: #a16207;
  --transport-warn-soft: #fffbeb;
  background: var(--transport-bg);
  color: var(--transport-ink);
  letter-spacing: 0;
}

.transport-main {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 auto;
  max-width: 1400px;
  min-height: 100vh;
  padding: 12px 10px 54px;
  width: 100%;
}

.transport-route-library,
.transport-list-section {
  background: var(--transport-panel);
  border: 1px solid var(--transport-border);
  border-radius: 8px;
}

.transport-hero {
  --work-entry-header-accent: var(--transport-accent);
  --work-entry-header-accent-left: 10px;
  --work-entry-header-border: var(--transport-border);
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 10px 10px 10px 24px;
}

.transport-title-user {
  font-size: 14px;
  min-height: 30px;
  padding: 4px 11px;
}

.transport-title-user strong {
  font-size: inherit;
}

.transport-header-actions {
  display: contents;
}

.transport-route-library-header p,
.transport-list-header p {
  color: var(--transport-muted);
  font-size: 12px;
  font-weight: 800;
  margin: 0;
}

.transport-period-controls {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: 38px minmax(0, 1fr) 38px 38px;
  width: 100%;
}

.transport-primary-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  grid-column: 2;
  grid-row: 1;
  justify-content: flex-end;
  min-width: 0;
}

.transport-icon-button,
.transport-primary-button,
.transport-secondary-button,
.transport-danger-button,
.transport-tool-button {
  align-items: center;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  gap: 7px;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
}

.transport-icon-button {
  background: #ffffff;
  border: 1px solid #d7e0ea;
  color: #1f2937;
  height: 34px;
  min-height: 34px;
  min-width: 36px;
  padding: 0;
  width: 38px;
}

.transport-icon-button[aria-pressed="true"] {
  background: var(--transport-accent-soft);
  border-color: #99f6e4;
  color: var(--transport-accent-strong);
}

.transport-print-execute-button {
  min-width: 78px;
}

.transport-submit-button,
.transport-retract-button,
.transport-approval-button,
.transport-month-approval-button {
  min-width: 88px;
  padding: 0 14px;
  white-space: nowrap;
}

.transport-month-approval-button {
  min-width: 112px;
}

.transport-primary-actions .transport-header-command-button {
  flex: 0 0 78px;
  font-size: 13px;
  height: 32px;
  min-height: 32px;
  min-width: 78px;
  padding: 0 10px;
  width: 78px;
}

.transport-primary-actions .transport-approval-button {
  height: 32px;
  min-height: 32px;
}

.transport-primary-actions .transport-month-approval-button {
  height: 32px;
  min-height: 32px;
}

.transport-icon-button[hidden],
.transport-primary-button[hidden],
.transport-secondary-button[hidden],
.transport-danger-button[hidden],
.transport-tool-button[hidden],
.transport-entry-action-button[hidden] {
  display: none !important;
}

.transport-primary-button {
  background: var(--transport-accent);
  border: 1px solid var(--transport-accent-strong);
  color: #ffffff;
}

.transport-primary-actions .transport-primary-button:not(:disabled),
.transport-primary-actions .transport-secondary-button:not(:disabled),
#reloadButton:not(:disabled) {
  background: #475467;
  border-color: #475467;
  color: #ffffff;
}

.transport-primary-actions .transport-primary-button:not(:disabled):hover,
.transport-primary-actions .transport-primary-button:not(:disabled):focus,
.transport-primary-actions .transport-secondary-button:not(:disabled):hover,
.transport-primary-actions .transport-secondary-button:not(:disabled):focus,
#reloadButton:not(:disabled):hover,
#reloadButton:not(:disabled):focus {
  background: #344054;
  border-color: #344054;
  color: #ffffff;
}

.transport-secondary-button,
.transport-tool-button {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.transport-danger-button {
  background: #ffffff;
  border: 1px solid #fecdd3;
  color: var(--transport-danger);
}

.transport-icon-button:hover,
.transport-icon-button:focus,
.transport-secondary-button:hover,
.transport-secondary-button:focus,
.transport-tool-button:hover,
.transport-tool-button:focus {
  background: var(--transport-blue-soft);
  border-color: #bfdbfe;
  color: #1d4ed8;
  outline: none;
}

.transport-primary-button:hover,
.transport-primary-button:focus {
  background: var(--transport-accent-strong);
  outline: none;
}

.transport-danger-button:hover,
.transport-danger-button:focus {
  background: var(--transport-danger-soft);
  outline: none;
}

.transport-icon-button:disabled,
.transport-primary-button:disabled,
.transport-secondary-button:disabled,
.transport-danger-button:disabled,
.transport-tool-button:disabled {
  background: var(--transport-disabled-bg);
  border-color: var(--transport-disabled-border);
  box-shadow: none;
  color: var(--transport-disabled-text);
  cursor: not-allowed;
  opacity: 1;
}

.transport-icon-button:focus-visible,
.transport-primary-button:focus-visible,
.transport-secondary-button:focus-visible,
.transport-danger-button:focus-visible,
.transport-tool-button:focus-visible,
.transport-month:focus-visible,
.transport-field input:focus-visible,
.transport-field select:focus-visible {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
  outline: none;
}

.transport-primary-actions button:not(:disabled):focus-visible,
.transport-period-controls button:not(:disabled):focus-visible,
.transport-period-controls .transport-month:focus-visible {
  box-shadow: 0 0 0 3px rgba(71, 84, 103, 0.2);
  outline: 2px solid #667085;
  outline-offset: 2px;
}

.transport-icon-button svg,
.transport-primary-button svg,
.transport-secondary-button svg,
.transport-danger-button svg,
.transport-tool-button svg,
.transport-entry-action-button svg,
.transport-route-template-delete svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.transport-month,
.transport-field input,
.transport-field select {
  background: #ffffff;
  border: 1px solid #c8d3db;
  border-radius: 7px;
  color: var(--transport-ink);
  font: inherit;
  font-size: 14px;
  min-height: 40px;
  padding: 7px 10px;
  width: 100%;
}

.transport-month {
  font-weight: 900;
  min-height: 34px;
  text-align: center;
}

.transport-closing-control {
  align-items: center;
  background: #f4f7f6;
  border: 1px solid #d1dbd7;
  border-radius: 7px;
  display: flex;
  gap: 4px;
  grid-column: 1 / -1;
  min-height: 38px;
  min-width: 0;
  padding: 3px;
}

.transport-closing-control[hidden] {
  display: none;
}

.transport-closing-option {
  align-items: center;
  border-radius: 5px;
  color: #5e6d67;
  cursor: pointer;
  display: inline-flex;
  gap: 5px;
  min-height: 30px;
  padding: 4px 8px;
  position: relative;
  white-space: nowrap;
}

.transport-closing-option input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.transport-closing-option span {
  font-size: 12px;
  font-weight: 900;
}

.transport-closing-option small {
  color: #77847f;
  font-size: 10px;
  font-weight: 700;
}

.transport-closing-option:has(input:checked) {
  background: #ffffff;
  box-shadow: 0 0 0 1px #9db8ad;
  color: #1f5f50;
}

.transport-closing-option:has(input:checked) small {
  color: #527168;
}

.transport-closing-option:has(input:focus-visible) {
  outline: 2px solid #667085;
  outline-offset: 2px;
}

.transport-closing-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.6;
}

.transport-page.is-transport-print-view .transport-route-library,
.transport-page.is-transport-print-view .transport-list-section {
  display: none;
}

.transport-page .status.warning {
  color: var(--transport-warn);
}

.transport-print-preview {
  background: #eef2f4;
  border: 1px solid var(--transport-border);
  border-radius: 8px;
  overflow-x: auto;
  padding: 14px;
}

.transport-print-preview[hidden] {
  display: none;
}

.transport-print-toolbar-anchor {
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  left: 0;
  margin: 0 0 10px;
  pointer-events: none;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 5;
}

.transport-print-zoom-toolbar {
  align-items: center;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 6px;
  pointer-events: auto;
  width: max-content;
}

.transport-print-zoom-toolbar button {
  align-items: center;
  background: #374151;
  border: 1px solid #4b5563;
  border-radius: 6px;
  box-sizing: border-box;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  min-width: 34px;
  padding: 0 9px;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.transport-print-zoom-toolbar button:hover,
.transport-print-zoom-toolbar button:focus-visible {
  background: #1f2937;
  border-color: #1f2937;
  color: #ffffff;
}

.transport-print-zoom-toolbar button:disabled {
  background: rgba(55, 65, 81, 0.42);
  border-color: rgba(75, 85, 99, 0.25);
  color: rgba(255, 255, 255, 0.64);
  cursor: not-allowed;
}

.transport-print-zoom-value {
  font-variant-numeric: tabular-nums;
  min-width: 58px !important;
}

.transport-print-zoom-toolbar #transportPrintZoomOutButton,
.transport-print-zoom-toolbar #transportPrintZoomInButton {
  border-radius: 50%;
  height: 32px;
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  width: 32px;
}

.transport-print-zoom-fit,
.transport-print-toolbar-print {
  min-width: 34px !important;
  padding: 0 !important;
  width: 34px;
}

.transport-print-zoom-fit svg,
.transport-print-toolbar-print svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.transport-print-preview-sheet {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
  box-sizing: border-box;
  margin: 0 auto;
  min-height: 210mm;
  min-width: 297mm;
  padding: 8mm;
  width: 297mm;
  zoom: var(--transport-print-preview-zoom, 1);
}

.transport-print-preview-header {
  align-items: start;
  border-bottom: 2px solid #23313a;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  padding-bottom: 8px;
}

.transport-print-preview-header h2 {
  color: var(--transport-ink);
  font-size: 15pt;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.transport-print-preview-header p {
  color: var(--transport-muted);
  font-size: 12px;
  font-weight: 800;
  margin: 4px 0 0;
}

.transport-print-preview-meta {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
}

.transport-print-preview-meta div {
  border: 1px solid #9faeb8;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  margin-left: -1px;
  min-width: 0;
}

.transport-print-preview-meta div:first-child {
  margin-left: 0;
}

.transport-print-preview-meta dt,
.transport-print-preview-meta dd {
  margin: 0;
  padding: 4px 7px;
}

.transport-print-preview-meta dt {
  background: #e5edf1;
  border-right: 1px solid #9faeb8;
  color: #1d2b34;
  font-size: 8pt;
  font-weight: 900;
}

.transport-print-preview-meta dd {
  align-items: center;
  color: var(--transport-ink);
  display: flex;
  font-size: 8pt;
  font-weight: 900;
  white-space: nowrap;
}

#printTargetTotal {
  font-variant-numeric: tabular-nums;
  justify-content: flex-end;
  text-align: right;
}

.transport-print-preview .print-reconciliation-hash {
  align-items: baseline;
  color: var(--transport-muted);
  display: flex;
  font-size: 6.5px;
  gap: 8px;
  justify-content: flex-end;
  margin: 6px 0 0;
  white-space: nowrap;
}

.transport-print-preview .print-reconciliation-hash code {
  color: var(--transport-ink);
  font-family: Consolas, "Courier New", monospace;
  font-size: inherit;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.transport-print-preview-table-wrap {
  margin-top: 10px;
  overflow: visible;
  padding-bottom: 0;
}

.transport-print-preview-table {
  border-collapse: collapse;
  min-width: 100%;
  table-layout: fixed;
  width: 100%;
}

.transport-print-preview-table th,
.transport-print-preview-table td {
  border: 1px solid #9faeb8;
  line-height: 1.05;
  overflow: hidden;
  padding: 0.35mm 0.5mm;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
  word-break: normal;
}

.transport-print-preview-table th {
  background: #dfe8ed;
  color: #1d2b34;
  font-size: 10px;
  font-weight: 900;
  position: static !important;
  text-align: center;
  top: auto !important;
  z-index: auto !important;
}

.transport-print-preview-table td {
  font-size: 10px;
}

.transport-print-preview-table tbody tr:nth-child(even) td {
  background: #f6f8f9;
}

#printPreviewRows tr,
#printPreviewRows tr > td {
  height: 5.3mm;
}

.transport-print-preview-table .is-print-placeholder td:not(.print-no) {
  color: transparent;
}

.transport-print-preview-table .print-no {
  text-align: center;
  width: 3.3%;
}

.transport-print-preview-table .print-date {
  text-align: center;
  width: 6.8%;
}

.transport-print-preview-table .print-project {
  width: 6%;
}

.transport-print-preview-table .print-destination {
  width: 13%;
}

.transport-print-preview-table .print-purpose {
  width: 14%;
}

.transport-print-preview-table .print-type {
  text-align: center;
  width: 6.2%;
}

.transport-print-preview-table .print-point {
  width: 13.8%;
}

.transport-print-preview-table .print-amount {
  font-variant-numeric: tabular-nums;
  text-align: right;
  width: 10.7%;
}

.transport-print-preview-table .print-no,
.transport-print-preview-table .print-date,
.transport-print-preview-table .print-project,
.transport-print-preview-table .print-type,
.transport-print-preview-table .print-amount {
  white-space: nowrap;
}

.transport-print-preview-table .print-empty {
  color: var(--transport-muted);
  text-align: center;
}

.transport-print-preview-total th,
.transport-print-preview-total td {
  background: #edf3f6;
  font-weight: 900;
}

.transport-print-preview-table .transport-print-preview-total tr,
.transport-print-preview-table .transport-print-preview-total th,
.transport-print-preview-table .transport-print-preview-total td {
  height: 5.3mm;
}

.transport-route-library {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.transport-route-library-header,
.transport-list-header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.transport-route-library-header > div,
.transport-list-header > div {
  min-width: 0;
}

.transport-route-library-header h2 {
  color: var(--transport-ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.transport-list-header > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.transport-list-header p {
  flex-basis: 100%;
}

.transport-list-badges {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.transport-list-badge {
  align-items: center;
  background: #f7fafc;
  border: 1px solid #dbe5ed;
  border-radius: 999px;
  color: var(--transport-muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 5px;
  min-height: 28px;
  padding: 3px 9px;
  white-space: nowrap;
}

.transport-list-badge strong {
  color: var(--transport-ink);
  font-size: 13px;
}

.transport-list-badge small {
  color: inherit;
  font-size: 10px;
}

.transport-list-badge.is-total {
  background: var(--transport-green-soft);
  border-color: #bbf7d0;
  color: var(--transport-green);
}

.transport-list-total {
  align-items: baseline;
  display: inline-flex;
  gap: 4px;
}

.transport-route-template-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.transport-route-template-empty {
  color: var(--transport-muted);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  padding: 2px 0;
}

.transport-route-template {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  color: var(--transport-ink);
  display: grid;
  flex: 0 0 220px;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 32px;
  min-height: 82px;
  padding: 10px;
}

.transport-route-template:hover,
.transport-route-template:focus-within {
  border-color: #bfdbfe;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.transport-route-template-call {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.transport-route-template-call:hover,
.transport-route-template-call:focus {
  background: transparent;
  color: inherit;
  outline: none;
}

.transport-route-template-call strong,
.transport-route-template-call span,
.transport-route-template-call small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transport-route-template-call strong {
  font-size: 13px;
  font-weight: 400;
}

.transport-route-template-call span {
  color: #334155;
  font-size: 12px;
  font-weight: 400;
}

.transport-route-template-call small {
  color: var(--transport-muted);
  font-size: 11px;
  font-weight: 400;
}

.transport-route-template-delete {
  align-items: center;
  align-self: start;
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: 7px;
  color: var(--transport-danger);
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.transport-route-template-delete:hover,
.transport-route-template-delete:focus {
  background: var(--transport-danger-soft);
  border-color: #fecdd3;
  color: var(--transport-danger);
  outline: none;
}

.transport-list-section {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.transport-list-header {
  border-bottom: 1px solid var(--transport-border);
  min-height: 64px;
  padding: 13px 16px;
}

.transport-list-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.transport-list-tools .transport-primary-button,
.transport-list-tools .transport-secondary-button {
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
}

.transport-list-tools [hidden] {
  display: none;
}

.transport-entry-list {
  align-content: start;
  background: #f8fafc;
  display: grid;
  gap: 8px;
  max-height: none;
  min-height: 220px;
  overflow: auto;
  padding: 10px;
}

.transport-empty,
.transport-entry-empty {
  color: var(--transport-muted);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  padding: 12px;
}

.transport-entry {
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.transport-entry:hover,
.transport-entry:focus-within {
  border-color: #bfdbfe;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.transport-entry[data-locked="true"] {
  background: #f1f5f9;
}

.transport-entry.has-attention {
  background: #fffbeb;
  border-color: #f59e0b;
}

.transport-entry.has-attention:hover,
.transport-entry.has-attention:focus-within {
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.14);
}

.transport-entry.is-order-mode {
  border-color: #bfdbfe;
  cursor: default;
}

.transport-entry-header {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.transport-entry-date {
  align-items: center;
  align-self: center;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 30px;
  min-width: 66px;
  padding: 0 8px;
  white-space: nowrap;
}

.transport-entry-date.is-saturday {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.transport-entry-date.is-sunday {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
}

.transport-entry-date.is-empty {
  background: #f8fafc;
  border-color: #d7e0ea;
  color: #64748b;
  min-width: 84px;
}

.transport-entry-title {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.transport-entry-title strong {
  color: var(--transport-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transport-entry-title span {
  color: var(--transport-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transport-entry-amount {
  color: var(--transport-ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  white-space: nowrap;
}

.transport-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.transport-entry-chip {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  min-height: 24px;
  padding: 0 8px;
}

.transport-entry-chip.is-saved {
  background: var(--transport-green-soft);
  border-color: #bbf7d0;
  color: var(--transport-green);
}

.transport-entry-chip.is-empty,
.transport-entry-chip.is-draft {
  background: var(--transport-warn-soft);
  border-color: #fde68a;
  color: var(--transport-warn);
}

.transport-entry-chip.is-locked {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #475569;
}

.transport-entry-chip.is-attention {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.transport-entry-chip.is-project {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transport-entry-actions {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.transport-entry-actions.is-order {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.transport-entry-action-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d7e0ea;
  border-radius: 7px;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 5px;
  justify-content: center;
  min-height: 36px;
  padding: 0 8px;
}

.transport-entry-action-button:hover,
.transport-entry-action-button:focus {
  background: var(--transport-blue-soft);
  border-color: #bfdbfe;
  color: #1d4ed8;
  outline: none;
}

.transport-entry-action-button.is-danger {
  border-color: #fecdd3;
  color: var(--transport-danger);
}

.transport-entry-action-button:disabled {
  background: var(--transport-disabled-bg);
  border-color: var(--transport-disabled-border);
  box-shadow: none;
  color: var(--transport-disabled-text);
  cursor: not-allowed;
  opacity: 1;
}

.transport-editor-backdrop {
  align-items: end;
  background: rgba(15, 23, 42, 0.38);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 10px;
  position: fixed;
  z-index: 90;
}

.transport-editor-backdrop[hidden] {
  display: none;
}

.transport-editor-panel {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 20px);
  max-width: 760px;
  min-height: 0;
  overflow: hidden;
  width: min(100%, 760px);
}

.transport-editor-header,
.transport-editor-footer {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px;
}

.transport-editor-header {
  border-bottom: 1px solid var(--transport-border);
}

.transport-editor-header h2 {
  color: var(--transport-ink);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
}

.transport-editor-header p {
  color: var(--transport-muted);
  font-size: 12px;
  font-weight: 800;
  margin: 3px 0 0;
}

.transport-editor-route-tools {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 10px 12px 0;
}

.transport-tool-button {
  font-size: 12px;
  min-width: 0;
  padding: 0 8px;
}

.transport-editor-form {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.transport-field {
  color: #475569;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 5px;
  min-width: 0;
}

.transport-field span,
.transport-field > label {
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}

.transport-field input[type="number"] {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.transport-field input.transport-field-invalid,
.transport-field select.transport-field-invalid,
.transport-field input.transport-station-unmatched {
  background: var(--transport-danger-soft);
  border-color: #fda4af;
}

.transport-project-field {
  position: relative;
}

.transport-project-results {
  background: #ffffff;
  border: 1px solid #cbd8e3;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
  display: grid;
  gap: 0;
  max-height: 220px;
  min-width: 0;
  overflow-y: auto;
  z-index: 5;
}

.transport-project-results[hidden] {
  display: none;
}

.transport-project-result {
  align-items: center;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e2e8ee;
  color: #1f2937;
  cursor: pointer;
  display: grid;
  gap: 2px 8px;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 46px;
  padding: 7px 9px;
  text-align: left;
  width: 100%;
}

.transport-project-result:last-child {
  border-bottom: 0;
}

.transport-project-result:hover,
.transport-project-result:focus,
.transport-project-result.is-active {
  background: #eff6ff;
  outline: none;
}

.transport-project-code {
  color: var(--transport-accent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  grid-row: 1 / span 2;
}

.transport-project-name {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.transport-project-meta {
  color: var(--transport-muted);
  font-size: 11px;
  font-weight: 800;
}

.transport-project-code,
.transport-project-name,
.transport-project-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transport-project-empty {
  color: var(--transport-muted);
  font-size: 12px;
  font-weight: 800;
  padding: 10px;
}

.transport-editor-footer {
  border-top: 1px solid var(--transport-border);
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr);
}

.transport-editor-footer .transport-primary-button {
  min-width: 0;
}

.transport-station-dropdown {
  background: #ffffff;
  border: 1px solid #93a4b2;
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
  max-height: 260px;
  overflow-y: auto;
  position: fixed;
  z-index: 110;
}

.transport-station-option {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid #e2e8ee;
  color: #26323d;
  cursor: pointer;
  display: block;
  line-height: 1.35;
  min-height: 44px;
  padding: 7px 9px;
  text-align: left;
  width: 100%;
}

.transport-station-option:hover,
.transport-station-option.is-active {
  background: #eaf2f8;
}

.transport-station-option-name {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.transport-station-option-label {
  color: #596773;
  display: block;
  font-size: 11px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 759px) {
  .transport-title-user {
    display: none;
  }

  .transport-primary-actions button:disabled {
    display: none;
  }

  .transport-print-execute-button {
    display: none !important;
  }
}

@media (min-width: 760px) {
  .transport-main {
    gap: 12px;
    padding: 14px 18px 54px;
  }

  .transport-hero {
    --work-entry-header-accent-left: 14px;
    align-items: center;
    gap: 12px;
    grid-template-columns: minmax(180px, 1fr) auto;
    padding: 10px 16px 10px 28px;
  }

  .transport-header-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
  }

  .transport-period-controls {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 38px 150px 38px 38px;
    width: auto;
  }

  .transport-period-controls.has-visible-closing {
    grid-template-columns: minmax(270px, auto) 38px 150px 38px 38px;
  }

  .transport-closing-control {
    grid-column: auto;
    min-width: 270px;
  }

  .transport-primary-actions {
    grid-column: auto;
    grid-row: auto;
    justify-content: flex-end;
  }

  .transport-print-preview {
    padding: 18px;
  }

  .transport-print-preview-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .transport-print-preview-meta {
    grid-template-columns: minmax(150px, auto) minmax(100px, auto) minmax(130px, auto) minmax(130px, auto) minmax(100px, auto);
  }

  .transport-route-library {
    padding: 10px 12px;
  }

  .transport-route-template {
    flex-basis: 260px;
  }

  .transport-entry-list {
    gap: 8px;
    min-height: 160px;
    padding: 10px;
  }

  .transport-entry {
    align-items: center;
    gap: 8px;
    grid-template-areas: "entry-main entry-meta entry-actions";
    grid-template-columns: minmax(288px, 360px) minmax(260px, 1fr) auto;
    padding: 10px;
  }

  .transport-entry-header {
    align-items: center;
    grid-area: entry-main;
    grid-template-columns: auto minmax(0, 1fr) max-content;
    justify-content: stretch;
    width: 100%;
  }

  .transport-entry-date {
    min-height: 32px;
  }

  .transport-entry-title {
    max-width: 100%;
  }

  .transport-entry-amount {
    justify-self: start;
  }

  .transport-entry-meta {
    align-items: stretch;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    flex-wrap: nowrap;
    gap: 0;
    grid-area: entry-meta;
    justify-content: flex-start;
    min-height: 34px;
    min-width: 0;
    overflow: hidden;
  }

  .transport-entry-chip {
    background: transparent;
    border: 0;
    border-left: 1px solid #e2e8f0;
    border-radius: 0;
    color: #475569;
    flex: 0 0 auto;
    justify-content: center;
    line-height: 1;
    max-width: none;
    min-height: 32px;
    min-width: 0;
    overflow: hidden;
    padding: 0 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .transport-entry-chip:first-child {
    border-left: 0;
  }

  .transport-entry-chip:nth-child(1),
  .transport-entry-chip:nth-child(2) {
    width: 54px;
  }

  .transport-entry-chip:nth-child(3) {
    width: 70px;
  }

  .transport-entry-chip:nth-child(n + 4) {
    flex: 1 1 auto;
    justify-content: flex-start;
    min-width: 72px;
  }

  .transport-entry-chip.is-saved,
  .transport-entry-chip.is-empty,
  .transport-entry-chip.is-draft,
  .transport-entry-chip.is-locked,
  .transport-entry-chip.is-attention {
    background: transparent;
    border-color: #e2e8f0;
  }

  .transport-entry-chip.is-saved {
    color: var(--transport-green);
  }

  .transport-entry-chip.is-empty,
  .transport-entry-chip.is-draft {
    color: var(--transport-warn);
  }

  .transport-entry-chip.is-locked {
    color: #475569;
  }

  .transport-entry-chip.is-attention {
    color: #c2410c;
    width: 64px;
  }

  .transport-entry-chip.is-project {
    flex: 1 1 170px;
    justify-content: flex-start;
  }

  .transport-entry-actions {
    grid-area: entry-actions;
    grid-template-columns: repeat(5, 40px);
    justify-self: end;
    width: max-content;
  }

  .transport-entry-actions.is-order {
    grid-template-columns: repeat(2, 40px);
  }

  .transport-entry-action-button {
    font-size: 0;
    gap: 0;
    padding: 0;
  }

  .transport-entry-action-button span {
    display: none;
  }

  .transport-entry-action-button svg {
    margin: 0;
  }

  .transport-editor-backdrop {
    align-items: center;
    padding: 24px;
  }

  .transport-editor-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transport-field-wide {
    grid-column: 1 / -1;
  }

  .transport-editor-footer {
    display: flex;
  }

  .transport-editor-footer .transport-secondary-button {
    margin-left: auto;
  }
}

@media (min-width: 1280px) {
  .transport-main {
    align-content: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .transport-hero {
    grid-column: 1 / -1;
  }

  .transport-route-library {
    align-self: stretch;
    contain: layout size;
    grid-column: 2 / 3;
    grid-row: 2 / span 2;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    max-height: calc(100vh - 112px);
    min-height: 0;
    overflow: hidden;
  }

  .transport-list-section {
    grid-column: 1 / 2;
  }

  .transport-print-preview {
    grid-column: 1 / -1;
  }

  .transport-route-template-list {
    display: grid;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
  }

  .transport-route-template {
    flex-basis: auto;
  }

  .transport-entry-list {
    max-height: calc(100vh - 224px);
  }
}

@page {
  size: 297mm 210mm;
  margin: 8mm;
}

@media print {
  html:root,
  body.transport-page {
    background: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.transport-page.app-shell-page {
    padding-left: 0 !important;
  }

  .app-sidebar,
  .app-footer,
  .transport-hero,
  .transport-route-library,
  .transport-list-section,
  .transport-editor-backdrop,
  .transport-print-toolbar-anchor {
    display: none !important;
  }

  .transport-main {
    display: block;
    margin: 0;
    max-width: none;
    min-height: 0;
    padding: 0;
    width: 100% !important;
  }

  body.transport-page:not(.is-transport-print-view) .transport-print-preview {
    display: none !important;
  }

  body.transport-page.is-transport-print-view .transport-print-preview {
    border: 0;
    border-radius: 0;
    display: block !important;
    overflow: visible;
    padding: 0;
    width: 100% !important;
  }

  .transport-print-preview-sheet {
    box-shadow: none;
    margin: 0;
    min-height: 0;
    min-width: 0;
    padding: 0;
    width: 100% !important;
    zoom: 1 !important;
  }

  .transport-print-preview-header {
    break-after: avoid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    page-break-after: avoid;
    padding-bottom: 8px;
    width: 100% !important;
  }

  .transport-print-preview-header h2 {
    font-size: 15pt;
  }

  .transport-print-preview-header p,
  .transport-print-preview-meta dt,
  .transport-print-preview-meta dd {
    font-size: 8pt;
  }

  .transport-print-preview-table th,
  .transport-print-preview-table td {
    font-size: 7.5pt !important;
    line-height: 1 !important;
    overflow: hidden !important;
    overflow-wrap: normal;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    word-break: normal;
  }

  .transport-print-preview-table-wrap {
    margin-top: 10px;
    overflow: visible;
    padding-bottom: 0;
    width: 100% !important;
  }

  .transport-print-preview-table {
    display: table !important;
    max-width: none !important;
    min-width: 100% !important;
    table-layout: fixed !important;
    width: 100% !important;
  }

  .transport-print-preview-table thead {
    display: table-header-group;
  }

  .transport-print-preview-table tbody {
    display: table-row-group;
  }

  .transport-print-preview-table tr {
    break-inside: avoid;
    box-shadow: none !important;
    display: table-row !important;
    page-break-inside: avoid;
  }

  #printPreviewRows tr,
  #printPreviewRows tr > td {
    height: 5.3mm !important;
  }

  .transport-print-preview-table .transport-print-preview-total tr,
  .transport-print-preview-table .transport-print-preview-total th,
  .transport-print-preview-table .transport-print-preview-total td {
    height: 5.3mm !important;
  }

  #printPreviewRows tr.is-print-page-break {
    break-after: page;
    page-break-after: always;
  }

  .transport-print-preview-table th,
  .transport-print-preview-table td {
    align-items: initial !important;
    display: table-cell !important;
    grid-column: auto !important;
    grid-row: auto !important;
    grid-template-columns: none !important;
    min-height: 0 !important;
    width: auto;
  }

  .transport-print-preview-table th::before,
  .transport-print-preview-table td::before {
    content: none !important;
  }

  .transport-print-preview-table .print-no {
    width: 3.3%;
  }

  .transport-print-preview-table .print-date {
    width: 6.8%;
  }

  .transport-print-preview-table .print-project {
    width: 6%;
  }

  .transport-print-preview-table .print-destination {
    width: 13%;
  }

  .transport-print-preview-table .print-purpose {
    width: 14%;
  }

  .transport-print-preview-table .print-type {
    width: 6.2%;
  }

  .transport-print-preview-table .print-point {
    width: 13.8%;
  }

  .transport-print-preview-table .print-amount {
    width: 10.7%;
  }

  .transport-print-preview-table th,
  .transport-print-preview-table td {
    padding: 0.35mm 0.5mm !important;
  }
}
