.navbar-vertical.navbar-dark {
  background: #1e3a5f;
}
/* 当前菜单：白底深蓝字，选中后仍能看清 */
.navbar-vertical.navbar-dark .navbar-nav .nav-link {
  color: #eef3f8 !important;
}
.navbar-vertical.navbar-dark .navbar-nav .nav-link .nav-link-icon,
.navbar-vertical.navbar-dark .navbar-nav .nav-link i {
  color: #d5e3f3 !important;
}
.navbar-vertical.navbar-dark .navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}
.navbar-vertical.navbar-dark .navbar-nav .nav-link.active,
.navbar-vertical.navbar-dark .navbar-nav .nav-item.active > .nav-link,
.navbar-vertical.navbar-dark .navbar-nav .nav-link[aria-current="page"] {
  background: #ffffff !important;
  color: #14324f !important;
  font-weight: 700;
}
.navbar-vertical.navbar-dark .navbar-nav .nav-link.active .nav-link-icon,
.navbar-vertical.navbar-dark .navbar-nav .nav-link.active i,
.navbar-vertical.navbar-dark .navbar-nav .nav-item.active > .nav-link .nav-link-icon,
.navbar-vertical.navbar-dark .navbar-nav .nav-item.active > .nav-link i {
  color: #14324f !important;
}
.biz-line-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}
.biz-line-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #d7e0ea;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.biz-line-card:hover {
  border-color: #1e3a5f;
  background: #f7fafc;
}
.biz-line-card input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.biz-line-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.biz-line-title {
  font-weight: 700;
  color: #14324f;
}
.biz-line-hint {
  font-size: 12px;
  color: #5b6573;
  line-height: 1.45;
}
.navbar-brand h3,
.navbar-brand-autodark h3 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: 0.02em;
}
.navbar-brand img,
.navbar-brand img.brand-logo {
  width: 100%;
  max-width: 176px;
  height: auto;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
}
.navbar-brand .brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 2px 0 6px;
}
.navbar-brand .brand-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: #fff;
}
.page-header .page-title {
  font-size: 1.25rem;
}
.list-edit-hint {
  font-size: 12px;
  color: #6c7a91;
  margin: 0 0 10px;
}
.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
}
.status-pill.is-danger { background: #fce8e8; color: #b42318; }
.status-pill.is-warn { background: #fff4e5; color: #b54708; }
.status-pill.is-ok { background: #e8f8ee; color: #0f7b3a; }
.status-pill.is-wait { background: #fff8db; color: #9a6700; }
.status-pill.is-info { background: #e8f1ff; color: #1d4ed8; }
.status-pill.is-mute { background: #eef1f4; color: #5b6573; }
.device-chip-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: 340px;
  white-space: normal;
  line-height: 1.35;
}
.device-chip {
  display: inline-block;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 6px;
  background: #eef4ff;
  color: #1d4ed8;
  text-decoration: none;
  font-size: 12px;
  word-break: break-word;
}
.device-chip:hover {
  background: #dbe7ff;
  color: #1e40af;
  text-decoration: none;
}
.device-chip-more,
.device-chip-count {
  font-size: 12px;
  color: #64748b;
}
.device-list-btn {
  white-space: nowrap;
}
.col-layout-ready td[data-col-id="device_list"] {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  vertical-align: middle;
}
.kanban-col-待派工 .card-header { background: #fff8db; }
.kanban-col-已派工 .card-header { background: #e8f1ff; }
.kanban-col-已接单 .card-header { background: #e4f4ff; }
.kanban-col-维修中 .card-header { background: #fff4e5; }
.kanban-col-待签字 .card-header { background: #fff4e5; }
.kanban-col-已完成 .card-header { background: #e8f8ee; }
.file-preview-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  background: #fff;
  max-width: 280px;
}
.file-preview-card img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
}
.file-preview-box {
  max-width: 720px;
}
.file-preview-img {
  display: block;
  width: 100%;
  max-width: 560px;
  max-height: 420px;
  object-fit: contain;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  background: #f8fafc;
}
.file-preview-pdf {
  display: block;
  width: 100%;
  max-width: 720px;
  height: 520px;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  background: #fff;
}
.file-preview-video {
  display: block;
  width: 100%;
  max-width: 480px;
  max-height: 360px;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  background: #0f172a;
}
.dispatch-attach-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}
.dispatch-attach-grid .file-preview-card img {
  width: 96px;
  height: 72px;
}
.dispatch-video {
  max-width: 320px;
}
.file-preview-open {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
}
.file-preview-zoom:hover .file-preview-img {
  box-shadow: 0 0 0 2px #1e3a5f33;
}
.timeline {
  border-left: 2px solid #dbe4f0;
  margin: 8px 0 0 8px;
  padding-left: 16px;
}
.timeline-item {
  position: relative;
  margin-bottom: 14px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
}
.timeline-item.is-order::before { background: #0f7b3a; }
.field-filled { background: #f3faf4 !important; }
.field-empty { background: #fff8eb !important; }

/* —— 登录页：品牌入口 —— */
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  background: #0f2744;
}
.login-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(56, 120, 190, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(20, 90, 140, 0.28), transparent 50%),
    linear-gradient(165deg, #1e3a5f 0%, #12293f 48%, #0b1c2e 100%);
}
.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 40% 45%, #000 20%, transparent 75%);
  pointer-events: none;
}
.login-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 440px;
}
.login-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
.login-brand-mark img {
  display: block;
  width: auto;
  max-width: 240px;
  height: auto;
  max-height: 72px;
}
.login-brand-en {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(210, 228, 245, 0.85);
  font-weight: 600;
}
.login-brand-title {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 2.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.04em;
}
.login-brand-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(210, 228, 245, 0.78);
  max-width: 28em;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background:
    linear-gradient(180deg, #f5f8fc 0%, #e9eef5 100%);
}
.login-form {
  width: min(100%, 380px);
}
.login-form-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e3a5f;
}
.login-form-hint {
  margin: 0 0 24px;
  color: #6c7a91;
  font-size: 14px;
}
.login-form .form-control-lg {
  min-height: 46px;
}
.login-form .btn-primary {
  background: #1e3a5f;
  border-color: #1e3a5f;
}
.login-form .btn-primary:hover {
  background: #274b78;
  border-color: #274b78;
}

@media (max-width: 880px) {
  .login-shell {
    grid-template-columns: 1fr;
  }
  .login-brand {
    min-height: auto;
    padding: 36px 24px 28px;
  }
  .login-brand-inner {
    text-align: center;
  }
  .login-brand-mark {
    margin-left: auto;
    margin-right: auto;
  }
  .login-brand-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .login-panel {
    padding: 28px 20px 40px;
  }
}

/* 兼容旧类名（若有缓存页） */
.login-page {
  min-height: 100vh;
  padding: 16px;
  box-sizing: border-box;
  background: linear-gradient(180deg, #f4f7fb 0%, #e8eef6 100%);
}
.login-card {
  width: min(100%, 420px);
}
.login-mark {
  width: auto;
  max-width: 220px;
  height: auto;
  margin: 0 auto 16px;
  display: block;
}
.navbar-user {
  color: #d7e4f5;
  font-size: 13px;
  padding: 8px 12px 0;
}
.navbar-side-actions .btn {
  width: calc(100% - 16px);
  margin: 6px 8px;
}
.list-empty {
  padding: 28px 16px;
  text-align: center;
  color: #667085;
}
.list-empty a { font-weight: 600; }
ul.perm-check-list,
ul#role_type,
ul#menu_perms {
  list-style: none;
  padding: 10px 14px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 6px 14px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fafc;
  max-width: 760px;
}
ul.perm-check-list li,
ul#role_type li,
ul#menu_perms li {
  margin: 0;
  display: flex;
  align-items: center;
}
ul.perm-check-list label,
ul#role_type label,
ul#menu_perms label {
  margin: 0;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
ul.perm-check-list input[type="checkbox"],
ul#role_type input[type="checkbox"],
ul#menu_perms input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}
.settings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: start;
}
.settings-nav { position: sticky; top: 12px; }
.settings-nav-title { font-weight: 700; margin-bottom: 10px; }
.settings-nav-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}
.settings-nav-link:hover { background: #eef4ff; color: inherit; }
.settings-h { font-size: 18px; margin: 0 0 6px; }
.settings-tool { display: block; text-decoration: none; color: inherit; height: 100%; }
.settings-tool:hover { border-color: #2563eb; }
.option-flag { font-size: 12px; white-space: nowrap; }
@media (max-width: 992px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; }
}
.col-layout-bar {
  display: flex;
  justify-content: flex-end;
  position: relative;
  margin: 0 0 8px;
  z-index: 5;
}
.col-layout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  color: #334155;
}
.col-layout-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  width: 300px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}
.col-layout-panel.is-open { display: block; }
.col-layout-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 10px;
  background: #f7f9fc;
  border-bottom: 1px solid #eef2f7;
}
.col-layout-head strong {
  font-size: 14px;
  color: #1e3a5f;
}
.col-layout-head span {
  font-size: 12px;
  color: #6c7a91;
}
.col-layout-list {
  max-height: 340px;
  overflow: auto;
  padding: 8px;
  user-select: none;
}
.col-layout-list.is-sorting { cursor: grabbing; }
.col-layout-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e6eaf0;
  border-radius: 8px;
  font-size: 13px;
  color: #1f2937;
}
.col-layout-item:last-child { margin-bottom: 0; }
.col-layout-item.is-off { opacity: 0.55; }
.col-layout-item.is-dragging {
  opacity: 0.7;
  background: #eef4ff;
  border-color: #93c5fd;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.16);
}
.col-layout-grip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  color: #94a3b8;
  cursor: grab;
  flex-shrink: 0;
}
.col-layout-list.is-sorting .col-layout-grip { cursor: grabbing; }
.col-layout-name {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.col-layout-switch {
  position: relative;
  width: 36px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}
.col-layout-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.col-layout-switch span {
  position: absolute;
  inset: 0;
  background: #d5dde8;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.col-layout-switch span:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
  transition: transform 0.15s ease;
}
.col-layout-switch input:checked + span { background: #2563eb; }
.col-layout-switch input:checked + span:before { transform: translateX(16px); }
.col-layout-actions {
  padding: 6px 10px 8px;
  text-align: right;
  background: #f7f9fc;
  border-top: 1px solid #eef2f7;
}
.col-layout-hide { display: none !important; }
.col-layout-table thead th {
  position: relative;
  z-index: 4;
  text-align: center !important;
  vertical-align: middle;
  padding-right: 12px !important;
  overflow: visible !important;
  background: #f8fafc;
  box-shadow: 0 1px 0 #e6eaf0;
}
.col-layout-table thead th a {
  display: inline-block;
  text-align: center;
  pointer-events: auto;
}
.col-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 100%;
  cursor: col-resize;
  z-index: 5;
  touch-action: none;
  background: transparent;
}
.col-resize-handle:before {
  content: "";
  position: absolute;
  top: 18%;
  right: 4px;
  width: 3px;
  height: 64%;
  border-radius: 2px;
  background: #d0d7e2;
}
.col-resize-handle:hover,
.col-resize-handle.is-active {
  background: rgba(37, 99, 235, 0.08);
}
.col-resize-handle:hover:before,
.col-resize-handle.is-active:before {
  background: #2563eb;
  width: 4px;
  right: 3px;
}
.col-layout-table thead th.is-last-visible-col .col-resize-handle {
  width: 16px;
}
.col-layout-ready {
  table-layout: fixed !important;
  width: 100% !important;
  min-width: var(--col-layout-width) !important;
}
.col-layout-ready th.is-last-visible-col,
.col-layout-ready tbody tr:not(:has([colspan])) > td:last-child {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  vertical-align: middle;
}
.col-layout-ready .w-1 {
  min-width: 0 !important;
  max-width: none !important;
}
.col-layout-ready th.col-row-actions,
.col-layout-ready td.col-row-actions,
th.col-row-actions,
td.col-row-actions {
  width: 7.5rem !important;
  min-width: 7.5rem !important;
  max-width: none !important;
  overflow: visible !important;
  white-space: nowrap !important;
}
.col-layout-ready th,
.col-layout-ready td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.is-col-resizing,
body.is-col-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

html, body {
  max-width: 100%;
}
.page-wrapper,
.page-body,
.page-body .container-fluid,
.container-xl,
.card,
.table-responsive,
.list-page-main {
  min-width: 0;
  max-width: 100%;
}
.page-wrapper {
  overflow-x: clip;
}
.page-body img,
.page-body video,
.page-body canvas {
  max-width: 100%;
  height: auto;
}
.table-responsive {
  /* 纵向跟整页滚；横向溢出时再左右滑（不限高，避免套一层难用的内部纵滚） */
  overflow-x: auto;
  overflow-y: visible;
  max-height: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* 原生 sticky 在 overflow-x 容器里不可靠；改由 sticky-table-head.js 吸顶 */
.page-body table.table > thead > tr > th,
.page-body table.table > thead > tr > td {
  background-color: #f8fafc;
  background-clip: padding-box;
}
.page-body table.table.table-bordered > thead > tr > th,
.page-body table.table.table-bordered > thead > tr > td,
.page-body table.table > thead.table-light > tr > th,
.page-body table.table > thead.table-light > tr > td {
  background-color: #f1f5f9;
}
.js-sticky-thead-bar {
  display: none;
}
.js-sticky-thead-bar table {
  background: #f8fafc;
}
.js-sticky-thead-bar th {
  background: #f8fafc !important;
  box-shadow: 0 1px 0 #e6eaf0;
}
@media print {
  .table-responsive {
    max-height: none !important;
    overflow: visible !important;
  }
  .js-sticky-thead-bar {
    display: none !important;
  }
}
.list-page-wrap {
  align-items: flex-start;
  gap: 16px;
}
.list-page-main {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  margin-right: 0 !important;
}
.list-filter-col {
  display: none;
}
.card-header,
.card-body .d-flex.justify-content-between {
  flex-wrap: wrap;
  gap: 8px;
}
.kanban-board > .col { min-width: 0; }
.container-xl > .d-flex.justify-content-between {
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1199.98px) {
  .kanban-board > .col {
    flex: 0 0 50%;
    max-width: 50%;
    margin-bottom: 12px;
  }
}

@media (max-width: 991.98px) {
  .navbar-vertical.navbar-expand-lg {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    max-height: none;
    overflow: visible;
  }
  .navbar-vertical .container-fluid {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 12px;
  }
  .navbar-vertical .navbar-brand {
    flex: 1 1 auto;
    margin: 0;
    padding: 0;
  }
  .navbar-vertical .brand-block {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 0;
    width: auto;
  }
  .navbar-vertical .brand-logo {
    width: 36px;
    max-width: 36px;
    padding: 3px;
  }
  .navbar-vertical .brand-name {
    font-size: 14px;
    text-align: left;
  }
  .navbar-vertical .navbar-toggler {
    display: inline-flex;
    border-color: rgba(255, 255, 255, 0.35);
  }
  .navbar-vertical .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
  }
  .navbar-vertical .navbar-collapse.show,
  .navbar-vertical .navbar-collapse.collapsing {
    padding-top: 8px;
  }
  .page-wrapper {
    margin-left: 0 !important;
  }
  .list-page-wrap {
    flex-wrap: wrap;
  }
  .list-page-main {
    flex: 1 1 100%;
    margin-right: 0 !important;
  }
  .list-filter-col {
    width: 100%;
  }
  .col-layout-panel {
    width: min(300px, calc(100vw - 24px));
  }
  .page-header .page-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 767.98px) {
  .kanban-board > .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .container-xl,
  .page-body .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
  }
  .option-row {
    flex-wrap: wrap;
  }
  .option-row .option-flag,
  .option-row .option-del {
    flex: 1 1 100%;
  }
}

