:root {
  color-scheme: light;
  --navy-950: #102a43;
  --navy-900: #153a5b;
  --navy-800: #1e4b70;
  --blue-700: #1467a8;
  --blue-600: #1b79bf;
  --blue-100: #e8f3fb;
  --blue-50: #f4f9fd;
  --orange-600: #ea7b22;
  --orange-500: #f3913d;
  --orange-100: #fff0e1;
  --green-600: #1f9d68;
  --green-100: #e5f7ef;
  --red-600: #d84b4b;
  --red-100: #fdebea;
  --amber-600: #bd7a08;
  --amber-100: #fff4d6;
  --ink-900: #172b3a;
  --ink-700: #425b6b;
  --ink-500: #718594;
  --ink-300: #aab8c2;
  --line: #e2e9ee;
  --surface: #ffffff;
  --canvas: #f5f7f9;
  --shadow: 0 12px 35px rgba(17, 48, 73, 0.09);
  --shadow-soft: 0 4px 18px rgba(17, 48, 73, 0.07);
  --radius: 12px;
  font-family:
    Inter,
    'PingFang SC',
    'Microsoft YaHei',
    'Noto Sans CJK SC',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

.tracking-config-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #b9ddcb;
  border-radius: var(--radius);
  background: #f1faf5;
  color: var(--green-600);
  font-size: 12px;
  line-height: 1.6;
}

.tracking-config-notice svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.tracking-policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.tracking-policy-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.tracking-policy-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tracking-policy-card-head > span:last-child {
  display: grid;
  gap: 4px;
}

.tracking-policy-card-head strong {
  font-size: 16px;
}

.tracking-policy-card-head small {
  display: block;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.45;
}

.tracking-policy-section-title {
  padding-top: 4px;
  border-top: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 800;
}

.tracking-customer-visibility {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #b9d5eb;
  border-radius: 10px;
  background: #f3f8fc;
  cursor: pointer;
}

.tracking-customer-visibility input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
  accent-color: var(--blue-600);
}

.tracking-customer-visibility span,
.tracking-customer-visibility strong,
.tracking-customer-visibility small {
  display: block;
}

.tracking-customer-visibility strong {
  color: var(--ink-900);
  font-size: 12px;
}

.tracking-customer-visibility small {
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.6;
}

.tracking-policy-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tracking-policy-fields .form-group {
  min-width: 0;
}

.tracking-policy-fields .form-label {
  min-height: 34px;
  line-height: 1.4;
}

.tracking-policy-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-600);
}

.tracking-policy-icon svg {
  width: 19px;
  height: 19px;
}

.tracking-interval-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.tracking-interval-field em {
  color: var(--ink-500);
  font-size: 12px;
  font-style: normal;
}

@media (max-width: 980px) {
  .tracking-policy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .tracking-policy-fields {
    grid-template-columns: 1fr;
  }
}

.announcement-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.announcement-panel {
  overflow: hidden;
}

.announcement-table th:first-child,
.announcement-table td:first-child {
  width: 48%;
}

.announcement-copy {
  display: flex;
  min-width: 320px;
  flex-direction: column;
  gap: 6px;
}

.announcement-copy strong {
  color: #18251d;
  font-size: 14px;
}

.announcement-copy span {
  display: -webkit-box;
  overflow: hidden;
  color: #738078;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.announcement-empty {
  min-height: 280px;
}

.announcement-content-input {
  min-height: 168px;
  resize: vertical;
  line-height: 1.65;
}

.platform-notice-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f3f6f5;
}

.platform-notice-tab {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.platform-notice-tab.active {
  background: #fff;
  color: var(--green-600);
  box-shadow: 0 2px 8px rgba(17, 67, 45, 0.1);
}

.platform-notice-tab span {
  min-width: 18px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--orange-100);
  color: var(--orange-600);
  font-size: 9px;
  text-align: center;
}

.feedback-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feedback-filter-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.feedback-filter-card.selected {
  border-color: var(--green-600);
  box-shadow: 0 0 0 2px rgba(31, 157, 104, 0.08);
}

.feedback-driver,
.feedback-driver strong,
.feedback-driver span {
  display: block;
}

.feedback-driver span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 10px;
}

.driver-feedback-table th:first-child,
.driver-feedback-table td:first-child {
  width: 34%;
}

@media (max-width: 980px) {
  .announcement-stats {
    grid-template-columns: 1fr;
  }
}

.finance-scope-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  padding: 13px 16px;
  border: 1px solid #cfe3f5;
  border-radius: 10px;
  background: #f3f9fe;
  color: var(--blue-700);
}

.finance-scope-banner > svg {
  width: 18px;
  flex: none;
  margin-top: 1px;
}

.finance-scope-banner strong,
.finance-scope-banner span {
  display: block;
}

.finance-scope-banner span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.6;
}

.finance-stats-grid .stat-value {
  font-size: 20px;
}

.finance-exception-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: -2px 0 18px;
  padding: 11px 15px;
  border: 1px solid #f0d4a5;
  border-radius: 9px;
  background: #fffaf0;
  color: var(--orange-600);
  font-size: 11px;
}

.finance-exception-strip span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.finance-exception-strip svg {
  width: 15px;
}

.finance-exception-strip b {
  color: var(--ink-600);
  font-weight: 600;
}

.finance-filter-panel,
.finance-orders-panel {
  margin-bottom: 18px;
}

.finance-filter-panel .panel-header {
  align-items: stretch;
  flex-direction: column;
  gap: 13px;
  border-bottom: 0;
}

.toolbar.finance-filter-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  width: 100%;
}

.finance-filter-toolbar .form-select {
  width: 100%;
}

.finance-filter-toolbar .search-input {
  width: 100%;
}

.finance-date-filter {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--ink-500);
  font-size: 10px;
}

.finance-order-table {
  min-width: 4540px;
}

.finance-order-table th,
.finance-order-table td {
  min-width: 112px;
  vertical-align: top;
  white-space: normal;
}

.finance-order-table th {
  position: sticky;
  z-index: 5;
  top: 0;
  vertical-align: middle;
  background: #f5f8fa;
  box-shadow: 0 1px 0 rgba(15, 47, 69, 0.08);
}

.finance-order-table th:nth-child(1),
.finance-order-table td:nth-child(1) {
  position: sticky;
  z-index: 6;
  left: 0;
  min-width: 44px;
  width: 44px;
  background: #fff;
}

.finance-order-table th:nth-child(1) {
  z-index: 8;
  background: #f5f8fa;
}

.finance-order-table th:nth-child(2),
.finance-order-table td:nth-child(2) {
  position: sticky;
  z-index: 6;
  left: 44px;
  min-width: 190px;
  width: 190px;
  background: #fff;
  box-shadow: 8px 0 14px -12px rgba(15, 47, 69, 0.55);
}

.finance-order-table th:nth-child(2) {
  z-index: 8;
  background: #f5f8fa;
}

.finance-order-table tbody tr:hover td:nth-child(1),
.finance-order-table tbody tr:hover td:nth-child(2) {
  background: #fbfcfd;
}

.finance-order-table [data-finance-column='actions'] {
  position: sticky;
  right: 0;
  z-index: 6;
  width: 86px;
  max-width: 86px;
  border-left: 1px solid #d8e2e8;
  background: #fff;
  box-shadow: -8px 0 14px -12px rgba(15, 47, 69, 0.55);
  text-align: center;
}

.finance-order-table thead [data-finance-column='actions'] {
  z-index: 9;
  background: #f5f8fa;
  box-shadow:
    -8px 0 14px -12px rgba(15, 47, 69, 0.55),
    0 1px 0 rgba(15, 47, 69, 0.08);
}

.finance-order-table tbody tr:hover [data-finance-column='actions'] {
  background: #fbfcfd;
}

.finance-order-edit-button {
  min-width: 52px;
  justify-content: center;
}

.finance-order-table th:nth-child(4),
.finance-order-table th:nth-child(14) {
  min-width: 230px;
}

.finance-order-table th:nth-child(15) {
  min-width: 190px;
}

.finance-order-table th:nth-child(16) {
  min-width: 280px;
}

.finance-order-table th:nth-child(23) {
  min-width: 150px;
}

.finance-order-table-scroll {
  max-height: clamp(360px, calc(100vh - 360px), 720px);
  overflow: auto;
  scrollbar-color: #8ca8b9 #e7eef2;
  scrollbar-width: auto;
}

.finance-order-table-scroll::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.finance-order-table-scroll::-webkit-scrollbar-track {
  background: #e7eef2;
}

.finance-order-table-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #e7eef2;
  border-radius: 999px;
  background: #8ca8b9;
}

.finance-order-table-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: var(--ink-500);
  font-size: 11px;
}

.finance-order-table-note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
}

#finance-column-settings svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.finance-order-actions {
  flex-wrap: nowrap;
}

.finance-goods-cell,
.finance-receivers-cell {
  display: grid;
  gap: 8px;
}

.finance-goods-cell > div,
.finance-receivers-cell > div {
  padding-bottom: 7px;
  border-bottom: 1px dashed #dce3e8;
}

.finance-goods-cell > div:last-child,
.finance-receivers-cell > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.finance-goods-cell strong,
.finance-goods-cell span,
.finance-goods-cell small,
.finance-receivers-cell strong,
.finance-receivers-cell span,
.finance-receivers-cell small,
.finance-charges-cell strong,
.finance-charges-cell span {
  display: block;
}

.finance-goods-cell span,
.finance-receivers-cell span {
  margin-top: 3px;
  color: var(--ink-700);
  line-height: 1.55;
}

.finance-goods-cell small,
.finance-receivers-cell small {
  margin-top: 3px;
  color: var(--ink-500);
  line-height: 1.5;
}

.finance-charges-cell strong {
  color: var(--blue-700);
  font-size: 14px;
}

.finance-charges-cell span {
  margin-top: 5px;
  color: var(--ink-500);
  line-height: 1.7;
}

.finance-settlement-cell {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.finance-statement-link {
  font-size: 10px;
}

.finance-status-filter {
  width: 150px;
}

.finance-check-cell {
  width: 42px;
  text-align: center !important;
}

.finance-check-cell input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue-700);
}

.finance-exception-confirmation label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink-900);
  font-weight: 600;
}

.finance-exception-confirmation label input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: var(--orange-600);
}

.money-cell {
  text-align: right !important;
  white-space: nowrap;
}

.finance-money-due {
  color: var(--red-600);
}

.finance-empty {
  min-height: 180px;
}

.finance-create-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafb;
}

.finance-create-summary strong,
.finance-create-summary span {
  display: block;
}

.finance-create-summary span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 11px;
}

.finance-create-summary > b {
  color: var(--blue-700);
  font-size: 20px;
}

.finance-date-grid,
.finance-receipt-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-receipt-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-receipt-grid .full {
  grid-column: 1 / -1;
}

.finance-receipt-balance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 18px;
}

.finance-receipt-balance span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-500);
  font-size: 10px;
}

.finance-receipt-balance strong {
  display: block;
  margin-top: 5px;
  color: var(--ink-900);
  font-size: 14px;
}

.finance-workflow-notice {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  background: #eff6ff;
  color: var(--blue-700);
}

.finance-workflow-notice > svg {
  width: 18px;
  flex: none;
}

.finance-workflow-notice strong,
.finance-workflow-notice span {
  display: block;
}

.finance-workflow-notice span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 11px;
}

.finance-voucher-field small {
  display: block;
  margin-top: 6px;
  color: var(--ink-500);
  line-height: 1.5;
}

.finance-voucher-field small.is-error {
  color: var(--red-600);
}

.finance-void-warning {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid #f3c7c4;
  border-radius: 9px;
  background: var(--red-100);
  color: var(--red-600);
}

.finance-void-warning > svg {
  width: 18px;
  flex: none;
}

.finance-void-warning strong,
.finance-void-warning span {
  display: block;
}

.finance-void-warning span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 11px;
}

.finance-detail-head {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--line);
}

.finance-detail-head > div {
  min-height: 96px;
  padding: 15px;
  background: #fff;
}

.finance-detail-head span,
.finance-detail-head strong,
.finance-detail-head small {
  display: block;
}

.finance-detail-head > div > span:first-child {
  margin-bottom: 8px;
  color: var(--ink-500);
  font-size: 10px;
}

.finance-detail-head strong {
  font-size: 17px;
}

.finance-detail-head small {
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 10px;
}

.finance-detail-head .finance-detail-outstanding {
  background: #fff8f7;
}

.finance-detail-outstanding strong {
  color: var(--red-600);
}

.finance-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 14px 0;
}

.finance-workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--line);
}

.finance-workflow-steps > div {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  color: var(--ink-500);
}

.finance-workflow-steps span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 10px;
}

.finance-workflow-steps strong {
  font-size: 10px;
}

.finance-workflow-steps .is-complete,
.finance-workflow-steps .is-current {
  color: var(--blue-700);
}

.finance-workflow-steps .is-complete span,
.finance-workflow-steps .is-current span {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: #fff;
}

.finance-workflow-steps .is-current {
  background: #eff6ff;
}

.finance-workflow-steps.is-disputed .is-current {
  background: var(--red-100);
  color: var(--red-600);
}

.finance-workflow-steps.is-disputed .is-current span {
  border-color: var(--red-600);
  background: var(--red-600);
}

.finance-detail-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.finance-detail-section-title {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
}

.finance-detail-section-title h4 {
  margin: 0;
  font-size: 13px;
}

.finance-detail-section-title span {
  color: var(--ink-500);
  font-size: 10px;
}

.finance-workflow-summary {
  margin-bottom: 14px;
}

.finance-workflow-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.finance-workflow-summary-grid > div {
  min-width: 0;
  padding: 13px 15px;
  border-right: 1px solid var(--line);
}

.finance-workflow-summary-grid > div:last-child {
  border-right: 0;
}

.finance-workflow-summary-grid span,
.finance-workflow-summary-grid strong,
.finance-workflow-summary-grid small {
  display: block;
}

.finance-workflow-summary-grid span,
.finance-workflow-summary-grid small {
  color: var(--ink-500);
  font-size: 10px;
}

.finance-workflow-summary-grid strong {
  overflow: hidden;
  margin: 6px 0;
  font-size: 12px;
  text-overflow: ellipsis;
}

.finance-workflow-summary-grid .is-warning strong {
  color: var(--red-600);
}

.finance-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.finance-snapshot-list {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f7f9fa;
}

.finance-snapshot-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.finance-snapshot-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.finance-snapshot-card > header strong,
.finance-snapshot-card > header span {
  display: block;
}

.finance-snapshot-card > header span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 10px;
}

.finance-snapshot-card > header b {
  color: var(--blue-700);
  font-size: 16px;
}

.finance-snapshot-columns {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.9fr;
}

.finance-snapshot-columns > section {
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid var(--line);
}

.finance-snapshot-columns > section:last-child {
  border-right: 0;
}

.finance-snapshot-columns h5 {
  margin: 0 0 9px;
  color: var(--ink-500);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.finance-record-list,
.finance-event-list {
  padding: 6px 15px;
}

.finance-record-list > div,
.finance-event-list > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border-bottom: 1px solid #edf1f4;
}

.finance-record-list > div:last-child,
.finance-event-list > div:last-child {
  border-bottom: 0;
}

.finance-record-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: var(--green-100);
  color: var(--green-600);
}

.finance-record-icon svg {
  width: 15px;
}

.finance-record-list p,
.finance-event-list p {
  min-width: 0;
  flex: 1;
  margin: 0;
}

.finance-record-list strong,
.finance-record-list small,
.finance-event-list strong,
.finance-event-list small {
  display: block;
}

.finance-record-list small,
.finance-event-list small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 10px;
}

.finance-record-list b {
  color: var(--ink-500);
  font-size: 10px;
}

.finance-voucher-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 6px;
}

.finance-voucher-links .link-btn {
  font-size: 10px;
}

.finance-record-empty {
  margin: 0;
  padding: 24px;
  color: var(--ink-500);
  text-align: center;
}

.finance-event-list > div > span {
  width: 9px;
  height: 9px;
  flex: none;
  border: 2px solid var(--blue-600);
  border-radius: 50%;
  background: #fff;
}

@media (max-width: 1280px) {
  .finance-filter-panel .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .finance-filter-toolbar {
    flex-wrap: wrap;
  }

  .finance-detail-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-workflow-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-filter-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-snapshot-columns {
    grid-template-columns: 1fr;
  }

  .finance-snapshot-columns > section {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .finance-snapshot-columns > section:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .finance-filter-toolbar,
  .finance-detail-actions,
  .finance-exception-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .finance-filter-toolbar .form-select,
  .finance-filter-toolbar .search-input,
  .finance-status-filter {
    width: 100%;
  }

  .finance-filter-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .finance-create-summary,
  .finance-date-grid,
  .finance-receipt-grid,
  .finance-receipt-balance,
  .finance-detail-head,
  .finance-detail-columns {
    grid-template-columns: 1fr;
  }

  .finance-workflow-steps,
  .finance-workflow-summary-grid {
    grid-template-columns: 1fr;
  }

  .finance-workflow-summary-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .finance-create-summary > b {
    grid-column: 1;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 1180px;
  min-height: 100%;
  margin: 0;
  background: var(--canvas);
  color: var(--ink-900);
}

body {
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.boot-screen {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  color: var(--ink-500);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 12px;
  background: var(--orange-500);
  color: white;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 9px 22px rgba(235, 122, 34, 0.3);
}

.login-page {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(560px, 1.25fr) minmax(480px, 0.75fr);
  overflow: hidden;
  background: #fff;
}

.login-visual {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 56px 64px;
  background: linear-gradient(135deg, rgba(14, 42, 67, 0.98), rgba(24, 76, 111, 0.94)), #12344f;
  color: #fff;
}

.login-visual::before,
.login-visual::after {
  position: absolute;
  content: '';
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.login-visual::before {
  width: 580px;
  height: 580px;
  top: -270px;
  right: -260px;
}

.login-visual::after {
  width: 720px;
  height: 720px;
  bottom: -490px;
  left: -300px;
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand .brand-mark {
  margin: 0;
}

.login-brand strong {
  display: block;
  letter-spacing: 0.02em;
  font-size: 20px;
}

.login-brand span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.login-hero {
  position: relative;
  z-index: 1;
  max-width: 610px;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #f5aa69;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.login-kicker::before {
  width: 26px;
  height: 2px;
  content: '';
  background: var(--orange-500);
}

.login-hero h1 {
  margin: 0;
  max-width: 560px;
  font-size: 44px;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.login-hero p {
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.69);
  font-size: 16px;
  line-height: 1.9;
}

.login-metrics {
  display: flex;
  margin-top: 34px;
  gap: 36px;
}

.login-metric strong {
  display: block;
  font-size: 22px;
}

.login-metric span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
}

.login-footer {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
}

.login-panel {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 52px;
  background: radial-gradient(circle at 100% 0%, rgba(235, 122, 34, 0.08), transparent 32%), #fff;
}

.login-card {
  width: min(410px, 100%);
}

.login-card h2 {
  margin: 0;
  color: var(--ink-900);
  font-size: 30px;
  letter-spacing: -0.025em;
}

.login-subtitle {
  margin: 10px 0 32px;
  color: var(--ink-500);
  font-size: 14px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 700;
}

.input-wrap {
  position: relative;
}

.input-wrap .field-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--ink-300);
}

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid #dbe4ea;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--ink-900);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-control,
.form-select {
  height: 42px;
  padding: 0 12px;
}

.input-wrap .form-control {
  height: 48px;
  padding: 0 42px;
}

.form-textarea {
  min-height: 88px;
  padding: 11px 12px;
  resize: vertical;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #6baed8;
  box-shadow: 0 0 0 3px rgba(43, 131, 184, 0.11);
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  width: 26px;
  height: 26px;
  padding: 0;
  transform: translateY(-50%);
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink-500);
}

.login-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: -2px 0 16px;
  padding: 11px 12px;
  border: 1px solid #f4c9c7;
  border-radius: 8px;
  background: var(--red-100);
  color: #b73e3e;
  font-size: 13px;
  line-height: 1.5;
}

.login-error svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
}

.btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--ink-700);
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 0.15s,
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg,
.icon-btn svg,
.nav-icon svg,
.page-title-icon svg,
.stat-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.btn-primary {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 5px 14px rgba(20, 103, 168, 0.18);
}

.btn-primary:hover {
  background: #0d5b98;
}

.btn-accent {
  border-color: var(--orange-600);
  background: var(--orange-600);
  color: #fff;
  box-shadow: 0 5px 14px rgba(234, 123, 34, 0.2);
}

.btn-outline {
  border-color: #d7e1e8;
  background: #fff;
}

.btn-outline:hover {
  border-color: #9ab2c1;
  background: #f8fafb;
}

.btn-danger-soft {
  border-color: transparent;
  background: var(--red-100);
  color: var(--red-600);
}

.btn-sm {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  font-size: 15px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.demo-accounts {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.demo-accounts-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--ink-500);
  font-size: 12px;
}

.demo-account-list {
  display: grid;
  gap: 8px;
}

.demo-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcfd;
  color: var(--ink-700);
  font-size: 12px;
}

.demo-account button {
  border: 0;
  background: transparent;
  color: var(--blue-700);
  font-weight: 700;
}

.app-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 224px 1fr;
  grid-template-rows: 64px 44px 1fr;
  grid-template-areas:
    'sidebar topbar'
    'sidebar workspace'
    'sidebar main';
}

.sidebar {
  position: fixed;
  z-index: 20;
  grid-area: sidebar;
  width: 224px;
  height: 100vh;
  overflow-y: auto;
  background: var(--navy-950);
  color: #fff;
}

