/* Loads hub — reuse Tariff hub menu (see tariff.css patterns; duplicated for :8547 standalone static) */
.loads-app .tms-app-header h1 {
  font-size: 24px;
}

.loads-app .tariff-hub-panel {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: none;
  margin: 20px 0 28px;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
}

.loads-app .tariff-menu-table {
  width: 100%;
  max-width: 480px;
  border-collapse: collapse;
  background: transparent;
  border: none;
  box-shadow: none;
}

.loads-app .tariff-menu-table th {
  background: linear-gradient(180deg, #93c5fd 0%, #60a5fa 100%);
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  padding: 10px 12px;
  border: none;
  border-radius: 10px 10px 0 0;
}

.loads-app .tariff-menu-table td {
  border-top: 1px solid #e8eef5;
  padding: 8px 14px;
  font-size: 15px;
  min-height: 28px;
  text-align: center;
}

.loads-app .tariff-menu-table tr.tariff-menu-spacer-row td {
  padding: 6px 14px;
  background: #fff;
}

.loads-app .tariff-menu-link {
  color: #5b214d;
  font-weight: 600;
  text-decoration: underline;
}

.loads-app .tariff-menu-link:hover {
  color: #3f1636;
}

.loads-app .tariff-menu-section-row td {
  padding-top: 14px;
  padding-bottom: 6px;
  border-top: 1px solid #dbeafe;
  background: #f8fafc;
}

.loads-app .tariff-menu-section-head {
  color: #1e3a5f;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.loads-app .tariff-menu-pending {
  color: #0f172a;
  font-weight: 600;
  font-size: 15px;
}

.loads-app .tariff-menu-label {
  color: #0f172a;
  font-weight: 600;
}

/* Load Detail shell — fixed spine + panel stack (salvaged from prototype layout). */

.ld-detail-page .page {
  padding-top: 8px;
}

.ld-detail-page .tms-app-header,
.ld-detail-page .tms-appearance-picker {
  display: none !important;
}

.ld-detail-module-tabs {
  margin: 0;
}

.ld-detail-chrome-row {
  margin-bottom: 10px;
}

.ld-page {
  max-width: 100%;
}

.ld-header-save-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  flex-shrink: 0;
}

.ld-autosave-status {
  font-size: 0.78rem;
  color: #64748b;
}

.ld-autosave-status--warn {
  color: #b45309;
  font-weight: 600;
}

.ld-shipment-detail-btn.is-active,
.ld-dispatch-detail-btn.is-active {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}

.ld-add-new-wrap {
  position: relative;
}

.ld-add-new-btn {
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
  color: #b91c1c;
  font-weight: 800;
  font-size: 14px;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: inherit;
}

.ld-add-new-btn:hover {
  background: transparent;
  color: #991b1b;
  text-decoration: underline;
}

.ld-add-new-btn::-webkit-details-marker {
  display: none;
}

.ld-add-new-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 30;
  display: grid;
  gap: 2px;
  min-width: 168px;
  padding: 6px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.ld-add-new-wrap:not([open]) .ld-add-new-menu {
  display: none;
}

.ld-add-new-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a5f;
}

.ld-add-new-menu a:hover {
  background: #eef6fb;
}

.ld-dispatch-detail-btn {
  white-space: nowrap;
}

.ld-flash {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.ld-flash-ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.ld-flash-warn {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.ld-header-block {
  border: 2px solid #1e3a5f;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  background: linear-gradient(180deg, #dbeafe 0%, #eef6fb 100%);
}

.ld-header-1,
.ld-header-2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 6px 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0;
}

.ld-header-1 {
  border-bottom: 1px solid #93c5fd;
}

.ld-header-2 {
  border-top: 1px solid #93c5fd;
  gap: 6px 8px;
}

.ld-header-2-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  flex-shrink: 0;
}

.ld-shortcut-link {
  text-decoration: none;
  display: inline-block;
}

/* Service Failure tab — Mark as Service Failure panel */
.ld-tab-panel[data-panel="service_failure"] {
  padding: 0;
  overflow: hidden;
}

.ld-service-failure-panel {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.ld-sf-head {
  margin: 0;
  padding: 10px 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #b91c1c 0%, #991b1b 100%);
  border-radius: 8px 8px 0 0;
}

.ld-sf-body {
  padding: 16px 18px 20px;
  border: 1px solid #cbd5e1;
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: #fff;
}

.ld-sf-mark-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 16px;
}

.ld-sf-mark-check input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.ld-sf-types {
  margin: 0;
  padding: 0;
  border: none;
}

.ld-sf-types:disabled {
  opacity: 0.45;
}

.ld-sf-types.is-active {
  opacity: 1;
}

.ld-sf-legend {
  font-size: 13px;
  font-weight: 800;
  color: #1e3a5f;
  margin: 0 0 10px;
  padding: 0;
}

.ld-sf-type-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ld-sf-type-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
}

.ld-sf-type-opt:has(input:checked) {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a5f;
}

.ld-sf-type-opt input[type="radio"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}

.ld-sf-save-hint {
  margin: 16px 0 0;
  font-size: 12px;
  text-align: center;
  color: #64748b;
}

.ld-header-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px 8px;
  padding: 6px 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #93c5fd;
  margin: 0;
}

.ld-shortcuts-label {
  font-size: 12px;
  font-weight: 800;
  color: #1e3a5f;
  flex-shrink: 0;
  margin-right: 2px;
}

.ld-header-shortcuts .ld-shortcuts {
  flex: 1 1 auto;
  justify-content: flex-start;
}

.ld-quick-quote-link {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 13px;
  font-weight: 800;
  color: #b91c1c;
  text-decoration: none;
  white-space: nowrap;
}

.ld-quick-quote-link:hover {
  text-decoration: underline;
}

.ld-header-2 {
  align-items: center;
  flex-wrap: nowrap;
}

.ld-shortcuts-detail-row {
  flex: 1 1 auto;
  justify-content: flex-start;
  min-width: 0;
}

.ltl-override-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 8px;
}

.ld-header-1 label,
.ld-header-2 label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
}

.ld-update-status-label > span {
  color: #b91c1c;
  font-weight: 800;
}

.ld-header-1 input,
.ld-header-1 select,
.ld-header-2 input,
.ld-header-2 select {
  min-width: 110px;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
}

.ld-header-1 input[name="load_number"] {
  width: 9ch;
  min-width: 9ch;
  max-width: 12ch;
}

.ld-header-1-ids {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 6px 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.ld-header-1-ids input[name="pro_number"] {
  width: 11ch;
  min-width: 9ch;
  max-width: 14ch;
}

.ld-intl-air-btn {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  padding: 4px 10px 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
  border-radius: 4px;
  align-self: flex-end;
}

.ld-intl-air-btn:hover {
  background: #dbeafe;
  color: #1e3a8a;
}

.ld-intl-air-btn.has-data {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #15803d;
}

.ld-header-carrier-row,
.ld-header-carrier-wrap {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 10px 16px;
  margin-left: auto;
  flex-shrink: 0;
}

.ld-add-stop-btn {
  border: 0;
  background: none;
  padding: 0 0 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  color: #dc2626;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.2;
}

.ld-add-stop-btn:hover {
  color: #991b1b;
  text-decoration: underline;
}

.ld-change-carrier-link {
  border: 0;
  background: none;
  padding: 0 0 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  color: #1d4ed8;
  text-decoration: underline;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}

.ld-change-carrier-link:hover {
  color: #1e3a8a;
}

.ld-header-carrier-label {
  flex-shrink: 0;
}

.ld-header-carrier-display {
  width: 12rem;
  min-width: 9rem;
  max-width: 16rem;
  background: #fff;
  cursor: default;
}

.ld-header-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 320px;
  min-width: 0;
}

.ld-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  justify-content: flex-start;
  max-width: 100%;
}

.ld-shortcut {
  appearance: none;
  background: #1e3a5f;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(30, 58, 95, 0.3);
}

.ld-shortcut:hover {
  background: #2a4a73;
  color: #fff;
}

.ld-shortcut:active {
  background: #0f2744;
}

.ld-save-btn,
.ld-delete-btn {
  flex-shrink: 0;
}

.ld-fixed-spine {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92em;
}

/* Dispatch review — tariff rule + historical accessorial warnings (advisory) */
.ld-warnings {
  border: 1px solid #f59e0b;
  border-left-width: 5px;
  border-radius: 8px;
  background: #fffbeb;
  padding: 8px 12px;
}

.ld-warnings-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.ld-warnings-title {
  font-weight: 800;
  color: #92400e;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ld-warnings-count {
  font-size: 12px;
  color: #b45309;
}

.ld-warnings-admin-link {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
}

.ld-warnings-admin-link:hover {
  text-decoration: underline;
}

.ld-warnings-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ld-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.ld-warning-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 1px 6px;
  border-radius: 10px;
  background: #fde68a;
  color: #78350f;
  min-width: 92px;
  text-align: center;
}

.ld-warning-badge-historical {
  background: #dbeafe;
  color: #1e40af;
}

.ld-warning-badge-geographic {
  background: #dcfce7;
  color: #166534;
}

.ld-warning-msg {
  color: #422006;
  font-weight: 600;
}

.ld-warning-high .ld-warning-msg {
  color: #991b1b;
}

.ld-warning-conf {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  color: #1e40af;
}

.ld-warning {
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  padding: 4px 0;
  border-bottom: 1px dashed #fde68a;
}

.ld-warning:last-child {
  border-bottom: 0;
}

.ld-warning-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
}

.ld-warning-headline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ld-warning-rule {
  font-weight: 800;
  color: #422006;
  font-size: 13px;
}

.ld-warning-sev {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 1px 7px;
  border-radius: 10px;
}
.ld-warning-sev-high { background: #fee2e2; color: #991b1b; }
.ld-warning-sev-medium { background: #fef3c7; color: #92400e; }
.ld-warning-sev-low { background: #e0f2fe; color: #075985; }

.ld-warning-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 1px 10px;
  margin: 0;
  font-size: 12px;
}
.ld-warning-grid dt {
  color: #78716c;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: .02em;
  padding-top: 2px;
}
.ld-warning-grid dd {
  margin: 0;
  color: #1c1917;
}
.ld-warning-grid dd a { color: #1d4ed8; font-weight: 700; }

.ld-warning-status-dismissed .ld-warning-rule,
.ld-warning-status-dismissed .ld-warning-grid {
  text-decoration: line-through;
  opacity: 0.6;
}
.ld-warning-status-acknowledged .ld-warning-main { opacity: 0.85; }

.ld-warning-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 100px;
}

.ld-warning-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  color: #374151;
}

.ld-warning-ack:hover {
  background: #dcfce7;
  border-color: #16a34a;
  color: #166534;
}

.ld-warning-dismiss:hover {
  background: #fee2e2;
  border-color: #dc2626;
  color: #991b1b;
}

.ld-warning-resolved {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  font-style: italic;
}

.ld-warning-status-dismissed .ld-warning-msg {
  text-decoration: line-through;
  opacity: 0.65;
}

.ld-warning-status-acknowledged .ld-warning-msg {
  opacity: 0.8;
}

.ld-commodity-charges-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 12px;
  align-items: start;
}

/* Commodity + accessorials stack in the left column so "Select Accessorials"
   fills the space beside the taller Charges box instead of adding a tall
   full-width band below the row. */
.ld-commodity-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

@media (max-width: 1100px) {
  .ld-commodity-charges-row {
    grid-template-columns: 1fr;
  }
}

.ld-charges-snapshot {
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.ld-charges-snapshot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eef2f7;
}

.ld-charges-snapshot-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #1e3a5f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ld-charges-snapshot-head .ld-charges-snapshot-title {
  border-bottom: none;
  padding-bottom: 0;
}
  font-size: 13px;
  font-weight: 900;
  color: #0a2c50;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ld-charges-snapshot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ld-charges-snapshot-table th {
  background: #e8eef5;
  color: #1e3a5f;
  font-weight: 700;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}

.ld-charges-snapshot-table td {
  padding: 5px 8px;
  border: 1px solid #e2e8f0;
}

.ld-charges-snapshot-table .num {
  text-align: right;
  white-space: nowrap;
}

.ld-charges-total-row td {
  font-weight: 800;
  background: #f8fafc;
}

.ld-charges-profit-row td {
  font-weight: 700;
  color: #166534;
}

.ld-commission-block {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}

.ld-commission-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: #1e3a5f;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ld-commission-names {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.45;
}

.ld-commission-empty {
  margin: 0;
  font-size: 12px;
}

.ld-stop-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

@media (max-width: 1100px) {
  .ld-stop-row {
    grid-template-columns: 1fr;
  }
}

.ld-stop-card {
  position: relative;
  border: 1px solid #94a3b8;
  background: #fff;
  font-size: 12px;
}

.ld-stop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: linear-gradient(180deg, #1e40af 0%, #1e3a8a 100%);
  color: #fff;
}

.ld-stop-title {
  font-weight: 800;
  font-size: 13px;
}

.ld-stop-add-loc {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.ld-stop-add-loc:hover {
  color: #dbeafe;
}

.ld-stop-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ld-stop-table th,
.ld-stop-table td {
  border: 1px solid #cbd5e1;
  padding: 4px 6px;
  vertical-align: middle;
}

.ld-stop-label {
  width: 38%;
  text-align: left;
  font-weight: 700;
  color: #0f172a;
  background: #f8fafc;
}

.ld-stop-label .ld-stop-name-pick {
  margin-left: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  color: #475569;
  padding: 0 2px;
}

.ld-stop-val {
  width: 62%;
  background: #fff;
}

.ld-stop-input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  font: inherit;
  padding: 2px 4px;
  color: #0f172a;
}

.ld-stop-input:focus {
  outline: 2px solid #93c5fd;
  background: #fff;
}

.ld-stop-val .ld-stop-input.ld-stop-st {
  max-width: 4.5rem;
  text-align: left;
  text-transform: uppercase;
}

.ld-stop-val .ld-stop-input.ld-stop-input-zip {
  max-width: 8rem;
}

.ld-stop-input.ld-stop-email.has-email {
  color: #1d4ed8;
  text-decoration: underline;
}

.ld-stop-notes-row th,
.ld-stop-notes-row td {
  background: #fef9c3;
}

.ld-stop-notes-icon {
  margin-left: 4px;
  font-size: 11px;
}

.ld-stop-notes-val {
  font-size: 13px;
}

.ld-stop-notes-link {
  font-weight: 700;
}

.ld-stop-notes-hint {
  font-size: 12px;
}

.ld-loc-picker {
  position: absolute;
  z-index: 20;
  left: 8px;
  right: 8px;
  top: 36px;
  background: #fff;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
  padding: 8px 10px;
}

.ld-loc-picker-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 12px;
}

.ld-loc-picker-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  max-height: 180px;
  overflow: auto;
}

.ld-loc-pick-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: #f8fafc;
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.ld-loc-pick-item:hover {
  background: #dbeafe;
}

.ld-loc-picker-close {
  font-size: 11px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
}

.ld-comm-desc-cell {
  position: relative;
}

