:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #1f2933;
  --muted: #637083;
  --line: #d9e0e8;
  --primary: #0f766e;
  --primary-strong: #0b5e58;
  --accent: #b45309;
  --danger: #b91c1c;
  --warning-bg: #fff7ed;
  --warning-line: #fdba74;
  --radius: 8px;
}

/* Cargo evidence review stays compact in the narrow Outlook add-in pane. */
.commodity-evidence-warning {
  align-items: center;
  background: #fff7db;
  border: 1px solid #e6a700;
  border-left: 4px solid #d97706;
  border-radius: 8px;
  box-sizing: border-box;
  color: #6b3d00;
  display: grid;
  gap: 8px 12px;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  line-height: 1.3;
  margin: 0 0 14px;
  padding: 10px 12px;
  width: 100%;
}

.commodity-warning-title {
  font-size: 0.86rem;
  white-space: nowrap;
}

.commodity-warning-comparison {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 600;
  gap: 5px;
  min-width: 0;
}

.commodity-warning-source {
  background: rgba(217, 119, 6, 0.08);
  border-radius: 5px;
  overflow-wrap: anywhere;
  padding: 4px 7px;
}

.commodity-warning-arrow {
  color: #b45309;
  font-weight: 700;
}

.commodity-warning-note {
  color: #7c4a03;
  font-size: 0.75rem;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .commodity-evidence-warning {
    align-items: start;
    gap: 6px;
    grid-template-columns: 1fr;
  }

  .commodity-warning-note {
    white-space: normal;
  }
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
  width: 100%;
}

.login-screen {
  align-items: center;
  background: linear-gradient(180deg, #f8fafc, #eef2f6);
  display: grid;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 100;
}

.login-screen[hidden] {
  display: none;
}

.app-shell[hidden] {
  display: none !important;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 55px rgb(15 23 42 / 16%);
  display: grid;
  gap: 14px;
  max-width: 420px;
  padding: 24px;
  width: min(100vw - 32px, 420px);
}

.auth-checking-card {
  gap: 20px;
}

.auth-checking-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: var(--muted);
}

.auth-checking-progress span {
  width: 20px;
  height: 20px;
  border: 2px solid rgb(15 118 110 / 22%);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: status-spin 0.72s linear infinite;
}

.auth-checking-progress p {
  margin: 0;
}

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

button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  min-height: 36px;
  padding: 0 12px;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

button:hover {
  border-color: var(--primary);
  box-shadow: 0 3px 9px rgb(15 23 42 / 8%);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow: none;
}

button.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

button.primary:hover {
  background: var(--primary-strong);
}

button.danger {
  color: var(--danger);
  border-color: #fecaca;
  background: #fff7f7;
}

button.danger:hover {
  border-color: var(--danger);
}

button.danger.confirming {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.modal-backdrop {
  align-items: center;
  background: rgba(15, 23, 42, 0.36);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 50;
  animation: fade-in 0.16s ease-out;
}

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

.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  max-width: 380px;
  padding: 18px;
  width: min(100%, 380px);
  animation: modal-enter 0.18s ease-out;
}

.modal h3 {
  margin: 0 0 8px;
}

.modal p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.toast {
  background: #0f766e;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  color: #fff;
  font-weight: 700;
  max-width: min(360px, calc(100vw - 28px));
  overflow: hidden;
  padding: 12px 14px;
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 60;
  animation: toast-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: top right;
  will-change: opacity, transform;
}

.toast::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.72);
  content: "";
  transform-origin: left;
  animation: toast-progress 2.96s linear both;
}

.toast[hidden] {
  display: none;
}

.toast.error {
  background: var(--danger);
}

.toast.is-leaving {
  animation: toast-exit 0.24s ease-in both;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  max-width: 100%;
  overflow-x: hidden;
  width: 100%;
}

.mail-panel {
  background: #eef2f6;
  border-right: 1px solid var(--line);
  min-width: 0;
  padding: 18px;
}

body.browser-mode .app-shell {
  align-content: start;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

body.browser-mode .mail-panel {
  border-right: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 22px 12px;
}

body.browser-mode .mail-panel .selected-mail {
  display: none;
}

body.browser-mode .mail-panel .brand {
  margin-bottom: 0;
}

body.office-mode .logout-button {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.company-logo {
  display: block;
  flex: 0 0 auto;
  height: auto;
  width: 200px;
}

.brand-divider {
  align-self: center;
  background: var(--line);
  flex: 0 0 1px;
  height: 42px;
  width: 1px;
}

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

.product-brand .mark {
  border-radius: 6px;
  font-size: 12px;
  height: 32px;
  width: 32px;
}

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

.product-brand-copy h1 {
  font-size: 16px;
  line-height: 1.15;
}

.product-brand-copy p {
  font-size: 11px;
  line-height: 1.25;
}

.logout-button {
  margin-left: auto;
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.logout-button:hover {
  border-color: #fda4af;
  background: #ffe4e6;
  color: #9f1239;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.brand:hover .mark {
  box-shadow: 0 6px 18px rgb(15 118 110 / 22%);
  transform: translateY(-1px);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 20px;
}

h2 {
  font-size: 24px;
  line-height: 1.2;
}

h3 {
  font-size: 15px;
}

.brand p,
.eyebrow,
.status-text {
  color: var(--muted);
}

.status-text {
  display: inline-grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 24px;
  line-height: 1.35;
}

.status-text::before {
  content: "";
  display: block;
  justify-self: center;
  box-sizing: border-box;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: 0 0 0 3px rgb(148 163 184 / 16%);
}

.status-text.status-busy::before {
  width: 16px;
  height: 16px;
  border: 2px solid rgb(15 118 110 / 22%);
  border-top-color: var(--primary);
  border-right-color: var(--primary);
  background: transparent;
  box-shadow: none;
  animation: status-spin 0.75s linear infinite;
}

.status-text.status-success::before {
  background: #16a34a;
  box-shadow: 0 0 0 0 rgb(22 163 74 / 35%);
  animation: status-pulse 1.35s ease-out infinite;
}

.status-text.status-warning::before {
  width: 10px;
  height: 10px;
  border: 0;
  background: #d97706;
  box-shadow: 0 0 0 0 rgb(217 119 6 / 48%);
  animation: status-radiate 1.3s ease-out infinite;
}

.status-text.status-error {
  color: var(--danger);
}

.status-text.status-error::before {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgb(185 28 28 / 18%);
  animation: status-breathe 0.9s ease-in-out infinite;
}

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

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(22 163 74 / 34%);
  }
  72% {
    box-shadow: 0 0 0 7px rgb(22 163 74 / 0%);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(22 163 74 / 0%);
  }
}

@keyframes status-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.24);
  }
}

@keyframes status-radiate {
  0% {
    box-shadow: 0 0 0 0 rgb(217 119 6 / 54%);
    transform: scale(1);
  }
  72% {
    box-shadow: 0 0 0 9px rgb(217 119 6 / 0%);
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(217 119 6 / 0%);
    transform: scale(1);
  }
}

.selected-mail {
  display: grid;
  gap: 12px;
}

.mail-readonly-field {
  display: grid;
  gap: 5px;
}

