:root {
  --workbench-ink: #172033;
  --workbench-muted: #718096;
  --workbench-line: #dfe6ef;
  --workbench-surface: #ffffff;
  --workbench-canvas: #f2f5f9;
  --workbench-rail: #151b26;
  --workbench-blue: #1769e0;
  --workbench-blue-soft: #eaf2ff;
  --workbench-green: #2a9d68;
  --workbench-shadow: 0 12px 36px rgba(22, 31, 49, 0.12);
}

#mainApp.workbench-app {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  grid-template-rows: 52px minmax(0, 1fr);
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color: var(--workbench-ink);
  background: linear-gradient(to right, var(--workbench-rail) 66px, var(--workbench-canvas) 66px);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

#mainApp.workbench-app.hidden {
  display: none !important;
}

#nextModal {
  z-index: 3000;
}

#mainApp button,
#mainApp input,
#mainApp select {
  font: inherit;
}

.workbench-topbar {
  position: relative;
  z-index: 40;
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: 66px auto minmax(120px, 1fr) auto;
  align-items: center;
  height: 52px;
  padding-right: 18px;
  color: #eef3fb;
  background: #222b3a;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.workbench-logo {
  display: grid;
  place-items: center;
  width: 66px;
  height: 52px;
  background: #111722;
}

.workbench-logo svg {
  width: 30px;
  height: 30px;
  fill: #1670f8;
  stroke: #71a9ff;
  stroke-width: 0.45;
}

.workbench-brand {
  padding: 0 22px 0 15px;
  font-size: 15px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.workbench-topnav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
}

.workbench-topnav button,
.workbench-account button {
  min-width: 64px;
  border: 0;
  color: #cbd3df;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.workbench-topnav button {
  position: relative;
  padding: 0 18px;
  color: #ffffff;
}

.workbench-topnav button::after {
  position: absolute;
  right: 14px;
  bottom: 0;
  left: 14px;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: #4f91ff;
  content: "";
}

.workbench-topnav button:hover,
.workbench-account button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.workbench-account {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.workbench-account > span {
  max-width: 280px;
  overflow: hidden;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: #dbe2ec;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.04);
}

.workbench-account button {
  height: 34px;
  border-radius: 7px;
  font-size: 13px;
}

.workbench-rail {
  position: relative;
  z-index: 35;
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-height: 0;
  height: 100%;
  color: #aab5c6;
  background: var(--workbench-rail);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.03);
}

.workbench-rail-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  padding: 8px 0;
}

.workbench-rail-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 64px;
  padding: 7px 3px;
  border: 0;
  border-left: 3px solid transparent;
  color: #9da9bb;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.workbench-rail-item svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.workbench-rail-item span {
  max-width: 52px;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: normal;
}

.workbench-rail-item:hover,
.workbench-rail-item:focus-visible {
  color: #eef4ff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.workbench-rail-item.active,
.workbench-rail-item[aria-expanded="true"] {
  border-left-color: #3e8cff;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(40, 119, 237, 0.28), rgba(40, 119, 237, 0.08));
}

.workbench-rail-item.active svg,
.workbench-rail-item[aria-expanded="true"] svg {
  color: #79aeff;
}

.workbench-flyout {
  position: fixed;
  z-index: 45;
  top: var(--workbench-flyout-top, 112px);
  left: 66px;
  display: grid;
  width: 218px;
  padding: 9px;
  border: 1px solid #dfe5ee;
  border-left: 0;
  border-radius: 0 12px 12px 0;
  opacity: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 16px 16px 38px rgba(20, 30, 49, 0.16);
  pointer-events: none;
  transform: translateX(-10px) scaleX(0.96);
  transform-origin: left center;
  transition: opacity 150ms ease, transform 190ms cubic-bezier(0.22, 1, 0.36, 1);
}

.workbench-flyout.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scaleX(1);
}

.workbench-flyout::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #347fe7;
  content: "";
}

.workbench-flyout-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 7px 9px 9px;
  color: #1c2638;
}

.workbench-flyout-title span {
  font-size: 14px;
  font-weight: 700;
}

.workbench-flyout-title small {
  color: #a5adba;
  font-size: 9px;
  letter-spacing: 0.12em;
}

.workbench-flyout > button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  color: #273246;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.workbench-flyout > button:hover,
.workbench-flyout > button:focus-visible,
.workbench-flyout > button.active {
  color: #145fc5;
  background: var(--workbench-blue-soft);
  outline: none;
  transform: translateX(2px);
}

