.tc-console-content { min-width: 0; }

.tc-console .link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tc-blue);
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
.tc-console .link.wb-title { font-weight: 600; }
.tc-console .link:hover { text-decoration: underline; }

.tc-console .btn.blue,
.tc-console .btn.primary,
.tc-console .btn-primary,
.tc-console [data-wb="new-module"],
.tc-console [data-wb="new-tc"] {
  border-color: var(--tc-blue);
  background: var(--tc-blue);
  color: #fff;
}
.tc-console .btn.blue:hover,
.tc-console .btn.primary:hover,
.tc-console .btn-primary:hover,
.tc-console [data-wb="new-module"]:hover,
.tc-console [data-wb="new-tc"]:hover { background: #0b5ed7; }
.tc-console .btn.red,
.tc-console .btn.danger {
  border-color: var(--tc-red);
  color: var(--tc-red);
}

.tc-console .pager {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 12px;
  color: var(--tc-muted-on-canvas);
  font-size: 13px;
}
.tc-console .pages { display: flex; align-items: center; gap: 6px; }
.tc-console .pager > span { order: 0; margin-right: 0; }
.tc-console .pager > label { order: 1; }
.tc-console .pager > .pages { order: 2; margin-left: auto; }
.tc-console .pager button,
.tc-console .pager select {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--tc-border);
  border-radius: 6px;
  background: #fff;
  color: var(--tc-text);
  font: inherit;
}
.tc-console .pager button:disabled { color: var(--tc-muted); cursor: not-allowed; }
.tc-console .pager .pages button[aria-current="page"] { border-color: var(--tc-blue); background: var(--tc-blue); color: #fff; }
.tc-console .wb-case-card-head { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 12px; margin-bottom: 12px; }
.tc-console .wb-case-card-filters { display: grid; min-width: 0; gap: 10px; margin-bottom: 16px; }
.tc-console .wb-case-card-filters .wb-case-search { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; }
.tc-console .wb-case-card-filters .wb-case-filters { display: flex; min-width: 0; flex-wrap: wrap; gap: 10px; }
.tc-console .wb-case-card-filters .wb-case-filters > .filter-select { flex: 1 1 180px; min-width: 0; }
.tc-console .wb-selection { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px; }
.tc-console .chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.tc-console .chip.green { background: var(--green-bg); color: #146c43; }
.tc-console .chip.red { background: var(--red-bg); color: #b02a37; }
.tc-console .chip.gray { background: var(--gray-bg); color: #495057; }
.tc-console .chip.blue { background: var(--tc-selected-bg); color: var(--tc-selected-text); }
.tc-console .chip.yellow { background: var(--orange-bg); color: #8a4b08; }
.tc-console .subline { margin-top: 4px; color: var(--tc-muted-on-canvas); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.tc-console pre.wb-raw { max-width: 100%; min-width: 0; margin: 8px 0; overflow-wrap: anywhere; white-space: pre-wrap; font: inherit; line-height: 1.6; }

.tc-console #wbModuleSearch,
.tc-console #wbModulePlatform,
.tc-console #wbResultModule,
.tc-console #wbResultStatus,
.tc-console #wbResultSearch {
  box-sizing: border-box;
  height: 38px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--tc-control-border, var(--tc-border));
  border-radius: 6px;
  background: #fff;
  color: var(--tc-text);
  font: 16px/1.35 var(--tc-font-family);
}
.tc-console #wbModuleSearch,
.tc-console #wbModulePlatform { width: 100%; }
.tc-console #wbModules .filters[hidden] { display: none !important; }
.tc-console #wbResultModule { width: 220px; margin: 0 6px 8px 0; }
.tc-console #wbResultStatus { width: 150px; margin: 0 6px 8px 0; }
.tc-console #wbResultSearch { width: 240px; margin: 0 6px 8px 0; }

#wbSets.wb-module-detail > .wb-case-authoring { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
#wbSets.wb-module-detail > .wb-case-authoring > .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#wbSets.wb-module-detail .wb-selection { display: flex; width: 100%; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 0; }
#wbSets.wb-module-detail .wb-detail-selection-count { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#wbSets.wb-module-detail .wb-selection [data-generation-action="create"] { border-color: #198754; background: #198754; color: #fff; font-size: 12px; }
#wbSets.wb-module-detail .wb-selection [data-wb="run-selected"] { border-color: #0d6efd; background: #0d6efd; color: #fff; }
#wbSets.wb-module-detail .wb-selection [data-wb="delete-selected"] { border-color: #db3645; background: #db3645; color: #fff; }
#wbSets.wb-module-detail #testCasePanel { min-width: 0; margin: 0; padding: 20px; border-radius: 6px; }
#wbSets.wb-module-detail #testCasePanel .wb-case-card-head { justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 0; border: 0; }
#wbSets.wb-module-detail .wb-detail-tc-title { margin: 0; font-size: 16px; line-height: 1.35; }
#wbSets.wb-module-detail .wb-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
#wbSets.wb-module-detail .wb-detail-actions > .btn { box-sizing: border-box; min-height: 0; height: 28px; padding: 4px 12px; border-radius: 4px; font-size: 12px; line-height: 18px; }
#wbSets.wb-module-detail .wb-detail-actions [data-generation-action="create"] { border-color: #198754; background: #198754; color: #fff; }
#wbSets.wb-module-detail .wb-detail-actions [data-wb="run-selected"] { border-color: #0d6efd; background: #0d6efd; color: #fff; font-size: 13px; }
#wbSets.wb-module-detail .wb-detail-actions [data-wb="delete-selected"] { border-color: #db3645; background: #db3645; color: #fff; }
#wbSets.wb-module-detail .wb-detail-icon-button { box-sizing: border-box; min-height: 0; height: 32px; padding: 8px 16px; border-radius: 6px; font-size: 13px; line-height: 16px; }
#wbSets.wb-module-detail #wbCaseAuthoring .bi { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 14px; width: 14px; height: 14px; font-size: 14px; line-height: 1; }
#wbSets.wb-module-detail .wb-case-card-filters { display: flex; min-width: 0; flex-wrap: wrap; gap: 16px; margin: 0 0 16px; padding: 0; border: 0; }
#wbSets.wb-module-detail .wb-case-card-filters > .wb-case-search { display: none; }
#wbSets.wb-module-detail .wb-case-card-filters > .wb-case-filters { display: flex; flex: 0 1 auto; flex-wrap: wrap; gap: 8px; }
#wbSets.wb-module-detail .wb-case-card-filters .wb-case-filters > .filter-select { flex: 0 1 auto; width: auto; min-width: 160px; }
#wbSets.wb-module-detail .wb-case-card-filters .wb-detail-filter { display: flex; flex: 0 1 auto; align-items: center; gap: 8px; min-width: 0; }
#wbSets.wb-module-detail .wb-detail-filter > span { color: #495057; font-size: 13px; white-space: nowrap; }
#wbSets.wb-module-detail .wb-detail-filter > .filter-select { box-sizing: border-box; width: auto; min-width: 0; height: 28px; min-height: 0; padding: 4px 8px; border: 1px solid #ced4da; border-radius: 4px; font-size: 13px; line-height: 18px; }
#wbSets.wb-module-detail .wb-case-card-filters [hidden] { display: none !important; }
#wbSets.wb-module-detail .wb-case-card-filters :is(input, select) { box-sizing: border-box; width: auto; min-height: 0; height: 32px; padding: 6px 12px; border: 1px solid #ced4da; border-radius: 4px; font: inherit; font-size: 13px; line-height: 18px; }
#wbSets.wb-module-detail .wb-case-card-filters :is(input, select):focus { border-color: #86b7fe; outline: 0; box-shadow: 0 0 0 3px rgb(13 110 253 / 18%); }
#wbSets.wb-module-detail #testCasePanel .table-wrap { width: 100%; min-width: 0; overflow-x: auto; }
#wbSets.wb-module-detail #testCasePanel .tc-table { width: 100%; min-width: 1100px; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
#wbSets.wb-module-detail #testCasePanel .tc-table th { padding: 12px; background: #f8f9fa; color: #495057; font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; }
#wbSets.wb-module-detail #testCasePanel .tc-table td { padding: 12px 10px; border-bottom: 1px solid #dee2e6; vertical-align: middle; }
#wbSets.wb-module-detail #testCasePanel .tc-table th:first-child,
#wbSets.wb-module-detail #testCasePanel .tc-table td:first-child { width: 44px; text-align: center; }
#wbSets.wb-module-detail #testCasePanel .tc-table th:nth-child(2), #wbSets.wb-module-detail #testCasePanel .tc-table td:nth-child(2) { width: 200px; }
#wbSets.wb-module-detail #testCasePanel .tc-table th:nth-child(4), #wbSets.wb-module-detail #testCasePanel #tcList > tr > td:nth-child(4) { width: 220px; }
#wbSets.wb-module-detail #testCasePanel .tc-table th:nth-child(5), #wbSets.wb-module-detail #testCasePanel #tcList > tr > td:nth-child(5) { width: 100px; }
#wbSets.wb-module-detail #testCasePanel .tc-table th:nth-child(6), #wbSets.wb-module-detail #testCasePanel #tcList > tr > td:nth-child(6) { width: 80px; }
#wbSets.wb-module-detail #testCasePanel .tc-table th:nth-child(7), #wbSets.wb-module-detail #testCasePanel #tcList > tr > td:nth-child(7) { width: 130px; }
#wbSets.wb-module-detail #testCasePanel .tc-table th:nth-child(8), #wbSets.wb-module-detail #testCasePanel #tcList > tr > td:nth-child(8) { width: 130px; }
#wbSets.wb-module-detail #testCasePanel .tc-table th:nth-child(9), #wbSets.wb-module-detail #testCasePanel #tcList > tr > td:nth-child(9) { width: 80px; }
#wbSets.wb-module-detail #testCasePanel .tc-table th:nth-child(3), #wbSets.wb-module-detail #testCasePanel #tcList > tr > td:nth-child(3) { width: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#wbSets.wb-module-detail #testCasePanel .tc-table td:nth-child(2) .link { display: block; max-width: 100%; overflow: hidden; color: #212529; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
#wbSets.wb-module-detail #testCasePanel .tc-table td:nth-child(3) .link.wb-title { color: #212529; font-weight: 400; }
#wbSets.wb-module-detail #testCasePanel .wb-title { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#wbSets.wb-module-detail #testCasePanel .tc-table td:nth-child(4) { overflow: hidden; color: #6c757d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
#wbSets.wb-module-detail #testCasePanel .tc-table td:nth-child(4) > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#wbSets.wb-module-detail #testCasePanel .tc-table td:nth-child(5) { overflow: hidden; color: #0d6efd; font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
#wbSets.wb-module-detail #testCasePanel .tc-table td:nth-child(6) { font-size: 11px; font-weight: 700; }
#wbSets.wb-module-detail .wb-detail-priority { box-sizing: border-box; display: inline-flex; width: fit-content; max-width: 100%; min-width: 0; flex: 0 0 auto; justify-content: center; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 15px; text-align: center; }
#wbSets.wb-module-detail .wb-detail-priority.p1 { background: rgb(220 53 69 / 7%); color: #dc3545; }
#wbSets.wb-module-detail .wb-detail-priority.p2 { background: #fff1e1; color: #fd7e14; }
#wbSets.wb-module-detail .wb-detail-priority.p3 { background: #e7f1ff; color: #0d6efd; }
#wbSets.wb-module-detail .wb-detail-priority.p4,
#wbSets.wb-module-detail .wb-detail-priority.p5,
#wbSets.wb-module-detail .wb-detail-priority.unset,
#wbSets.wb-module-detail .wb-detail-priority.other { background: #ededf2; color: #666678; }
#wbSets.wb-module-detail #testCasePanel .tc-table td:nth-child(8) .status { display: inline-flex; align-items: center; min-height: 0; padding: 3px 10px; border: 0; border-radius: 4px; background: transparent; color: #666678; font-size: 12px; line-height: 18px; white-space: nowrap; }
#wbSets.wb-module-detail #testCasePanel .tc-table td:nth-child(8) .status::before { display: none; content: none; }
#wbSets.wb-module-detail #testCasePanel .tc-table td:nth-child(8) .status.pass { background: #d9f2de; color: #218c40; }
#wbSets.wb-module-detail #testCasePanel .tc-table td:nth-child(8) .status.fail,
#wbSets.wb-module-detail #testCasePanel .tc-table td:nth-child(8) .status.error { background: #dc3545; color: #fff; }
#wbSets.wb-module-detail #testCasePanel .tc-table td:nth-child(8) .wb-detail-execution-running { background: #e0edff; color: #3366cc; }
#wbSets.wb-module-detail #testCasePanel .tc-table td:last-child { white-space: nowrap; }
#wbSets.wb-module-detail #testCasePanel .tc-table input[type="checkbox"] { box-sizing: border-box; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0; }
#wbSets.wb-module-detail #testCasePanel .tc-table td:last-child > .btn { box-sizing: border-box; min-width: 56px; min-height: 0; height: 28px; padding: 4px 12px; border: 1px solid #3878f5; border-radius: 4px; background: #3878f5; color: #fff; font-size: 12px; line-height: 18px; }
#wbSets.wb-module-detail #testCasePanel .tc-table td:last-child > .wb-detail-cancel:disabled { border-color: #dc3545; background: #dc3545; color: #fff; cursor: not-allowed; }
#wbSets.wb-module-detail #wbCasePager.wb-detail-pager { display: flex; min-width: 0; justify-content: space-between; align-items: center; gap: 16px; margin-top: 0; padding-top: 12px; border-top: 1px solid #dee2e6; color: #495057; font-size: 13px; }
#wbSets.wb-module-detail .wb-detail-pager-left { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
#wbSets.wb-module-detail .wb-detail-page-sizes { display: inline-flex; align-items: center; gap: 4px; }
#wbSets.wb-module-detail .wb-detail-page-sizes > button,
#wbSets.wb-module-detail #wbCasePager.wb-detail-pager .wb-detail-pages > button { box-sizing: border-box; min-width: 31px; min-height: 0; height: 31px; padding: 5px 9px; border: 1px solid #dee2e6; border-radius: 4px; background: #fff; color: #495057; font-size: 12px; line-height: 19px; }
#wbSets.wb-module-detail #wbCasePager.wb-detail-pager .wb-detail-pages > button:first-child { border-radius: 3px 0 0 3px; }
#wbSets.wb-module-detail #wbCasePager.wb-detail-pager .wb-detail-pages > button:last-child { border-radius: 0 4px 4px 0; }
#wbSets.wb-module-detail .wb-detail-page-sizes > button { border-color: #6c757d; border-radius: 3px; }
#wbSets.wb-module-detail .wb-detail-page-sizes > button[aria-pressed="true"],
#wbSets.wb-module-detail .wb-detail-page-sizes > button[aria-current="true"],
#wbSets.wb-module-detail #wbCasePager.wb-detail-pager .wb-detail-pages > button[aria-current="page"] { border-color: #0d6efd; background: #0d6efd; color: #fff; }
#wbSets.wb-module-detail #wbCasePager.wb-detail-pager .wb-detail-pages { display: flex; gap: 8px; }
#wbSets.wb-module-detail #wbCasePager.wb-detail-pager .wb-detail-pages img { vertical-align: middle; }
#wbSets.wb-module-detail #wbCasePager.wb-detail-pager button:disabled { opacity: .5; }
@media (max-width: 500px) {
  #wbSets.wb-module-detail .wb-selection { align-items: flex-start; }
  #wbSets.wb-module-detail .wb-detail-actions { flex: 1 1 100%; justify-content: flex-start; }
  #wbSets.wb-module-detail #testCasePanel { padding: 16px; }
  #wbSets.wb-module-detail #testCasePanel .wb-case-card-head { align-items: flex-start; flex-direction: column; }
  #wbSets.wb-module-detail .wb-detail-actions { justify-content: flex-start; }
  #wbSets.wb-module-detail .wb-case-card-filters .wb-case-filters > .filter-select { flex: 1 1 160px; }
  #wbSets.wb-module-detail #wbCasePager.wb-detail-pager { align-items: flex-start; flex-direction: column; }
  #wbSets.wb-module-detail #wbCasePager.wb-detail-pager .wb-detail-pages { max-width: 100%; overflow-x: auto; }
}

@media (max-width: 767.98px) {
  .tc-console #wbResultModule,
  .tc-console #wbResultStatus,
  .tc-console #wbResultSearch { display: block; width: 100%; margin: 0 0 8px; }
  .tc-console #wbResults :is(#wbResultModule, #wbResultStatus, #wbResultSearch)[hidden] { display: none; }
  .tc-console .pager > span { flex-basis: auto; margin-right: 0; }
  .tc-console .pager > .pages { margin-left: auto; }
  .tc-console .wb-case-card-head { align-items: flex-start; }
  .tc-console .wb-case-card-filters .wb-case-search { grid-template-columns: minmax(0, 1fr); }
  .tc-console .wb-case-card-filters .wb-case-filters > .filter-select { flex-basis: 100%; width: 100%; }
}

.wb-variable-open { margin-left: auto; }
#wbSets.wb-module-detail #wbCaseAuthoring > .wb-variable-open { min-height: 28px; height: 28px; padding: 4px 12px; gap: 4px; border: 1px solid #3878f5; border-radius: 4px; background: #3878f5; color: #fff; font-size: 12px; font-weight: 500; line-height: 18px; }
#wbSets.wb-module-detail #wbCaseAuthoring > .wb-variable-open:hover { border-color: #0b5ed7; background: #0b5ed7; color: #fff; }
#wbSets.wb-module-detail #wbCaseAuthoring > .wb-variable-open:focus-visible { outline: 2px solid #3878f5; outline-offset: 2px; }
#wbSets.wb-module-detail #wbCaseAuthoring > .wb-variable-open .bi { flex-basis: 12px; width: 12px; height: 12px; font-size: 12px; }
.wb-variable-table table { min-width: 620px; width: 100%; }
.wb-variable-table th:first-child { width: 47%; }
.wb-variable-table td:last-child { width: 42%; }
.wb-variable-table input { width: 100%; min-width: 180px; }
.wb-variable-usage { display: block; max-width: 360px; margin-top: 5px; color: var(--text-secondary, #6b7280); overflow-wrap: anywhere; }
.wb-variable-table code { font-size: 12px; }

#wbExecution #runLog {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 320px;
  min-height: 160px;
  max-height: max(320px, 70vh);
  overflow: auto;
  resize: vertical;
}
#wbExecution .run-log-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 12px; }
#wbExecution .run-log-heading span { color: var(--text-secondary, #6b7280); font-size: 12px; }