.mail-readonly-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mail-readonly-field strong {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hidden-mail-body {
  display: none;
}

.section-title,
.panel-head,
.panel-actions,
.topbar,
.topbar-actions,
.actions,
.draft-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-head {
  flex-wrap: wrap;
  min-width: 0;
}

.panel-head h3 {
  min-width: 0;
}

.section-title {
  font-weight: 700;
}

.selected-mail .actions {
  justify-content: space-between;
}

.selected-mail .actions .status-text {
  flex: 1;
  justify-content: end;
  min-width: 0;
  overflow: visible;
  text-align: right;
}

.selected-mail .actions .status-text span,
.selected-mail .actions .status-text {
  white-space: nowrap;
}

.icon-button {
  width: 34px;
  padding: 0;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
  min-height: 38px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(15 118 110 / 12%);
  outline: none;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

input.low-confidence,
select.low-confidence {
  background: var(--warning-bg);
  border-color: var(--warning-line);
}

input[type="checkbox"].low-confidence + .switch-track {
  background: var(--warning-bg);
  border-color: var(--warning-line);
}

.route-combobox,
.charge-combobox {
  position: relative;
  min-width: 0;
}

.route-combobox input,
.charge-combobox input {
  padding-right: 32px;
}

.route-combobox-toggle,
.charge-combobox-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0;
  line-height: 0;
}

.route-combobox-toggle::before,
.charge-combobox-toggle::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.route-combobox-toggle:hover,
.route-combobox-toggle:focus,
.charge-combobox-toggle:hover,
.charge-combobox-toggle:focus {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.route-combobox-menu,
.charge-combobox-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(15 23 42 / 18%);
}

.route-combobox-menu[hidden],
.charge-combobox-menu[hidden] {
  display: none;
}

.route-combobox-menu [role="option"],
.charge-combobox-menu [role="option"] {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 7px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.route-combobox-menu [role="option"]:hover,
.route-combobox-menu [role="option"][aria-selected="true"],
.charge-combobox-menu [role="option"]:hover,
.charge-combobox-menu [role="option"][aria-selected="true"] {
  background: #e6f4f1;
  color: var(--primary-strong);
}

.route-combobox-empty,
.charge-combobox-empty {
  padding: 8px 9px;
  color: var(--muted);
  font-weight: 400;
}

.charge-combobox-menu {
  min-width: 220px;
}

.ltl-state-menu {
  min-width: 190px;
}

.ltl-state-menu [role="option"] {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.ltl-state-menu [role="option"] strong {
  flex: 0 0 24px;
}

.ltl-state-menu [role="option"] span {
  color: var(--muted);
  font-size: 12px;
}

.ltl-state-menu [role="option"]:hover span,
.ltl-state-menu [role="option"][aria-selected="true"] span {
  color: inherit;
}

.charge-combobox-menu [role="option"] span,
.charge-combobox-menu [role="option"] small {
  display: block;
}

.charge-combobox-menu [role="option"] small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.charge-table input.low-confidence {
  box-shadow: inset 0 0 0 1px var(--warning-line), 0 0 0 2px rgb(217 119 6 / 10%);
}

.draft-lookup-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -3px 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
  background: #f8fafc;
}

.draft-lookup-progress.is-warning {
  color: #9a5b00;
  background: var(--warning-bg);
  border-color: var(--warning-line);
}

.draft-lookup-progress.is-error {
  color: #b42318;
  background: #fff1f0;
  border-color: #fecdca;
}

.lookup-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  flex: 0 0 auto;
}

.draft-lookup-progress.is-busy .lookup-indicator {
  animation: status-spin 1s linear infinite;
  border: 2px solid rgb(15 118 110 / 24%);
  border-top-color: var(--primary);
  background: transparent;
}

.field-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  min-height: 15px;
  overflow-wrap: anywhere;
  display: none;
}

.workspace {
  min-width: 0;
  padding: 18px;
  max-width: min(1280px, 100%);
  overflow-x: hidden;
  width: 100%;
  justify-self: center;
  margin-inline: auto;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.tabs[hidden] {
  display: none;
}

.office-mode .customer-panel {
  display: none;
}

.tab {
  min-width: 96px;
}

.tab.active {
  color: white;
  background: #334155;
  border-color: #334155;
  box-shadow: 0 6px 16px rgb(51 65 85 / 14%);
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fade-slide-in 0.18s ease-out;
}

.subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.subtab {
  min-width: 120px;
}

.subtab.active {
  color: white;
  background: #334155;
  border-color: #334155;
}

.settings-panel {
  display: none;
}

.settings-panel.active {
  display: grid;
  gap: 14px;
  animation: fade-slide-in 0.18s ease-out;
}

.settings-workspace {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.settings-navigation-card {
  position: sticky;
  top: 14px;
  padding: 14px;
  background: #f1f3f5;
  border-color: #d3d8de;
  border-left: 4px solid #aab2bc;
  box-shadow: 0 5px 18px rgb(15 23 42 / 5%);
}

.settings-navigation-card .eyebrow {
  margin: 0;
}

.settings-side-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin: 0;
}

.settings-side-tabs .subtab {
  width: 100%;
  min-width: 0;
  text-align: left;
}

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

.settings-content .panel {
  background: var(--surface);
  border-color: var(--line);
}

#settingsAccessPanel.active {
  grid-template-columns: minmax(260px, 0.85fr) minmax(360px, 1.25fr);
  align-items: start;
}

#settingsAccessPanel > .panel {
  height: 100%;
}

.model-config-group[hidden] {
  display: none;
}

.settings-hint {
  margin: -2px 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.model-api-service-list {
  display: grid;
  gap: 14px;
}

.model-cargo-prompt-setting {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
  font-weight: 700;
}

.model-cargo-prompt-setting textarea {
  min-height: 260px;
  resize: vertical;
  line-height: 1.45;
}

.model-cargo-prompt-setting small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}

.model-api-service {
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid #64748b;
  border-radius: 10px;
  background: #f8fafc;
}

.model-api-service-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.model-api-service-head > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.model-service-order {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #334155;
  font-size: 0.8rem;
  font-weight: 700;
}

.model-service-enabled {
  align-self: end;
  min-height: 38px;
  margin: 0;
}

.model-api-key-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.model-api-key-control button {
  min-width: 58px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #334155;
  font-weight: 600;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

.allowed-email-manager {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.allowed-email-head,
.allowed-email-tools,
.allowed-email-pager {
  display: flex;
  align-items: center;
  gap: 10px;
}

.allowed-email-head {
  justify-content: space-between;
}

.allowed-email-head h4 {
  margin: 0 0 2px;
  font-size: 0.9rem;
}

.allowed-email-tools input {
  flex: 1;
  min-width: 180px;
}

.allowed-email-list {
  display: grid;
  gap: 6px;
}

.allowed-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.allowed-email-row input.invalid {
  border-color: var(--danger);
  background: #fff5f5;
}

.allowed-email-row .settings-remove-row {
  min-height: 34px;
  color: var(--danger);
}

.allowed-email-pager {
  justify-content: flex-end;
}

.allowed-email-pager .subtext {
  min-width: 90px;
  text-align: center;
}

.settings-textarea {
  min-height: 118px;
}

.agent-connection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px 10px;
}

.agent-connection-grid label {
  min-width: 0;
}

.agent-connection-grid input {
  min-height: 34px;
  padding: 7px 9px;
}

.ofrate-library-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ofrate-library-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
  cursor: pointer;
}

.ofrate-library-row input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
}

.ofrate-library-row span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.ofrate-library-row strong,
.ofrate-library-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ofrate-library-row small {
  color: #64748b;
}

.vsl-agent-docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.shared-route-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.shared-route-rules label {
  min-width: 0;
}

.shared-route-rules .settings-textarea {
  min-height: 178px;
  margin-top: 5px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.35;
}

.vsl-agent-docs label {
  min-width: 0;
}

.vsl-agent-docs .agent-doc-wide {
  grid-column: 1 / -1;
}

.vsl-agent-docs .settings-textarea {
  min-height: 78px;
}

.vsl-agent-docs .mono-textarea {
  min-height: 138px;
}

.mono-textarea {
  font-family: Consolas, "Courier New", monospace;
  min-height: 168px;
}

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

.settings-charge-row {
  border: 1px solid #bfccd9;
  border-left: 4px solid #64748b;
  border-radius: 7px;
  background: #f8fafc;
  display: grid;
  grid-template-columns:
    minmax(120px, 2.5fr)
    minmax(70px, 0.72fr)
    minmax(80px, 0.8fr)
    minmax(70px, 0.7fr)
    minmax(70px, 0.7fr)
    minmax(70px, 0.72fr)
    28px;
  gap: 5px;
  align-items: end;
  padding: 7px 8px;
}

.settings-charge-row.no-remove {
  grid-template-columns:
    minmax(120px, 2.5fr)
    minmax(70px, 0.72fr)
    minmax(80px, 0.8fr)
    minmax(70px, 0.7fr)
    minmax(70px, 0.7fr)
    minmax(70px, 0.72fr);
}

.settings-charge-row label {
  min-width: 0;
  gap: 2px;
  font-size: 10px;
}

.settings-charge-row input,
.settings-charge-row select {
  height: 30px;
  min-height: 30px;
  padding: 5px 6px;
  font-size: 12px;
}

.settings-charge-row.read-only input:disabled,
.settings-charge-row.read-only select:disabled {
  background: #fff;
  color: #344054;
  cursor: default;
  opacity: 1;
  -webkit-text-fill-color: #344054;
}

.settings-agent-list {
  display: grid;
  gap: 10px;
}

.settings-agent-row {
  border: 1px solid #bfccd9;
  border-left: 4px solid #0f766e;
  border-radius: 7px;
  background: #f8fafc;
  display: grid;
  gap: 9px;
  padding: 10px;
}

.settings-agent-row > label {
  min-width: 0;
}

@media (min-width: 981px) {
  .settings-agent-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .settings-agent-head {
    grid-column: 1 / -1;
  }

  .settings-agent-row textarea {
    min-height: 74px;
  }
}