.sidebar-brand {
  display: flex;
  height: 64px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sidebar-brand-logo {
  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 14px rgba(3, 20, 36, 0.24);
}

.sidebar-brand-logo img {
  display: block;
  width: auto;
  max-width: none;
  height: 38px;
}

.sidebar-brand-copy {
  min-width: 0;
}

.sidebar-brand strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-brand span {
  display: block;
}

.sidebar-brand-copy > span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.sidebar-nav {
  padding: 18px 12px;
}

.nav-group {
  margin-bottom: 18px;
}

.nav-group-label {
  padding: 0 12px 8px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-item {
  display: flex;
  height: 42px;
  align-items: center;
  gap: 11px;
  margin-bottom: 3px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.69);
  font-size: 13px;
  transition:
    background 0.17s,
    color 0.17s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-item.active {
  background: rgba(243, 145, 61, 0.16);
  color: #fff;
}

.nav-item.active::before {
  position: absolute;
  left: 0;
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  content: '';
  background: var(--orange-500);
}

.nav-icon {
  display: grid;
  width: 19px;
  place-items: center;
}

.nav-item.active .nav-icon {
  color: #f6a45e;
}

.nav-status-group {
  margin-bottom: 3px;
}

.nav-status-parent {
  margin-bottom: 0;
}

.nav-status-chevron {
  display: grid;
  width: 18px;
  height: 18px;
  margin-left: auto;
  place-items: center;
  transition: transform 0.18s ease;
}

.nav-status-chevron svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.nav-status-group.is-expanded .nav-status-chevron {
  transform: rotate(90deg);
}

.nav-status-submenu {
  display: none;
  gap: 2px;
  margin: 5px 2px 8px 20px;
  padding: 3px 0 3px 11px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-status-group.is-expanded .nav-status-submenu {
  display: grid;
}

.nav-status-child {
  display: grid;
  min-height: 30px;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  transition:
    color 0.16s,
    background 0.16s;
}

.nav-status-child:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-status-child.active {
  background: rgba(243, 145, 61, 0.14);
  color: #fff;
  font-weight: 700;
}

.nav-status-child b {
  display: grid;
  min-width: 20px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
}

.nav-status-child.active b {
  background: rgba(243, 145, 61, 0.22);
  color: #ffd2ad;
}

.nav-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8796a1;
}

.nav-status-dot.status-pickup {
  background: #f08a36;
}

.nav-status-dot.status-warehouse,
.nav-status-dot.status-signed,
.nav-status-dot.status-success {
  background: #36b08b;
}

.nav-status-dot.status-assignment {
  background: #58a7db;
}

.nav-status-dot.status-departure {
  background: #9577d9;
}

.nav-status-dot.status-progress {
  background: #7989e7;
}

.nav-status-dot.status-last-mile {
  background: #4bb6a7;
}

.nav-status-dot.status-signing {
  background: #d7a43a;
}

.nav-status-dot.status-self-pickup {
  background: #d36b9a;
}

.topbar {
  position: fixed;
  z-index: 15;
  top: 0;
  right: 0;
  left: 224px;
  display: flex;
  height: 64px;
  grid-area: topbar;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-500);
  font-size: 12px;
}

.breadcrumb strong {
  color: var(--ink-700);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.transport-group-switcher {
  display: flex;
  width: 292px;
  height: 44px;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid #d7e6ef;
  border-radius: 10px;
  background: linear-gradient(135deg, #f6fbfe, #fff);
}

.transport-group-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.transport-group-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.transport-group-switcher label,
.transport-group-switcher div {
  min-width: 0;
  flex: 1;
}

.transport-group-switcher label > span,
.transport-group-switcher div > span {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-500);
  font-size: 8px;
  line-height: 1;
}

.transport-group-switcher select {
  width: 100%;
  height: 21px;
  padding: 0 22px 0 0;
  overflow: hidden;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-900);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.transport-group-switcher strong {
  display: block;
  overflow: hidden;
  color: var(--ink-700);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.transport-group-switcher.is-loading {
  color: var(--ink-400);
}

.transport-group-switcher.is-error {
  border-color: #f1d4c2;
  background: var(--orange-100);
  color: var(--orange-600);
}

.environment-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-500);
  font-size: 11px;
}

.environment-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: '';
  background: var(--green-600);
  box-shadow: 0 0 0 3px var(--green-100);
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
}

.user-meta strong {
  display: block;
  max-width: 120px;
  overflow: hidden;
  color: var(--ink-900);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta span {
  display: block;
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 10px;
}

.logout-btn {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-500);
}

.logout-btn:hover {
  background: var(--red-100);
  color: var(--red-600);
}

.workspace-tabs {
  position: sticky;
  z-index: 14;
  top: 64px;
  display: flex;
  min-width: 0;
  height: 44px;
  grid-area: workspace;
  align-items: end;
  overflow: hidden;
  padding: 7px 18px 0;
  border-bottom: 1px solid var(--line);
  background: #f1f5f7;
}

.workspace-tabs-track {
  display: flex;
  min-width: 0;
  max-width: 100%;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.workspace-tab {
  display: flex;
  min-width: 116px;
  max-width: 190px;
  height: 36px;
  flex: 0 1 auto;
  align-items: center;
  border: 1px solid #d9e3e9;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #e8eef2;
  color: var(--ink-600);
}

.workspace-tab.is-active {
  background: #fff;
  color: var(--ink-900);
  box-shadow: 0 -2px 8px rgb(15 47 69 / 5%);
}

.workspace-tab-open {
  display: flex;
  min-width: 0;
  height: 100%;
  flex: 1;
  align-items: center;
  gap: 7px;
  padding: 0 5px 0 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 11px;
  font-weight: 700;
}

.workspace-tab-open span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-tab-dirty {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--orange-500);
}

.workspace-tab-close {
  display: grid;
  width: 27px;
  height: 27px;
  flex: none;
  margin-right: 4px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-400);
  font-size: 17px;
  line-height: 1;
}

.workspace-tab-close:hover {
  background: var(--red-100);
  color: var(--red-600);
}

.main-content {
  grid-area: main;
  min-width: 0;
  padding: 26px 28px 38px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.page-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.page-title-icon svg {
  width: 20px;
  height: 20px;
}

.page-header h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.page-header p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 12px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-hall-order-lookup {
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-hall-order-lookup label {
  display: flex;
  width: 310px;
  height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.status-hall-order-lookup label:focus-within {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgb(27 121 191 / 12%);
}

.status-hall-order-lookup label svg {
  width: 15px;
  color: var(--ink-500);
}

.status-hall-order-lookup input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-900);
  font: inherit;
}

.status-hall-lookup-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cfe3f5;
  border-radius: 10px;
  background: #f2f8fd;
}

.status-hall-lookup-summary > div:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #fff;
  color: var(--blue-600);
}

.status-hall-lookup-summary svg {
  width: 17px;
}

.status-hall-lookup-summary strong,
.status-hall-lookup-summary span {
  display: block;
}

.status-hall-lookup-summary span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 12px;
}

.status-hall-lookup-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.status-hall-lookup-result {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.8fr) minmax(220px, 1.2fr);
  align-items: center;
  gap: 6px 16px;
  width: 100%;
  padding: 12px 38px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-900);
  text-align: left;
  cursor: pointer;
}

.status-hall-lookup-result:hover,
.status-hall-lookup-result:focus-visible {
  border-color: var(--blue-600);
  background: #f7fbff;
  outline: none;
}

.status-hall-lookup-result-head,
.status-hall-lookup-result-customer,
.status-hall-lookup-result-route,
.status-hall-lookup-result small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-hall-lookup-result-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-hall-lookup-result small {
  grid-column: 1 / -1;
  color: var(--ink-500);
}

.status-hall-lookup-result > svg {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 15px;
  color: var(--ink-400);
  transform: translateY(-50%);
}

.status-hall-lookup-more {
  margin: 12px 0 0;
  color: var(--ink-500);
  font-size: 12px;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-card {
  display: flex;
  min-height: 96px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.stat-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.stat-icon.green {
  background: var(--green-100);
  color: var(--green-600);
}

.stat-icon.orange {
  background: var(--orange-100);
  color: var(--orange-600);
}

.stat-icon.red {
  background: var(--red-100);
  color: var(--red-600);
}

.stat-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 11px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  margin: 0;
  font-size: 14px;
}

.panel-subtitle {
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: 11px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
}

.toolbar .form-control,
.toolbar .form-select {
  height: 34px;
  font-size: 12px;
}

.search-input {
  width: 230px;
}

.filter-select {
  width: 134px;
}

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th {
  height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  min-height: 54px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f4;
  color: var(--ink-700);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.15s;
}

.data-table tbody tr:hover {
  background: #fbfcfd;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.primary-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
}

.cell-title {
  display: block;
  color: var(--ink-900);
  font-weight: 700;
}

.cell-muted {
  display: block;
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 6px;
  background: #eef3f6;
  color: var(--ink-700);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.tag.blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

.tag.orange {
  background: var(--orange-100);
  color: var(--orange-600);
}

.status-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: '';
  background: currentColor;
}

.status-enabled,
.status-success {
  background: var(--green-100);
  color: var(--green-600);
}

.status-disabled,
.status-failure {
  background: var(--red-100);
  color: var(--red-600);
}

.status-locked,
.status-warning {
  background: var(--amber-100);
  color: var(--amber-600);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.link-btn {
  padding: 3px 5px;
  border: 0;
  background: transparent;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
}

.link-btn:hover {
  color: var(--orange-600);
}

.link-btn.danger {
  color: var(--red-600);
}

.link-btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.order-row-actions {
  min-width: 164px;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 3px;
}

.order-row-action-line {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.order-row-workflow-actions {
  width: 100%;
  padding-top: 3px;
  border-top: 1px dashed #d9e4ea;
}

.order-row-workflow-actions .link-btn {
  color: var(--orange-600);
}

.order-row-print-actions {
  width: 100%;
  padding-top: 3px;
  border-top: 1px dashed #d9e4ea;
}

.order-row-print-actions .link-btn {
  color: #176e8a;
}

.order-edit-note {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--blue-100);
  border-radius: 8px;
  background: #f5faff;
  color: var(--ink-500);
  font-size: 12px;
}

.order-edit-note svg {
  width: 15px;
  height: 15px;
  margin-right: 6px;
  vertical-align: -3px;
}

.order-edit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.order-edit-sections {
  display: grid;
  gap: 14px;
}

.order-edit-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
}

.order-edit-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.order-edit-section-heading > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 800;
}

.order-edit-section-heading strong,
.order-edit-section-heading small {
  display: block;
}

.order-edit-section-heading strong {
  color: var(--ink-900);
  font-size: 13px;
}

.order-edit-section-heading small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9px;
}

.order-edit-routing-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.68fr) minmax(0, 1.32fr);
  align-items: start;
  gap: 12px;
}

.order-edit-route-stack,
.order-edit-receiver-stack {
  display: grid;
  gap: 12px;
}

.order-edit-route-plan {
  margin: 0;
}

.order-edit-party-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.order-edit-party-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-600);
  border-radius: 10px;
  background: #fff;
}

.order-edit-party-card.is-receiver {
  border-top-color: var(--orange-500);
}

.order-edit-party-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.order-edit-party-title > span {
  display: grid;
  min-width: 27px;
  height: 27px;
  padding: 0 6px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 800;
}

.order-edit-party-card.is-receiver .order-edit-party-title > span {
  background: var(--orange-100);
  color: var(--orange-600);
}

.order-edit-party-title strong,
.order-edit-party-title small {
  display: block;
}

.order-edit-party-title strong {
  color: var(--ink-900);
  font-size: 12px;
}

.order-edit-party-title small {
  margin-top: 1px;
  color: var(--ink-500);
  font-size: 8px;
}

.order-edit-party-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-edit-party-fields .full-width,
.order-edit-service-grid .full-width {
  grid-column: 1 / -1;
}

.order-edit-party-fields .form-group,
.order-edit-service-grid .form-group {
  margin-bottom: 12px;
}

.order-edit-service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.billing-customer-toggle {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fbfd;
}

.billing-customer-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.billing-customer-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--blue-700);
}

.billing-customer-check span,
.billing-customer-check strong,
.billing-customer-check small {
  display: block;
}

.billing-customer-check strong {
  color: var(--ink-900);
  font-size: 11px;
}

.billing-customer-check small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.5;
}

.billing-customer-field {
  padding: 12px 14px;
  border: 1px solid #cfe3f2;
  border-radius: 9px;
  background: var(--blue-50);
}

.billing-customer-field[hidden] {
  display: none;
}

.pagination {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-500);
  font-size: 11px;
}

.page-buttons {
  display: flex;
  gap: 5px;
}

.page-button {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-700);
}

.page-button.active {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: #fff;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-content: center;
  justify-items: center;
  padding: 34px;
  color: var(--ink-500);
  text-align: center;
}

.empty-state-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--blue-700);
}

.empty-state-icon svg {
  width: 25px;
  height: 25px;
}

.empty-state h3 {
  margin: 0;
  color: var(--ink-700);
  font-size: 15px;
}

.empty-state p {
  max-width: 430px;
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
}

.page-recovery-state {
  gap: 10px;
}

.page-recovery-state .empty-state-icon svg {
  animation: page-recovery-spin 1.4s linear infinite;
}

.page-recovery-state p {
  margin: 0;
}

.page-recovery-state > span {
  color: var(--ink-400);
  font-size: 12px;
}

.page-recovery-state .btn {
  margin-top: 6px;
}

.startup-recovery {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
  background: var(--surface-page);
}

.startup-recovery .page-recovery-state {
  width: min(520px, 100%);
}

@keyframes page-recovery-spin {
  to {
    transform: rotate(360deg);
  }
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.role-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.role-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: '';
  background: #b9c8d2;
}

.role-card.system::before {
  background: var(--blue-700);
}

.role-card.local::before {
  background: var(--orange-500);
}

.role-card.client-fixed {
  border-color: #bdd7e6;
  background: linear-gradient(180deg, #f7fbfe 0%, #fff 42%);
}

.role-card.client-fixed::before {
  background: #4b97bd;
}

.role-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.role-card-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.role-card h3 {
  margin: 0;
  font-size: 15px;
}

.role-code {
  display: block;
  margin-top: 5px;
  color: var(--ink-500);
  font-family: Consolas, monospace;
  font-size: 10px;
}

.role-description {
  min-height: 38px;
  margin: 14px 0;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.7;
}

.role-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.role-metric {
  text-align: center;
}

.role-metric + .role-metric {
  border-left: 1px solid var(--line);
}

.role-metric strong {
  display: block;
  font-size: 16px;
}

.role-metric span {
  color: var(--ink-500);
  font-size: 9px;
}

.role-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  padding-top: 12px;
}

.permission-layout {
  display: grid;
  height: clamp(520px, calc(100vh - 350px), 620px);
  min-height: 0;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
}

.client-fixed-permissions {
  margin-top: 16px;
  overflow: hidden;
}

.client-fixed-permissions-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #f7fbfe;
}

.client-fixed-permissions-header strong,
.client-fixed-permissions-header span {
  display: block;
}

.client-fixed-permissions-header strong {
  font-size: 13px;
}

.client-fixed-permissions-header div > span {
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 10px;
}

.client-fixed-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.client-fixed-permission-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe8ef;
  border-radius: 10px;
  background: #fff;
}

.client-fixed-permission-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.client-fixed-permission-icon svg {
  width: 19px;
  height: 19px;
}

.client-fixed-permission-content {
  min-width: 0;
}

.client-fixed-permission-content > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.client-fixed-permission-content strong {
  font-size: 12px;
}

.client-fixed-permission-content > div:first-child > span {
  max-width: 55%;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.6;
  text-align: right;
}

.client-fixed-permission-content > .tag {
  margin-top: 9px;
}

.client-fixed-permission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.permission-tree-panel {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  border-right: 1px solid var(--line);
  background: #fbfcfd;
  overflow: hidden;
}

.permission-tree-toolbar,
.permission-detail-header {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.permission-tree {
  padding: 12px;
  overflow-y: auto;
}

.permission-tree-node {
  position: relative;
}

.permission-tree-row {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  padding: 0 9px 0 calc(9px + var(--tree-depth, 0) * 18px);
  border-radius: 7px;
  color: var(--ink-700);
  font-size: 12px;
}

.permission-tree-row:hover,
.permission-tree-row.selected {
  background: var(--blue-100);
  color: var(--blue-700);
}

.tree-checkbox,
.check-item input,
.scope-option input,
.custom-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--blue-700);
}

.permission-tree-name {
  flex: 1;
  cursor: pointer;
}

.permission-type-badge {
  min-width: 30px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--ink-500);
  font-size: 9px;
  text-align: center;
}

.permission-type-badge.type-menu {
  background: var(--blue-100);
  color: var(--blue-700);
}

.permission-type-badge.type-button {
  background: #fff4db;
  color: #9a5b00;
}

.tree-count {
  color: var(--ink-300);
  font-size: 9px;
}

.permission-detail {
  min-width: 0;
  overflow-y: auto;
}

.permission-detail-header h3 {
  margin: 0;
  font-size: 14px;
}

.permission-detail-body {
  padding: 18px;
}

.permission-section {
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.permission-section-header {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #fafcfd;
}

.permission-section-header strong {
  font-size: 12px;
}

.permission-section-header span {
  color: var(--ink-500);
  font-size: 10px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.check-item {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #e8edf1;
  border-radius: 8px;
}

.check-item label {
  cursor: pointer;
}

.check-item strong {
  display: block;
  color: var(--ink-700);
  font-size: 11px;
}

.check-item span {
  display: block;
  margin-top: 2px;
  color: var(--ink-500);
  font-family: Consolas, monospace;
  font-size: 9px;
}

.scope-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 14px;
}

.data-scope-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  overflow: hidden;
}

.role-selector-list {
  min-height: 560px;
  padding: 10px;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}

.role-selector-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.role-selector-item:hover,
.role-selector-item.active {
  border-color: #cfe1ed;
  background: var(--blue-100);
}

.role-selector-item strong {
  display: block;
  font-size: 12px;
}

.role-selector-item span {
  display: block;
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
}

.data-scope-editor {
  padding: 22px;
}

.scope-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 18px;
}

.scope-option {
  display: flex;
  min-height: 82px;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.scope-option:hover,
.scope-option.selected {
  border-color: #82b6d7;
  background: var(--blue-50);
}

.scope-option strong {
  display: block;
  font-size: 12px;
}

.scope-option span {
  display: block;
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.5;
}

.custom-scope-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed #cbd9e2;
  border-radius: 10px;
  background: #fafcfd;
}

.custom-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.custom-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 11px;
}

.org-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  overflow: hidden;
}

.department-panel {
  border-right: 1px solid var(--line);
}

.department-tree {
  padding: 12px;
}

.department-node {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  padding: 7px 9px;
  border-radius: 8px;
  cursor: pointer;
}

.department-node:hover,
.department-node.active {
  background: var(--blue-100);
}

.department-node.child {
  margin-left: 22px;
}

.department-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.department-name strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.department-name span {
  display: block;
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9px;
}

.org-content {
  min-width: 0;
}

.transport-route {
  display: grid;
  grid-template-columns: minmax(145px, 0.8fr) 86px minmax(240px, 1.5fr);
  align-items: center;
  gap: 12px;
  margin: 0 16px 16px;
  padding: 15px;
  border: 1px solid #dce8ef;
  border-radius: 10px;
  background: linear-gradient(115deg, #f7fbfd, #fffaf5);
}

.route-point,
.route-destinations {
  min-width: 0;
}

.route-point span,
.route-label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.route-point strong {
  color: var(--blue-700);
  font-size: 14px;
}

.route-arrow {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--orange-600);
  font-size: 9px;
}

.route-arrow span {
  position: relative;
  display: block;
  width: 58px;
  height: 2px;
  background: var(--orange-500);
}

.route-arrow span::after {
  position: absolute;
  top: -4px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--orange-500);
  border-right: 2px solid var(--orange-500);
  content: '';
  transform: rotate(45deg);
}

.route-destinations > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.route-destination {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #cfe1ed;
  border-radius: 7px;
  background: #fff;
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 700;
}

.station-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.station-check-option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcfd;
  cursor: pointer;
}

.station-check-option:has(input:checked) {
  border-color: var(--blue-600);
  background: var(--blue-50);
}

.station-check-option strong,
.station-check-option small {
  display: block;
}

.station-check-option strong {
  overflow: hidden;
  color: var(--ink-800);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-check-option small,
.form-help {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
}

.form-help {
  display: block;
  line-height: 1.4;
}

.relation-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #fafcfd;
}

.relation-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-700);
  font-size: 10px;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(12, 35, 53, 0.48);
  backdrop-filter: blur(2px);
}

.modal {
  width: min(560px, 92vw);
  max-height: 88vh;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(9, 31, 49, 0.26);
}

.modal-lg {
  width: min(720px, 92vw);
}

.modal-xl {
  width: min(1080px, 96vw);
}

.modal-xxl {
  width: min(1520px, 96vw);
  max-height: 92vh;
}

.modal-xxl .modal-body {
  max-height: calc(92vh - 126px);
}

.modal-header {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
}

.modal-header-title-row,
.modal-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.modal-header-actions .btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

.modal-close,
.icon-btn {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-500);
}

.modal-close:hover,
.icon-btn:hover {
  border-color: var(--line);
  background: #f7f9fa;
}

.modal-body {
  max-height: calc(88vh - 126px);
  overflow-y: auto;
  padding: 20px;
}

.modal-footer {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.modal-footer-start {
  margin-right: auto;
}

.modal-footer-actions {
  display: flex;
  margin-left: auto;
  gap: 9px;
}

.modal-footer[hidden] {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-hint {
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.5;
}

.assignment-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafb;
}

.assignment-current .form-label {
  margin: 0;
  white-space: nowrap;
}

.assignment-role-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0 10px;
}

.assignment-role-heading .form-label,
.assignment-role-heading small {
  display: block;
}

.assignment-role-heading small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 10px;
}

#assignment-selected-count {
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f4;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 700;
}

#assignment-selected-count.has-selection {
  background: var(--blue-100);
  color: var(--blue-700);
}

.assignment-role-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.assignment-role-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.assignment-role-item.selected {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 2px rgba(30, 119, 178, 0.08);
}

.assignment-role-choice {
  position: relative;
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 11px;
  padding: 12px;
  cursor: pointer;
}

.assignment-role-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.assignment-role-mark {
  display: grid;
  width: 21px;
  height: 21px;
  flex: none;
  place-items: center;
  border: 1px solid #cdd8df;
  border-radius: 6px;
  background: #fff;
  color: transparent;
}

.assignment-role-mark svg {
  width: 13px;
  height: 13px;
}

.assignment-role-item.selected .assignment-role-mark {
  border-color: var(--blue-600);
  background: var(--blue-600);
  color: #fff;
}

.assignment-role-copy,
.assignment-role-copy strong,
.assignment-role-copy span {
  display: block;
  min-width: 0;
}

.assignment-role-copy strong {
  color: var(--ink-900);
  font-size: 12px;
}

.assignment-role-copy span {
  overflow: hidden;
  margin-top: 4px;
  color: var(--ink-500);
  font-family: Consolas, monospace;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-scope-editor {
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #f8fbfd;
}

.assignment-scope-editor[hidden],
.assignment-scope-editor [hidden] {
  display: none;
}

.assignment-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.assignment-scope-grid .form-group {
  margin: 0;
}

.assignment-empty {
  grid-column: 1 / -1;
  min-height: 190px;
}

.required {
  color: var(--red-600);
}

.toast-root {
  position: fixed;
  z-index: 200;
  top: 82px;
  right: 24px;
  display: grid;
  gap: 9px;
}

.toast {
  display: flex;
  width: 330px;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  animation: toast-in 0.22s ease-out;
}

.toast.success {
  border-left: 3px solid var(--green-600);
}

.toast.error {
  border-left: 3px solid var(--red-600);
}

.toast strong {
  display: block;
  font-size: 12px;
}

.toast span {
  display: block;
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.5;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #edf2f5;
}

.skeleton::after {
  position: absolute;
  inset: 0;
  content: '';
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

.loading-panel {
  display: grid;
  min-height: 320px;
  place-content: center;
  color: var(--ink-500);
  font-size: 12px;
}

.spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  border: 3px solid #dceaf2;
  border-top-color: var(--blue-700);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.limited-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
}

.limited-card::after {
  position: absolute;
  top: -55px;
  right: -55px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  content: '';
  background: var(--blue-50);
}

.limited-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 22px;
}

