/*!
 * Quill Editor v1.3.7
 * https://quilljs.com/
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */
.ql-container {
  box-sizing: border-box;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  height: 100%;
  margin: 0px;
  position: relative;
}
.ql-container.ql-disabled .ql-tooltip {
  visibility: hidden;
}
.ql-container.ql-disabled .ql-editor ul[data-checked] > li::before {
  pointer-events: none;
}
.ql-clipboard {
  left: -100000px;
  height: 1px;
  overflow-y: hidden;
  position: absolute;
  top: 50%;
}
.ql-clipboard p {
  margin: 0;
  padding: 0;
}
.ql-editor {
  box-sizing: border-box;
  line-height: 1.42;
  height: 100%;
  outline: none;
  overflow-y: auto;
  padding: 12px 15px;
  tab-size: 4;
  -moz-tab-size: 4;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ql-editor > * {
  cursor: text;
}
.ql-editor p,
.ql-editor ol,
.ql-editor ul,
.ql-editor pre,
.ql-editor blockquote,
.ql-editor h1,
.ql-editor h2,
.ql-editor h3,
.ql-editor h4,
.ql-editor h5,
.ql-editor h6 {
  margin: 0;
  padding: 0;
  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
}
.ql-editor ol,
.ql-editor ul {
  padding-left: 1.5em;
}
.ql-editor ol > li,
.ql-editor ul > li {
  list-style-type: none;
}
.ql-editor ul > li::before {
  content: '\2022';
}
.ql-editor ul[data-checked=true],
.ql-editor ul[data-checked=false] {
  pointer-events: none;
}
.ql-editor ul[data-checked=true] > li *,
.ql-editor ul[data-checked=false] > li * {
  pointer-events: all;
}
.ql-editor ul[data-checked=true] > li::before,
.ql-editor ul[data-checked=false] > li::before {
  color: #777;
  cursor: pointer;
  pointer-events: all;
}
.ql-editor ul[data-checked=true] > li::before {
  content: '\2611';
}
.ql-editor ul[data-checked=false] > li::before {
  content: '\2610';
}
.ql-editor li::before {
  display: inline-block;
  white-space: nowrap;
  width: 1.2em;
}
.ql-editor li:not(.ql-direction-rtl)::before {
  margin-left: -1.5em;
  margin-right: 0.3em;
  text-align: right;
}
.ql-editor li.ql-direction-rtl::before {
  margin-left: 0.3em;
  margin-right: -1.5em;
}
.ql-editor ol li:not(.ql-direction-rtl),
.ql-editor ul li:not(.ql-direction-rtl) {
  padding-left: 1.5em;
}
.ql-editor ol li.ql-direction-rtl,
.ql-editor ul li.ql-direction-rtl {
  padding-right: 1.5em;
}
.ql-editor ol li {
  counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
  counter-increment: list-0;
}
.ql-editor ol li:before {
  content: counter(list-0, decimal) '. ';
}
.ql-editor ol li.ql-indent-1 {
  counter-increment: list-1;
}
.ql-editor ol li.ql-indent-1:before {
  content: counter(list-1, lower-alpha) '. ';
}
.ql-editor ol li.ql-indent-1 {
  counter-reset: list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
}
.ql-editor ol li.ql-indent-2 {
  counter-increment: list-2;
}
.ql-editor ol li.ql-indent-2:before {
  content: counter(list-2, lower-roman) '. ';
}
.ql-editor ol li.ql-indent-2 {
  counter-reset: list-3 list-4 list-5 list-6 list-7 list-8 list-9;
}
.ql-editor ol li.ql-indent-3 {
  counter-increment: list-3;
}
.ql-editor ol li.ql-indent-3:before {
  content: counter(list-3, decimal) '. ';
}
.ql-editor ol li.ql-indent-3 {
  counter-reset: list-4 list-5 list-6 list-7 list-8 list-9;
}
.ql-editor ol li.ql-indent-4 {
  counter-increment: list-4;
}
.ql-editor ol li.ql-indent-4:before {
  content: counter(list-4, lower-alpha) '. ';
}
.ql-editor ol li.ql-indent-4 {
  counter-reset: list-5 list-6 list-7 list-8 list-9;
}
.ql-editor ol li.ql-indent-5 {
  counter-increment: list-5;
}
.ql-editor ol li.ql-indent-5:before {
  content: counter(list-5, lower-roman) '. ';
}
.ql-editor ol li.ql-indent-5 {
  counter-reset: list-6 list-7 list-8 list-9;
}
.ql-editor ol li.ql-indent-6 {
  counter-increment: list-6;
}
.ql-editor ol li.ql-indent-6:before {
  content: counter(list-6, decimal) '. ';
}
.ql-editor ol li.ql-indent-6 {
  counter-reset: list-7 list-8 list-9;
}
.ql-editor ol li.ql-indent-7 {
  counter-increment: list-7;
}
.ql-editor ol li.ql-indent-7:before {
  content: counter(list-7, lower-alpha) '. ';
}
.ql-editor ol li.ql-indent-7 {
  counter-reset: list-8 list-9;
}
.ql-editor ol li.ql-indent-8 {
  counter-increment: list-8;
}
.ql-editor ol li.ql-indent-8:before {
  content: counter(list-8, lower-roman) '. ';
}
.ql-editor ol li.ql-indent-8 {
  counter-reset: list-9;
}
.ql-editor ol li.ql-indent-9 {
  counter-increment: list-9;
}
.ql-editor ol li.ql-indent-9:before {
  content: counter(list-9, decimal) '. ';
}
.ql-editor .ql-indent-1:not(.ql-direction-rtl) {
  padding-left: 3em;
}
.ql-editor li.ql-indent-1:not(.ql-direction-rtl) {
  padding-left: 4.5em;
}
.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right {
  padding-right: 3em;
}
.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right {
  padding-right: 4.5em;
}
.ql-editor .ql-indent-2:not(.ql-direction-rtl) {
  padding-left: 6em;
}
.ql-editor li.ql-indent-2:not(.ql-direction-rtl) {
  padding-left: 7.5em;
}
.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right {
  padding-right: 6em;
}
.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right {
  padding-right: 7.5em;
}
.ql-editor .ql-indent-3:not(.ql-direction-rtl) {
  padding-left: 9em;
}
.ql-editor li.ql-indent-3:not(.ql-direction-rtl) {
  padding-left: 10.5em;
}
.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right {
  padding-right: 9em;
}
.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right {
  padding-right: 10.5em;
}
.ql-editor .ql-indent-4:not(.ql-direction-rtl) {
  padding-left: 12em;
}
.ql-editor li.ql-indent-4:not(.ql-direction-rtl) {
  padding-left: 13.5em;
}
.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right {
  padding-right: 12em;
}
.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right {
  padding-right: 13.5em;
}
.ql-editor .ql-indent-5:not(.ql-direction-rtl) {
  padding-left: 15em;
}
.ql-editor li.ql-indent-5:not(.ql-direction-rtl) {
  padding-left: 16.5em;
}
.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right {
  padding-right: 15em;
}
.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right {
  padding-right: 16.5em;
}
.ql-editor .ql-indent-6:not(.ql-direction-rtl) {
  padding-left: 18em;
}
.ql-editor li.ql-indent-6:not(.ql-direction-rtl) {
  padding-left: 19.5em;
}
.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right {
  padding-right: 18em;
}
.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right {
  padding-right: 19.5em;
}
.ql-editor .ql-indent-7:not(.ql-direction-rtl) {
  padding-left: 21em;
}
.ql-editor li.ql-indent-7:not(.ql-direction-rtl) {
  padding-left: 22.5em;
}
.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right {
  padding-right: 21em;
}
.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right {
  padding-right: 22.5em;
}
.ql-editor .ql-indent-8:not(.ql-direction-rtl) {
  padding-left: 24em;
}
.ql-editor li.ql-indent-8:not(.ql-direction-rtl) {
  padding-left: 25.5em;
}
.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right {
  padding-right: 24em;
}
.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right {
  padding-right: 25.5em;
}
.ql-editor .ql-indent-9:not(.ql-direction-rtl) {
  padding-left: 27em;
}
.ql-editor li.ql-indent-9:not(.ql-direction-rtl) {
  padding-left: 28.5em;
}
.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right {
  padding-right: 27em;
}
.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right {
  padding-right: 28.5em;
}
.ql-editor .ql-video {
  display: block;
  max-width: 100%;
}
.ql-editor .ql-video.ql-align-center {
  margin: 0 auto;
}
.ql-editor .ql-video.ql-align-right {
  margin: 0 0 0 auto;
}
.ql-editor .ql-bg-black {
  background-color: #000;
}
.ql-editor .ql-bg-red {
  background-color: #e60000;
}
.ql-editor .ql-bg-orange {
  background-color: #f90;
}
.ql-editor .ql-bg-yellow {
  background-color: #ff0;
}
.ql-editor .ql-bg-green {
  background-color: #008a00;
}
.ql-editor .ql-bg-blue {
  background-color: #06c;
}
.ql-editor .ql-bg-purple {
  background-color: #93f;
}
.ql-editor .ql-color-white {
  color: #fff;
}
.ql-editor .ql-color-red {
  color: #e60000;
}
.ql-editor .ql-color-orange {
  color: #f90;
}
.ql-editor .ql-color-yellow {
  color: #ff0;
}
.ql-editor .ql-color-green {
  color: #008a00;
}
.ql-editor .ql-color-blue {
  color: #06c;
}
.ql-editor .ql-color-purple {
  color: #93f;
}
.ql-editor .ql-font-serif {
  font-family: Georgia, Times New Roman, serif;
}
.ql-editor .ql-font-monospace {
  font-family: Monaco, Courier New, monospace;
}
.ql-editor .ql-size-small {
  font-size: 0.75em;
}
.ql-editor .ql-size-large {
  font-size: 1.5em;
}
.ql-editor .ql-size-huge {
  font-size: 2.5em;
}
.ql-editor .ql-direction-rtl {
  direction: rtl;
  text-align: inherit;
}
.ql-editor .ql-align-center {
  text-align: center;
}
.ql-editor .ql-align-justify {
  text-align: justify;
}
.ql-editor .ql-align-right {
  text-align: right;
}
.ql-editor.ql-blank::before {
  color: rgba(0,0,0,0.6);
  content: attr(data-placeholder);
  font-style: italic;
  left: 15px;
  pointer-events: none;
  position: absolute;
  right: 15px;
}
.ql-snow.ql-toolbar:after,
.ql-snow .ql-toolbar:after {
  clear: both;
  content: '';
  display: table;
}
.ql-snow.ql-toolbar button,
.ql-snow .ql-toolbar button {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  float: left;
  height: 24px;
  padding: 3px 5px;
  width: 28px;
}
.ql-snow.ql-toolbar button svg,
.ql-snow .ql-toolbar button svg {
  float: left;
  height: 100%;
}
.ql-snow.ql-toolbar button:active:hover,
.ql-snow .ql-toolbar button:active:hover {
  outline: none;
}
.ql-snow.ql-toolbar input.ql-image[type=file],
.ql-snow .ql-toolbar input.ql-image[type=file] {
  display: none;
}
.ql-snow.ql-toolbar button:hover,
.ql-snow .ql-toolbar button:hover,
.ql-snow.ql-toolbar button:focus,
.ql-snow .ql-toolbar button:focus,
.ql-snow.ql-toolbar button.ql-active,
.ql-snow .ql-toolbar button.ql-active,
.ql-snow.ql-toolbar .ql-picker-label:hover,
.ql-snow .ql-toolbar .ql-picker-label:hover,
.ql-snow.ql-toolbar .ql-picker-label.ql-active,
.ql-snow .ql-toolbar .ql-picker-label.ql-active,
.ql-snow.ql-toolbar .ql-picker-item:hover,
.ql-snow .ql-toolbar .ql-picker-item:hover,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected {
  color: #06c;
}
.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow .ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button:focus .ql-fill,
.ql-snow .ql-toolbar button:focus .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill,
.ql-snow .ql-toolbar button.ql-active .ql-fill,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,
.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,
.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,
.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,
.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,
.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,
.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,
.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,
.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,
.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,
.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,
.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,
.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,
.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill {
  fill: #06c;
}
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button:focus .ql-stroke,
.ql-snow .ql-toolbar button:focus .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke,
.ql-snow .ql-toolbar button.ql-active .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,
.ql-snow.ql-toolbar button:hover .ql-stroke-miter,
.ql-snow .ql-toolbar button:hover .ql-stroke-miter,
.ql-snow.ql-toolbar button:focus .ql-stroke-miter,
.ql-snow .ql-toolbar button:focus .ql-stroke-miter,
.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,
.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,
.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,
.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,
.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,
.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,
.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,
.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,
.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,
.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter {
  stroke: #06c;
}
@media (pointer: coarse) {
  .ql-snow.ql-toolbar button:hover:not(.ql-active),
  .ql-snow .ql-toolbar button:hover:not(.ql-active) {
    color: #444;
  }
  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,
  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,
  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,
  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill {
    fill: #444;
  }
  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,
  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,
  .ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,
  .ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter {
    stroke: #444;
  }
}
.ql-snow {
  box-sizing: border-box;
}
.ql-snow * {
  box-sizing: border-box;
}
.ql-snow .ql-hidden {
  display: none;
}
.ql-snow .ql-out-bottom,
.ql-snow .ql-out-top {
  visibility: hidden;
}
.ql-snow .ql-tooltip {
  position: absolute;
  transform: translateY(10px);
}
.ql-snow .ql-tooltip a {
  cursor: pointer;
  text-decoration: none;
}
.ql-snow .ql-tooltip.ql-flip {
  transform: translateY(-10px);
}
.ql-snow .ql-formats {
  display: inline-block;
  vertical-align: middle;
}
.ql-snow .ql-formats:after {
  clear: both;
  content: '';
  display: table;
}
.ql-snow .ql-stroke {
  fill: none;
  stroke: #444;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.ql-snow .ql-stroke-miter {
  fill: none;
  stroke: #444;
  stroke-miterlimit: 10;
  stroke-width: 2;
}
.ql-snow .ql-fill,
.ql-snow .ql-stroke.ql-fill {
  fill: #444;
}
.ql-snow .ql-empty {
  fill: none;
}
.ql-snow .ql-even {
  fill-rule: evenodd;
}
.ql-snow .ql-thin,
.ql-snow .ql-stroke.ql-thin {
  stroke-width: 1;
}
.ql-snow .ql-transparent {
  opacity: 0.4;
}
.ql-snow .ql-direction svg:last-child {
  display: none;
}
.ql-snow .ql-direction.ql-active svg:last-child {
  display: inline;
}
.ql-snow .ql-direction.ql-active svg:first-child {
  display: none;
}
.ql-snow .ql-editor h1 {
  font-size: 2em;
}
.ql-snow .ql-editor h2 {
  font-size: 1.5em;
}
.ql-snow .ql-editor h3 {
  font-size: 1.17em;
}
.ql-snow .ql-editor h4 {
  font-size: 1em;
}
.ql-snow .ql-editor h5 {
  font-size: 0.83em;
}
.ql-snow .ql-editor h6 {
  font-size: 0.67em;
}
.ql-snow .ql-editor a {
  text-decoration: underline;
}
.ql-snow .ql-editor blockquote {
  border-left: 4px solid #ccc;
  margin-bottom: 5px;
  margin-top: 5px;
  padding-left: 16px;
}
.ql-snow .ql-editor code,
.ql-snow .ql-editor pre {
  background-color: #f0f0f0;
  border-radius: 3px;
}
.ql-snow .ql-editor pre {
  white-space: pre-wrap;
  margin-bottom: 5px;
  margin-top: 5px;
  padding: 5px 10px;
}
.ql-snow .ql-editor code {
  font-size: 85%;
  padding: 2px 4px;
}
.ql-snow .ql-editor pre.ql-syntax {
  background-color: #23241f;
  color: #f8f8f2;
  overflow: visible;
}
.ql-snow .ql-editor img {
  max-width: 100%;
}
.ql-snow .ql-picker {
  color: #444;
  display: inline-block;
  float: left;
  font-size: 14px;
  font-weight: 500;
  height: 24px;
  position: relative;
  vertical-align: middle;
}
.ql-snow .ql-picker-label {
  cursor: pointer;
  display: inline-block;
  height: 100%;
  padding-left: 8px;
  padding-right: 2px;
  position: relative;
  width: 100%;
}
.ql-snow .ql-picker-label::before {
  display: inline-block;
  line-height: 22px;
}
.ql-snow .ql-picker-options {
  background-color: #fff;
  display: none;
  min-width: 100%;
  padding: 4px 8px;
  position: absolute;
  white-space: nowrap;
}
.ql-snow .ql-picker-options .ql-picker-item {
  cursor: pointer;
  display: block;
  padding-bottom: 5px;
  padding-top: 5px;
}
.ql-snow .ql-picker.ql-expanded .ql-picker-label {
  color: #ccc;
  z-index: 2;
}
.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {
  fill: #ccc;
}
.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {
  stroke: #ccc;
}
.ql-snow .ql-picker.ql-expanded .ql-picker-options {
  display: block;
  margin-top: -1px;
  top: 100%;
  z-index: 1;
}
.ql-snow .ql-color-picker,
.ql-snow .ql-icon-picker {
  width: 28px;
}
.ql-snow .ql-color-picker .ql-picker-label,
.ql-snow .ql-icon-picker .ql-picker-label {
  padding: 2px 4px;
}
.ql-snow .ql-color-picker .ql-picker-label svg,
.ql-snow .ql-icon-picker .ql-picker-label svg {
  right: 4px;
}
.ql-snow .ql-icon-picker .ql-picker-options {
  padding: 4px 0px;
}
.ql-snow .ql-icon-picker .ql-picker-item {
  height: 24px;
  width: 24px;
  padding: 2px 4px;
}
.ql-snow .ql-color-picker .ql-picker-options {
  padding: 3px 5px;
  width: 152px;
}
.ql-snow .ql-color-picker .ql-picker-item {
  border: 1px solid transparent;
  float: left;
  height: 16px;
  margin: 2px;
  padding: 0px;
  width: 16px;
}
.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg {
  position: absolute;
  margin-top: -9px;
  right: 0;
  top: 50%;
  width: 18px;
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,
.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,
.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before {
  content: attr(data-label);
}
.ql-snow .ql-picker.ql-header {
  width: 98px;
}
.ql-snow .ql-picker.ql-header .ql-picker-label::before,
.ql-snow .ql-picker.ql-header .ql-picker-item::before {
  content: 'Normal';
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
  content: 'Heading 1';
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
  content: 'Heading 2';
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
  content: 'Heading 3';
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
  content: 'Heading 4';
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before {
  content: 'Heading 5';
}
.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before {
  content: 'Heading 6';
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
  font-size: 2em;
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
  font-size: 1.5em;
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
  font-size: 1.17em;
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
  font-size: 1em;
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before {
  font-size: 0.83em;
}
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before {
  font-size: 0.67em;
}
.ql-snow .ql-picker.ql-font {
  width: 108px;
}
.ql-snow .ql-picker.ql-font .ql-picker-label::before,
.ql-snow .ql-picker.ql-font .ql-picker-item::before {
  content: 'Sans Serif';
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {
  content: 'Serif';
}
.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {
  content: 'Monospace';
}
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before {
  font-family: Georgia, Times New Roman, serif;
}
.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before {
  font-family: Monaco, Courier New, monospace;
}
.ql-snow .ql-picker.ql-size {
  width: 98px;
}
.ql-snow .ql-picker.ql-size .ql-picker-label::before,
.ql-snow .ql-picker.ql-size .ql-picker-item::before {
  content: 'Normal';
}
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {
  content: 'Small';
}
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {
  content: 'Large';
}
.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {
  content: 'Huge';
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before {
  font-size: 10px;
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before {
  font-size: 18px;
}
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before {
  font-size: 32px;
}
.ql-snow .ql-color-picker.ql-background .ql-picker-item {
  background-color: #fff;
}
.ql-snow .ql-color-picker.ql-color .ql-picker-item {
  background-color: #000;
}
.ql-toolbar.ql-snow {
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  padding: 8px;
}
.ql-toolbar.ql-snow .ql-formats {
  margin-right: 15px;
}
.ql-toolbar.ql-snow .ql-picker-label {
  border: 1px solid transparent;
}
.ql-toolbar.ql-snow .ql-picker-options {
  border: 1px solid transparent;
  box-shadow: rgba(0,0,0,0.2) 0 2px 8px;
}
.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {
  border-color: #ccc;
}
.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
  border-color: #ccc;
}
.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,
.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover {
  border-color: #000;
}
.ql-toolbar.ql-snow + .ql-container.ql-snow {
  border-top: 0px;
}
.ql-snow .ql-tooltip {
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0px 0px 5px #ddd;
  color: #444;
  padding: 5px 12px;
  white-space: nowrap;
}
.ql-snow .ql-tooltip::before {
  content: "Visit URL:";
  line-height: 26px;
  margin-right: 8px;
}
.ql-snow .ql-tooltip input[type=text] {
  display: none;
  border: 1px solid #ccc;
  font-size: 13px;
  height: 26px;
  margin: 0px;
  padding: 3px 5px;
  width: 170px;
}
.ql-snow .ql-tooltip a.ql-preview {
  display: inline-block;
  max-width: 200px;
  overflow-x: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}
.ql-snow .ql-tooltip a.ql-action::after {
  border-right: 1px solid #ccc;
  content: 'Edit';
  margin-left: 16px;
  padding-right: 8px;
}
.ql-snow .ql-tooltip a.ql-remove::before {
  content: 'Remove';
  margin-left: 8px;
}
.ql-snow .ql-tooltip a {
  line-height: 26px;
}
.ql-snow .ql-tooltip.ql-editing a.ql-preview,
.ql-snow .ql-tooltip.ql-editing a.ql-remove {
  display: none;
}
.ql-snow .ql-tooltip.ql-editing input[type=text] {
  display: inline-block;
}
.ql-snow .ql-tooltip.ql-editing a.ql-action::after {
  border-right: 0px;
  content: 'Save';
  padding-right: 0px;
}
.ql-snow .ql-tooltip[data-mode=link]::before {
  content: "Enter link:";
}
.ql-snow .ql-tooltip[data-mode=formula]::before {
  content: "Enter formula:";
}
.ql-snow .ql-tooltip[data-mode=video]::before {
  content: "Enter video:";
}
.ql-snow a {
  color: #06c;
}
.ql-container.ql-snow {
  border: 1px solid #ccc;
}
.ds-operation-guide-hint {
  margin-bottom: 12px;
  color: rgba(0, 0, 0, 0.45);
}

.ds-operation-guide-editor {
  background: #fff;
}

.ds-operation-guide-editor .ql-toolbar {
  border-radius: 8px 8px 0 0;
}

.ds-operation-guide-editor .ql-container {
  min-height: 360px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
}

.ds-operation-guide-editor .ql-editor {
  min-height: 360px;
}

.ds-operation-guide-editor .ql-editor img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.q-matrix-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.q-matrix-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.q-matrix-toolbar .q-matrix-hint {
  flex: 1;
  min-width: 0;
  line-height: 22px;
}

.q-matrix-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.q-matrix-mode-card.ant-card {
  border-radius: 8px;
}

.q-matrix-mode-card > .ant-card-head {
  min-height: 40px;
  padding: 0 12px;
  background: var(--ant-color-primary-bg);
}

.q-matrix-mode-card > .ant-card-head-title {
  padding: 8px 0;
}

.q-matrix-mode-card > .ant-card-body {
  padding: 12px;
}

.q-matrix-item-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.q-matrix-pair-card.ant-card {
  border-radius: 8px;
}

.q-matrix-pair-card .ant-card-head {
  min-height: 40px;
  padding: 0 12px;
  background: var(--ant-color-fill-quaternary);
}

.q-matrix-pair-card .ant-card-head-title {
  padding: 8px 0;
}

.q-matrix-pair-card .ant-card-body {
  padding: 12px;
}

.q-matrix-tier {
  padding: 4px 0 2px;
}

.q-matrix-tier-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.q-matrix-tier-head .q-matrix-tier-title {
  font-weight: 600;
}

.q-matrix-tier-head .q-matrix-tier-extra {
  margin-left: auto;
}

.q-matrix-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.q-matrix-stack .ant-btn-link {
  height: 24px;
  line-height: 24px;
}

.q-matrix-ops {
  display: flex;
  align-items: center;
  gap: 0;
  height: 24px;
}

.q-matrix-ops .ant-btn-link {
  padding-inline: 4px;
}

.q-matrix-node-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.q-matrix-node-label .q-matrix-node-title {
  font-weight: 600;
  line-height: 22px;
}

.q-matrix-node-label .q-matrix-node-meta {
  line-height: 22px;
}
.ds-loading-shipment-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  padding: 12px 14px;
  background: var(--ant-color-fill-quaternary, #f5f5f5);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.ds-loading-shipment-print {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 800px;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 深色模式：全局 CSS 变量（自定义组件统一引用） */
[data-theme='dark'] {
  --ds-dark-bg-page: #121214;
  --ds-dark-bg-surface: #1c1c20;
  --ds-dark-bg-elevated: #222226;
  --ds-dark-bg-input: #242428;
  --ds-dark-border: #34343a;
  --ds-dark-border-subtle: #2c2c32;
  --ds-dark-text: rgba(255, 255, 255, 0.78);
  --ds-dark-text-secondary: rgba(255, 255, 255, 0.52);
  --ds-dark-text-muted: rgba(255, 255, 255, 0.38);
  --ds-dark-hover-bg: rgba(255, 255, 255, 0.06);
  --ds-dark-primary: #6b93e5;
  --ds-dark-primary-soft: rgba(107, 147, 229, 0.14);
  --ds-dark-shadow: rgba(0, 0, 0, 0.28);
  --ds-list-toolbar-bg: var(--ds-dark-bg-elevated);
  --ds-list-block-border: var(--ds-dark-border-subtle);
}

:root[data-theme='dark'] body {
  background-color: var(--ds-dark-bg-page);
  color: var(--ds-dark-text);
}

/* 查询面板：条件展示区 + 底部操作栏 */
.ds-search-panel {
  box-sizing: border-box;
  width: 100%;
  margin-block-end: 0;
  padding: var(--ds-search-panel-padding-y) var(--ds-search-panel-padding-x);
  background: #fff;
  border: 1px solid var(--ds-list-block-border);
  border-radius: var(--ds-list-block-radius);
}

.ds-search-panel__fields {
  overflow: hidden;
}

.ds-search-panel--collapsed .ds-search-panel__fields {
  display: none;
}

.ds-search-panel--collapsed {
  padding-block: var(--ds-search-panel-padding-y);
}

.ds-search-panel--collapsed .ds-query-footer {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ds-search-panel .ant-pro-query-filter {
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-block-end: 0;
}

.ds-search-panel__form {
  width: 100%;
}

.ds-search-fields-grid {
  display: grid;
  grid-template-columns: repeat(var(--ds-search-cols, 4), minmax(0, 1fr));
  gap: var(--ds-search-panel-field-gap-y) var(--ds-search-panel-field-gap-x);
  width: 100%;
}

.ds-search-fields-grid__item {
  margin-bottom: 0 !important;
  min-width: 0;
}

.ds-search-fields-grid__item .ant-form-item-control-input-content {
  display: block;
}

.ds-search-fields-grid__item .ant-select,
.ds-search-fields-grid__item .ant-input,
.ds-search-fields-grid__item .ant-input-affix-wrapper,
.ds-search-fields-grid__item .ant-picker,
.ds-search-fields-grid__item .ant-input-number {
  width: 100%;
}

.ds-search-panel .ant-pro-query-filter-row + .ant-pro-query-filter-row {
  margin-top: var(--ds-search-panel-field-gap-y);
}

.ds-search-panel .ant-pro-query-filter-row-split-line::before {
  margin-block: 0;
}

/* 查询区：placeholder 模式，隐藏 label */
.ds-search-panel .ant-pro-query-filter .ant-form-item-label {
  display: none !important;
}

.ds-search-panel .ant-pro-query-filter .ant-form-item {
  margin-bottom: 0;
}

.ds-search-panel .ant-pro-query-filter .ant-form-item-control-input {
  min-height: 32px;
}

.ds-search-panel__fields .ant-pro-query-filter-row:last-child > .ant-col {
  padding-bottom: 0 !important;
}

/* 底部操作行：左查询控制 | 右重置/查询 */
.ds-query-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  margin-top: var(--ds-search-panel-fields-footer-gap);
  padding-top: var(--ds-search-panel-fields-footer-gap);
  border-top: 1px solid var(--ds-list-block-border);
  gap: var(--ds-search-panel-block-gap);
}

.ds-query-footer__left {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: var(--ds-search-panel-block-gap);
  min-width: 0;
}

.ds-query-footer__right {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: var(--ds-search-panel-inline-gap);
}

.ds-query-footer__collapse-btn {
  padding-inline: 0;
  flex-shrink: 0;
  height: 32px;
}

.ds-saved-search-bar {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.ds-saved-search-bar__controls {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--ds-search-panel-inline-gap);
}

.ds-saved-search-bar__label {
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
  line-height: 32px;
  white-space: nowrap;
}

.ds-search-panel .ant-pro-table-search {
  box-sizing: border-box;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.ds-search-panel .ant-pro-table-search .ant-pro-card-body {
  padding: 0 !important;
}

.ds-search-panel .ant-pro-query-filter {
  width: 100%;
}

.ds-configurable-table .ant-pro-query-filter-row-split:last-child {
  margin-bottom: 0;
}

/* 查询区 / 列表区：统一外框宽度与区块间距 */
.ds-table-wrapper--sticky-list .ds-configurable-table {
  width: 100%;
}

.ds-table-wrapper > .ds-search-panel,
.ds-configurable-table > .ds-search-panel {
  margin-block-end: var(--ds-list-section-gap);
}

.ds-configurable-table > .ant-pro-table-search,
.ds-configurable-table .ds-search-panel .ant-pro-table-search {
  box-sizing: border-box;
  width: 100%;
  margin-block-end: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.ds-configurable-table > .ant-pro-table-search::before {
  display: none;
}

.ds-configurable-table > .ant-pro-card.ds-list-area {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--ds-list-block-border);
  border-radius: var(--ds-list-block-radius);
  background: #fff;
  box-shadow: none;
}

.ds-configurable-table > .ant-pro-card.ds-list-area > .ant-pro-card-body {
  padding-inline: 0;
  padding-block: 0 var(--ds-search-panel-padding-y);
}

.ds-configurable-table > .ant-pro-card.ds-list-area > .ant-pro-card-body > .ant-pro-table-list-toolbar,
.ds-configurable-table .ant-pro-table-list-toolbar {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  padding-inline: var(--ds-search-panel-padding-x);
  padding-block: 0;
  height: var(--ds-list-toolbar-min-height);
  min-height: var(--ds-list-toolbar-min-height);
  max-height: var(--ds-list-toolbar-min-height);
  background: var(--ds-list-toolbar-bg);
  border-radius: calc(var(--ds-list-block-radius) - 1px) calc(var(--ds-list-block-radius) - 1px) 0 0;
}

.ds-configurable-table .ant-pro-table-list-toolbar-container {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 0;
  padding-block: 0;
  padding-inline: 0;
  border-bottom: none;
  background: transparent;
  border-radius: 0;
}

.ds-configurable-table .ant-pro-table-list-toolbar-left {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 0;
}

.ds-configurable-table .ant-pro-table-list-toolbar-title:has(.ds-list-toolbar__actions) {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-weight: normal;
  font-size: 14px;
}

.ds-list-toolbar__actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: var(--ds-list-toolbar-gap);
}

.ds-list-toolbar__actions .ant-space {
  gap: var(--ds-list-toolbar-gap) !important;
}

.ds-list-toolbar__actions .ant-btn {
  height: var(--ds-list-toolbar-control-size);
  padding-inline: var(--ds-list-toolbar-btn-padding-inline);
  font-size: var(--ds-list-toolbar-font-size);
  line-height: calc(var(--ds-list-toolbar-control-size) - 2px);
}

.ds-list-toolbar__actions .ant-btn.ant-btn-icon-only {
  width: var(--ds-list-toolbar-control-size);
  padding-inline: 0;
}

.ds-list-toolbar__actions .ant-btn .anticon {
  font-size: var(--ds-list-toolbar-icon-size);
}

.ds-configurable-table .ant-pro-table-list-toolbar-right {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  min-height: 0;
  justify-content: flex-start;
}

.ds-configurable-table > .ant-pro-card.ds-list-area > .ant-pro-card-body > .ant-table-wrapper {
  padding-inline: var(--ds-search-panel-padding-x);
  box-sizing: border-box;
}

.ds-configurable-table .ant-pro-table-list-toolbar-setting-items {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
  line-height: 1;
}

.ds-configurable-table .ant-pro-table-list-toolbar-setting-item {
  width: var(--ds-list-toolbar-control-size);
  height: var(--ds-list-toolbar-control-size);
  line-height: var(--ds-list-toolbar-control-size);
}

.ds-configurable-table .ant-pro-table-list-toolbar-setting-item .anticon {
  font-size: var(--ds-list-toolbar-icon-size);
}

.ds-configurable-table .ant-pro-table-list-toolbar-setting-item:has(.ds-column-preset-select) {
  width: auto;
  overflow: visible;
}

.ds-column-preset-select {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-list-toolbar-gap);
  margin-inline: var(--ds-list-toolbar-control-margin-inline);
  white-space: nowrap;
}

.ds-column-preset-select__label {
  color: rgba(0, 0, 0, 0.65);
  font-size: var(--ds-list-toolbar-font-size);
}

.ds-column-preset-select .ant-select.ant-select-sm .ant-select-selector {
  height: var(--ds-list-toolbar-control-size) !important;
  min-height: var(--ds-list-toolbar-control-size) !important;
  padding-block: 0;
  font-size: var(--ds-list-toolbar-font-size);
}

.ds-column-preset-select .ant-select.ant-select-sm .ant-select-selection-item,
.ds-column-preset-select .ant-select.ant-select-sm .ant-select-selection-placeholder {
  line-height: calc(var(--ds-list-toolbar-control-size) - 2px);
}

/* 列表工具栏：全屏按钮 */
.ds-list-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ds-list-toolbar-control-size);
  height: var(--ds-list-toolbar-control-size);
  margin-inline: var(--ds-list-toolbar-control-margin-inline);
  border-radius: var(--ds-list-toolbar-control-radius);
  cursor: pointer;
  color: rgba(0, 0, 0, 0.65);
  transition: color 0.2s, background 0.2s;
}

.ds-list-fullscreen-btn:hover {
  color: rgba(0, 0, 0, 0.88);
  background: rgba(0, 0, 0, 0.06);
}

.ds-list-fullscreen-btn--active {
  color: #1677ff;
  background: rgba(22, 119, 255, 0.12);
}

.ds-list-fullscreen-btn--active:hover {
  color: #4096ff;
  background: rgba(22, 119, 255, 0.18);
}

/* 列表工具栏：列设置按钮 */
.ds-list-setting-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ds-list-toolbar-control-size);
  height: var(--ds-list-toolbar-control-size);
  margin-inline: var(--ds-list-toolbar-control-margin-inline);
  border-radius: var(--ds-list-toolbar-control-radius);
  cursor: pointer;
  color: rgba(0, 0, 0, 0.65);
  transition: color 0.2s, background 0.2s;
}

.ds-list-setting-btn:hover {
  color: rgba(0, 0, 0, 0.88);
  background: rgba(0, 0, 0, 0.06);
}

/* 列设置抽屉 */
.ds-column-setting-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ds-column-setting-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: #fff;
  transition: border-color 0.2s, background 0.2s, opacity 0.2s;
}

.ds-column-setting-item .ds-column-setting-item__label {
  flex: 1 1 88px;
  min-width: 72px;
  max-width: 108px;
  margin-inline-end: 0;
}

.ds-column-setting-item .ds-column-setting-item__label.ant-checkbox-wrapper {
  flex: 1 1 88px;
}

.ds-column-setting-item .ds-column-setting-item__label .ant-checkbox + span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-column-setting-item__max-width {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: 8px;
}

.ds-column-setting-item__max-width .ant-input-number {
  width: 88px;
}

.ds-configurable-table .ant-table-wrapper .ant-table {
  table-layout: auto;
}

.ds-configurable-table .ant-table-wrapper table {
  width: max-content;
  min-width: 100%;
}

.ds-configurable-table th.ds-index-column,
.ds-configurable-table td.ds-index-column,
.ds-configurable-table .ant-table-cell-fix-left.ds-index-column,
.ds-configurable-table .ant-table-sticky-holder th.ds-index-column,
.ds-configurable-table .ant-table-sticky-holder td.ds-index-column {
  white-space: nowrap !important;
  box-sizing: border-box;
}

.ds-configurable-table .ds-adaptive-column:not(.ds-index-column) {
  width: auto !important;
}

.ds-configurable-table th.ds-adaptive-column__header:not(.ant-table-cell-fix-left):not(.ant-table-cell-fix-right),
.ds-configurable-table td.ds-adaptive-cell:not(.ant-table-cell-fix-left):not(.ant-table-cell-fix-right) {
  width: auto !important;
  max-width: var(--ds-cell-max-width, 50ch) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-configurable-table td.ds-adaptive-cell .ant-typography {
  margin-bottom: 0;
  max-width: 100%;
}

.ds-configurable-table td.ds-adaptive-cell--loose,
.ds-table-wrapper--density-loose .ds-configurable-table td.ds-adaptive-cell {
  white-space: normal;
  text-overflow: clip;
  vertical-align: top;
}

.ds-configurable-table td.ds-adaptive-cell--loose .ant-typography,
.ds-table-wrapper--density-loose .ds-configurable-table td.ds-adaptive-cell .ant-typography {
  white-space: normal;
  word-break: break-word;
}

.ds-cell-ellipsis--loose {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  white-space: normal;
}

.ds-configurable-table .ant-table-cell-ellipsis {
  max-width: var(--ds-cell-max-width, 50ch);
}

/* 固定左/右列：保留 colgroup width，仅限制内容最大宽度 */
.ds-configurable-table .ant-table-cell-fix-left.ds-adaptive-cell,
.ds-configurable-table .ant-table-cell-fix-right.ds-adaptive-cell,
.ds-configurable-table th.ant-table-cell-fix-left.ds-adaptive-column__header,
.ds-configurable-table th.ant-table-cell-fix-right.ds-adaptive-column__header,
.ds-configurable-table .ant-table-sticky-holder .ant-table-cell-fix-left.ds-adaptive-cell,
.ds-configurable-table .ant-table-sticky-holder .ant-table-cell-fix-right.ds-adaptive-cell,
.ds-configurable-table .ant-table-sticky-holder th.ant-table-cell-fix-left.ds-adaptive-column__header,
.ds-configurable-table .ant-table-sticky-holder th.ant-table-cell-fix-right.ds-adaptive-column__header {
  min-width: 0 !important;
  max-width: var(--ds-cell-max-width, 50ch) !important;
  overflow: hidden;
}

.ds-configurable-table td.ant-table-cell-fix-left.ds-adaptive-cell--loose,
.ds-configurable-table td.ant-table-cell-fix-right.ds-adaptive-cell--loose,
.ds-configurable-table .ant-table-sticky-holder td.ant-table-cell-fix-left.ds-adaptive-cell--loose,
.ds-configurable-table .ant-table-sticky-holder td.ant-table-cell-fix-right.ds-adaptive-cell--loose {
  white-space: normal;
  text-overflow: clip;
  vertical-align: top;
}

.ds-column-setting-item__sort {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  white-space: nowrap;
}

.ds-column-setting-item__sort > .ant-checkbox-wrapper {
  flex: none;
  margin-inline-end: 0;
  font-size: 12px;
}

.ds-column-setting-item__sort .ant-radio-group-small {
  flex-shrink: 0;
}

.ds-column-setting-item__actions {
  flex-shrink: 0;
  margin-left: auto;
}

.ds-column-setting-item .ant-checkbox-wrapper:not(.ds-column-setting-item__label) {
  flex: none;
}

.ds-column-setting-item--dragging {
  opacity: 0.45;
}

.ds-column-setting-item--over {
  border-color: #1677ff;
  background: rgba(22, 119, 255, 0.06);
}

.ds-column-setting-item__drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  color: rgba(0, 0, 0, 0.35);
  cursor: grab;
  user-select: none;
}

.ds-column-setting-item__drag:active {
  cursor: grabbing;
}

.ds-column-setting-item__drag:hover {
  color: rgba(0, 0, 0, 0.65);
}

.ds-column-setting-group__title {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}

.ds-column-setting-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ds-column-setting-group + .ds-column-setting-group {
  margin-top: 12px;
}

/* 表头排序按钮 */
.ds-sortable-column-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
}