.settings-agent-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto 32px;
  gap: 8px;
  align-items: end;
}

.settings-agent-row textarea {
  min-height: 84px;
}

.settings-agent-row .settings-remove-row {
  color: var(--danger);
  min-height: 34px;
  padding: 0;
}

.agent-enabled {
  margin: 0;
  min-height: 34px;
}

.settings-charge-row .settings-remove-row {
  color: var(--danger);
  min-height: 30px;
  padding: 0;
}

.topbar {
  margin-bottom: 16px;
}

#quoteView .topbar-actions {
  justify-content: flex-end;
  margin-left: auto;
  width: 100%;
}

#quoteView .topbar-actions #quoteStatus {
  margin-right: auto;
}

.cp-bridge-actions {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
}

.cp-bridge-signal {
  position: relative;
  align-self: center;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: #d05460;
  color: #d05460;
}

.cp-bridge-signal::before,
.cp-bridge-signal::after {
  position: absolute;
  inset: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0;
  animation: cp-bridge-radiate 2s ease-out infinite;
}

.cp-bridge-signal::after {
  animation-delay: 1s;
}

.cp-bridge-signal.ready {
  background: #119478;
  color: #119478;
}

.cp-bridge-signal.warning {
  background: #d99a00;
  color: #d99a00;
}

.cp-bridge-signal.offline {
  background: #d05460;
  color: #d05460;
}

@keyframes cp-bridge-radiate {
  0% {
    opacity: 0.65;
    transform: scale(0.8);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

.cp-bridge-status {
  display: block;
  width: 100%;
  padding: 9px 10px 10px;
  border-bottom: 1px solid #dce5eb;
  background: #eef3f7;
  color: #516273;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.cp-bridge-status.ready {
  background: #e4f5ef;
  color: #08745f;
}

.cp-bridge-status.warning {
  background: #fff4d6;
  color: #8b6100;
}

.cp-bridge-status.offline {
  background: #fdebec;
  color: #ad3945;
}

.cp-bridge-actions > button {
  white-space: nowrap;
}

.cp-bridge-actions > [data-send-to-cp] {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.cp-bridge-actions > .cp-bridge-menu-toggle {
  min-width: 30px;
  padding-left: 8px;
  padding-right: 8px;
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.cp-bridge-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 6px);
  right: 0;
  min-width: 254px;
  padding: 5px;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 50, 77, 0.18);
}

.cp-bridge-menu[hidden] {
  display: none;
}

.cp-bridge-menu .cp-bridge-status {
  margin-bottom: 5px;
  border-radius: 5px 5px 0 0;
  cursor: default;
  user-select: none;
}

.cp-bridge-menu button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #17324d;
  text-align: left;
}

.cp-bridge-menu button:hover,
.cp-bridge-menu button:focus-visible {
  background: #edf4f6;
}

@media (prefers-reduced-motion: reduce) {
  .cp-bridge-signal::before,
  .cp-bridge-signal::after {
    animation: none;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 11px;
  background: #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

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

.destination-options-panel{grid-column:1/-1;background:linear-gradient(135deg,rgba(31,111,235,.08),transparent 58%),var(--surface)}
.destination-option-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.destination-option-tab{min-width:150px;text-align:left;border:1px solid var(--line);background:var(--surface);color:inherit;padding:9px 12px;border-radius:9px;cursor:pointer}
.destination-option-tab strong{display:block;margin-top:3px;font-size:.95rem}
.destination-option-tab.active{border-color:#1f6feb;box-shadow:0 0 0 2px rgba(31,111,235,.16);background:rgba(31,111,235,.09)}
.destination-comparison-wrap{overflow-x:auto}
.destination-comparison-table{width:100%;border-collapse:collapse;font-size:.84rem}
.destination-comparison-table th,.destination-comparison-table td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}
.destination-comparison-table tr.active td{background:rgba(31,111,235,.06)}
.destination-status{display:inline-flex;padding:3px 8px;border-radius:999px;background:var(--surface);border:1px solid var(--line)}
.destination-status.matched{color:#238636}.destination-status.no-match{color:#d29922}

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

#dashboardView.active {
  display: grid;
  gap: 22px;
}

#dashboardView .topbar {
  margin-bottom: 0;
}

.dashboard-live-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 5px 11px 5px 8px;
  border: 1px solid #b9ddd2;
  border-radius: 999px;
  background: #eef9f5;
  color: #08745f;
  white-space: nowrap;
}

.dashboard-live-status > span:last-child {
  display: grid;
  gap: 1px;
  text-align: left;
}

.dashboard-live-status strong,
.dashboard-live-status small {
  line-height: 1.15;
}

.dashboard-live-status strong {
  font-size: 12px;
}

.dashboard-live-status small {
  color: #54756d;
  font-size: 10px;
}

.dashboard-live-orbit {
  position: relative;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
}

.dashboard-live-orbit::before {
  position: absolute;
  inset: 1px;
  border: 2px solid rgb(17 148 120 / 24%);
  border-top-color: currentColor;
  border-radius: 50%;
  content: "";
  animation: dashboard-live-spin 1.2s linear infinite;
}

.dashboard-live-orbit::after {
  position: absolute;
  top: -1px;
  left: 9px;
  width: 5px;
  height: 5px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 1px 4px rgb(8 116 95 / 45%);
  content: "";
  transform-origin: 2.5px 12.5px;
  animation: dashboard-orbit-dot 1.2s linear infinite;
}

.dashboard-live-orbit i {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 rgb(17 148 120 / 40%);
  animation: dashboard-live-pulse 1.8s ease-out infinite;
}

.dashboard-live-status.is-updating .dashboard-live-orbit::before,
.dashboard-live-status.is-updating .dashboard-live-orbit::after {
  animation-duration: 0.72s;
}

.dashboard-live-status.is-error {
  border-color: #efc1c6;
  background: #fff2f3;
  color: #ad3945;
}

.dashboard-live-status.is-error small {
  color: #8e555c;
}

#dashboardView > :not(.topbar) {
  transition: opacity 180ms ease, transform 180ms ease;
}

#dashboardView.is-refreshing > :not(.topbar) {
  opacity: 0.72;
  transform: translateY(2px);
}

#dashboardView.just-refreshed .dashboard-metric-window,
#dashboardView.just-refreshed .panel {
  animation: dashboard-data-arrive 700ms ease both;
}

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

@keyframes dashboard-orbit-dot {
  to {
    transform: rotate(360deg);
  }
}

@keyframes dashboard-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(17 148 120 / 48%);
    transform: scale(0.85);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgb(17 148 120 / 0%);
    transform: scale(1);
  }
}

@keyframes dashboard-data-arrive {
  0% {
    box-shadow: 0 0 0 1px rgb(17 148 120 / 0%);
    transform: translateY(2px);
  }
  35% {
    box-shadow: 0 0 0 2px rgb(17 148 120 / 18%);
  }
  100% {
    box-shadow: none;
    transform: translateY(0);
  }
}

#dashboardView .panel {
  padding: 18px;
}

@media (prefers-reduced-motion: reduce) {
  #dashboardView.just-refreshed .dashboard-metric-window,
  #dashboardView.just-refreshed .panel {
    animation: none;
  }

  #dashboardView > :not(.topbar) {
    transition: none;
  }
}

#settingsKnowledgeBasePanel.active {
  display: grid;
  gap: 16px;
}

#settingsKnowledgeBasePanel .topbar {
  margin-bottom: 0;
}

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

.field-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.smb-panel {
  gap: 14px;
}

