@media(min-width:901px){
  .dashboard-free-grid>.card.dashboard-widget{
    min-height:110px!important;
    padding:16px 18px!important;
    border-radius:13px!important;
  }
  .dashboard-free-grid>.card.dashboard-widget small{
    margin:0 0 6px!important;
    font-size:12px!important;
    line-height:1.2!important;
  }
  .dashboard-free-grid>.card.dashboard-widget strong{
    margin:0!important;
    font-size:25px!important;
    line-height:1.1!important;
  }
  .dashboard-free-grid>.card.dashboard-widget em{
    margin-top:5px!important;
    font-size:11px!important;
    line-height:1.2!important;
  }
  .dashboard-free-grid>.card.dashboard-widget:after{
    right:12px!important;
    bottom:8px!important;
    font-size:20px!important;
  }
}

/* Sales list: keep long values and action buttons inside their own columns. */
.table-wrap.customer-color-frame {
  max-width: 100%;
  overflow-x: auto !important;
}

.sales-list-table {
  min-width: 1120px !important;
}

.sales-list-table th,
.sales-list-table td {
  box-sizing: border-box !important;
  min-width: 0;
}

.sales-list-table .order-primary-address {
  min-width: 180px !important;
  max-width: none !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sales-list-table .order-number-cell {
  min-width: 165px !important;
  overflow: hidden;
}

.sales-list-table .order-number-cell > b {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.25;
}

.sales-list-table .order-kind-badge {
  display: inline-flex;
  max-width: 100%;
  margin: 4px 0 0;
}

.sales-list-table .order-date-cell,
.sales-list-table .order-creator-cell,
.sales-list-table .order-money-cell,
.sales-list-table .order-payment-cell,
.sales-list-table .order-profit-cell,
.sales-list-table .order-status-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-list-table .order-actions-cell {
  min-width: 150px !important;
  padding-inline: 8px !important;
  overflow: hidden;
}

.sales-list-table .row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  justify-content: center !important;
  gap: 6px !important;
  width: 100%;
  min-width: 0;
  white-space: normal !important;
}

.sales-list-table .row-actions button {
  flex: 1 1 58px;
  min-width: 54px !important;
  max-width: 76px;
  padding-inline: 8px !important;
  white-space: nowrap;
}