.workbench-flyout > button > span {
  font-size: 14px;
  font-weight: 650;
}

.workbench-flyout > button > small {
  color: #8a94a5;
  font-size: 11px;
  line-height: 1.45;
}

.workbench-flyout > button.active > small,
.workbench-flyout > button:hover > small {
  color: #6685ad;
}

.workbench-workspace {
  grid-column: 2;
  grid-row: 2;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 18px 24px 24px;
  background:
    radial-gradient(circle at 94% 2%, rgba(58, 122, 220, 0.1), transparent 25%),
    linear-gradient(180deg, #f4f7fb 0, var(--workbench-canvas) 200px);
}

.workbench-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto 14px;
}

.workbench-page-head h1 {
  margin: 0;
  color: #17243a;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.workbench-page-head p {
  margin: 6px 0 0;
  color: var(--workbench-muted);
  font-size: 13px;
}

.workbench-page-controls,
.workbench-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.workbench-page-controls {
  flex-wrap: wrap;
}

.workbench-page-action {
  height: 34px;
  padding: 0 14px;
  border: 1px solid #cbd9e8;
  border-radius: 8px;
  color: #31546f;
  font-size: 13px;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(35, 73, 106, 0.05);
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.workbench-page-action:hover,
.workbench-page-action:focus-visible {
  border-color: #78a9df;
  color: #1769e0;
  background: #f5f9ff;
  outline: none;
}

.workbench-page-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 0;
  padding: 7px 11px;
  border: 1px solid #cfe7da;
  border-radius: 999px;
  color: #42715b;
  font-size: 12px;
  background: rgba(248, 255, 251, 0.92);
  box-shadow: 0 5px 16px rgba(42, 157, 104, 0.06);
}

.workbench-page-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--workbench-green);
  box-shadow: 0 0 0 3px rgba(42, 157, 104, 0.12);
}

.workbench-process-guide {
  display: grid;
  grid-template-columns: repeat(var(--workbench-step-count, 3), minmax(0, 1fr));
  max-width: 1600px;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 1px solid var(--workbench-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(31, 43, 65, 0.045);
}

.workbench-process-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 11px 16px;
  color: #8a93a2;
}

.workbench-process-step + .workbench-process-step {
  border-left: 1px solid #edf0f4;
}

.workbench-process-step i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #d9dee7;
  border-radius: 50%;
  color: #8d96a5;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  background: #ffffff;
}

.workbench-process-step span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-process-step.active {
  color: #1b64c9;
  background: linear-gradient(90deg, #edf5ff, rgba(247, 250, 255, 0.72));
}

.workbench-process-step.active i {
  border-color: var(--workbench-blue);
  color: #ffffff;
  background: var(--workbench-blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.1);
}

.workbench-process-step.complete {
  color: #47745f;
}

.workbench-process-step.complete i {
  border-color: #9acdb4;
  color: #ffffff;
  background: var(--workbench-green);
}

.workbench-tool-stage {
  position: relative;
  max-width: 1600px;
  min-height: 240px;
  margin: 0 auto;
}

#mainApp .content {
  padding: 0;
}

#mainApp .card {
  border: 1px solid var(--workbench-line);
  border-radius: 12px;
  background: var(--workbench-surface);
  box-shadow: 0 8px 24px rgba(28, 39, 61, 0.05);
}

#standardToolContent.workbench-tool-grid {
  display: grid;
  grid-template-columns: minmax(310px, 350px) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

#standardToolContent.workbench-tool-grid.hidden {
  display: none !important;
}

.workbench-home-content {
  display: block;
}

.workbench-home-content.hidden {
  display: none !important;
}

.workbench-home-card {
  min-height: 260px;
  padding: 44px 48px;
  display: grid;
  align-content: center;
  gap: 12px;
  background:
    radial-gradient(circle at 88% 22%, rgba(23, 105, 224, 0.12), transparent 28%),
    #ffffff;
}

.workbench-home-card > span {
  color: #1769e0;
  font-size: 14px;
  font-weight: 700;
}

.workbench-home-card h2 {
  margin: 0;
  color: #17243a;
  font-size: 28px;
  line-height: 1.35;
}

.workbench-home-card p {
  max-width: 720px;
  margin: 0;
  color: #718099;
  font-size: 15px;
  line-height: 1.8;
}

