/* 工作区主区（嵌在 index #workspace-root） */
:root {
  --ws-scale: 1.4;
  --ws-tray-tab-duration: 680ms;
  --ws-tray-tab-ease: cubic-bezier(0.32, 1.28, 0.52, 1);
  --ws-card-duration: 480ms;
  --ws-card-ease: cubic-bezier(0.33, 1, 0.68, 1);
  --ws-card-slide: 22px;
  --ws-deck-enter-delay: 148ms;
  --ws-deck-height: 320px;
}

.workspace-root {
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--main-bg);
  position: relative;
  overflow: hidden;
  zoom: var(--ws-scale);
}

.workspace-root[hidden] {
  display: none !important;
}

.ws-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px 24px;
  min-height: 0;
  transform: translateY(calc(var(--ws-deck-height) * -0.5));
}

.ws-glow {
  display: none;
}

.deck {
  position: relative;
  width: min(420px, 92vw);
  height: var(--ws-deck-height);
  z-index: 1;
  cursor: grab;
}

.deck:active {
  cursor: grabbing;
}

.deck-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  width: 100%;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 40px rgba(15, 23, 42, 0.08);
  transform-origin: 50% 100%;
  backface-visibility: hidden;
}

.deck-card.ghost {
  height: 260px;
  padding: 0;
  overflow: hidden;
  transition:
    transform var(--ws-card-duration) var(--ws-card-ease),
    opacity calc(var(--ws-card-duration) * 0.72) ease;
}

.deck.is-shuffling .deck-card.ghost {
  transition:
    transform var(--ws-card-duration) var(--ws-card-ease),
    opacity calc(var(--ws-card-duration) * 0.72) ease;
}

.deck.is-shuffle-forward .deck-card.g3 {
  transform: rotate(-10deg) translate3d(-24px, 0, 0) scale(0.9);
  opacity: 0.35;
}

.deck.is-shuffle-forward .deck-card.g2 {
  transform: rotate(-6deg) translate3d(-14px, 0, 0) scale(0.94);
  opacity: 0.55;
}

.deck.is-shuffle-forward .deck-card.g4 {
  transform: rotate(5deg) translate3d(12px, 0, 0) scale(0.95);
  opacity: 0.5;
}

.deck.is-shuffle-forward .deck-card.g5 {
  transform: rotate(9deg) translate3d(22px, 0, 0) scale(0.9);
  opacity: 0.32;
}

.deck.is-shuffle-back .deck-card.g3 {
  transform: rotate(-5deg) translate3d(-12px, 0, 0) scale(0.95);
  opacity: 0.5;
}

.deck.is-shuffle-back .deck-card.g2 {
  transform: rotate(-2deg) translate3d(-6px, 0, 0) scale(0.98);
  opacity: 0.7;
}

.deck.is-shuffle-back .deck-card.g4 {
  transform: rotate(6deg) translate3d(14px, 0, 0) scale(0.94);
  opacity: 0.55;
}

.deck.is-shuffle-back .deck-card.g5 {
  transform: rotate(10deg) translate3d(24px, 0, 0) scale(0.9);
  opacity: 0.35;
}