.ds-sortable-column-title__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-sortable-column-title__actions {
  display: inline-flex;
  flex-direction: column;
  flex-shrink: 0;
  line-height: 1;
  gap: 0;
}

.ds-sortable-column-title__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 12px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
}

.ds-sortable-column-title__btn:hover {
  color: #1677ff;
}

.ds-sortable-column-title__btn--active {
  color: #1677ff;
}

.ds-configurable-table .ant-table-thead > tr > th {
  overflow: visible;
}

.ds-configurable-table .ant-table-thead .ant-table-cell {
  overflow: visible;
}

.ds-configurable-table .ant-table-thead .ds-sortable-column-title {
  width: 100%;
}

.ds-cell-ellipsis {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.ds-configurable-table .ant-table-thead .ds-sortable-column-title__btn {
  vertical-align: middle;
}

.ds-configurable-table .ant-pro-card-body {
  display: flex;
  flex-direction: column;
}

.ds-configurable-table .ant-table-wrapper {
  flex: 1;
  min-height: 0;
}

.ds-table-wrapper--sticky-list .ds-list-area {
  overflow: visible;
}

.ds-table-wrapper--sticky-list .ds-list-area .ant-pro-card-body {
  overflow: visible;
}

/* 列表工具栏 + 表头：滚动后固定在顶栏下方 */
.ds-table-wrapper--sticky-list .ds-list-area .ant-pro-table-list-toolbar {
  position: sticky;
  top: var(--ds-sticky-top, 0);
  z-index: 35;
  background: var(--ds-list-toolbar-bg);
}

.ds-table-wrapper--sticky-list .ds-list-area .ant-pro-table-list-toolbar-container {
  border-bottom: none;
  background: transparent;
}

.ds-table-wrapper--sticky-list .ds-list-area .ant-table-sticky-holder {
  z-index: 30 !important;
}

.ds-table-wrapper--sticky-list .ds-list-area .ant-table-sticky-holder .ant-table-thead > tr > th {
  background: #fff;
}

/* 底部分页栏：固定在页面底部 */
.ds-table-wrapper--sticky-list .ds-list-pagination-bar {
  position: fixed;
  bottom: 0;
  left: var(--ds-pagination-left, 0);
  width: var(--ds-pagination-width, 100%);
  z-index: 25;
  flex-shrink: 0;
  margin: 0 !important;
  padding: 12px 24px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
  justify-content: flex-end;
  box-sizing: border-box;
}

.ds-configurable-table .ant-pagination:not(.ds-list-pagination-bar) {
  flex-shrink: 0;
  margin: 16px 0 0;
  padding: 12px 16px 0;
  border-top: 1px solid #f0f0f0;
  justify-content: flex-end;
}

/* 列表全屏：仅列表卡片（标题 + 工具栏 + 表头 + 内容），不含上方查询区 */
.ds-list-area.ds-list-area--fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh;
  padding: 16px 24px;
  background: #fff;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

.ds-list-area.ds-list-area--fullscreen .ant-pro-card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ds-list-area.ds-list-area--fullscreen .ant-pro-table-list-toolbar-container,
.ds-list-area.ds-list-area--fullscreen .ant-pro-table-list-toolbar {
  position: relative;
  top: auto;
  flex-shrink: 0;
}

.ds-list-area.ds-list-area--fullscreen .ant-pro-table-list-toolbar {
  border-radius: 0;
}

.ds-list-area.ds-list-area--fullscreen .ant-table-wrapper {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.ds-list-area.ds-list-area--fullscreen .ant-table-sticky-holder,
.ds-list-area.ds-list-area--fullscreen .ant-table-header {
  top: 0 !important;
}

.ds-table-wrapper--fullscreen .ds-list-area.ds-list-area--fullscreen .ant-pro-card-body {
  position: relative;
  padding-bottom: var(--ds-pagination-height, 52px);
}

.ds-table-wrapper--fullscreen .ds-list-area.ds-list-area--fullscreen .ds-list-pagination-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100% !important;
  box-shadow: none;
}

body.ds-list-fullscreen-active {
  overflow: hidden;
}

/* 查询/列设置抽屉 */
.ds-search-config-drawer .ant-drawer-body {
  padding-top: 0;
}

.ds-search-config-drawer__tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-bottom: 20px;
  padding: 12px 0 8px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.ds-search-config-drawer__tabs .ant-tabs-nav {
  margin-bottom: 0;
}

.ds-search-config-drawer__tabs .ant-tabs-nav::before {
  border-bottom: none;
}

.ds-search-preset-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 120px;
}