.ld-comm-picker {
  position: fixed;
  z-index: 5200;
  min-width: 280px;
  max-width: min(520px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  padding: 8px 10px;
}

.ld-comm-picker-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 12px;
}

.ld-comm-picker-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
}

.ld-comm-pick-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: #f8fafc;
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.35;
}

.ld-comm-pick-item:hover,
.ld-comm-pick-item:focus {
  background: #dbeafe;
  outline: none;
}

.ld-comm-pick-meta {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-top: 2px;
}

.ld-billto-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ld-billto-head .ld-stop-title {
  flex-shrink: 0;
}

.ld-billto-head .ld-billto-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #22c55e;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.ld-billto-head .ld-billto-pick {
  margin-left: auto;
  margin-right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.ld-billto-head .ld-billto-pick .ld-billto-payer-select {
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.ld-billto-pick-lbl {
  white-space: nowrap;
}

.ld-billto-payer-select {
  min-width: 12rem;
  max-width: 18rem;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 6px;
}

.ld-billto-edit-icon {
  font-size: 11px;
  letter-spacing: -2px;
}

.ld-billto-card.is-locked .ld-billto-field {
  color: #334155;
}

.ld-billto-card:not(.is-locked) .ld-billto-edit-label {
  color: #22c55e;
}

/* Times and Misc — compact block under Bill To */
.ld-billto-times {
  border-top: 2px solid #93c5fd;
  background: #f8fafc;
}

.ld-billto-times-head {
  margin: 0;
  padding: 5px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #1e3a5f;
  background: #e0f2fe;
  border-bottom: 1px solid #93c5fd;
}

.ld-billto-times-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}

.ld-billto-times-table th,
.ld-billto-times-table td {
  border: 1px solid #cbd5e1;
  padding: 2px 4px;
  vertical-align: middle;
}

.ld-times-label {
  width: 22%;
  font-weight: 700;
  color: #1e3a5f;
  background: #f1f5f9;
  text-align: left;
  white-space: nowrap;
}

.ld-times-val {
  width: 28%;
  background: #fff;
}

.ld-times-val-wide {
  width: auto;
}

.ld-times-range {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.ld-times-range-input {
  flex: 1 1 0;
  min-width: 0;
}

.ld-times-range-sep {
  flex: 0 0 auto;
  color: #64748b;
  font-weight: 700;
}

.ld-times-input {
  width: 100%;
  box-sizing: border-box;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 11px;
  padding: 1px 2px;
  color: #0f172a;
  min-width: 0;
}

.ld-times-input:focus {
  outline: 2px solid #93c5fd;
  background: #fff;
}

.ld-times-input[type="date"] {
  padding: 1px 0;
}

.ld-times-input.tms-time-picker {
  min-width: 72px;
  padding: 1px 4px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #fff;
}

.ld-times-input.tms-time-picker:focus {
  border-color: #93c5fd;
}

.ld-times-service-row .ld-times-label {
  width: 22%;
}

.ld-tab-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 10px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #eef6fb 0%, #f8fafc 100%);
  border: 1px solid #94a3b8;
  border-radius: 8px;
}

.ld-tab-btn {
  padding: 6px 10px;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  color: #1e3a5f;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.25;
  max-width: 220px;
}

.ld-tab-btn.is-active {
  background: #1d4ed8;
  color: #fff;
  border-color: #1e40af;
}

.ld-panel-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.ld-tab-panel {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
}

.ld-tab-panel[hidden] {
  display: none !important;
}

.ld-tab-panel-inner {
  display: block;
  width: 100%;
  min-width: 0;
}

.ld-tab-panel-head {
  font-weight: 800;
  font-size: 14px;
  color: #1e3a5f;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.ld-panel-return-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 12px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #1e3a5f;
  background: #eef2f7;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
}

.ld-panel-return-top:hover {
  background: #e2e8f0;
}

.ld-tab-btn.is-loading {
  opacity: 0.65;
  cursor: progress;
}

.ld-panel-title {
  margin: 0 0 10px;
  font-size: 15px;
  color: #1e3a5f;
}

/* Truckload / shipment tracking tab */
.ld-tracking-intro {
  margin-bottom: 14px;
}

.ld-tracking-lead {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
  max-width: 920px;
}

.ld-tracking-mode-hint {
  margin-top: 8px;
}

.ld-tracking-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) 1fr;
  gap: 16px 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .ld-tracking-layout {
    grid-template-columns: 1fr;
  }
}

.ld-tracking-help {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12px;
}

.ld-tracking-help h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #1e3a5f;
}

.ld-tracking-dl {
  margin: 0;
}

.ld-tracking-dl dt {
  font-weight: 800;
  color: #1e3a5f;
  margin-top: 10px;
}

.ld-tracking-dl dt:first-child {
  margin-top: 0;
}

.ld-tracking-dl dd {
  margin: 4px 0 0;
  color: #475569;
  line-height: 1.4;
}

.ld-tracking-help-footer {
  margin: 12px 0 0;
  font-size: 11px;
}

.ld-tracking-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ld-tracking-card {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
}

.ld-tracking-card h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: #1e3a5f;
}

.ld-card-desc {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.ld-tracking-snapshot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.ld-snapshot-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}

.ld-snapshot-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ld-snapshot-value {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.ld-snapshot-status {
  color: #1d4ed8;
}

.ld-tracking-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.ld-field-with-hint {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.ld-field-with-hint.ld-span-2 {
  grid-column: 1 / -1;
}

.ld-field-with-hint input,
.ld-field-with-hint select,
.ld-field-with-hint textarea {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
}

.ld-field-hint {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

.ld-milestone-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ld-milestone-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: 4px;
  font-size: 13px;
}

.ld-milestone-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.ld-ms-date {
  font-size: 12px;
}

.ld-checkcall-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-bottom: 12px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px dashed #94a3b8;
}

.ld-checkcall-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
}

.ld-checkcall-form .ld-span-2 {
  grid-column: 1 / -1;
}

.ld-checkcall-form input,
.ld-checkcall-form select {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
}

.ld-checkcall-table-wrap {
  max-height: 200px;
  overflow: auto;
}

.ld-checkcall-table th,
.ld-edi-table th {
  font-size: 11px;
  white-space: nowrap;
}

.ld-tracking-exceptions .ld-exception-list {
  margin: 0 0 10px;
  padding-left: 18px;
}

.ld-tracking-next {
  margin: 0;
  font-size: 12px;
}

.loads-app .tariff-menu-detail-tab {
  color: #0f172a;
  font-weight: 600;
}