.smb-password-state {
  align-self: end;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.smb-entry-list {
  display: grid;
  gap: 7px;
  max-height: 300px;
  overflow: auto;
}

.smb-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.smb-entry div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.smb-entry strong,
.smb-entry span {
  overflow-wrap: anywhere;
}

.smb-entry span {
  color: var(--muted);
  font-size: 12px;
}

.knowledge-description {
  min-height: 88px;
  resize: vertical;
}

.knowledge-library-panel {
  gap: 14px;
}

.knowledge-search {
  max-width: 380px;
}

.knowledge-entry-list {
  display: grid;
  gap: 8px;
}

.knowledge-entry {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

.knowledge-entry-main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.knowledge-entry-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.knowledge-entry-title strong,
.knowledge-entry-meta {
  overflow-wrap: anywhere;
}

.knowledge-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  white-space: pre-wrap;
}

.knowledge-entry-meta {
  color: var(--muted);
  font-size: 12px;
}

.knowledge-kind {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 3px 7px;
  background: #e8f2fb;
  color: #205f92;
  font-size: 11px;
  font-weight: 700;
}

.knowledge-kind.link {
  background: #e8f6f1;
  color: #156b55;
}

.knowledge-kind.folder {
  background: #fff4dd;
  color: #9a5a00;
}

.knowledge-entry-actions,
.knowledge-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.knowledge-open {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.knowledge-open:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.knowledge-open.disabled {
  color: var(--muted);
  background: #f8fafc;
  cursor: default;
}

.smb-entry-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.knowledge-pagination {
  justify-content: flex-end;
}

.compact-danger {
  padding: 7px 10px;
  min-height: 0;
}

.quote-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
  animation: panel-enter 0.22s ease-out both;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  position: relative;
}

.card-loading-state {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 18px;
  border-radius: inherit;
  background: rgb(255 255 255 / 88%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(1.5px);
  transform-origin: center;
}

.card-loading-state[hidden] {
  display: none;
}

#quoteView.quote-empty .quote-grid .panel {
  min-height: 104px;
  pointer-events: none;
}

#quoteView.quote-empty .quote-grid .panel::after {
  content: "";
  position: absolute;
  z-index: 7;
  inset: 0;
  border-radius: inherit;
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(1.5px);
}

.card-loading-spinner {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border: 2px solid rgb(15 118 110 / 20%);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: status-spin 0.75s linear infinite;
}

.is-card-loading {
  min-height: 104px;
}

.is-card-revealing {
  animation: card-loaded-expand 0.65s ease-out both;
}

.is-card-revealing .card-loading-state {
  pointer-events: none;
  animation: card-loading-dismiss 0.5s ease-out forwards;
}

.is-card-revealing > :not(.card-loading-state) {
  animation: card-content-reveal 0.55s 0.06s ease-out both;
}

.is-card-error .card-loading-state {
  position: relative;
  inset: auto;
  justify-content: flex-start;
  padding: 8px 10px;
  border: 1px solid #fecdca;
  background: #fff1f0;
  color: #b42318;
  text-align: left;
}

.is-card-error .card-loading-spinner {
  display: none;
}

.panel:hover {
  border-color: #c9d4e1;
  box-shadow: 0 8px 24px rgb(15 23 42 / 7%);
}

.panel h3 {
  line-height: 1.2;
}

.charge-items-panel {
  z-index: 3;
  overflow: visible;
}

.charge-items-panel:focus-within {
  z-index: 80;
}

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

.field-grid {
  display: grid;
  gap: 12px;
  align-items: start;
}

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

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

.cargo-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 10px;
}

.cargo-commodity,
.cargo-pieces {
  grid-column: span 2;
}

.cargo-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cargo-summary div {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.cargo-summary div:hover {
  background: #fff;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.cargo-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.cargo-summary strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
  min-height: 17px;
  overflow-wrap: anywhere;
}

.cargo-measure,
.cargo-unit,
.cargo-flag {
  grid-column: span 1;
}

.switch-field {
  gap: 7px;
}

.switch {
  display: grid;
  grid-template-columns: 44px minmax(24px, auto);
  align-items: center;
  justify-content: start;
  gap: 8px;
  min-height: 34px;
  width: max-content;
}

.switch-control {
  display: block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  display: block;
  position: relative;
  width: 44px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.switch-control:hover .switch-track {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgb(148 163 184 / 12%);
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 20%);
  transition: transform 0.16s ease;
}

.switch input:checked + .switch-track {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(15 118 110 / 10%);
}

.switch input:checked + .switch-track::after {
  transform: translateX(20px);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.switch-text {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.cargo-dimensions {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

.ltl-quote-panel {
  gap: 7px;
  padding-block: 10px;
}

.ltl-quote-panel .panel-head > div {
  display: grid;
  gap: 1px;
}

.ltl-quote-panel > .panel-head {
  align-items: center;
}

.ltl-quote-panel > .panel-head > button {
  margin-left: auto;
  white-space: nowrap;
}

.ltl-pickup-cards {
  display: grid;
  gap: 7px;
}

.ltl-pickup-card {
  display: grid;
  gap: 4px;
  padding: 7px 8px;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0891b2;
  border-radius: 8px;
  background: #f8fafc;
}

.ltl-pickup-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ltl-pickup-card-head > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.ltl-pickup-card-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 6px !important;
}

.ltl-delete-pickup {
  min-height: 24px;
  padding: 3px 8px;
  border-color: #fecaca;
  color: #dc2626;
  font-size: 10px;
}

.ltl-delete-pickup:hover {
  border-color: #f87171;
  background: #fff1f2;
}

.ltl-pickup-card-head h4 {
  margin: 0;
  color: #0f172a;
  font-size: 14px;
}

.ltl-pickup-card-head span {
  color: var(--muted);
  font-size: 10px;
}

.ltl-pickup-status {
  max-width: 55%;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.ltl-pickup-status.success { color: #047857; }
.ltl-pickup-status.warning { color: #a16207; }
.ltl-pickup-status.error { color: #b91c1c; }
.ltl-pickup-status.busy { color: #0369a1; }

.ltl-panel-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 9px !important;
}

.ltl-panel-actions button {
  min-height: 32px;
  white-space: nowrap;
}

.ltl-selected-pickups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ltl-selected-pickups[hidden] {
  display: none;
}

.ltl-pickup-summary {
  display: grid;
  gap: 2px;
  min-width: 0;
  height: auto;
  padding: 8px 10px;
  border-color: #99f6e4;
  background: #f0fdfa;
  text-align: left;
}

.ltl-pickup-summary strong,
.ltl-pickup-summary b {
  color: #0f766e;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.ltl-pickup-summary span {
  color: var(--muted);
  font-size: 10px;
}

.ltl-quote-panel .subtext {
  margin: 0;
}

.ltl-quote-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  min-height: 18px;
  transition: color 0.2s ease;
}

.ltl-quote-status:empty {
  display: none;
}

.ltl-quote-status.busy { color: #0369a1; }
.ltl-quote-status.success { color: #047857; }
.ltl-quote-status.warning { color: #a16207; }
.ltl-quote-status.error { color: var(--danger); }

.ltl-quote-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: end;
}

.ltl-quote-controls label {
  gap: 2px;
  font-size: 11px;
}

.ltl-quote-controls input {
  min-height: 30px;
  padding: 5px 8px;
}

.ltl-freight-class-display input {
  color: #0f172a;
  background: #ecfeff;
  border-color: #a5f3fc;
  font-weight: 800;
}

.ltl-freight-class-display.is-manual input {
  background: #fff7ed;
  border-color: #fdba74;
}

.ltl-freight-class-display > button {
  min-height: 22px;
  margin-top: 3px;
  padding: 2px 7px;
  font-size: 9px;
}

.ltl-freight-class-display small {
  color: #0e7490;
  font-size: 9px;
  font-weight: 700;
}

.ltl-freight-class-combobox {
  width: 100%;
}

.ltl-freight-class-combobox .route-combobox-toggle {
  min-height: 0;
  margin: 0;
  padding: 0;
  font-size: 0;
}

.ltl-freight-class-menu {
  min-width: 100%;
}

.ltl-quote-controls button {
  min-height: 30px;
  white-space: nowrap;
}

.ltl-order-details-disclosure,
.ltl-accessorial-disclosure {
  overflow: hidden;
  border: 1px solid #dbe4ee;
  border-radius: 7px;
  background: #fff;
}

.ltl-order-details-summary,
.ltl-accessorial-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  padding: 3px 8px;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.ltl-order-details-summary::-webkit-details-marker,
.ltl-accessorial-summary::-webkit-details-marker {
  display: none;
}

.ltl-order-details-summary > span:first-child,
.ltl-accessorial-summary > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.ltl-order-details-summary strong,
.ltl-accessorial-summary strong {
  font-size: 11px;
}

.ltl-order-details-summary small,
.ltl-accessorial-summary small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.ltl-order-details-summary-meta,
.ltl-accessorial-summary-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.ltl-order-details-summary-meta b,
.ltl-accessorial-summary-meta b {
  color: #0e7490;
  font-size: 9px;
}

.ltl-order-details-summary-meta i,
.ltl-accessorial-summary-meta i {
  color: #64748b;
  font-size: 14px;
  font-style: normal;
  transition: transform 0.16s ease;
}

.ltl-order-details-disclosure[open] .ltl-order-details-summary,
.ltl-accessorial-disclosure[open] .ltl-accessorial-summary {
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ltl-order-details-disclosure[open] .ltl-order-details-summary-meta i,
.ltl-accessorial-disclosure[open] .ltl-accessorial-summary-meta i {
  transform: rotate(180deg);
}

.ltl-order-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
}

.ltl-order-location {
  min-width: 0;
  margin: 0;
  padding: 5px 7px 7px;
  border: 1px solid #dbe4ee;
  border-radius: 7px;
  background: #fff;
}

.ltl-order-location legend {
  padding: 0 3px;
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
}

.ltl-order-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 6px;
}

.ltl-order-field-grid label {
  gap: 2px;
  min-width: 0;
  font-size: 10px;
}

.ltl-order-field-grid input {
  min-width: 0;
  min-height: 28px;
  padding: 4px 7px;
}

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

.ltl-accessorials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
}

.ltl-accessorial-group {
  min-width: 0;
  margin: 0;
  padding: 5px 7px 7px;
  border: 1px solid #dbe4ee;
  border-radius: 7px;
  background: #fff;
}

.ltl-accessorial-group legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 0 3px;
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
}

.ltl-accessorial-group legend span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

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

.ltl-accessorial-option {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
  color: #334155;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
}

.ltl-accessorial-option input {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  min-height: 13px;
  margin: 0;
  padding: 0;
  accent-color: #0891b2;
}

.ltl-accessorial-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ltl-accessorial-option.is-auto {
  cursor: default;
}

.ltl-accessorial-option.is-auto input:disabled {
  opacity: 0.9;
  cursor: not-allowed;
}

.ltl-accessorial-option em {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 3px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.5;
  text-transform: uppercase;
}

#getLtlQuotesBtn[aria-busy="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0.9;
}

.ltl-button-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgb(255 255 255 / 38%);
  border-top-color: #fff;
  border-radius: 50%;
  animation: status-spin 0.7s linear infinite;
}

.ltl-quote-results {
  display: grid;
  gap: 4px;
}

.ltl-loading {
  display: grid;
  gap: 12px;
  min-height: 150px;
  padding: 14px;
  border: 1px solid #bae6fd;
  border-radius: 9px;
  background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 100%);
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
}

.ltl-loading-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ltl-loading-head > div {
  display: grid;
  gap: 2px;
}

.ltl-loading-head strong {
  color: #075985;
  font-size: 14px;
}

.ltl-loading-head span {
  font-size: 11px;
}

.ltl-orbit {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 2px solid rgb(14 116 144 / 18%);
  border-radius: 50%;
  animation: ltl-orbit-spin 1.15s linear infinite;
}

.ltl-orbit i {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0891b2;
  box-shadow: 0 0 0 4px rgb(8 145 178 / 14%);
}

.ltl-progress-track {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbeafe;
}

.ltl-progress-track span {
  position: absolute;
  inset-block: 0;
  width: 38%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0891b2, #2dd4bf);
  animation: ltl-progress-sweep 1.45s ease-in-out infinite;
}

.ltl-loading-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ltl-step;
}

.ltl-loading-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
}