.ds-search-preset-tab__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-search-preset-tab__close {
  flex-shrink: 0;
  padding: 2px;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.ds-search-preset-tab__close:hover {
  color: rgba(0, 0, 0, 0.65);
  background: rgba(0, 0, 0, 0.06);
}

.ds-search-config-drawer__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ds-search-config-drawer__fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.ds-search-config-drawer__save {
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

/* 抽屉内 Toast：顶部居中 */
.ds-drawer-message-host {
  position: relative;
  min-height: 100%;
}

.ds-drawer-toast {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12);
  transform: translateX(-50%);
  pointer-events: none;
  animation: ds-drawer-toast-in 0.2s ease;
}

.ds-drawer-toast__icon {
  display: inline-flex;
  font-size: 16px;
  line-height: 1;
}

.ds-drawer-toast__content {
  color: rgba(0, 0, 0, 0.88);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

.ds-drawer-toast--success .ds-drawer-toast__icon {
  color: #52c41a;
}

.ds-drawer-toast--warning .ds-drawer-toast__icon {
  color: #faad14;
}

.ds-drawer-toast--error .ds-drawer-toast__icon {
  color: #ff4d4f;
}

.ds-drawer-toast--info .ds-drawer-toast__icon {
  color: #1677ff;
}

@keyframes ds-drawer-toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 侧边栏底部：主题切换 */
.ant-pro-sider-footer {
  flex-shrink: 0;
  padding: 0;
}

/* 侧边栏品牌区：Logo + 标题 + 右上角收起按钮 */
.ant-pro-sider-logo {
  width: auto !important;
  height: auto !important;
  min-height: 56px;
  align-items: center !important;
}

.ant-pro-sider-logo-collapsed {
  flex-direction: column !important;
  align-items: stretch !important;
}

.ds-sider-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 32px;
}

.ds-sider-brand-bar--collapsed {
  justify-content: center;
}

.ds-sider-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  min-height: 32px;
  color: inherit;
  text-decoration: none;
}