.loads-app .ld-hub-tab-note {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

/* TL Rating panel — from TLRatingPanel.css */
.tl-panel-wrapper {
  padding: 4px 0 0;
  font-size: 13px;
}

.tl-rateview-section {
  margin-bottom: 14px;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.tl-rateview-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  background: linear-gradient(180deg, #1e3a5f 0%, #334155 100%);
  color: #fff;
  padding: 8px 12px;
}

.tl-rateview-banner-title {
  font-weight: 800;
  font-size: 14px;
}

.tl-rateview-refresh {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}

.tl-rateview-body {
  background: #f4f7fb;
  padding: 12px 14px;
}

.tl-rateview-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.tl-rateview-body .tl-dat-stats {
  text-align: center;
  margin: 0 auto 8px;
  padding: 4px 0;
}

.tl-rateview-body .tl-dat-stats > div {
  font-size: 13px;
  line-height: 1.35;
}

.tl-rateview-body .tl-dat-moves {
  font-style: italic;
  margin-bottom: 2px;
}

.tl-rateview-body .tl-mileage {
  margin-left: 0;
  font-size: 14px;
  font-weight: 600;
}

.tl-rateview-note {
  margin: 0;
  text-align: center;
  font-size: 11px;
}

.tl-dat-section {
  background: #f4f7fb;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid #d0d6e0;
  margin-bottom: 14px;
}

.tl-label {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tl-dat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.tl-confidence {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffe4b0;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #e0b675;
}

.tl-dat-stats > div {
  font-size: 13px;
  line-height: 1.3;
}

.tl-mileage {
  margin-left: auto;
  font-weight: 600;
}

.tl-subtab-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 10px 0;
}

.tl-subtab {
  background: #d9e7ff;
  border: 1px solid #aac5ff;
  color: #003d91;
  padding: 6px 14px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
}

.tl-subtab.active {
  background: #1d4ed8;
  border-color: #1e40af;
  color: #fff;
}

.tl-section-title {
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e3a5f;
}

.tl-grid {
  display: grid;
  grid-template-columns: 140px 1fr 140px 1fr;
  gap: 8px 14px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-bottom: 12px;
  font-size: 13px;
}

.tl-grid label {
  font-weight: 600;
  font-size: 12px;
}

.tl-grid input,
.tl-grid select {
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font: inherit;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.tl-grid-span-3 {
  grid-column: span 3;
}

.tl-grid-hint {
  margin: 0 0 10px;
  font-size: 12px;
}

.tl-radius-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 12px;
}

.tl-results-title {
  font-weight: 700;
  margin: 10px 0 6px;
}

.tl-subpanel.hidden {
  display: none;
}

.tl-load-context {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #1e293b;
  color: #f8fafc;
  border-radius: 6px;
  font-size: 12px;
}

.tl-ctx-item strong {
  color: #fff;
}

.tl-ctx-load {
  color: #fca5a5 !important;
}

.tl-dat-moves {
  font-style: italic;
}

.tl-shipment-type-row {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.tl-shipment-type-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
}

.tl-shipment-type-row select {
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  min-width: 140px;
}

.tl-content-area {
  padding: 12px;
  background: #f9fbff;
  border: 1px solid #dce5f5;
  border-radius: 6px;
}

.tl-search-desc {
  margin: 0 0 10px;
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

.tl-criteria-form {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.tl-criteria-form .tl-run-search,
.tl-criteria-form .tl-clear-search {
  margin-top: 10px;
  margin-right: 8px;
}

.tl-section-title {
  font-size: 16px;
}

.tl-results-panel[hidden] {
  display: none !important;
}

.tl-results-panel.is-visible {
  display: block;
}

.tl-results-empty[hidden] {
  display: none !important;
}

.tl-results-shell {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0 0 6px 6px;
  padding: 10px 12px;
  min-height: 80px;
}

.tl-results-msg {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
}

.tl-results-msg[hidden] {
  display: none !important;
}

.tl-results-shell .tl-results-panel {
  margin-top: 0;
}

.tl-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.tl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.tl-table th {
  background: #d9e7ff;
  border: 1px solid #a8c3ff;
  padding: 6px 8px;
  text-align: left;
  font-weight: 700;
  color: #003d91;
  white-space: nowrap;
}

.tl-table td {
  border: 1px solid #d0d7e8;
  padding: 6px 8px;
  background: #fff;
}

.tl-table .center {
  text-align: center;
}

.tl-hot-link {
  color: #0073ff;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.tl-rfq-btn {
  margin-top: 10px;
  padding: 8px 18px;
  background: #1c8d00;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.tl-datmatch-box {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fff9c7;
  border: 1px solid #e6db8a;
  border-radius: 4px;
  font-size: 12px;
}

.tl-rate-input {
  width: 72px;
  padding: 4px 6px;
}

.tl-grid-radius {
  max-width: 520px;
}

.tl-search-back {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #2563eb;
  text-decoration: underline;
}

.tl-criteria-banner,
.tl-results-banner {
  background: linear-gradient(180deg, #1e3a5f 0%, #334155 100%);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px 4px 0 0;
  font-weight: 800;
  font-size: 14px;
}

.tl-results-banner {
  margin-top: 4px;
  border-radius: 4px 4px 0 0;
}

.tl-carrier-criteria {
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.tl-grid-carrier select {
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font: inherit;
  font-size: 13px;
  min-width: 0;
  width: 100%;
}

/* Sources row — Carrier Search + Radius Search (inline radios, no box) */
.tl-criteria-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin: 12px 0;
  width: 100%;
  max-width: 720px;
  font-size: 13px;
}

.tl-criteria-sources-label {
  font-weight: 700;
  color: #1e3a5f;
}

.tl-source-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
}

.tl-source-radio input[type="radio"] {
  margin: 0;
  accent-color: #1d4ed8;
}

.tl-carrier-criteria .tl-criteria-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tl-carrier-criteria .tl-grid-carrier {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.tl-carrier-criteria .tl-criteria-actions--center {
  margin-top: 8px;
}

.tl-criteria-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tl-criteria-actions--center {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

.tl-carrier-criteria .tl-criteria-actions--center {
  margin-top: 8px;
}

.tl-carrier-name-link {
  color: #0073ff;
  font-weight: 700;
  text-decoration: underline;
}

.tl-mc-red {
  color: #dc2626;
  font-weight: 700;
}

.tl-fitness {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.tl-fitness-ok {
  color: #16a34a;
}

.tl-fitness-warn {
  color: #ca8a04;
}

.tl-fitness-bad {
  color: #dc2626;
}

.tl-sample-muted td {
  background: #f8fafc;
}

.tl-results-note {
  margin: 8px 0 0;
  font-size: 11px;
}

.tl-history-criteria {
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.tl-history-criteria .tl-criteria-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tl-history-criteria .tl-grid-history {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.tl-history-criteria .tl-grid-hint {
  text-align: center;
  max-width: 640px;
}

.tl-history-criteria .tl-criteria-actions--center {
  margin-top: 8px;
}

.tl-history-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.tl-mode-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a5f;
  cursor: pointer;
}

.tl-history-fields {
  min-height: 72px;
}

.tl-hist-field-group {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 8px 14px;
  align-items: center;
  max-width: 520px;
}

.tl-hist-field-group.hidden {
  display: none;
}

.tl-hist-field-group label {
  font-weight: 600;
  font-size: 12px;
}

.tl-hist-field-group input,
.tl-hist-field-group select {
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font: inherit;
  min-width: 0;
}

.tl-hist-field-group[data-tl-hist-group="mc"] {
  grid-template-columns: auto 1fr;
  max-width: 280px;
}

.tl-history-table-wrap {
  max-height: 320px;
}

.tl-history-results-table {
  font-size: 11px;
}

.tl-history-results-table th {
  white-space: nowrap;
  padding: 5px 6px;
}

.tl-history-results-table td {
  padding: 5px 6px;
  white-space: nowrap;
}

.tl-load-num-link {
  color: #dc2626;
  font-weight: 700;
  text-decoration: underline;
}

.tl-fitness-legend-row {
  font-size: 11px;
}

.tl-radius-criteria {
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.tl-radius-criteria .tl-criteria-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tl-radius-criteria .tl-grid-radius {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.tl-radius-criteria .tl-radius-sources {
  justify-content: center;
  width: 100%;
  max-width: 720px;
  margin-top: 4px;
}

.tl-radius-criteria .tl-radius-mode {
  justify-content: center;
  width: 100%;
  max-width: 720px;
  margin: 12px 0 0;
  padding: 0;
  border-bottom: none;
}

.tl-radius-criteria .tl-criteria-actions--center {
  margin-top: 12px;
}

.tl-radius-criteria-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: flex-start;
}

.tl-radius-main {
  flex: 1 1 280px;
  min-width: 0;
}

.tl-radius-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.tl-radius-fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  align-items: center;
  max-width: 320px;
  margin-bottom: 12px;
}

.tl-radius-fields label {
  font-weight: 600;
  font-size: 12px;
}

.tl-radius-fields input,
.tl-radius-fields select {
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font: inherit;
  min-width: 0;
}


.tl-radius-range-note {
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 12px;
  background: #fef9c3;
  border: 2px solid #eab308;
  border-radius: 6px;
  max-width: 200px;
  font-size: 12px;
  color: #713f12;
}

.tl-radius-range-note-head {
  font-weight: 800;
  margin-bottom: 6px;
}

.tl-radius-range-note ul {
  margin: 0;
  padding-left: 18px;
}

.tl-radius-range-note li {
  padding: 2px 0;
}

.tl-radius-table-wrap {
  max-height: 320px;
}

.tl-radius-results-table {
  font-size: 11px;
}

.tl-radius-results-table th,
.tl-radius-results-table td {
  padding: 5px 6px;
  white-space: nowrap;
}

.tl-rfq-panel {
  max-width: 100%;
}

.tl-rfq-header {
  margin-bottom: 10px;
}

.tl-rfq-banner {
  margin-bottom: 6px;
}

.tl-rfq-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  font-size: 12px;
}

.tl-rfq-ext-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.tl-rfq-ext-link {
  color: #dc2626;
  font-weight: 700;
  text-decoration: underline;
}

.tl-rfq-load-num {
  font-weight: 700;
  color: #1e3a5f;
}

.tl-rfq-company {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.tl-rfq-logo {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e3a5f;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  border-radius: 4px;
}

.tl-rfq-company-text {
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
}

.tl-rfq-company-name {
  font-weight: 800;
  font-size: 14px;
  color: #1e3a5f;
  margin-bottom: 4px;
}

.tl-rfq-reply {
  margin-top: 6px;
  font-size: 13px;
}

.tl-rfq-reply strong {
  color: #0f172a;
}

.tl-rfq-tagline {
  margin: 6px 0 0;
  font-size: 11px;
}

.tl-rfq-layout {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 42%);
  gap: 16px 20px;
  align-items: start;
}

@media (max-width: 960px) {
  .tl-rfq-layout {
    grid-template-columns: 1fr;
  }
}

.tl-rfq-section-head {
  background: linear-gradient(180deg, #1e3a5f 0%, #334155 100%);
  color: #fff;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 13px;
  border-radius: 4px 4px 0 0;
  margin-top: 10px;
}

.tl-rfq-col-left .tl-rfq-section-head:first-of-type {
  margin-top: 0;
}

.tl-rfq-find-form {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-width: 420px;
}

.tl-rfq-find-form label {
  font-weight: 600;
  font-size: 12px;
}

.tl-rfq-find-form input,
.tl-rfq-find-form select {
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font: inherit;
}

.tl-rfq-find-form .btn-search {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 4px;
}

.tl-rfq-load-details {
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 6px 6px;
  font-size: 12px;
}

.tl-rfq-ld-block {
  margin-top: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.tl-rfq-ld-headbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #1e3a5f 0%, #334155 100%);
  color: #fff;
}

.tl-rfq-ld-head-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tl-rfq-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: #fff;
  color: #1e3a5f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.tl-rfq-ld-head-title {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.tl-rfq-ld-headbar .tl-rfq-ld-note {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
}

.tl-rfq-ld-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 14px;
  padding: 14px 16px;
  overflow-x: auto;
}

.tl-rfq-ld-foot {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px 24px;
  padding: 0 16px 14px;
  overflow-x: auto;
}

.tl-rfq-ld-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.tl-rfq-ld-cell--commodity {
  grid-column: span 3;
  min-width: 240px;
}

.tl-rfq-ld-cell--toggle {
  flex: 0 0 auto;
  min-width: 160px;
}

.tl-rfq-ld-label {
  font-weight: 700;
  font-size: 11px;
  color: #1e3a5f;
  white-space: nowrap;
}

.tl-rfq-ld-box {
  display: block;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 4px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  min-height: 32px;
  line-height: 1.35;
}

.tl-rfq-ld-box--toggle {
  display: flex;
  align-items: center;
  min-height: 32px;
  background: #fff;
}

.tl-rfq-ld-row {
  display: grid;
  grid-template-columns: repeat(6, auto 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
}

@media (max-width: 1100px) {
  .tl-rfq-ld-grid {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .tl-rfq-ld-cell--commodity {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .tl-rfq-ld-grid {
    grid-template-columns: repeat(3, minmax(110px, 1fr));
  }

  .tl-rfq-ld-cell--commodity {
    grid-column: span 3;
  }
}

.tl-rfq-ld-row:last-child {
  border-bottom: none;
}

.tl-rfq-ld-row dt {
  font-weight: 700;
  color: #1e3a5f;
  margin: 0;
}

.tl-rfq-ld-row dd {
  margin: 0;
  color: #0f172a;
}

.tl-rfq-ld-toggles .tl-rfq-inline-radios {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.tl-rfq-via-label {
  color: #dc2626;
  font-weight: 700;
}

.tl-rfq-search-results {
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: #fff;
}

.tl-rfq-search-empty {
  margin: 6px 0 0;
  font-size: 11px;
}

.tl-rfq-selected-wrap {
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 280px;
  overflow: auto;
}

.tl-rfq-remove-link {
  background: none;
  border: none;
  padding: 0;
  color: #dc2626;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}

.tl-rfq-col-right .tl-rfq-btn {
  margin-top: 10px;
}

.tl-rfq-ld-note {
  margin: 0;
  font-size: 11px;
}

.tl-rfq-results-shell {
  margin-top: 0;
}

.tl-rfq-selected-hint {
  margin: 0 0 8px;
  font-size: 11px;
}

.tl-rfq-status {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
}

.tl-rfq-status.tl-lb-status-err {
  color: #b91c1c;
}

.tl-rfq-search-table th,
.tl-rfq-search-table td {
  font-size: 11px;
  padding: 5px 6px;
}

.tl-rfq-selected-table {
  font-size: 11px;
}

.tl-rfq-selected-table th,
.tl-rfq-selected-table td {
  padding: 5px 6px;
}

.tl-loadboard-panel {
  max-width: 100%;
}

.tl-lb-centered {
  max-width: 440px;
  margin: 0 auto;
  padding: 14px 16px 12px;
  text-align: center;
}

.tl-lb-api-note {
  margin: 0 0 12px;
  font-size: 11px;
  color: #475569;
  text-align: center;
  line-height: 1.4;
}

.tl-lb-status {
  margin: 10px 0 0;
  padding: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.tl-lb-status-err {
  color: #b91c1c;
  background: #fef2f2;
}

.tl-lb-banner {
  border-radius: 8px 8px 0 0;
}

.tl-lb-panel-body {
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: #fff;
  padding: 0;
}

.tl-lb-table-wrap {
  border: none;
  margin: 0 auto;
  width: 100%;
}

.tl-loadboard-table {
  width: 100%;
  margin: 0 auto;
}

.tl-loadboard-table th.center,
.tl-loadboard-table td.center {
  text-align: center;
}

.tl-loadboard-table td:first-child {
  font-weight: 600;
  text-align: left;
  min-width: 200px;
}

.tl-loadboard-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.tl-lb-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 0;
  border-top: none;
}

.tl-lb-datmatch-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 10px 12px;
  background: #fef08a;
  border-top: 2px solid #eab308;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.tl-lb-datmatch-label {
  letter-spacing: 0.02em;
}

.tl-lb-datmatch-hint {
  font-weight: 600;
  color: #713f12;
}

.tl-lb-datmatch-link {
  margin-left: auto;
  background: #1e3a5f;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
}

.tl-lb-datmatch-link:hover {
  background: #334155;
}

.tl-match-panel {
  max-width: 100%;
}

.tl-match-banner {
  border-radius: 8px 8px 0 0;
}

.tl-match-panel-body {
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: #fff;
  padding: 14px 16px 16px;
}

.tl-match-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}

.tl-match-criteria {
  margin-bottom: 12px;
}

.tl-grid-match {
  max-width: 100%;
}

.tl-grid-match select {
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font: inherit;
  width: 100%;
}

.tl-match-criteria .tl-criteria-actions {
  justify-content: center;
  margin-top: 12px;
}

.tl-match-results-shell .tl-results-panel {
  text-align: left;
}

.tl-match-panel-body .tl-datmatch-box {
  margin-top: 12px;
}

/* Commodity grid — App.jsx Commodity Information */
/* Tab strip → panels → Rates and Charges (below tabs) */
.ld-detail-panels-block {
  width: 100%;
  margin-top: 14px;
}

.ld-detail-panels-block.ld-panels-idle .ld-panel-stack {
  display: none;
}

.ld-page.ld-ltl-suppressed .ld-tab-panel[data-panel="ltl"] {
  display: none;
}

/* Rates and Charges — pill below detail tabs */
.ld-rates-charges-zone {
  margin-top: 4px;
  width: 100%;
}

.ld-rates-charges-strip {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.ld-rates-pill {
  padding: 8px 20px;
  border: 1px solid #94a3b8;
  border-radius: 8px;
  background: #fff;
  color: #1e3a5f;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.ld-rates-pill.is-active {
  background: #1d4ed8;
  color: #fff;
  border-color: #1e40af;
  box-shadow: 0 1px 3px rgba(30, 64, 175, 0.35);
}

.ld-rates-charges-panel {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 14px 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ld-rates-charges-panel[hidden] {
  display: none !important;
}

.ld-rates-charges-head {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #1e3a5f;
  text-align: center;
}

.ld-rates-charges-meta {
  text-align: center;
  margin: 0 0 12px;
  font-size: 13px;
}

.ld-rates-charges-columns {
  margin: 0 auto;
}

/* Rates & Charges — Carrier | Customer | Tariff Bill To (always side by side; shrink columns) */
.ld-rates-charges-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  align-items: start;
}

.ld-rates-charges-grid > .ltl-rating-col {
  min-width: 0;
}

.ld-rates-charges-grid .ltl-col-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.ld-rates-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
}

.ld-rates-col-head .ltl-col-title {
  margin: 0;
}

.ld-rates-col-caption {
  color: #475569;
  font-weight: 600;
  font-size: 11px;
  margin-left: 6px;
}

.ld-rates-col-caption:empty {
  display: none;
}

.ld-rates-charges-grid .ltl-charge-table,
.ld-rates-charges-grid .ld-tbt-table {
  font-size: 11px;
}

.ld-rates-charges-grid .ltl-charge-table th,
.ld-rates-charges-grid .ltl-charge-table td,
.ld-rates-charges-grid .ld-tbt-table tbody th,
.ld-rates-charges-grid .ld-tbt-table tbody td {
  padding: 4px 6px;
}

.ld-rates-charges-grid .ltl-commission-hint {
  margin: 6px 0 0;
  font-size: 10px;
  line-height: 1.35;
}

.ld-rates-charges-grid .ltl-margin-pct {
  width: 100%;
  max-width: 72px;
  font-size: 11px;
  padding: 2px 4px;
}

@media (max-width: 640px) {
  .ld-rates-charges-grid {
    grid-template-columns: 1fr;
  }
}

.ld-tbt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.ld-tbt-table tbody th {
  width: 42%;
  text-align: left;
  font-weight: 700;
  color: #1e3a5f;
  background: #e7f3ff;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  vertical-align: middle;
  white-space: nowrap;
}

.ld-tbt-table tbody td {
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-weight: 400;
  text-align: left;
  vertical-align: middle;
  word-break: break-word;
}

.ld-commodity-section {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.ld-commodity-section.is-reportable-locked .ld-comm-reportable:not([type="hidden"]) {
  background: #f1f5f9;
  color: #334155;
  cursor: not-allowed;
}

.ld-commodity-section.is-reportable-locked button.ld-comm-reportable {
  opacity: 0.55;
  cursor: not-allowed;
}

.ld-commodity-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ld-commodity-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #1e3a5f;
  text-align: center;
}

.ld-reportable-edit-link {
  justify-self: end;
  appearance: none;
  border: none;
  background: transparent;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ld-reportable-edit-link:hover {
  color: #991b1b;
}

.ld-comm-haz-link {
  justify-self: start;
  appearance: none;
  border: 1px solid #fca5a5;
  background: #fff;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.ld-comm-haz-link:hover {
  background: #fef2f2;
}

.ld-commodity-wrap {
  overflow-x: auto;
}

.ld-commodity-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ld-commodity-grid th {
  background: #e8eef5;
  color: #1e3a5f;
  font-weight: 700;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}

.ld-commodity-grid td {
  padding: 4px 6px;
  border: 1px solid #e2e8f0;
  vertical-align: middle;
}

.ld-commodity-grid input,
.ld-commodity-grid select {
  width: 100%;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  box-sizing: border-box;
}

.ld-commodity-grid .ld-comm-desc {
  min-width: 0;
}

.ld-commodity-grid .ld-comm-num {
  max-width: 100%;
}

.ld-comm-hm {
  text-align: center;
}

.ld-comm-hm input[type="checkbox"] {
  width: auto;
  margin: 0 auto;
  display: block;
}

.ld-comm-rm-cell {
  text-align: center;
}

.ld-comm-remove {
  appearance: none;
  border: 1px solid #e6e9ef;
  background: #fff;
  color: #1f2937;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 7px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.ld-comm-remove:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.ld-comm-dims-row td {
  background: #fafcff;
  padding: 4px 8px 8px;
  border-bottom: 1px solid #eef2f7;
}

.ld-comm-dims {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
}

.ld-comm-dims .btn-link {
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  padding: 4px 8px;
  background: #fff;
}

.ld-comm-dims-spacer {
  flex: 1 1 12px;
  min-width: 8px;
}

.ld-comm-dims-label {
  font-weight: 800;
  color: #334155;
}

.ld-comm-dims label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.ld-comm-dim {
  width: 56px !important;
}

.ld-commodity-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-top: 8px;
  padding: 10px 12px;
  background: #e8f4fc;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.ld-commodity-footer-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.ld-commodity-footer .ld-comm-add-row {
  flex-shrink: 0;
  margin-left: auto;
}

.ld-dim-factor-input {
  width: 56px;
  margin-left: 4px;
  padding: 3px 5px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
}

.ld-haz-emergency {
  margin-top: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #f87171;
  border-radius: 6px;
}

.ld-haz-emergency.hidden {
  display: none;
}

.ld-haz-emergency-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #991b1b;
}

.ld-haz-emergency-label input {
  min-width: 220px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

.ld-commodity-warn,
.ld-commodity-haz,
.ld-commodity-class-warn {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.ld-commodity-warn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  background: #fef2f2;
  border: 1px solid #f87171;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
}

.ld-volume-warn-label {
  color: #b91c1c;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ld-volume-warn-text {
  color: #b91c1c;
  flex: 1 1 240px;
}

.ld-volume-ack {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
  flex-shrink: 0;
}

.ld-volume-ack:hover {
  background: #1d4ed8;
}

.ld-volume-ack.is-acked {
  background: #166534;
  cursor: default;
}

.ld-commodity-class-warn {
  background: #fff;
  border: none;
  color: #dc2626;
  font-size: 12px;
}

.ld-class-warn-label {
  margin-right: 6px;
}

.ld-class-accept {
  color: #1d4ed8 !important;
  font-weight: 800;
  text-decoration: underline;
}

.ld-commodity-haz {
  background: #fee2e2;
  border: 1px solid #f87171;
  color: #991b1b;
}

.ld-commodity-nmfta {
  margin: 8px 0 0;
  font-size: 10px;
  text-align: center;
  width: 100%;
}

.ld-commodity-warn.hidden,
.ld-commodity-haz.hidden,
.ld-commodity-class-warn.hidden {
  display: none;
}

.ld-comm-calc-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ld-comm-calc-modal[hidden] {
  display: none !important;
}

.ld-comm-calc-panel {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 10px;
  border: 2px solid #1e3a5f;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.25);
}

.ld-comm-calc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #e8eef5;
  border-bottom: 1px solid #cbd5e1;
}

.ld-comm-calc-head h4 {
  margin: 0;
  font-size: 15px;
  color: #1e3a5f;
}

.ld-comm-calc-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ld-comm-calc-body label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}

.ld-calc-input {
  width: 120px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

.ld-calc-results {
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
}

.ld-calc-results p {
  margin: 0 0 6px;
}

.ld-calc-alert {
  color: #b91c1c;
  font-weight: 700;
}

.ld-calc-foot {
  margin: 0;
  font-size: 11px;
}

body.ld-comm-calc-open {
  overflow: hidden;
}

.ld-view-toggle {
  display: inline-flex;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  overflow: hidden;
}

.ld-view-toggle .ld-view-btn {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  background: #fff;
  color: #64748b;
  cursor: pointer;
}

.ld-view-toggle .ld-view-btn + .ld-view-btn {
  border-left: 1px solid #94a3b8;
}

.ld-view-toggle .ld-view-btn.is-active {
  background: #1d4ed8;
  color: #fff;
}

.ld-view-toggle .ld-view-btn:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 1px;
}

.loads-menu-grid {
  display: grid;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.loads-menu-group h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #1e3a5f;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 4px;
}

.loads-menu-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.loads-menu-group li {
  margin: 4px 0;
}

.loads-menu-group a.soon {
  color: #94a3b8;
  pointer-events: none;
  text-decoration: none;
}

/* Active Load List + Search Loads History — shared list header */
.ld-list-panel .panel-head-row.ld-list-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  margin-bottom: 8px;
}

.ld-list-panel .ld-list-head--filters {
  min-height: 44px;
  margin-bottom: 6px;
}

.ld-list-panel .ld-head-add-new,
.ld-list-panel .ld-head-back-detail {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.ld-list-panel .ld-head-back-detail {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ld-list-panel .ld-list-page-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  max-width: min(70%, 520px);
  pointer-events: none;
}

.tms-list-compact-page .ld-status-buckets-bar {
  margin-bottom: 6px;
}

.tms-list-compact-page .tms-hub {
  margin-top: 0;
}

.tms-list-compact-page .tms-module-tabs {
  margin-bottom: 8px;
}

.ld-list-head--filters .ld-status-filter-form--head {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  text-align: center;
  width: max-content;
  max-width: calc(100% - 180px);
  z-index: 0;
}

.ld-list-head--filters .ld-status-filter-row {
  justify-content: center;
}

.ld-list-search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin: 0 0 14px;
}

/* Active Load List — row 3: views · search · export (one line only) */
.ld-list-toolbar-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: end;
  column-gap: 16px;
  row-gap: 0;
  margin: 0 0 8px;
  padding: 0 4px 8px;
  border-bottom: 1px solid #e2e8f0;
  width: 100%;
  box-sizing: border-box;
}

.ld-list-toolbar-row .tms-list-toolbar-views {
  grid-column: 1;
  justify-self: start;
  white-space: nowrap;
}

.ld-list-toolbar-row .tms-list-toolbar-views .tms-list-views-bar {
  flex-wrap: nowrap;
}

.ld-list-toolbar-row .ld-list-toolbar-search {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  flex-wrap: nowrap;
  width: max-content;
  max-width: 100%;
}

.ld-list-toolbar-row .ld-list-toolbar-search label {
  min-width: 0;
}

.ld-list-toolbar-row .ld-list-toolbar-search input[type="search"] {
  min-width: 240px;
  width: 280px;
  max-width: 36vw;
}

.ld-list-toolbar-row .tms-list-toolbar-export,
.ld-list-toolbar-row .ld-export-excel {
  grid-column: 3;
  justify-self: end;
  margin: 0 0 2px;
  white-space: nowrap;
}

.ld-list-toolbar-export-spacer {
  grid-column: 3;
}

.ld-status-filter-form {
  margin-bottom: 0;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  text-align: center;
}

.ld-status-buckets-bar {
  margin: 0 0 14px;
}

.ld-status-buckets-bar .ld-status-filter-form {
  margin-bottom: 8px;
}

.ld-status-buckets-bar .ld-status-buckets-hint {
  margin: 0;
  text-align: center;
}

.ld-status-filter-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px 12px;
}

.ld-add-new-wrap--status-bar {
  justify-self: start;
}

.ld-status-buckets-bar .ld-status-filters {
  justify-self: center;
}

.ld-status-buckets-bar .ld-apply-filters {
  justify-self: end;
}

.ld-status-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ld-apply-filters {
  flex-shrink: 0;
  margin: 0;
}

.ld-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 2px solid #94a3b8;
  border-radius: 6px;
  background: var(--ld-chip-bg, #fff);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.ld-status-chip:has(input:checked) {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.25);
}

.ld-status-chip input {
  margin: 0;
}

.ld-filter-hint {
  margin: 0 0 14px;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1100px) {
  .ld-list-head--filters .ld-status-filter-form--head {
    position: static;
    transform: none;
    max-width: 100%;
    width: 100%;
    margin-top: 10px;
  }

  .ld-list-head--filters {
    flex-wrap: wrap;
  }
}

.ld-list-wrap {
  overflow-x: auto;
}

.ld-active-grid .ld-inline-form {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.ld-status-readonly {
  display: inline-block;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 3px;
  border: none;
  white-space: nowrap;
  cursor: default;
  appearance: none;
}

.ld-inline-pro,
.ld-inline-dispatch select {
  min-width: 88px;
  max-width: 140px;
  padding: 4px 6px;
  font-size: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

.ld-row.ld-st-quote td {
  background-color: #fefce8;
}

.ld-row.ld-st-booked td {
  background-color: #eff6ff;
}

.ld-row.ld-st-dispatched td {
  background-color: #dbeafe;
}

.ld-row.ld-st-intransit td {
  background-color: #ffedd5;
}

.ld-row.ld-st-hot td {
  background-color: #fee2e2;
}

.ld-row.ld-st-ofd td {
  background-color: #fed7aa;
}

.ld-row.ld-st-booked-covered td {
  background: #dbeafe;
}

.ld-row.ld-st-delivered td {
  background: #dcfce7;
}

.ld-row.ld-st-open td {
  background-color: #ffffff;
}

.ld-row .tms-row-link {
  font-weight: 700;
}

.ld-active-grid tbody tr.ld-row[data-load-id] {
  cursor: pointer;
}

.ld-list-shortcut-label {
  display: block;
  margin: 0;
}

.ld-list-shortcut-select {
  width: 100%;
  min-width: 148px;
  max-width: 220px;
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #1e3a5f;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.ld-list-shortcut-select:focus {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
}

.ld-active-grid .tms-col-shortcuts {
  vertical-align: middle;
  min-width: 160px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shipment Search - History / Search All Shipments — matches Reference + list grid */
.ld-tab-panel[data-panel="history"],
.ld-tab-panel[data-panel="search_all"] {
  padding: 0;
  overflow: hidden;
}

.ld-search-panel {
  width: 100%;
}

.ld-search-form {
  margin-bottom: 14px;
}

.ld-search-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 14px;
}

.ld-search-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #1e3a5f;
}

.ld-search-toolbar .ld-ref-input {
  min-width: 220px;
}

.ld-search-hint {
  background: #fef9c3;
  color: #1e3a5f;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #fde047;
}

.ld-search-hint--inline {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  padding: 2px 8px;
}

.ld-search-limit-note {
  margin: 0 0 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #b91c1c;
  line-height: 1.35;
}

.ld-search-form--history {
  margin-bottom: 10px;
}

.ld-search-toolbar--history {
  margin-bottom: 8px;
  gap: 8px 12px;
}

.ld-search-toolbar-customer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #1e3a5f;
}

.ld-search-toolbar--history .ld-ref-select {
  width: 22ch;
  min-width: 18ch;
  max-width: 100%;
}

/* Shipment search forms — 4-column aligned matrix (History + Search All) */
.ld-search-form--matrix {
  margin-bottom: 10px;
}

.ld-search-matrix {
  display: grid;
  grid-template-columns: minmax(12rem, 1.05fr) minmax(11rem, 1fr) minmax(11rem, 1fr) minmax(11rem, 1fr);
  gap: 4px 12px;
  align-items: start;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.ld-search-form--all .ld-search-matrix {
  grid-template-columns: minmax(13.5rem, 1.15fr) minmax(11rem, 1fr) minmax(11rem, 1fr) minmax(11rem, 1fr);
}

.ld-search-matrix-span {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.ld-search-matrix-lane {
  margin-bottom: 2px;
}

.ld-search-matrix-match {
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid #eef2f7;
}

.ld-search-matrix-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ld-search-matrix-col--ids {
  min-width: 0;
}

.ld-search-matrix-col--shipper {
  min-width: 0;
}

.ld-search-matrix-col--consignee {
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  padding-left: 10px;
  padding-right: 10px;
  min-width: 0;
}

.ld-search-matrix-col--carrier {
  min-width: 0;
}

.ld-search-matrix-col--refs {
  min-width: 0;
}

.ld-search-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0 8px;
  min-height: 26px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #1e3a5f;
}

.ld-search-line-label {
  text-align: left;
  white-space: nowrap;
  line-height: 1.2;
  padding-right: 2px;
}

.ld-search-line-label--sub {
  text-align: left;
  font-size: 12px;
  padding-left: 4px;
}

.ld-search-line .ld-ref-input {
  width: var(--ld-sl-width, 100%);
  max-width: 100%;
  min-width: 0;
  padding: 3px 6px;
  font-size: 12px;
  justify-self: start;
}

.ld-search-line--full,
.ld-search-line--wide,
.ld-search-line--long {
  --ld-sl-width: 100%;
}

.ld-search-line--long .ld-ref-input {
  max-width: 100%;
}

.ld-search-line--id {
  --ld-sl-width: 11ch;
}

.ld-search-line--status {
  --ld-sl-width: 13ch;
}

.ld-search-line--carrier {
  --ld-sl-width: 15ch;
}

.ld-search-line--date {
  --ld-sl-width: 13.5ch;
}

.ld-search-line--country {
  --ld-sl-width: 7.5ch;
}

.ld-search-line--ref {
  --ld-sl-width: 12ch;
}

.ld-search-line--invoice {
  --ld-sl-width: 14ch;
}

.ld-search-line--cert {
  --ld-sl-width: 16ch;
}

.ld-search-line--yn {
  --ld-sl-width: 4.5ch;
}

.ld-search-line--yn .ld-ref-select {
  padding-right: 18px;
}

.ld-search-line--state-zip {
  grid-template-columns: auto 4.5ch auto 10ch;
  column-gap: 6px;
}

.ld-search-line--state-zip .ld-search-w-state {
  width: 4.5ch;
  max-width: 4.5ch;
}

.ld-search-line--state-zip .ld-search-w-zip {
  width: 10ch;
  max-width: 10ch;
}

.ld-search-line--date-range {
  grid-template-columns: auto 13.5ch auto;
  column-gap: 8px;
  align-items: center;
}

.ld-search-line--date-range .ld-search-hint--inline {
  margin: 0;
  white-space: nowrap;
}

.ld-search-matrix .ld-search-w-state {
  width: 4.5ch;
  max-width: 4.5ch;
}

.ld-search-matrix .ld-search-w-zip {
  width: 10ch;
  max-width: 10ch;
}

.ld-search-lane-hint-inline {
  flex: 1 1 280px;
  min-width: 200px;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  white-space: normal;
}

.ld-search-form--matrix .ld-search-lane-title,
.ld-search-form--matrix .ld-search-lane-match-label,
.ld-search-form--matrix .ld-search-lane-match-by,
.ld-search-form--matrix .ld-search-lane-match-kind,
.ld-search-form--matrix .ld-search-lane-match-or {
  font-size: 12px;
}

.ld-search-form--matrix .ld-search-actions {
  margin-top: 8px;
  padding-top: 8px;
}

.ld-search-criteria-grid {
  display: grid;
  gap: 12px 20px;
}

.ld-search-criteria-grid--history {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ld-search-criteria-grid--all {
  grid-template-columns: 1fr 1fr;
}

.ld-search-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ld-search-field {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a5f;
}

.ld-search-field--yn .ld-ref-select {
  max-width: 88px;
}

.ld-search-lane-block {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.ld-search-lane-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 16px;
  margin-bottom: 8px;
}

.ld-search-lane-title {
  font-size: 13px;
  font-weight: 800;
  color: #1e3a5f;
}

.ld-search-lane-hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  max-width: 920px;
}

.ld-search-lane-match {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.ld-search-lane-match-label,
.ld-search-lane-match-by,
.ld-search-lane-match-kind,
.ld-search-lane-match-or {
  font-size: 13px;
  font-weight: 800;
  color: #1e3a5f;
}

.ld-search-lane-match-or {
  font-weight: 700;
  color: #64748b;
}

.ld-search-lane-input {
  width: 120px;
  min-width: 0;
}

.ld-search-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.ld-search-results {
  margin-top: 4px;
}

.ld-search-results .ld-list-wrap {
  margin-top: 0;
}

.ld-search-results-count {
  margin: 8px 0 0;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .ld-search-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ld-search-matrix-col--consignee {
    border-left: none;
    border-right: none;
    padding-left: 0;
    padding-right: 0;
  }

  .ld-search-criteria-grid--history {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .ld-search-matrix {
    grid-template-columns: 1fr;
  }

  .ld-search-criteria-grid--history,
  .ld-search-criteria-grid--all {
    grid-template-columns: 1fr;
  }
}

.ld-delete-form-sr {
  display: none;
}

/* Send Documents tab (loads shipment detail) */
.ld-tab-panel[data-panel="docs"] .ld-tab-panel-head {
  text-align: center;
}

.ld-tab-panel[data-panel="carrier"] .ld-tab-panel-head {
  text-align: center;
}

/* Carrier Info tab — this shipment + carrier master reference */
.ld-carrier-info-panel {
  width: 100%;
  font-size: 13px;
}

.ld-ci-shipment-note {
  max-width: 920px;
  margin: 0 auto 12px;
  padding: 0 8px;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
}

.ld-ci-ref-hint {
  margin: -4px 0 10px;
  font-size: 11px;
}

.ld-carrier-info-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(320px, 1fr);
  gap: 20px 36px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
  padding: 4px 8px 0;
}

.ld-ci-row-grid {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 10px 12px;
  align-items: center;
}

.ld-ci-left .ld-ci-row-grid {
  grid-template-columns: 132px 1fr;
}

.ld-ci-label {
  font-weight: 700;
  color: #1e3a5f;
  text-align: right;
  padding-right: 2px;
  line-height: 1.3;
}

.ld-ci-value input,
.ld-ci-value select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
  background: #fff;
}

.ld-ci-readonly {
  background: #f8fafc;
  color: #334155;
}

.ld-ci-value-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
  width: 100%;
}

.ld-ci-hint {
  font-size: 11px;
  line-height: 1.35;
  color: #2563eb;
}

.ld-pro-trace-link {
  font-size: 14px;
  font-weight: 800;
  color: #1d4ed8;
  text-decoration: underline;
}

.ld-pro-pill {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  text-decoration: none;
  line-height: 1.3;
}

.ld-pro-pill:hover {
  background: #eff6ff;
  color: #1e40af;
}

.ld-header-pro-field .ld-header-pro-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.ld-header-pro-with-link {
  width: 11ch;
  min-width: 9ch;
  max-width: 14ch;
}

.ld-pro-list-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.ld-pro-list-cell .ld-pro-pill {
  font-size: 12px;
}

.ld-pro-trace-link:hover {
  color: #1e40af;
}

.ld-ref-value-with-trace {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ld-ref-value-with-trace .ld-ref-input {
  flex: 1 1 160px;
  min-width: 0;
}

.ld-ref-trace-link {
  font-size: 13px;
  font-weight: 800;
  color: #1d4ed8;
  text-decoration: underline;
  white-space: nowrap;
}

.ld-ref-trace-link:hover {
  color: #1e40af;
}

.ld-ci-pro-edit {
  margin-top: 0;
}

.ld-ci-block-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: #1e3a5f;
  text-align: left;
}

.ld-ci-carrier-grid {
  grid-template-columns: 132px 1fr;
}

.ld-ci-send-value {
  display: flex;
  align-items: center;
}

.ld-ci-send-btn {
  min-width: 76px;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
}

.ld-ci-extra {
  max-width: 920px;
  margin: 18px auto 0;
  padding: 12px 8px 0;
  border-top: 1px solid #e2e8f0;
}

.ld-ci-extra-grid {
  grid-template-columns: 148px 1fr 100px 120px 60px 100px;
  max-width: 100%;
}

/* Detail and Reference tab */
.ld-tab-panel[data-panel="reference"] {
  padding: 0;
  overflow: hidden;
}

.ld-reference-panel {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

.ld-reference-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  align-items: start;
}

.ld-reference-col-single {
  max-width: 420px;
  margin: 0 auto;
}

.ld-reference-col-title {
  margin: 0 0 10px;
  padding-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #1e3a5f;
  text-align: center;
  border-bottom: 2px solid #93c5fd;
}

.ld-reference-head {
  margin: 0;
  padding: 10px 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #1e40af 0%, #1e3a5f 100%);
  border-radius: 8px 8px 0 0;
}

.ld-reference-body {
  padding: 14px 16px 18px;
  border: 1px solid #cbd5e1;
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: #fff;
}

.ld-reference-grid {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 10px 12px;
  align-items: center;
}

.ld-ref-label {
  font-weight: 700;
  color: #1e3a5f;
  text-align: right;
  padding-right: 4px;
  font-size: 13px;
}

.ld-ref-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
  background: #fff;
}

.ld-ref-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231e3a5f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.ld-ref-date,
.ld-ref-time {
  color: #1e3a5f;
}

.ld-reference-save-hint {
  margin: 14px 0 0;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 780px) {
  .ld-reference-columns {
    grid-template-columns: 1fr;
  }
}

/* Notes tab — drill-down by type (spreadsheet mockup) */
.ld-tab-panel[data-panel="notes"] {
  padding: 8px 10px 12px;
}

.ld-notes-panel {
  width: 100%;
}

.ld-notes-sheet {
  border: 2px solid #1e293b;
  background: #fff;
  font-size: 13px;
}

.ld-notes-sheet-head,
.ld-notes-foot-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  border-bottom: 1px solid #94a3b8;
}

.ld-notes-sheet-head {
  font-weight: 800;
  background: #f1f5f9;
}

.ld-notes-col-type,
.ld-notes-foot-label {
  padding: 8px 10px;
  border-right: 1px solid #94a3b8;
  font-weight: 800;
  color: #1e293b;
}

.ld-notes-col-body,
.ld-notes-foot-value {
  padding: 8px 10px;
}

.ld-notes-sheet-main {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 320px;
  border-bottom: 1px solid #94a3b8;
}

.ld-notes-types {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #94a3b8;
  background: #fafafa;
}

.ld-notes-type-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.ld-notes-type-btn:hover {
  background: #e2e8f0;
}

.ld-notes-type-btn.is-active {
  background: #dbeafe;
  color: #1d4ed8;
}

.ld-notes-log-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px 12px;
  gap: 10px;
}

.ld-notes-view-lead {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.ld-notes-compose {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ld-notes-compose-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #94a3b8;
  font: inherit;
  resize: vertical;
}

.ld-notes-append-btn {
  align-self: flex-start;
}

.ld-notes-entries {
  flex: 1;
  overflow-y: auto;
  max-height: 360px;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 8px 10px;
}

.ld-notes-entry {
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 0;
}

.ld-notes-entry:last-child {
  border-bottom: none;
}

.ld-notes-entry-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 4px;
}

.ld-notes-entry-vis {
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 3px;
  background: #e2e8f0;
}

.ld-notes-entry-text {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
  color: #1e293b;
}

.ld-notes-empty {
  margin: 0;
  font-size: 12px;
}

.ld-notes-sheet-foot .ld-notes-foot-row:last-child {
  border-bottom: none;
}

.ld-notes-type-hint {
  font-size: 11px;
  margin-left: 6px;
}

.ld-notes-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ld-notes-visibility,
.ld-notes-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.ld-notes-actions .ld-notes-type-hint {
  margin-right: 4px;
}

.ld-notes-vis-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  cursor: pointer;
}