.ltl-loading-steps li::before {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  content: counter(ltl-step);
  counter-increment: ltl-step;
  font-size: 9px;
}

.ltl-loading-steps li.is-complete,
.ltl-loading-steps li.is-active {
  color: #0e7490;
}

.ltl-loading-steps li.is-complete::before {
  border-color: #14b8a6;
  background: #14b8a6;
  color: #fff;
  content: "✓";
}

.ltl-loading-steps li.is-active::before {
  border-color: #0891b2;
  box-shadow: 0 0 0 4px rgb(8 145 178 / 13%);
  animation: status-breathe 1.1s ease-in-out infinite;
}

.ltl-skeleton-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ltl-skeleton-list span {
  height: 31px;
  border-radius: 6px;
  background: linear-gradient(90deg, #e2e8f0 20%, #f8fafc 42%, #e2e8f0 64%);
  background-size: 220% 100%;
  animation: ltl-skeleton-shimmer 1.4s ease-in-out infinite;
}

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

@keyframes ltl-progress-sweep {
  from { left: -38%; }
  to { left: 100%; }
}

@keyframes ltl-skeleton-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.ltl-rate-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background-color 0.16s ease;
}

.ltl-rate-card:hover {
  border-color: #67e8f9;
  box-shadow: 0 5px 14px rgb(15 23 42 / 8%);
  transform: translateY(-1px);
}

.ltl-rate-card:focus-visible {
  outline: 3px solid rgb(8 145 178 / 22%);
  outline-offset: 2px;
}

.ltl-rate-card.is-selected {
  border-color: #0891b2;
  background: #ecfeff;
  box-shadow: 0 0 0 2px rgb(8 145 178 / 16%);
}

.ltl-rate-card.is-confirmed {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 0 2px rgb(16 185 129 / 15%);
}

.ltl-rate-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 5px;
}

.ltl-rate-heading > div {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}

.ltl-rate-heading > div strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ltl-rate-heading > div span,
.ltl-rate-card p,
.ltl-rate-card small {
  color: var(--muted);
  font-size: 11px;
}

.ltl-rate-heading > b {
  color: var(--primary-dark);
  font-size: 15px;
  white-space: nowrap;
}