.ds-sider-brand:hover {
  color: inherit;
}

.ds-sider-brand__logo {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.ds-sider-brand__logo svg,
.ds-sider-brand__logo img,
.ds-app-logo {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.ds-sider-brand__logo--wordmark {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  /* 透出侧栏背景（浅色白 / 深色 sider），避免黑底色块 */
  background: transparent;
}

.ds-sider-brand__logo--wordmark .ds-app-logo {
  height: 28px;
  max-width: 148px;
  border-radius: 0;
  background: transparent;
}

.ds-sider-brand__title {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 品牌栏右上角收起/展开按钮（非侧边外缘浮动） */
.ds-sider-collapse-btn {
  position: static;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background: #fff;
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.ds-sider-collapse-btn:hover {
  color: #1677ff;
  border-color: #1677ff;
  background: #fff;
  box-shadow: 0 2px 6px rgba(22, 119, 255, 0.15);
}

[data-theme='dark'] .ds-sider-collapse-btn {
  border-color: rgba(255, 255, 255, 0.16);
  background: #252529;
  color: rgba(255, 255, 255, 0.75);
  box-shadow: none;
}

[data-theme='dark'] .ds-sider-collapse-btn:hover {
  color: #6b93e5;
  border-color: #6b93e5;
  background: #2a2a30;
}

:root {
  --ds-app-sticky-header-height: 48px;
  --ds-menu-card-primary: #1677ff;
  --ds-menu-card-primary-soft: rgba(22, 119, 255, 0.1);
  --ds-page-content-gap: 16px;
  /* 查询区统一间距：16 外边距 / 12 区块间 / 8 行内控件 */
  --ds-search-panel-padding-x: 24px;
  --ds-search-panel-padding-y: 16px;
  --ds-search-panel-block-gap: 12px;
  --ds-search-panel-inline-gap: 8px;
  --ds-search-panel-field-gap-x: 16px;
  --ds-search-panel-field-gap-y: 12px;
  /* 条件区与底部操作栏（收起/组合/查询）间距 */
  --ds-search-panel-fields-footer-gap: 8px;
  --ds-search-cols: 4;
  --ds-list-toolbar-bg: #fafafa;
  --ds-list-toolbar-min-height: 42px;
  --ds-list-toolbar-control-size: 28px;
  --ds-list-toolbar-gap: 8px;
  --ds-list-toolbar-icon-size: 14px;
  --ds-list-toolbar-font-size: 14px;
  --ds-list-toolbar-btn-padding-inline: 13px;
  --ds-list-toolbar-control-margin-inline: 4px;
  --ds-list-toolbar-control-radius: 5px;
  /* 查询区与列表区之间间距 */
  --ds-list-section-gap: 12px;
  --ds-list-block-border: #f0f0f0;
  --ds-list-block-radius: 8px;
}

.ds-app-sticky-header {
  position: sticky;
  top: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--ds-app-sticky-header-height);
  padding: 0 16px 0 24px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  box-sizing: border-box;
}

.ds-app-sticky-header__user {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ds-app-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(0, 0, 0, 0.65);
  font-size: 16px;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.ds-app-fullscreen-btn:hover {
  color: #1677ff;
  background: rgba(22, 119, 255, 0.1);
}

.ds-app-fullscreen-btn--active {
  color: #1677ff;
  background: rgba(22, 119, 255, 0.12);
}

[data-theme='dark'] .ds-app-fullscreen-btn {
  color: var(--ds-dark-text-secondary);
}

[data-theme='dark'] .ds-app-fullscreen-btn:hover,
[data-theme='dark'] .ds-app-fullscreen-btn--active {
  color: var(--ds-dark-primary);
  background: var(--ds-dark-primary-soft);
}

/* 浏览器原生全屏：系统界面撑满整个显示器（保留侧边栏与顶栏）
 * 滚动策略与非全屏一致：由 document/body 滚动，避免内部 flex 高度链裁切导致无法滚动。 */
html:fullscreen,
html:-webkit-full-screen {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  overflow: hidden;
}

html:fullscreen body,
html:-webkit-full-screen body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

html:fullscreen #root,
html:-webkit-full-screen #root {
  min-height: 100%;
  height: auto;
}

html:fullscreen .ant-pro-layout,
html:-webkit-full-screen .ant-pro-layout,
html:fullscreen .ant-pro-layout .ant-layout,
html:-webkit-full-screen .ant-pro-layout .ant-layout,
html:fullscreen .ant-pro-layout .ant-pro-layout-container,
html:-webkit-full-screen .ant-pro-layout .ant-pro-layout-container,
html:fullscreen .ant-pro-layout .ant-pro-layout-content,
html:-webkit-full-screen .ant-pro-layout .ant-pro-layout-content {
  min-height: 100%;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

html:fullscreen .ds-page-shell,
html:-webkit-full-screen .ds-page-shell {
  min-height: 100%;
  height: auto;
  overflow: visible;
}

html:fullscreen .ds-page-shell__body,
html:-webkit-full-screen .ds-page-shell__body {
  flex: none;
  min-height: 0;
  overflow: visible;
}

/* class 兜底与 :fullscreen 保持同一滚动模型 */
body.ds-app-fullscreen-active {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body.ds-app-fullscreen-active .ds-page-shell,
body.ds-app-fullscreen-active .ds-page-shell__body {
  overflow: visible;
}

html:fullscreen .ant-pro-layout-content:has(.ds-app-page.ds-dashboard-page),
html:-webkit-full-screen .ant-pro-layout-content:has(.ds-app-page.ds-dashboard-page) {
  height: auto !important;
}

html:fullscreen .ds-dashboard-viewport,
html:-webkit-full-screen .ds-dashboard-viewport {
  --ds-dashboard-height: calc(100% - var(--ds-app-sticky-header-height));
  height: var(--ds-dashboard-height);
}

[data-theme='dark'] html:fullscreen,
[data-theme='dark'] html:-webkit-full-screen {
  background: var(--ds-dark-bg-page);
}

.ds-menu-card-bar {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.ds-menu-card-bar__scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 0;
  scrollbar-width: thin;
}

.ds-menu-card-bar__scroll::-webkit-scrollbar {
  height: 4px;
}

.ds-menu-card {
  display: inline-flex;
  align-items: center;
  max-width: 200px;
  min-width: 0;
  flex-shrink: 0;
  height: 28px;
  padding: 0 4px 0 10px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fafafa;
  color: rgba(0, 0, 0, 0.65);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.ds-menu-card--active {
  color: var(--ds-menu-card-primary);
  background: var(--ds-menu-card-primary-soft);
  border-color: var(--ds-menu-card-primary);
}

.ds-menu-card__label {
  min-width: 0;
  flex: 1;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.ds-menu-card__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: 2px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  font-size: 10px;
  cursor: pointer;
  opacity: 0.55;
  transition:
    opacity 0.2s ease,
    background 0.2s ease;
}

.ds-menu-card__close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.ds-menu-card--active .ds-menu-card__close:hover {
  background: rgba(22, 119, 255, 0.16);
}

.ds-menu-card-viewport {
  flex: 1;
  min-width: 0;
  min-height: 0;
  background: #fff;
}

/* 顶栏与页面内容间距：Pro Layout 默认 32px，减半为 16px */
.ds-app-page .ant-pro-page-container-children-container,
.ds-app-page .ant-pro-page-container-children-container-no-header {
  padding-inline: 24px;
  padding-block-start: var(--ds-page-content-gap);
  padding-block-end: var(--ds-page-content-gap);
}

/* 非 ConfigurableProTable 列表页：对齐包裹中心工具栏高度 */
.ds-list-page-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  margin-block-end: 16px;
  padding-block: 12px;
  border-bottom: 1px solid #f0f0f0;
  box-sizing: border-box;
}

.ds-list-page-toolbar__main {
  min-width: 0;
  flex: 1;
}

.ds-list-page-toolbar__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.88);
}

.ds-list-page-toolbar__sub {
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.45);
}

.ds-list-page-toolbar__extra {
  flex-shrink: 0;
}

.ds-list-page-desc {
  margin-block: 0 16px !important;
}

[data-theme='dark'] .ds-list-page-toolbar {
  border-bottom-color: var(--ds-dark-border-subtle);
}

[data-theme='dark'] .ds-list-page-toolbar__title {
  color: var(--ds-dark-text);
}

[data-theme='dark'] .ds-list-page-toolbar__sub {
  color: var(--ds-dark-text-secondary);
}

[data-theme='dark'] .ds-app-sticky-header {
  background: var(--ds-dark-bg-surface);
  border-bottom-color: var(--ds-dark-border-subtle);
}

[data-theme='dark'] .ds-menu-card {
  background: var(--ds-dark-bg-elevated, #222226);
  border-color: var(--ds-dark-border-subtle);
  color: var(--ds-dark-text-secondary);
}

[data-theme='dark'] .ds-menu-card--active {
  --ds-menu-card-primary: var(--ds-dark-primary);
  color: var(--ds-dark-primary);
  background: var(--ds-dark-primary-soft);
}

[data-theme='dark'] .ds-menu-card__close:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme='dark'] .ds-menu-card-viewport {
  background: var(--ds-dark-bg-base, #141414);
}

/* 主内容区：sticky 顶栏 + 页面主体 */
.ds-page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.ds-page-shell__body {
  flex: 1;
  min-width: 0;
}

.ds-app-sticky-header__breadcrumb {
  min-width: 0;
  flex: 1;
}

[data-theme='dark'] .ds-app-sticky-header .ant-breadcrumb a,
[data-theme='dark'] .ds-app-sticky-header .ant-breadcrumb li,
[data-theme='dark'] .ds-app-sticky-header .ant-breadcrumb-separator {
  color: var(--ds-dark-text-secondary);
}

[data-theme='dark'] .ds-app-sticky-header .ant-breadcrumb li:last-child {
  color: var(--ds-dark-text);
}

.ant-pro-layout .ant-pro-layout-container .ds-page-shell {
  min-height: 100%;
}

.ds-menu-theme-footer {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.ds-menu-theme-footer--collapsed {
  justify-content: center;
  padding-inline: 8px;
}

.ds-locale-theme-settings {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.ds-locale-theme-settings__actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.ds-locale-theme-settings__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.ds-locale-theme-settings__summary {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.ds-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ds-page-bg, #f5f5f5);
  padding: 24px;
}

.ds-login-stack {
  width: 400px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ds-login-card {
  width: 100%;
}

.ds-login-card__title {
  text-align: center;
  margin-bottom: 8px !important;
}

.ds-login-card__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  /* 与登录卡片底色一致（Ant Card / 深色 elevated） */
  background: transparent;
}

.ds-login-card__brand .ds-app-logo {
  height: 56px;
  max-width: 280px;
  border-radius: 0;
  background: transparent;
}

.ds-login-card__subtitle {
  display: block;
  text-align: center;
  margin-bottom: 32px;
}

.ds-login-preferences-card .ant-card-body {
  padding: 12px 16px;
}

[data-theme='dark'] .ds-menu-theme-footer {
  border-top-color: var(--ds-dark-border-subtle);
}

[data-theme='dark'] .ds-locale-theme-settings__summary {
  color: var(--ds-dark-text-secondary);
}

[data-theme='dark'] .ds-login-page {
  background: var(--ds-dark-bg-base, #141414);
}

.ds-header-user-menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s;
}

.ds-header-user-menu--avatar-only {
  gap: 0;
  padding: 4px;
}

.ds-header-user-menu:hover {
  background: rgba(0, 0, 0, 0.04);
}

.ds-header-user-menu__avatar {
  flex-shrink: 0;
}

.ds-header-user-dropdown {
  min-width: 220px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  box-shadow:
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
}

.ds-header-user-dropdown__profile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid #f0f0f0;
}

.ds-header-user-dropdown__field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ds-header-user-dropdown__label {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.45);
}

.ds-header-user-dropdown__value {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ds-header-user-dropdown__logout {
  justify-content: flex-start;
  height: 36px;
  padding-inline: 8px;
  color: rgba(0, 0, 0, 0.88);
}

.ds-header-user-dropdown__logout:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}

[data-theme='dark'] .ds-header-user-menu:hover {
  background: var(--ds-dark-hover-bg);
}

[data-theme='dark'] .ds-header-user-dropdown {
  background: var(--ds-dark-bg-elevated);
  box-shadow: 0 8px 24px var(--ds-dark-shadow);
}

[data-theme='dark'] .ds-header-user-dropdown__profile {
  border-bottom-color: var(--ds-dark-border-subtle);
}

[data-theme='dark'] .ds-header-user-dropdown__label {
  color: var(--ds-dark-text-secondary);
}

[data-theme='dark'] .ds-header-user-dropdown__value {
  color: var(--ds-dark-text);
}

[data-theme='dark'] .ds-header-user-dropdown__logout {
  color: var(--ds-dark-text);
}

[data-theme='dark'] .ds-header-user-dropdown__logout:hover {
  background: var(--ds-dark-hover-bg) !important;
}

/* 深色模式：自定义组件样式覆盖 */
[data-theme='dark'] .ds-search-panel {
  background: var(--ds-dark-bg-elevated);
  border-color: var(--ds-list-block-border);
}

[data-theme='dark'] .ds-configurable-table > .ant-pro-card.ds-list-area {
  background: var(--ds-dark-bg-surface);
  border-color: var(--ds-list-block-border);
}

[data-theme='dark'] .ds-query-footer {
  border-top-color: var(--ds-dark-border-subtle);
}


[data-theme='dark'] .ds-column-preset-select__label,
[data-theme='dark'] .ds-saved-search-bar__label {
  color: var(--ds-dark-text-secondary);
}

[data-theme='dark'] .ds-list-fullscreen-btn,
[data-theme='dark'] .ds-list-setting-btn {
  color: var(--ds-dark-text-secondary);
}

[data-theme='dark'] .ds-list-fullscreen-btn:hover,
[data-theme='dark'] .ds-list-setting-btn:hover {
  color: var(--ds-dark-text);
  background: var(--ds-dark-hover-bg);
}

[data-theme='dark'] .ds-list-fullscreen-btn--active {
  color: var(--ds-dark-primary);
  background: var(--ds-dark-primary-soft);
}

[data-theme='dark'] .ds-list-fullscreen-btn--active:hover {
  color: #8aa8ee;
  background: rgba(107, 147, 229, 0.2);
}

[data-theme='dark'] .ds-column-setting-item {
  background: var(--ds-dark-bg-input);
}

[data-theme='dark'] .ds-column-setting-item--over {
  border-color: var(--ds-dark-primary);
  background: var(--ds-dark-primary-soft);
}

[data-theme='dark'] .ds-column-setting-item__drag {
  color: var(--ds-dark-text-muted);
}

[data-theme='dark'] .ds-column-setting-item__drag:hover {
  color: var(--ds-dark-text-secondary);
}

[data-theme='dark'] .ds-sortable-column-title__btn {
  color: var(--ds-dark-text-muted);
}

[data-theme='dark'] .ds-sortable-column-title__btn:hover,
[data-theme='dark'] .ds-sortable-column-title__btn--active {
  color: var(--ds-dark-primary);
}

[data-theme='dark'] .ds-table-wrapper--sticky-list .ds-list-area .ant-pro-table-list-toolbar {
  background: var(--ds-list-toolbar-bg);
}

[data-theme='dark'] .ds-table-wrapper--sticky-list .ds-list-area .ant-table-sticky-holder .ant-table-thead > tr > th {
  background: var(--ds-dark-bg-surface);
}

[data-theme='dark'] .ds-table-wrapper--sticky-list .ds-list-pagination-bar {
  background: var(--ds-dark-bg-surface);
  border-top-color: var(--ds-dark-border-subtle);
  box-shadow: 0 -2px 8px var(--ds-dark-shadow);
}

[data-theme='dark'] .ds-configurable-table .ant-pagination:not(.ds-list-pagination-bar) {
  border-top-color: var(--ds-dark-border-subtle);
}

[data-theme='dark'] .ds-list-area.ds-list-area--fullscreen {
  background: var(--ds-dark-bg-surface);
}

[data-theme='dark'] .ds-search-preset-tab__close {
  color: var(--ds-dark-text-muted);
}

[data-theme='dark'] .ds-search-preset-tab__close:hover {
  color: var(--ds-dark-text-secondary);
  background: var(--ds-dark-hover-bg);
}

[data-theme='dark'] .ds-search-config-drawer__save {
  border-top-color: var(--ds-dark-border-subtle);
}

[data-theme='dark'] .ds-search-config-drawer__tabs {
  background: var(--ds-dark-bg-surface);
  border-bottom-color: var(--ds-dark-border-subtle);
}

[data-theme='dark'] .ds-drawer-toast {
  background: var(--ds-dark-bg-elevated);
  box-shadow:
    0 6px 16px var(--ds-dark-shadow),
    0 3px 6px -4px rgba(0, 0, 0, 0.18);
}

[data-theme='dark'] .ds-drawer-toast__content {
  color: var(--ds-dark-text);
}

/* 深色模式：ProLayout / 表格 / 标签等全局微调 */
[data-theme='dark'] .ant-pro-layout .ant-pro-layout-bg-list {
  background: var(--ds-dark-bg-page);
}

[data-theme='dark'] .ant-pro-page-container-children-content {
  background: transparent;
}

[data-theme='dark'] .ant-table-thead > tr > th {
  font-weight: 500;
}

[data-theme='dark'] .ant-table-tbody > tr > td {
  border-bottom-color: var(--ds-dark-border-subtle);
}

[data-theme='dark'] .ant-tag {
  border-color: transparent;
}

[data-theme='dark'] .ant-tag-blue,
[data-theme='dark'] .ant-tag-processing {
  color: #9bb8f0;
  background: rgba(107, 147, 229, 0.16);
}

[data-theme='dark'] .ant-tag-green,
[data-theme='dark'] .ant-tag-success {
  color: #7ec99a;
  background: rgba(93, 184, 122, 0.16);
}

[data-theme='dark'] .ant-tag-orange,
[data-theme='dark'] .ant-tag-warning {
  color: #ddb86a;
  background: rgba(212, 162, 76, 0.16);
}

[data-theme='dark'] .ant-tag-red,
[data-theme='dark'] .ant-tag-error {
  color: #e09898;
  background: rgba(217, 112, 112, 0.16);
}

[data-theme='dark'] .ant-tag-default {
  color: var(--ds-dark-text-secondary);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme='dark'] .ant-pro-sider-footer {
  background: #18181c;
}

[data-theme='dark'] .ant-pro-sider.ant-layout-sider-dark,
[data-theme='dark'] .ant-pro-sider .ant-layout-sider-children {
  background: #18181c !important;
}

[data-theme='dark'] .ant-pro-sider .ant-menu-dark {
  background: #18181c;
}

[data-theme='dark'] .ant-pro-sider .ant-menu-dark .ant-menu-item-selected {
  background: rgba(107, 147, 229, 0.16) !important;
}

[data-theme='dark'] .ant-pro-sider .ant-menu-dark .ant-menu-item:not(.ant-menu-item-selected):hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

[data-theme='dark'] .ant-pro-layout .ant-pro-layout-content {
  background: var(--ds-dark-bg-page);
}

/* 国际化配置：语言策略面板 */
.ds-i18n-policy-panel {
  padding: 20px 24px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}

.ds-i18n-policy-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.ds-i18n-policy-desc {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

[data-theme='dark'] .ds-i18n-policy-panel {
  background: var(--ds-dark-bg-surface);
  border-color: var(--ds-dark-border-subtle);
}

[data-theme='dark'] .ds-i18n-policy-desc {
  border-top-color: var(--ds-dark-border-subtle);
}

.ds-i18n-policy-table .ant-table-thead > tr > th:last-child,
.ds-i18n-policy-table .ant-table-tbody > tr > td:last-child {
  text-align: right;
}

.ds-i18n-entries-wrap {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

.ds-i18n-entries-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.ds-i18n-entry-search {
  width: 400px;
  max-width: 100%;
  flex-shrink: 0;
}

.ds-i18n-entries-toolbar__actions {
  margin-left: auto;
}

.ds-i18n-entries-table .ant-pro-card-body {
  padding-inline: 0;
}

.ds-i18n-entries-table.ant-pro-table .ant-pro-table-search {
  margin: 0;
}

[data-theme='dark'] .ds-i18n-entries-wrap {
  background: var(--ds-dark-bg-surface);
  border-color: var(--ds-dark-border-subtle);
}

[data-theme='dark'] .ds-i18n-entries-toolbar {
  border-bottom-color: var(--ds-dark-border-subtle);
}

/* 工作台看板 */
:root {
  --ds-dash-surface: #ffffff;
  --ds-dash-surface-muted: #fafafa;
  --ds-dash-border: #f0f0f0;
  --ds-dash-border-subtle: #f5f5f5;
  --ds-dash-text: rgba(0, 0, 0, 0.88);
  --ds-dash-text-secondary: rgba(0, 0, 0, 0.65);
  --ds-dash-text-muted: rgba(0, 0, 0, 0.45);
  --ds-dash-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 2px 8px rgba(0, 0, 0, 0.04);
  --ds-dash-primary: #1677ff;
  --ds-dash-primary-soft: rgba(22, 119, 255, 0.1);
  --ds-dash-cyan: #13c2c2;
  --ds-dash-cyan-soft: rgba(19, 194, 194, 0.1);
  --ds-dash-blue: #4096ff;
  --ds-dash-blue-soft: rgba(64, 150, 255, 0.1);
  --ds-dash-success: #52c41a;
  --ds-dash-success-soft: rgba(82, 196, 26, 0.1);
  --ds-dash-warning: #faad14;
  --ds-dash-warning-soft: rgba(250, 173, 20, 0.12);
  --ds-dash-error: #ff4d4f;
  --ds-dash-chart-primary: #1677ff;
  --ds-dash-chart-cyan: #13c2c2;
  --ds-dash-chart-yellow: #fadb14;
  --ds-dash-chart-success: #52c41a;
  --ds-dash-chart-warning: #faad14;
  --ds-dash-chart-purple: #722ed1;
  --ds-dash-pipeline-china: #1677ff;
  --ds-dash-pipeline-dest: #52c41a;
  --ds-dash-transport-sea: #722ed1;
  --ds-dash-transport-land: #fa8c16;
  --ds-dash-transport-air: #13c2c2;
  --ds-dash-track: #f0f0f0;
  --ds-dash-up: #52c41a;
  --ds-dash-down: #ff4d4f;
}

:root[data-theme='dark'] {
  --ds-dash-surface: var(--ds-dark-bg-surface);
  --ds-dash-surface-muted: var(--ds-dark-bg-elevated);
  --ds-dash-border: var(--ds-dark-border-subtle);
  --ds-dash-border-subtle: #2a2a2e;
  --ds-dash-text: var(--ds-dark-text);
  --ds-dash-text-secondary: var(--ds-dark-text-secondary);
  --ds-dash-text-muted: var(--ds-dark-text-muted);
  --ds-dash-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  --ds-dash-primary: #6b93e5;
  --ds-dash-primary-soft: rgba(107, 147, 229, 0.14);
  --ds-dash-cyan: #5db8b8;
  --ds-dash-cyan-soft: rgba(93, 184, 184, 0.14);
  --ds-dash-blue: #7aa3eb;
  --ds-dash-blue-soft: rgba(122, 163, 235, 0.14);
  --ds-dash-success: #5db87a;
  --ds-dash-success-soft: rgba(93, 184, 122, 0.14);
  --ds-dash-warning: #d4a24c;
  --ds-dash-warning-soft: rgba(212, 162, 76, 0.14);
  --ds-dash-error: #d97070;
  --ds-dash-chart-primary: #6b93e5;
  --ds-dash-chart-cyan: #5db8b8;
  --ds-dash-chart-yellow: #d4c24c;
  --ds-dash-chart-success: #5db87a;
  --ds-dash-chart-warning: #d4a24c;
  --ds-dash-chart-purple: #9b7ad0;
  --ds-dash-pipeline-china: #6b93e5;
  --ds-dash-pipeline-dest: #5db87a;
  --ds-dash-transport-sea: #9b7ad0;
  --ds-dash-transport-land: #d4a24c;
  --ds-dash-transport-air: #5db8b8;
  --ds-dash-track: #2c2c32;
  --ds-dash-up: #5db87a;
  --ds-dash-down: #d97070;
}

.ds-dashboard-page.ant-pro-page-container,
.ds-dashboard-page .ant-pro-page-container-warp,
.ds-app-page.ds-dashboard-page .ant-pro-page-container-children-container,
.ds-app-page.ds-dashboard-page .ant-pro-page-container-children-container-no-header {
  padding-block-start: 0 !important;
  padding-inline: clamp(12px, 1.5vw, 24px);
  padding-block-end: var(--ds-page-content-gap);
}

.ds-app-page.ds-dashboard-page .ant-pro-page-container-children-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.ds-dashboard-page .ant-pro-page-container-children-container-no-header {
  padding-block-start: 0 !important;
  padding-inline: clamp(12px, 1.5vw, 24px);
}

.ds-dashboard-page .ant-pro-page-container-children-content {
  padding-block: 0;
  padding-inline: clamp(12px, 1.5vw, 24px);
  padding-bottom: clamp(8px, 1vh, 16px);
}

/* 工作台视口：扣除顶栏后一屏展示 */
.ds-dashboard-viewport {
  --ds-dashboard-height: calc(100svh - var(--ds-app-sticky-header-height) - 10px);
  flex: 1;
  height: var(--ds-dashboard-height);
  min-height: 680px;
  min-width: 0;
}

.ds-dashboard-layout {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(10px, 1.2vh, 14px);
  height: 100%;
  min-height: 0;
}

.ds-dashboard-section--kpi {
  margin-top: 0;
  width: 100%;
}

.ds-dashboard-section--kpi > .ds-dashboard-kpi-row {
  width: 100%;
  min-height: clamp(72px, 9vh, 96px);
}

.ds-dashboard-section--main {
  min-height: 0;
}

.ds-dashboard-section--main > .ds-dashboard-main-grid {
  flex: 1;
  height: 100%;
}

/* 第二、三行：左侧图表+双卡，右侧员工报表跨两行 */
.ds-dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 30%);
  grid-template-rows: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(10px, 1.2vh, 14px);
  min-height: 0;
  height: 100%;
}

.ds-dashboard-chart-slot {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ds-dashboard-chart-slot > * {
  flex: 1;
  min-height: 0;
}

.ds-dashboard-bottom-left {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 16px);
  min-width: 0;
  min-height: 0;
}

.ds-dashboard-bottom-left > * {
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.ds-dashboard-employee-slot {
  grid-column: 2;
  grid-row: 1 / -1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ds-dashboard-employee-slot > * {
  flex: 1;
  min-height: 0;
}

.ds-page-shell__body:has(.ds-app-page.ds-dashboard-page) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.ds-page-shell:has(.ds-app-page.ds-dashboard-page) {
  height: calc(100svh - 0px);
  min-height: 0;
}

.ant-pro-layout-content:has(.ds-app-page.ds-dashboard-page) {
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 0;
  box-sizing: border-box;
}

.ds-dashboard-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.ds-dashboard-section > * {
  flex: 1;
  min-height: 0;
  min-width: 0;
}

@media (max-width: 1199px) {
  .ds-dashboard-main-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .ds-dashboard-chart-slot,
  .ds-dashboard-bottom-left,
  .ds-dashboard-employee-slot {
    grid-column: 1;
    grid-row: auto;
  }

  .ds-dashboard-bottom-left {
    grid-template-columns: 1fr;
  }

  .ds-dashboard-employee-slot {
    min-height: 280px;
  }

  .ds-dashboard-bottom-left > *,
  .ds-dashboard-chart-slot > * {
    min-height: 260px;
  }
}

.ds-dashboard-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 16px);
  align-items: stretch;
  width: 100%;
}

@media (max-width: 1400px) {
  .ds-dashboard-kpi-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ds-dashboard-kpi__main {
    padding: clamp(10px, 1.2vh, 16px) clamp(12px, 1.2vw, 18px) clamp(8px, 1vh, 14px);
  }

  .ds-dashboard-kpi__value {
    font-size: clamp(20px, 2vw, 26px);
  }
}

@media (max-width: 992px) {
  .ds-dashboard-viewport {
    height: auto;
    min-height: 0;
  }

  .ds-dashboard-layout {
    height: auto;
    grid-template-rows: auto;
  }

  .ds-dashboard-kpi-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ds-dashboard-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .ds-dashboard-kpi-row {
    grid-template-columns: 1fr;
  }
}

/* KPI 卡片 */
.ds-dashboard-kpi {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  background: var(--ds-dash-surface);
  border: 1px solid var(--ds-dash-border);
  border-radius: 10px;
  box-shadow: var(--ds-dash-shadow);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ds-dashboard-kpi:hover {
  border-color: var(--ds-dash-border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ds-dashboard-kpi__accent {
  width: 3px;
  flex-shrink: 0;
  background: var(--ds-dash-primary);
}

.ds-dashboard-kpi--primary .ds-dashboard-kpi__accent { background: var(--ds-dash-primary); }
.ds-dashboard-kpi--cyan .ds-dashboard-kpi__accent { background: var(--ds-dash-cyan); }
.ds-dashboard-kpi--blue .ds-dashboard-kpi__accent { background: var(--ds-dash-blue); }
.ds-dashboard-kpi--success .ds-dashboard-kpi__accent { background: var(--ds-dash-success); }
.ds-dashboard-kpi--warning .ds-dashboard-kpi__accent { background: var(--ds-dash-warning); }

.ds-dashboard-kpi__main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  padding: clamp(8px, 1vh, 12px) clamp(10px, 1.2vw, 14px);
}

.ds-dashboard-kpi__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-dashboard-kpi__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 14px;
  flex-shrink: 0;
}

.ds-dashboard-kpi--primary .ds-dashboard-kpi__icon {
  color: var(--ds-dash-primary);
  background: var(--ds-dash-primary-soft);
}
.ds-dashboard-kpi--cyan .ds-dashboard-kpi__icon {
  color: var(--ds-dash-cyan);
  background: var(--ds-dash-cyan-soft);
}
.ds-dashboard-kpi--blue .ds-dashboard-kpi__icon {
  color: var(--ds-dash-blue);
  background: var(--ds-dash-blue-soft);
}
.ds-dashboard-kpi--success .ds-dashboard-kpi__icon {
  color: var(--ds-dash-success);
  background: var(--ds-dash-success-soft);
}
.ds-dashboard-kpi--warning .ds-dashboard-kpi__icon {
  color: var(--ds-dash-warning);
  background: var(--ds-dash-warning-soft);
}

.ds-dashboard-kpi__title {
  font-size: 13px;
  line-height: 1.4;
}

.ds-dashboard-kpi__value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.ds-dashboard-kpi__value {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1;
  color: var(--ds-dash-text);
  letter-spacing: -0.02em;
}

.ds-dashboard-sparkline__area {
  opacity: 0.12;
}

.ds-dashboard-kpi__compare {
  display: block;
  margin-top: 2px;
  font-size: 11px;
}

.ds-dashboard-kpi__compare--up { color: var(--ds-dash-up); }
.ds-dashboard-kpi__compare--down { color: var(--ds-dash-down); }
.ds-dashboard-kpi__compare--flat { color: var(--ds-dash-text-muted); }

/* 看板面板 */
.ds-dashboard-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ds-dash-surface);
  border: 1px solid var(--ds-dash-border);
  border-radius: 10px;
  box-shadow: var(--ds-dash-shadow);
  box-sizing: border-box;
  overflow: hidden;
}

.ds-dashboard-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: clamp(10px, 1.2vh, 14px) clamp(14px, 1.5vw, 20px);
  border-bottom: 1px solid var(--ds-dash-border);
  background: var(--ds-dash-surface-muted);
}

.ds-dashboard-panel__title {
  font-size: clamp(13px, 1.1vw, 15px);
  color: var(--ds-dash-text);
}

.ds-dashboard-panel__body {
  flex: 1 1 auto;
  padding: clamp(10px, 1.2vh, 16px) clamp(14px, 1.5vw, 20px) clamp(12px, 1.4vh, 20px);
  min-height: 0;
  overflow: auto;
}

.ds-dashboard-panel--finance .ds-dashboard-panel__body {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vh, 12px);
  justify-content: flex-start;
}

