/* Employee styles: shadowed declarations removed; cascade order retained. */
@media screen {
  :root {
    --ui-line: #e5eaf0;
    --ui-line-hover: #bccdd8;
    --ui-soft: #f8fafc;
    --ui-focus: #3f91b4;
    --ui-ring: rgba(63,145,180,.13);
    --ui-shadow: 0 3px 16px rgba(29,50,68,.045);
  }

  .modal-shade {
    background: rgba(26, 39, 51, 0.38);
    animation: 160ms ease-out 0s 1 normal none running ui-shade-in;
  }

  .demo-modal {
    border-radius: 12px;
    box-shadow: rgba(24, 43, 59, 0.18) 0px 18px 60px, rgba(24, 43, 59, 0.06) 0px 2px 8px;
    animation: 200ms cubic-bezier(0.2, 0.7, 0.2, 1) 0s 1 normal none running ui-panel-in;
  }

  .demo-modal:is(.nw-modal, .order-drawer, .cu-modal, .fi-modal, .fs-modal, .wh-modal) {
    border-radius: 12px 0px 0px 12px;
  }

  .demo-modal > .modal-head {
    border-bottom-color: var(--ui-line);
    border-radius: 12px 12px 0px 0px;
    background: rgb(255, 255, 255);
  }

  .demo-modal > .modal-foot {
    border-top-color: var(--ui-line);
    background: rgb(255, 255, 255);
    border-radius: 0px 0px 12px 12px;
  }

  .filter-panel, .so-panel, .home-stat, .home-flow, .so-stats, .so-cards {
    border-radius: 9px;
    box-shadow: var(--ui-shadow);
  }

  .so-panel > header {
    border-bottom-color: var(--ui-line);
  }

  .so-cards > div {
    border-radius: 8px;
    box-shadow: rgba(29, 50, 68, 0.055) 0px 2px 10px;
  }

  :is(.demo-modal, .filter-panel) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), :is(.demo-modal, .filter-panel) select, :is(.demo-modal, .filter-panel) textarea {
    border-color: var(--ui-line);
    border-radius: 5px;
    transition: border-color 140ms, box-shadow 140ms, background-color 140ms;
  }

  :is(.demo-modal, .filter-panel) input:not([readonly]):not(:disabled):hover, :is(.demo-modal, .filter-panel) select:not(:disabled):hover, :is(.demo-modal, .filter-panel) textarea:not(:disabled):hover {
    border-color: var(--ui-line-hover);
  }

  :is(.demo-modal, .filter-panel) input:not([type="checkbox"]):not([type="radio"]):focus, :is(.demo-modal, .filter-panel) select:focus, :is(.demo-modal, .filter-panel) textarea:focus {
    border-color: var(--ui-focus);
    outline: 2px solid var(--ui-ring);
    outline-offset: 1px;
    box-shadow: 0 0 0 2px var(--ui-ring);
  }

  .filter-pair > span {
    background: rgb(243, 246, 248);
    border-radius: 5px 0px 0px 5px;
  }

  .filter-pair > input, .filter-pair > select {
    border-radius: 0px 5px 5px 0px;
  }

  :is(.table-tools, .action-bar, .modal-foot, .so-panel > header, .so-actions, .filter-buttons) button, .sda-modal .modal-content button {
    border-radius: 5px;
    transition: background-color 140ms, border-color 140ms, box-shadow 140ms;
  }

  .table-tools button, .so-modal button, .modal-foot button, .sda-modal .modal-content button {
    border-color: var(--ui-line);
  }

  :is(.table-tools, .modal-foot, .so-panel > header, .so-actions) button:not(.green):not(.danger):not(:disabled):hover {
    background: rgb(237, 244, 247);
    border-color: var(--ui-line-hover);
  }

  button:focus-visible {
    outline: 2px solid var(--ui-focus);
    outline-offset: 2px;
  }

  .table-scroll {
    border-radius: 7px;
  }

  th {
    background: rgb(247, 249, 251);
  }

  th, td {
    border-bottom-color: var(--ui-line);
  }

  .sda-grid :is(th, td), .oc-cargo-table :is(th, td) {
    border-color: rgb(224, 230, 235);
  }

  .sda-grid input, .oc-cargo-table input {
    border-radius: 0px !important;
  }

  .sda-grid input:focus, .oc-cargo-table input:focus {
    outline-offset: -1px !important;
    box-shadow: none !important;
  }

  .nav-menu, .shipment-tool-menu, .country-picker, .nw-more-menu, .nw-multi > div {
    border-color: var(--ui-line);
    border-radius: 8px;
    box-shadow: rgba(24, 43, 59, 0.12) 0px 8px 26px;
    animation: 130ms ease-out 0s 1 normal none running ui-menu-in;
  }

  .sda-declaration-views button:first-child {
    border-radius: 4px 0px 0px 4px;
  }

  .sda-declaration-views button:last-child {
    border-radius: 0px 4px 4px 0px;
  }

  @keyframes ui-shade-in { 
  0% { opacity: 0; }
  100% { opacity: 1; }
}

  @keyframes ui-panel-in { 
  0% { opacity: 0; translate: 12px; }
  100% { opacity: 1; translate: 0px; }
}

  @keyframes ui-menu-in { 
  0% { opacity: 0; translate: 0px -3px; }
  100% { opacity: 1; translate: 0px; }
}

  @media (prefers-reduced-motion: reduce) {
    .modal-shade, .demo-modal, .nav-menu, .shipment-tool-menu, .country-picker, .nw-more-menu, .nw-multi > div {
      animation: auto ease 0s 1 normal none running none;
    }

    input, select, textarea, button {
      transition: none !important;
    }
  }
}