.limited-card p {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 10px 0 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.8;
}

.access-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.access-summary-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafcfd;
}

.access-summary-item strong {
  display: block;
  font-size: 13px;
}

.access-summary-item span {
  display: block;
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 10px;
}

/* Order management */
.status-pending {
  background: var(--orange-100);
  color: var(--orange-600);
}

.status-info {
  background: #e7f2fb;
  color: #2375ad;
}

.status-progress {
  background: #edf0ff;
  color: #5869c7;
}

.status-pickup {
  background: #fff1e6;
  color: #d86f18;
}

.status-warehouse {
  background: #e7f7f4;
  color: #19836f;
}

.status-assignment {
  background: #e7f2fb;
  color: #2375ad;
}

.status-departure {
  background: #f1ecff;
  color: #7653bf;
}

.status-in-transit {
  background: #e9efff;
  color: #4f63c8;
}

.status-last-mile {
  background: #e7f7f4;
  color: #187c70;
}

.status-signing {
  background: #fff6d9;
  color: #a97713;
}

.status-self-pickup {
  background: #ffedf5;
  color: #b84d7d;
}

.status-signed {
  background: #e7f8ef;
  color: #21875a;
}

.status-transferred {
  background: #edf1f4;
  color: #60717e;
}

.order-tabs {
  display: flex;
  min-height: 58px;
  align-items: flex-end;
  gap: 4px;
  overflow-x: auto;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.order-tab {
  position: relative;
  display: flex;
  height: 58px;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border: 0;
  background: transparent;
  color: var(--ink-500);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.order-tab b {
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  border-radius: 10px;
  background: #edf2f5;
  color: var(--ink-500);
  font-size: 9px;
}

.order-tab.active {
  color: var(--blue-700);
}

.order-tab.active::after {
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  content: '';
  background: var(--orange-500);
}

.order-tab.active b {
  background: var(--blue-100);
  color: var(--blue-700);
}

.order-filter {
  display: flex;
  min-height: 66px;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fafcfd;
}

.order-filter > .form-select {
  width: 142px;
  height: 34px;
  font-size: 11px;
}

.filter-field {
  position: relative;
}

.filter-keyword {
  flex: 1 1 250px;
  max-width: 330px;
}

.filter-keyword svg {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--ink-300);
  stroke-width: 1.8;
}

.filter-keyword input {
  width: 100%;
  height: 34px;
  padding: 0 10px 0 32px;
  border: 1px solid #dbe4ea;
  border-radius: 8px;
  outline: none;
  color: var(--ink-900);
  font-size: 11px;
}

.filter-keyword input:focus {
  border-color: #6baed8;
  box-shadow: 0 0 0 3px rgba(43, 131, 184, 0.09);
}

.order-date {
  width: 126px;
  height: 34px;
  font-size: 11px;
}

.filter-separator {
  color: var(--ink-300);
  font-size: 10px;
}

.order-table-toolbar {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.order-table-toolbar-main,
.order-batch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-table-toolbar-main {
  min-width: 0;
  gap: 14px;
}

.order-batch-actions {
  flex: 0 0 auto;
}

.order-batch-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.order-batch-print-actions .btn {
  white-space: nowrap;
}

.order-table-scroll-hint {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-500);
  font-size: 11px;
}

.order-table-scroll-hint svg,
#order-column-settings svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.order-table-scroll {
  max-height: clamp(360px, calc(100vh - 380px), 720px);
  overflow: auto;
  position: relative;
  scrollbar-color: #8ca8b9 #e7eef2;
  scrollbar-width: auto;
}

.order-table-scroll::-webkit-scrollbar {
  height: 12px;
}

.order-table-scroll::-webkit-scrollbar-track {
  background: #e7eef2;
}

.order-table-scroll::-webkit-scrollbar-thumb {
  border: 2px solid #e7eef2;
  border-radius: 999px;
  background: #8ca8b9;
}

.order-table {
  min-width: 1180px;
}

.order-list-panel .order-table {
  min-width: 1180px;
}

.order-list-panel .order-table [data-order-column] {
  vertical-align: top;
  white-space: normal;
}

.order-list-panel .order-table thead th[data-order-column] {
  position: sticky;
  top: 0;
  z-index: 5;
  vertical-align: middle;
  border-bottom-color: #cbd9e2;
  background: #f5f8fa;
  box-shadow: 0 1px 0 rgba(15, 47, 69, 0.08);
}

.order-list-panel .order-table [data-order-column='actions'] {
  position: sticky;
  right: 0;
  z-index: 4;
  width: 190px;
  max-width: 190px;
  border-left: 1px solid #d8e2e8;
  background: #fff;
  box-shadow: -8px 0 14px -12px rgba(15, 47, 69, 0.55);
}

.order-list-panel .order-table thead [data-order-column='actions'] {
  z-index: 7;
  background: #f5f8fa;
  box-shadow:
    -8px 0 14px -12px rgba(15, 47, 69, 0.55),
    0 1px 0 rgba(15, 47, 69, 0.08);
}

.order-list-panel .order-table .order-multi-summary-row [data-order-column='actions'] {
  background: #fffdf9;
}

.order-list-panel .order-table .order-delivery-detail-row [data-order-column='actions'] {
  background: #fbfdff;
}

.order-list-panel .order-table tbody tr:hover [data-order-column='actions'] {
  background: #fbfcfd;
}

.my-terminal-panel .order-table [data-order-column='actions'] {
  position: sticky;
  right: 0;
  z-index: 4;
  width: 190px;
  max-width: 190px;
  border-left: 1px solid #d8e2e8;
  background: #fff;
  box-shadow: -8px 0 14px -12px rgba(15, 47, 69, 0.55);
}

.my-terminal-panel .order-table thead [data-order-column='actions'] {
  z-index: 7;
  background: #f5f8fa;
}

.my-terminal-panel .order-table .order-multi-summary-row [data-order-column='actions'] {
  background: #fffdf9;
}

.my-terminal-panel .order-table .order-delivery-detail-row [data-order-column='actions'] {
  background: #fbfdff;
}

.my-terminal-panel .order-table tbody tr:hover [data-order-column='actions'] {
  background: #fbfcfd;
}

.order-list-panel .order-table tbody tr.order-attention-pending {
  background: #fff1f1;
}

.order-list-panel .order-table tbody tr.order-attention-pending [data-order-column='actions'] {
  background: #fff1f1;
}

.order-list-panel .order-table tbody tr.order-attention-pending:hover,
.order-list-panel
  .order-table
  tbody
  tr.order-attention-pending:hover
  [data-order-column='actions'] {
  background: #ffe8e8;
}

.order-list-panel .order-table tbody tr.order-driver-assigned,
.order-list-panel .order-table tbody tr.order-driver-assigned [data-order-column='actions'] {
  background: #ecf8f0;
}

.order-list-panel .order-table tbody tr.order-driver-assigned:hover,
.order-list-panel .order-table tbody tr.order-driver-assigned:hover [data-order-column='actions'] {
  background: #e1f3e7;
}

.order-list-panel .order-table tbody tr.order-located,
.order-list-panel .order-table tbody tr.order-located [data-order-column='actions'],
.linehaul-task-set-card.order-located {
  background: #fff8dc;
  box-shadow: inset 4px 0 0 var(--orange-500);
  animation: located-order-pulse 1.1s ease-in-out 2;
}

@keyframes located-order-pulse {
  0%,
  100% {
    outline: 0 solid rgb(243 145 61 / 0%);
  }
  50% {
    outline: 4px solid rgb(243 145 61 / 24%);
  }
}

.order-list-count {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-500);
  font-size: 11px;
}

.order-pagination-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.order-pagination-summary label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-600);
}

.order-pagination-summary .form-select {
  width: 84px;
  height: 30px;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 11px;
}

.order-table td {
  padding-top: 15px;
  padding-bottom: 15px;
}

.order-cell-line {
  display: block;
  min-height: 18px;
  color: var(--ink-800);
  font-weight: 650;
  line-height: 1.45;
}

.order-cell-line + .order-cell-line {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dashed #d9e3e9;
}

.order-cell-flag {
  display: inline-flex;
  margin-bottom: 5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff3dd;
  color: #ad6500;
  font-size: 9px;
  font-weight: 800;
}

.order-column-settings-intro {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #cfe2ee;
  border-radius: 10px;
  background: #f2f8fc;
}

.order-column-settings-intro strong {
  color: var(--ink-900);
  font-size: 13px;
}

.order-column-settings-intro span {
  color: var(--ink-500);
  font-size: 11px;
}

.order-column-settings-list {
  display: grid;
  gap: 7px;
}

.order-column-setting-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.order-column-position {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
}

.order-column-setting-row label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.order-column-setting-row label input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue-700);
}

.order-column-setting-row label strong {
  color: var(--ink-800);
  font-size: 12px;
}

.order-column-setting-row label small {
  color: var(--ink-400);
  font-size: 10px;
}

.order-column-drag-handle {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 1px solid #d7e2e9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink-600);
  cursor: grab;
  touch-action: none;
}

.order-column-drag-handle:hover,
.order-column-drag-handle:focus-visible {
  border-color: #9fc9e2;
  background: var(--blue-50);
  color: var(--blue-700);
  outline: none;
}

.order-column-drag-handle:active {
  cursor: grabbing;
}

.order-column-drag-handle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.order-column-setting-row.is-dragging {
  opacity: 0.55;
  border-color: var(--blue-500);
  box-shadow: 0 8px 18px rgb(23 114 179 / 16%);
}

.order-column-setting-row.is-drag-over {
  border-color: var(--blue-500);
  background: var(--blue-50);
}

.order-column-reset {
  margin-top: 14px;
}

.status-hall-updated {
  align-self: center;
  color: var(--ink-500);
  font-size: 11px;
}

.status-hall-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.status-hall-metric {
  position: relative;
  min-height: 108px;
  overflow: hidden;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.status-hall-metric::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  border-radius: 0 0 0 64px;
  content: '';
  background: var(--blue-100);
  opacity: 0.8;
}

.status-hall-metric.is-pending::after {
  background: var(--orange-100);
}

.status-hall-metric.is-transit::after {
  background: #edf0ff;
}

.status-hall-metric.is-delivery::after {
  background: #fff6d9;
}

.status-hall-metric.is-finished::after {
  background: var(--green-100);
}

.status-hall-metric span,
.status-hall-metric strong,
.status-hall-metric small {
  display: block;
}

.status-hall-metric span {
  color: var(--ink-600);
  font-size: 11px;
  font-weight: 700;
}

.status-hall-metric strong {
  margin-top: 6px;
  color: var(--ink-900);
  font-size: 27px;
  line-height: 1;
}

.status-hall-metric small {
  margin-top: 7px;
  color: var(--ink-500);
  font-size: 9px;
}

.status-hall-panel {
  overflow: hidden;
}

.linehaul-task-set-list {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f5f8fb;
}

.linehaul-task-set-card {
  overflow: hidden;
  border: 1px solid #d8e4ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgb(15 54 82 / 6%);
}

.linehaul-task-set-card > header,
.linehaul-task-set-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
}

.linehaul-task-set-card > header {
  border-bottom: 1px solid #e6eef4;
  background: linear-gradient(90deg, #edf7ff, #fff);
}

.linehaul-task-set-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.linehaul-task-set-code span,
.linehaul-task-set-code strong,
.linehaul-task-set-driver strong,
.linehaul-task-set-driver span,
.linehaul-task-set-stats small,
.linehaul-task-set-stats b {
  display: block;
}

.linehaul-task-set-code span,
.linehaul-task-set-stats small {
  color: var(--ink-500);
  font-size: 10px;
}

.linehaul-task-set-code strong {
  margin-top: 3px;
  color: #075f9e;
  font-size: 16px;
}

.linehaul-task-set-driver {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px 6px;
}

.linehaul-task-set-driver span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 11px;
}

.linehaul-task-set-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 8px;
  padding: 8px 16px 13px;
}

.linehaul-task-set-stats > span {
  padding: 10px 12px;
  border: 1px solid #e5edf3;
  border-radius: 8px;
  background: #f8fbfd;
}

.linehaul-task-set-stats b {
  margin-top: 3px;
  color: var(--ink-900);
  font-size: 13px;
}

.linehaul-task-set-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 16px 14px;
}

.linehaul-task-set-routes span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf4f8;
  color: #35556b;
  font-size: 10px;
}

.linehaul-task-set-routes b {
  color: #0873b9;
}

.linehaul-task-set-card > footer {
  border-top: 1px solid #e6eef4;
  color: var(--ink-500);
  font-size: 10px;
}

.linehaul-task-set-footer-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-hall-view-switch {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #cfdce6;
  border-radius: 8px;
  background: #fff;
}

.status-hall-view-switch button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: var(--ink-500);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.status-hall-view-switch button + button {
  border-left: 1px solid #dce5eb;
}

.status-hall-view-switch button.active {
  background: #0b71b3;
  color: #fff;
}

.status-hall-view-switch svg {
  width: 13px;
  height: 13px;
}

.in-transit-task-set-view {
  background: #f5f8fb;
}

.in-transit-task-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 14px 16px 0;
}

.in-transit-task-summary > span {
  padding: 11px 13px;
  border: 1px solid #dfe8ef;
  border-radius: 9px;
  background: #fff;
}

.in-transit-task-summary small,
.in-transit-task-summary strong {
  display: block;
}

.in-transit-task-summary small {
  color: var(--ink-500);
  font-size: 9px;
}

.in-transit-task-summary strong {
  margin-top: 4px;
  color: var(--ink-900);
  font-size: 14px;
}

.in-transit-task-set-list {
  padding-top: 10px;
}

.linehaul-task-set-card.is-transit > header {
  background: linear-gradient(90deg, #edf1ff, #fff);
}

.in-transit-current-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 16px 4px;
  padding: 10px 12px;
  border: 1px solid #d9e2ff;
  border-radius: 9px;
  background: #f4f6ff;
}

.in-transit-current-state > div,
.in-transit-current-state > div span {
  display: flex;
  align-items: center;
}

.in-transit-current-state > div {
  gap: 9px;
  color: #5869c7;
}

.in-transit-current-state > div span {
  align-items: flex-start;
  flex-direction: column;
}

.in-transit-current-state small,
.in-transit-current-state strong {
  display: block;
}

.in-transit-current-state small {
  color: var(--ink-500);
  font-size: 9px;
}

.in-transit-current-state strong {
  margin-top: 2px;
  color: #34468f;
  font-size: 12px;
}

.in-transit-current-state em {
  color: var(--ink-500);
  font-size: 9px;
  font-style: normal;
}

.in-transit-loading-routes {
  display: grid;
  gap: 7px;
  padding: 0 16px 14px;
}

.in-transit-loading-routes > span {
  display: grid;
  grid-template-columns: 30px minmax(150px, 0.45fr) minmax(260px, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e1e9ef;
  border-radius: 8px;
  background: #fafcfd;
  color: var(--ink-600);
  font-size: 10px;
}

.in-transit-loading-routes b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: #e7f2fb;
  color: #1472ac;
}

.in-transit-loading-routes i {
  color: var(--ink-900);
  font-style: normal;
  font-weight: 700;
}

.in-transit-loading-routes strong {
  overflow: hidden;
  color: #486274;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.in-transit-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.in-transit-detail-summary > div {
  padding: 12px 14px;
  border: 1px solid #dce7ef;
  border-radius: 10px;
  background: #f8fbfd;
}

.in-transit-detail-summary span,
.in-transit-detail-summary strong,
.in-transit-detail-summary small {
  display: block;
}

.in-transit-detail-summary span,
.in-transit-detail-summary small {
  color: var(--ink-500);
  font-size: 9px;
}

.in-transit-detail-summary strong {
  margin: 4px 0;
  color: var(--ink-900);
  font-size: 14px;
}

.in-transit-live-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #d8e1ff;
  border-radius: 10px;
  background: linear-gradient(100deg, #eef2ff, #f9faff);
}

.in-transit-live-banner > div {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5669ca;
}

.in-transit-live-banner small,
.in-transit-live-banner strong {
  display: block;
}

.in-transit-live-banner small {
  color: var(--ink-500);
  font-size: 9px;
}

.in-transit-live-banner strong {
  margin-top: 2px;
  color: #354890;
  font-size: 13px;
}

.in-transit-live-banner p {
  margin: 8px 0 0;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.6;
}

.transport-tracking-panel {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #cfe1d7;
  border-radius: 12px;
  background: linear-gradient(105deg, #eff8f3, #fbfdfc);
}

.transport-tracking-panel-header,
.transport-tracking-panel-header > div {
  display: flex;
  align-items: center;
}

.transport-tracking-panel-header {
  justify-content: space-between;
  gap: 12px;
}

.transport-tracking-panel-header > div {
  gap: 9px;
  color: #176c46;
}

.transport-tracking-panel-header small,
.transport-tracking-panel-header strong {
  display: block;
}

.transport-tracking-panel-header small {
  color: var(--ink-500);
  font-size: 9px;
}

.transport-tracking-panel-header strong {
  margin-top: 2px;
  color: #14593a;
  font-size: 13px;
}

.transport-tracking-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.transport-tracking-metrics span {
  padding: 9px 10px;
  border-radius: 8px;
  background: #fff;
}

.transport-tracking-metrics small,
.transport-tracking-metrics strong {
  display: block;
}

.transport-tracking-metrics small {
  color: var(--ink-500);
  font-size: 9px;
}

.transport-tracking-metrics strong {
  margin-top: 4px;
  color: var(--ink-900);
  font-size: 12px;
}

.transport-tracking-map,
.transport-tracking-empty {
  width: 100%;
  height: 310px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 10px;
  background: #e8efeb;
}

.transport-tracking-empty,
.transport-tracking-map-error {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  color: var(--ink-500);
  text-align: center;
}

.transport-tracking-empty strong {
  color: var(--ink-900);
  font-size: 13px;
}

.transport-tracking-empty span,
.transport-tracking-panel > p {
  font-size: 9px;
}

.transport-tracking-panel > p {
  margin: 10px 0 0;
  color: var(--ink-500);
  line-height: 1.6;
}

.transport-tracking-map-error {
  height: 100%;
  padding: 20px;
}

.transport-map-marker {
  --transport-marker-color: #0a4b80;
  position: relative;
  display: block;
  width: 42px;
  height: 48px;
  pointer-events: none;
  filter: drop-shadow(0 4px 6px rgb(20 49 78 / 24%));
}

.transport-map-marker::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 13px solid var(--transport-marker-color);
  border-right: 8px solid transparent;
  border-left: 8px solid transparent;
  content: '';
  transform: translateX(-50%);
}

.transport-map-marker.is-sender {
  --transport-marker-color: #087df3;
}

.transport-map-marker.is-receiver {
  --transport-marker-color: #ff6500;
}

.transport-map-marker.is-origin-station {
  --transport-marker-color: #138a62;
}

.transport-map-marker.is-transit-station {
  --transport-marker-color: #7654d4;
}

.transport-map-marker-core {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 2px;
  display: grid;
  width: 38px;
  height: 38px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--transport-marker-color);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  place-items: center;
}

.transport-map-marker-core svg {
  width: 25px;
  height: 25px;
  overflow: visible;
  fill: #fff;
}

.transport-map-marker-core .transport-map-marker-window {
  fill: var(--transport-marker-color);
}

.transport-map-marker-caption {
  position: absolute;
  bottom: 51px;
  left: 50%;
  padding: 4px 7px;
  border: 1px solid rgb(202 215 229 / 90%);
  border-radius: 7px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 2px 7px rgb(20 49 78 / 14%);
  color: var(--ink-900);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.in-transit-itinerary-node.is-arrived {
  border-color: #8dd4ad;
  background: #effaf4;
}

.in-transit-itinerary-node.is-arrived .in-transit-node-status {
  color: #167043;
  font-weight: 700;
}

.in-transit-itinerary-node.is-arrived .in-transit-node-status i {
  background: #21a65f;
  box-shadow: 0 0 0 4px rgba(33, 166, 95, 0.13);
}

.in-transit-itinerary-section,
.in-transit-loading-section {
  margin-top: 15px;
}

.in-transit-itinerary {
  display: grid;
  gap: 0;
}

.in-transit-itinerary-node {
  position: relative;
  display: grid;
  grid-template-columns: 38px 54px minmax(0, 1fr) 94px;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 10px 12px;
  border: 1px solid #e1e9ef;
  background: #fff;
}

.in-transit-itinerary-node + .in-transit-itinerary-node {
  border-top: 0;
}

.in-transit-itinerary-node:first-child {
  border-radius: 10px 10px 0 0;
}

.in-transit-itinerary-node:last-child {
  border-radius: 0 0 10px 10px;
}

.in-transit-node-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #edf3f7;
  color: #476273;
  font-size: 10px;
  font-weight: 800;
}

.in-transit-node-operation {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.in-transit-node-operation.is-load {
  background: #e8f3ff;
  color: #166ea7;
}

.in-transit-node-operation.is-unload {
  background: #fff1df;
  color: #af6713;
}

.in-transit-node-address strong,
.in-transit-node-address span,
.in-transit-node-address small {
  display: block;
}

.in-transit-node-address strong {
  color: var(--ink-900);
  font-size: 12px;
}

.in-transit-node-address span,
.in-transit-node-address small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
}

.in-transit-node-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--ink-500);
  font-size: 9px;
}

.in-transit-node-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aab7c1;
}

.in-transit-loading-task-list {
  display: grid;
  gap: 9px;
}

.in-transit-loading-task {
  overflow: hidden;
  border: 1px solid #dce7ef;
  border-radius: 10px;
  background: #fff;
}

.in-transit-loading-task > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  background: #f8fbfd;
  cursor: pointer;
  list-style: none;
}

.in-transit-loading-task > summary::-webkit-details-marker {
  display: none;
}

.in-transit-loading-task > summary svg {
  width: 14px;
  color: var(--ink-400);
  transition: transform 0.18s ease;
}

.in-transit-loading-task[open] > summary svg {
  transform: rotate(90deg);
}