.ds-dashboard-panel--chart .ds-dashboard-panel__body,
.ds-dashboard-panel--pipeline .ds-dashboard-panel__body,
.ds-dashboard-panel--employee .ds-dashboard-panel__body {
  display: flex;
  flex-direction: column;
}

.ds-dashboard-panel--chart-full .ds-dashboard-chart-wrap {
  min-height: 0;
}

.ds-dashboard-chart-wrap {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
}

.ds-dashboard-line-chart {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.ds-dashboard-line-chart__grid {
  stroke: var(--ds-dash-border);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.ds-dashboard-line-chart__axis-label {
  fill: var(--ds-dash-text-muted);
  font-size: 11px;
}

.ds-dashboard-line-chart__axis-label--dense {
  font-size: 10px;
}

.ds-dashboard-line-chart__cursor {
  stroke: var(--ds-dash-border);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.ds-dashboard-chart-tooltip {
  position: absolute;
  top: 12px;
  transform: translateX(-50%);
  min-width: 120px;
  padding: 10px 12px;
  background: var(--ds-dash-surface);
  border: 1px solid var(--ds-dash-border);
  border-radius: 8px;
  box-shadow: var(--ds-dash-shadow);
  pointer-events: none;
  z-index: 2;
}

.ds-dashboard-chart-tooltip__date {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-dash-text);
}

.ds-dashboard-chart-tooltip__row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ds-dash-text-secondary);
}

