body {
  background: linear-gradient(135deg, #f3f6ff 0%, #ffffff 100%);
  min-height: 100vh;
}

.navbar {
  background: rgba(27, 38, 79, 0.95);
  backdrop-filter: blur(8px);
}

.navbar .nav-link {
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: 999px;
  padding-inline: 1rem;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

.navbar .nav-link.disabled {
  opacity: 0.85;
  color: #f8f9fa !important;
}

.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 0.75rem 1.25rem rgba(15, 23, 42, 0.08);
}

.table thead {
  background-color: #f6f8ff;
}

.btn {
  border-radius: 999px !important;
}

/* 表格操作列按钮不换行，避免文字竖排变形 */
.table .btn {
  white-space: nowrap;
}

.order-actions {
  min-width: 270px;
}

.badge-soft {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background-color: rgba(57, 103, 237, 0.12);
  color: #395ced;
}

.table td,
.table th {
  vertical-align: middle;
}

.order-badge {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.order-badge-inbound {
  background: #1e9d55;
}

.order-badge-outbound {
  background: #1f46d8;
}

.order-badge-return_from_customer {
  background: #d97706;
}

.order-badge-return_to_company {
  background: #8f3f97;
}

section.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

section.page-header .breadcrumb {
  margin: 0;
}

.table-hover tbody tr:hover {
  background-color: rgba(57, 103, 237, 0.06);
}

/* 搜索联想下拉框 */
.autocomplete {
  position: relative;
}

.autocomplete-list {
  position: fixed;
  z-index: 1060;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.15);
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
}

.autocomplete-item {
  padding: 0.45rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background-color: rgba(57, 103, 237, 0.12);
}

.autocomplete-empty {
  padding: 0.45rem 0.75rem;
  color: #6c757d;
  font-size: 0.85rem;
}