.sales-item-table {
  max-width: 920px;
}
.sales-item-table .si-sns {
  min-height: 58px;
  font-size: 0.85rem;
}
.sales-item-summary {
  line-height: 1.45;
}
.sales-item-detail {
  max-width: 720px;
}

/* —— 工单列表：短行、标签、折叠筛选 —— */
.so-page-head .page-title {
  font-size: 1.15rem;
  margin-bottom: 0;
}
.so-list-page {
  margin-top: -4px;
}
.so-view-tabs {
  gap: 6px;
}
.so-view-tabs .nav-link {
  padding: 0.28rem 0.85rem;
  font-size: 0.875rem;
  color: #4b5563;
  border: 1px solid #d7e0ea;
  background: #fff;
}
.so-view-tabs .nav-link.active {
  color: #fff;
  background: #1e3a5f;
  border-color: #1e3a5f;
}
.so-list-card {
  border-color: #e6eaf0;
  box-shadow: none;
}
.so-toolbar {
  padding: 0.65rem 0.85rem !important;
}
.so-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.so-search {
  min-width: 260px;
}
.so-table > :not(caption) > * > * {
  padding: 0.42rem 0.55rem;
}
.so-table thead th {
  font-size: 0.78rem;
  font-weight: 600;
  color: #5b6573;
  white-space: nowrap;
  background: #f8fafc;
  border-bottom-color: #e6eaf0;
}
.so-table tbody tr:hover {
  background: #f7fafc;
}
.so-ops {
  white-space: nowrap;
}
.so-ops-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 2px;
  color: #3b82f6;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0;
  vertical-align: middle;
  text-decoration: none;
  line-height: 1;
}
.so-ops-link:hover {
  color: #1d4ed8;
  background: #e8f1ff;
  text-decoration: none;
}
.so-ops-del {
  color: #9ca3af;
  cursor: pointer;
}
.so-ops-del:hover {
  color: #b42318;
  background: #fce8e8;
}
.so-ops-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
}
.so-ops-btn:hover,
.so-ops-btn:focus {
  color: #14324f;
  background: #eef3f8;
  border-color: #d7e0ea;
}
.so-no {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #14324f;
  white-space: nowrap;
  font-size: 0.875rem;
}
.so-main-cell {
  max-width: 16rem;
  min-width: 9rem;
}
.so-cell-primary {
  font-weight: 600;
  color: #14324f;
  font-size: 0.875rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.so-cell-secondary {
  margin-top: 2px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.so-time,
.so-worker {
  font-size: 0.8125rem;
  color: #4b5563;
  white-space: nowrap;
}
.so-actions {
  min-width: 9rem;
}
.so-action-form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0;
  vertical-align: middle;
}
.so-action-form .form-select {
  width: auto;
  min-width: 6.5rem;
  max-width: 8.5rem;
}
.so-empty {
  padding: 1.5rem 0.75rem !important;
  text-align: center;
}
.so-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 12px;
  padding: 10px 16px 12px;
  border-top: 1px solid #e3ebf3;
  background: #f7fafc;
}
.so-filter-select {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 132px;
  max-width: 220px;
  flex: 1 1 132px;
}
.so-filter-select-label {
  margin: 0;
  padding: 0 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: #5b6573;
}
.so-filter-select .form-select {
  min-height: 34px;
  font-size: 13px;
  color: #31455c;
  border-color: #d7e0ea;
  background-color: #fff;
}
.so-filter-select .form-select:focus {
  border-color: #1e3a5f;
  box-shadow: 0 0 0 0.15rem rgba(30, 58, 95, 0.15);
}
.so-filter-top-panel {
  display: none;
}
.so-filter-card {
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  box-shadow: none;
  background: #ffffff;
  position: sticky;
  top: 12px;
  overflow: hidden;
}
.so-filter-head {
  background: #f7fafc;
  border-bottom: 1px solid #e3ebf3;
  padding: 14px 16px !important;
}
.so-filter-card .card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #14324f;
  line-height: 1.5;
}
.so-filter-body {
  padding: 12px 12px 16px !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  overflow: visible;
  background: #ffffff;
}
.so-filter-block {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #eef2f6;
  border-radius: 0;
  padding: 0 0 14px;
  margin: 0 0 14px;
}
.so-filter-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.so-filter-title {
  display: block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.5;
  color: #14324f;
  margin: 0 0 8px;
  padding: 0 4px;
}
.so-filter-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  margin: 0;
}
.so-filter-item,
.so-filter-links > a {
  display: block !important;
  box-sizing: border-box;
  width: 100%;
  min-height: 36px;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 8px;
  border: 0 !important;
  text-decoration: none !important;
  color: #31455c !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: static !important;
  float: none !important;
  clear: both;
  background: transparent;
}
.so-filter-item.is-all {
  color: #5b6573 !important;
  font-weight: 500 !important;
  background: transparent;
}
.so-filter-item:hover,
.so-filter-links > a:hover {
  background: #f0f5fa !important;
  color: #14324f !important;
}
.so-filter-item.is-on,
.so-filter-links > a.is-on {
  background: #e8eef5 !important;
  color: #14324f !important;
  font-weight: 600 !important;
}
.so-filter-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  min-height: 36px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  background: #e8eef5;
  color: #14324f;
  font-weight: 600;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