.in-transit-loading-task-number {
  padding: 6px 8px;
  border-radius: 7px;
  background: #0d77b8;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}

.in-transit-loading-task summary strong,
.in-transit-loading-task summary small {
  display: block;
}

.in-transit-loading-task summary strong {
  color: var(--ink-900);
  font-size: 11px;
}

.in-transit-loading-task summary small,
.in-transit-loading-task summary em {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
  font-style: normal;
}

.in-transit-loading-task-body {
  display: grid;
  gap: 10px;
  padding: 11px;
  border-top: 1px solid #e4ebf0;
}

.in-transit-destination-group {
  overflow: hidden;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
}

.in-transit-destination-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: #fbfcfd;
}

.in-transit-destination-group > header > div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c47a18;
}

.in-transit-destination-group > header small,
.in-transit-destination-group > header strong {
  display: block;
}

.in-transit-destination-group > header small,
.in-transit-destination-group > header em {
  color: var(--ink-500);
  font-size: 9px;
  font-style: normal;
}

.in-transit-destination-group > header strong {
  margin-top: 2px;
  color: var(--ink-900);
  font-size: 11px;
}

.in-transit-cargo-table-wrap {
  overflow-x: auto;
}

.in-transit-cargo-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 9px;
}

.in-transit-cargo-table th,
.in-transit-cargo-table td {
  padding: 8px 9px;
  border-top: 1px solid #e4ebf0;
  border-right: 1px solid #e4ebf0;
  text-align: left;
  white-space: nowrap;
}

.in-transit-cargo-table th {
  background: #f5f8fa;
  color: #486173;
}

.in-transit-cargo-table td {
  color: var(--ink-700);
}

.in-transit-cargo-table th:last-child,
.in-transit-cargo-table td:last-child {
  border-right: 0;
}

.linehaul-task-set-empty {
  min-height: 240px;
}

.linehaul-task-detail-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.linehaul-task-detail-summary > div {
  padding: 12px 14px;
  border: 1px solid #dce8f0;
  border-radius: 10px;
  background: #f7fbfe;
}

.linehaul-task-detail-summary span,
.linehaul-task-detail-summary strong,
.linehaul-task-detail-summary small {
  display: block;
}

.linehaul-task-detail-summary span,
.linehaul-task-detail-summary small {
  color: var(--ink-500);
  font-size: 10px;
}

.linehaul-task-detail-summary strong {
  margin: 4px 0;
  font-size: 15px;
}

.linehaul-total-code-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid #a9d2ed;
  border-radius: 12px;
  background: linear-gradient(135deg, #eaf7ff, #fff);
}

.linehaul-total-code-card span,
.linehaul-total-code-card strong {
  display: block;
}

.linehaul-total-code-card strong {
  margin-top: 4px;
  color: #075f9e;
  font-size: 20px;
}

.linehaul-total-code-card p,
.linehaul-subtask-card p {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 11px;
}

.linehaul-qr-box {
  display: grid;
  width: 126px;
  height: 126px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid #cbdbe7;
  border-radius: 8px;
  background: #fff;
  color: var(--ink-500);
  font-size: 9px;
  text-align: center;
}

.linehaul-qr-box.is-small {
  width: 86px;
  height: 86px;
}

.linehaul-qr-box svg {
  width: 100%;
  height: 100%;
}

.linehaul-subtask-section,
.linehaul-unloading-order-section,
.linehaul-manifest-section {
  margin-top: 14px;
}

.linehaul-unloading-order-list {
  display: grid;
  gap: 7px;
  max-height: 250px;
  overflow-y: auto;
  transition: opacity 0.15s ease;
}

.linehaul-unloading-order-list.is-saving {
  opacity: 0.55;
  pointer-events: none;
}

.linehaul-unloading-order-item {
  display: grid;
  grid-template-columns: 24px 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #dce7ef;
  border-radius: 9px;
  background: #fff;
}

.linehaul-unloading-order-item[draggable='true'] {
  cursor: grab;
}

.linehaul-unloading-order-item.is-dragging {
  border-color: #1595e8;
  background: #eef8fe;
  box-shadow: 0 8px 20px rgba(15, 108, 164, 0.14);
  opacity: 0.65;
}

.linehaul-unloading-drag-handle {
  color: #1595e8;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -2px;
}

.linehaul-unloading-order-item > b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e9f5fd;
  color: #147cb9;
  font-size: 10px;
}

.linehaul-unloading-order-item strong,
.linehaul-unloading-order-item small {
  display: block;
}

.linehaul-unloading-order-item strong {
  color: var(--ink-800);
  font-size: 12px;
}

.linehaul-unloading-order-item small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 10px;
}

.linehaul-task-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.linehaul-task-section-title span {
  color: var(--ink-500);
  font-size: 10px;
}

.linehaul-subtask-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.linehaul-subtask-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #dce7ef;
  border-radius: 9px;
  background: #fff;
}

.linehaul-subtask-card span,
.linehaul-subtask-card strong,
.linehaul-subtask-card small {
  display: block;
}

.linehaul-subtask-card span,
.linehaul-subtask-card small {
  color: var(--ink-500);
  font-size: 9px;
}

.linehaul-subtask-card strong {
  margin-top: 2px;
  color: #126b9f;
  font-size: 12px;
}

.linehaul-manifest-list {
  display: grid;
  gap: 7px;
}

.linehaul-manifest-list > div {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #dce7ef;
  border-radius: 8px;
  background: #f8fbfd;
}

.linehaul-manifest-list small {
  color: var(--ink-500);
}

.linehaul-freight-contract-export {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.my-terminal-scope-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #bfe5d4;
  border-radius: 9px;
  background: #effaf5;
  color: #147a57;
  font-size: 10px;
  font-weight: 700;
}

.my-terminal-scope-badge svg {
  width: 14px;
  height: 14px;
}

.my-terminal-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.my-terminal-metric {
  --terminal-color: #1676b9;
  --terminal-soft: #edf7ff;
  position: relative;
  min-height: 112px;
  overflow: hidden;
  padding: 16px 18px;
  border: 1px solid #dde8ef;
  border-radius: 12px;
  background: #fff;
  color: var(--ink-700);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.my-terminal-metric::after {
  position: absolute;
  right: -24px;
  top: -30px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--terminal-soft);
  content: '';
}

.my-terminal-metric:hover,
.my-terminal-metric.is-active {
  border-color: var(--terminal-color);
  box-shadow: 0 8px 22px rgb(23 78 112 / 10%);
  transform: translateY(-1px);
}

.my-terminal-metric.is-active::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--terminal-color);
  content: '';
}

.my-terminal-metric span,
.my-terminal-metric strong,
.my-terminal-metric small {
  position: relative;
  z-index: 1;
  display: block;
}

.my-terminal-metric span {
  font-size: 11px;
  font-weight: 700;
}

.my-terminal-metric strong {
  margin: 7px 0 4px;
  color: var(--ink-900);
  font-size: 24px;
  line-height: 1;
}

.my-terminal-metric small {
  color: var(--ink-500);
  font-size: 9px;
}

.my-terminal-metric.tone-orange {
  --terminal-color: #d9781e;
  --terminal-soft: #fff4e8;
}

.my-terminal-metric.tone-purple {
  --terminal-color: #7560ca;
  --terminal-soft: #f2efff;
}

.my-terminal-metric.tone-green {
  --terminal-color: #168163;
  --terminal-soft: #eaf9f3;
}

.my-terminal-panel {
  overflow: hidden;
}

.my-terminal-panel-head {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
}

.my-terminal-panel-head h2,
.my-terminal-panel-head p {
  margin: 0;
}

.my-terminal-panel-head h2 {
  color: var(--ink-900);
  font-size: 14px;
}

.my-terminal-panel-head p,
.my-terminal-panel-head > span {
  color: var(--ink-500);
  font-size: 9px;
}

.my-terminal-panel-head p {
  margin-top: 4px;
}

.my-terminal-panel-head > span {
  white-space: nowrap;
}

.my-terminal-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.my-terminal-filters label {
  position: relative;
  display: block;
  width: min(480px, 52vw);
}

.my-terminal-filters label svg {
  position: absolute;
  left: 11px;
  top: 50%;
  z-index: 1;
  width: 13px;
  height: 13px;
  color: var(--ink-400);
  transform: translateY(-50%);
}

.my-terminal-filters .form-control {
  padding-left: 32px;
}

.my-terminal-order-table-toolbar > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-500);
  font-size: 11px;
}

.my-terminal-order-table-toolbar > span > svg {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.my-terminal-table-wrap {
  min-height: 350px;
  max-height: calc(100vh - 410px);
  overflow: auto;
}

.my-terminal-table {
  min-width: 1260px;
}

.my-terminal-table th:nth-child(1) {
  width: 150px;
}
.my-terminal-table th:nth-child(2) {
  width: 180px;
}
.my-terminal-table th:nth-child(3) {
  width: 120px;
}
.my-terminal-table th:nth-child(4) {
  width: 270px;
}
.my-terminal-table th:nth-child(5) {
  width: 220px;
}
.my-terminal-table th:nth-child(6) {
  width: 100px;
}
.my-terminal-table th:nth-child(7) {
  width: 160px;
}
.my-terminal-table th:nth-child(8) {
  width: 130px;
}

.my-terminal-table td {
  vertical-align: top;
}

.my-terminal-table td:first-child small {
  display: block;
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 9px;
}

.my-terminal-cell-lines,
.my-terminal-address-lines,
.my-terminal-cargo-lines,
.my-terminal-detail-cargo {
  display: grid;
  gap: 5px;
}

.my-terminal-cell-lines span,
.my-terminal-address-lines span,
.my-terminal-cargo-lines > span,
.my-terminal-detail-cargo > span {
  display: block;
}

.my-terminal-cell-lines span + span,
.my-terminal-address-lines span + span,
.my-terminal-cargo-lines > span + span,
.my-terminal-detail-cargo > span + span {
  padding-top: 5px;
  border-top: 1px dashed #dce5ea;
}

.my-terminal-address-lines span,
.my-terminal-remark {
  color: var(--ink-600);
  line-height: 1.55;
}

.my-terminal-cargo-lines strong,
.my-terminal-cargo-lines small,
.my-terminal-detail-cargo strong,
.my-terminal-detail-cargo small {
  display: block;
}

.my-terminal-cargo-lines small,
.my-terminal-detail-cargo small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9px;
}

.my-terminal-delivery-tag {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  border-radius: 12px;
  background: #eaf5ff;
  color: #116ca4;
  font-size: 9px;
  font-weight: 700;
}

.my-terminal-delivery-tag.is-pickup {
  background: #fff4df;
  color: #a8640c;
}

.my-terminal-empty {
  display: grid;
  min-height: 260px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--ink-500);
  text-align: center;
}

.my-terminal-empty svg {
  width: 28px;
  height: 28px;
  color: #9eb0bc;
}

.my-terminal-empty strong {
  color: var(--ink-700);
}

.my-terminal-empty span {
  font-size: 9px;
}

.my-terminal-pagination {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 15px;
  border-top: 1px solid var(--line);
  color: var(--ink-500);
  font-size: 9px;
}

.my-terminal-pagination > div {
  display: flex;
  gap: 7px;
}

.my-terminal-detail-head,
.my-terminal-tracking-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.my-terminal-detail-head > div,
.my-terminal-tracking-meta > div {
  padding: 12px;
  border: 1px solid #dce7ed;
  border-radius: 9px;
  background: #f8fbfd;
}

.my-terminal-detail-head span,
.my-terminal-detail-head strong,
.my-terminal-tracking-meta small,
.my-terminal-tracking-meta strong {
  display: block;
}

.my-terminal-detail-head span,
.my-terminal-tracking-meta small {
  color: var(--ink-500);
  font-size: 9px;
}

.my-terminal-detail-head strong,
.my-terminal-tracking-meta strong {
  margin-top: 4px;
  color: var(--ink-900);
}

.my-terminal-detail-section {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid #dce7ed;
  border-radius: 10px;
}

.my-terminal-detail-section > header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #dce7ed;
  background: #f4f8fb;
}

.my-terminal-detail-section > header span {
  color: #1676b9;
  font-size: 9px;
  font-weight: 800;
}

.my-terminal-detail-section > header svg {
  width: 14px;
  height: 14px;
}

.my-terminal-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.my-terminal-detail-grid > div {
  min-width: 0;
}

.my-terminal-detail-grid > div.is-wide {
  grid-column: 1 / -1;
}

.my-terminal-detail-grid small,
.my-terminal-detail-grid strong {
  display: block;
}

.my-terminal-detail-grid small {
  color: var(--ink-500);
  font-size: 9px;
}

.my-terminal-detail-grid strong {
  margin-top: 4px;
  line-height: 1.5;
}

.my-terminal-detail-cargo {
  padding: 12px;
}

.my-terminal-tracking-banner {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid #cfe3f0;
  border-radius: 10px;
  background: #f0f8fd;
}

.my-terminal-tracking-banner > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: #dff0fb;
  color: #1476ad;
}

.my-terminal-tracking-banner svg {
  width: 17px;
  height: 17px;
}

.my-terminal-tracking-banner small,
.my-terminal-tracking-banner strong {
  display: block;
}

.my-terminal-tracking-banner small {
  color: var(--ink-500);
  font-size: 9px;
}

.my-terminal-tracking-banner strong {
  margin-top: 3px;
}

.my-terminal-tracking-banner em {
  color: #1476ad;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.my-terminal-tracking-state {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
  padding: 17px;
  border: 1px solid #e1e8ed;
  border-radius: 10px;
  background: #fff;
}

.my-terminal-tracking-pulse {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 3px solid #b9e0d2;
  border-radius: 50%;
  background: #1c9670;
  box-shadow: 0 0 0 6px rgb(28 150 112 / 10%);
}

.my-terminal-tracking-state p {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 10px;
}

.my-terminal-tracking-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.my-terminal-privacy-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fff7e9;
  color: #8b611f;
  font-size: 9px;
}

.my-terminal-privacy-note svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.status-hall-panel-head {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.status-hall-panel-head > div:first-child strong,
.status-hall-panel-head > div:first-child span {
  display: block;
}

.status-hall-panel-head > div:first-child strong {
  color: var(--ink-900);
  font-size: 14px;
}

.status-hall-panel-head > div:first-child span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 10px;
}

.status-hall-phases {
  display: flex;
  align-items: center;
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 700;
}

.status-hall-phases span {
  padding: 5px 8px;
  border-radius: 12px;
  background: #f3f6f8;
}

.status-hall-phases i {
  width: 18px;
  height: 1px;
  background: #cdd8df;
}

.status-hall-board {
  display: grid;
  grid-template-columns: repeat(10, minmax(250px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 14px;
  background: #f5f8fa;
  scroll-snap-type: x proximity;
}

.status-hall-lane {
  --lane-color: #60717e;
  --lane-soft: #edf1f4;
  display: flex;
  min-height: 430px;
  max-height: 660px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #dde5ea;
  border-radius: 10px;
  background: #fff;
  color: var(--ink-700);
  scroll-snap-align: start;
}

.status-hall-focused-total {
  padding: 6px 10px;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 800;
}

.status-hall-table-wrap {
  position: relative;
  min-height: 300px;
  max-height: clamp(360px, calc(100vh - 380px), 720px);
  overflow: auto;
}

.status-hall-pagination .page-button {
  width: auto;
  min-width: 29px;
  padding: 0 9px;
}

.status-hall-lane.status-pickup {
  --lane-color: #d86f18;
  --lane-soft: #fff1e6;
}

.status-hall-lane.status-warehouse {
  --lane-color: #19836f;
  --lane-soft: #e7f7f4;
}

.status-hall-lane.status-assignment {
  --lane-color: #2375ad;
  --lane-soft: #e7f2fb;
}

.status-hall-lane.status-departure {
  --lane-color: #7653bf;
  --lane-soft: #f1ecff;
}

.status-hall-lane.status-progress {
  --lane-color: #5869c7;
  --lane-soft: #edf0ff;
}

.status-hall-lane.status-last-mile {
  --lane-color: #187c70;
  --lane-soft: #e7f7f4;
}

.status-hall-lane.status-signing {
  --lane-color: #a97713;
  --lane-soft: #fff6d9;
}

.status-hall-lane.status-self-pickup {
  --lane-color: #b84d7d;
  --lane-soft: #ffedf5;
}

.status-hall-lane.status-signed,
.status-hall-lane.status-success {
  --lane-color: #21875a;
  --lane-soft: #e7f8ef;
}

.status-hall-lane.status-transferred {
  --lane-color: #60717e;
  --lane-soft: #edf1f4;
}

.status-hall-lane > header {
  display: flex;
  min-height: 48px;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid #e7ecef;
  background: linear-gradient(135deg, var(--lane-soft), #fff 72%);
}

.status-hall-lane > header > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.status-hall-lane > header strong {
  color: var(--ink-800);
  font-size: 12px;
}

.status-hall-lane > header b {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 7px;
  border-radius: 12px;
  background: var(--lane-soft);
  color: var(--lane-color);
  font-size: 10px;
}

.status-hall-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lane-color);
  box-shadow: 0 0 0 3px var(--lane-soft);
}

.status-hall-orders {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  padding: 10px;
}

.status-hall-order {
  padding: 11px;
  border: 1px solid #e4eaee;
  border-left: 3px solid var(--lane-color);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(27, 52, 68, 0.04);
}

.status-hall-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.status-hall-order-head button,
.status-hall-order footer button,
.status-hall-view-all {
  border: 0;
  background: transparent;
}

.status-hall-order-head button {
  overflow: hidden;
  padding: 0;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-hall-order-head time {
  flex: none;
  color: var(--ink-400);
  font-size: 8px;
}

.status-hall-order > strong,
.status-hall-order > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-hall-order > strong {
  margin-top: 9px;
  color: var(--ink-900);
  font-size: 11px;
}

.status-hall-order > span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 9px;
}

.status-hall-route {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  padding: 7px 8px;
  border-radius: 6px;
  background: #f7f9fa;
  color: var(--ink-600);
  font-size: 9px;
}

.status-hall-route span {
  overflow: hidden;
  flex: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-hall-route span:last-child {
  text-align: right;
}

.status-hall-route svg {
  width: 11px;
  height: 11px;
  flex: none;
  fill: none;
  stroke: var(--lane-color);
  stroke-width: 2;
}

.status-hall-order footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: var(--ink-500);
  font-size: 8px;
}

.status-hall-order footer button {
  padding: 2px;
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 700;
}

.status-hall-empty {
  display: grid;
  min-height: 150px;
  flex: 1;
  place-content: center;
  justify-items: center;
  color: var(--ink-400);
  font-size: 9px;
}

.status-hall-empty svg {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.status-hall-view-all {
  display: flex;
  min-height: 38px;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-top: 1px solid #e7ecef;
  color: var(--lane-color);
  font-size: 9px;
  font-weight: 700;
}

.status-hall-view-all:hover {
  background: var(--lane-soft);
}

.status-hall-view-all svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.status-overview-badge {
  padding: 7px 11px;
  border: 1px solid #d9e7f1;
  border-radius: 16px;
  background: #f3f9fd;
  color: #276f9e;
  font-size: 10px;
  font-weight: 800;
}

.status-overview-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, 0.7fr);
  gap: 14px;
  padding: 16px;
  background: #f4f7f9;
}

.status-overview-primary {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.status-overview-flow,
.status-overview-backlog,
.status-overview-attention {
  overflow: hidden;
  border: 1px solid #dfe7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgb(30 63 83 / 5%);
}

.status-overview-section-head {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e7edf1;
}

.status-overview-section-head strong,
.status-overview-section-head span {
  display: block;
}

.status-overview-section-head strong {
  color: var(--ink-900);
  font-size: 12px;
}

.status-overview-section-head span,
.status-overview-section-head small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
}

.status-overview-section-head > small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  white-space: nowrap;
}

.status-overview-section-head svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.status-overview-phase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #f8fafb;
}

.status-overview-phase {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e2e9ed;
  border-radius: 10px;
  background: #fff;
}

.status-overview-phase > header {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.status-overview-phase > header > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 8px;
  background: #eaf4fb;
  color: #2476a9;
  font-size: 9px;
  font-weight: 900;
}

.status-overview-phase.is-delivery > header > span {
  background: #edf0ff;
  color: #596bc4;
}

.status-overview-phase.is-finished > header > span {
  background: #e8f7ef;
  color: #24805a;
}

.status-overview-phase > header strong,
.status-overview-phase > header small {
  display: block;
}

.status-overview-phase > header strong {
  color: var(--ink-800);
  font-size: 11px;
}

.status-overview-phase > header small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 8px;
}

.status-overview-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.status-overview-dashboard .status-pickup {
  --status-color: #d86f18;
  --status-soft: #fff1e6;
}

.status-overview-dashboard .status-warehouse {
  --status-color: #19836f;
  --status-soft: #e7f7f4;
}

.status-overview-dashboard .status-assignment {
  --status-color: #2375ad;
  --status-soft: #e7f2fb;
}

.status-overview-dashboard .status-departure {
  --status-color: #7653bf;
  --status-soft: #f1ecff;
}

.status-overview-dashboard .status-progress {
  --status-color: #5869c7;
  --status-soft: #edf0ff;
}

.status-overview-dashboard .status-last-mile {
  --status-color: #187c70;
  --status-soft: #e7f7f4;
}

.status-overview-dashboard .status-signing {
  --status-color: #a97713;
  --status-soft: #fff6d9;
}

.status-overview-dashboard .status-self-pickup {
  --status-color: #b84d7d;
  --status-soft: #ffedf5;
}

.status-overview-dashboard .status-signed,
.status-overview-dashboard .status-success {
  --status-color: #21875a;
  --status-soft: #e7f8ef;
}

.status-overview-dashboard .status-transferred {
  --status-color: #60717e;
  --status-soft: #edf1f4;
}

.status-overview-status {
  position: relative;
  min-height: 82px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #e2e8ec;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff 45%, var(--status-soft));
  color: var(--ink-700);
  text-align: left;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.status-overview-status:hover {
  border-color: color-mix(in srgb, var(--status-color) 45%, #dfe7ec);
  box-shadow: 0 7px 15px rgb(30 63 83 / 9%);
  transform: translateY(-1px);
}

.status-overview-status > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-600);
  font-size: 9px;
  font-weight: 700;
}

.status-overview-status > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-color);
  box-shadow: 0 0 0 3px var(--status-soft);
}

.status-overview-status > strong {
  display: block;
  margin-top: 5px;
  color: var(--ink-900);
  font-size: 22px;
  line-height: 1;
}

.status-overview-status > small {
  display: flex;
  position: absolute;
  right: 9px;
  bottom: 8px;
  align-items: center;
  gap: 3px;
  color: var(--status-color);
  font-size: 8px;
  font-weight: 700;
}

.status-overview-status > small svg {
  width: 9px;
  height: 9px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.status-overview-backlog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  padding: 12px 14px 14px;
}