.best-rate-label {
  padding: 1px 5px;
  border-radius: 999px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.ltl-selection-badge {
  min-width: 0;
  padding: 1px 5px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.ltl-rate-card.is-selected .ltl-selection-badge {
  border-color: #67e8f9;
  background: #cffafe;
  color: #0e7490;
}

.ltl-rate-card.is-confirmed .ltl-selection-badge {
  border-color: #6ee7b7;
  background: #d1fae5;
  color: #047857;
}

.ltl-rate-card p,
.ltl-rate-card small {
  margin: 0;
  line-height: 1.25;
}

.ltl-rate-card > p {
  min-width: 0;
}

.ltl-rate-card > small,
.ltl-rate-breakdown {
  grid-column: 1 / -1;
}

.ltl-rate-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.ltl-rate-breakdown span {
  display: grid;
  gap: 1px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgb(255 255 255 / 80%);
  color: var(--muted);
  font-size: 10px;
}

.ltl-rate-breakdown strong {
  color: var(--ink);
  font-size: 12px;
}

.integration-status {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.integration-status.busy { color: #0369a1; }
.integration-status.success { color: #047857; }
.integration-status.warning { color: #a16207; }
.integration-status.error { color: var(--danger); }

.compact-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.compact-action-button {
  font-size: 12px;
  font-weight: 700;
  min-height: 32px;
  padding: 6px 10px;
}

.dimension-list {
  display: grid;
  gap: 6px;
  overflow-x: hidden;
}

.dimension-card {
  display: grid;
  grid-template-columns:
    minmax(0, 0.58fr)
    minmax(0, 0.9fr)
    minmax(0, 0.72fr)
    minmax(0, 0.72fr)
    minmax(0, 0.72fr)
    minmax(0, 0.62fr)
    minmax(0, 0.82fr)
    minmax(0, 0.92fr)
    minmax(0, 0.86fr)
    minmax(0, 0.86fr)
    24px;
  gap: clamp(2px, 0.35vw, 4px);
  align-items: end;
  padding: 6px clamp(5px, 0.55vw, 8px);
  min-width: 0;
  width: 100%;
  border: 1px solid #bfccd9;
  border-left: 4px solid #0f766e;
  border-radius: 7px;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgb(15 23 42 / 8%);
  animation: row-enter 0.18s ease-out both;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease, background-color 0.14s ease;
}

.dimension-card.has-ltl-pickups {
  grid-template-columns:
    86px
    minmax(0, 0.58fr)
    minmax(0, 0.9fr)
    minmax(0, 0.72fr)
    minmax(0, 0.72fr)
    minmax(0, 0.72fr)
    minmax(0, 0.62fr)
    minmax(0, 0.82fr)
    minmax(0, 0.92fr)
    minmax(0, 0.86fr)
    minmax(0, 0.86fr)
    24px;
}

.dimension-card.is-ltl-selected {
  box-shadow: inset 0 0 0 1px rgb(8 145 178 / 20%), 0 1px 2px rgb(15 23 42 / 8%);
}

.dimension-ltl-select {
  display: none;
  align-content: end;
  align-self: stretch;
  gap: 2px;
  padding: 3px 4px;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  background: #f0f9ff;
  color: #0369a1;
  font-weight: 800;
  cursor: pointer;
}

.dimension-card.has-ltl-pickups .dimension-ltl-select {
  display: grid;
}

.dimension-card .dimension-ltl-select select {
  width: 100%;
  min-width: 0;
  height: 28px;
  min-height: 28px;
  padding: 3px;
  color: #0f172a;
  font-size: 10px;
}

.dimension-card:hover {
  background: #fff;
  border-color: #8fb3c8;
  box-shadow: 0 5px 14px rgb(15 23 42 / 8%);
}

.dimension-card label {
  min-width: 0;
  gap: 2px;
  font-size: 10px;
  overflow: hidden;
}

.dimension-card input,
.dimension-card select {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  height: 28px;
  padding: 4px clamp(3px, 0.35vw, 5px);
  font-size: 12px;
}

.dimension-card select {
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 8px) 11px,
    calc(100% - 5px) 11px;
  background-repeat: no-repeat;
  background-size: 4px 4px;
  overflow: hidden;
  padding-right: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dimension-card .dimension-ltl-select select {
  padding-right: 14px;
}

.dimension-qty,
.dimension-package {
  grid-column: auto;
}

.dimension-length,
.dimension-width,
.dimension-height,
.dimension-unit,
.dimension-cbm,
.dimension-weight,
.dimension-weight-unit,
.dimension-weight-mode {
  grid-column: auto;
}

.remove-dimension {
  color: #dc2626;
  width: 24px;
  min-height: 28px;
  padding: 0;
}

.route-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.route-panel {
  position: relative;
  z-index: 2;
  overflow: visible;
}

.route-panel:focus-within {
  z-index: 100;
}

.route-panel .panel-head {
  align-items: baseline;
}

.route-lookup-status {
  margin-left: auto;
  max-width: calc(100% - 56px);
  line-height: 1.35;
  overflow-wrap: anywhere;
  text-align: right;
}

.route-panel .route-fields,
.route-panel .route-fields label {
  overflow: visible;
}

.route-fields label {
  grid-column: span 1;
}

.route-fields input {
  min-height: 34px;
  padding: 7px 8px;
}

.charge-table-wrap {
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.charge-table,
.recent-table {
  width: 100%;
  border-collapse: collapse;
}

.charge-table {
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.charge-table thead {
  display: none;
}

.charge-table thead tr {
  display: grid;
  grid-template-columns:
    minmax(0, 3fr)
    minmax(0, 0.52fr)
    minmax(0, 0.72fr)
    minmax(0, 0.78fr)
    minmax(0, 0.62fr)
    minmax(0, 0.62fr)
    minmax(0, 0.82fr)
    minmax(0, 0.68fr)
    24px;
  column-gap: clamp(2px, 0.35vw, 4px);
  padding: 0 6px 0 10px;
}

.charge-table tbody {
  display: grid;
  gap: 5px;
}

.charge-table tr {
  display: grid;
  grid-template-columns:
    minmax(0, 3fr)
    minmax(0, 0.52fr)
    minmax(0, 0.72fr)
    minmax(0, 0.78fr)
    minmax(0, 0.62fr)
    minmax(0, 0.62fr)
    minmax(0, 0.82fr)
    minmax(0, 0.68fr)
    24px;
  column-gap: clamp(2px, 0.35vw, 4px);
  row-gap: 0;
  align-items: end;
  padding: 6px clamp(5px, 0.55vw, 8px);
  min-width: 0;
  border: 1px solid #bfccd9;
  border-left: 4px solid #64748b;
  border-radius: 7px;
  background: #f8fafc;
  box-shadow: 0 1px 2px rgb(15 23 42 / 8%);
  animation: row-enter 0.18s ease-out both;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease, background-color 0.14s ease;
}

.charge-table tr:hover {
  background: #fff;
  border-color: #9aaec3;
  box-shadow: 0 5px 14px rgb(15 23 42 / 8%);
}

.charge-table tr:focus-within {
  position: relative;
  z-index: 65;
}

.charge-table td:nth-child(1) {
  grid-column: auto;
}

.charge-table td:nth-child(2) {
  grid-column: auto;
}

.charge-table td:nth-child(3) {
  grid-column: auto;
}

.charge-table td:nth-child(4) {
  grid-column: auto;
}

.charge-table td:nth-child(5) {
  grid-column: auto;
}

.charge-table td:nth-child(6) {
  grid-column: auto;
}

.charge-table td:nth-child(7) {
  grid-column: auto;
}

.charge-table td:nth-child(8) {
  grid-column: auto;
}

.charge-table td:nth-child(9) {
  grid-column: auto;
}

.recent-table {
  min-width: 920px;
}

.charge-table td,
.recent-table th,
.recent-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.charge-table th {
  padding: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
}

.charge-table td {
  border-bottom: 0;
  display: grid;
  gap: 2px;
  padding: 0;
  min-width: 0;
}

.charge-table td::before {
  content: attr(data-label);
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.charge-table td:nth-child(9)::before {
  content: "";
  display: none;
}

.recent-table th {
  font-size: 12px;
  color: var(--muted);
}

.charge-table input,
.charge-table select {
  width: 100%;
  min-width: 0;
  height: 28px;
  min-height: 28px;
  padding: 4px clamp(3px, 0.35vw, 5px);
  background: #fff;
  font-size: 12px;
}

.charge-table .charge-combobox input {
  overflow: hidden;
  padding-right: 32px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.charge-table select {
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position:
    calc(100% - 8px) 11px,
    calc(100% - 5px) 11px;
  background-repeat: no-repeat;
  background-size: 4px 4px;
  overflow: hidden;
  padding-right: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.charge-table .ltl-charge-row {
  border-left-color: #0891b2;
  background: #f0fdfa;
}

.charge-table .ltl-charge-row td:nth-child(1) { grid-column: 1; }
.charge-table .ltl-charge-row td:nth-child(2) { grid-column: 2; }
.charge-table .ltl-charge-row td:nth-child(3) { grid-column: 3; }
.charge-table .ltl-charge-row td:nth-child(4) { grid-column: 4; }
.charge-table .ltl-charge-row td:nth-child(5) { grid-column: 5 / 7; }
.charge-table .ltl-charge-row td:nth-child(6) { grid-column: 7; }
.charge-table .ltl-charge-row td:nth-child(7) { grid-column: 8; }
.charge-table .ltl-charge-row td:nth-child(8) { grid-column: 9; }

.charge-table .ltl-charge-row td:nth-child(8)::before {
  content: "";
  display: none;
}

.charge-table .ltl-charge-row input[readonly],
.charge-table .ltl-charge-row select:disabled {
  background: #ecfeff;
  color: #0f172a;
  opacity: 1;
}

.charge-table .ltl-charge-row [data-charge="markup"] {
  border-color: #22d3ee;
  box-shadow: 0 0 0 2px rgb(34 211 238 / 10%);
  font-weight: 700;
}

.charge-table .non-stackable-charge-row td:nth-child(1) { grid-column: 1; }
.charge-table .non-stackable-charge-row td:nth-child(2) { grid-column: 2; }
.charge-table .non-stackable-charge-row td:nth-child(3) { grid-column: 3; }
.charge-table .non-stackable-charge-row td:nth-child(4) { grid-column: 4; }
.charge-table .non-stackable-charge-row td:nth-child(5) { grid-column: 5 / 7; }
.charge-table .non-stackable-charge-row td:nth-child(6) { grid-column: 7; }
.charge-table .non-stackable-charge-row td:nth-child(7) { grid-column: 8; }
.charge-table .non-stackable-charge-row td:nth-child(8) { grid-column: 9; }

.charge-table .non-stackable-charge-row td:nth-child(8)::before {
  content: "";
  display: none;
}

.charge-table .non-stackable-max-height [data-charge="maxHeightIn"] {
  border-color: #64748b;
  font-weight: 700;
}

.rate-sheet-options-panel .panel-head {
  align-items: flex-start;
  gap: 18px;
}

.rate-sheet-options-panel details {
  width: 100%;
}

.rate-sheet-options-summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.rate-sheet-options-summary::-webkit-details-marker {
  display: none;
}

.rate-sheet-options-chevron {
  flex: 0 0 auto;
  color: #667085;
  font-size: 22px;
  line-height: 1;
  transition: transform 160ms ease;
}

.rate-sheet-options-panel details[open] .rate-sheet-options-chevron {
  transform: rotate(180deg);
}

.rate-sheet-options-content {
  padding-top: 2px;
}

.draft-module-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.email-module-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.email-module-toggle .switch {
  grid-template-columns: 44px;
  gap: 0;
}

.email-module-toggle .switch-text {
  display: none;
}

.rate-sheet-surcharge-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.rate-sheet-surcharge-button {
  min-height: 52px;
  padding: 9px 11px;
  border: 1px solid #c7d4e3;
  border-radius: 10px;
  background: #f7f9fc;
  color: #344054;
  text-align: left;
}

.rate-sheet-surcharge-button span,
.rate-sheet-surcharge-button small {
  display: block;
}

.rate-sheet-surcharge-button small {
  margin-top: 3px;
  color: #667085;
  font-size: 11px;
  line-height: 1.25;
}

.rate-sheet-surcharge-button.is-active {
  border-color: #117d72;
  background: #e7f5f2;
  color: #0b5f57;
  box-shadow: inset 3px 0 0 #117d72;
}

.remove-charge {
  color: var(--danger);
  width: 24px;
  min-height: 28px;
  padding: 0;
}

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

#dashboardView .recent-quotes-panel {
  padding: 14px 16px 12px;
}

.ai-review-panel {
  display: grid;
  gap: 14px;
}

.ai-confidence-summary {
  border: 1px solid var(--border, #d7dee8);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.55);
}

.ai-confidence-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 9px;
}

.ai-confidence-list span {
  display: grid;
  gap: 2px;
  min-width: 180px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #fff5dc;
  color: #6e4c00;
}

.ai-version-toolbar,
.ai-batch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
}

.ai-version-toolbar label {
  display: grid;
  gap: 5px;
  min-width: 230px;
  flex: 1;
}

.ai-version-changes {
  max-height: 320px;
  overflow: auto;
}

.ai-version-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(28, 91, 110, 0.07);
}

.ai-diff-list {
  display: grid;
  gap: 8px;
}

.ai-diff-list > div {
  display: grid;
  grid-template-columns: minmax(160px, .7fr) minmax(180px, 1fr) minmax(180px, 1fr);
  gap: 8px;
  align-items: start;
}

.ai-diff-list del,
.ai-diff-list ins {
  padding: 7px 9px;
  border-radius: 7px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ai-diff-list del { background: #ffebec; color: #8d2930; }
.ai-diff-list ins { background: #e7f6ec; color: #186234; }

.ai-batch-panel {
  display: grid;
  gap: 12px;
}

.ai-batch-panel[hidden] {
  display: none !important;
}

.ai-batch-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce5e9;
}

.ai-batch-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #217c8b, #39a36d);
  transition: width 240ms ease;
}

.ai-batch-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
}

.ai-batch-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 8px;
  padding: 10px 12px;
  border: 1px solid var(--border, #d7dee8);
  border-radius: 9px;
  background: rgba(255, 255, 255, .62);
}

.ai-batch-item small,
.ai-batch-item p { grid-column: 1 / -1; margin: 0; }

@media (max-width: 800px) {
  .ai-diff-list > div { grid-template-columns: 1fr; }
}

.recent-quotes-panel .management-head {
  align-items: center;
  gap: 10px;
}

.recent-quotes-panel .management-head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.recent-quotes-panel .management-head h3,
.recent-quotes-panel .management-head p {
  margin: 0;
}

.recent-quotes-panel .management-search {
  min-height: 32px;
  padding: 6px 9px;
}

.recent-quotes-panel .management-toolbar {
  gap: 6px;
  margin: 8px 0 6px;
}

.recent-quotes-panel .management-toolbar button,
.recent-quotes-panel .management-toolbar select,
.recent-quotes-panel .management-pagination button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.recent-quotes-panel .recent-table th,
.recent-quotes-panel .recent-table td {
  padding: 5px 8px;
  font-size: 12px;
  line-height: 1.25;
}

.recent-quotes-panel .recent-table th {
  padding-block: 6px;
  font-size: 11px;
}

.recent-quotes-panel .recent-table td .subtext {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-quotes-panel .management-pagination {
  gap: 6px;
  margin-top: 7px;
}

.recent-quotes-panel .selection-column {
  width: 32px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  min-height: 0;
  padding: 0;
  font-weight: 700;
}

.subtext,
.empty-cell {
  color: var(--muted);
  font-size: 12px;
}

.agent-list,
.rank-list {
  display: grid;
  gap: 8px;
}

.agent-card,
.rank-row {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.agent-meta,
.rank-row span {
  color: var(--muted);
  font-size: 12px;
}

.agent-diagnostic {
  border-left: 3px solid #c9852b;
  background: #fff8eb;
  padding: 8px 10px;
  display: grid;
  gap: 3px;
}

.agent-diagnostic strong,
.agent-diagnostic-line strong {
  font-size: 12px;
}

.agent-diagnostic span,
.agent-diagnostic-line {
  color: #6f4b18;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.sailing-schedule-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.schedule-state {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #eef2f7;
}

.schedule-state.success {
  color: #126a55;
  background: #e4f5ef;
}

.schedule-state.unavailable {
  color: #8a4b00;
  background: #fff3dc;
}

.sailing-schedule {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.schedule-message {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.schedule-message.failure {
  color: #9f1239;
}

.schedule-filter {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.sailing-table-wrap {
  min-width: 0;
  overflow-x: hidden;
  width: 100%;
}

.sailing-table {
  border-collapse: collapse;
  font-size: 10px;
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.sailing-table th,
.sailing-table td {
  border: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
  padding: 7px 6px;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

.sailing-table th:nth-child(1),
.sailing-table td:nth-child(1) {
  width: 10.5%;
}

.sailing-table th:nth-child(2),
.sailing-table td:nth-child(2) {
  width: 12%;
}

.sailing-table th:nth-child(3),
.sailing-table td:nth-child(3) {
  width: 13%;
}

.sailing-table th:nth-child(4),
.sailing-table td:nth-child(4) {
  width: 20%;
}

.sailing-table th:nth-child(5),
.sailing-table td:nth-child(5) {
  width: 8.5%;
}

.sailing-table th:nth-child(n+6),
.sailing-table td:nth-child(n+6) {
  width: 12%;
}

.sailing-table td:nth-child(n+6) {
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: normal;
}

.sailing-table th {
  background: #f3f7fb;
  color: #334155;
  font-weight: 700;
}

.schedule-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 6px;
  margin: 0;
}

.schedule-detail-list div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 8px;
}

.schedule-detail-list dt {
  color: var(--muted);
  font-size: 11px;
}

.schedule-detail-list dd {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.draft-body-wrap {
  position: relative;
  min-width: 0;
  width: 100%;
}

.draft-body-wrap .card-loading-state {
  border: 1px solid var(--line);
  border-radius: 6px;
}

.draft-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  margin-top: 0;
  max-width: 100%;
  min-height: 180px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  padding: 12px;
  width: 100%;
}

.draft-body img {
  height: auto !important;
  max-width: 100% !important;
}

.notes-body {
  min-height: 126px;
}

.draft-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.panel-actions {
  max-width: 100%;
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
}

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

.dashboard-metric-window {
  grid-column: span 3;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(15 23 42 / 3%);
  animation: panel-enter 0.2s ease-out both;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.dashboard-metric-window.all-time {
  grid-column: span 3;
}

.dashboard-metric-window.operations {
  grid-column: span 2;
}

.dashboard-metric-window.today {
  border-color: #9fd4c5;
  background: linear-gradient(145deg, #f0fbf7, #fff);
}

.dashboard-metric-window.week {
  border-color: #b9d1e9;
  background: linear-gradient(145deg, #f3f8fd, #fff);
}

.dashboard-metric-window.month {
  border-color: #d7c6ea;
  background: linear-gradient(145deg, #faf7fd, #fff);
}

.dashboard-metric-window.all-time {
  background: linear-gradient(145deg, #f8fafc, #fff);
}

.dashboard-metric-window.operations {
  border-color: #d5c7e9;
  background: linear-gradient(145deg, #faf7fd, #fff);
}

.dashboard-metric-window > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-metric-window > header .eyebrow {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-metric-window > header span,
.dashboard-window-values span {
  color: var(--muted);
  font-size: 11px;
}

.dashboard-period-live {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-top: 4px;
  border-radius: 50%;
  background: #119478;
  box-shadow: 0 0 0 0 rgb(17 148 120 / 38%);
  animation: dashboard-live-pulse 1.8s ease-out infinite;
}

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

.dashboard-window-values > div {
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid rgb(99 112 131 / 16%);
}

.dashboard-window-values span,
.dashboard-window-values strong {
  display: block;
}

.dashboard-window-values strong {
  margin-top: 3px;
  color: #172231;
  font-size: 21px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.dashboard-metric-window.operations .dashboard-window-values {
  grid-template-columns: 1fr;
}

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

.readiness-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  display: grid;
  gap: 5px;
  min-height: 96px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.readiness-card:hover,
.metric-card:hover,
.dashboard-metric-window:hover {
  box-shadow: 0 8px 22px rgb(15 23 42 / 7%);
  transform: translateY(-1px);
}

.readiness-card strong {
  font-size: 16px;
}

.readiness-card span,
.agent-status-row span {
  color: var(--muted);
  font-size: 12px;
}

.readiness-card.ready {
  border-color: #9ac7a8;
  background: #f0f8f3;
}

.readiness-card.needs-attention {
  border-color: #f1c27d;
  background: #fff8eb;
}

.readiness-card-wide {
  grid-column: 1 / -1;
}

.feedback-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.feedback-metrics .metric-card {
  padding: 12px;
}

.feedback-metrics .metric-value {
  font-size: 22px;
}

.feedback-table th:nth-child(3),
.feedback-table td:nth-child(3) {
  width: 38%;
}

.management-head {
  gap: 16px;
  align-items: flex-start;
}

.management-search {
  width: min(360px, 100%);
  min-width: 240px;
}

.management-toolbar,
.management-pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 12px 0;
}

.management-toolbar .page-size-label {
  display: inline-flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.management-pagination {
  justify-content: flex-end;
  margin-bottom: 0;
}

.selection-column {
  width: 38px;
  text-align: center;
}

.selection-column input {
  width: 16px;
  height: 16px;
}

.quote-detail-backdrop {
  align-items: flex-start;
  overflow-y: auto;
  padding: 36px 20px;
}

.quote-detail-modal {
  width: min(1280px, 100%);
  max-width: 1280px;
  max-height: none;
}

.quote-detail-mount,
.quote-detail-reused-view {
  min-width: 0;
  width: 100%;
}

.quote-detail-reused-view .quote-grid,
.quote-detail-reused-view .quote-column,
.quote-detail-reused-view .panel {
  min-width: 0;
}

.quote-detail-reused-view .panel.wide,
.quote-detail-reused-view #cargoPanel {
  overflow-x: auto;
}

@media (max-width: 720px) {
  .management-head {
    display: grid;
  }
  .management-search {
    min-width: 0;
    width: 100%;
  }
  .recent-quotes-panel .management-head > div {
    display: block;
  }
}

.feedback-copy-button {
  white-space: nowrap;
}

.feedback-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.feedback-status.is-unresolved {
  color: #8a4b08;
  background: #fff1d6;
}

.feedback-status.is-resolved {
  color: #17653a;
  background: #dcf7e7;
}

.feedback-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.panel > h3,
.panel-head h3 {
  user-select: none;
}

.agent-status-list {
  display: grid;
  gap: 8px;
}

.agent-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-error {
  margin: -2px 0 4px;
  color: var(--danger);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.agent-diagnostic-line {
  margin: -2px 0 4px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  animation: panel-enter 0.2s ease-out both;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.metric-value {
  font-size: 26px;
  font-weight: 700;
  margin-top: 6px;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-slide-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panel-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes card-loading-dismiss {
  from {
    opacity: 1;
    backdrop-filter: blur(1.5px);
  }
  to {
    opacity: 0;
    backdrop-filter: blur(0);
  }
}

@keyframes card-loaded-expand {
  0% {
    box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
  }
  45% {
    box-shadow: 0 0 0 2px rgb(15 118 110 / 10%), 0 8px 20px rgb(15 23 42 / 6%);
  }
  100% {
    box-shadow: 0 1px 2px rgb(15 23 42 / 4%);
  }
}

@keyframes card-content-reveal {
  from {
    opacity: 0.35;
    filter: blur(1.5px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes row-enter {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-enter {
  0% {
    opacity: 0;
    transform: translate3d(18px, -12px, 0) scale(0.94);
  }
  70% {
    opacity: 1;
    transform: translate3d(-2px, 1px, 0) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes toast-progress {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes toast-exit {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate3d(14px, -6px, 0) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .dashboard-live-orbit::before,
  .dashboard-live-orbit::after {
    animation-duration: 1.2s !important;
    animation-iteration-count: infinite !important;
  }

  .dashboard-live-status.is-updating .dashboard-live-orbit::before,
  .dashboard-live-status.is-updating .dashboard-live-orbit::after {
    animation-duration: 0.72s !important;
  }
}

.status-text.status-busy::before {
  animation: status-spin 0.75s linear infinite !important;
}

.status-text.status-warning::before {
  animation: status-radiate 1.3s ease-out infinite !important;
}

/* Loading indicators communicate that a live carrier request is still active.
   Keep these small functional animations running even when decorative motion is reduced. */
.ltl-orbit {
  animation: ltl-orbit-spin 1.15s linear infinite !important;
  transform-origin: center;
  will-change: transform;
}

.ltl-progress-track span {
  animation: ltl-progress-sweep 1.45s ease-in-out infinite !important;
}

.ltl-button-spinner,
.draft-lookup-progress.is-busy .lookup-indicator,
.card-loading-spinner {
  animation: status-spin 0.75s linear infinite !important;
}

@media (max-width: 1240px) {
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-metric-window,
  .dashboard-metric-window.all-time,
  .dashboard-metric-window.operations {
    grid-column: span 1;
  }

  .dashboard-metric-window.operations .dashboard-window-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

  .quote-grid,
  .dashboard-grid,
  .field-grid.two,
  .field-grid.three,
  .field-grid.four {
    grid-template-columns: 1fr;
  }

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

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

  .route-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 8px;
  }

  .cargo-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cargo-commodity,
  .cargo-pieces {
    grid-column: span 2;
  }

  .cargo-measure,
  .cargo-unit,
  .cargo-flag {
    grid-column: span 1;
  }

  .cargo-dimensions {
    grid-column: 1 / -1;
  }

  .ltl-quote-controls {
    grid-template-columns: 1fr;
  }

  .ltl-quote-controls button {
    grid-column: 1 / -1;
  }

  .ltl-accessorials {
    grid-template-columns: 1fr;
  }

  .ltl-order-details {
    grid-template-columns: 1fr;
  }

  .route-fields label {
    grid-column: span 1;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .agent-connection-grid,
  .vsl-agent-docs,
  .shared-route-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-workspace {
    grid-template-columns: 1fr;
  }

  .knowledge-upload-grid {
    grid-template-columns: 1fr;
  }

  .settings-navigation-card {
    position: static;
  }

  .settings-side-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #settingsAccessPanel.active {
    grid-template-columns: 1fr;
  }

  .allowed-email-tools {
    align-items: stretch;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-metric-window.operations .dashboard-window-values {
    grid-template-columns: 1fr;
  }

  .readiness-grid,
  .feedback-metrics {
    grid-template-columns: 1fr;
  }

  .login-card .brand {
    gap: 6px;
  }

  .login-card .company-logo {
    width: 110px;
  }

  .login-card .brand-divider {
    height: 32px;
  }

  .login-card .mark {
    height: 30px;
    width: 30px;
  }

  .login-card .product-brand {
    gap: 6px;
  }

  .login-card .product-brand-copy h1 {
    font-size: 15px;
    white-space: nowrap;
  }

  #quoteView .topbar-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  #quoteView .topbar-actions #quoteStatus {
    order: 1;
    margin-right: auto;
  }

  #quoteView .topbar-actions #saveBtn {
    order: 2;
  }

  #quoteView .topbar-actions #deleteQuoteBtn {
    order: 3;
  }

  #quoteView .topbar-actions .cp-bridge-actions {
    order: 4;
    flex: 1 0 100%;
    width: 100%;
  }

  .panel-head {
    align-items: flex-start;
  }

  .panel-head .panel-actions {
    justify-content: flex-start;
    width: 100%;
  }

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

  .cargo-commodity,
  .cargo-pieces {
    grid-column: span 2;
  }

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

  .route-lookup-status {
    flex-basis: 100%;
    max-width: 100%;
  }

  .ltl-quote-controls,
  .ltl-rate-breakdown {
    grid-template-columns: 1fr;
  }

  .ltl-selected-pickups {
    grid-template-columns: 1fr;
  }

  .ltl-accessorial-options {
    grid-template-columns: 1fr;
  }

  .ltl-order-field-grid {
    grid-template-columns: 1fr;
  }

  .ltl-order-field-wide {
    grid-column: auto;
  }

  .ltl-pickup-card-head {
    display: grid;
  }

  .ltl-pickup-card-actions {
    justify-content: space-between;
  }

  .ltl-pickup-status {
    max-width: none;
    text-align: left;
  }

  .ltl-panel-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .ltl-rate-heading {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .ltl-rate-heading > div span {
    display: none;
  }

  .agent-connection-grid,
  .vsl-agent-docs,
  .shared-route-rules {
    grid-template-columns: 1fr;
  }

  .allowed-email-head {
    align-items: flex-start;
  }

  .settings-side-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .knowledge-entry,
  .knowledge-entry-actions,
  .knowledge-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .knowledge-search {
    max-width: none;
    width: 100%;
  }

}