.so-filter-active span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #14324f;
}
.so-filter-active a {
  flex: 0 0 auto;
  color: #6a7888 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  min-height: auto !important;
  padding: 0 2px !important;
  margin: 0 !important;
}
.so-filter-active a:hover {
  color: #14324f !important;
}
.so-filter-scroll {
  max-height: 240px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
}
.so-filter-scroll::-webkit-scrollbar {
  width: 6px;
}
.so-filter-scroll::-webkit-scrollbar-thumb {
  background: #c5d0dc;
  border-radius: 999px;
}
.so-filter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px;
}
#filter-sidebar {
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: #31455c !important;
}
#filter-sidebar .card-body {
  font-size: 14px !important;
  line-height: 1.55 !important;
}
#filter-sidebar a.d-block,
#filter-sidebar .d-block.text-decoration-none,
#filter-sidebar .text-truncate {
  display: block !important;
  min-height: 36px !important;
  margin: 0 0 2px !important;
  padding: 8px 10px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #31455c !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  float: none !important;
  position: static !important;
  background: transparent;
}
#filter-sidebar a.d-block:hover,
#filter-sidebar .d-block.text-decoration-none:hover {
  background: #f0f5fa !important;
  color: #14324f !important;
}
#filter-sidebar .fw-bold,
#filter-sidebar .fs-3 {
  display: block !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #14324f !important;
  margin: 0 0 8px !important;
  min-height: auto !important;
  padding: 0 4px !important;
  font-weight: 700 !important;
}
#filter-sidebar .card-title {
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #14324f !important;
}
@media (max-width: 991.98px) {
  .so-filter-card {
    position: static;
  }
}