.status-overview-backlog-list > button {
  display: grid;
  grid-template-columns: 90px minmax(70px, 1fr) 46px;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--ink-600);
  text-align: left;
}

.status-overview-backlog-list > button > span {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-overview-backlog-list > button > span i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--status-color);
}

.status-overview-backlog-list > button > div {
  height: 7px;
  overflow: hidden;
  border-radius: 7px;
  background: #edf1f4;
}

.status-overview-backlog-list > button > div b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--status-color),
    color-mix(in srgb, var(--status-color) 55%, white)
  );
}

.status-overview-backlog-list > button > strong {
  color: var(--ink-800);
  font-size: 9px;
  text-align: right;
}

.status-overview-attention {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.status-overview-attention-list {
  display: grid;
  align-content: start;
  min-height: 0;
  gap: 1px;
  padding: 6px 10px;
}

.status-overview-attention-item {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 5px;
  border: 0;
  border-bottom: 1px solid #edf1f3;
  background: transparent;
  text-align: left;
}

.status-overview-attention-item:hover {
  border-radius: 7px;
  background: #f5f9fc;
}

.status-overview-attention-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--status-color);
  font-size: 8px;
  font-weight: 800;
}

.status-overview-attention-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-color);
}

.status-overview-attention-item > div {
  min-width: 0;
}

.status-overview-attention-item strong,
.status-overview-attention-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-overview-attention-item strong {
  color: var(--blue-700);
  font-size: 9px;
}

.status-overview-attention-item > div span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 8px;
}

.status-overview-attention-item time {
  color: #a56e10;
  font-size: 8px;
  white-space: nowrap;
}

.status-overview-attention-item > svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: var(--ink-400);
  stroke-width: 2;
}

.status-overview-attention > footer {
  margin-top: auto;
  padding: 9px 14px;
  border-top: 1px solid #e7edf1;
  background: #fbfcfd;
  color: var(--ink-500);
  font-size: 8px;
}

.status-overview-clear {
  display: flex;
  min-height: 100px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink-400);
  font-size: 9px;
}

.status-overview-clear svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.order-no-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
}

.order-no-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.order-header-select {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  white-space: nowrap;
}

.order-select-control {
  display: inline-grid;
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  cursor: pointer;
  place-items: center;
}

.order-select-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.order-select-control span {
  display: block;
  width: 13px;
  height: 13px;
  border: 1px solid #a9bdca;
  border-radius: 3px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.order-select-control input:focus-visible + span {
  outline: 2px solid rgba(23, 123, 179, 0.24);
  outline-offset: 2px;
}

.order-select-control input:checked + span {
  border-color: var(--blue-600);
  background: var(--blue-600);
  box-shadow: inset 0 0 0 3px #fff;
}

.order-select-control input:indeterminate + span {
  border-color: var(--blue-600);
  background: linear-gradient(
    to bottom,
    var(--blue-600) 0,
    var(--blue-600) 35%,
    #fff 35%,
    #fff 65%,
    var(--blue-600) 65%,
    var(--blue-600) 100%
  );
}

.order-no-link:hover {
  color: var(--orange-600);
}

.order-address-entry {
  display: block;
  min-width: 0;
}

.order-address-entry + .order-address-entry {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.order-address-region {
  display: block;
  color: var(--ink-800);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.order-address-detail {
  display: block;
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.route-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-900);
  font-weight: 700;
  white-space: nowrap;
}

.route-cell svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--orange-500);
  stroke-width: 2;
}

.order-money {
  color: var(--orange-600);
}

.order-receiver-expand-head {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.order-multi-summary-row {
  background: #fffdf9;
}

.order-delivery-detail-row {
  background: #fbfdff;
}

.order-delivery-detail-row + .order-delivery-detail-row td {
  border-top-style: dashed;
}

.order-delivery-detail-row td {
  vertical-align: top;
}

.order-master-cell {
  min-width: 150px;
  border-right: 1px solid var(--line-100);
  background: #f4f9fd;
}

.order-master-total {
  margin-top: 14px;
  color: var(--orange-600);
}

.order-delivery-sequence {
  display: inline-flex;
  min-width: 24px;
  height: 20px;
  margin: 0 6px 4px 0;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: var(--orange-050);
  color: var(--orange-600);
  font-size: 10px;
  font-weight: 800;
}

.table-empty {
  display: grid;
  min-height: 190px;
  place-content: center;
  justify-items: center;
  color: var(--ink-300);
}

.table-empty svg {
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.table-empty strong {
  color: var(--ink-700);
  font-size: 13px;
}

.table-empty span {
  margin-top: 5px;
  font-size: 10px;
}

.page-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.page-buttons .page-button:first-child,
.page-buttons .page-button:last-child {
  width: auto;
  padding: 0 10px;
}

.create-order-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 18px;
}

.create-order-main {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.order-form-section {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.order-form-section > header {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fbfdfe, #fff);
}

.order-form-section > header > span {
  display: grid;
  width: 33px;
  height: 33px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
}

.order-form-section > header h2 {
  margin: 0;
  font-size: 14px;
}

.order-form-section > header p {
  margin: 4px 0 0;
  color: var(--ink-500);
  font-size: 10px;
}

.order-form-body {
  padding: 18px 20px 5px;
}

.form-grid-3,
.form-grid-4 {
  display: grid;
  gap: 0 14px;
}

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

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

.form-grid-4 .full-width {
  grid-column: 1 / -1;
}

.order-form-section .form-group {
  margin-bottom: 14px;
}

.order-form-section .form-label {
  margin-bottom: 7px;
  font-size: 10px;
}

.order-form-section .form-control,
.order-form-section .form-select {
  height: 39px;
  border-radius: 8px;
  font-size: 11px;
}

.cargo-items-list {
  display: grid;
  gap: 12px;
}

.cargo-item-row {
  padding: 12px 14px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.cargo-item-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--ink-500);
  font-size: 9px;
}

.cargo-item-heading strong {
  color: var(--ink-700);
  font-size: 11px;
}

.cargo-items-edit {
  grid-column: 1 / -1;
}

.goods-name-label {
  display: flex;
  min-height: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.goods-name-action {
  display: inline-grid;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.goods-name-action.is-add {
  border-color: #b9d9ee;
  background: var(--blue-50);
  color: var(--blue-700);
}

.goods-name-action.is-remove {
  border-color: #fecaca;
  background: #fff7f7;
  color: #dc2626;
}

.goods-name-action:hover {
  filter: brightness(0.97);
}

.cargo-detail-card {
  grid-column: 1 / -1;
}

.cargo-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cargo-detail-list > div {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--blue-50);
}

.cargo-detail-list p {
  margin: 4px 0 0;
}

.cargo-detail-total {
  margin-top: 10px !important;
  color: var(--orange-600) !important;
  font-weight: 700;
}

.pickup-schedule-panel {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid #dce8ef;
  border-radius: 10px;
  background: #f8fbfd;
}

.pickup-schedule-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pickup-schedule-choice strong,
.pickup-schedule-choice span {
  display: block;
}

.pickup-schedule-choice strong {
  color: var(--ink-800);
  font-size: 11px;
}

.pickup-schedule-choice span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
}

.pickup-toggle {
  display: grid;
  grid-template-columns: repeat(2, 58px);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.pickup-toggle button {
  height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-500);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.pickup-toggle button.is-active {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 3px 8px rgba(16, 114, 173, 0.18);
}

.pickup-schedule-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.pickup-schedule-fields[hidden] {
  display: none;
}

.pickup-schedule-fields .form-group {
  margin: 0;
}

.total-freight-input {
  background: #fff8ed !important;
  color: var(--orange-600) !important;
  font-weight: 800;
}

.settlement-detail-card {
  grid-column: 1 / -1;
}

.driver-assignment-intro,
.photo-upload-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dbe8f0;
  border-radius: 10px;
  background: var(--blue-50);
}

.load-planning-intro {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #cfe1ee;
  border-radius: 12px;
  background: linear-gradient(135deg, #f4faff, #edf6fc);
}

.load-planning-intro > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.load-planning-intro strong,
.load-planning-intro span {
  display: block;
}

.load-planning-intro span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.6;
}

.load-planning-intro > b {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #dceffc;
  color: var(--blue-700);
  font-size: 11px;
}

.load-planning-handover-trigger {
  border-color: #a7cfe8;
  background: #fff;
  color: var(--blue-700);
}

.load-planning-handover-trigger svg,
.load-planning-handover-toolbar .btn svg {
  width: 14px;
  height: 14px;
}

.load-planning-handover-preview,
.load-planning-driver-confirmation-preview {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #b8c9d2;
  border-radius: 10px;
  background: #fff;
}

.load-planning-handover-preview[hidden],
.load-planning-driver-confirmation-preview[hidden],
.load-planning-overview[hidden],
.load-planning-linehaul-picker[hidden],
.load-planning-intro[hidden],
.load-planning-handover-trigger[hidden] {
  display: none;
}

.load-planning-linehaul-picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.load-planning-linehaul-picker .driver-option-list {
  max-height: clamp(200px, 33vh, 270px);
}

.load-planning-linehaul-internal-picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.load-planning-linehaul-internal-picker[hidden] {
  display: none;
}

.load-planning-linehaul-picker-copy {
  min-width: 0;
  flex: 1;
}

.load-planning-linehaul-platform-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.load-planning-linehaul-platform-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.load-planning-linehaul-platform-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.load-planning-linehaul-loading {
  padding: 40px 18px;
  color: var(--ink-500);
  text-align: center;
}

.load-planning-linehaul-picker-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.load-planning-linehaul-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.load-planning-linehaul-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.load-planning-linehaul-footer .btn svg {
  width: 15px;
  height: 15px;
}

#load-planning-linehaul-driver-summary {
  color: var(--ink-500);
  font-size: 11px;
}

.load-planning-linehaul-footer[hidden],
#load-planning-driver-confirmation-preview-button[hidden],
#load-planning-departure[hidden],
#modal-form .modal-submit[hidden] {
  display: none;
}

.load-planning-handover-toolbar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border-bottom: 1px solid #cbd6dc;
  background: #f4f7f5;
}

.load-planning-handover-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.load-planning-handover-heading strong,
.load-planning-handover-heading span {
  display: block;
}

.load-planning-handover-heading strong {
  color: #173b2c;
  font-size: 13px;
}

.load-planning-handover-heading span:not(.load-planning-excel-mark) {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 10px;
}

.load-planning-excel-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 5px;
  background: #217346;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.load-planning-spreadsheet-wrap {
  max-height: 480px;
  overflow: auto;
  background: #fff;
}

.load-planning-spreadsheet {
  width: 100%;
  min-width: 1765px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-family: Arial, 'Microsoft YaHei', sans-serif;
}

.load-planning-spreadsheet th,
.load-planning-spreadsheet td {
  height: 30px;
  padding: 5px 8px;
  overflow: hidden;
  border-right: 1px solid #d7dee2;
  border-bottom: 1px solid #d7dee2;
  color: #1f2d35;
  font-size: 10px;
  line-height: 1.35;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.load-planning-spreadsheet thead th {
  position: sticky;
  z-index: 4;
}

.load-planning-sheet-letters th {
  top: 0;
  height: 25px;
  padding: 3px 8px;
  background: #edf1f2;
  color: #52646e;
  text-align: center;
  font-weight: 600;
}

.load-planning-sheet-document th {
  top: 25px;
  height: 42px;
  background: #fff;
}

.load-planning-sheet-document-content {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 30px;
  padding: 0 8px;
}

.load-planning-sheet-document-content strong {
  min-width: 240px;
  color: #173b2c;
  font-size: 14px;
}

.load-planning-sheet-document-content span {
  display: inline-flex;
  align-items: flex-end;
  color: #263a44;
  font-size: 11px;
  font-weight: 700;
}

.load-planning-sheet-document-content i {
  display: inline-block;
  width: 120px;
  margin-left: 4px;
  border-bottom: 1px solid #7d8d95;
}

.load-planning-sheet-document-content i b {
  display: block;
  overflow: hidden;
  color: #173b2c;
  font-style: normal;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.load-planning-sheet-document-content span:last-child i {
  width: 150px;
}

.load-planning-sheet-fields th {
  top: 67px;
  background: #e2f0d9;
  color: #173b2c;
  font-weight: 800;
}

.load-planning-spreadsheet tbody tr:nth-child(even) td {
  background: #fbfcfc;
}

.load-planning-spreadsheet tbody tr:hover td {
  background: #eaf4e6;
}

.load-planning-spreadsheet .load-planning-sheet-row-number {
  position: sticky;
  z-index: 5;
  left: 0;
  width: 44px;
  min-width: 44px;
  background: #edf1f2;
  color: #60717a;
  text-align: center;
  font-weight: 500;
}

.load-planning-spreadsheet .is-direct-route {
  background: #fff2cc !important;
  color: #8a4b08;
  font-weight: 700;
}

.load-planning-terminal-fee-cell {
  padding: 3px 5px !important;
  background: #fffbe6 !important;
}

.load-planning-terminal-fee-cell label {
  display: flex;
  height: 24px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #c9d5ca;
  border-radius: 3px;
  background: #fff;
}

.load-planning-terminal-fee-input,
.load-planning-terminal-delivery-fee-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 6px;
  border: 0;
  outline: none;
  background: transparent;
  color: #173b2c;
  font:
    700 10px/1 Arial,
    'Microsoft YaHei',
    sans-serif;
  text-align: right;
}

.load-planning-terminal-fee-input:focus,
.load-planning-terminal-delivery-fee-input:focus {
  background: #f2faef;
  box-shadow: inset 0 0 0 1px #217346;
}

.load-planning-total-row th,
.load-planning-total-row td {
  background: #f3f8ef;
  border-top: 1px solid #b8d5aa;
  color: #173b2c;
  font-weight: 800;
}

.load-planning-total-label {
  text-align: right !important;
  white-space: nowrap;
}

.load-planning-terminal-fee-total {
  text-align: right !important;
  white-space: nowrap;
}

.load-planning-terminal-fee-total span {
  margin-right: 4px;
  color: #5f7166;
}

.load-planning-spreadsheet th:nth-child(2),
.load-planning-spreadsheet td:nth-child(2) {
  width: 136px;
}
.load-planning-spreadsheet th:nth-child(3),
.load-planning-spreadsheet td:nth-child(3) {
  width: 110px;
}
.load-planning-spreadsheet th:nth-child(4),
.load-planning-spreadsheet td:nth-child(4) {
  width: 125px;
}
.load-planning-spreadsheet th:nth-child(5),
.load-planning-spreadsheet td:nth-child(5) {
  width: 280px;
}
.load-planning-spreadsheet th:nth-child(6),
.load-planning-spreadsheet td:nth-child(6) {
  width: 82px;
}
.load-planning-spreadsheet th:nth-child(7),
.load-planning-spreadsheet td:nth-child(7) {
  width: 58px;
}
.load-planning-spreadsheet th:nth-child(8),
.load-planning-spreadsheet td:nth-child(8) {
  width: 66px;
}
.load-planning-spreadsheet th:nth-child(9),
.load-planning-spreadsheet td:nth-child(9),
.load-planning-spreadsheet th:nth-child(10),
.load-planning-spreadsheet td:nth-child(10) {
  width: 74px;
}
.load-planning-spreadsheet th:nth-child(11),
.load-planning-spreadsheet td:nth-child(11),
.load-planning-spreadsheet th:nth-child(12),
.load-planning-spreadsheet td:nth-child(12) {
  width: 82px;
}
.load-planning-spreadsheet th:nth-child(13),
.load-planning-spreadsheet td:nth-child(13) {
  width: 135px;
}
.load-planning-spreadsheet th:nth-child(14),
.load-planning-spreadsheet td:nth-child(14) {
  width: 86px;
}
.load-planning-spreadsheet th:nth-child(15),
.load-planning-spreadsheet td:nth-child(15) {
  width: 96px;
}
.load-planning-spreadsheet th:nth-child(16),
.load-planning-spreadsheet td:nth-child(16) {
  width: 230px;
}

.load-planning-driver-confirmation-sheet {
  min-width: 1390px;
}

.load-planning-driver-confirmation-sheet th:nth-child(2),
.load-planning-driver-confirmation-sheet td:nth-child(2) {
  width: 140px;
}
.load-planning-driver-confirmation-sheet th:nth-child(3),
.load-planning-driver-confirmation-sheet td:nth-child(3) {
  width: 120px;
}
.load-planning-driver-confirmation-sheet th:nth-child(4),
.load-planning-driver-confirmation-sheet td:nth-child(4) {
  width: 85px;
}
.load-planning-driver-confirmation-sheet th:nth-child(5),
.load-planning-driver-confirmation-sheet td:nth-child(5) {
  width: 85px;
}
.load-planning-driver-confirmation-sheet th:nth-child(6),
.load-planning-driver-confirmation-sheet td:nth-child(6) {
  width: 230px;
}
.load-planning-driver-confirmation-sheet th:nth-child(7),
.load-planning-driver-confirmation-sheet td:nth-child(7) {
  width: 110px;
}
.load-planning-driver-confirmation-sheet th:nth-child(8),
.load-planning-driver-confirmation-sheet td:nth-child(8) {
  width: 130px;
}
.load-planning-driver-confirmation-sheet th:nth-child(9),
.load-planning-driver-confirmation-sheet td:nth-child(9) {
  width: 300px;
}
.load-planning-driver-confirmation-sheet th:nth-child(10),
.load-planning-driver-confirmation-sheet td:nth-child(10) {
  width: 145px;
}

.load-planning-driver-confirmation-sheet tbody tr td {
  height: 42px;
}

.load-planning-driver-confirmation-sheet tbody tr.load-planning-driver-destination-separator th,
.load-planning-driver-confirmation-sheet tbody tr.load-planning-driver-destination-separator td {
  height: 22px !important;
  padding: 0;
  background: #fff !important;
}

.load-planning-driver-confirmation-sheet tbody tr.is-driver-confirmation-direct td {
  background: #fff8ed;
}

.load-planning-driver-confirmation-sheet tbody tr.is-driver-confirmation-direct:hover td {
  background: #fff1dc;
}

.load-planning-driver-destination-cell {
  color: var(--blue-700) !important;
  font-weight: 800;
}

.is-driver-confirmation-direct .load-planning-driver-destination-cell {
  color: var(--orange-600) !important;
}

.load-planning-driver-signature-cell {
  background-image: linear-gradient(
    to bottom,
    transparent calc(100% - 8px),
    #9daab0 calc(100% - 8px),
    #9daab0 calc(100% - 7px),
    transparent calc(100% - 7px)
  ) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: calc(100% - 22px) 100%;
}

.load-planning-contract-copy-row td,
.load-planning-contract-arrival-row td,
.load-planning-contract-contact-row td,
.load-planning-contract-signature-row td {
  height: auto !important;
  padding: 12px 16px;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}

.load-planning-contract-copy {
  display: grid;
  gap: 8px;
  color: var(--ink-800);
  font-size: 12px;
  line-height: 1.75;
}

.load-planning-contract-copy p {
  margin: 0;
}

.load-planning-contract-arrival-row td,
.load-planning-contract-contact-row td {
  color: var(--ink-800);
  font-size: 12px;
  line-height: 1.7;
}

.load-planning-contract-arrival-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.load-planning-contract-arrival-fields label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.load-planning-contract-arrival-fields input {
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #aebdc5;
  border-radius: 4px;
  background: #fff;
  color: var(--ink-900);
  font: inherit;
}

.load-planning-contract-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  min-height: 72px;
  align-items: end;
  padding: 10px 24px;
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 700;
}

.load-planning-contract-signatures span {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.load-planning-contract-signatures i {
  display: inline-block;
  flex: 1;
  min-width: 120px;
  border-bottom: 1px solid #75858f;
}

.load-planning-contract-actions {
  display: flex;
  justify-content: flex-end;
  padding: 12px;
  border-top: 1px solid #d7e0e5;
  background: #fff;
}

.load-planning-spreadsheet-status {
  display: flex;
  min-height: 35px;
  align-items: center;
  gap: 14px;
  padding: 0 12px;
  border-top: 1px solid #cbd6dc;
  background: #f4f7f5;
  color: var(--ink-500);
  font-size: 10px;
}

.load-planning-sheet-tab {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 3px solid #217346;
  background: #fff;
  color: #173b2c;
  font-weight: 800;
}

.load-planning-group-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.load-planning-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dbe7ef;
  border-radius: 12px;
  background: #fff;
}

.load-planning-group.is-direct {
  border-color: #eadcc9;
}

.load-planning-group > header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid #e7eef3;
  background: #f7fbfe;
}

.load-planning-group.is-direct > header {
  background: #fff9f1;
}

.load-planning-group-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--blue-600);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.load-planning-group.is-direct .load-planning-group-index {
  background: var(--orange-500);
}

.load-planning-group-title {
  min-width: 0;
  flex: 1;
}

.load-planning-group-title small,
.load-planning-group-title strong {
  display: block;
}

.load-planning-group-title small {
  color: var(--ink-400);
  font-size: 9px;
}

.load-planning-group-title strong {
  margin-top: 2px;
  overflow: hidden;
  color: var(--ink-800);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.load-planning-group-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.load-planning-group-actions > b {
  color: var(--blue-700);
  font-size: 11px;
}

.load-planning-group.is-direct .load-planning-handover-trigger {
  border-color: #e7c89e;
  color: #9a570b;
}

.load-planning-table-wrap {
  max-height: 300px;
  overflow: auto;
}

.load-planning-table {
  width: 100%;
  min-width: 1715px;
  border-collapse: collapse;
  table-layout: fixed;
}

.load-planning-table th,
.load-planning-table td {
  padding: 10px 12px;
  border-right: 1px solid #e5edf2;
  border-bottom: 1px solid #e5edf2;
  text-align: left;
  vertical-align: top;
  font-size: 11px;
  line-height: 1.5;
}

.load-planning-table th:last-child,
.load-planning-table td:last-child {
  border-right: 0;
}

.load-planning-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #f3f8fb;
  color: var(--ink-600);
  font-size: 10px;
  font-weight: 800;
}

.load-planning-group.is-direct .load-planning-table th {
  background: #fff7ed;
}

.load-planning-table td {
  color: var(--ink-800);
  overflow-wrap: anywhere;
}

.load-planning-table tbody tr:last-child td {
  border-bottom: 0;
}

.load-planning-table tbody tr:hover td {
  background: #f9fcfe;
}

.load-planning-table th:nth-child(1),
.load-planning-table td:nth-child(1) {
  width: 110px;
}

.load-planning-table th:nth-child(2),
.load-planning-table td:nth-child(2) {
  width: 120px;
  white-space: nowrap;
}

.load-planning-table th:nth-child(3),
.load-planning-table td:nth-child(3) {
  width: 270px;
}