.ds-dashboard-chart-tooltip__row + .ds-dashboard-chart-tooltip__row {
  margin-top: 6px;
}

.ds-dashboard-chart-tooltip__label {
  flex: 1;
}

.ds-dashboard-chart-tooltip__value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ds-dash-text);
}

.ds-dashboard-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ds-dashboard-legend--header {
  gap: 16px;
}

.ds-dashboard-legend--compact {
  gap: 12px;
}

.ds-dashboard-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ds-dash-text-secondary);
  white-space: nowrap;
}

.ds-dashboard-legend--pills {
  padding-top: 12px;
  border-top: 1px solid var(--ds-dash-border);
}

.ds-dashboard-legend__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--ds-dash-text-secondary);
  background: var(--ds-dash-surface-muted);
  border-radius: 999px;
}

.ds-dashboard-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* 财务环形图 */
.ds-dashboard-finance__body {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 20px);
  flex-wrap: nowrap;
  flex: 0 0 auto;
  min-height: 0;
}

.ds-dashboard-donut {
  position: relative;
  width: clamp(88px, 11vh, 132px);
  height: clamp(88px, 11vh, 132px);
  flex-shrink: 0;
}

.ds-dashboard-donut__svg {
  width: 100%;
  height: 100%;
}

.ds-dashboard-donut__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.ds-dashboard-donut__amount {
  font-size: clamp(13px, 1.4vh, 17px);
  font-weight: 600;
  color: var(--ds-dash-text);
  line-height: 1.2;
}