.ld-dispatch-notes-link {
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

.ld-dispatch-notes-hint {
  margin: 0 0 8px;
  font-size: 12px;
}

.ld-dispatch-notes-snip {
  font-size: 12px;
  line-height: 1.4;
  max-height: 120px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ld-dispatch-notes-snip p {
  margin: 0 0 6px;
}

@media (max-width: 780px) {
  .ld-notes-sheet-head,
  .ld-notes-foot-row,
  .ld-notes-sheet-main {
    grid-template-columns: 1fr;
  }

  .ld-notes-col-type,
  .ld-notes-foot-label {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .ld-notes-types {
    flex-direction: row;
    flex-wrap: wrap;
    border-right: none;
    border-bottom: 1px solid #94a3b8;
  }

  .ld-notes-type-btn {
    width: auto;
    border-bottom: none;
    border-right: 1px solid #e2e8f0;
  }
}

@media (max-width: 780px) {
  .ld-carrier-info-layout {
    grid-template-columns: 1fr;
  }

  .ld-ci-extra-grid {
    grid-template-columns: 132px 1fr;
  }
}

.send-docs-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  font-size: 13px;
}

.send-docs-lead {
  margin: 0 auto 14px;
  max-width: 720px;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}

.send-docs-form {
  margin: 0 auto;
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.send-docs-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
  gap: 16px 24px;
  width: 100%;
  align-items: start;
}

.send-docs-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.send-docs-choices .ld-docs-picker-grid,
.send-docs-choices .ld-docs-available,
.send-docs-choices .ld-docs-type-picker {
  max-width: none;
  margin-bottom: 0;
}

.send-docs-recipient-col {
  min-width: 0;
}

.send-docs-recipient-col .ld-docs-recipient-grid {
  margin-bottom: 0;
}

.send-docs-main {
  flex: 0 1 520px;
  min-width: 280px;
  max-width: 560px;
  width: 100%;
}

@media (max-width: 880px) {
  .send-docs-layout {
    grid-template-columns: 1fr;
  }
}

.send-docs-recipient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.send-docs-recipient-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.send-docs-recipient-grid label span:first-child {
  font-weight: 700;
}

.send-docs-recipient-grid input,
.send-docs-recipient-grid select,
.send-docs-recipient-grid textarea {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
}

.send-docs-span-all {
  grid-column: 1 / -1;
}

.send-docs-docs {
  flex: 0 0 180px;
  min-width: 180px;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

@media (max-width: 720px) {
  .send-docs-docs {
    flex: 1 1 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .send-docs-main {
    margin: 0 auto;
  }
}

.send-docs-docs-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #1e3a5f;
  text-align: center;
}

.send-docs-radio-list {
  list-style: none;
  margin: 0;
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

.send-docs-radio-list li {
  margin: 0;
  padding: 0;
}

.send-docs-radio-list li label {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  column-gap: 8px;
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  text-align: left;
}

.send-docs-radio-list input[type="radio"] {
  margin: 0;
  width: 16px;
  height: 16px;
  accent-color: #1d4ed8;
}

.send-docs-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  width: 100%;
}

/* Send Documents modal (accounting — shared) */
.acct-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
}

.acct-modal[hidden] {
  display: none !important;
}

.acct-modal-panel {
  background: #fff;
  border-radius: 10px;
  padding: 16px 18px;
  max-width: 640px;
  width: 94%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.acct-send-recipient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.acct-send-recipient-grid .span-all {
  grid-column: 1 / -1;
}

.acct-doc-checks {
  margin: 12px 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
}

.acct-send-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* LTL Rating tab — Excel / LTLRatingPanel.jsx mockup */
.ld-tab-panel[data-panel="ltl"] .ld-tab-panel-head {
  text-align: center;
  font-size: 16px;
}

.ltl-rating-panel {
  font-size: 13px;
  display: block;
  width: 100%;
}

.ltl-rating-intro {
  width: 100%;
  max-width: 960px;
}

.ltl-rating-lead {
  margin: 0 auto 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
  max-width: 960px;
  text-align: center;
}

.ltl-rating-zip-hint {
  text-align: center;
  margin: 0 auto 8px;
  max-width: 960px;
  font-size: 13px;
  color: #c2410c;
}

.ltl-rates-returned {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.ltl-step {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 20px;
}

.ltl-step-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: #1e3a5f;
  padding-bottom: 6px;
  border-bottom: 2px solid #93c5fd;
}

.ltl-step-before .ltl-rating-toolbar {
  margin-bottom: 0;
}

.ltl-step-returned {
  padding: 14px;
  border: 2px solid #1e3a5f;
  border-radius: 8px;
  background: #f8fafc;
}

.ltl-step-result {
  padding: 14px;
  border: 2px solid #16a34a;
  border-radius: 8px;
  background: #fff;
}

.ltl-rate-breakdown-panel {
  max-width: 420px;
  margin: 0 auto 16px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.ltl-breakdown-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: #1e3a5f;
}

.ltl-breakdown-table th {
  text-align: left;
  font-weight: 700;
  color: #1e3a5f;
  background: #e2e8f0;
  padding: 8px 10px;
}

.ltl-breakdown-table td.num {
  text-align: right;
  font-weight: 600;
}

.ltl-breakdown-total th,
.ltl-breakdown-total td {
  background: #dbeafe !important;
}

.ltl-snapshot-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.ltl-rating-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 12px 16px;
  margin: 0 auto 14px;
  padding: 12px 14px;
  width: 100%;
  max-width: 960px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
  border: 1px solid #86efac;
  border-radius: 8px;
}

.ltl-get-quote {
  flex-shrink: 0;
}

.ltl-tariff-pick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  min-width: 200px;
}

.ltl-tariff-pick select {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
  min-width: 220px;
}

.ltl-toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.ltl-rating-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 0 auto 16px;
  width: 100%;
  max-width: 900px;
  text-align: left;
}