.deck-card.focus {
  z-index: 5;
  padding: 28px 28px 24px;
  border-color: rgba(59, 111, 235, 0.18);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 20px 48px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(59, 111, 235, 0.06);
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.deck-card.focus.is-switching-forward,
.deck-card.focus.is-switching-back {
  transition: none;
  will-change: transform, opacity;
}

.deck-card.focus.is-switching-forward {
  animation: ws-card-forward var(--ws-card-duration) var(--ws-card-ease);
}

.deck-card.focus.is-switching-back {
  animation: ws-card-back var(--ws-card-duration) var(--ws-card-ease);
}

@keyframes ws-card-forward {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  44% {
    transform: translate3d(calc(-1 * var(--ws-card-slide)), 0, 0);
    opacity: 0;
  }
  56% {
    transform: translate3d(var(--ws-card-slide), 0, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@keyframes ws-card-back {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  44% {
    transform: translate3d(var(--ws-card-slide), 0, 0);
    opacity: 0;
  }
  56% {
    transform: translate3d(calc(-1 * var(--ws-card-slide)), 0, 0);
    opacity: 0;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

.deck-card.ghost::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #e8ecf4, #f0f2f6);
}

.deck-card.g3 {
  transform: rotate(-7deg) translate3d(-18px, 0, 0) scale(0.94);
  opacity: 0.45;
  z-index: 1;
  bottom: 6px;
}

.deck-card.g2 {
  transform: rotate(-3.5deg) translate3d(-9px, 0, 0) scale(0.97);
  opacity: 0.65;
  z-index: 2;
  bottom: 3px;
}

.deck-card.g4 {
  transform: rotate(3.5deg) translate3d(9px, 0, 0) scale(0.97);
  opacity: 0.65;
  z-index: 2;
  bottom: 3px;
}

.deck-card.g5 {
  transform: rotate(7deg) translate3d(18px, 0, 0) scale(0.94);
  opacity: 0.45;
  z-index: 1;
  bottom: 6px;
}

.ws-stage.is-deck-enter .deck-card.ghost,
.ws-stage.is-deck-enter .deck-card.focus {
  transition: none;
}

.ws-stage.is-deck-enter .deck {
  animation: ws-deck-slide-in var(--mode-slide-duration) var(--mode-slide-ease)
    var(--ws-deck-enter-delay) both;
}

.ws-stage.is-deck-enter .deck-index {
  animation: ws-deck-slide-in var(--mode-slide-duration) var(--mode-slide-ease)
    calc(var(--ws-deck-enter-delay) + 72ms) both;
}

@keyframes ws-deck-slide-in {
  0% {
    transform: translate3d(var(--ws-deck-enter-offset, 100vw), 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.workspace-root.is-panel-ready {
  transform: translate3d(0, 0, 0) !important;
  opacity: 1 !important;
  transition: none !important;
}

.deck-card.focus .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.deck-card.focus h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.deck-card.focus .sub {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.deck-card.focus .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(59, 111, 235, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.deck-card.focus .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(59, 111, 235, 0.32);
}

.deck-card.focus .cta:active {
  transform: translateY(0);
}

.deck-card.focus .cta svg {
  opacity: 0.9;
}

.deck-index {
  margin-top: 28px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.deck-index i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d4d8e0;
  transition: width 0.28s cubic-bezier(0.32, 1.08, 0.52, 1), background 0.22s ease;
}

.deck-index i.on {
  width: 18px;
  background: var(--brand);
}

.ws-tray-footer {
  flex-shrink: 0;
}

.ws-tray-box {
  max-width: min(92%, 400px);
  overflow: hidden;
  transition: box-shadow 0.32s ease, border-color 0.2s ease;
}

.ws-tray-body {
  padding: 0 10px 10px;
  transition: padding 0.28s cubic-bezier(0.32, 1.12, 0.52, 1);
}

.ws-tray-box:not(.is-expanded) .ws-tray-body {
  padding: 0 10px 8px;
}

.ws-tray-handle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin: 0 0 8px;
  min-height: 36px;
  padding: 8px 16px 6px;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
  cursor: grab;
  transition: background 0.2s ease, min-height 0.28s ease, padding 0.28s ease, margin 0.28s ease;
}

.ws-tray-box:not(.is-expanded) .ws-tray-handle {
  margin-bottom: 6px;
  min-height: 28px;
  padding: 6px 16px 4px;
  gap: 0;
}

.ws-tray-box:not(.is-expanded) .ws-tray-handle-hint {
  display: none;
}

.ws-tray-handle:hover,
.ws-tray-handle:focus-visible {
  background: linear-gradient(180deg, rgba(59, 111, 235, 0.08) 0%, rgba(59, 111, 235, 0.03) 100%);
  outline: none;
}

.ws-tray-handle:active {
  background: linear-gradient(180deg, rgba(59, 111, 235, 0.1) 0%, rgba(59, 111, 235, 0.04) 100%);
}

.ws-tray-grip {
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: #c5cad4;
  transition: background 0.2s ease, width 0.2s ease;
}

.ws-tray-handle:hover .ws-tray-grip,
.ws-tray-handle:focus-visible .ws-tray-grip {
  background: #aeb5c2;
  width: 48px;
}

.ws-tray-handle-hint {
  font-size: 11px;
  line-height: 1;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  user-select: none;
}

.ws-tray-box.is-expanded .ws-tray-handle {
  background: linear-gradient(180deg, rgba(59, 111, 235, 0.1) 0%, rgba(59, 111, 235, 0.03) 100%);
}

.ws-tray-box.is-expanded .ws-tray-grip {
  background: var(--brand);
  width: 48px;
}

.ws-tray-box.is-expanded .ws-tray-handle-hint {
  color: var(--brand);
  font-weight: 500;
}

.ws-tray-box.is-dragging .ws-tray-handle {
  cursor: grabbing;
}

.ws-tray-box.is-pulse {
  border-color: rgba(59, 111, 235, 0.48);
  box-shadow: 0 10px 40px var(--brand-shadow), 0 2px 12px rgba(15, 23, 42, 0.06);
}

.tray-tabs {
  position: relative;
  display: flex;
  gap: 6px;
  width: 100%;
  padding: 3px;
  margin-bottom: 0;
  background: #ebebec;
  border-radius: 12px;
  transition: margin 0.28s ease, padding 0.28s ease;
}

.ws-tray-box.is-expanded .tray-tabs {
  margin-bottom: 10px;
}

.tray-tab-indicator {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition:
    transform var(--ws-tray-tab-duration) var(--ws-tray-tab-ease),
    width var(--ws-tray-tab-duration) var(--ws-tray-tab-ease),
    height var(--ws-tray-tab-duration) var(--ws-tray-tab-ease),
    opacity 0.12s ease;
}

.tray-tab-indicator.is-ready {
  opacity: 1;
}

.tray-tab-indicator.is-instant {
  transition: none !important;
}

.tray-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  height: 32px;
  border: none;
  border-radius: 9px;
  background: transparent;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.22s ease, height 0.28s ease, font-size 0.28s ease;
}

.ws-tray-box.is-expanded .tray-tab {
  height: 36px;
  font-size: 14px;
}

.tray-tab.on {
  color: var(--text);
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}

.tray-tab .n {
  margin-left: 4px;
  font-size: 11px;
  color: var(--brand);
  font-weight: 600;
}

.tray-chips {
  display: none;
}

.tray-chips.is-entering .tray-chip {
  animation: ws-chip-in 0.34s cubic-bezier(0.32, 1.08, 0.52, 1) backwards;
}

@keyframes ws-chip-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tray-chips::-webkit-scrollbar {
  display: none;
}

.tray-chip {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 16px;
  border-radius: 11px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  font-size: 13px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    transform 0.18s ease;
}

.tray-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 8px;
}

.ws-tray-box.is-expanded .tray-panel {
  display: grid;
  margin-top: 2px;
  max-height: min(36vh, 260px);
  overflow-y: auto;
  animation: ws-panel-in 0.28s cubic-bezier(0.32, 1.08, 0.52, 1);
}

@keyframes ws-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tray-panel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.18s ease;
}

.tray-panel-item:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 111, 235, 0.2);
}

.tray-panel-item.on {
  border-color: var(--brand-border);
  background: var(--brand-soft);
}

.tray-panel-item-main {
  min-width: 0;
}

.tray-panel-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}

.tray-panel-item.on .tray-panel-item-title {
  color: var(--brand);
}

.tray-panel-item-sub {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tray-panel-item-cta {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--brand);
}

.tray-chip:hover {
  transform: translateY(-1px);
}

.tray-chip:active {
  transform: translateY(0);
}

.tray-chip.on {
  border-color: var(--brand-border);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 500;
}

.tray-chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c8cdd6;
}

.tray-chip.on .dot {
  background: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
  .deck-card.focus.is-switching-forward,
  .deck-card.focus.is-switching-back,
  .ws-stage.is-deck-enter .deck,
  .ws-stage.is-deck-enter .deck-index,
  .tray-chips.is-entering .tray-chip,
  .ws-tray-box.is-tray-enter {
    animation: none;
  }

  .deck-card.ghost,
  .deck.is-shuffling .deck-card.ghost,
  .tray-panel,
  .tray-tab-indicator,
  .deck-index i,
  .tray-chip,
  .tray-panel-item,
  .deck-card.focus .cta,
  .ws-tray-box {
    transition: none;
  }
}

.workspace-root.is-category-mode .ws-stage {
  display: none;
}

.ws-category-stage {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 20px 24px;
}

.ws-cat-panel {
  max-width: min(960px, 92%);
  margin: 0 auto;
}

.ws-cat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.ws-cat-eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.ws-cat-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.ws-cat-stat-row {
  display: flex;
  gap: 12px;
}

.ws-cat-stat {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  font-size: 11px;
  color: #2563eb;
}

.ws-cat-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.ws-oa-queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ws-oa-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ws-oa-item.urgent {
  border-color: rgba(239, 68, 68, 0.25);
  background: linear-gradient(135deg, #fff 0%, #fff7f7 100%);
}

.ws-oa-avatar {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-oa-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ws-oa-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.ws-oa-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.ws-oa-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
  font-weight: 500;
}

.ws-oa-badge.neutral {
  background: #eff6ff;
  color: #2563eb;
}

.ws-oa-actions {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  gap: 6px;
}

.ws-oa-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  cursor: pointer;
}

.ws-oa-btn.primary {
  background: #2563eb;
  border-color: transparent;
  color: #fff;
}

.ws-doc-upload {
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: #059669;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.ws-doc-toolbar {
  margin-bottom: 12px;
}

.ws-doc-search {
  width: 100%;
  max-width: 320px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 13px;
  font-family: inherit;
  box-sizing: border-box;
}

.ws-doc-search:focus {
  outline: none;
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}

.ws-doc-empty {
  margin: 16px 0 0 134px;
  font-size: 13px;
  color: var(--text-muted);
}

.ws-doc-layout {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  min-height: 280px;
}

.ws-doc-folders {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ws-doc-folder {
  text-align: left;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

.ws-doc-folder.on {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-weight: 500;
}

.ws-doc-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ws-doc-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.15);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ws-doc-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.ws-doc-card.is-selected {
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.ws-doc-open-hint {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  color: rgba(5, 150, 105, 0.7);
}

.ws-doc-icon {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.ws-doc-icon.pdf { background: #fee2e2; color: #dc2626; }
.ws-doc-icon.doc { background: #dbeafe; color: #2563eb; }
.ws-doc-icon.xls { background: #d1fae5; color: #059669; }

.ws-doc-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.ws-doc-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.ws-doc-preview-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.1);
  font-size: 12px;
  color: #059669;
  cursor: pointer;
}

.ws-doc-preview-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.ws-doc-preview-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.ws-doc-preview-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.ws-doc-preview-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

.ws-doc-action {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.ws-doc-action.primary {
  background: #059669;
  border-color: transparent;
  color: #fff;
}

.ws-doc-preview-body {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px dashed rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
  min-height: 160px;
}

.ws-doc-preview-note {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--text-muted);
}

.ws-doc-preview-body pre {
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  color: var(--text-secondary);
}

.ws-proc-summary {
  font-size: 12px;
  color: #d97706;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.12);
}

.ws-proc-summary strong {
  font-size: 16px;
}

.ws-proc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ws-proc-list[hidden],
.ws-proc-module[hidden] {
  display: none !important;
}

.ws-proc-module {
  min-height: 120px;
}

.ws-proc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.ws-proc-filter {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
}

.ws-proc-filter.on {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #b45309;
  font-weight: 600;
}

.ws-proc-module-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-proc-module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.ws-proc-module-row:hover {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.04);
}

.ws-proc-module-row-main {
  flex: 1;
  min-width: 0;
}

.ws-proc-module-row-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.ws-proc-module-row-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
}

.ws-proc-module-row-meta {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-secondary);
}

.ws-proc-tag {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
}

.ws-proc-tag-open,
.ws-proc-tag-active {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.ws-proc-tag-closed {
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
}

.ws-proc-tag-draft,
.ws-proc-tag-pending {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.ws-proc-module-empty {
  margin: 24px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.ws-proc-detail-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.1);
  font-size: 12px;
  color: #b45309;
  cursor: pointer;
}

.ws-proc-module-detail-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
}

.ws-proc-module-fields {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.12);
  font-size: 12px;
}

.ws-proc-module-fields dt {
  color: var(--text-muted);
}

.ws-proc-module-fields dd {
  margin: 0;
  color: var(--text-primary);
}

.ws-proc-module-cta {
  margin-top: 4px;
}

.ws-proc-search {
  width: 100%;
  margin-bottom: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  font-size: 12px;
}

.ws-proc-vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.ws-proc-vendor-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.ws-proc-vendor-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
}