.workbench-operation-card,
.workbench-result-card {
  min-width: 0;
  min-height: 200px;
}

#mainApp .workbench-operation-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

#mainApp .workbench-operation-card .card-head,
#mainApp .workbench-result-card .card-head {
  min-height: 66px;
  padding: 14px 15px;
  border-bottom: 1px solid #e9eef4;
}

#mainApp .workbench-operation-card .card-head {
  display: block;
}

#mainApp .workbench-operation-card .file-title-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
}

#mainApp .workbench-operation-card .file-title-actions > div {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  margin-bottom: 3px;
}

#mainApp .workbench-card-title b {
  grid-column: 1;
  grid-row: 1;
  color: #202a3c;
  font-size: 14px;
  font-weight: 750;
}

#mainApp .workbench-card-title small {
  grid-column: 1;
  grid-row: 2;
  margin-top: 3px;
  color: #8b96a7;
  font-size: 10px;
}

#mainApp .workbench-card-title > span {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #8b94a3;
  font-size: 11px;
}

#mainApp .workbench-operation-card .file-import-btn,
#mainApp .workbench-operation-card .file-delete-selected {
  min-height: 31px;
}

#mainApp .workbench-operation-card .file-import-btn {
  grid-column: 2;
  padding: 6px 10px;
  border-color: #b9ceed;
  color: #2465bf;
  background: #f8fbff;
}

#mainApp .workbench-operation-card .file-delete-selected {
  grid-column: 3;
  padding: 6px 10px;
}

#mainApp .workbench-operation-card .file-select-all-bar {
  flex: 0 0 auto;
  padding-left: 25px;
}

#mainApp .workbench-operation-footer {
  padding: 0 14px 14px;
}

#mainApp .workbench-operation-card #processBtn {
  width: 100%;
  min-height: 40px;
  border-radius: 8px;
  box-shadow: 0 7px 16px rgba(23, 105, 224, 0.16);
}

#mainApp .workbench-operation-card .file-list {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  max-height: none;
  padding: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #8797a8 #edf2f7;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

#mainApp .workbench-operation-card .file-list::-webkit-scrollbar {
  width: 10px;
}

#mainApp .workbench-operation-card .file-list::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #edf2f7;
}

#mainApp .workbench-operation-card .file-list::-webkit-scrollbar-thumb {
  border: 2px solid #edf2f7;
  border-radius: 999px;
  background: #8797a8;
}

#mainApp .workbench-operation-card .file-list::-webkit-scrollbar-thumb:hover {
  background: #667b8e;
}

#mainApp .workbench-operation-card .file-drop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  min-height: 180px;
  padding: 18px;
  border: 1px dashed #afc3dc;
  border-radius: 11px;
  color: #607087;
  background: linear-gradient(145deg, #f7faff, #fbfdff);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

#mainApp .workbench-operation-card .file-drop-empty:hover {
  border-color: #4d8fe7;
  background: linear-gradient(145deg, #eff6ff, #f8fbff);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(49, 104, 181, 0.08);
}

#mainApp .workbench-operation-card .file-drop-empty strong {
  margin-top: 11px;
  color: #245fae;
  font-size: 14px;
  font-weight: 750;
}

#mainApp .workbench-operation-card .file-drop-empty > span:not(.workbench-upload-icon):not(.workbench-file-types) {
  margin-top: 5px;
  color: #76869b;
  font-size: 10px;
}

#mainApp .workbench-upload-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #d6e6fa;
  border-radius: 13px;
  color: #276dcc;
  background: #eaf3ff;
  box-shadow: 0 6px 16px rgba(39, 109, 204, 0.1);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

#mainApp .workbench-file-types {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 13px;
}

#mainApp .workbench-file-types i {
  padding: 3px 7px;
  border: 1px solid #e1e8f0;
  border-radius: 5px;
  color: #7f8da0;
  background: #f0f4f8;
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
  letter-spacing: 0.04em;
}

#mainApp .workbench-result-card {
  padding: 0;
  overflow: visible;
}

#mainApp .workbench-result-card .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#mainApp .workbench-result-title {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
}

#mainApp .workbench-result-card .result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

#mainApp .workbench-result-card .result-actions button {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 8px;
}

#mainApp .result-field-filter {
  position: relative;
}

#mainApp .result-field-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4d6077;
  background: #f8fafc;
}