@media screen {
  .demo-modal.nw-modal.sda-modal, .demo-modal.sda-compact {
    display: flex;
    flex-direction: column;
    border-radius: 12px 0px 0px 12px;
    width: 66.6667vw !important;
    max-width: 66.6667vw !important;
    min-width: 0px !important;
    top: 0px !important;
    right: 0px !important;
    left: auto !important;
    transform: none !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
  }

  .sda-modal .modal-content, .sda-compact .modal-content {
    flex: 1 1 0%;
    min-height: 0px;
    overflow: auto;
    padding: 18px;
  }

  .sda-modal .sda-columns, .sda-compact .sda-columns {
    grid-template-columns: minmax(0px, 1fr);
    padding: 0px;
    gap: 22px;
  }

  .sda-modal .sda-single, .sda-compact .sda-single {
    max-width: 100%;
    width: 100%;
    min-width: 0px;
  }

  .sda-modal .nw-field, .sda-compact .nw-field {
    width: 100%;
    min-width: 0px;
    margin-left: 0px;
    margin-right: 0px;
  }

  .sda-modal .nw-field > span, .sda-compact .nw-field > span {
    width: 96px;
    flex: 0 0 96px;
  }

  .sda-modal .nw-field > div, .sda-compact .nw-field > div {
    flex: 1 1 0%;
    min-width: 0px;
  }

  .sda-compact .nw-field input, .sda-compact .nw-field select {
    width: 100%;
    min-width: 0px;
  }

  .sda-modal .sda-tracking {
    gap: 12px;
  }

  .sda-modal .sda-tracking aside {
    max-height: 240px;
    margin-top: 0px;
  }

  .sda-modal .sda-grid {
    max-width: 100%;
    overflow-x: auto;
  }

  .sda-modal .modal-foot, .sda-compact .modal-foot {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    padding: 12px 18px;
  }

  .sda-modal .modal-foot button, .sda-compact .modal-foot button {
    min-width: 0px;
    width: auto;
    flex: 1 1 0%;
    margin: 0px;
  }
}

@media screen {
  .sda-underlay {
    position: fixed;
    inset: 0px;
    z-index: 19;
    pointer-events: none;
  }

  .sda-underlay .demo-modal {
    animation: auto ease 0s 1 normal none running none !important;
  }

  .sda-modal .sda-columns {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
    gap: 22px 28px;
  }

  .sda-modal .sda-tracking {
    grid-template-columns: minmax(0px, 2fr) minmax(200px, 1fr);
  }
}

@media screen and (prefers-reduced-motion: no-preference) {
  .modal-shade {
    animation-duration: 320ms;
  }

  .demo-modal:is(.nw-modal, .order-drawer, .cu-modal, .fi-modal, .fs-modal, .wh-modal, .sda-compact) {
    animation: 480ms cubic-bezier(0.22, 0.61, 0.36, 1) 0s 1 normal both running ui-drawer-in;
  }

  @keyframes ui-drawer-in { 
  0% { opacity: 0; translate: 40px; }
  100% { opacity: 1; translate: 0px; }
}
}

.home-stat {
  color: rgb(115, 128, 138);
}

.home-stat strong {
  font-size: 20px;
}

.home-stat .home-card-icon {
  position: absolute;
}

.home-card-icon .ui-icon {
  width: 38px;
  height: 38px;
  margin: 0px;
}

.home-flow h2 {
  font-size: 16px;
}

.flow-steps {
  height: 180px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0px, 1fr));
  padding: 0px 14px;
  align-items: center;
}

.flow-steps::before {
  height: 1px;
  left: 14px;
  right: 14px;
  top: 50%;
}

.flow-steps button {
  display: grid;
  grid-template-rows: 24px 30px 24px;
  justify-items: center;
  gap: 5px;
  font-size: 14px;
  min-width: 0px;
  padding: 0px;
}

.flow-steps button::after {
  display: none;
}

.flow-steps button i {
  order: initial;
  font-size: 12px;
}

.home-node {
  width: 30px;
  height: 30px;
  border: 2px solid rgb(101, 181, 112);
  background: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgb(101, 181, 112);
}

.home-node .ui-icon {
  width: 15px;
  height: 15px;
  margin: 0px;
}

.flow-steps button:hover .home-node {
  background: rgb(239, 249, 239);
}

.flow-steps button:focus-visible {
  outline-offset: 5px;
}

.home-stat {
  height: 94px;
  justify-content: flex-start;
  padding: 14px 16px 30px;
  gap: 2px;
}

.home-stat strong {
  line-height: 25px;
}

.home-stat > span:not(.home-card-icon) {
  line-height: 17px;
}

.home-stat b {
  height: 8px;
  bottom: 10px;
}

.home-stat .home-card-icon {
  top: 17px;
  right: 16px;
}

.topnav > .nav-spacer {
  order: 1 !important;
}

.topnav > .nav-icon {
  order: 2 !important;
  margin-right: 0px !important;
}

.topnav > .nav-group:has(> [data-group="更多"]) {
  order: 3 !important;
}

.topnav > .nav-group:has(> [data-group="工具"]) {
  order: 4 !important;
}

.topnav > [data-group="管理员"] {
  order: 5 !important;
  margin-left: 0px !important;
}

.topnav > .nav-group:has(> [data-group="更多"]) > .nav-menu, .topnav > .nav-group:has(> [data-group="工具"]) > .nav-menu {
  left: auto;
  right: 0px;
}