.ds-dashboard-donut__label,
.ds-dashboard-donut__unit {
  font-size: 11px;
  color: var(--ds-dash-text-muted);
}

.ds-dashboard-finance__legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 100px;
}

.ds-dashboard-finance__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ds-dash-text-secondary);
}

.ds-dashboard-finance__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(6px, 0.8vh, 10px);
  flex-shrink: 0;
  margin-top: clamp(8px, 1vh, 16px);
  padding-top: clamp(8px, 1vh, 16px);
  border-top: 1px solid var(--ds-dash-border);
}

.ds-dashboard-finance-card {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.8vw, 10px);
  padding: clamp(6px, 0.9vh, 10px) clamp(8px, 1vw, 12px);
  background: var(--ds-dash-surface-muted);
  border: 1px solid var(--ds-dash-border);
  border-radius: 8px;
  min-width: 0;
}

.ds-dashboard-finance-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ds-dashboard-finance-card__label {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.ds-dashboard-finance-card__value {
  font-size: clamp(13px, 1.3vh, 16px);
  color: var(--ds-dash-text);
}

/* 员工报表 */
.ds-dashboard-employee__head,
.ds-dashboard-employee__row {
  display: grid;
  grid-template-columns: 1fr 52px 52px;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
}

.ds-dashboard-employee__head {
  flex-shrink: 0;
  padding: 0 clamp(8px, 1vw, 12px) clamp(6px, 0.8vh, 10px);
  font-size: clamp(11px, 1vh, 12px);
  font-weight: 500;
  color: var(--ds-dash-text-muted);
}

.ds-dashboard-employee__head span:nth-child(2),
.ds-dashboard-employee__head span:nth-child(3),
.ds-dashboard-employee__metric {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ds-dashboard-employee__list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: clamp(4px, 0.5vh, 6px);
  min-height: 0;
  overflow-y: auto;
}

.ds-dashboard-employee__row {
  padding: clamp(5px, 0.7vh, 10px) clamp(8px, 1vw, 12px);
  border-radius: 8px;
  transition: background 0.15s;
}

.ds-dashboard-employee__row--alt {
  background: var(--ds-dash-surface-muted);
}

.ds-dashboard-employee__row:hover {
  background: var(--ds-dash-primary-soft);
}

.ds-dashboard-employee__user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ds-dashboard-employee__avatar {
  flex-shrink: 0;
  background: var(--ds-dash-primary) !important;
  width: clamp(28px, 3.2vh, 36px) !important;
  height: clamp(28px, 3.2vh, 36px) !important;
  line-height: clamp(28px, 3.2vh, 36px) !important;
  font-size: clamp(14px, 1.6vh, 18px) !important;
}

.ds-dashboard-employee__meta {
  min-width: 0;
}

.ds-dashboard-employee__id {
  display: block;
  font-size: 13px;
}

.ds-dashboard-employee__role {
  display: block;
  font-size: 12px;
}

/* 包裹动态数据 */
.ds-dashboard-pipeline {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: clamp(12px, 2vh, 18px);
  justify-content: center;
  min-height: 0;
  height: 100%;
}

.ds-dashboard-pipeline__bar-area {
  width: 100%;
  min-width: 0;
}

.ds-dashboard-pipeline__row {
  display: grid;
  grid-template-columns: clamp(72px, 8vw, 88px) 1fr auto;
  align-items: center;
  gap: clamp(8px, 1vw, 12px);
  flex-shrink: 0;
}

.ds-dashboard-pipeline__label {
  font-size: clamp(12px, 1.1vh, 13px);
  line-height: 1.35;
  color: var(--ds-dash-text-secondary);
}

.ds-dashboard-pipeline__bar {
  display: flex;
  height: clamp(16px, 2vh, 22px);
  min-width: 4px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ds-dash-track);
}

.ds-dashboard-pipeline__segment {
  display: block;
  height: 100%;
  min-width: 2px;
  transition: opacity 0.2s;
}

.ds-dashboard-pipeline__segment:hover {
  opacity: 0.85;
}