#mainApp .result-field-filter-btn > span {
  color: #3978c6;
  font-size: 16px;
  line-height: 1;
}

#mainApp .result-field-filter-btn > i {
  padding: 2px 5px;
  border-radius: 999px;
  color: #6c7d91;
  background: #eaf0f6;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
}

#mainApp .result-field-filter-btn[aria-expanded="true"] {
  border-color: #82aee6;
  color: #245fae;
  background: #f1f7ff;
  box-shadow: 0 0 0 3px rgba(50, 119, 207, 0.1);
}

#mainApp .result-field-filter-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 0;
  width: min(330px, calc(100vw - 48px));
  overflow: hidden;
  border: 1px solid #d8e1ec;
  border-radius: 11px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(25, 43, 69, 0.18);
}

#mainApp .result-field-filter-menu::backdrop {
  background: transparent;
}

#mainApp .result-field-filter-menu[open] {
  display: block;
}

#mainApp .result-field-filter-menu header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 15px;
  border-bottom: 1px solid #e8edf3;
  background: linear-gradient(180deg, #fbfdff, #f6f9fc);
}

#mainApp .result-field-filter-menu header div:first-child {
  display: grid;
  gap: 3px;
}

#mainApp .result-field-filter-menu header div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

#mainApp .result-field-filter-menu header b {
  color: #26364c;
  font-size: 13px;
}

#mainApp .result-field-filter-menu header small,
#mainApp .result-field-filter-menu header div > span {
  color: #7b899b;
  font-size: 10px;
}

#mainApp .result-field-filter-menu header div > span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #e8f1fc;
  color: #3973b8;
  font-weight: 750;
}

#mainApp .result-field-filter-menu header div > button {
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid #d0dce9;
  border-radius: 6px;
  background: #ffffff;
  color: #4a6b8f;
  font-size: 11px;
  cursor: pointer;
}

#mainApp .result-field-filter-menu header div > button:hover {
  background: #f4f8fd;
}

#mainApp .result-field-filter-all,
#mainApp .result-field-filter-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 14px;
  color: #46566b;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
}

#mainApp .result-field-filter-all {
  border-bottom: 1px solid #edf1f5;
  color: #2d65a8;
  font-weight: 750;
}

#mainApp .result-field-filter-all:hover,
#mainApp .result-field-filter-options label:hover {
  background: #f4f8fd;
}

#mainApp .result-field-filter-all input,
#mainApp .result-field-filter-options input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #1769e0;
}

#mainApp .result-field-filter-options {
  display: grid;
  max-height: 306px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px 0;
  scrollbar-color: #94a5b7 #eef2f6;
  scrollbar-width: thin;
}

#mainApp .result-field-filter-options::-webkit-scrollbar {
  width: 9px;
}

#mainApp .result-field-filter-options::-webkit-scrollbar-thumb {
  border: 2px solid #eef2f6;
  border-radius: 999px;
  background: #94a5b7;
}

#mainApp .workbench-result-card .table-wrap {
  min-height: 160px;
  max-height: calc(100vh - 260px);
  margin-top: 0;
  border: 0;
  border-radius: 0;
  display: block !important;
  width: 100% !important;
  overflow: auto !important;
}

#mainApp .workbench-result-card .table-wrap > table {
  width: max-content !important;
  min-width: auto !important;
  table-layout: auto !important;
}

#mainApp .workbench-result-card .table-wrap th,
#mainApp .workbench-result-card .table-wrap td {
  white-space: nowrap !important;
}

#mainApp .workbench-result-card .empty {
  min-height: 140px;
}

#mainApp .workbench-empty-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #8794a7;
  background:
    radial-gradient(circle at 50% 42%, rgba(233, 242, 252, 0.78), transparent 26%),
    #ffffff;
}

#mainApp .workbench-empty-result strong {
  margin-top: 15px;
  color: #536278;
  font-size: 13px;
  font-weight: 700;
}

#mainApp .workbench-empty-result > span:last-child {
  margin-top: 6px;
  color: #8b98aa;
  font-size: 10px;
}

#mainApp .workbench-empty-illustration {
  position: relative;
  z-index: 0;
  display: grid;
  align-content: center;
  gap: 8px;
  width: 104px;
  height: 76px;
  padding: 18px 20px;
  border: 1px solid #d3dfec;
  border-radius: 10px;
  background: #fbfdff;
  box-shadow: 0 10px 24px rgba(45, 70, 105, 0.09);
}