@media (max-width: 960px) {
  .ltl-rating-columns {
    grid-template-columns: 1fr;
  }
}

.ltl-col-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #1e3a5f;
  text-align: center;
}

.ltl-charge-table {
  width: 100%;
  font-size: 12px;
}

.ltl-charge-table th {
  background: #dbeafe;
  color: #1e3a5f;
  font-size: 11px;
}

.ltl-charge-table .num {
  text-align: right;
}

.ltl-charge-table .ltl-total-row td {
  font-weight: 800;
  background: #f1f5f9;
}

.ltl-margin-input {
  width: 64px;
  text-align: right;
}

.ltl-billto-card {
  border: 2px solid #1d4ed8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.ltl-billto-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #bfdbfe;
}

.ltl-billto-tab {
  font-weight: 800;
  color: #1d4ed8;
  font-size: 14px;
}

.ltl-billto-card label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
}

.ltl-billto-card input,
.ltl-billto-card select {
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.ltl-billto-city-row {
  display: grid;
  grid-template-columns: 2fr 0.6fr 1fr;
  gap: 8px;
}

.ltl-manual-override {
  margin: 0 auto 14px;
  padding: 12px 14px;
  width: 100%;
  max-width: 960px;
  box-sizing: border-box;
  border: 2px solid #dc2626;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.ltl-manual-override.is-locked .ld-mro-field:not(.ld-mro-total) {
  background: #f8fafc;
}

.ltl-mro-tariff-lead {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  max-width: 920px;
}

.ltl-mro-tariff-toolbar {
  margin: 0 0 12px;
  max-width: 100%;
}

.ltl-manual-override .ltl-mro-tariff-toolbar.ltl-rating-toolbar {
  justify-content: flex-start;
}

.ltl-mro-carrier-row,
.ltl-mro-charge-row,
.ltl-mro-accessorial-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 8px;
}

.ltl-mro-side-label {
  min-width: 7.5rem;
  font-size: 12px;
  font-weight: 800;
  color: #1e3a5f;
}

.ltl-mro-field-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.ltl-mro-inline-lbl {
  white-space: nowrap;
}

.ltl-mro-block {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.ltl-mro-block:last-of-type {
  border-bottom: none;
}

.ltl-mro-charge-row .ld-mro-field,
.ltl-mro-accessorial-row .ld-mro-field,
.ltl-mro-carrier-row select {
  padding: 4px 6px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  min-width: 5rem;
}

.ltl-mro-charge-row .ld-mro-linehaul,
.ltl-mro-charge-row .ld-mro-fsc,
.ltl-mro-charge-row .ld-mro-total,
.ltl-mro-accessorial-row .ld-mro-accessorial-amt {
  width: 6.5rem;
}

.ltl-mro-charge-row .ld-mro-rate-type,
.ltl-mro-charge-row .ld-mro-fsc-type {
  min-width: 6.5rem;
}

.ltl-mro-carrier-row select {
  min-width: 14rem;
}

.ltl-mro-accessorial-row .ld-mro-accessorial {
  min-width: 10rem;
}

.ltl-mro-accessorial-charge {
  margin-left: auto;
}

.ld-mro-calc-total {
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #1e3a5f;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
}

.ld-mro-calc-total:hover {
  background: #dbeafe;
}

.ltl-mro-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.ld-mro-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: #b91c1c;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

.ld-mro-edit-icon {
  font-size: 11px;
  letter-spacing: -2px;
}

.ltl-manual-override:not(.is-locked) .ld-mro-edit-label {
  color: #86efac;
}

.ld-mro-save {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
}

.ltl-override-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: #b91c1c;
}