.ws-proc-vendor-grade {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.12);
  font-size: 10px;
  font-weight: 700;
  color: #b45309;
}

.ws-proc-vendor-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.ws-proc-vendor-meta {
  font-size: 10px;
  color: var(--text-muted);
}

.ws-proc-card {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.2);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ws-proc-card.is-selected {
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.ws-proc-card.dim {
  opacity: 0.82;
}

.ws-proc-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.ws-proc-id {
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
}

.ws-proc-amount {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.ws-proc-desc {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.ws-proc-steps {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ws-proc-steps li {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--text-muted);
}

.ws-proc-steps li.done {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.ws-proc-steps li.active {
  background: #d97706;
  color: #fff;
  font-weight: 500;
}

.ws-proc-bar {
  height: 4px;
  border-radius: 999px;
  background: #f3f4f6;
  overflow: hidden;
}

.ws-proc-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* ── 分组列表菜单（iOS Settings / Fiori 风格）── */
.ws-menu {
  max-width: 480px;
}

.ws-menu-section {
  margin-bottom: 22px;
}

.ws-menu-section:last-child {
  margin-bottom: 0;
}

.ws-menu-section-title {
  margin: 0 0 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.ws-menu-card {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ws-menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}

.ws-menu-row:last-child {
  border-bottom: none;
}

.ws-menu-row:hover {
  background: rgba(15, 23, 42, 0.03);
}

.ws-menu-row:active {
  background: rgba(15, 23, 42, 0.06);
}

.ws-menu-row.is-active {
  background: rgba(245, 158, 11, 0.1);
}

.ws-menu-row.is-active .ws-menu-row-title {
  color: #b45309;
  font-weight: 600;
}

.ws-menu-row.is-featured {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.07), rgba(99, 102, 241, 0.02));
}

.ws-menu-row.is-featured:hover {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.04));
}

.ws-menu-row-compact {
  padding: 10px 12px;
}

.ws-menu-row-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}