#mainApp .workbench-empty-illustration::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px -12px -10px 12px;
  border: 1px solid #dde6f0;
  border-radius: 10px;
  background: #eef4fa;
}

#mainApp .workbench-empty-illustration::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 25px;
  height: 25px;
  border-bottom: 1px solid #d3dfec;
  border-left: 1px solid #d3dfec;
  border-radius: 0 10px 0 8px;
  background: #eaf3ff;
}

#mainApp .workbench-empty-illustration i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #dbe6f2;
}

#mainApp .workbench-empty-illustration i:last-child {
  width: 68%;
}

#mainApp .task-float {
  top: 130px;
  right: 18px;
  bottom: auto;
  left: auto;
  z-index: 120;
  width: min(420px, calc(100vw - 36px));
  height: auto;
  max-height: calc(100vh - 130px - 18px);
  overflow: auto;
}

#mainApp .tax-refund-content,
#mainApp .invoice-batch-content,
#mainApp .exchange-rate-content {
  min-height: 500px;
}

#mainApp .tax-refund-panel,
#mainApp .invoice-batch-file-card,
#mainApp .invoice-batch-preview-card,
#mainApp .exchange-rate-card {
  border-color: var(--workbench-line);
  box-shadow: 0 8px 24px rgba(28, 39, 61, 0.055);
}

#mainApp button:focus-visible,
#mainApp input:focus-visible,
#mainApp select:focus-visible {
  outline: 2px solid rgba(23, 105, 224, 0.65);
  outline-offset: 2px;
}

@media (max-width: 1050px) {
  .workbench-account > span {
    max-width: 180px;
  }

  #standardToolContent.workbench-tool-grid {
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  }

  .workbench-workspace {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 820px) {
  #mainApp.workbench-app {
    grid-template-columns: 58px minmax(0, 1fr);
    background: linear-gradient(to right, var(--workbench-rail) 58px, var(--workbench-canvas) 58px);
  }

  .workbench-topbar {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    padding-right: 8px;
  }

  .workbench-logo {
    width: 58px;
  }

  .workbench-brand {
    display: none;
  }

  .workbench-account > span {
    display: none;
  }

  .workbench-flyout {
    left: 58px;
  }

  .workbench-workspace {
    padding: 16px 12px 22px;
  }

  .workbench-page-status {
    display: none;
  }

  .workbench-process-guide {
    overflow-x: auto;
    grid-template-columns: repeat(var(--workbench-step-count, 3), minmax(145px, 1fr));
  }

  #standardToolContent.workbench-tool-grid {
    grid-template-columns: 1fr;
  }

  .workbench-operation-card,
  .workbench-result-card {
    min-height: 410px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workbench-flyout,
  .workbench-rail-item,
  .workbench-flyout > button,
  .workbench-operation-card .file-drop-empty {
    transition: none;
  }
}