/* —— 通用后台列表：字体 / 行高 / 品牌色 —— */
.admin-list-page,
.so-list-page {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #31455c;
}
.page-wrapper .page-body {
  background: #f4f7fa;
}
.admin-list-page .so-list-card {
  border: 1px solid #d7e0ea;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
  background: #fff;
}
.admin-list-page .so-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #eef2f6;
}
.admin-list-page .so-list-toolbar-left,
.admin-list-page .so-list-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-list-page .so-list-search {
  min-width: min(420px, 100%);
  max-width: 560px;
}
.admin-list-page .so-list-search .form-control,
.admin-list-page .so-list-toolbar .btn {
  font-size: 14px;
  line-height: 1.45;
}
.admin-list-page .so-list-alert-wrap:not(:has(.alert)) {
  display: none;
  padding: 0 !important;
  border: 0 !important;
}
.admin-list-page .card-table,
.admin-list-page .table {
  font-size: 14px;
  line-height: 1.5;
  color: #31455c;
}
.admin-list-page .card-table thead th,
.admin-list-page .table thead th {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #5b6573;
  background: #f7fafc;
  white-space: nowrap;
  border-bottom: 1px solid #e3ebf3;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}
.admin-list-page .card-table thead th a {
  color: #5b6573;
  text-decoration: none;
}
.admin-list-page .card-table thead th a:hover {
  color: #14324f;
}
.admin-list-page .card-table tbody tr:hover {
  background: #f7fafc;
}
.admin-list-page .card-table td,
.admin-list-page .table td {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  vertical-align: middle;
  color: #31455c;
  border-bottom-color: #eef2f6;
}
.admin-list-page .card-table td a {
  color: #1e3a5f;
  text-decoration: none;
}
.admin-list-page .card-table td a:hover {
  color: #14324f;
  text-decoration: underline;
}
.admin-list-page .col-row-actions a {
  color: #6a7888;
  text-decoration: none;
}
.admin-list-page .col-row-actions a:hover {
  color: #1e3a5f;
}
.admin-list-page .list-edit-hint {
  font-size: 12px;
  line-height: 1.5;
  color: #6a7888;
  background: #fbfcfe;
}
.admin-list-page .js-inline-cell {
  font-size: 14px;
  line-height: 1.5;
  color: #14324f;
}
.admin-list-page .page-body,
.admin-list-page .list-page-main .card-body {
  font-size: 14px;
  line-height: 1.55;
}
.admin-list-page .so-list-footer {
  background: #fff;
  border-top: 1px solid #eef2f6;
  font-size: 13px;
  line-height: 1.5;
  color: #5b6573;
}
.admin-list-page .so-list-footer .pagination .page-link {
  font-size: 13px;
  line-height: 1.4;
  color: #31455c;
  padding: 0.3rem 0.6rem;
}
.admin-list-page .so-list-footer .pagination .page-item.active .page-link {
  background: #1e3a5f;
  border-color: #1e3a5f;
  color: #fff;
}
.list-filter-col {
  width: 292px;
  flex-shrink: 0;
}
.page-header .page-title {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #14324f;
  font-weight: 700;
  line-height: 1.4;
}
.page-header .page-pretitle {
  color: #6a7888;
  line-height: 1.45;
}

/* 采购列表：关联合同按钮 */
.admin-list-page .so-link-btn {
  font-size: 13px;
  line-height: 1.4;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
}
.admin-list-page .so-link-btn-sub {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #6a7888;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