.ltl-card-desc {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
}

.ltl-override-carrier {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 320px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
}

.ltl-override-carrier select {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.ltl-override-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}

@media (max-width: 800px) {
  .ltl-override-grid {
    grid-template-columns: 1fr;
  }
}

.ltl-override-block h5 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #1e3a5f;
}

.ltl-override-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px 10px;
  margin-bottom: 8px;
}

.ltl-override-row label,
.ltl-accessorial-row label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
}

.ltl-override-row input,
.ltl-override-row select,
.ltl-accessorial-row input,
.ltl-accessorial-row select {
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
}

.ltl-accessorial-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  padding: 8px;
  background: #f8fafc;
  border-radius: 4px;
}

.ltl-ref-note {
  margin: 12px 0 0;
  padding: 8px 10px;
  background: #fef9c3;
  border: 1px solid #facc15;
  border-radius: 4px;
  font-size: 11px;
}

.ltl-rate-breakdown {
  margin: 0 auto 12px;
  width: 100%;
  max-width: 520px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  text-align: left;
}

.ltl-breakdown-summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.ltl-breakdown-summary::-webkit-details-marker {
  display: none;
}

.ltl-breakdown-title {
  font-size: 14px;
  color: #1e3a5f;
}

.ltl-breakdown-hint {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
}

.ltl-breakdown-body {
  padding: 0 14px 12px;
}

.ltl-breakdown-table {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.ltl-breakdown-table th {
  text-align: left;
  font-weight: 700;
  padding: 6px 10px;
  background: #e2e8f0;
  width: 55%;
}

.ltl-breakdown-table td {
  padding: 6px 10px;
  border-top: 1px solid #e2e8f0;
}

.ltl-breakdown-total th,
.ltl-breakdown-total td {
  font-weight: 800;
  background: #dbeafe;
}

.ltl-rating-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  width: 100%;
  max-width: 960px;
}

.ltl-return-rates {
  color: #b91c1c;
  font-weight: 700;
  border-color: #f87171;
}

/* LTL — Returned Rates (3PL) */
.ltl-rating-panel .ltl-rating-env,
.ltl-rating-panel .ltl-rating-msg {
  text-align: center;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.ltl-rating-env {
  margin: 0 0 10px;
  font-size: 12px;
}

.ltl-env-ok {
  color: #15803d;
  font-weight: 700;
}

.ltl-env-warn {
  color: #b45309;
  font-weight: 700;
}

.ltl-rates-returned {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 18px;
  padding: 12px 14px;
  border: 2px solid #1e3a5f;
  border-radius: 8px;
  background: #f8fafc;
}

.ltl-rates-returned-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.ltl-rates-returned-head h4 {
  margin: 0;
  font-size: 15px;
  color: #1e3a5f;
}

.ltl-rating-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.ltl-rating-badge.is-live {
  background: #dcfce7;
  color: #166534;
}

.ltl-rating-badge.is-sandbox {
  background: #fef3c7;
  color: #92400e;
}

.ltl-rating-msg {
  margin: 0 0 8px;
  font-size: 13px;
}

.ltl-rating-msg-ok {
  color: #15803d;
}

.ltl-rating-msg-warn {
  color: #b45309;
}

.ltl-rates-hint {
  margin: 0 0 12px;
  font-size: 12px;
}

.ltl-rates-tier-title {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.ltl-rates-table-wrap {
  max-height: 280px;
  overflow: auto;
}

.ltl-rates-table {
  font-size: 12px;
}

.ltl-rates-table th {
  position: sticky;
  top: 0;
  background: #e2e8f0;
  z-index: 1;
}

.ltl-rate-select-col {
  width: 36px;
}

.ltl-rate-row {
  cursor: pointer;
}

.ltl-rate-row:hover td {
  background: #eff6ff;
}

.ltl-rate-row-selected td {
  background: #dbeafe !important;
}

.ltl-rate-cost {
  color: #1d4ed8;
  font-weight: 600;
}

.ltl-rates-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* Rate Quotes Snapshot modal */
body.ltl-snapshot-open {
  overflow: hidden;
}

.ltl-snapshot-panel {
  max-width: 1180px;
  width: 96%;
  padding: 0;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.ltl-snapshot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.ltl-snapshot-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.ltl-snapshot-close {
  font-size: 22px;
  line-height: 1;
  min-width: 36px;
}

.ltl-snapshot-msg {
  margin: 0;
  padding: 8px 16px;
  font-size: 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.ltl-snapshot-tier {
  padding: 0 12px 8px;
}

.ltl-snapshot-tier-title {
  margin: 10px 0 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}

.ltl-rate-errors {
  margin: 12px 12px 0;
  padding: 12px 14px;
  border: 2px solid #eab308;
  border-radius: 8px;
  background: #fef9c3;
}

.ltl-rate-errors--modal {
  margin: 0 16px 12px;
}

.ltl-rate-errors-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 800;
  color: #854d0e;
}

.ltl-rate-errors-lead {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.4;
}

.ltl-rate-errors-table {
  width: 100%;
  font-size: 12px;
  background: #fff;
}

.ltl-rate-errors-table th {
  background: #fde68a;
  color: #78350f;
  font-weight: 700;
  padding: 7px 8px;
  border: 1px solid #fcd34d;
}

.ltl-rate-errors-table td {
  padding: 7px 8px;
  border: 1px solid #fde68a;
  vertical-align: top;
}

.ltl-rate-error-scac {
  font-weight: 800;
  white-space: nowrap;
}

.ltl-rate-error-msg {
  color: #7f1d1d;
  font-weight: 600;
}

.ltl-snapshot-scroll {
  max-height: 320px;
  overflow: auto;
}

.ltl-snapshot-table {
  font-size: 12px;
  width: 100%;
}

.ltl-snapshot-table thead th {
  position: sticky;
  top: 0;
  background: #cbd5e1;
  color: #1e293b;
  font-weight: 700;
  z-index: 1;
  white-space: nowrap;
}

.ltl-snap-carrier-col {
  min-width: 220px;
}

.ltl-snap-carrier-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.3;
}

.ltl-snap-group {
  font-weight: 700;
  color: #1e3a5f;
}

.ltl-snap-name {
  color: #334155;
}

.ltl-snap-source {
  font-size: 11px;
  color: #64748b;
}

.ltl-snap-pick-col {
  width: 2.25rem;
  min-width: 2.25rem;
  padding: 0 6px;
  text-align: center;
  vertical-align: middle;
}

.ltl-snap-pick {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  vertical-align: middle;
}

.ltl-snap-row {
  cursor: pointer;
}

.ltl-snap-row:hover td {
  background: #f1f5f9;
}

.ltl-snap-row-selected td {
  background: #94a3b8 !important;
  color: #0f172a;
}

.ltl-snap-sort {
  cursor: pointer;
  user-select: none;
}

.ltl-sort-icon {
  font-size: 10px;
  opacity: 0.7;
}

.ltl-info-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  line-height: 14px;
  margin-right: 2px;
  vertical-align: middle;
}

.ltl-snapshot-foot {
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
}

.ltl-snapshot-foot .muted {
  flex: 1 1 200px;
  margin: 0;
  font-size: 11px;
}

.ltl-selected-banner {
  max-width: 900px;
  margin: 0 auto 12px;
  padding: 10px 14px;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  font-size: 13px;
  text-align: center;
}

.ltl-commission-hint {
  margin: 8px 0 0;
  font-size: 11px;
  text-align: center;
}

.ltl-margin-pct {
  width: 72px;
  text-align: right;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 6px;
  background: #f8fafc;
}

.ltl-rating-msg-ok {
  color: #15803d;
  font-weight: 600;
}

.ltl-rating-msg-warn {
  color: #b45309;
}

/* Dispatch modal (shortcut) — draggable, page stays usable behind */
body.ld-dispatch-open {
  overflow: auto;
}

.ld-dispatch-modal.acct-modal {
  background: transparent;
  pointer-events: none;
  align-items: flex-start;
  justify-content: flex-start;
}

.ld-dispatch-modal .ld-dispatch-panel {
  pointer-events: auto;
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 9001;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.28);
  border: 1px solid #94a3b8;
}

.ld-dispatch-modal .ld-dispatch-panel.is-dragged {
  transform: none;
}

.ld-dispatch-panel {
  max-width: 1120px;
  width: min(1120px, 96vw);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.ld-dispatch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.ld-dispatch-head.ld-dispatch-dragging {
  cursor: grabbing;
}

.ld-dispatch-head-text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.ld-dispatch-drag-grip {
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -2px;
}

.ld-dispatch-drag-hint {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ld-dispatch-head h2 {
  margin: 0;
  font-size: 17px;
  color: #1e3a5f;
}

.ld-dispatch-close {
  min-width: 36px;
  padding: 4px 10px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.ld-dispatch-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.ld-dispatch-body {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

.ld-dispatch-main {
  padding: 14px 16px;
  overflow-y: auto;
  max-height: calc(92vh - 52px);
}

.ld-dispatch-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px 12px;
  margin-bottom: 14px;
  font-size: 12px;
}

.ld-dispatch-metrics label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ld-dispatch-metrics span {
  font-weight: 700;
  color: #334155;
}

.ld-dispatch-metrics input {
  padding: 5px 7px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  font: inherit;
}

.ld-dispatch-ro {
  background: #f8fafc;
  color: #475569;
}

.ld-dispatch-section-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  color: #1e40af;
  padding: 4px 8px;
  background: #dbeafe;
  border-radius: 4px;
}

.ld-dispatch-terminal.is-tl-disabled {
  opacity: 0.55;
}

.ld-dispatch-terminal.is-tl-disabled input,
.ld-dispatch-terminal.is-tl-disabled textarea {
  background: #f1f5f9;
  cursor: not-allowed;
}

.ld-dispatch-tl-hint,
.ld-dispatch-ltl-hint,
.ld-dispatch-scac-hint {
  margin: 0 0 10px;
  font-size: 12px;
  grid-column: 1 / -1;
}

.ld-dispatch-terminal-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.ld-dispatch-terminal-col h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #1e3a5f;
}

.ld-dispatch-terminal-col label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}

.ld-dispatch-terminal-col input,
.ld-dispatch-terminal-col textarea {
  width: 100%;
  margin-top: 3px;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  box-sizing: border-box;
}

.ld-dispatch-terminal-code-name {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  margin-bottom: 8px;
}

.ld-dispatch-terminal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 8px;
}

.ld-terminal-source-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  max-width: 100%;
}

.ld-terminal-confidence-dispatcher_override,
.ld-terminal-confidence-saved_on_shipment {
  background: #ecfdf5;
  color: #047857;
  border-color: #6ee7b7;
}

.ld-terminal-confidence-carrier_lookup,
.ld-terminal-confidence-carrier_api {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.ld-terminal-confidence-manual_required {
  background: #fef9c3;
  color: #854d0e;
  border-color: #fde047;
}

.ld-terminal-reresolve {
  font-size: 11px;
  padding: 5px 10px;
}

.ld-dispatch-remember-lane {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: #1e3a5f;
}

.ld-dispatch-remember-lane.is-disabled {
  opacity: 0.5;
}

.ld-dispatch-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
  margin-bottom: 16px;
  font-size: 12px;
}

.ld-dispatch-details-grid label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ld-dispatch-details-grid span {
  font-weight: 700;
  color: #334155;
}

.ld-dispatch-details-grid input,
.ld-dispatch-details-grid select {
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
}

.ld-dispatch-sidebar {
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
  padding: 14px 12px;
  overflow-y: auto;
}

.ld-dispatch-sidebar-block h4 {
  margin: 0 0 10px;
  font-size: 13px;
  color: #1e3a5f;
}

.ld-dispatch-sidebar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.ld-dispatch-sidebar select,
.ld-dispatch-sidebar .btn-primary,
.ld-dispatch-sidebar .btn-secondary {
  width: 100%;
  margin-bottom: 8px;
  box-sizing: border-box;
}

.ld-dispatch-dispatch-hint {
  font-size: 11px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.ld-dispatch-flash {
  margin-top: 10px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .ld-dispatch-body {
    grid-template-columns: 1fr;
  }
  .ld-dispatch-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .ld-dispatch-details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* MacroPoint Truckload Tracking tab */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ld-tl-tracking {
  font-size: 13px;
}

.ld-tl-track-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1e40af;
  text-align: center;
}

.ld-tl-track-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #1e3a5f;
}

.ld-tl-track-back {
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
}

.ld-tl-track-back:hover {
  text-decoration: underline;
}

.ld-tl-mp-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.ld-tl-mp-badge-live {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.ld-tl-track-toolbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 10px;
  margin-bottom: 10px;
}