.load-planning-table th:nth-child(4),
.load-planning-table td:nth-child(4) {
  width: 120px;
}

.load-planning-table th:nth-child(5),
.load-planning-table td:nth-child(5) {
  width: 90px;
}

.load-planning-table th:nth-child(6),
.load-planning-table td:nth-child(6) {
  width: 100px;
}

.load-planning-table th:nth-child(7),
.load-planning-table td:nth-child(7) {
  width: 105px;
  white-space: nowrap;
}

.load-planning-table th:nth-child(8),
.load-planning-table td:nth-child(8) {
  width: 105px;
  white-space: nowrap;
}

.load-planning-table th:nth-child(9),
.load-planning-table td:nth-child(9) {
  width: 110px;
  white-space: nowrap;
}

.load-planning-table th:nth-child(10),
.load-planning-table td:nth-child(10) {
  width: 120px;
  white-space: nowrap;
}

.load-planning-table th:nth-child(11),
.load-planning-table td:nth-child(11) {
  width: 135px;
  white-space: nowrap;
}

.load-planning-table th:nth-child(12),
.load-planning-table td:nth-child(12) {
  width: 230px;
}

.load-planning-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--ink-500);
  font-size: 10px;
}

.load-planning-note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--blue-600);
}

.external-platform-link-trigger {
  position: relative;
}

.external-platform-link-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-300);
}

.external-platform-link-trigger.is-linked {
  border-color: #8cd6b3;
  background: #eefbf5;
  color: #087a4b;
}

.external-platform-link-trigger.is-linked .external-platform-link-dot {
  background: #16a66a;
}

.external-platform-link-panel {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #b9d8eb;
  border-radius: 10px;
  background: #f7fbfe;
}

.external-platform-link-panel[hidden] {
  display: none;
}

.driver-assignment-intro[hidden],
.driver-search-box[hidden],
.driver-option-list[hidden] {
  display: none;
}

.external-platform-link-heading,
.external-platform-link-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.external-platform-link-heading strong,
.external-platform-link-heading span {
  display: block;
}

.external-platform-link-heading span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 11px;
}

.external-platform-link-field {
  margin-top: 11px;
}

.external-platform-lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.external-platform-lookup-row .btn {
  min-width: 108px;
  margin-bottom: 1px;
}

.external-platform-driver-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.external-platform-driver-fields[hidden] {
  display: none;
}

.external-platform-driver-fields .form-control[readonly] {
  border-color: #c8d9e4;
  background: #edf5fa;
  color: var(--ink-700);
  cursor: default;
}

.external-platform-link-footer {
  margin-top: 9px;
}

.external-platform-link-footer > span {
  color: var(--ink-500);
  font-size: 11px;
}

.external-platform-link-actions {
  display: flex;
  gap: 8px;
}

.external-platform-lookup-status[data-tone='success'] {
  color: #087a4b;
}

.external-platform-lookup-status[data-tone='warning'] {
  color: #a55b00;
}

.external-platform-lookup-status[data-tone='error'] {
  color: var(--red-600);
}

.driver-assignment-intro strong,
.driver-assignment-intro span,
.photo-upload-intro strong,
.photo-upload-intro span {
  display: block;
}

.driver-assignment-intro span,
.photo-upload-intro span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 11px;
}

.driver-search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-400);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.driver-search-box:focus-within {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgb(29 114 186 / 10%);
}

.driver-search-box svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
}

.driver-search-box input {
  width: 100%;
  min-width: 0;
  height: 39px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-800);
  font: inherit;
}

.driver-option-list {
  display: grid;
  gap: 8px;
  max-height: clamp(220px, 40vh, 360px);
  margin-top: 12px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.driver-option-card {
  display: grid;
  align-items: center;
  grid-template-columns: 20px 38px minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.driver-option-card.is-favorite {
  border-color: #c9ddc2;
}

.driver-option-card[hidden] {
  display: none !important;
}

.driver-option-card:has(input:checked) {
  border-color: var(--blue-500);
  background: var(--blue-50);
}

.driver-option-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: #dff0fb;
  color: var(--blue-700);
  font-weight: 800;
}

.driver-option-avatar-image {
  display: block;
  object-fit: cover;
}

.driver-favorite-hint {
  margin: 7px 2px 0;
  color: var(--ink-500);
  font-size: 10px;
}

.driver-favorite-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 66px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 700;
}

.driver-favorite-toggle svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
}

.driver-favorite-toggle.is-active {
  border-color: #b9d4af;
  background: #edf7e9;
  color: #386936;
}

.driver-favorite-toggle.is-active svg {
  fill: currentColor;
}

.driver-admin-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #edf4ea;
  object-fit: cover;
}

.tracking-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tracking-state-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.tracking-state-badge.is-collecting {
  color: #0d7a51;
  background: #e4f8ef;
}

.tracking-state-badge.is-collecting i {
  animation: tracking-status-pulse 1.5s ease-out infinite;
}

.tracking-state-badge.is-idle {
  color: #718096;
  background: #edf1f5;
}

.tracking-state-detail {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  white-space: nowrap;
}

@keyframes tracking-status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 122, 81, 0.32);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(13, 122, 81, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 122, 81, 0);
  }
}

.driver-option-main strong,
.driver-option-main small {
  display: block;
}

.driver-option-main small {
  margin-top: 3px;
  color: var(--ink-500);
}

.driver-option-plate {
  padding: 6px 9px;
  border-radius: 6px;
  background: #eef3f6;
  font-weight: 800;
}

.driver-search-empty {
  padding: 22px 14px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--ink-500);
  text-align: center;
}

.loading-photo-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.loading-photo-picker-copy strong,
.loading-photo-picker-copy span {
  display: block;
}

.loading-photo-picker-copy strong {
  color: var(--ink-800);
  font-size: 13px;
}

.loading-photo-picker-copy span {
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 11px;
}

.loading-photo-add {
  display: grid;
  width: 82px;
  min-width: 82px;
  min-height: 68px;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 1px dashed #6fa9c9;
  border-radius: 9px;
  background: #f4faff;
  color: var(--blue-700);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.loading-photo-add:hover {
  border-color: var(--blue-600);
  background: #eaf6ff;
}

.loading-photo-add > span {
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.loading-photo-add small {
  font-size: 10px;
  font-weight: 700;
}

.loading-photo-add.is-disabled {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink-300);
  cursor: not-allowed;
}

.loading-photo-add input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.loading-photo-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.loading-photo-preview > span {
  grid-column: 1 / -1;
  padding: 12px;
  color: var(--ink-500);
  text-align: center;
}

.loading-photo-preview figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.loading-photo-preview img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.loading-photo-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  width: 24px;
  height: 24px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 47, 69, 0.78);
  color: #fff;
  cursor: pointer;
}

.loading-photo-remove svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.loading-photo-preview figcaption {
  overflow: hidden;
  padding: 7px;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loading-photo-preview figcaption small {
  display: block;
  margin-top: 2px;
  color: var(--ink-500);
}

.existing-receipt-section {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #f2d7bb;
  border-radius: 10px;
  background: #fffaf5;
}

.existing-receipt-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.existing-receipt-heading > div {
  display: grid;
  gap: 3px;
}

.existing-receipt-heading span,
.existing-receipt-heading small {
  color: var(--ink-500);
  font-size: 11px;
}

.existing-receipt-card {
  border-color: #edc89f !important;
}

.existing-receipt-card figcaption span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.existing-receipt-card a {
  display: block;
}

.existing-receipt-delete {
  background: rgba(185, 55, 55, 0.86);
}

.existing-receipt-unavailable {
  display: grid;
  height: 92px;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: var(--ink-500);
  font-size: 10px;
  background: var(--surface-soft);
}

.existing-receipt-unavailable svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.order-driver-detail-card,
.order-photo-detail-card {
  min-height: 118px;
}

.order-photo-detail-card h5 span {
  margin-left: auto;
  color: var(--blue-600);
}

.order-photo-file-list {
  display: grid;
  gap: 6px;
}

.order-photo-file-list > span {
  display: grid;
  align-items: center;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 7px;
  background: #f6f9fb;
}

.order-photo-file-list svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--blue-600);
  stroke-width: 1.8;
}

.order-photo-file-list small {
  color: var(--ink-500);
}

.settlement-fee-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0;
}

.settlement-fee-grid span {
  padding: 7px 8px;
  border-radius: 7px;
  background: #f6f9fb;
  color: var(--ink-600);
  font-size: 9px;
}

.order-form-section textarea.form-control {
  height: auto;
  min-height: 68px;
  padding: 10px 12px;
  line-height: 1.55;
  resize: vertical;
}

.static-field {
  display: flex;
  height: 39px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 700;
}

.static-field svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.contact-form-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 46px minmax(0, 1fr);
  padding: 18px 20px 20px;
}

.contact-form-grid > .sender-card,
.contact-form-grid > .receiver-cards {
  min-width: 0;
}

.profile-sync-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 20px 0;
  padding: 9px 12px;
  border: 1px solid #b9dcf4;
  border-radius: 8px;
  background: #f0f8fe;
  color: #17699d;
  font-size: 12px;
  line-height: 1.5;
}

.profile-sync-notice svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.contact-form-card {
  position: relative;
  padding: 17px 17px 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfdfe;
}

.order-address-assistant {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.order-address-point-options {
  overflow: hidden;
  border: 1px solid #d9e5ec;
  border-radius: 9px;
  background: #fff;
}

.order-address-point-options > button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #edf2f5;
  background: #fff;
  color: var(--ink-800);
  text-align: left;
  cursor: pointer;
}

.order-address-point-options > button:last-child {
  border-bottom: 0;
}

.order-address-point-options > button:hover {
  background: var(--blue-50);
}

.order-address-point-options > button > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.order-address-point-options strong,
.order-address-point-options small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-address-point-options strong {
  font-size: 10px;
}

.order-address-point-options small {
  color: var(--ink-500);
  font-size: 8px;
}

.order-address-point-options em {
  color: var(--ink-300);
  font-size: 18px;
  font-style: normal;
  text-align: right;
}

.order-address-point-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
}

.order-address-point-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.order-address-mini-map {
  position: relative;
  height: 240px;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid #d9e5ec;
  border-radius: 9px;
  background: #eef5ed;
}

.order-address-map {
  width: 100%;
  height: 100%;
  min-height: 240px;
  cursor: grab;
  touch-action: none;
}

.order-address-map:active {
  cursor: grabbing;
}

.order-address-map-gesture-hint {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(203, 220, 233, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 8px rgba(30, 62, 94, 0.14);
  color: var(--ink-600);
  font-size: 10px;
  line-height: 1.35;
  pointer-events: none;
}

.branded-address-marker {
  position: relative;
  display: grid;
  width: 46px;
  height: 51px;
  place-items: start center;
  pointer-events: none;
  filter: drop-shadow(0 8px 9px rgba(7, 35, 57, 0.28));
}

.branded-address-marker::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 14px;
  height: 5px;
  margin: auto;
  border-radius: 50%;
  background: rgba(8, 43, 70, 0.28);
  content: '';
}

.branded-address-marker-pin {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  transform: rotate(-45deg);
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 9px;
  background: linear-gradient(145deg, #2688dc 0%, #0963ad 66%, #064c86 100%);
  box-shadow:
    0 0 0 1px rgba(8, 62, 98, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.branded-address-marker-core {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #f58220;
  box-shadow: 0 1px 3px rgba(4, 44, 75, 0.24);
}

.branded-address-marker-core::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  content: '';
}

.order-address-map-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 18px;
  background: rgba(246, 249, 251, 0.95);
  color: var(--ink-700);
  text-align: center;
}

.order-address-map-overlay.is-unavailable {
  background: rgba(255, 250, 240, 0.97);
  color: #8e641b;
}

.order-address-picker-result {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid #d9e5ec;
  border-radius: 9px;
  background: #f7fafc;
}

.order-address-map-overlay strong,
.order-address-map-overlay span {
  display: block;
}

.order-address-map-overlay strong {
  margin-top: 9px;
  font-size: 12px;
}

.order-address-map-overlay span {
  max-width: 340px;
  margin-top: 5px;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.55;
}

.order-address-picker-result > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.order-address-picker-result > span svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.order-address-picker-result > div {
  min-width: 0;
  flex: 1;
}

.order-address-picker-result strong,
.order-address-picker-result small {
  display: block;
}

.order-address-picker-result strong {
  color: var(--ink-800);
  font-size: 10px;
}

.order-address-picker-result small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 8px;
}

.order-address-picker-result.is-verified {
  border-color: #b9e4cf;
  background: #f1fbf6;
}

.order-address-assistant.is-saved .order-address-picker-result > span,
.order-address-picker-result.is-verified > span {
  background: #dcf6e9;
  color: var(--green-600);
}

.order-address-picker-result .btn {
  flex: none;
}

.sender-card {
  border-top: 3px solid var(--blue-600);
}

.receiver-card {
  border-top: 3px solid var(--orange-500);
}

.receiver-cards {
  display: grid;
  gap: 12px;
}

.receiver-route-plan {
  margin: 11px 0 8px;
  padding: 10px;
  border: 1px solid #d9e8f2;
  border-radius: 9px;
  background: #f7fafc;
}

.receiver-route-heading,
.receiver-route-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.receiver-route-heading strong,
.receiver-route-heading span {
  display: block;
}

.receiver-route-heading strong {
  color: var(--ink-900);
  font-size: 11px;
}

.receiver-route-heading span {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 8px;
}

.receiver-route-heading em {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eaf5fd;
  color: var(--blue-700);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.receiver-route-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.receiver-route-fields .full {
  grid-column: 1 / -1;
}

.receiver-route-preview {
  align-items: flex-start;
  margin-top: 8px;
  padding: 6px 8px;
  border-left: 3px solid var(--orange-500);
  border-radius: 5px;
  background: #fff8f2;
}

.receiver-route-preview span {
  flex: 0 0 auto;
  color: var(--orange-600);
  font-size: 8px;
  font-weight: 700;
}

.receiver-route-preview strong {
  color: var(--ink-800);
  font-size: 9px;
  line-height: 1.55;
  text-align: right;
}

.contact-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
}

.contact-title-main > span,
.contact-title-main strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-title-action {
  display: inline-grid;
  width: 19px;
  height: 19px;
  place-items: center;
  padding: 0;
  border: 1px solid #f3d0b4;
  border-radius: 5px;
  background: var(--orange-100);
  color: var(--orange-600);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.contact-title-action.is-remove {
  border-color: #fecaca;
  background: #fff7f7;
  color: #dc2626;
}

.contact-title-action[hidden] {
  display: none;
}

.contact-select-btn {
  display: inline-flex;
  height: 30px;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 0 11px;
  border: 1px solid #b9d8e9;
  border-radius: 7px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.contact-select-btn:hover {
  border-color: var(--blue-500);
  background: var(--blue-100);
}

.receiver-card .contact-select-btn {
  border-color: #f3d0b4;
  background: var(--orange-100);
  color: var(--orange-600);
}

.receiver-card .contact-select-btn:hover {
  border-color: var(--orange-500);
}

.contact-select-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.contact-card-title i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.receiver-card .contact-card-title i {
  background: var(--orange-100);
  color: var(--orange-600);
}

.contact-card-title strong,
.contact-card-title small {
  display: block;
}

.address-field-heading {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.address-validation-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 0;
}

.address-validation-status {
  font-size: 9px;
  font-weight: 800;
}

.address-validation-status.is-verified,
.detail-address-status.is-verified {
  color: var(--green-600);
}

.address-validation-status.is-unverified,
.detail-address-status.is-unverified {
  color: #dc2626;
}

.detail-address-status {
  margin-left: 6px;
  font-size: 9px;
  font-weight: 800;
}

.contact-card-title strong {
  font-size: 12px;
}

.contact-card-title small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9px;
}

.contact-transfer {
  display: grid;
  align-self: start;
  justify-items: center;
  gap: 5px;
  padding-top: 16px;
  color: var(--ink-300);
  font-size: 8px;
}

.contact-transfer svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--orange-500);
  stroke-width: 1.6;
}

.contact-selector-search {
  position: relative;
}

.contact-selector-search > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 13px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--ink-400);
  stroke-width: 1.8;
}

.contact-selector-search .form-control {
  height: 42px;
  padding-left: 40px;
}

.contact-selector-hint {
  margin: 9px 1px 14px;
  color: var(--ink-500);
  font-size: 10px;
}

.contact-selector-list {
  display: grid;
  gap: 9px;
}

.contact-selector-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink-700);
  text-align: left;
  cursor: pointer;
}

.contact-selector-item:hover {
  border-color: #b9d8e9;
  background: var(--blue-50);
}

.contact-selector-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 800;
}

.contact-selector-info,
.contact-selector-title {
  display: flex;
}

.contact-selector-info {
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.contact-selector-title {
  align-items: center;
  gap: 8px;
}

.contact-selector-title strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-selector-title em {
  flex: none;
  padding: 2px 6px;
  border-radius: 9px;
  background: #edf2f5;
  color: var(--ink-500);
  font-size: 8px;
  font-style: normal;
}

.contact-selector-title em.is-verified {
  background: #e4f8ef;
  color: var(--green-600);
}

.contact-selector-title em.is-unverified {
  background: #fff1f1;
  color: #dc2626;
}

.contact-selector-info > span:not(.contact-selector-title) {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-selector-info svg,
.contact-selector-item > svg {
  flex: none;
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.contact-selector-item > svg {
  color: var(--ink-300);
}

.contact-selector-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--ink-500);
}

.contact-selector-empty svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--ink-300);
  stroke-width: 1.5;
}

.contact-selector-empty strong {
  color: var(--ink-700);
  font-size: 12px;
}

.contact-selector-empty span {
  font-size: 10px;
}

.input-suffix,
.input-prefix {
  position: relative;
}

.input-suffix .form-control {
  padding-right: 38px;
}

.input-suffix span {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  color: var(--ink-500);
  font-size: 9px;
}

.input-prefix .form-control {
  padding-left: 29px;
}

.input-prefix span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 11px;
  transform: translateY(-50%);
  color: var(--orange-600);
  font-size: 11px;
  font-weight: 800;
}

.order-submit-card {
  position: sticky;
  top: 84px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.submit-card-title {
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--navy-950);
  color: #fff;
}

.submit-card-title > svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #f5a25c;
  stroke-width: 1.7;
}

.submit-card-title strong,
.submit-card-title span {
  display: block;
}

.submit-card-title strong {
  font-size: 13px;
}

.submit-card-title span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 9px;
}

.submit-route {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 16px 1fr;
  gap: 5px;
  padding: 16px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--blue-50);
  color: var(--ink-900);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.submit-route svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--orange-500);
  stroke-width: 2;
}

.order-submit-card dl {
  margin: 0;
  padding: 8px 16px;
}

.order-submit-card dl > div {
  display: flex;
  min-height: 37px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed #e6ecef;
}

.order-submit-card dt {
  color: var(--ink-500);
  font-size: 9px;
}

.order-submit-card dd {
  max-width: 150px;
  margin: 0;
  overflow: hidden;
  color: var(--ink-800);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-submit-card .summary-price {
  min-height: 48px;
  border-bottom: 0;
}

.summary-price dd {
  color: var(--orange-600);
  font-size: 16px;
}

.submit-notice {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 14px 13px;
  padding: 9px 10px;
  border-radius: 7px;
  background: var(--amber-100);
  color: #8e641b;
  font-size: 8px;
  line-height: 1.5;
}

.submit-notice svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.order-submit-card .btn-block {
  width: calc(100% - 28px);
  height: 43px;
  margin: 0 14px 14px;
  font-size: 12px;
}

.order-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.modal:has(.order-detail-head) {
  width: min(900px, 92vw);
}

.modal:has(.order-detail-head) .modal-body {
  padding: 24px;
}

.order-detail-head .status-badge {
  min-height: 27px;
  padding: 0 10px;
  font-size: 12px;
}

.detail-eyebrow {
  color: var(--orange-600);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.order-detail-head h4 {
  margin: 5px 0 0;
  font-size: 24px;
}

.order-detail-head p {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 12px;
}

.detail-route {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr 130px 1fr;
  margin: 20px 0;
  padding: 17px 20px;
  border: 1px solid #dbe8f0;
  border-radius: 10px;
  background: var(--blue-50);
}

.detail-route > div:last-child {
  text-align: right;
}

.detail-route small,
.detail-route strong,
.detail-route span {
  display: block;
}

.detail-route small {
  color: var(--ink-500);
  font-size: 11px;
}

.detail-route strong {
  margin-top: 4px;
  font-size: 16px;
}

.detail-route span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 11px;
}

.detail-route-line {
  position: relative;
  display: grid;
  justify-items: center;
}

.detail-route-line i {
  width: 100%;
  height: 1px;
  background: #adc7d8;
}

.detail-route-line svg {
  position: absolute;
  z-index: 1;
  top: -10px;
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--blue-50);
  fill: none;
  stroke: var(--orange-500);
  stroke-width: 1.7;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fcfdfe;
}

.detail-card h5 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  color: var(--blue-700);
  font-size: 12px;
}

.detail-card h5 svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.detail-card > strong {
  font-size: 14px;
}

.detail-card p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.65;
}

.detail-remark {
  margin-top: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf9;
}

.detail-remark strong {
  font-size: 12px;
}

.detail-remark p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.65;
}

.driver-exception-detail {
  margin-top: 10px;
  padding: 13px 14px;
  border: 1px solid #f1d6a2;
  border-radius: 9px;
  background: #fffaf0;
}

.driver-exception-detail-head,
.driver-exception-detail-list article > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.driver-exception-detail-head {
  justify-content: space-between;
  font-size: 12px;
}

.driver-exception-detail-head span,
.driver-exception-detail-list article > div span {
  color: #966717;
}

.driver-exception-detail-list article {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #f1dfbd;
}

.driver-exception-detail-list article > div {
  font-size: 11px;
}

.driver-exception-detail-list article time {
  margin-left: auto;
  color: var(--ink-400);
}

.driver-exception-detail-list article p {
  margin: 6px 0 0;
  color: var(--ink-700);
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.modal.modal-xl:has(.order-detail-head) {
  width: min(1180px, 95vw);
}

.order-evidence-archive {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #cbdde9;
  border-radius: 12px;
  background: linear-gradient(180deg, #f6fbff 0, #fff 210px);
}

.order-evidence-archive-head,
.order-evidence-archive-head > div,
.order-evidence-archive-actions,
.order-evidence-driver header,
.order-evidence-timeline-panel > header,
.order-evidence-files-panel > header,
.order-evidence-file-group > div,
.order-journey-detail-head,
.order-journey-map-legend {
  display: flex;
  align-items: center;
}

.order-evidence-archive-head {
  justify-content: space-between;
  gap: 14px;
}

.order-evidence-archive-head > div:first-child {
  min-width: 0;
  gap: 10px;
}

.order-evidence-archive-head > div:first-child > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: #dff1fc;
  color: var(--blue-700);
}

.order-evidence-archive-head svg,
.order-evidence-driver svg,
.order-evidence-truth-note svg,
.order-evidence-file-group svg,
.order-journey-map-empty svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.order-evidence-archive-head strong,
.order-evidence-archive-head small {
  display: block;
}

.order-evidence-archive-head strong {
  color: var(--ink-900);
  font-size: 16px;
}

.order-evidence-archive-head small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 11px;
}