.ds-dashboard-pipeline__count {
  font-size: clamp(15px, 1.8vh, 18px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ds-dashboard-pipeline__unit {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 400;
}

.ds-dashboard-pipeline__scale {
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
  margin-left: clamp(80px, 9vw, 100px);
  padding-top: clamp(2px, 0.4vh, 4px);
  font-size: clamp(10px, 1vh, 11px);
  color: var(--ds-dash-text-muted);
  border-top: 1px dashed var(--ds-dash-border);
}

[data-theme='dark'] .ds-dashboard-kpi:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}

[data-theme='dark'] .ds-dashboard-employee__row:hover {
  background: var(--ds-dash-primary-soft);
}

/* 基础资料 — 网点维护：左树右表单 */
.ds-branch-page {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ds-branch-page__tree,
.ds-branch-page__form {
  min-height: 560px;
}

.ds-branch-page__tree .ant-tree {
  max-height: calc(100vh - 320px);
  overflow: auto;
}

.ds-branch-page__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.ds-branch-form .ant-btn-primary {
  min-width: 96px;
}

@media (max-width: 992px) {
  .ds-branch-page {
    grid-template-columns: 1fr;
  }
}

/* 包裹入库（历史 toolbar 样式保留；布局高度变量见下方一屏布局段） */
.ds-parcel-inbound-page__toolbar {
  position: sticky;
  top: var(--ds-app-sticky-header-height, 48px);
  z-index: 15;
  margin: calc(-1 * var(--ds-page-content-gap, 16px)) calc(-1 * 24px) 12px;
  padding: 10px 24px;
  background: #fff;
  border-bottom: 1px solid var(--ds-list-block-border, #f0f0f0);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.ds-parcel-inbound-page__toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--ds-parcel-inbound-toolbar-height);
  flex-wrap: wrap;
}

.ds-parcel-inbound-page__toolbar-start {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}

.ds-parcel-inbound-page__title {
  margin: 0 !important;
  white-space: nowrap;
}

.ds-parcel-inbound-page__toolbar-actions {
  flex-shrink: 0;
}

.ds-parcel-inbound-anchor-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  background: #f5f5f5;
  border-radius: 6px;
}

.ds-parcel-inbound-anchor-nav__item {
  border: none;
  background: transparent;
  padding: 4px 12px;
  font-size: 14px;
  line-height: 22px;
  color: rgba(0, 0, 0, 0.65);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.ds-parcel-inbound-anchor-nav__item:hover {
  color: #1677ff;
}

.ds-parcel-inbound-anchor-nav__item--active {
  color: #1677ff;
  background: #fff;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.ds-parcel-inbound-section-anchor {
  scroll-margin-top: calc(var(--ds-app-sticky-header-height, 48px) + var(--ds-parcel-inbound-toolbar-height, 56px) + 16px);
}

.ds-parcel-inbound-section {
  margin-bottom: 12px;
}

.ds-parcel-inbound-section .ant-card-head {
  min-height: 44px;
}

.ds-parcel-inbound-summary {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--ds-list-block-border, #f0f0f0);
}

.ds-parcel-inbound-dim-row {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--ds-list-block-border, #f0f0f0);
}

.ds-parcel-inbound-page__footer {
  display: flex;
  justify-content: center;
  padding: 16px 0 8px;
}

.ds-inbound-camera-form-item .ant-form-item-label {
  display: none;
}

.ds-inbound-camera__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ds-inbound-camera__title {
  font-weight: 500;
}

.ds-inbound-camera__head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ds-inbound-camera__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  background: #fafafa;
  border: 1px solid var(--ds-list-block-border, #f0f0f0);
  border-radius: 8px;
  overflow: hidden;
}

.ds-inbound-camera__preview video {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

[data-theme='dark'] .ds-inbound-camera__preview {
  background: var(--ds-dark-bg-input);
  border-color: var(--ds-dark-border-subtle);
}

[data-theme='dark'] .ds-parcel-inbound-page__toolbar {
  background: var(--ds-dark-bg-surface);
  border-color: var(--ds-dark-border-subtle);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

[data-theme='dark'] .ds-parcel-inbound-anchor-nav {
  background: var(--ds-dark-bg-elevated);
}

[data-theme='dark'] .ds-parcel-inbound-anchor-nav__item {
  color: var(--ds-dark-text-secondary);
}

[data-theme='dark'] .ds-parcel-inbound-anchor-nav__item:hover,
[data-theme='dark'] .ds-parcel-inbound-anchor-nav__item--active {
  color: var(--ds-dark-primary);
}

[data-theme='dark'] .ds-parcel-inbound-anchor-nav__item--active {
  background: var(--ds-dark-bg-surface);
}

/* 包裹入库 / 轨迹查询：一屏高度，表头与上方区域固定，仅数据区滚动 */
.ds-parcel-inbound-page,
.ds-track-query-page {
  --ds-parcel-inbound-toolbar-height: 56px;
  /* 列表区高度以视口为准，不随左侧表单内容撑高 */
  --ds-parcel-inbound-layout-height: calc(
    100svh - var(--ds-app-sticky-header-height, 48px) - (2 * var(--ds-page-content-gap, 16px))
  );
  --ds-track-query-layout-height: var(--ds-parcel-inbound-layout-height);
}

.ds-page-shell__body:has(.ds-app-page.ds-parcel-inbound-page),
.ds-page-shell__body:has(.ds-app-page.ds-track-query-page) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.ds-page-shell:has(.ds-app-page.ds-parcel-inbound-page),
.ds-page-shell:has(.ds-app-page.ds-track-query-page) {
  height: 100svh;
  min-height: 0;
}

.ant-pro-layout-content:has(.ds-app-page.ds-parcel-inbound-page),
.ant-pro-layout-content:has(.ds-app-page.ds-track-query-page) {
  display: flex;
  flex-direction: column;
  height: 100svh;
  min-height: 0;
  box-sizing: border-box;
}

.ds-app-page.ds-parcel-inbound-page.ant-pro-page-container,
.ds-app-page.ds-parcel-inbound-page .ant-pro-page-container-warp,
.ds-app-page.ds-parcel-inbound-page .ant-pro-page-container-children-content,
.ds-app-page.ds-track-query-page.ant-pro-page-container,
.ds-app-page.ds-track-query-page .ant-pro-page-container-warp,
.ds-app-page.ds-track-query-page .ant-pro-page-container-children-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.ds-app-page.ds-parcel-inbound-page .ant-pro-page-container-children-container,
.ds-app-page.ds-parcel-inbound-page .ant-pro-page-container-children-container-no-header,
.ds-app-page.ds-track-query-page .ant-pro-page-container-children-container,
.ds-app-page.ds-track-query-page .ant-pro-page-container-children-container-no-header {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.ds-parcel-inbound-page__layout,
.ds-track-query-page__layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  flex: 1 1 auto;
  width: 100%;
  height: var(--ds-parcel-inbound-layout-height);
  max-height: var(--ds-parcel-inbound-layout-height);
  min-height: 0;
  overflow: hidden;
}

.ds-parcel-inbound-page__form.ant-card,
.ds-parcel-inbound-page__list.ant-card,
.ds-track-query-page__form.ant-card,
.ds-track-query-page__list.ant-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.ds-parcel-inbound-page__form .ant-card-body,
.ds-track-query-page__form .ant-card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.ds-parcel-inbound-page__list .ant-card-head,
.ds-track-query-page__list .ant-card-head {
  flex-shrink: 0;
}

.ds-track-query-page__list .ant-card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.ds-track-query-page__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.ds-track-query-page__section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.ds-track-query-row--active td {
  background: var(--ant-color-primary-bg, rgba(22, 119, 255, 0.08)) !important;
}

.ds-track-query-timeline__trunk {
  padding-left: 4px;
  border-left: 2px solid var(--ant-color-primary, #1677ff);
}

.ds-parcel-inbound-page__form .ant-form-item-label > label {
  font-weight: 500;
}

.ds-parcel-inbound-page__field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.ds-parcel-inbound-page__field-head .ant-checkbox-wrapper {
  font-weight: 400;
}

.ds-parcel-inbound-page__form .ant-form-item-label:has(.ds-parcel-inbound-page__field-head) {
  width: 100%;
}

.ds-parcel-inbound-page__form .ant-form-item-label:has(.ds-parcel-inbound-page__field-head) > label {
  width: 100%;
}

.ds-parcel-inbound-page__form .ant-form-item-required::before {
  color: #ff4d4f !important;
}

.ds-parcel-inbound-page__list .ant-card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-top: 12px;
}

.ds-parcel-inbound-page__waybill-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--ds-list-block-border, #f0f0f0);
  border-radius: 8px;
  background: var(--ant-color-fill-quaternary, #fafafa);
}

.ds-parcel-inbound-page__summary-row > .ant-table-cell {
  background: var(--ant-color-fill-quaternary, #fafafa) !important;
  font-weight: 500;
  white-space: nowrap;
}

.ds-parcel-inbound-page__summary-row > .ant-table-cell-fix-right {
  position: sticky;
  right: 0;
  z-index: 3;
}

.ds-parcel-inbound-page__table-area {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.ds-parcel-inbound-page__waybill-row {
  display: grid;
  gap: 12px 16px;
}

.ds-parcel-inbound-page__waybill-row--summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ds-parcel-inbound-page__waybill-row--route {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ds-parcel-inbound-page__waybill-row--dims {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ds-parcel-inbound-page__waybill-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ds-parcel-inbound-page__waybill-field-label {
  font-weight: 500;
  line-height: 1.2;
  color: var(--ant-color-text, rgba(0, 0, 0, 0.88));
}

.ds-parcel-inbound-page__waybill-field-control--switch {
  min-height: 32px;
  display: flex;
  align-items: center;
}

.ds-parcel-inbound-page__field-error {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #ff4d4f;
}

.ds-parcel-inbound-page__customer-trigger {
  cursor: pointer;
}

.ds-parcel-inbound-page__customer-trigger .ant-input-group .ant-input,
.ds-parcel-inbound-page__customer-trigger .ant-input-group-addon {
  border-color: var(--ant-color-primary) !important;
  cursor: pointer;
}

.ds-parcel-inbound-page__customer-trigger .ant-input-group .ant-input:hover,
.ds-parcel-inbound-page__customer-trigger .ant-input-group .ant-input:focus,
.ds-parcel-inbound-page__customer-trigger:hover .ant-input-group .ant-input,
.ds-parcel-inbound-page__customer-trigger:hover .ant-input-group-addon,
.ds-parcel-inbound-page__customer-trigger:focus-within .ant-input-group .ant-input,
.ds-parcel-inbound-page__customer-trigger:focus-within .ant-input-group-addon {
  border-color: var(--ant-color-primary-hover, var(--ant-color-primary)) !important;
}

.ds-parcel-inbound-page__customer-trigger .ant-input-group-addon {
  color: var(--ant-color-primary);
  background: var(--ant-color-primary-bg, rgba(22, 119, 255, 0.06));
  pointer-events: none;
}

.ds-parcel-inbound-page__customer-trigger .ant-input {
  pointer-events: none;
}

.ds-inbound-session-edit-drawer__footer {
  display: flex;
  justify-content: flex-end;
}

.ds-parcel-inbound-page__required-mark {
  color: #ff4d4f;
  margin-inline-start: 2px;
}

.ds-inbound-customer-select__selected {
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid var(--ds-list-block-border, #f0f0f0);
  border-radius: 8px;
  background: var(--ant-color-fill-quaternary, #fafafa);
}

.ds-inbound-customer-select__selected-label {
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--ant-color-text-secondary, rgba(0, 0, 0, 0.45));
}

.ds-inbound-customer-select__selected-value {
  font-weight: 500;
}

@media (max-width: 1200px) {
  .ds-parcel-inbound-page__waybill-row--summary,
  .ds-parcel-inbound-page__waybill-row--route,
  .ds-parcel-inbound-page__waybill-row--dims,
  .ds-waybill-inbound-drawer__waybill-row--order {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-waybill-inbound-drawer__waybill-row--pallet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ds-waybill-inbound-drawer__waybill-field--span-2 {
    grid-column: span 2;
  }

  .ds-parcel-inbound-page__insurance-row {
    grid-template-columns: 1fr;
  }
}

.ds-parcel-inbound-page__dim-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ds-parcel-inbound-page__insurance-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(0, 2fr);
  gap: 8px 16px;
  align-items: start;
}

.ds-parcel-inbound-page__waybill-switch-item {
  margin-bottom: 0;
}

.ds-parcel-inbound-page__waybill-switch-item .ant-form-item-control-input {
  min-height: 32px;
  display: flex;
  align-items: center;
}

.ds-parcel-inbound-page__fee-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 8px;
}

.ds-parcel-inbound-page__info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.ds-parcel-inbound-page__row--editing > td {
  background: var(--ant-color-primary-bg) !important;
}

.ds-parcel-inbound-import-errors {
  max-height: 320px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
}

.ds-parcel-inbound-page__photo-more {
  color: var(--ant-color-text-secondary);
  font-size: 12px;
  line-height: 36px;
}

@media (max-width: 992px) {
  .ds-page-shell:has(.ds-app-page.ds-parcel-inbound-page),
  .ant-pro-layout-content:has(.ds-app-page.ds-parcel-inbound-page),
  .ds-page-shell:has(.ds-app-page.ds-track-query-page),
  .ant-pro-layout-content:has(.ds-app-page.ds-track-query-page) {
    height: auto;
  }

  .ds-parcel-inbound-page__layout,
  .ds-track-query-page__layout {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .ds-parcel-inbound-page__form.ant-card,
  .ds-parcel-inbound-page__list.ant-card,
  .ds-track-query-page__form.ant-card,
  .ds-track-query-page__list.ant-card {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .ds-parcel-inbound-page__form .ant-card-body,
  .ds-parcel-inbound-page__list .ant-card-body {
    overflow: visible;
  }

  .ds-parcel-inbound-page__table-area {
    min-height: 280px;
  }
}

.ds-waybill-inbound-drawer__summary {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-waybill-inbound-drawer__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ds-waybill-inbound-drawer__section-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.ds-waybill-inbound-drawer__waybill-bar {
  margin-bottom: 16px;
}

.ds-waybill-inbound-drawer__waybill-row--order {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ds-waybill-inbound-drawer__waybill-row--pallet {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ds-waybill-inbound-drawer__waybill-field--span-2 {
  grid-column: span 2;
}

.ds-waybill-inbound-drawer__table {
  margin-top: 0;
}

.ds-waybill-inbound-drawer__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ds-waybill-inbound-drawer__list-title {
  font-weight: 500;
}

.ds-waybill-inbound-drawer__list-extra {
  margin-left: auto;
  flex-shrink: 0;
}

/* 运单详情 */
.ds-order-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ds-order-detail__section-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

.ds-order-detail__section .ds-parcel-inbound-page__waybill-bar {
  margin-bottom: 0;
}

/* 仓库上架 */
.ds-warehouse-shelving-page__layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ds-warehouse-shelving-page__form .ant-form-item-label > label {
  font-weight: 500;
}

.ds-warehouse-shelving-page__form .ant-form-item-required::before {
  color: #ff4d4f !important;
}

.ds-warehouse-shelving-page__list .ant-card-body {
  padding-top: 12px;
}

@media (max-width: 992px) {
  .ds-warehouse-shelving-page__layout {
    grid-template-columns: 1fr;
  }
}

/* 装袋/柜扫描 */
.ds-bag-scan-page__layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ds-bag-scan-page__form .ant-form-item-label > label {
  font-weight: 500;
}

.ds-bag-scan-page__package-no .ant-form-item-label > label {
  color: #ff4d4f;
}

.ds-bag-scan-page__form .ant-form-item-required::before {
  color: #ff4d4f !important;
}

.ds-bag-scan-page__list .ant-card-body {
  padding-top: 12px;
}

@media (max-width: 992px) {
  .ds-bag-scan-page__layout {
    grid-template-columns: 1fr;
  }
}

/* 发件扫描 */
.ds-dispatch-scan-page__layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ds-dispatch-scan-page__form .ant-form-item-label > label {
  font-weight: 500;
}

.ds-dispatch-scan-page__package-no .ant-form-item-label > label {
  color: #ff4d4f;
}

.ds-dispatch-scan-page__form .ant-form-item-required::before {
  color: #ff4d4f !important;
}

.ds-dispatch-scan-page__list .ant-card-body {
  padding-top: 12px;
}

@media (max-width: 992px) {
  .ds-dispatch-scan-page__layout {
    grid-template-columns: 1fr;
  }
}

/* 到件扫描 */
.ds-arrival-scan-page__layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ds-arrival-scan-page__form .ant-form-item-label > label {
  font-weight: 500;
}

.ds-arrival-scan-page__package-no .ant-form-item-label > label {
  color: #ff4d4f;
}

.ds-arrival-scan-page__form .ant-form-item-required::before {
  color: #ff4d4f !important;
}

.ds-arrival-scan-page__list .ant-card-body {
  padding-top: 12px;
}

@media (max-width: 992px) {
  .ds-arrival-scan-page__layout {
    grid-template-columns: 1fr;
  }
}

/* 派件扫描 */
.ds-delivery-scan-page__layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ds-delivery-scan-page__form .ant-form-item-label > label {
  font-weight: 500;
}

.ds-delivery-scan-page__package-no .ant-form-item-label > label {
  color: #ff4d4f;
}

.ds-delivery-scan-page__form .ant-form-item-required::before {
  color: #ff4d4f !important;
}

.ds-delivery-scan-page__list .ant-card-body {
  padding-top: 12px;
}

@media (max-width: 992px) {
  .ds-delivery-scan-page__layout {
    grid-template-columns: 1fr;
  }
}

/* 签收扫描 */
.ds-sign-receipt-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.ds-sign-receipt-page__title {
  margin: 0 !important;
}

.ds-sign-receipt-page__filters,
.ds-sign-receipt-page__list {
  margin-bottom: 12px;
  border-radius: var(--ds-list-block-radius, 8px);
}

.ds-sign-receipt-page__filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.ds-sign-receipt-page__stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 120px;
  padding: 8px 12px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #f0f0f0;
}

.ds-sign-receipt-page__stat-icon {
  font-size: 28px;
  color: #fa8c16;
}

.ds-sign-receipt-page__stat-value {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.ds-sign-receipt-page__filter-form {
  flex: 1;
  min-width: 0;
}

.ds-sign-receipt-page__filter-form .ant-form-item {
  margin-bottom: 8px;
}

.ds-sign-receipt-page__list-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.ds-sign-receipt-drawer .ant-drawer-body {
  padding-top: 12px;
}

.ds-sign-receipt-drawer__scan {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid #eef0f3;
  border-radius: 10px;
  background: #fafbfc;
}

.ds-sign-receipt-drawer__scan-hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}

.ds-sign-receipt-drawer__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ds-sign-receipt-page__confirm {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: min(70vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

.ds-sign-receipt-page__confirm--drawer {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.ds-sign-receipt-page__confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ds-sign-receipt-page__confirm-section {
  border: 1px solid #eef0f3;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fafbfc;
}

.ds-sign-receipt-page__confirm-section-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.ds-sign-receipt-page__kv {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.45;
}

.ds-sign-receipt-page__kv-label {
  flex: 0 0 88px;
  color: #667085;
}

.ds-sign-receipt-page__kv-value {
  flex: 1;
  color: #101828;
  word-break: break-word;
}

.ds-sign-receipt-page__package-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ds-sign-receipt-page__package-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid #eef0f3;
}

.ds-sign-receipt-page__package-row:first-child {
  border-top: none;
  padding-top: 0;
}

.ds-sign-receipt-page__package-no {
  font-weight: 600;
}

.ds-sign-receipt-page__package-meta {
  margin-top: 2px;
  font-size: 12px;
  color: #667085;
}

.ds-sign-receipt-page__confirm-photos {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds-signature-pad {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ds-signature-pad__canvas {
  display: block;
  width: 100%;
  touch-action: none;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  cursor: crosshair;
}

.ds-signature-pad__actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 992px) {
  .ds-sign-receipt-page__filter-row {
    flex-direction: column;
  }

  .ds-sign-receipt-page__confirm-grid {
    grid-template-columns: 1fr;
  }
}

.ds-customer-bills-page__switch {
  margin-bottom: 12px;
}