@media (max-width: 1100px) {
  .ld-tl-track-toolbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .ld-tl-track-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

.ld-tl-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ld-tl-field > span {
  font-weight: 700;
  color: #334155;
  font-size: 12px;
}

.ld-tl-input {
  width: 100%;
  box-sizing: border-box;
  padding: 5px 8px;
  border: 1px solid #94a3b8;
  border-radius: 3px;
  font-size: 13px;
  background: #fff;
}

.ld-tl-select {
  cursor: pointer;
}

.ld-tl-stop-row {
  display: grid;
  grid-template-columns: auto auto 1.4fr repeat(5, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  margin-bottom: 6px;
  border-radius: 4px;
}

.ld-tl-stop-ship {
  background: #dcfce7;
  border: 1px solid #86efac;
}

.ld-tl-stop-del {
  background: #ffedd5;
  border: 1px solid #fdba74;
}

.ld-tl-stop-label {
  font-weight: 800;
  color: #1e3a5f;
  white-space: nowrap;
  font-size: 12px;
}

.ld-tl-stop-icons {
  display: flex;
  gap: 4px;
  font-size: 14px;
}

.ld-tl-stop-time,
.ld-tl-stop-date {
  max-width: 120px;
}

.ld-tl-stop-st {
  max-width: 56px;
}

.ld-tl-stop-zip {
  max-width: 72px;
}

.ld-tl-stop-instr {
  grid-column: span 1;
}

@media (max-width: 1200px) {
  .ld-tl-stop-row {
    grid-template-columns: auto 1fr 1fr 1fr;
  }
  .ld-tl-stop-label {
    grid-column: 1 / -1;
  }
}

.ld-tl-begin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 12px 0 16px;
  text-align: center;
}

.ld-tl-begin-btn {
  background: #16a34a;
  color: #fff;
  border: 1px solid #15803d;
  border-radius: 4px;
  padding: 8px 22px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.ld-tl-begin-btn:hover:not(:disabled) {
  background: #15803d;
}

.ld-tl-begin-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.ld-tl-order-id {
  font-size: 12px;
}

.ld-tl-track-msg {
  font-size: 12px;
  font-weight: 600;
}

.ld-tl-track-msg-ok {
  color: #166534;
}

.ld-tl-track-msg-err {
  color: #b91c1c;
}

.ld-tl-loc-section {
  margin-bottom: 14px;
}

.ld-tl-loc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ld-tl-loc-head h4 {
  margin: 0;
  font-size: 14px;
  color: #1e3a5f;
}

.ld-tl-add-loc {
  background: none;
  border: none;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.ld-tl-loc-table th {
  font-size: 12px;
}

.ld-tl-col-time,
.ld-tl-col-date {
  width: 90px;
}

/* Accounting Summary tab */
.ld-tab-panel[data-panel="accounting"] .ld-tab-panel-head {
  text-align: center;
  font-size: 16px;
}

.ld-acct-summary {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 13px;
}

.ld-acct-summary-head {
  text-align: center;
  margin-bottom: 16px;
}

.ld-acct-summary-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  color: #1e3a5f;
}

.ld-acct-summary-load {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.ld-acct-summary-load-num {
  color: #b91c1c;
  font-size: 16px;
  margin-left: 8px;
}

.ld-acct-summary-lead {
  margin: 0 auto;
  max-width: 820px;
  font-size: 13px;
  line-height: 1.45;
}

.ld-acct-summary-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ld-acct-summary-block {
  border: 2px solid #1e3a5f;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.ld-acct-summary-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #1e3a5f 0%, #2a4a73 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.ld-acct-badge {
  display: inline-block;
  min-width: 42px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 800;
}

.ld-acct-party-name {
  padding: 4px 10px;
  border-radius: 4px;
  background: #fff;
  color: #1e3a5f;
  min-width: 140px;
}

.ld-acct-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ld-acct-summary-table th {
  background: #e8eef5;
  color: #1e3a5f;
  font-weight: 700;
  padding: 7px 8px;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}

.ld-acct-summary-table td {
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  vertical-align: top;
}

.ld-acct-summary-table .num {
  text-align: right;
  white-space: nowrap;
}

.ld-acct-invoice-num {
  color: #b91c1c;
  font-weight: 700;
}

.ld-acct-empty {
  padding: 14px 8px !important;
  font-size: 13px;
}

.ld-tl-map-section {
  margin-top: 8px;
}

.ld-tl-map {
  height: 280px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #e2e8f0;
}

.ld-tl-map-hint {
  margin: 6px 0 0;
  font-size: 11px;
}

.ld-universal-search-results .ld-universal-search-lead {
  margin: 0 0 12px;
  font-size: 14px;
}

.ld-universal-search-page .ld-universal-row--linked:hover td {
  background: #eef6fb;
}

.ld-universal-db {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}
.ld-universal-db--load {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e3a8a;
}
.ld-universal-db--customer {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}
.ld-universal-db--carrier {
  background: #fef9c3;
  border-color: #fde047;
  color: #854d0e;
}

/* Upload Documents modal */
.ld-upload-docs-panel {
  max-width: 520px;
}

.ld-upload-docs-lead {
  margin: 0 0 12px;
  font-size: 13px;
}

/* Shared Upload / Send document picker */
.ld-docs-picker-grid,
.ld-upload-docs-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  max-width: 560px;
}

.ld-docs-picker-grid > label,
.ld-upload-docs-grid > label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.ld-docs-picker-grid select,
.ld-docs-picker-grid input[type="file"],
.ld-docs-picker-grid input[type="text"],
.ld-docs-picker-grid textarea,
.ld-upload-docs-grid select,
.ld-upload-docs-grid input[type="file"],
.ld-upload-docs-grid input[type="text"] {
  font: inherit;
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.ld-docs-type-picker {
  display: grid;
  gap: 6px;
}

.ld-docs-type-label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.ld-docs-type-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 4px 12px;
  max-height: none;
  overflow: visible;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

label.ld-docs-type-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  padding: 2px 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  color: #0f172a;
  cursor: pointer;
}

label.ld-docs-type-check input[type="checkbox"] {
  margin: 2px 0 0;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.ld-docs-type-hint {
  margin: 0;
  font-size: 11px;
}

#ld-send-doc-types-wrap[hidden],
#ld-send-note-types-wrap[hidden],
#ld-send-available-docs[hidden],
#ld-send-available-notes[hidden],
#ld-send-docs-lead-files[hidden],
#ld-send-docs-lead-notes[hidden] {
  display: none !important;
}

.ld-docs-available {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  max-width: 520px;
}

.ld-docs-available-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #1e3a5f;
}

.ld-docs-available-list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
}

.ld-docs-available-list a {
  font-weight: 700;
  color: #1d4ed8;
}

.ld-docs-available-empty {
  margin: 0;
  font-size: 12px;
}

.ld-docs-recipient-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.ld-docs-recipient-grid label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.ld-docs-recipient-grid input,
.ld-docs-recipient-grid select,
.ld-docs-recipient-grid textarea {
  font: inherit;
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.ld-docs-span-all {
  grid-column: 1 / -1;
}

.ld-upload-docs-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.ld-upload-docs-existing h4 {
  margin: 0 0 8px;
  font-size: 13px;
}

.ld-upload-docs-list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
}

.ld-upload-docs-list li {
  margin-bottom: 4px;
}

/* Documents inventory — Send Documents tab + upload modal */
.ld-docs-inventory {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.ld-upload-docs-existing .ld-docs-inventory {
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.ld-upload-docs-existing .ld-docs-inventory-upload {
  display: none;
}

.ld-docs-inventory-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.ld-docs-inventory-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.ld-docs-inventory-lead {
  margin: 0;
  font-size: 12px;
  max-width: 52rem;
}

.ld-docs-inventory-empty {
  margin: 0;
  font-size: 13px;
}

.ld-docs-inventory-wrap {
  overflow-x: auto;
}

.ld-docs-inventory-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
}

.ld-docs-inventory-table th,
.ld-docs-inventory-table td {
  border: 1px solid #e2e8f0;
  padding: 6px 8px;
  text-align: left;
  vertical-align: middle;
}

.ld-docs-inventory-table th {
  background: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.ld-docs-inv-filename {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ld-docs-inv-actions {
  white-space: nowrap;
}

.ld-docs-inv-actions .btn-link {
  margin-right: 8px;
}

.ld-doc-src-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ld-doc-src-uploaded {
  background: #e2e8f0;
  color: #334155;
}

.ld-doc-src-auto_generated {
  background: #dbeafe;
  color: #1d4ed8;
}

.ld-doc-src-sent_copy {
  background: #dcfce7;
  color: #166534;
}

.ld-doc-src-portal_upload {
  background: #ede9fe;
  color: #6d28d9;
}

.ld-doc-sent-channel {
  font-size: 10px;
  margin-left: 4px;
}

.send-docs-doc-links {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.send-docs-doc-link-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 6px 0;
  font-size: 13px;
  cursor: pointer;
}

.send-docs-doc-link {
  font-weight: 700;
  color: #1d4ed8;
}

.send-docs-doc-file {
  font-size: 12px;
}

.send-docs-docs-hint {
  margin: 0 0 8px;
  font-size: 12px;
}

.send-docs-docs-title--sub {
  margin-top: 12px;
}

.send-docs-doc-links--other {
  margin-top: 8px;
}

.send-docs-doc-empty {
  font-size: 12px;
  line-height: 1.45;
}

.send-docs-recipient-bar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 14px;
  margin-bottom: 16px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.send-docs-recipient-bar label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.send-docs-recipient-bar input,
.send-docs-recipient-bar select,
.send-docs-recipient-bar textarea {
  font: inherit;
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.send-docs-recipient-bar .send-docs-span-all {
  grid-column: 1 / -1;
}

.send-docs-db-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.send-docs-db-section {
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
}

.send-docs-db-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.send-docs-db-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #1e3a5f;
}

.send-docs-db-hint {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.35;
}

.send-docs-db-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.send-docs-db-actions .btn-sm,
.send-docs-db-head .btn-sm {
  font-size: 12px;
  padding: 5px 10px;
}

.send-docs-doc-when {
  font-size: 11px;
}

.send-docs-actions--global {
  justify-content: center;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

/* Reportable Edit modal */
.ld-reportable-panel {
  max-width: 720px;
}

/* Add Stop modal */
.ld-add-stop-panel {
  max-width: 640px;
  text-align: left;
}

.ld-add-stop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  padding: 8px 12px;
  background: linear-gradient(180deg, #5b9bd5 0%, #2d5a87 100%);
  border-radius: 8px;
  color: #fff;
}

.ld-add-stop-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.ld-add-stop-head--form {
  margin-top: 16px;
}

.ld-add-stop-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.ld-add-stop-summary-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
}

.ld-add-stop-summary {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ld-add-stop-summary th,
.ld-add-stop-summary td {
  border: 1px solid #cbd5e1;
  padding: 6px 8px;
  text-align: left;
}

.ld-add-stop-summary th {
  background: #f1f5f9;
  font-weight: 800;
}

.ld-add-stop-seq-cell {
  white-space: nowrap;
  width: 1%;
}

.ld-add-stop-seq-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ld-add-stop-seq-num {
  display: inline-block;
  min-width: 1.2em;
  font-weight: 700;
  text-align: center;
}

.ld-add-stop-seq-arrows {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.ld-add-stop-move {
  border: 1px solid #64748b;
  background: #f8fafc;
  border-radius: 3px;
  padding: 0 6px;
  min-width: 26px;
  height: 24px;
  line-height: 1;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: #1e3a5f;
}

.ld-add-stop-move:not(:disabled) {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1d4ed8;
}

.ld-add-stop-move:hover:not(:disabled) {
  background: #eff6ff;
  border-color: #93c5fd;
}

.ld-add-stop-move:disabled {
  opacity: 0.35;
  cursor: default;
}

.ld-add-stop-type-row {
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0 0 10px;
  padding: 0;
}

.ld-add-stop-type-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
}

.ld-add-stop-loc-link-row {
  margin: 0 0 10px;
}

.ld-add-stop-add-loc {
  border: 0;
  background: none;
  padding: 0;
  color: #dc2626;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.ld-add-stop-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.ld-add-stop-fields label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.ld-add-stop-fields input,
.ld-add-stop-fields textarea {
  font: inherit;
  padding: 6px 8px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

.ld-add-stop-span-2 {
  grid-column: 1 / -1;
}

.ld-add-stop-notes-label textarea {
  background: #fef9c3;
}

.ld-add-stop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.ld-add-stop-msg {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.ld-add-stop-msg-ok {
  color: #166534;
}

.ld-add-stop-msg-err {
  color: #b91c1c;
}

.ld-add-stop-hint {
  margin: 0 0 10px;
  font-size: 12px;
  text-align: center;
}

.ld-add-stop-card {
  margin: 0 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.ld-add-stop-card .ld-stop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.ld-add-stop-notes-input {
  width: 100%;
  min-height: 48px;
  background: #fef9c3;
  box-sizing: border-box;
}

.ld-add-stop-loc-picker {
  margin: 10px;
}

/* International/Air modal — wide, draggable (like Dispatch) */
body.ld-intl-air-open {
  overflow: auto;
}

.ld-intl-air-modal.acct-modal {
  background: transparent;
  pointer-events: none;
  align-items: flex-start;
  justify-content: flex-start;
}

.ld-intl-air-modal .ld-intl-air-panel {
  pointer-events: auto;
  position: fixed;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 9001;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.28);
  border: 1px solid #64748b;
  max-width: none;
  width: min(1520px, 98vw);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  border-radius: 10px;
}

.ld-intl-air-modal .ld-intl-air-panel.is-dragged {
  transform: none;
}

.ld-intl-air-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #cbd5e1;
  background: linear-gradient(180deg, #5b9bd5 0%, #2d5a87 100%);
  color: #fff;
  cursor: grab;
  user-select: none;
  touch-action: none;
  flex-shrink: 0;
}

.ld-intl-air-head.ld-intl-air-dragging {
  cursor: grabbing;
}

.ld-intl-air-head-text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.ld-intl-air-drag-grip {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1;
  letter-spacing: -2px;
}

.ld-intl-air-drag-hint {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.ld-intl-air-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.ld-intl-air-close {
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
}

.ld-intl-air-form {
  padding: 10px 12px 14px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}

.ld-intl-air-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 10px;
  align-items: start;
  text-align: left;
}

.ld-intl-air-col {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.ld-intl-air-col-head {
  margin: 0;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(180deg, #5b9bd5 0%, #2d5a87 100%);
}

.ld-intl-air-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ld-intl-air-table th,
.ld-intl-air-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 4px 6px;
  vertical-align: middle;
}

.ld-intl-air-table th {
  width: 42%;
  font-weight: 700;
  color: #334155;
  text-align: left;
  white-space: nowrap;
}

.ld-intl-air-table input,
.ld-intl-air-table select,
.ld-intl-air-table textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 12px;
  padding: 3px 5px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
}

.ld-intl-air-dim-cell,
.ld-intl-air-weight-cell,
.ld-intl-air-money-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.ld-intl-air-dim {
  width: 2.8rem !important;
  min-width: 2.8rem;
  text-align: center;
}

.ld-intl-air-dim-x {
  font-size: 11px;
  color: #64748b;
}

.ld-intl-air-dim-unit {
  width: 3.2rem !important;
  min-width: 3.2rem;
}

.ld-intl-air-unit-toggle {
  flex-shrink: 0;
}

.ld-intl-air-unit-toggle .ld-view-btn {
  min-width: 36px;
  padding: 3px 6px;
  font-size: 11px;
}

.ld-intl-air-notes-row th {
  vertical-align: top;
  padding-top: 8px;
}

.ld-intl-air-notes {
  background: #fef9c3;
  min-height: 44px;
}

.ld-intl-air-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.ld-intl-air-msg {
  margin-right: auto;
  font-size: 12px;
  font-weight: 600;
}

.ld-intl-air-msg-ok {
  color: #15803d;
}

.ld-intl-air-msg-err {
  color: #dc2626;
}

@media (max-width: 980px) {
  .ld-intl-air-grid {
    grid-template-columns: 1fr;
  }
}

.ld-reportable-group-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  color: #1e3a5f;
}

.ld-re-field-pick {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.ld-re-field-pick select {
  font: inherit;
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.ld-re-pending-wrap {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.ld-re-pending-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: #1e3a5f;
}

.ld-re-pending-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.ld-re-pending-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #334155;
}

.ld-re-pending-remove {
  flex-shrink: 0;
  appearance: none;
  border: none;
  background: transparent;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.ld-re-actions-primary {
  margin-bottom: 8px;
}

.ld-re-cross-section {
  margin: 12px 0 10px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.ld-re-cross-section-text {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e3a5f;
}

.ld-re-cross-section-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ld-re-cross-section-yn-label {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  min-width: 2.5ch;
}

.ld-re-cross-btn {
  min-width: 44px;
  padding: 4px 14px;
  font-weight: 800;
}

.ld-reportable-subtitle {
  margin: 0 0 8px;
  font-size: 13px;
}

.ld-reportable-field-label {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: #1e3a5f;
}

.ld-reportable-change-hint {
  margin: 0 0 10px;
  font-size: 12px;
}

.ld-reportable-amounts,
.ld-reportable-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.ld-reportable-amounts label,
.ld-reportable-values label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.ld-reportable-amounts input,
.ld-reportable-values input {
  font: inherit;
  padding: 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.ld-re-readonly {
  background: #f8fafc;
}

.ld-re-reasons {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.ld-re-reasons legend {
  font-size: 12px;
  font-weight: 700;
  padding: 0 4px;
}

.ld-re-reason-checks {
  display: grid;
  gap: 6px;
  max-height: 140px;
  overflow-y: auto;
}

.ld-re-reason-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}

.ld-re-flags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.ld-re-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.ld-re-sf-link {
  background: none;
  border: none;
  color: #b91c1c;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.ld-re-queue {
  margin: 0 0 10px;
  font-size: 12px;
}

.ld-re-charges-breakdown {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.ld-re-charges-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
}

.ld-re-charges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .ld-re-charges-grid {
    grid-template-columns: 1fr;
  }
}

.ld-re-charges-side-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.ld-re-charges-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ld-re-charges-table th,
.ld-re-charges-table td {
  padding: 4px 6px;
  border-bottom: 1px solid #e2e8f0;
}

.ld-re-charges-table th.num,
.ld-re-charges-table td.num {
  text-align: right;
}

.ld-re-charges-table input {
  width: 100%;
  max-width: 88px;
  text-align: right;
  font-size: 12px;
}

.ld-re-chg-quoted {
  color: #64748b;
}

.ld-re-charges-total-row td {
  font-weight: 700;
}

.ld-shipment-accessorials {
  margin: 8px 0 0;
  padding: 0;
  max-width: 100%;
}

.ld-shipment-accessorials-open {
  display: inline-block;
  margin: 0;
}

.ld-shipment-accessorials-names {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.35;
  min-height: 1.35em;
}

.ld-shipment-accessorials-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ld-shipment-accessorials-empty {
  margin: 4px 0 0;
  font-size: 11px;
}

.ld-acc-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ld-acc-modal[hidden] {
  display: none !important;
}

.ld-acc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.ld-acc-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 96vw);
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  border: 1px solid #cbd5e1;
}

.ld-acc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.ld-acc-modal-head h3 {
  margin: 0;
  font-size: 16px;
}

.ld-acc-modal-close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.ld-acc-modal-hint {
  margin: 0;
  padding: 8px 14px 0;
  font-size: 12px;
}

.ld-acc-modal-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px 14px 0;
}

.ld-acc-modal-filters label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.ld-acc-modal-filters select,
.ld-acc-modal-filters input {
  width: 100%;
  font: inherit;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.ld-acc-modal-count {
  margin: 8px 14px 0;
  font-size: 11px;
}

.ld-acc-modal-list-wrap {
  margin: 8px 14px 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 220px;
  max-height: 42vh;
}

.ld-acc-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ld-acc-modal-item {
  border-bottom: 1px solid #e2e8f0;
}

.ld-acc-modal-item:last-child {
  border-bottom: none;
}

.ld-acc-modal-item-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
}

.ld-acc-modal-item-label:hover {
  background: #f8fafc;
}

.ld-acc-modal-item-text {
  flex: 1 1 auto;
  line-height: 1.35;
}

.ld-acc-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
}

body.ld-acc-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .ld-acc-modal-filters {
    grid-template-columns: 1fr;
  }
}

.ld-re-accessorial-pick {
  margin: 10px 0;
  padding: 8px 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.ld-re-accessorial-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ld-re-accessorial-hint {
  font-size: 11px;
}

.ld-charges-reportable-zone .ld-charges-snapshot-table tbody tr,
.ld-charges-reportable-zone .ltl-charge-table tbody tr {
  cursor: pointer;
}

.ld-charges-reportable-zone .ltl-charge-table tbody tr:hover,
.ld-charges-reportable-zone .ld-charges-snapshot-table tbody tr:hover {
  background: rgba(0, 86, 179, 0.06);
}

.ld-re-accessorial-pick-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.ld-re-open-accessorial-btn {
  margin-bottom: 4px;
}

.ld-re-accessorial-pick-summary {
  margin: 0.35rem 0 0;
  font-size: 12px;
}

/* Active Loads Dashboard — default landing (:8547 /loads) */
.ld-dash-page .tms-hub-back {
  display: none;
}

.ld-dash-panel {
  max-width: none;
  margin: 0;
}

.ld-dash-title {
  text-align: center;
  margin: 0 0 18px;
}

.ld-dash-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 16px 24px;
  margin: 0 auto 16px;
  max-width: 720px;
}

.ld-dash-stype-form {
  display: flex;
  align-items: stretch;
  min-width: min(100%, 260px);
}

.ld-stype-filter {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 10px;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #94a3b8;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  font-size: 13px;
  font-weight: 700;
  color: #1e3a5f;
}

.ld-stype-filter span {
  white-space: nowrap;
}

.ld-stype-filter select {
  width: 100%;
  min-width: 9rem;
  font: inherit;
  font-weight: 600;
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}

.ld-status-filter-row .ld-stype-filter {
  flex-shrink: 0;
  min-width: 220px;
  border-width: 1px;
  padding: 6px 10px;
}

.ld-dash-card {
  border: 2px solid #94a3b8;
  border-radius: 10px;
  background: var(--ld-dash-bg, #f8fafc);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.ld-dash-card--all {
  background: #ffffff;
}

.ld-dash-card--summary {
  width: min(100%, 280px);
  margin: 0;
}

.ld-dash-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 14px;
  box-sizing: border-box;
}

.ld-dash-card-body--center {
  align-items: center;
  text-align: center;
}

.ld-dash-card-count {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}

.ld-dash-card-label {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.ld-dash-card-action {
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
}

.ld-dash-card-action:hover {
  text-decoration: underline;
}

.ld-dash-card-action--all {
  color: #15803d;
  font-weight: 800;
}

.ld-dash-hint {
  margin: 0 auto 18px;
  max-width: 920px;
  text-align: center;
}

.ld-dash-alert {
  margin: 0 auto 14px;
  max-width: 920px;
  padding: 8px 12px;
  font-size: 12px;
  text-align: center;
}

.ld-dash-status-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
  align-items: stretch;
}

.ld-dash-card--status {
  height: 360px;
  min-height: 360px;
  max-height: 360px;
  overflow: hidden;
}

.ld-dash-card--status .ld-dash-card-body {
  flex-shrink: 0;
  padding-bottom: 12px;
}

.ld-dash-subs {
  list-style: none;
  margin: 0;
  padding: 8px 10px 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.42);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.ld-dash-sub-row {
  margin: 0 0 4px;
}

.ld-dash-sub-row a {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  line-height: 1.35;
}

.ld-dash-sub-row a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.ld-dash-sub-row--zero a {
  color: #64748b;
}

.ld-dash-sub-name {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.ld-dash-sub-count {
  flex-shrink: 0;
  font-weight: 800;
}

.ld-dash-footer {
  margin: 0;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 1400px) {
  .ld-dash-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ld-dash-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ld-dash-card--status {
    height: 340px;
    min-height: 340px;
    max-height: 340px;
  }
}

@media (max-width: 560px) {
  .ld-dash-status-grid {
    grid-template-columns: 1fr;
  }
}

/* Quick Quote — condensed LTL quote form */
.ld-quick-quote-page .tms-hub-back {
  display: none;
}

.ld-qq-panel {
  max-width: 920px;
  margin: 0 auto;
}

.ld-qq-title {
  text-align: center;
  margin-bottom: 8px;
}

.ld-qq-lead {
  text-align: center;
  margin-bottom: 16px;
}

.ld-qq-request-band {
  margin-bottom: 14px;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.ld-qq-section-title {
  margin: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #1e3a5f;
  padding: 8px 10px;
  background: #dbeafe;
  border-bottom: 1px solid #93c5fd;
}

.ld-qq-zip-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px 14px;
}

.ld-qq-zip-row label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #1e3a5f;
}

.ld-qq-zip-row input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font: inherit;
}

.ld-qq-commodity {
  margin-bottom: 12px;
}

.ld-qq-commodity-head {
  grid-template-columns: 1fr;
  justify-items: center;
}

.ld-qq-commodity-grid {
  min-width: 520px;
}

.ld-qq-metrics {
  margin-top: 0;
}

.ld-qq-accessorial-block {
  margin: 12px 0 14px;
}

.ld-qq-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #dc2626;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border-radius: 6px;
}

.ld-qq-customer {
  display: grid;
  gap: 4px;
  max-width: 360px;
  margin: 0 auto 16px;
  font-size: 12px;
  font-weight: 700;
}

.ld-qq-customer select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font: inherit;
}

.ld-qq-actions {
  text-align: center;
}

.ld-qq-submit {
  min-width: 180px;
  background: #15803d;
  border-color: #15803d;
  font-size: 15px;
  font-weight: 800;
  padding: 10px 24px;
}

.ld-qq-submit:hover {
  background: #166534;
  border-color: #166534;
}

@media (max-width: 640px) {
  .ld-qq-zip-row {
    grid-template-columns: 1fr;
  }
}

/* Copy Load modal */
body.ld-copy-load-open {
  overflow: auto;
}

.ld-copy-load-modal.acct-modal {
  background: transparent;
  pointer-events: none;
  align-items: flex-start;
  justify-content: flex-start;
}

.ld-copy-load-modal .ld-copy-load-panel {
  pointer-events: auto;
  position: fixed;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 9001;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.28);
  border: 1px solid #64748b;
  max-width: none;
  width: min(920px, 96vw);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  border-radius: 10px;
}