.order-evidence-archive-actions {
  flex: 0 0 auto;
  gap: 8px;
}

.order-evidence-retention-badge {
  padding: 6px 9px;
  border: 1px solid #bfe2d3;
  border-radius: 999px;
  background: #ecfaf4;
  color: #167451;
  font-size: 10px;
  font-weight: 800;
}

.order-evidence-truth-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding: 9px 11px;
  border: 1px solid #efd7a8;
  border-radius: 8px;
  background: #fffaf0;
  color: #8a631c;
  font-size: 10px;
  line-height: 1.55;
}

.order-evidence-truth-note svg {
  flex: 0 0 auto;
}

.order-evidence-journey-chain {
  display: grid;
  grid-template-columns: repeat(var(--evidence-stage-count, 3), minmax(0, 1fr));
  gap: 28px;
  margin-top: 14px;
}

.order-evidence-stage {
  --evidence-stage-color: #738a9a;
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  min-height: 132px;
  padding: 12px;
  border: 1px solid #d9e5ed;
  border-top: 3px solid var(--evidence-stage-color);
  border-radius: 10px;
  background: #fff;
}

.order-evidence-stage.is-pickup {
  --evidence-stage-color: #1872ba;
}

.order-evidence-stage.is-linehaul {
  --evidence-stage-color: #f17823;
}

.order-evidence-stage.is-delivery {
  --evidence-stage-color: #1d9a6c;
}

.order-evidence-stage:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 42px;
  left: calc(100% + 5px);
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--evidence-stage-color), #9eb4c3);
  content: '';
}

.order-evidence-stage:not(:last-child)::before {
  position: absolute;
  z-index: 2;
  top: 38px;
  left: calc(100% + 20px);
  width: 7px;
  height: 7px;
  border-top: 2px solid #9eb4c3;
  border-right: 2px solid #9eb4c3;
  content: '';
  transform: rotate(45deg);
}

.order-evidence-stage-index {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--evidence-stage-color) 13%, white);
  color: var(--evidence-stage-color);
  font-size: 11px;
  font-weight: 900;
}

.order-evidence-stage-copy span,
.order-evidence-stage-copy strong,
.order-evidence-stage-copy small {
  display: block;
}

.order-evidence-stage-copy span {
  color: var(--evidence-stage-color);
  font-size: 10px;
  font-weight: 800;
}

.order-evidence-stage-copy strong {
  margin-top: 2px;
  color: var(--ink-900);
  font-size: 13px;
}

.order-evidence-stage-copy small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.5;
}

.order-evidence-stage-metrics {
  display: flex;
  grid-column: 1 / -1;
  gap: 5px;
}

.order-evidence-stage-metrics span {
  flex: 1;
  padding: 5px 6px;
  border-radius: 6px;
  background: #f4f8fb;
  color: var(--ink-600);
  font-size: 8px;
  text-align: center;
}

.order-evidence-stage .btn {
  grid-column: 1 / -1;
  justify-self: stretch;
}

.order-evidence-driver-grid {
  display: grid;
  grid-template-columns: repeat(var(--evidence-stage-count, 3), minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.order-evidence-driver {
  padding: 11px 12px;
  border: 1px solid #dce6ed;
  border-radius: 9px;
  background: #fbfdfe;
}

.order-evidence-driver header {
  gap: 6px;
  color: var(--blue-700);
  font-size: 10px;
}

.order-evidence-driver header span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: #eaf5fb;
}

.order-evidence-driver b,
.order-evidence-driver p,
.order-evidence-driver small {
  display: block;
}

.order-evidence-driver b {
  margin-top: 7px;
  color: var(--ink-900);
  font-size: 12px;
}

.order-evidence-driver p {
  margin: 4px 0 0;
  color: var(--ink-600);
  font-size: 10px;
}

.order-evidence-driver small {
  margin-top: 3px;
  color: var(--ink-400);
  font-size: 9px;
}

.order-evidence-archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.9fr);
  gap: 10px;
  margin-top: 10px;
}

.order-evidence-timeline-panel,
.order-evidence-files-panel {
  min-width: 0;
  padding: 13px;
  border: 1px solid #dce6ed;
  border-radius: 10px;
  background: #fff;
}

.order-evidence-timeline-panel > header,
.order-evidence-files-panel > header {
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2f5;
}

.order-evidence-timeline-panel > header strong,
.order-evidence-files-panel > header strong {
  font-size: 12px;
}

.order-evidence-timeline-panel > header span,
.order-evidence-files-panel > header span {
  color: var(--ink-500);
  font-size: 9px;
}

.order-evidence-timeline {
  max-height: 420px;
  overflow-y: auto;
  padding: 10px 4px 0 15px;
}

.order-evidence-timeline article {
  --timeline-color: #7b8e9b;
  position: relative;
  padding: 0 0 17px 18px;
  border-left: 2px solid #dce6ed;
}

.order-evidence-timeline article.is-pickup {
  --timeline-color: #1872ba;
}

.order-evidence-timeline article.is-linehaul {
  --timeline-color: #f17823;
}

.order-evidence-timeline article.is-delivery {
  --timeline-color: #1d9a6c;
}

.order-evidence-timeline article > i {
  position: absolute;
  top: 1px;
  left: -6px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--timeline-color);
  box-shadow: 0 0 0 1px var(--timeline-color);
}

.order-evidence-timeline article > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-evidence-timeline article > div span {
  padding: 2px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--timeline-color) 11%, white);
  color: var(--timeline-color);
  font-size: 8px;
  font-weight: 800;
}

.order-evidence-timeline time {
  color: var(--ink-400);
  font-size: 9px;
}

.order-evidence-timeline article > strong {
  display: block;
  margin-top: 5px;
  color: var(--ink-900);
  font-size: 11px;
}

.order-evidence-timeline article > p {
  margin: 3px 0 0;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.55;
}

.order-evidence-timeline .link-btn {
  margin-top: 5px;
  font-size: 9px;
}

.order-evidence-files-panel {
  max-height: 475px;
  overflow-y: auto;
}

.order-evidence-file-group {
  margin-top: 9px;
  padding: 9px;
  border-radius: 8px;
  background: #f6f9fb;
}

.order-evidence-file-group > div {
  justify-content: space-between;
  margin-bottom: 5px;
  color: var(--ink-700);
  font-size: 9px;
}

.order-evidence-file-group > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 0;
  border: 0;
  border-top: 1px solid #e2ebf0;
  background: transparent;
  color: var(--blue-700);
  cursor: pointer;
  text-align: left;
}

.order-evidence-file-group > button > span {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.order-evidence-file-group > button b {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-evidence-file-group > button small {
  flex: 0 0 auto;
  color: var(--ink-400);
  font-size: 8px;
}

.order-evidence-empty {
  display: grid;
  min-height: 100px;
  place-items: center;
  color: var(--ink-400);
  font-size: 10px;
}

.order-journey-detail-head {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
  padding: 12px 14px;
  border: 1px solid #d7e7f0;
  border-radius: 9px;
  background: #f3f9fc;
}

.order-journey-detail-head strong,
.order-journey-detail-head span {
  display: block;
}

.order-journey-detail-head strong {
  font-size: 15px;
}

.order-journey-detail-head span,
.order-journey-detail-head small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 10px;
}

.order-journey-detail-head small {
  max-width: 400px;
  text-align: right;
}

.order-journey-map-wrap {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d7e4ec;
  border-radius: 10px;
  background: #fff;
}

.order-journey-map-legend {
  gap: 14px;
  margin-bottom: 9px;
  color: var(--ink-600);
  font-size: 9px;
}

.order-journey-map-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.order-journey-map-legend i {
  width: 20px;
  height: 4px;
  border-radius: 999px;
  background: var(--stage-color);
}

.order-journey-map-legend i.is-connection {
  border-top: 2px dashed #8da3b3;
  border-radius: 0;
  background: transparent;
}

.order-journey-map {
  height: min(480px, 54vh);
  overflow: hidden;
  border-radius: 8px;
  background: #eef4f7;
}

.order-journey-map-empty {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 7px;
  border-radius: 8px;
  background: #f4f7f9;
  color: var(--ink-400);
  text-align: center;
}

.order-journey-map-empty svg {
  width: 28px;
  height: 28px;
}

.order-journey-map-empty strong {
  color: var(--ink-700);
  font-size: 13px;
}

.order-journey-map-empty span {
  font-size: 10px;
}

.order-evidence-photo-preview {
  display: grid;
  gap: 10px;
}

.order-evidence-photo-preview img {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f4f7f9;
}

.order-evidence-photo-preview > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-500);
  font-size: 10px;
}

.order-evidence-photo-preview > div strong {
  overflow: hidden;
  color: var(--ink-800);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .order-evidence-archive-head,
  .order-journey-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-evidence-archive-actions {
    width: 100%;
    justify-content: space-between;
  }

  .order-evidence-journey-chain,
  .order-evidence-driver-grid,
  .order-evidence-archive-layout {
    grid-template-columns: 1fr;
  }

  .order-evidence-stage:not(:last-child)::after {
    top: calc(100% + 4px);
    left: 31px;
    width: 2px;
    height: 20px;
  }

  .order-evidence-stage:not(:last-child)::before {
    top: calc(100% + 18px);
    left: 27px;
    transform: rotate(135deg);
  }

  .order-journey-detail-head small {
    max-width: none;
    text-align: left;
  }
}

.customer-panel-header {
  border-bottom: 0;
}

.customer-validation-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 16px 13px;
  padding: 9px 11px;
  border: 1px solid #f3dfaa;
  border-radius: 8px;
  background: #fffaf0;
  color: #8e641b;
  font-size: 10px;
}

.customer-validation-note svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.customer-table th:nth-child(1) {
  width: 22%;
}

.customer-table th:nth-child(2) {
  width: 14%;
}

.customer-table th:nth-child(4) {
  width: 24%;
}

.customer-table th:last-child {
  width: 150px;
}

.customer-address-cell {
  max-width: 280px;
}

.customer-address-cell .cell-muted,
.customer-validation-message {
  line-height: 1.55;
  white-space: normal;
}

.customer-validation-message {
  max-width: 170px;
  margin-top: 5px;
}

.customer-company-reminder {
  margin-top: 5px;
}

.customer-form-intro,
.customer-bind-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  padding: 12px 13px;
  border: 1px solid #dce8ef;
  border-radius: 9px;
  background: var(--blue-50);
}

.customer-form-intro .stat-icon {
  flex: none;
}

.customer-form-intro strong,
.customer-form-intro span,
.customer-bind-summary strong,
.customer-bind-summary span {
  display: block;
}

.customer-form-intro strong,
.customer-bind-summary strong {
  font-size: 12px;
}

.customer-form-intro span,
.customer-bind-summary span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 10px;
}

.customer-account-section + .customer-account-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.customer-account-heading,
.customer-account-row,
.customer-account-add-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-account-heading {
  justify-content: space-between;
  margin-bottom: 10px;
}

.customer-account-heading strong {
  color: var(--ink-800);
  font-size: 12px;
}

.customer-account-heading span {
  color: var(--ink-500);
  font-size: 10px;
}

.customer-account-list {
  display: grid;
  gap: 8px;
}

.customer-account-row {
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.customer-account-row strong,
.customer-account-row span {
  display: block;
}

.customer-account-row strong {
  color: var(--ink-800);
  font-size: 11px;
}

.customer-account-row span,
.customer-account-empty {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 10px;
}

.customer-account-status.is-open {
  color: #087f5b;
}

.customer-account-status.is-closed {
  color: #c26a16;
}

.customer-account-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.customer-account-row-actions .status-badge {
  margin-top: 0;
}

.customer-account-create {
  padding: 14px;
  border: 1px solid #dce8ef;
  border-radius: 9px;
  background: #fbfdfe;
}

.customer-account-create-intro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--ink-700);
}

.customer-account-create-intro > svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--blue-600);
}

.customer-account-create-intro strong,
.customer-account-create-intro span {
  display: block;
}

.customer-account-create-intro span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.6;
}

.customer-account-create-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(360px, 1.3fr);
  gap: 12px;
}

.customer-sender-account-create-grid {
  grid-template-columns: minmax(150px, 0.65fr) minmax(180px, 0.75fr) minmax(360px, 1.6fr);
}

.credential-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.credential-input-row .form-control {
  min-width: 0;
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.credential-input-row .btn {
  flex: none;
}

.credential-result {
  display: grid;
  gap: 12px;
}

.credential-result-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #f5d9a8;
  border-radius: 9px;
  background: #fff8e8;
  color: #9a5b08;
}

.credential-result-notice > svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.credential-result-notice strong,
.credential-result-notice span {
  display: block;
}

.credential-result-notice span {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.65;
}

.credential-result-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfe;
}

.credential-result-row > span {
  color: var(--ink-500);
  font-size: 10px;
}

.credential-result-row > strong {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.credential-result-close {
  justify-self: end;
}

@media (max-width: 760px) {
  .customer-account-create-grid {
    grid-template-columns: 1fr;
  }

  .credential-input-row {
    flex-wrap: wrap;
  }

  .credential-result-row {
    grid-template-columns: 1fr auto;
  }

  .credential-result-row > span {
    grid-column: 1 / -1;
  }
}

.customer-account-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdfe;
  text-align: center;
}

.customer-account-add-row .form-select {
  flex: 1;
}

.customer-address-picker {
  margin-top: 2px;
}

.customer-address-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.customer-address-poi-options {
  display: grid;
  max-height: 218px;
  margin-top: 8px;
  overflow-y: auto;
  border: 1px solid #cbdce7;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(37, 68, 89, 0.12);
}

.customer-address-poi-options[hidden] {
  display: none;
}

.customer-address-poi-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #edf2f5;
  background: #fff;
  color: var(--ink-700);
  text-align: left;
  cursor: pointer;
}

.customer-address-poi-option:last-child {
  border-bottom: 0;
}

.customer-address-poi-option:hover,
.customer-address-poi-option:focus-visible {
  outline: none;
  background: #f1f8fc;
}

.customer-address-poi-option strong,
.customer-address-poi-option small {
  display: block;
}

.customer-address-poi-option strong {
  font-size: 11px;
}

.customer-address-poi-option small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.45;
}

.customer-address-poi-marker {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e8f5fb;
  color: var(--blue-600);
  font-size: 9px;
  font-weight: 800;
}

.customer-address-search-input {
  position: relative;
}

.customer-address-search-input > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 12px;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--ink-400);
  stroke-width: 1.8;
}

.customer-address-search-input .form-control {
  padding-left: 36px;
}

.customer-address-search-button {
  min-width: 106px;
}

.customer-address-search-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.customer-map-shell {
  position: relative;
  height: 260px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid #d9e5ec;
  border-radius: 10px;
  background:
    linear-gradient(rgba(217, 229, 236, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 229, 236, 0.42) 1px, transparent 1px), #f6f9fb;
  background-size: 28px 28px;
}

.customer-receiver-address-list {
  display: grid;
  gap: 10px;
}

.customer-receiver-address-card {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfdfe;
}

.customer-receiver-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.customer-receiver-card-tools,
.customer-receiver-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.customer-receiver-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.customer-receiver-card-actions .link-btn {
  font-size: 10px;
}

.customer-receiver-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.customer-receiver-history-head > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.customer-receiver-history-head strong {
  color: var(--ink-900);
  font-size: 14px;
}

.customer-receiver-history-head span {
  color: var(--ink-500);
  font-size: 10px;
}

.customer-receivers-footer-button svg,
.customer-receiver-history-head .btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.customer-receiver-address-card p,
.customer-receiver-address-card small {
  margin: 6px 0 0;
  color: var(--ink-600);
  font-size: 10px;
}

.customer-receiver-address-card p svg {
  width: 13px;
  height: 13px;
  margin-right: 5px;
  vertical-align: -2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.customer-map {
  width: 100%;
  height: 100%;
}

.customer-map-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 28px;
  background: rgba(246, 249, 251, 0.94);
  color: var(--ink-700);
  text-align: center;
}

.customer-map-overlay.is-unavailable {
  background: rgba(255, 250, 240, 0.96);
  color: #8e641b;
}

.customer-map-overlay strong,
.customer-map-overlay span {
  display: block;
}

.customer-map-overlay strong {
  margin-top: 12px;
  font-size: 13px;
}

.customer-map-overlay span {
  max-width: 430px;
  margin-top: 6px;
  color: var(--ink-500);
  font-size: 10px;
  line-height: 1.65;
}

.customer-map-result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
  padding: 10px 12px;
  border: 1px solid #e2e9ed;
  border-radius: 8px;
  background: #f8fafb;
}

.customer-map-result.is-verified {
  border-color: #bde5d6;
  background: #f0fbf7;
}

.customer-map-result-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: #e8eef2;
  color: var(--ink-500);
}

.customer-map-result.is-verified .customer-map-result-icon {
  background: #d9f3e9;
  color: var(--green-600);
}

.customer-map-result-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.customer-map-result strong,
.customer-map-result span {
  display: block;
}

.customer-map-result strong {
  color: var(--ink-700);
  font-size: 11px;
}

.customer-map-result span {
  margin-top: 3px;
  color: var(--ink-500);
  font-family: Consolas, monospace;
  font-size: 9px;
}

.amap-sug-result {
  z-index: 220 !important;
  border-color: var(--line) !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow) !important;
}

.print-setting-station {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-500);
  font-size: 10px;
  font-weight: 700;
}

.print-setting-station .form-select {
  width: 210px;
}

.print-setting-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 13px 16px;
  border: 1px solid #cfe2f0;
  border-radius: 10px;
  background: #f2f8fc;
  color: var(--blue-700);
}

.print-setting-overview > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.print-setting-overview svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.print-setting-overview p,
.print-setting-overview strong,
.print-setting-overview span {
  display: block;
  margin: 0;
}

.print-setting-overview strong {
  font-size: 11px;
}

.print-setting-overview span,
.print-setting-overview small {
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.55;
}

.print-setting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.print-setting-card {
  overflow: hidden;
}

.print-setting-card-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.print-setting-card-head h2,
.print-setting-card-head p {
  margin: 0;
}

.print-setting-card-head h2 {
  font-size: 13px;
}

.print-setting-card-head p {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.45;
}

.print-setting-device-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue-100);
  color: var(--blue-700);
}

.print-setting-device-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.print-setting-custom-notice {
  margin: 12px 14px 0;
  padding: 9px 11px;
  border-left: 3px solid var(--orange-500);
  background: #fff8ed;
}

.print-setting-custom-notice strong,
.print-setting-custom-notice span {
  display: block;
}

.print-setting-custom-notice strong {
  color: #9b5d08;
  font-size: 10px;
}

.print-setting-custom-notice span {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9px;
}

.print-setting-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
  padding: 14px 14px 2px;
}

.print-setting-form-grid .span-2 {
  grid-column: 1 / -1;
}

.print-setting-form-grid .form-group {
  margin-bottom: 11px;
}

.print-setting-form-grid .form-label {
  font-size: 9px;
}

.print-setting-form-grid .form-control,
.print-setting-form-grid .form-select {
  height: 36px;
  font-size: 10px;
}

.print-setting-number {
  position: relative;
}

.print-setting-number .form-control {
  padding-right: 38px;
}

.print-setting-number span {
  position: absolute;
  right: 10px;
  top: 50%;
  color: var(--ink-400);
  font-size: 9px;
  transform: translateY(-50%);
  pointer-events: none;
}

.print-setting-fixed-value {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--canvas);
  color: var(--ink-500);
  font-size: 10px;
}

.print-setting-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.print-setting-card-actions svg {
  width: 13px;
  height: 13px;
}

.customer-push-admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #bfd9cb;
  border-radius: 999px;
  background: #eff8f3;
  color: var(--green-700);
  font-size: 10px;
  font-weight: 700;
}

.customer-push-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px 15px;
  border: 1px solid #cfe2f0;
  border-radius: 10px;
  background: #f2f8fc;
  color: var(--blue-700);
}

.customer-push-notice svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.customer-push-notice strong,
.customer-push-notice span {
  display: block;
}

.customer-push-notice strong {
  font-size: 11px;
}

.customer-push-notice span {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.55;
}

.customer-push-photo-shortcuts {
  margin-bottom: 14px;
  padding: 14px 15px;
  border: 1px solid #bfd7eb;
  border-radius: 11px;
  background: #f7fbff;
}

.customer-push-photo-shortcuts-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.customer-push-photo-shortcuts-head strong,
.customer-push-photo-shortcuts-head span {
  display: block;
}

.customer-push-photo-shortcuts-head strong {
  color: var(--blue-700);
  font-size: 12px;
}

.customer-push-photo-shortcuts-head span,
.customer-push-photo-shortcuts-head small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 8px;
}

.customer-push-photo-shortcuts > div:last-child {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-push-photo-shortcuts button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #cfe0ef;
  border-radius: 9px;
  background: #fff;
  color: var(--ink-700);
  text-align: left;
  cursor: pointer;
}

.customer-push-photo-shortcuts button:hover {
  border-color: var(--blue-500);
  box-shadow: 0 5px 14px rgb(44 104 146 / 9%);
}

.customer-push-photo-shortcuts button > span {
  color: var(--ink-500);
  font-size: 9px;
}

.customer-push-photo-shortcuts button > strong {
  color: var(--blue-700);
  font-size: 10px;
}

.customer-push-photo-shortcuts button > small {
  color: var(--blue-600);
  font-size: 8px;
}

.customer-push-routing-guide {
  margin-bottom: 14px;
  padding: 15px;
  border: 1px solid #d9e4dd;
  border-radius: 11px;
  background: #fff;
}

.customer-push-routing-guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.customer-push-routing-guide-head strong,
.customer-push-routing-guide-head span {
  display: block;
}

.customer-push-routing-guide-head strong {
  color: var(--ink-800);
  font-size: 12px;
}

.customer-push-routing-guide-head > div > span {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.55;
}

.customer-push-routing-guide-head .customer-push-routing-guide-badge {
  flex: none;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf6ef;
  color: var(--green-700);
  font-size: 8px;
  font-weight: 700;
}

