#shipmentPendingTab.active {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.optional-label {
  margin-left: 4px;
  color: var(--muted, #8ea0ba);
  font-size: 11px;
  font-weight: 700;
}

.logistics-pending-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(138px, max-content));
  align-items: center;
  justify-content: start;
  gap: 12px;
  margin-top: 16px;
}

.logistics-pending-actions button {
  min-width: 138px;
  min-height: 44px;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1;
}

.logistics-draft-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(96, 165, 250, .22);
  border-radius: 16px;
  background: rgba(5, 13, 27, .42);
}

.logistics-draft-head,
.logistics-draft-row,
.logistics-bulk-bar,
.logistics-bulk-actions,
.logistics-row-actions {
  display: flex;
  align-items: center;
}

.logistics-draft-head,
.logistics-bulk-bar {
  justify-content: space-between;
  gap: 14px;
}

.logistics-draft-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.logistics-draft-empty {
  margin: 0;
  padding: 24px 12px;
  border: 1px dashed rgba(125, 149, 185, .25);
  border-radius: 12px;
  color: var(--text-soft, #a9bad1);
  text-align: center;
}

.logistics-draft-row {
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 9px 10px 9px 14px;
  border: 1px solid rgba(125, 149, 185, .18);
  border-radius: 12px;
  background: #0d192c;
}

.logistics-draft-identity {
  min-width: 0;
  color: #eef6ff;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.logistics-pending-tools {
  flex-wrap: nowrap;
}

.logistics-select-wrap {
  position: relative;
  min-width: 150px;
}

.logistics-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #a9bad1;
  border-bottom: 2px solid #a9bad1;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

#logisticsPendingStatusFilter {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line, rgba(125, 149, 185, .25));
  border-radius: 14px;
  appearance: none;
  -webkit-appearance: none;
  color: #eef6ff;
  background: #0d192c;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  outline: none;
}

#logisticsPendingStatusFilter:focus {
  border-color: rgba(37, 99, 235, .75);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .16);
}

#logisticsPendingStatusFilter option {
  color: #eef6ff;
  background: #132033;
}

.logistics-refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 118px;
  white-space: nowrap;
}

.logistics-refresh-btn span:first-child {
  font-size: 18px;
  line-height: 1;
}

.logistics-bulk-bar {
  min-height: 54px;
  margin-bottom: 14px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(125, 149, 185, .18);
  border-radius: 14px;
  background: rgba(5, 13, 27, .36);
  color: var(--text-soft, #a9bad1);
  font-size: 13px;
  font-weight: 800;
}

.logistics-bulk-actions,
.logistics-row-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.logistics-select-cell {
  width: 48px;
  min-width: 48px;
  text-align: center;
}

.logistics-select-cell input,
.logistics-mobile-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary, #2563eb);
  cursor: pointer;
}

.logistics-select-cell input:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.logistics-row-actions {
  min-width: 210px;
}

.logistics-row-actions .small-btn {
  min-width: 58px;
}

.logistics-pending-table th,
.logistics-pending-table td {
  white-space: nowrap;
}

.logistics-status {
  font-weight: 700;
}

.logistics-status-pending {
  color: #9a6700;
}

.logistics-status-completed {
  color: #197142;
}

.logistics-pending-mobile-card {
  cursor: default;
}

.logistics-mobile-select {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text-soft, #a9bad1);
  font-size: 12px;
  font-weight: 800;
}

.logistics-mobile-audit {
  margin-top: 8px;
  color: var(--muted, #667085);
  font-size: 12px;
}

.logistics-mobile-process-btn {
  width: 100%;
  margin-top: 12px;
}

.logistics-mobile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.logistics-edit-common-fields {
  margin-top: 14px;
}

.logistics-process-summary {
  margin: 0 0 16px;
  color: var(--text, #1f2937);
  font-weight: 700;
}

.logistics-queue-panel,
.logistics-manual-panel,
.logistics-save-panel {
  width: min(720px, calc(100vw - 32px));
}

#logisticsProcessCloseBtn.detail-close,
#logisticsEditCloseBtn.detail-close,
#logisticsPendingQueueCloseBtn.detail-close,
#logisticsPendingManualCloseBtn.detail-close,
#logisticsPendingSaveCloseBtn.detail-close {
  width: auto;
  min-width: 78px;
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

#logisticsProcessDialog .detail-head,
#logisticsEditDialog .detail-head,
#logisticsPendingQueueDialog .detail-head,
#logisticsPendingManualDialog .detail-head,
#logisticsPendingSaveDialog .detail-head {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logistics-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.logistics-check input {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .logistics-pending-form {
    grid-template-columns: 1fr;
  }

  .logistics-pending-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .logistics-pending-actions button {
    width: 100%;
  }

  .logistics-pending-tools,
  .logistics-bulk-bar,
  .logistics-draft-head {
    align-items: stretch;
    flex-direction: column;
  }

  .logistics-select-wrap,
  .logistics-refresh-btn {
    width: 100%;
  }

  .logistics-bulk-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .logistics-bulk-actions button {
    width: 100%;
  }

  #logisticsProcessDialog .detail-head,
  #logisticsEditDialog .detail-head,
  #logisticsPendingQueueDialog .detail-head,
  #logisticsPendingManualDialog .detail-head,
  #logisticsPendingSaveDialog .detail-head {
    flex-direction: row !important;
    align-items: center !important;
  }

  #logisticsProcessCloseBtn.detail-close,
  #logisticsEditCloseBtn.detail-close,
  #logisticsPendingQueueCloseBtn.detail-close,
  #logisticsPendingManualCloseBtn.detail-close,
  #logisticsPendingSaveCloseBtn.detail-close {
    min-width: 82px;
    min-height: 48px;
  }
}