.dashboard-free-grid .chart-panel .chart-scroll{width:100%;max-width:100%;overflow:hidden!important}
.dashboard-free-grid .chart-panel .bar-chart{width:100%;min-width:0!important;box-sizing:border-box;gap:4px;padding-inline:2px}
.dashboard-free-grid .chart-panel .month-group{min-width:0!important}
.dashboard-free-grid .chart-panel .month-group b{white-space:nowrap}
.dashboard-free-grid .chart-panel .month-group b em{display:inline-block;margin-left:3px;padding:1px 4px;border-radius:999px;background:#e8f3ef;color:#17614e;font-size:8px;font-style:normal;vertical-align:2px}
.dashboard-free-grid .chart-panel .current-month{border-radius:8px;background:linear-gradient(180deg,transparent 55%,#eef7f3)}
@media(max-width:760px){.dashboard-free-grid .chart-panel .chart-scroll{overflow-x:auto!important}.dashboard-free-grid .chart-panel .bar-chart{width:580px;min-width:580px!important}.dashboard-free-grid .chart-panel .month-group b em{display:block;width:max-content;margin:2px auto 0}}
.module-entry-button{white-space:nowrap}.dashboard-pie-link,.expense-category-link,.supplier-rank-row,.supplier-rank-total{cursor:pointer}.expense-category-link:hover,.supplier-rank-row:hover{background:#f0f7f4!important}.supplier-rank-actions{display:flex;align-items:center;gap:8px}.dashboard-focus-target{outline:3px solid color-mix(in srgb,var(--theme-primary,#17614e) 45%,#d7a044)!important;outline-offset:4px;transition:outline-color .3s}.dashboard-category-focus{background:#fff0c9!important;box-shadow:0 0 0 2px #d5a03f55}
.expense-pie-panel .expense-slice{stroke:var(--slice-color)!important}.expense-pie-panel .expense-category-link{border-left:4px solid var(--category-color);background:linear-gradient(90deg,color-mix(in srgb,var(--category-color) 12%,#fff),#fff 72%)!important}.expense-pie-panel .expense-category-link i{background:var(--category-color)!important;box-shadow:0 0 0 4px color-mix(in srgb,var(--category-color) 16%,transparent)}.expense-pie-panel .expense-category-link b{color:var(--category-color)}
.expense-pie-panel{container-type:inline-size}.expense-pie-panel .expense-pie-body{grid-template-columns:minmax(190px,280px) minmax(0,1fr);gap:12px;overflow:hidden}.expense-pie-panel .expense-pie-wrap{width:min(100%,260px)}.expense-pie-panel .expense-pie-legend{grid-template-columns:minmax(0,1fr);min-width:0;align-content:center}.expense-pie-panel .expense-category-link{grid-template-columns:12px minmax(0,1fr) auto 42px;gap:6px;min-width:0;box-sizing:border-box}.expense-pie-panel .expense-category-link span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.expense-pie-panel .expense-category-link b,.expense-pie-panel .expense-category-link em{white-space:nowrap}
@container(max-width:500px){.expense-pie-panel .expense-pie-body{grid-template-columns:1fr;overflow:visible}.expense-pie-panel .expense-pie-wrap{max-width:210px}.expense-pie-panel .expense-pie-legend{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(max-width:460px){.expense-pie-panel .expense-pie-legend{grid-template-columns:1fr}}
.supplier-ranking-panel .supplier-rank-row{padding:7px 9px;border-radius:11px;border-left:4px solid var(--rank-color);background:linear-gradient(90deg,color-mix(in srgb,var(--rank-color) 10%,#fff),#fff 68%)}.supplier-ranking-panel .supplier-rank-no{background:color-mix(in srgb,var(--rank-color) 16%,#fff);color:var(--rank-color)}.supplier-ranking-panel .supplier-rank-track{background:color-mix(in srgb,var(--rank-color) 10%,#eef3f1)}.supplier-ranking-panel .supplier-rank-track i{background:linear-gradient(90deg,color-mix(in srgb,var(--rank-color) 60%,#fff),var(--rank-color))}.supplier-ranking-panel .supplier-rank-row>strong{color:var(--rank-color)}
.report-cost-card{position:relative;overflow:hidden;border-color:color-mix(in srgb,var(--category-color) 34%,#dfe8e4)!important;border-left:5px solid var(--category-color)!important;background:linear-gradient(135deg,color-mix(in srgb,var(--category-color) 13%,#fff),#fff 72%)!important;box-shadow:0 8px 18px color-mix(in srgb,var(--category-color) 9%,transparent)}.report-cost-card:after{content:"";position:absolute;right:-22px;top:-28px;width:70px;height:70px;border:1px solid color-mix(in srgb,var(--category-color) 18%,transparent);border-radius:50%}.report-cost-card span{color:color-mix(in srgb,var(--category-color) 72%,#52645f)!important}.report-cost-card strong{color:var(--category-color)!important}.report-cost-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px color-mix(in srgb,var(--category-color) 16%,transparent)}
.customer-color-table{border-collapse:separate!important;border-spacing:0 8px!important;border:0!important;border-left:0!important;background:transparent!important;box-shadow:none!important}.customer-color-table thead th{border-bottom:1px solid #d7e2de!important}.customer-color-table tbody tr.customer-address-row>td{background:#fff!important;border-top:1px solid #dfe7e4!important;border-bottom:1px solid #dfe7e4!important;border-left:0!important;border-right:0!important;transition:background .18s,box-shadow .18s}.customer-color-table tbody tr.customer-address-row>td:first-child{border-left:1px solid #dfe7e4!important;border-radius:18px 0 0 18px;box-shadow:0 6px 16px rgba(19,60,50,.04)}.customer-color-table tbody tr.customer-address-row>td:last-child{border-right:1px solid #dfe7e4!important;border-radius:0 18px 18px 0;box-shadow:5px 6px 16px rgba(19,60,50,.025)}.customer-color-table tbody tr.customer-address-row:hover>td{background:#f7faf9!important}.customer-color-dot{display:inline-block;width:8px;height:8px;margin-right:9px;border-radius:50%;background:var(--customer-color);box-shadow:0 0 0 4px color-mix(in srgb,var(--customer-color) 14%,transparent);vertical-align:1px}.customer-color-table .address-cell>b{color:#294139!important}.customer-color-table .address-cell{color:#294139!important}.customer-color-table tbody tr.row-bounce{animation-name:rowBounceCard}
.table-wrap.customer-color-frame,.table-wrap.customer-color-frame.ticket-table-frame{border-left:0!important;box-shadow:none!important;background:transparent!important}
@keyframes rowBounceCard{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}
@media(max-width:760px){.customer-color-table{border-spacing:0 6px!important}.customer-color-table tbody tr.customer-address-row>td:first-child{border-radius:14px 0 0 14px}.customer-color-table tbody tr.customer-address-row>td:last-child{border-radius:0 14px 14px 0}}
.ticket-system-page #view .table-wrap:not(.customer-color-frame) table:not(.invoice-table):not(.sale-doc-table),#view .panel>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table),#view>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table){border-collapse:separate!important;border-spacing:0 7px!important;background:transparent!important}
.ticket-system-page #view .table-wrap:not(.customer-color-frame) table:not(.invoice-table):not(.sale-doc-table) tbody tr>td,#view .panel>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td,#view>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td{background:#fff!important;border-top:1px solid #dfe8e4!important;border-bottom:1px solid #dfe8e4!important;border-left:0!important;border-right:0!important;transition:background .18s,box-shadow .18s}
.ticket-system-page #view .table-wrap:not(.customer-color-frame) table:not(.invoice-table):not(.sale-doc-table) tbody tr>td:first-child,#view .panel>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td:first-child,#view>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td:first-child{border-left:1px solid #dfe8e4!important;border-radius:15px 0 0 15px;box-shadow:0 5px 14px rgba(19,60,50,.035)}
.ticket-system-page #view .table-wrap:not(.customer-color-frame) table:not(.invoice-table):not(.sale-doc-table) tbody tr>td:last-child,#view .panel>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td:last-child,#view>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td:last-child{border-right:1px solid #dfe8e4!important;border-radius:0 15px 15px 0;box-shadow:4px 5px 14px rgba(19,60,50,.025)}
.ticket-system-page #view .table-wrap:not(.customer-color-frame) table:not(.invoice-table):not(.sale-doc-table) tbody tr:hover>td,#view .panel>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr:hover>td,#view>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr:hover>td{background:#f7faf9!important}
.ticket-system-page #view .table-wrap:not(.customer-color-frame),#view .panel>.table-wrap:not(.customer-color-frame),#view>.table-wrap:not(.customer-color-frame){border-left:0!important;box-shadow:none!important;background:transparent!important}
@media(max-width:760px){.ticket-system-page #view .table-wrap:not(.customer-color-frame) table:not(.invoice-table):not(.sale-doc-table),#view .panel>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table),#view>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table){border-spacing:0 5px!important}}
.dialog.account-dialog-wide{padding:28px 30px 18px!important;background:linear-gradient(145deg,#f7faf8,#fff 35%)!important}.dialog.account-dialog-wide .supplier-settlement>h2{margin:0 58px 18px 0;padding:0 0 16px;border-bottom:1px solid #dce7e2;font-size:27px;letter-spacing:-.02em}.dialog.account-dialog-wide .account-cards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;width:100%;max-width:none!important;margin-bottom:22px}.dialog.account-dialog-wide .account-cards .card{min-height:92px!important;padding:16px 18px!important;border-radius:18px!important;background:#fff!important;box-shadow:0 9px 24px rgba(20,68,56,.07)!important}.dialog.account-dialog-wide .account-cards .card:after{width:56px;height:56px}.dialog.account-dialog-wide .account-cards strong{font-size:25px!important;margin-top:5px!important}.dialog.account-dialog-wide .settlement-head{position:sticky;top:-28px;z-index:12;display:flex!important;align-items:center!important;gap:18px;margin:0 -8px 12px!important;padding:14px 16px!important;border:1px solid #dce7e2;border-radius:16px;background:rgba(255,255,255,.94);box-shadow:0 10px 26px rgba(15,62,50,.09);backdrop-filter:blur(12px)}.dialog.account-dialog-wide .settlement-head h3{margin:0 0 3px;font-size:18px}.dialog.account-dialog-wide .settlement-head small{color:#7a8d86}.dialog.account-dialog-wide .settlement-head>div:last-child{margin-left:auto;padding:6px 7px 6px 16px;border-radius:13px;background:#edf6f2}.dialog.account-dialog-wide #supplierQtyTotal{font-size:16px;color:#174f42}.dialog.account-dialog-wide .settlement-lines,.dialog.account-dialog-wide .payment-history-head+.table-wrap{border:0!important;border-left:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.dialog.account-dialog-wide .settlement-lines table,.dialog.account-dialog-wide .payment-history-head+.table-wrap table{border-collapse:separate!important;border-spacing:0 8px!important}.dialog.account-dialog-wide .settlement-lines thead th,.dialog.account-dialog-wide .payment-history-head+.table-wrap thead th{background:transparent!important;border:0!important;color:#71847d!important}.dialog.account-dialog-wide .settlement-lines tbody td,.dialog.account-dialog-wide .payment-history-head+.table-wrap tbody td{background:#fff!important;border-top:1px solid #dfe8e4!important;border-bottom:1px solid #dfe8e4!important;border-left:0!important;border-right:0!important;vertical-align:middle!important}.dialog.account-dialog-wide .settlement-lines tbody td:first-child,.dialog.account-dialog-wide .payment-history-head+.table-wrap tbody td:first-child{border-left:1px solid #dfe8e4!important;border-radius:16px 0 0 16px;box-shadow:0 7px 18px rgba(18,62,51,.045)}.dialog.account-dialog-wide .settlement-lines tbody td:last-child,.dialog.account-dialog-wide .payment-history-head+.table-wrap tbody td:last-child{border-right:1px solid #dfe8e4!important;border-radius:0 16px 16px 0}.dialog.account-dialog-wide .settlement-lines tbody tr:hover td,.dialog.account-dialog-wide .payment-history-head+.table-wrap tbody tr:hover td{background:#f7faf9!important}.dialog.account-dialog-wide .settlement-lines input[type=checkbox]{width:20px;height:20px;accent-color:#17614e}.dialog.account-dialog-wide .settlement-lines input[type=number],.dialog.account-dialog-wide .account-cost-editor input{height:42px!important;border-radius:11px!important;background:#fbfdfc!important}.dialog.account-dialog-wide .settlement-lines input[type=number]:focus,.dialog.account-dialog-wide .account-cost-editor input:focus{border-color:#4d927d!important;box-shadow:0 0 0 3px rgba(34,124,98,.12)!important}.dialog.account-dialog-wide .supplier-loading-editor{margin-top:8px!important;padding:9px!important;border:1px dashed #d5e2dd;border-radius:12px;background:#f8fbfa}.dialog.account-dialog-wide .supplier-loading-editor>label{color:#536a62}.dialog.account-dialog-wide .supplier-line-total{font-size:15px}.dialog.account-dialog-wide .payment-history-head{margin-top:28px!important;padding:18px 4px 0!important;border-top:1px dashed #ccdcd6!important}.dialog.account-dialog-wide .settlement-close{margin-top:12px!important}
@media(max-width:900px){.dialog.account-dialog-wide{padding:20px 14px 14px!important}.dialog.account-dialog-wide .supplier-settlement>h2{font-size:22px}.dialog.account-dialog-wide .account-cards{grid-template-columns:repeat(3,minmax(150px,1fr))!important;overflow-x:auto}.dialog.account-dialog-wide .settlement-head{top:-20px;align-items:stretch!important;flex-direction:column}.dialog.account-dialog-wide .settlement-head>div:last-child{width:100%;margin-left:0;justify-content:space-between}.dialog.account-dialog-wide .settlement-lines{overflow-x:auto!important}.dialog.account-dialog-wide .settlement-lines table{min-width:1180px!important}}
@media(max-width:560px){.dialog.account-dialog-wide .account-cards{grid-template-columns:1fr!important;overflow:visible}.dialog.account-dialog-wide .account-cards .card{min-height:78px!important}.dialog.account-dialog-wide .settlement-head>div:last-child{align-items:stretch!important;flex-direction:column}.dialog.account-dialog-wide .settlement-head button{width:100%}}
@media(max-width:760px){.module-entry-button{padding:7px 9px!important;font-size:10px!important}.supplier-rank-actions{align-items:stretch;flex-direction:column}}

/* 业务列表统一为清晰的表格式气泡：白色底、完整单元格边界，不使用地址色填充。 */
.customer-color-table thead th,
.ticket-system-page #view .table-wrap table:not(.invoice-table):not(.sale-doc-table) thead th,
#view .panel>.table-wrap table:not(.invoice-table):not(.sale-doc-table) thead th,
#view>.table-wrap table:not(.invoice-table):not(.sale-doc-table) thead th{
  background:#edf3f1!important;
  border-top:1px solid #d3dfdb!important;
  border-bottom:1px solid #cbd9d4!important;
  border-right:1px solid #d9e3df!important;
  color:#194f42!important;
  font-weight:750!important;
  background-image:none!important;
  filter:none!important;
  backdrop-filter:none!important;
}
.customer-color-table thead th:first-child,
.ticket-system-page #view .table-wrap table:not(.invoice-table):not(.sale-doc-table) thead th:first-child,
#view .panel>.table-wrap table:not(.invoice-table):not(.sale-doc-table) thead th:first-child,
#view>.table-wrap table:not(.invoice-table):not(.sale-doc-table) thead th:first-child{border-left:1px solid #d3dfdb!important}
.customer-color-table tbody tr.customer-address-row>td,
.ticket-system-page #view .table-wrap:not(.customer-color-frame) table:not(.invoice-table):not(.sale-doc-table) tbody tr>td,
#view .panel>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td,
#view>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td{
  border-top-color:#cbd8d4!important;
  border-bottom-color:#cbd8d4!important;
  border-right:1px solid #d0dcd8!important;
}
.customer-color-table tbody tr.customer-address-row>td:first-child,
.ticket-system-page #view .table-wrap:not(.customer-color-frame) table:not(.invoice-table):not(.sale-doc-table) tbody tr>td:first-child,
#view .panel>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td:first-child,
#view>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td:first-child{border-left-color:#cbd8d4!important}
.customer-color-table tbody tr.customer-address-row>td:last-child,
.ticket-system-page #view .table-wrap:not(.customer-color-frame) table:not(.invoice-table):not(.sale-doc-table) tbody tr>td:last-child,
#view .panel>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td:last-child,
#view>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td:last-child{border-right-color:#cbd8d4!important}
.customer-color-table .order-primary-address{
  min-width:230px;
  color:#173f35!important;
  font-size:16px!important;
  font-weight:800!important;
  letter-spacing:.01em;
  white-space:normal!important;
  line-height:1.35;
}
.customer-color-table .order-number-cell{min-width:170px;white-space:normal!important}
.customer-color-table .order-number-cell>b{display:inline-block;color:#315047;font-weight:750}
.customer-color-table .order-kind-badge{margin-left:8px}
@media(max-width:1050px){
  .customer-color-table .order-primary-address{min-width:190px;font-size:15px!important}
  .customer-color-table .order-number-cell{min-width:145px}
}

/* 长列表固定列标题：列表内容独立滚动，始终看得见每一列的含义。 */
@media screen and (min-width:761px){
  #view .table-wrap:has(>table:not(.invoice-table):not(.sale-doc-table)),
  .dialog .table-wrap:has(>table:not(.invoice-table):not(.sale-doc-table)){
    position:relative;
    max-height:min(68dvh,760px);
    overflow:auto!important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
  .dialog .table-wrap:has(>table:not(.invoice-table):not(.sale-doc-table)){
    max-height:min(54dvh,620px);
  }
  #view .table-wrap>table:not(.invoice-table):not(.sale-doc-table)>thead>tr>th,
  .dialog .table-wrap>table:not(.invoice-table):not(.sale-doc-table)>thead>tr>th{
    position:sticky!important;
    top:0!important;
    z-index:18!important;
    background-color:#edf3f1!important;
    background-image:none!important;
    filter:none!important;
    backdrop-filter:none!important;
    border-bottom-color:#b8cbc4!important;
    box-shadow:0 2px 0 #b8cbc4,0 8px 14px rgba(24,63,53,.10);
    background-clip:padding-box!important;
  }
  .dialog.account-dialog-wide .settlement-lines thead th,
  .dialog.account-dialog-wide .payment-history-head+.table-wrap thead th{
    position:sticky!important;
    top:0!important;
    z-index:18!important;
    background-color:#edf3f1!important;
    background-image:none!important;
    filter:none!important;
    backdrop-filter:none!important;
    border-top:1px solid #d3dfdb!important;
    border-bottom:1px solid #cbd9d4!important;
    box-shadow:0 2px 0 #b8cbc4,0 8px 14px rgba(24,63,53,.10);
  }
}

/* 业务列表采用平面、连贯的网格卡片：表头与数据线条共用同一视觉基线。 */
.customer-color-table,
.ticket-system-page #view .table-wrap:not(.customer-color-frame) table:not(.invoice-table):not(.sale-doc-table),
#view .panel>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table),
#view>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table){
  border-spacing:0 4px!important;
}
.customer-color-table thead th,
.ticket-system-page #view .table-wrap table:not(.invoice-table):not(.sale-doc-table) thead th,
#view .panel>.table-wrap table:not(.invoice-table):not(.sale-doc-table) thead th,
#view>.table-wrap table:not(.invoice-table):not(.sale-doc-table) thead th{
  background-color:#e7efec!important;
  border-top:1px solid #afc3bc!important;
  border-bottom:2px solid #8faea4!important;
  border-right:1px solid #b8cac4!important;
  box-shadow:none!important;
}
.customer-color-table thead th:first-child,
.ticket-system-page #view .table-wrap table:not(.invoice-table):not(.sale-doc-table) thead th:first-child,
#view .panel>.table-wrap table:not(.invoice-table):not(.sale-doc-table) thead th:first-child,
#view>.table-wrap table:not(.invoice-table):not(.sale-doc-table) thead th:first-child{
  border-left:1px solid #afc3bc!important;
  border-radius:10px 0 0 0;
}
.customer-color-table thead th:last-child,
.ticket-system-page #view .table-wrap table:not(.invoice-table):not(.sale-doc-table) thead th:last-child,
#view .panel>.table-wrap table:not(.invoice-table):not(.sale-doc-table) thead th:last-child,
#view>.table-wrap table:not(.invoice-table):not(.sale-doc-table) thead th:last-child{
  border-radius:0 10px 0 0;
}
.customer-color-table tbody tr.customer-address-row>td,
.ticket-system-page #view .table-wrap:not(.customer-color-frame) table:not(.invoice-table):not(.sale-doc-table) tbody tr>td,
#view .panel>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td,
#view>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td{
  background-color:#fff!important;
  border-top:1px solid #b5c7c1!important;
  border-bottom:1px solid #b5c7c1!important;
  border-right:1px solid #c0cfca!important;
  box-shadow:none!important;
}
.customer-color-table tbody tr.customer-address-row>td:first-child,
.ticket-system-page #view .table-wrap:not(.customer-color-frame) table:not(.invoice-table):not(.sale-doc-table) tbody tr>td:first-child,
#view .panel>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td:first-child,
#view>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td:first-child{
  border-left:1px solid #aebfba!important;
  border-radius:11px 0 0 11px!important;
  box-shadow:none!important;
}
.customer-color-table tbody tr.customer-address-row>td:last-child,
.ticket-system-page #view .table-wrap:not(.customer-color-frame) table:not(.invoice-table):not(.sale-doc-table) tbody tr>td:last-child,
#view .panel>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td:last-child,
#view>.table-wrap table:not(.customer-color-table):not(.invoice-table):not(.sale-doc-table) tbody tr>td:last-child{
  border-right:1px solid #aebfba!important;
  border-radius:0 11px 11px 0!important;
  box-shadow:none!important;
}
.customer-color-table tbody tr:hover>td,
.ticket-system-page #view .table-wrap table:not(.invoice-table):not(.sale-doc-table) tbody tr:hover>td{
  background:color-mix(in srgb,var(--theme-primary,#17614e) 4%,#fff)!important;
  border-top-color:color-mix(in srgb,var(--theme-primary,#17614e) 28%,#cbd8d4)!important;
  border-bottom-color:color-mix(in srgb,var(--theme-primary,#17614e) 28%,#cbd8d4)!important;
}

/* 鐢ㄦ瀬娣＄殑澶氳壊琛岃儗鏅府鍔╂í鍚戦槄璇伙紝涓嶅奖鍝嶄富棰樿壊鍜屽崟鎹墦鍗般€?*/
#view .table-wrap table:not(.invoice-table):not(.sale-doc-table):not(.delivery-note-table) tbody tr>td,
.dialog .table-wrap table:not(.invoice-table):not(.sale-doc-table):not(.delivery-note-table) tbody tr>td{
  background-color:#fff!important;
  border-top-color:#b5c7c1!important;
  border-bottom-color:#b5c7c1!important;
  border-right-color:#c0cfca!important;
  box-shadow:none!important;
}
#view .table-wrap table:not(.invoice-table):not(.sale-doc-table):not(.delivery-note-table) tbody tr>td:first-child,
.dialog .table-wrap table:not(.invoice-table):not(.sale-doc-table):not(.delivery-note-table) tbody tr>td:first-child{
  border-left:1px solid #aebfba!important;
}
#view .table-wrap table:not(.invoice-table):not(.sale-doc-table):not(.delivery-note-table) tbody tr>td:last-child,
.dialog .table-wrap table:not(.invoice-table):not(.sale-doc-table):not(.delivery-note-table) tbody tr>td:last-child{
  border-right:1px solid #aebfba!important;
}
#view .table-wrap table:not(.invoice-table):not(.sale-doc-table):not(.delivery-note-table) tbody tr:hover>td,
.dialog .table-wrap table:not(.invoice-table):not(.sale-doc-table):not(.delivery-note-table) tbody tr:hover>td{
  background-color:color-mix(in srgb,var(--theme-primary,#17614e) 4%,#fff)!important;
  border-top-color:color-mix(in srgb,var(--theme-primary,#17614e) 34%,#cbd8d4)!important;
  border-bottom-color:color-mix(in srgb,var(--theme-primary,#17614e) 34%,#cbd8d4)!important;
}

/* Compact desktop rows while keeping two-line details and action buttons readable. */
@media screen and (min-width:761px){
  #view .table-wrap table:not(.invoice-table):not(.sale-doc-table):not(.delivery-note-table) tbody tr>td,
  .dialog .table-wrap table:not(.invoice-table):not(.sale-doc-table):not(.delivery-note-table) tbody tr>td{
    padding-top:8px!important;
    padding-bottom:8px!important;
    line-height:1.35!important;
  }
}

/* 电脑版列表列宽拖动手柄。 */
@media screen and (min-width:761px){
  table.business-resizable-table{table-layout:fixed!important}
  table.business-resizable-table>thead>tr>th{position:sticky!important}
  .business-column-resizer{
    position:absolute;
    top:8px;
    right:-4px;
    bottom:8px;
    z-index:22;
    width:8px;
    cursor:col-resize;
    touch-action:none;
    user-select:none;
  }
  .business-column-resizer:after{
    content:"";
    position:absolute;
    top:0;
    bottom:0;
    left:3px;
    width:1px;
    border-radius:2px;
    background:#afc3bc;
    opacity:.38;
    transition:opacity .15s,background-color .15s,width .15s;
  }
  th:hover>.business-column-resizer:after,
  .business-column-resizer.is-resizing:after{
    width:2px;
    background:var(--theme-primary,#17614e);
    opacity:.9;
  }
body.business-column-dragging,
  body.business-column-dragging *{cursor:col-resize!important;user-select:none!important}
}

/* Account settlement tables: keep compact editors inside their own column and
   use the same flat table header treatment as the other business lists. */
@media screen and (min-width:761px){
  .dialog.account-dialog-wide .settlement-lines .supplier-loading-editor{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:
      "title title"
      "field action"
      "hint hint"!important;
    align-items:center!important;
    gap:6px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  .dialog.account-dialog-wide .settlement-lines .supplier-loading-editor>label{
    grid-area:title!important;
    min-width:0!important;
  }
  .dialog.account-dialog-wide .settlement-lines .supplier-loading-editor>input{
    grid-area:field!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  .dialog.account-dialog-wide .settlement-lines .supplier-loading-editor>button{
    grid-area:action!important;
    position:static!important;
    width:auto!important;
    min-width:56px!important;
    max-width:72px!important;
    margin:0!important;
    padding:0 10px!important;
    box-sizing:border-box!important;
    white-space:nowrap!important;
  }
  .dialog.account-dialog-wide .settlement-lines .supplier-loading-editor>small{
    grid-area:hint!important;
    min-width:0!important;
  }
}

.dialog.account-dialog-wide .settlement-lines thead th,
.dialog.account-dialog-wide .payment-history-head+.table-wrap thead th{
  background:#e7efec!important;
  background-image:none!important;
  color:#174f42!important;
  border-top:1px solid #afc3bc!important;
  border-bottom:2px solid #8faea4!important;
  border-right:1px solid #b8cac4!important;
  box-shadow:none!important;
  filter:none!important;
  backdrop-filter:none!important;
}
.dialog.account-dialog-wide .settlement-lines thead th:first-child,
.dialog.account-dialog-wide .payment-history-head+.table-wrap thead th:first-child{
  border-left:1px solid #afc3bc!important;
}