.ld-copy-load-modal .ld-copy-load-panel.is-dragged {
  transform: none;
}

.ld-copy-load-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #cbd5e1;
  background: linear-gradient(180deg, #5b9bd5 0%, #2d5a87 100%);
  color: #fff;
  cursor: grab;
  user-select: none;
  touch-action: none;
  flex-shrink: 0;
}

.ld-copy-load-head.ld-copy-load-dragging {
  cursor: grabbing;
}

.ld-copy-load-head-text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.ld-copy-load-drag-grip {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1;
  letter-spacing: -2px;
}

.ld-copy-load-drag-hint {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.ld-copy-load-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.ld-copy-load-close {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(15, 23, 42, 0.15);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.ld-copy-load-form {
  padding: 16px 18px 18px;
  overflow: auto;
}

.ld-copy-load-source {
  margin: 0 0 14px;
  font-size: 13px;
}

.ld-copy-load-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.ld-copy-load-group {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 14px 16px 16px;
  margin: 0;
  background: #fff;
  min-width: 0;
}

.ld-copy-load-group-title {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 0 12px;
  padding: 0 0 8px;
  border-bottom: 2px solid #93c5fd;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5b9bd5;
}

.ld-copy-load-group-hint {
  margin: 0 0 10px;
  font-size: 11px;
  text-align: left;
}

.ld-copy-load-option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.ld-copy-load-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #0f172a;
  cursor: pointer;
}

.ld-copy-load-option input[type="checkbox"] {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: #0d9488;
}

.ld-copy-load-exclude-hint {
  margin: 10px 0 0;
  font-size: 11px;
  text-align: left;
  line-height: 1.35;
}

.ld-copy-load-msg {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #166534;
  font-size: 13px;
}

.ld-copy-load-msg--err {
  background: #fef2f2;
  color: #b91c1c;
}

.ld-copy-load-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.ld-copy-load-grid--portal {
  grid-template-columns: 1fr;
}

.ld-copy-load-portal-hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

body.ld-portal-embed .tms-top-nav-row {
  display: none;
}

body.ld-portal-embed .ld-header-shortcuts,
body.ld-portal-embed .ld-quick-quote-link,
body.ld-portal-embed .ld-change-carrier-link,
body.ld-portal-embed .ld-dispatch-detail-btn,
body.ld-portal-embed .ld-add-new-wrap,
body.ld-portal-embed .ld-delete-btn,
body.ld-portal-embed .ld-view-btn[data-ld-view="list"],
body.ld-portal-embed .ld-view-btn[data-ld-view="dispatch"],
body.ld-portal-embed .ld-reportable-edit-link,
body.ld-portal-embed .ltl-carrier-col,
body.ld-portal-embed .ld-tbt-col,
body.ld-portal-embed .ld-charges-profit-row,
body.ld-portal-embed .ld-charges-snapshot-table [data-carrier],
body.ld-portal-embed .ld-charges-snapshot-table th:nth-child(3),
body.ld-portal-embed .ltl-snap-cost,
body.ld-portal-embed .ltl-snapshot-table th[data-sort="cost"],
body.ld-portal-embed .ltl-snap-source,
body.ld-portal-embed #ltl-carrier-tariff,
body.ld-portal-embed label:has(#ltl-carrier-tariff),
body.ld-portal-embed .ltl-rate-errors,
body.ld-portal-embed #ld-rates-charges-carrier-line,
body.ld-portal-embed .ltl-customer-col [data-charge="margin-pct"],
body.ld-portal-embed .ltl-customer-col [data-charge="margin-dollars"],
body.ld-portal-embed .ltl-manual-override,
body.ld-portal-embed .ld-shortcut[data-ld-shortcut="manual-rate-override"],
body.ld-portal-embed .ld-shortcut[data-ld-shortcut="copy-load"],
body.ld-portal-embed .ld-shortcut[data-ld-shortcut="dispute-carrier"],
body.ld-portal-embed .ld-shortcut[data-ld-shortcut="find-carriers"],
body.ld-portal-embed .ld-shortcut[data-ld-shortcut="macropoint"],
body.ld-portal-embed .ld-shortcut[data-ld-shortcut="service-failure"],
body.ld-portal-embed .ld-shortcut[data-ld-shortcut="truckload-tracking"],
body.ld-portal-embed .ld-shortcut[data-ld-shortcut="accounting"],
body.ld-portal-embed .ld-tab-panel[data-panel="tl"],
body.ld-portal-embed .ld-tab-panel[data-panel="history"],
body.ld-portal-embed .ld-tab-panel[data-panel="search_all"],
body.ld-portal-embed .ld-tab-panel[data-panel="tracking"],
body.ld-portal-embed .ld-tab-panel[data-panel="macropoint"],
body.ld-portal-embed .ld-tab-panel[data-panel="service_failure"],
body.ld-portal-embed .ld-tab-panel[data-panel="accounting"] {
  display: none !important;
}

body.ld-portal-embed .page {
  max-width: none;
  padding: 8px 12px 16px;
}

body.ld-portal-embed .ld-rates-charges-grid {
  grid-template-columns: minmax(0, 1fr);
}

body.ld-portal-embed .ld-portal-customer-readonly,
body.ld-portal-embed .ld-portal-status-readonly {
  display: flex;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-wrap: wrap;
}

body.ld-portal-embed .ld-portal-view-only {
  font-size: 0.85rem;
}

body.ld-portal-embed .ld-shortcuts-portal-row {
  margin-left: auto;
}