.ws-menu-row-icon .icon {
  width: 18px;
  height: 18px;
}

.ws-menu-row-icon[data-tone="universal"] {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.ws-menu-row-icon[data-tone="leave"] {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.ws-menu-row-icon[data-tone="overtime"] {
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
}

.ws-menu-row-icon[data-tone="travel"] {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
}

.ws-menu-row-icon[data-tone="supplies"] {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.ws-menu-row-icon[data-tone="it"] {
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
}

.ws-menu-row-icon[data-tone="car"] {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
}

.ws-menu-row-icon[data-tone="expense"] {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.ws-menu-row-body {
  flex: 1;
  min-width: 0;
}

.ws-menu-row-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
}

.ws-menu-row-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.ws-menu-row-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.55;
}

.ws-menu-row-chevron .icon {
  width: 16px;
  height: 16px;
}

/* ── 采购事宜 list-detail ── */
.ws-proc-layout {
  display: grid;
  grid-template-columns: minmax(168px, 200px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ws-proc-nav-pane {
  min-width: 0;
}

.ws-proc-nav-pane .ws-menu-section {
  margin-bottom: 16px;
}

.ws-proc-nav-pane .ws-menu-section-title {
  margin-left: 8px;
  font-size: 11px;
}

.ws-proc-detail-pane {
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.ws-proc-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(245, 158, 11, 0.04);
}

.ws-proc-detail-head:empty,
.ws-proc-detail-head[hidden] {
  display: none;
}

.ws-proc-detail-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.ws-proc-detail-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.ws-proc-detail-badge {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  font-size: 11px;
  color: #b45309;
}

.ws-proc-detail-badge strong {
  font-size: 15px;
  font-weight: 700;
}

.ws-proc-detail-body {
  padding: 14px 16px 16px;
}

.ws-proc-detail-empty {
  margin: 32px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.ws-proc-ph-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 8px;
}

.ws-proc-ph-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ws-proc-ph-table th,
.ws-proc-ph-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.ws-proc-ph-table th {
  background: #f9fafb;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-muted);
}

.ws-proc-ph-table tr:last-child td {
  border-bottom: none;
}

.ws-hist-filters {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.ws-hist-filter {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: #fff;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
}

.ws-hist-filter.on {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(37, 99, 235, 0.35);
  color: #2563eb;
  font-weight: 500;
}

.ws-hist-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
  border-left: 2px solid rgba(37, 99, 235, 0.15);
}

.ws-hist-entry {
  position: relative;
  padding: 0 0 16px 20px;
}

.ws-hist-entry::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.ws-hist-date {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 8px;
}

.ws-hist-card {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  background: #fff;
}

.ws-hist-card.dim {
  opacity: 0.85;
}

.ws-hist-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.ws-hist-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.ws-hist-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
  flex-shrink: 0;
}

.ws-hist-badge.pass {
  background: #d1fae5;
  color: #059669;
}

.ws-hist-badge.reject {
  background: #fee2e2;
  color: #dc2626;
}

.ws-hist-badge.withdraw {
  background: #f3f4f6;
  color: var(--text-muted);
}

.ws-hist-meta {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.ws-hist-time {
  font-size: 11px;
  color: var(--text-muted);
}

.ws-hist-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(37, 99, 235, 0.08);
}

.ws-hist-detail-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: #fff;
  font-size: 11px;
  color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

.ws-hist-detail-btn:hover {
  background: rgba(37, 99, 235, 0.06);
}

.ws-hist-empty {
  margin: 24px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.ws-cat-panel-hist {
  position: relative;
}

.ws-hist-detail.is-open {
  display: block;
  animation: ws-hist-detail-in 0.22s ease;
}

@keyframes ws-hist-detail-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ws-hist-detail-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: none;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  font-size: 12px;
  color: #2563eb;
  cursor: pointer;
}

.ws-hist-detail-head h3 {
  margin: 8px 0 4px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.ws-hist-detail-no {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.ws-hist-detail-fields {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 12px;
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.04);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.ws-hist-detail-fields dt {
  font-size: 12px;
  color: var(--text-muted);
}

.ws-hist-detail-fields dd {
  margin: 0;
  font-size: 13px;
  color: var(--text-primary);
}

.ws-hist-detail-block {
  margin-bottom: 16px;
}

.ws-hist-detail-block h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.ws-hist-detail-block p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
}

.ws-hist-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ws-hist-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-left: 2px solid #e5e7eb;
  margin-left: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.ws-hist-step.done {
  border-left-color: #2563eb;
  color: var(--text-primary);
}

.ws-hist-step.reject {
  border-left-color: #dc2626;
  color: #dc2626;
}

.ws-hist-step-label {
  font-weight: 500;
}

.ws-hist-step-at {
  font-size: 11px;
}

.ws-hist-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

.ws-exp-new {
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  background: #7c3aed;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.ws-tform {
  max-width: 420px;
  padding: 4px 0 16px;
}

.ws-tform-fields {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ws-tform-actions {
  margin-top: 16px;
}

.ws-tform-back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.08);
  font-size: 12px;
  color: #7c3aed;
  cursor: pointer;
}

.ws-tform-back:hover {
  background: rgba(124, 58, 237, 0.14);
}

.ws-exp-back {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  background: rgba(124, 58, 237, 0.08);
  font-size: 12px;
  color: #7c3aed;
  cursor: pointer;
}

.ws-exp-back:hover {
  background: rgba(124, 58, 237, 0.14);
}

.ws-exp-layout {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 16px;
  align-items: start;
}

.ws-exp-form {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: linear-gradient(180deg, #faf5ff 0%, #fff 48px);
}

.ws-exp-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
  font-size: clamp(40px, 12vw, 64px);
  font-weight: 700;
  letter-spacing: 0.12em;
  user-select: none;
  line-height: 1;
}

.ws-exp-watermark[data-status="pending"] {
  color: rgba(124, 58, 237, 0.22);
}

.ws-exp-watermark[data-status="done"] {
  color: rgba(5, 150, 105, 0.24);
}

.ws-exp-form > :not(.ws-exp-watermark) {
  position: relative;
  z-index: 1;
}

.ws-exp-form.is-readonly[data-status="pending"] {
  border-color: rgba(124, 58, 237, 0.22);
  background: linear-gradient(180deg, #faf5ff 0%, #fff 40%);
}

.ws-exp-form.is-readonly[data-status="done"] {
  border-color: rgba(16, 185, 129, 0.22);
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 40%);
}

.ws-exp-form-label {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: #6d28d9;
}

.ws-exp-field {
  margin-bottom: 12px;
}

.ws-exp-field label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ws-exp-select,
.ws-exp-input,
.ws-exp-textarea {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.15);
  background: #fff;
  font-size: 13px;
  color: var(--text-primary);
  font-family: inherit;
  box-sizing: border-box;
}

.ws-exp-select {
  text-align: left;
  cursor: pointer;
}

.ws-exp-type-picker {
  position: relative;
}

.ws-exp-type-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 3;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.15);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.ws-exp-type-opt {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.ws-exp-type-opt:hover,
.ws-exp-type-opt.on {
  background: rgba(124, 58, 237, 0.08);
  color: #6d28d9;
}

.ws-exp-form.is-readonly .ws-exp-input,
.ws-exp-form.is-readonly .ws-exp-textarea {
  background: #f9fafb;
  color: var(--text-secondary);
}

.ws-exp-input.amount {
  font-size: 18px;
  font-weight: 600;
  color: #6d28d9;
}

.ws-exp-textarea {
  min-height: 48px;
  line-height: 1.45;
}

.ws-exp-attach {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.06);
  font-size: 12px;
  color: #6d28d9;
}

.ws-exp-attach-label {
  font-size: 11px;
  font-weight: 600;
  color: #6d28d9;
}

.ws-exp-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ws-exp-file-empty {
  font-size: 12px;
  color: #9ca3af;
}

.ws-exp-file-add {
  align-self: flex-start;
  border: 1px dashed rgba(109, 40, 217, 0.35);
  border-radius: 6px;
  background: transparent;
  color: #6d28d9;
  font: inherit;
  font-size: 11px;
  padding: 4px 10px;
  cursor: pointer;
}

.ws-exp-file-add:hover {
  background: rgba(109, 40, 217, 0.08);
}

.ws-exp-invoice {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(79, 140, 255, 0.2);
  background: rgba(79, 140, 255, 0.05);
}

.ws-exp-invoice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.ws-exp-invoice-label {
  font-size: 12px;
  font-weight: 600;
  color: #1d4ed8;
}

.ws-exp-invoice-copy,
.ws-exp-invoice-reveal,
.ws-exp-invoice-verify-btn {
  border: none;
  border-radius: 6px;
  padding: 3px 8px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.ws-exp-invoice-copy {
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
}

.ws-exp-invoice-reveal {
  margin-top: 8px;
  background: transparent;
  color: #1d4ed8;
  padding-left: 0;
}

.ws-exp-invoice-fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  margin: 0;
  font-size: 11px;
}

.ws-exp-invoice-fields dt {
  margin: 0;
  color: #64748b;
}

.ws-exp-invoice-fields dd {
  margin: 0;
  color: #0f172a;
  word-break: break-all;
}

.ws-exp-invoice-verify {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.ws-exp-invoice-pin {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(29, 78, 216, 0.25);
  border-radius: 6px;
  padding: 5px 8px;
  font: inherit;
  font-size: 12px;
}

.ws-exp-invoice-verify-btn {
  background: #1d4ed8;
  color: #fff;
}

.ws-file-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ws-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 4px 10px 4px 6px;
  background: #fff;
  font: inherit;
  font-size: 11px;
  color: #334155;
  cursor: pointer;
}

.ws-file-chip:hover {
  border-color: rgba(79, 140, 255, 0.45);
  background: rgba(79, 140, 255, 0.06);
}

.ws-file-chip-type {
  flex-shrink: 0;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(79, 140, 255, 0.12);
  color: #2563eb;
  font-size: 10px;
  font-weight: 600;
}

.ws-file-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-file-chip-size {
  flex-shrink: 0;
  color: #94a3b8;
  font-size: 10px;
}

.ws-file-empty {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}

.ws-exp-item-files {
  flex-shrink: 0;
  font-size: 10px;
  color: #94a3b8;
}

.ws-hist-detail-files .ws-file-chips {
  margin-top: 4px;
}

.ws-exp-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.ws-exp-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.ws-exp-btn.primary {
  background: #7c3aed;
  border-color: transparent;
  color: #fff;
}

.ws-exp-side {
  padding: 12px 0;
}

.ws-exp-side-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.ws-exp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-exp-item {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  cursor: pointer;
}

.ws-exp-item.is-editing {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.1);
}

.ws-exp-btn:disabled,
.ws-exp-select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ws-exp-item-title {
  grid-column: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
}

.ws-exp-item-amt {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 13px;
  font-weight: 600;
  color: #6d28d9;
  align-self: center;
}

.ws-exp-item-status {
  grid-column: 1;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}

.ws-exp-item.draft .ws-exp-item-status {
  background: #f3f4f6;
  color: var(--text-muted);
}

.ws-exp-item.pending .ws-exp-item-status {
  background: #ede9fe;
  color: #7c3aed;
}

.ws-exp-item.done .ws-exp-item-status {
  background: #d1fae5;
  color: #059669;
}