/* Reconcile and tax-refund tools: compact single-layer workflow. */
body.tax-refund-active .workbench-workspace {
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

body.tax-refund-active .workbench-process-guide {
  display: none;
}

body.tax-refund-active .workbench-page-head {
  width: 100%;
  margin-bottom: 12px;
}

body.tax-refund-active .workbench-tool-stage,
body.tax-refund-active .tax-refund-content {
  width: 100%;
  height: 100%;
  min-height: 0;
}

body.tax-refund-active .tax-refund-content {
  padding: 0;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  gap: 12px;
  overflow: hidden;
}

body.tax-refund-active .tax-refund-workflow-view {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: 68px minmax(0, 1fr);
  gap: 12px;
}

body.tax-refund-active .tax-refund-steps {
  height: 68px;
  min-height: 68px;
  overflow: hidden;
  border-color: #dce6f1;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 53, 82, 0.07);
}

body.tax-refund-active .tax-refund-step {
  height: 68px;
  min-height: 68px;
  gap: 9px;
  padding: 10px 12px;
  border-color: #e8eef5;
  color: #77889c;
  background: #ffffff;
  transition: color 160ms ease, background-color 160ms ease;
}

body.tax-refund-active .tax-refund-step > span {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
  border-color: #cbd8e5;
  background: #f8fafc;
}

body.tax-refund-active .tax-refund-step b {
  color: #425a71;
  font-size: 13px;
}

body.tax-refund-active .tax-refund-step small {
  margin-top: 2px;
  color: #8a99aa;
  font-size: 11px;
}

body.tax-refund-active .tax-refund-step.is-active {
  color: #1768bf;
  background: linear-gradient(90deg, #eaf4ff, #f5f9ff);
}

body.tax-refund-active .tax-refund-step.is-active > span {
  border-color: #1769e0;
  color: #ffffff;
  background: #1769e0;
  box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.1);
}

body.tax-refund-active .tax-refund-step.is-active b {
  color: #155dab;
}

body.tax-refund-active .tax-refund-step.is-complete > span {
  border-color: #7fcdb5;
  color: #0e8463;
  background: #e8f8f2;
}

body.tax-refund-active .tax-refund-step.is-complete b {
  color: #36735f;
}

body.tax-refund-active .tax-refund-panel {
  display: grid;
  height: 100%;
  min-height: 0;
  padding: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-color: #dce6f1;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(31, 53, 82, 0.08);
}

body.tax-refund-active .tax-refund-panel-head {
  grid-row: 1;
  min-height: 76px;
  padding: 15px 20px;
  border-color: #e5edf5;
  background: #ffffff;
}

body.tax-refund-active .tax-refund-panel-head h3 {
  margin: 3px 0 2px;
  color: #182d47;
  font-size: 19px;
}

body.tax-refund-active .tax-refund-panel-head p {
  color: #7a8b9f;
  font-size: 12px;
}

body.tax-refund-active .tax-refund-actions {
  align-items: center;
  gap: 8px;
}

body.tax-refund-active .tax-refund-actions button {
  min-height: 40px;
  padding: 0 16px;
}

body.tax-refund-active .tax-refund-body {
  grid-row: 2;
  min-height: 0;
  max-height: none;
  overflow: auto;
  background: #f8fbfe;
}

body.tax-refund-active .tax-refund-footer {
  display: flex;
  grid-row: 3;
  min-height: 44px;
  padding: 10px 18px;
  border-color: #e5edf5;
  background: #f8fbfe;
}

body.tax-refund-active .tax-refund-panel.tax-refund-file-step > .tax-refund-panel-head {
  display: none;
}

body.tax-refund-active .tax-refund-panel.tax-refund-file-step > .tax-refund-footer {
  display: flex;
}

body.tax-refund-active .tax-refund-panel.tax-refund-file-step .tax-refund-body {
  display: grid;
  height: auto;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #f8fbfe;
}

body.tax-refund-active .tax-refund-file-toolbar {
  min-height: 72px;
  padding: 14px 20px;
  border-color: #e5edf5;
  background: #ffffff;
}

body.tax-refund-active .tax-refund-file-toolbar > .tax-refund-file-heading {
  gap: 3px 12px;
}

body.tax-refund-active .tax-refund-file-heading > em {
  color: #128160;
  font-size: 12px;
  letter-spacing: 0.04em;
}

body.tax-refund-active .tax-refund-file-heading b {
  color: #182d47;
  font-size: 18px;
}

body.tax-refund-active .tax-refund-file-heading span,
body.tax-refund-active .tax-refund-file-heading > small {
  color: #7d8da0;
  font-size: 12px;
}

body.tax-refund-active .tax-refund-file-toolbar button {
  min-height: 40px;
  padding: 0 15px;
  border-radius: 8px;
}

body.tax-refund-active .tax-refund-file-list,
body.tax-refund-active .tax-refund-panel.tax-refund-file-step.tax-refund-has-files .tax-refund-file-list {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 14px 18px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  align-content: start;
  scrollbar-color: #8797a8 #edf2f7;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  background: #f8fbfe;
}

body.tax-refund-active .tax-refund-panel.tax-refund-file-step:not(.tax-refund-has-files) .tax-refund-file-list {
  min-height: 0;
  padding: 18px;
  align-content: stretch;
}

body.tax-refund-active .tax-refund-empty-import {
  display: flex;
  height: 100%;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border-color: #a9c6e6;
  border-radius: 12px;
  color: #2368b6;
  font-size: 15px;
  font-weight: 750;
  background: linear-gradient(180deg, #fbfdff, #f3f8fe);
}

body.tax-refund-active .tax-refund-empty-import::before {
  content: "⇧";
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #c9def4;
  border-radius: 16px;
  color: #1769e0;
  font-size: 32px;
  font-weight: 500;
  background: #eaf4ff;
  box-shadow: 0 8px 20px rgba(23, 105, 224, 0.08);
}

body.tax-refund-active .tax-refund-file-row {
  min-height: 52px;
  padding: 10px 13px;
  border-color: #dce6f0;
  border-radius: 10px;
  color: #334a62;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(31, 53, 82, 0.025);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body.tax-refund-active .tax-refund-file-row:hover {
  border-color: #b9d2ec;
  box-shadow: 0 7px 18px rgba(31, 89, 151, 0.08);
  transform: translateY(-1px);
}

body.tax-refund-active .tax-refund-file-row > span:first-of-type {
  color: #1769e0;
  background: #eaf4ff;
}

body.tax-refund-active .tax-refund-file-row b {
  color: #2b4058;
  font-size: 14px;
}

body.tax-refund-active .tax-refund-file-row small {
  color: #8493a5;
}

body.tax-refund-active .tax-refund-append:not(.tax-refund-empty-import) {
  min-height: 42px;
  border-color: #b7cde4;
  border-radius: 9px;
  color: #57728e;
  background: #f5f9fd;
}

body.tax-refund-active .tax-refund-table {
  background: #ffffff;
}

body.tax-refund-active .tax-refund-table th {
  top: 0;
  z-index: 3;
  height: 42px;
  padding: 10px 12px;
  border-color: #d9e4ee;
  color: #405970;
  background: #eef5fb;
  box-shadow: inset 0 -1px #d9e4ee;
}

body.tax-refund-active .tax-refund-table td {
  height: 44px;
  padding: 10px 12px;
  border-color: #e9eff5;
  color: #536a7f;
  background: #ffffff;
}

body.tax-refund-active .tax-refund-table tbody tr:hover td {
  background: #f5f9fd;
}

body.tax-refund-active .tax-refund-empty {
  height: 100%;
  min-height: 220px;
  color: #8292a4;
  background: #f8fbfe;
}

body.tax-refund-active .tax-refund-file-list::-webkit-scrollbar,
body.tax-refund-active .tax-refund-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.tax-refund-active .tax-refund-file-list::-webkit-scrollbar-track,
body.tax-refund-active .tax-refund-body::-webkit-scrollbar-track {
  background: #edf2f7;
}

body.tax-refund-active .tax-refund-file-list::-webkit-scrollbar-thumb,
body.tax-refund-active .tax-refund-body::-webkit-scrollbar-thumb {
  border: 2px solid #edf2f7;
  border-radius: 999px;
  background: #8797a8;
}

body.tax-refund-active .tax-refund-file-list::-webkit-scrollbar-thumb:hover,
body.tax-refund-active .tax-refund-body::-webkit-scrollbar-thumb:hover {
  background: #667b8e;
}

@media (max-width: 1100px) {
  body.tax-refund-active .tax-refund-content {
    grid-template-rows: 112px minmax(0, 1fr);
  }

  body.tax-refund-active .tax-refund-steps {
    height: 112px;
    min-height: 112px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.tax-refund-active .tax-refund-step {
    height: 56px;
    min-height: 56px;
  }
}

@media (max-width: 720px) {
  body.tax-refund-active .tax-refund-workflow-view {
    grid-template-rows: 168px minmax(0, 1fr);
  }

  body.tax-refund-active .tax-refund-steps {
    height: 168px;
    min-height: 168px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.tax-refund-archive-active .tax-refund-content {
  display: block;
  overflow: hidden;
}

body.tax-refund-archive-active .tax-refund-archive-view {
  display: block;
  height: 100%;
  min-height: 0;
}

body.tax-refund-archive-active .tax-refund-ledger-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border-color: #dce6f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(31, 53, 82, 0.08);
}

body.tax-refund-archive-active .tax-refund-ledger-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 16px 20px;
  border-bottom: 1px solid #e5edf5;
}

body.tax-refund-archive-active .tax-refund-ledger-card h3 {
  margin: 0 0 5px;
  color: #182d47;
  font-size: 19px;
}

body.tax-refund-archive-active .tax-refund-ledger-card p {
  margin: 0;
  color: #7a8b9f;
  font-size: 12px;
}

body.tax-refund-archive-active .tax-refund-ledger-body {
  overflow: auto;
  overflow-x: auto;
  overflow-y: auto;
  min-height: 0;
  min-width: 0;
  scrollbar-color: #8797a8 #edf2f7;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

body.tax-refund-archive-active .tax-refund-ledger-body::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

body.tax-refund-archive-active .tax-refund-ledger-body::-webkit-scrollbar-track {
  background: #edf2f7;
}

body.tax-refund-archive-active .tax-refund-ledger-body::-webkit-scrollbar-thumb {
  border: 2px solid #edf2f7;
  border-radius: 999px;
  background: #8797a8;
}

body.tax-refund-archive-active .tax-refund-ledger-body::-webkit-scrollbar-thumb:hover {
  background: #667b8e;
}

body.tax-refund-archive-active .tax-refund-ledger-empty {
  display: grid;
  min-height: 280px;
  place-content: center;
  gap: 8px;
  color: #8797a9;
  text-align: center;
}

body.tax-refund-archive-active .tax-refund-ledger-empty strong {
  color: #3c526a;
  font-size: 16px;
}

body.tax-refund-archive-active .tax-refund-ledger-grid {
  width: max-content;
  min-width: 100%;
}

body.tax-refund-archive-active .tax-refund-ledger-grid th {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: inset 0 -1px #dce6f1;
}

body.tax-refund-archive-active .tax-refund-ledger-grid th,
body.tax-refund-archive-active .tax-refund-ledger-grid td {
  min-width: 104px;
  max-width: 260px;
}

body.tax-refund-archive-active .tax-refund-ledger-grid th:first-child,
body.tax-refund-archive-active .tax-refund-ledger-grid td:first-child {
  position: sticky;
  left: 0;
  min-width: 218px;
  max-width: 218px;
}

body.tax-refund-archive-active .tax-refund-ledger-grid th:first-child {
  z-index: 4;
  background: #e6f1fa;
}

body.tax-refund-archive-active .tax-refund-ledger-grid td:first-child {
  z-index: 1;
  color: #38566f;
  background: #f7fbfe;
  box-shadow: inset -1px 0 #dce6f1;
}

body.tax-refund-archive-active .tax-refund-ledger-grid tbody tr:hover td:first-child {
  background: #edf6fc;
}

body.tax-refund-archive-active .tax-refund-ledger-grid th:nth-child(2),
body.tax-refund-archive-active .tax-refund-ledger-grid td:nth-child(2) {
  min-width: 56px;
  max-width: 56px;
}

@media (max-width: 720px) {
  body.tax-refund-archive-active .tax-refund-ledger-card > header {
    align-items: flex-start;
    gap: 12px;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.tax-refund-active .tax-refund-step,
  body.tax-refund-active .tax-refund-file-row {
    transition: none;
  }
}

.invoice-batch-projects-shell.tax-office-project-page>header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.invoice-batch-projects-shell.tax-office-project-page>header>div {
  justify-self: center;
  text-align: center;
}

.project-page-company{justify-self:start;
  max-width: 100%;
  overflow: hidden;
  padding: 10px 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-page-close{justify-self:end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 7px;
  background: #eef4f8;
  color: #1478df;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.project-page-close:hover {
  background: #e1eef8;
}

.project-page-close:focus-visible {
  outline: 3px solid rgba(20, 120, 223, 0.22);
  outline-offset: 2px;
}

#mainApp .invoice-batch-content {
  align-content: start;
}

/* Customs extraction uses the invoice-batch components directly. */
#standardToolContent.customs-stacked.workbench-tool-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

/* Preview height is budgeted by row count instead of the shared 54vh cap in
   enhancements.css, so the default view always lands on --preview-rows rows.
   Budget = sticky header row + N data rows + the horizontal scrollbar, which sits
   inside the scroll box and would otherwise clip the last row. */
#standardToolContent.customs-stacked #dataTable.invoice-batch-preview {
  --preview-row-h: 35px;
  --preview-rows: 15;
  --preview-hscrollbar: 15px;
  max-height: calc(
    var(--preview-row-h) * var(--preview-rows)
    + var(--preview-row-h)
    + var(--preview-hscrollbar)
  );
}

@media (max-width: 720px) {
  #standardToolContent.customs-stacked .invoice-batch-file-card > header,
  #standardToolContent.customs-stacked .invoice-batch-preview-card > header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 1101px) {
  body.tax-refund-active .tax-refund-steps {
    grid-template-columns: repeat(var(--tax-refund-step-count, 6), minmax(0, 1fr));
  }
}