.customer-push-dimensions,
.customer-push-route-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.customer-push-dimensions article {
  padding: 11px 12px;
  border: 1px solid #d9e7de;
  border-radius: 9px;
  background: #f6faf7;
}

.customer-push-dimensions article > span,
.customer-push-dimensions article > strong {
  display: block;
}

.customer-push-dimensions article > span {
  color: var(--green-700);
  font-size: 8px;
  font-weight: 700;
}

.customer-push-dimensions article > strong {
  margin-top: 4px;
  color: var(--ink-800);
  font-size: 10px;
}

.customer-push-dimensions article > p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 8px;
  line-height: 1.6;
}

.customer-push-route-examples {
  margin-top: 9px;
}

.customer-push-route-examples > div {
  padding: 9px 11px;
  border: 1px solid #dae4ec;
  border-radius: 8px;
  background: #f7fafc;
}

.customer-push-route-examples strong,
.customer-push-route-examples span {
  display: block;
}

.customer-push-route-examples strong {
  color: var(--blue-700);
  font-size: 8px;
}

.customer-push-route-examples span {
  margin-top: 4px;
  color: var(--ink-600);
  font-size: 8px;
  line-height: 1.6;
}

.customer-push-split-rule {
  margin: 9px 0 0;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fff8e9;
  color: var(--ink-600);
  font-size: 8px;
  line-height: 1.65;
}

.customer-push-split-rule strong {
  color: #9b651b;
}

.customer-push-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.customer-push-list,
.customer-push-editor {
  overflow: hidden;
}

.customer-push-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
}

.customer-push-list-head strong {
  font-size: 12px;
}

.customer-push-list-head span {
  color: var(--ink-400);
  font-size: 9px;
}

.customer-push-list-item {
  display: grid;
  width: 100%;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink-700);
  text-align: left;
  cursor: pointer;
}

.customer-push-list-item:last-child {
  border-bottom: 0;
}

.customer-push-list-item:hover,
.customer-push-list-item.is-active {
  background: #f3f8f5;
}

.customer-push-list-item.is-active {
  box-shadow: inset 3px 0 0 var(--green-600);
}

.customer-push-sequence {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink-100);
  color: var(--ink-500);
  font-size: 9px;
  font-weight: 700;
}

.customer-push-list-item.is-active .customer-push-sequence {
  background: var(--green-600);
  color: #fff;
}

.customer-push-list-copy strong,
.customer-push-list-copy small {
  display: block;
}

.customer-push-list-copy strong {
  font-size: 10px;
}

.customer-push-list-copy small {
  margin-top: 3px;
  color: var(--ink-400);
  font-size: 8px;
}

.customer-push-list-state {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--ink-100);
  color: var(--ink-500);
  font-size: 8px;
  white-space: nowrap;
}

.customer-push-list-state.is-enabled {
  background: #e9f6ee;
  color: var(--green-700);
}

.customer-push-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
}

.customer-push-editor-head span,
.customer-push-editor-head h2,
.customer-push-editor-head small {
  display: block;
  margin: 0;
}

.customer-push-editor-head > div > span {
  color: var(--green-700);
  font-size: 9px;
  font-weight: 700;
}

.customer-push-editor-head h2 {
  margin-top: 2px;
  font-size: 15px;
}

.customer-push-editor-head small {
  margin-top: 4px;
  color: var(--ink-400);
  font-size: 8px;
}

.customer-push-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green-700);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.customer-push-switch input,
.customer-push-recipients input,
.customer-push-photo-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--green-600);
}

.customer-push-editor-body {
  display: grid;
  gap: 13px;
  padding: 17px 19px;
}

.customer-push-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.customer-push-section-title strong {
  color: var(--ink-700);
  font-size: 10px;
}

.customer-push-section-title span {
  color: var(--ink-400);
  font-size: 8px;
}

.customer-push-trigger,
.customer-push-applicability,
.customer-push-recipients,
.customer-push-photos,
.customer-push-copy-editor,
.customer-push-preview {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfd;
}

.customer-push-applicability {
  border-color: #d9e7de;
  background: #f6faf7;
}

.customer-push-applicability dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.customer-push-applicability dl > div {
  padding: 9px 10px;
  border: 1px solid #d7e4dc;
  border-radius: 8px;
  background: #fff;
}

.customer-push-applicability dt {
  color: var(--ink-400);
  font-size: 8px;
}

.customer-push-applicability dd {
  margin: 4px 0 0;
  color: var(--green-700);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
}

.customer-push-applicability > p {
  margin: 8px 0 0;
  color: var(--ink-600);
  font-size: 9px;
  line-height: 1.65;
}

.customer-push-trigger {
  border-left: 4px solid var(--blue-600);
  background: #f6fafe;
}

.customer-push-trigger.is-critical {
  border-color: #e2a83e;
  background: #fff9ef;
}

.customer-push-trigger p {
  margin: 0;
  color: var(--ink-600);
  font-size: 10px;
  line-height: 1.65;
}

.customer-push-recipients > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.customer-push-recipients label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 10px;
}

.customer-push-photos {
  border-color: #cfe0f0;
  background: #f6faff;
}

.customer-push-photo-toggle {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid #c6d9eb;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.customer-push-photo-toggle input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.customer-push-photo-toggle span,
.customer-push-photo-toggle strong,
.customer-push-photo-toggle small {
  display: block;
}

.customer-push-photo-toggle strong {
  color: var(--ink-700);
  font-size: 10px;
}

.customer-push-photo-toggle small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 8px;
  line-height: 1.6;
}

.customer-push-photo-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.customer-push-photo-modes label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px;
  border: 1px solid #d7e3ed;
  border-radius: 9px;
  background: #fff;
  cursor: pointer;
}

.customer-push-photo-modes label:has(input:checked) {
  border-color: var(--blue-500);
  background: #eef7ff;
  box-shadow: inset 0 0 0 1px rgb(52 122 170 / 12%);
}

.customer-push-photo-modes input {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
  accent-color: var(--blue-600);
}

.customer-push-photo-modes strong,
.customer-push-photo-modes small {
  display: block;
}

.customer-push-photo-modes strong {
  color: var(--ink-700);
  font-size: 9px;
}

.customer-push-photo-modes small {
  margin-top: 4px;
  color: var(--ink-500);
  font-size: 8px;
  line-height: 1.55;
}

.customer-push-photos > p {
  margin: 8px 0 0;
  color: var(--blue-700);
  font-size: 8px;
  line-height: 1.6;
}

.customer-push-copy-editor textarea {
  min-height: 106px;
  resize: vertical;
  border: 2px solid #dea34b;
  background: #fffaf0;
  font-size: 11px;
  line-height: 1.65;
}

.customer-push-variables {
  margin-top: 9px;
}

.customer-push-variables > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-400);
  font-size: 8px;
}

.customer-push-variables > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-push-variables button {
  padding: 5px 8px;
  border: 1px solid #bcd7c8;
  border-radius: 6px;
  background: #f3f8f5;
  color: var(--green-700);
  font-size: 8px;
  cursor: pointer;
}

.customer-push-notification-preview {
  max-width: 430px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(24, 48, 38, 0.07);
}

.customer-push-notification-preview > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.customer-push-notification-preview strong {
  font-size: 9px;
}

.customer-push-notification-preview span {
  color: var(--ink-400);
  font-size: 8px;
}

.customer-push-notification-preview p {
  margin: 7px 0 0;
  color: var(--ink-700);
  font-size: 10px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.customer-push-photo-preview {
  display: grid;
  grid-template-columns: repeat(2, 66px) 1fr;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.customer-push-photo-preview.is-hidden {
  display: none;
}

.customer-push-photo-preview > span {
  display: grid;
  min-height: 50px;
  place-items: center;
  border: 1px solid #c9d8e6;
  border-radius: 8px;
  background: linear-gradient(145deg, #edf4fa, #dfeaf4);
  color: var(--blue-700);
  font-size: 8px;
  font-weight: 700;
}

.customer-push-photo-preview > small {
  color: var(--ink-400);
  font-size: 8px;
  line-height: 1.5;
}

.customer-push-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 19px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.customer-push-editor-actions > span {
  color: var(--ink-400);
  font-size: 8px;
}

@media (max-width: 1280px) {
  .status-hall-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .my-terminal-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-overview-dashboard {
    grid-template-columns: 1fr;
  }

  .in-transit-task-summary,
  .in-transit-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .transport-group-switcher {
    width: 240px;
  }

  .environment-badge {
    display: none;
  }

  .main-content {
    padding-right: 20px;
    padding-left: 20px;
  }

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

  .client-fixed-permission-grid {
    grid-template-columns: 1fr;
  }

  .scope-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .create-order-layout {
    grid-template-columns: minmax(0, 1fr) 236px;
  }

  .form-grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .order-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .print-setting-grid {
    grid-template-columns: 1fr;
  }

  .customer-push-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .permission-layout,
  .data-scope-layout,
  .role-grid {
    grid-template-columns: 1fr;
  }

  .permission-layout {
    height: auto;
  }

  .permission-tree-panel {
    max-height: 520px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .permission-detail {
    overflow-y: visible;
  }

  .client-fixed-permissions-header,
  .client-fixed-permission-content > div:first-child {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-fixed-permission-content > div:first-child > span {
    max-width: none;
    text-align: left;
  }
  .status-hall-metrics {
    grid-template-columns: 1fr;
  }

  .my-terminal-overview,
  .my-terminal-detail-head,
  .my-terminal-tracking-meta,
  .my-terminal-detail-grid {
    grid-template-columns: 1fr;
  }

  .my-terminal-panel-head,
  .my-terminal-filters,
  .my-terminal-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .my-terminal-filters label {
    width: 100%;
  }

  .my-terminal-filters .btn,
  .my-terminal-pagination .btn {
    flex: 1;
  }

  .my-terminal-tracking-banner {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .my-terminal-tracking-banner em {
    grid-column: 2;
  }

  .status-overview-phase-grid,
  .status-overview-backlog-list {
    grid-template-columns: 1fr;
  }

  .status-overview-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-overview-attention-item {
    grid-template-columns: 62px minmax(0, 1fr) 12px;
  }

  .status-overview-attention-item time {
    display: none;
  }

  .status-hall-phases {
    display: none;
  }

  .status-hall-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .in-transit-task-summary,
  .in-transit-detail-summary {
    grid-template-columns: 1fr;
  }

  .status-hall-view-switch,
  .linehaul-task-set-footer-actions {
    width: 100%;
  }

  .status-hall-view-switch button,
  .linehaul-task-set-footer-actions .btn {
    flex: 1;
  }

  .linehaul-task-set-card > footer,
  .in-transit-current-state {
    align-items: stretch;
    flex-direction: column;
  }

  .in-transit-loading-routes > span {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .in-transit-loading-routes strong {
    grid-column: 2;
  }

  .in-transit-itinerary-node {
    grid-template-columns: 34px 50px minmax(0, 1fr);
  }

  .in-transit-node-status {
    grid-column: 3;
    justify-content: flex-start;
  }

  .in-transit-loading-task > summary {
    grid-template-columns: auto minmax(0, 1fr) 18px;
  }

  .in-transit-loading-task > summary em {
    grid-column: 2;
  }

  .load-planning-group-list {
    grid-template-columns: 1fr;
  }

  .status-hall-board {
    grid-template-columns: repeat(10, minmax(82vw, 1fr));
  }

  .assignment-role-list,
  .assignment-scope-grid {
    grid-template-columns: 1fr;
  }

  .customer-address-search-row {
    grid-template-columns: 1fr;
  }

  .customer-map-shell {
    height: 220px;
  }

  .order-edit-grid {
    grid-template-columns: 1fr;
  }

  .order-edit-routing-layout,
  .order-edit-party-grid,
  .order-edit-service-grid {
    grid-template-columns: 1fr;
  }

  .pickup-schedule-choice {
    align-items: stretch;
    flex-direction: column;
  }

  .pickup-schedule-fields,
  .cargo-detail-list,
  .settlement-fee-grid {
    grid-template-columns: 1fr;
  }

  .print-setting-overview,
  .print-setting-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .print-setting-form-grid {
    grid-template-columns: 1fr;
  }

  .print-setting-form-grid .span-2 {
    grid-column: auto;
  }

  .customer-push-notice,
  .customer-push-photo-shortcuts-head,
  .customer-push-routing-guide-head,
  .customer-push-editor-head,
  .customer-push-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .customer-push-layout {
    grid-template-columns: 1fr;
  }

  .customer-push-dimensions,
  .customer-push-route-examples,
  .customer-push-photo-shortcuts > div:last-child,
  .customer-push-photo-modes,
  .customer-push-applicability dl {
    grid-template-columns: 1fr;
  }

  .customer-push-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-push-list-head {
    grid-column: 1 / -1;
  }

  .customer-push-list-item {
    border-right: 1px solid var(--line);
  }

  .customer-push-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-push-editor-actions .btn {
    width: 100%;
  }
}
/* Configurable mini-program order routing */
.order-routing-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a5f;
}

.order-routing-notice > svg {
  width: 20px;
  min-width: 20px;
  margin-top: 1px;
  color: #2563eb;
}

.order-routing-notice > svg,
.order-routing-target svg,
.order-routing-simulation-result svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.order-routing-notice strong,
.order-routing-notice span {
  display: block;
}

.order-routing-notice strong {
  margin-bottom: 4px;
  font-size: 13px;
}

.order-routing-notice span {
  color: #47637f;
  font-size: 12px;
  line-height: 1.65;
}

.order-routing-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.order-routing-summary article {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 3px 12px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.order-routing-summary span,
.order-routing-summary small {
  color: var(--ink-500);
  font-size: 11px;
}

.order-routing-summary strong {
  grid-row: span 2;
  font-size: 25px;
  line-height: 1;
  color: var(--ink-900);
}

.order-routing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(290px, 0.7fr);
  gap: 16px;
  align-items: start;
}

.order-routing-rules,
.order-routing-simulator {
  overflow: hidden;
}

.order-routing-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}

.order-routing-panel-head strong,
.order-routing-panel-head span {
  display: block;
}

.order-routing-panel-head strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.order-routing-panel-head span {
  color: var(--ink-500);
  font-size: 11px;
}

.order-routing-rule-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.order-routing-fold-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.order-routing-station-groups {
  gap: 12px;
  background: #f8fafc;
}

.order-routing-station-group {
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
}

.order-routing-station-group > summary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.order-routing-station-group > summary::-webkit-details-marker {
  display: none;
}

.order-routing-station-group > summary:hover {
  background: #f8fbff;
}

.order-routing-station-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: #eaf3ff;
  color: #1d4ed8;
}

.order-routing-station-icon svg {
  width: 17px;
  height: 17px;
}

.order-routing-station-copy {
  flex: 1;
  min-width: 0;
}

.order-routing-station-copy strong,
.order-routing-station-copy small,
.order-routing-station-count strong,
.order-routing-station-count small {
  display: block;
}

.order-routing-station-copy strong {
  color: var(--ink-900);
  font-size: 14px;
}

.order-routing-station-copy small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-routing-station-count {
  min-width: 86px;
  text-align: right;
}

.order-routing-station-count strong {
  color: var(--ink-900);
  font-size: 16px;
}

.order-routing-station-count small {
  margin-top: 1px;
  color: var(--ink-500);
  font-size: 10px;
}

.order-routing-station-chevron {
  display: grid;
  place-items: center;
  color: #64748b;
}

.order-routing-station-chevron svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.order-routing-station-group[open] .order-routing-station-chevron svg {
  transform: rotate(90deg);
}

.order-routing-station-rules {
  display: grid;
  gap: 9px;
  padding: 0 11px 11px;
  border-top: 1px solid #edf2f7;
  background: #f8fafc;
}

.order-routing-station-rules .order-routing-rule-card:first-child {
  margin-top: 11px;
}

.order-routing-rule-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}

.order-routing-rule-card.is-disabled {
  background: #f8fafc;
  opacity: 0.75;
}

.order-routing-rule-main {
  flex: 1;
  min-width: 0;
}

.order-routing-rule-title,
.order-routing-target,
.order-routing-coverage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.order-routing-rule-title {
  margin-bottom: 10px;
}

.order-routing-rule-title > strong {
  margin-right: 3px;
  font-size: 14px;
}

.order-routing-direction-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr);
  gap: 7px;
  align-items: stretch;
}

.order-routing-direction-flow.is-fallback {
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
}

.order-routing-direction-node {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #dbeafe;
  border-radius: 9px;
  background: #f8fbff;
}

.order-routing-direction-node span,
.order-routing-direction-node strong,
.order-routing-direction-node small {
  display: block;
}

.order-routing-direction-node span {
  margin-bottom: 5px;
  color: #64748b;
  font-size: 10px;
}

.order-routing-direction-node strong {
  color: #1e3a8a;
  font-size: 12px;
  line-height: 1.5;
}

.order-routing-direction-node small {
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.4;
}

.order-routing-direction-node.is-target {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.order-routing-direction-node.is-target strong {
  color: #166534;
}

.order-routing-direction-arrow {
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 18px;
}

.order-routing-direction-sentence {
  margin: 8px 1px 0;
  color: #64748b;
  font-size: 10px;
  line-height: 1.5;
}

.order-routing-target {
  color: var(--ink-700);
  font-size: 12px;
}

.order-routing-target > span {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: var(--ink-500);
}

.order-routing-target svg {
  width: 14px;
}

.order-routing-target em {
  color: var(--ink-500);
  font-style: normal;
}

.order-routing-coverage {
  margin-top: 11px;
}

.order-routing-coverage > span:not(.order-routing-fallback),
.order-routing-region-chips > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
}

.order-routing-coverage em,
.order-routing-region-chips em {
  color: #64748b;
  font-style: normal;
  font-size: 10px;
}

.order-routing-fallback {
  color: #b45309;
  font-size: 11px;
}

.order-routing-rule-actions {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  white-space: nowrap;
}

.order-routing-simulator form {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.order-routing-simulator form .btn {
  justify-content: center;
}

.order-routing-simulator-address {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.order-routing-simulator-address legend {
  margin-bottom: 6px;
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 600;
}

.order-routing-simulator-region {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.order-routing-simulator-region .form-select {
  min-width: 0;
  padding-right: 24px;
  font-size: 11px;
}

.order-routing-simulator-help {
  margin: -2px 0 0;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.5;
}

.order-routing-simulation-result {
  margin: 0 16px 16px;
  padding: 13px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--ink-500);
  font-size: 11px;
  line-height: 1.6;
}

.order-routing-simulation-result .loading-panel {
  min-height: 90px;
}

.order-routing-simulation-result .is-matched,
.order-routing-simulation-result .is-unmatched {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 3px 8px;
}

.order-routing-simulation-result svg {
  grid-row: 1 / span 4;
  width: 18px;
}

.order-routing-simulation-result strong,
.order-routing-simulation-result span,
.order-routing-simulation-result p,
.order-routing-simulation-result small {
  grid-column: 2;
  margin: 0;
}

.order-routing-simulation-result .is-matched svg {
  color: #16a34a;
}

.order-routing-simulation-result .is-matched strong {
  color: #166534;
  font-size: 14px;
}

.order-routing-simulation-result .is-unmatched svg,
.order-routing-simulation-result .is-unmatched strong {
  color: #b45309;
}

.order-routing-rule-form {
  display: grid;
  gap: 16px;
}

.order-routing-rule-switches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.order-routing-rule-switches label {
  display: flex;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.order-routing-rule-switches strong,
.order-routing-rule-switches small {
  display: block;
}

.order-routing-rule-switches strong {
  font-size: 12px;
}

.order-routing-rule-switches small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 10px;
}

.order-routing-region-editor {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc;
}

.order-routing-region-editor.is-disabled > :not(.order-routing-section-title) {
  display: none;
}

.order-routing-direction-sides {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.order-routing-direction-side {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.order-routing-direction-side.is-active {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgb(59 130 246 / 10%);
}

.order-routing-direction-side header {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.order-routing-direction-side header > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}

.order-routing-direction-side header strong,
.order-routing-direction-side header small {
  display: block;
}

.order-routing-direction-side header strong {
  font-size: 12px;
}

.order-routing-direction-side header small {
  margin-top: 2px;
  color: var(--ink-500);
  font-size: 9px;
  line-height: 1.4;
}

.order-routing-direction-side header .btn {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 10px;
}

.order-routing-direction-side .order-routing-region-chips {
  margin-top: 11px;
}

.order-routing-builder-arrow {
  display: grid;
  place-items: center;
  color: #60a5fa;
  font-size: 20px;
  font-weight: 700;
}

.order-routing-picker-shell {
  margin-top: 12px;
  padding: 11px;
  border: 1px dashed #bfdbfe;
  border-radius: 10px;
  background: #eff6ff;
}

.order-routing-picker-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.order-routing-picker-heading strong {
  color: #1e3a8a;
  font-size: 11px;
}

.order-routing-picker-heading span {
  color: #64748b;
  font-size: 9px;
}

.order-routing-direction-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 9px;
  background: #0f2740;
  color: #fff;
  font-size: 10px;
}

.order-routing-direction-preview > span {
  color: #93c5fd;
}

.order-routing-direction-preview > strong {
  font-size: 10px;
}

.order-routing-direction-preview > b {
  color: #60a5fa;
  font-size: 14px;
}

.order-routing-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-routing-section-title strong,
.order-routing-section-title span {
  display: block;
}

.order-routing-section-title strong {
  font-size: 12px;
}

.order-routing-section-title span {
  color: var(--ink-500);
  font-size: 10px;
}

.order-routing-section-title > span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #e2e8f0;
}

.order-routing-region-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 8px;
}

.order-routing-region-help {
  margin: 8px 0 10px;
  color: var(--ink-500);
  font-size: 10px;
}

.order-routing-region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 31px;
}

.order-routing-region-chips > p {
  margin: 6px 0;
  color: var(--ink-400);
  font-size: 11px;
}

.order-routing-region-chips button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.order-routing-manual-region {
  margin-top: 12px;
  color: var(--ink-500);
  font-size: 10px;
}

.order-routing-manual-region summary {
  cursor: pointer;
}

.order-routing-manual-region > div {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.7fr auto;
  gap: 8px;
  margin-top: 9px;
}

@media (max-width: 980px) {
  .order-routing-layout,
  .order-routing-summary {
    grid-template-columns: 1fr;
  }

  .order-routing-region-picker,
  .order-routing-manual-region > div {
    grid-template-columns: 1fr;
  }

  .order-routing-direction-flow,
  .order-routing-direction-flow.is-fallback,
  .order-routing-direction-sides {
    grid-template-columns: 1fr;
  }

  .order-routing-direction-arrow,
  .order-routing-builder-arrow {
    min-height: 18px;
    transform: rotate(90deg);
  }

  .order-routing-panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .order-routing-station-count {
    min-width: auto;
  }
}
