/* 全站基础视觉、表单、弹窗和通用数据表样式。 */
/* 原生下拉框和 LayUI 下拉框统一使用清晰的高对比配色。 */
select,
.layui-form select,
.layui-form-select .layui-select-title input {
  color: #243247 !important;
  background-color: #fff !important;
  border-color: #cbd5e1 !important;
  color-scheme: light;
}
select option {
  color: #243247 !important;
  background: #fff !important;
}
select option:checked,
select option:hover {
  color: #fff !important;
  background: #0f766e !important;
}
select:focus,
.layui-form select:focus,
.layui-form-select .layui-select-title input:focus {
  border-color: #14b8a6 !important;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.14);
  outline: 0;
}
.layui-form-select dl {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}
.layui-form-select dl dd {
  color: #243247;
  background: #fff;
}
.layui-form-select dl dd:hover,
.layui-form-select dl dd.layui-this {
  color: #fff;
  background: #0f766e;
}
.side-nav .nav-group {
  line-height: normal;
}
.side-nav .nav-group details {
  color: rgba(255, 255, 255, 0.8);
}
.side-nav .nav-group summary {
  box-sizing: border-box;
  height: 46px;
  padding: 0 20px;
  line-height: 46px;
  cursor: pointer;
  list-style: none;
}
.side-nav .nav-group summary::-webkit-details-marker {
  display: none;
}
.side-nav .nav-group summary::after {
  float: right;
  content: "⌄";
  font-size: 15px;
  transition: transform 0.15s ease;
}
.side-nav .nav-group details:not([open]) summary::after {
  transform: rotate(-90deg);
}
.side-nav .nav-group summary:hover,
.side-nav .nav-group details[open] summary {
  background: rgba(0, 0, 0, 0.12);
}
.side-nav .nav-submenu {
  padding: 4px 0 8px;
  background: rgba(0, 0, 0, 0.08);
}
.side-nav .nav-submenu a {
  display: block;
  height: 38px;
  padding-left: 46px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 38px;
}
.side-nav .nav-submenu a:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.12);
}
.side-nav a.is-active {
  color: #fff;
  background: linear-gradient(90deg, #0f9b8e, #14b8a6);
  box-shadow: inset 3px 0 0 #8df3e9;
  font-weight: 600;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page-head h2 {
  margin: 0;
}
.flash-stack {
  position: fixed;
  z-index: 12000;
  top: 20px;
  left: 50%;
  display: grid;
  gap: 10px;
  width: min(760px, calc(100vw - 32px));
  transform: translateX(-50%);
  pointer-events: none;
}
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  box-sizing: border-box;
  margin: 0;
  padding: 12px 12px 12px 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
  color: #fff;
  line-height: 1.5;
  pointer-events: auto;
  animation: flash-enter 0.22s ease-out;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.flash-error {
  border-color: #fca5a5;
  background: linear-gradient(100deg, #dc3c4a, #ef5e47);
}
.flash-success {
  border-color: #6ee7b7;
  background: linear-gradient(100deg, #078b78, #16a36b);
}
.flash-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 22px;
  line-height: 26px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.flash-close:hover {
  background: rgba(255, 255, 255, 0.28);
}
.flash.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
}
@keyframes flash-enter {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.action-card,
.order-card,
.form-card {
  background: #fff;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.exception-reason {
  display: inline-block;
  margin: 2px 5px 2px 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff1f2;
  color: #c5303e;
  font-size: 12px;
}
.analysis-sort {
  display: flex;
  align-items: center;
  gap: 6px;
}
.order-grid span {
  display: block;
  color: #86909c;
  font-size: 13px;
}
.order-card {
  margin-bottom: 16px;
}
.order-card h3,
.action-card h3 {
  margin-top: 0;
}
.order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.order-grid b {
  word-break: break-word;
}
.action-card {
  margin-bottom: 16px;
}
.action-card form label,
.form-card label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
}
.action-card form select,
.form-card select {
  width: 100%;
  height: 38px;
  border: 1px solid #e2e6ed;
  border-radius: 2px;
  padding: 0 10px;
  box-sizing: border-box;
}
.action-card button,
.form-card button {
  margin-top: 16px;
}
.remote-dialog {
  width: min(720px, 92vw);
  max-height: calc(100vh - 96px);
  padding: 0;
  overflow: visible;
  background: #fff;
  border: 0;
  border-radius: 12px;
}
.remote-dialog .dialog-head {
  min-height: 56px;
  padding: 0 20px;
  border-bottom: 1px solid #edf0f4;
}
.remote-dialog .dialog-head h2 {
  margin: 0;
  font-size: 18px;
}
.remote-dialog iframe {
  display: block;
  width: 100%;
  min-height: 260px;
  border: 0;
  border-radius: 0 0 12px 12px;
}
.modal-page {
  background: #fff;
}
.modal-page .page-wrap {
  padding: 0;
}
.modal-page .page-wrap > h2 {
  display: none;
}
.modal-page .form-card {
  max-width: none;
  padding: 18px 26px 22px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.modal-page .form-card label {
  margin: 9px 0 5px;
}
.modal-page .form-card .hint {
  margin: 4px 0;
  font-size: 12px;
}
.modal-page .form-card button {
  margin-top: 14px;
}
.modal-success {
  padding: 48px 20px;
  text-align: center;
}
.modal-success i {
  display: inline-block;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 36px;
  font-style: normal;
  line-height: 54px;
}
.modal-success p {
  color: #86909c;
}
.modal-page .form-card:not(.wide-form) {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px 16px;
  align-items: center;
}
.modal-page .form-card:not(.wide-form) label {
  margin: 0;
}
.modal-page .form-card:not(.wide-form) input,
.modal-page .form-card:not(.wide-form) select {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.modal-page .form-card:not(.wide-form) .hint {
  grid-column: 2;
  margin: -6px 0 0;
}
.modal-page .form-card:not(.wide-form) button {
  grid-column: 2;
  justify-self: start;
  margin: 4px 0 0;
}
.form-card {
  max-width: 650px;
}
.empty {
  text-align: center;
  color: #86909c;
}
.link-button {
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0 15px;
}
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
}
.login-card {
  width: 340px;
  padding: 36px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.login-card h1 {
  margin: 0;
}
.login-card p {
  color: #86909c;
  margin: 10px 0 24px;
}
.login-card .layui-form-item {
  margin-bottom: 14px;
}
.hint {
  color: #86909c;
  line-height: 1.6;
}
.toolbar {
  margin-bottom: 12px;
}
.scope-tag {
  display: inline-block;
  margin: 0 4px 4px 0;
  padding: 3px 6px;
  background: #f2f3f5;
  border-radius: 3px;
  font-size: 12px;
}
.wide-form {
  max-width: 800px;
}
.role-scope {
  padding: 14px;
  margin: 12px 0;
  border: 1px solid #e2e6ed;
  border-radius: 4px;
}
.role-scope h4 {
  margin: 0 0 8px;
}
.role-scope select {
  width: 100%;
  min-height: 80px;
}
.permission-group {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid #e2e6ed;
}
.permission-item {
  display: inline-block;
  min-width: 220px;
  margin: 6px 12px 6px 0;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #e6edf4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.045);
}
.filter-bar .layui-input,
.filter-bar select {
  width: 180px;
  height: 40px;
  padding: 0 8px;
  box-sizing: border-box;
  border: 1px solid #d7e1ec;
  border-radius: 6px;
  background: #fbfdff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.order-dialog {
  width: min(850px, 92vw);
  max-height: 88vh;
  border: 0;
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
}
.order-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head h2 {
  margin: 0 0 14px;
}
.dialog-close {
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}
.order-dialog label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
}
.order-dialog select {
  width: 100%;
  height: 38px;
  border: 1px solid #e2e6ed;
}
.order-dialog button[type="submit"] {
  margin-top: 16px;
}
.inline-form {
  display: inline;
}
.operation-order-summary {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  background: #f8fafc;
}
.operation-order-summary h3 {
  margin: 0 0 10px;
  font-size: 15px;
}
.operation-order-summary > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  color: #58677a;
  font-size: 13px;
}
.operation-order-summary b {
  color: #243247;
}
.operation-order-summary p {
  margin: 10px 0 0;
  overflow: hidden;
  color: #58677a;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.purchase-record {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 14px;
  padding: 11px 14px;
  border-left: 3px solid #14b8a6;
  background: #f0fdfa;
  color: #52606d;
  font-size: 13px;
}
.purchase-record b {
  color: #243247;
}
.operation-warning {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 3px solid #f06b37;
  background: #fff7ed;
  color: #9a3412;
}
.logistics-add-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.logistics-add-form .layui-input {
  max-width: 460px;
}
.pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0 2px;
  color: #52606d;
  font-size: 13px;
}
.pagination-bar label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pagination-bar select {
  width: 74px;
  height: 30px;
  padding: 0 8px;
}
.pagination-bar button[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}
.countdown {
  margin-left: 8px;
  color: #16a34a;
}
.countdown.urgent {
  color: #d97706;
}
.countdown.overdue {
  color: #dc2626;
}
.fulfillment-countdown-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: #52606d;
  font-size: 12px;
  white-space: nowrap;
}
.fulfillment-countdown-track {
  height: 9px;
  overflow: hidden;
  background: #e8edf3;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}
.fulfillment-countdown-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition:
    width 0.8s linear,
    background-color 0.3s ease;
}
.fulfillment-countdown.is-normal .fulfillment-countdown-track i {
  background: #22a06b;
}
.fulfillment-countdown.is-warning .fulfillment-countdown-track i {
  background: #e6a23c;
}
.fulfillment-countdown.is-danger .fulfillment-countdown-track i {
  background: #f06b37;
}
.fulfillment-countdown.is-overdue .fulfillment-countdown-meta {
  color: #d9363e;
  font-weight: 600;
}
.fulfillment-countdown.is-overdue .fulfillment-countdown-track i {
  width: 100% !important;
  background: repeating-linear-gradient(
    -45deg,
    #d9363e,
    #d9363e 7px,
    #f57b81 7px,
    #f57b81 14px
  );
  animation: overdue-pulse 1.1s ease-in-out infinite;
}
@keyframes overdue-pulse {
  50% {
    opacity: 0.58;
  }
}
.order-time-cell {
  color: #34465d;
  font-variant-numeric: tabular-nums;
}
.order-status-badge {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  white-space: nowrap;
}
.product-title-clamp {
  display: -webkit-box;
  max-width: 300px;
  overflow: hidden;
  color: #334155;
  line-height: 1.45;
  text-overflow: ellipsis;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  cursor: help;
}
.order-title-detail {
  min-width: 0;
}
.order-title-detail summary {
  cursor: pointer;
  list-style: none;
}
.order-title-detail summary::-webkit-details-marker {
  display: none;
}
.order-title-detail summary span {
  display: block;
  color: #86909c;
  font-size: 13px;
}
.order-title-preview {
  display: -webkit-box !important;
  overflow: hidden;
  color: #243247;
  line-height: 1.5;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.order-title-toggle {
  display: block;
  margin-top: 4px;
  color: #1677ff;
  font-size: 12px;
  font-style: normal;
}
.order-title-toggle::after {
  content: "展开";
}
.order-title-detail[open] .order-title-preview {
  display: none !important;
}
.order-title-detail[open] .order-title-toggle::after {
  content: "收起";
}
.order-title-full {
  margin-top: 6px;
  color: #243247;
  line-height: 1.55;
  word-break: break-word;
}
/* 桌面表格布局尽量完整显示操作列，减少不必要的横向滚动。 */
.layui-body {
  overflow-x: hidden;
}
.page-wrap {
  min-width: 0;
}
.page-head {
  padding: 2px 0 4px;
}
.page-head h2 {
  color: #1f344d;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.filter-bar .layui-input:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.12);
}
.order-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
}
.status-pending-purchase {
  background: #2475e8;
}
.status-pending-shipment {
  background: #7c3aed;
}
.status-pending-pickup {
  background: #e88b19;
}
.status-pending-freight {
  background: #d97706;
}
.status-completed {
  background: #1b9a62;
}
.status-cancelled {
  background: #8492a6;
}
.status-exception {
  background: #dc3c4a;
}
.status-after-sale-pending {
  background: #d97706;
}
.status-after-sale-completed {
  background: #0f9688;
}
.profit-positive {
  color: #078b78;
  font-weight: 700;
}
.profit-negative {
  color: #dc3c4a;
  font-weight: 700;
}
.import-preview-table {
  margin-bottom: 12px;
}
.import-preview-table .layui-table {
  min-width: 760px;
}
.order-action-cell {
  min-width: 0;
  white-space: nowrap;
  line-height: 1.8;
}
.order-action-cell .layui-btn {
  height: 25px;
  margin: 0 1px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 12px;
  line-height: 25px;
}
.pagination-bar {
  padding: 12px 2px 2px;
}
@media (max-width: 1100px) {
  .page-wrap {
    padding: 16px;
  }
  .filter-bar .layui-input,
  .filter-bar select {
    width: 150px;
  }
}
@media (max-width: 768px) {
  .layui-side {
    display: none;
  }
  .layui-body {
    left: 0;
  }
  .order-grid {
    grid-template-columns: 1fr;
  }
  .page-wrap {
    padding: 14px;
  }
}

/* 桌面端公共视觉层级，供各业务模块统一使用。 */
body {
  background: #f3f6fa;
  color: #26364a;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}
.layui-layout-admin .layui-header {
  height: 60px;
  background: linear-gradient(100deg, #17212f, #263b4d);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.18);
}
.layui-layout-admin .layui-logo {
  width: 198px;
  color: #86f0df;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 60px;
}
.layui-layout-admin .layui-side {
  top: 60px;
  width: 198px;
  background: #202c39 !important;
  box-shadow: 2px 0 12px rgba(15, 23, 42, 0.07);
}
.layui-layout-admin .layui-body {
  top: 60px;
  left: 198px;
  background: linear-gradient(135deg, #f6f8fc 0%, #f1f5f9 100%);
}
.layui-side-scroll .side-nav {
  margin: 0;
  padding: 0;
  background: transparent;
}
.side-nav > .side-nav-item {
  position: relative;
  display: block;
  margin: 5px 8px;
}
.side-nav > .side-nav-item > a {
  display: block;
  height: 46px;
  padding: 0 20px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 46px;
}
.side-nav > .side-nav-item > a:hover {
  color: #fff;
  background: rgba(0, 0, 0, 0.12);
}
.side-nav .nav-group {
  margin: 5px 0;
}
.side-nav .nav-group summary {
  margin: 0 8px;
  border-radius: 7px;
}
.side-nav .nav-submenu {
  margin: 3px 8px 6px;
  padding: 4px 0;
  border-radius: 8px;
  background: rgba(7, 14, 24, 0.2);
}
.side-nav .nav-submenu a {
  margin: 1px 4px;
  padding-left: 33px;
  border-radius: 6px;
}
.side-nav a.is-active {
  background: linear-gradient(90deg, #0c978b, #1ab7aa);
  box-shadow:
    inset 3px 0 0 #b0fff5,
    0 4px 12px rgba(11, 167, 151, 0.16);
}
.page-wrap {
  max-width: 1920px;
  padding: 26px 28px 34px;
}
.page-head {
  min-height: 42px;
  margin-bottom: 20px;
}
.page-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1e334a;
  font-size: 23px;
}
.page-head h2::before {
  width: 4px;
  height: 23px;
  border-radius: 99px;
  background: linear-gradient(#19b7aa, #1983d4);
  content: "";
}
.layui-btn {
  border-radius: 6px;
  font-weight: 600;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease;
}
.layui-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(15, 118, 110, 0.18);
}
.layui-btn-primary {
  color: #506276 !important;
  border-color: #d8e0ea !important;
  background: #fff !important;
}
.layui-btn-normal {
  background: #2389e8 !important;
}
.layui-btn-danger {
  background: #e5534b !important;
}
.layui-card {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #e8eef5;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.045);
}
.layui-card-header {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 18px;
  border-bottom: 1px solid #edf1f6;
  color: #2a4059;
  font-weight: 700;
  line-height: normal;
  background: linear-gradient(100deg, #fff, #f8fbfd);
}
.layui-card-body {
  padding: 16px 18px;
}
.filter-bar::before {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  content: "筛选条件";
}
.report-filter::before {
  content: "统计筛选";
}
.filter-bar .layui-btn {
  height: 38px;
  line-height: 38px;
}
.table-scroll,
.page-wrap > .layui-table {
  border-color: #e5ecf3;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}
.page-wrap > .layui-table {
  overflow: hidden;
  margin: 0 0 8px;
  background: #fff;
}
.layui-card .layui-table {
  margin: 0;
}
.page-wrap > .layui-table th,
.layui-card .layui-table th {
  padding: 12px 10px;
  color: #53657a;
  font-weight: 700;
  background: #f7f9fc;
  border-color: #e8eef4;
}
.page-wrap > .layui-table td,
.layui-card .layui-table td {
  padding: 11px 10px;
  border-color: #e8eef4;
  color: #405168;
  vertical-align: middle;
}
.page-wrap > .layui-table tbody tr:hover,
.layui-card .layui-table tbody tr:hover {
  background: #f2fbfa;
}
.pagination-bar {
  margin-top: 4px;
  padding: 14px 4px 3px;
}
.pagination-bar .layui-btn {
  min-width: 34px;
}
.empty {
  padding: 30px 12px !important;
  color: #91a0b2 !important;
}
.hint {
  color: #78889b;
}
.scope-tag {
  border: 1px solid #dbe6f0;
  background: #f6fafc;
  color: #496177;
}
.action-card,
.form-card,
.order-card {
  border: 1px solid #e7edf4;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
}
.action-card h3,
.order-card h3 {
  color: #29445e;
}
.operation-order-summary {
  border-color: #dce8f2;
  background: linear-gradient(135deg, #f8fbff, #f3faf9);
}
.order-status-badge {
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.12);
}
@media (max-width: 1100px) {
  .page-wrap {
    padding: 20px;
  }
  .layui-layout-admin .layui-side {
    width: 184px;
  }
  .layui-layout-admin .layui-body {
    left: 184px;
  }
  .layui-layout-admin .layui-logo {
    width: 184px;
  }
  .filter-bar::before {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .layui-layout-admin .layui-body {
    top: 60px;
  }
  .page-wrap {
    padding: 16px 14px 26px;
  }
  .page-head {
    align-items: flex-start;
    gap: 10px;
  }
  .page-head h2 {
    font-size: 20px;
  }
  .filter-bar {
    padding: 12px;
  }
  .filter-bar .layui-input,
  .filter-bar select {
    width: 100%;
  }
  .filter-bar .layui-btn {
    width: auto;
  }
  .analysis-sort {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .layui-card-body {
    padding: 14px;
  }
}
.permission-tree {
  margin: 14px 0 20px;
  padding: 12px 14px;
  border: 1px solid #dfe8f0;
  border-radius: 9px;
  background: #fbfdff;
}
.permission-tree ul {
  margin: 4px 0 4px 22px;
  padding-left: 18px;
  border-left: 1px dashed #cedae5;
}
.permission-tree-node {
  list-style: none;
  margin: 5px 0;
}
.permission-tree-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 3px 8px;
  border-radius: 6px;
  color: #334b63;
  cursor: pointer;
}
.permission-tree-label:hover {
  background: #eef8f7;
}
.permission-tree-label code {
  margin-left: 5px;
  color: #8a9aab;
  font-size: 11px;
}
.permission-node-type {
  display: inline-flex;
  min-width: 50px;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 99px;
  background: #e7eef7;
  color: #58708a;
  font-size: 11px;
  line-height: 20px;
}
.node-m .permission-node-type {
  background: #e0f2fe;
  color: #0369a1;
}
.node-c .permission-node-type {
  background: #dcfce7;
  color: #15803d;
}
.node-f .permission-node-type {
  background: #fff3d6;
  color: #b45309;
}
.node-d .permission-node-type {
  background: #f3e8ff;
  color: #7e22ce;
}
.role-active {
  color: #0f9688 !important;
  font-weight: 700;
}
