:root {
  --bg: #eef3f9;
  --card: #ffffff;
  --text: #0f213c;
  --muted: #5f6f86;
  --line: #d4deec;
  --primary: #1c4aa8;
  --primary-hover: #143a86;
  --surface: #f7faff;
  --surface-soft: #f4f8ff;
  --danger: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 9% -12%, #dfeaff 0, transparent 43%),
    radial-gradient(circle at 93% -18%, #e7f1ff 0, transparent 38%);
  letter-spacing: 0.1px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(transparent 98%, rgba(28, 74, 168, 0.02) 100%);
  background-size: 100% 28px;
  pointer-events: none;
}

.container {
  width: min(1160px, 94vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(248,251,255,0.93) 100%);
  border-bottom: 1px solid #cbd8ea;
  box-shadow: 0 6px 20px rgba(20, 35, 59, 0.08);
  backdrop-filter: blur(6px);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 16px;
}

.brand-wrap {
  display: grid;
  gap: 2px;
}

.brand {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
}

.topnav a,
.topnav-feedback {
  color: #fff;
  background: linear-gradient(180deg, var(--primary) 0%, #174192 100%);
  border: 1px solid #19408f;
  border-radius: 10px;
  padding: 8px 14px;
  text-decoration: none;
  margin-left: 12px;
  font-weight: 600;
  box-shadow: 0 6px 12px rgba(28, 74, 168, 0.18);
  cursor: pointer;
  font: inherit;
}

.topnav a:hover,
.topnav-feedback:hover {
  background: linear-gradient(180deg, #2454b6 0%, #1b4699 100%);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topnav a,
.topnav-feedback {
  margin-left: 0;
}

/* Retention and interest detail cards on result overview. */
.retention-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.retention-summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px 14px;
}

.retention-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.retention-summary-card strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  line-height: 1.25;
}

.retention-summary-card p {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 0;
}

.monthly-balance-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  padding: 12px;
  margin: 14px 0;
}

.monthly-balance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.monthly-balance-head h5 {
  margin: 0 0 4px;
  font-size: 16px;
}

.monthly-balance-chart {
  margin-top: 8px;
}

.monthly-legend i.balance {
  background: #1d4ed8;
}

.monthly-balance-point {
  fill: #ffffff;
  stroke: #1d4ed8;
  stroke-width: 3;
}

.interest-entry-section {
  margin-top: 12px;
}

.interest-entry-section h5 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 15px;
}

/* 2026-05-25: ops parse-review list forced layout.
   Keep this at file end so newer server table markup cannot squeeze long text into vertical columns. */
#ops-dashboard-shell .ops-table-wrap {
  max-width: 100%;
  overflow-x: auto !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table {
  width: 1600px !important;
  min-width: 1600px !important;
  table-layout: fixed !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th,
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td {
  line-height: 1.55 !important;
  vertical-align: top !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(1) {
  width: 220px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(2) {
  width: 380px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(3) {
  width: 90px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(4) {
  width: 120px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(5) {
  width: 210px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(6) {
  width: 230px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7) {
  width: 120px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8) {
  width: 90px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9) {
  width: 140px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(10),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(10),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(10),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(10) {
  width: 170px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact code,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table code {
  display: inline-block !important;
  max-width: 100% !important;
  white-space: normal !important;
  word-break: break-all !important;
}

#ops-dashboard-shell .ops-file-cell strong {
  display: block !important;
  max-width: 100% !important;
  line-height: 1.45 !important;
  word-break: break-word !important;
}

#ops-dashboard-shell .ops-file-cell small {
  display: block !important;
  max-width: 100% !important;
}

#ops-dashboard-shell .ops-reason-text {
  max-width: none !important;
  white-space: normal !important;
  line-height: 1.55 !important;
}

/* 2026-05-25 final-final: override earlier failed-table width rules. */
#ops-dashboard-shell .ops-table-wrap table.data-table.compact:not(.ops-failed-table):not(:has(tbody#failed-body)) {
  width: 100% !important;
  min-width: 900px !important;
  table-layout: auto !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto !important;
  border: 0 !important;
  background: transparent !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table thead,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) thead {
  display: none !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table tbody,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tbody {
  display: grid !important;
  gap: 12px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table tr,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tr {
  display: grid !important;
  grid-template-columns: 150px 260px 92px 120px minmax(180px, 1fr) 152px !important;
  grid-template-areas:
    "case file status issue metrics updated"
    "reason reason reason action action actions" !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 12px !important;
  border: 1px solid #d7e2f1 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(20, 35, 59, 0.06) !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  border: 1px solid #e4edf8 !important;
  border-radius: 10px !important;
  background: #f8fbff !important;
  padding: 8px 10px !important;
  line-height: 1.5 !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  vertical-align: top !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td::before {
  display: block;
  margin-bottom: 4px;
  color: #60718b;
  font-size: 12px;
  font-weight: 800;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(1) {
  grid-area: case;
  background: #ffffff !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(1)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(1)::before {
  content: "案件";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(2) {
  grid-area: file;
  background: #ffffff !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(2)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(2)::before {
  content: "文件";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(3) {
  grid-area: status;
  color: #8a3b16 !important;
  font-weight: 800 !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(3)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(3)::before {
  content: "状态";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(4) {
  grid-area: issue;
  color: #8a3b16 !important;
  font-weight: 800 !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(4)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(4)::before {
  content: "问题";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(5) {
  grid-area: reason;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(5)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(5)::before {
  content: "原因说明";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(6) {
  grid-area: action;
  background: #fffaf2 !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(6)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(6)::before {
  content: "建议动作";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(7) {
  grid-area: metrics;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(7)::before {
  content: "有效/总行";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8) {
  grid-area: actions;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8)::before {
  content: "操作";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9) {
  grid-area: updated;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9)::before {
  content: "更新时间";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table code,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) code,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table .ops-file-cell strong,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) .ops-file-cell strong {
  display: -webkit-box !important;
  max-width: 100% !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-height: 1.45 !important;
  word-break: break-word !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table .ops-file-cell small,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) .ops-file-cell small {
  display: block !important;
  margin-top: 2px !important;
  color: #60718b !important;
  font-size: 12px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7) strong,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(7) strong {
  color: #10213b !important;
  font-size: 15px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8) a,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8) button,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8) a,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8) button {
  display: block !important;
  width: 100% !important;
  margin: 4px 0 !important;
  text-align: center !important;
}

@media (max-width: 980px) {
  #ops-dashboard-shell .ops-table-wrap table.ops-failed-table tr,
  #ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tr {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "case"
      "file"
      "status"
      "issue"
      "metrics"
      "reason"
      "action"
      "actions"
      "updated" !important;
  }
}

/* 2026-05-25 final-final: result screen risk/action cards. */
.review-priority-grid,
.grid-two:has(#top-risks) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 14px !important;
}

.priority-review-card,
.risk-action-board,
.panel-inner:has(#top-risks) {
  min-height: 100% !important;
}

.risk-action-board,
.panel-inner:has(#top-risks) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-content: start !important;
  gap: 12px !important;
}

.risk-action-board h4,
.panel-inner:has(#top-risks) h4 {
  margin: 0 !important;
  color: #10213b !important;
}

.risk-action-board h4:nth-of-type(1),
.risk-action-list,
#top-risks {
  grid-column: 1 !important;
}

.risk-action-board h4:nth-of-type(2),
.verification-question-list,
#questions {
  grid-column: 2 !important;
}

.risk-action-list,
.verification-question-list,
#top-risks,
#questions {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 10px !important;
}

.risk-action-list li,
.verification-question-list li,
#top-risks li,
#questions li {
  position: relative !important;
  margin: 0 !important;
  padding: 12px 12px 12px 48px !important;
  border: 1px solid #dbe6f5 !important;
  border-radius: 12px !important;
  background: #f8fbff !important;
  line-height: 1.65 !important;
  color: #14233b !important;
  box-shadow: 0 8px 18px rgba(20, 35, 59, 0.045) !important;
}

.risk-action-list li::before,
#top-risks li::before {
  content: "风险";
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff3e8;
  color: #9a431f;
  font-size: 12px;
  font-weight: 800;
}

.verification-question-list li::before,
#questions li::before {
  content: "补证";
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf4ff;
  color: #254aa5;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .review-priority-grid,
  .grid-two:has(#top-risks),
  .risk-action-board,
  .panel-inner:has(#top-risks) {
    grid-template-columns: 1fr !important;
  }

  .risk-action-board h4:nth-of-type(1),
  .risk-action-board h4:nth-of-type(2),
  .risk-action-list,
  .verification-question-list,
  #top-risks,
  #questions {
    grid-column: 1 !important;
  }
}

/* 2026-05-25 EOF override: production ops table has time then actions. */
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table tr,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tr {
  grid-template-areas:
    "case file status issue metrics time"
    "reason reason reason action action actions"
    "updated updated updated updated updated updated" !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8) {
  grid-area: time;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8)::before {
  content: "耗时";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9) {
  grid-area: actions;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9)::before {
  content: "操作";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(10),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(10) {
  grid-area: updated;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(10)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(10)::before {
  content: "更新时间";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9) a,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9) button,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9) a,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9) button {
  display: block !important;
  width: 100% !important;
  margin: 4px 0 !important;
  text-align: center !important;
}

@media (max-width: 980px) {
  #ops-dashboard-shell .ops-table-wrap table.ops-failed-table tr,
  #ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tr {
    grid-template-areas:
      "case"
      "file"
      "status"
      "issue"
      "metrics"
      "time"
      "reason"
      "action"
      "actions"
      "updated" !important;
  }
}

/* 2026-05-25 real final: keep ops review list as a compact table. */
#ops-dashboard-shell .ops-table-wrap {
  overflow-x: auto !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) {
  display: table !important;
  width: 100% !important;
  min-width: 1240px !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table thead,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) thead {
  display: table-header-group !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table tbody,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tbody {
  display: table-row-group !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table tr,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tr {
  display: table-row !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td {
  display: table-cell !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 10px 10px !important;
  vertical-align: top !important;
  line-height: 1.48 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  border: 0 !important;
  border-right: 1px solid #dce6f4 !important;
  border-bottom: 1px solid #dce6f4 !important;
  background: #fff !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th {
  background: #f3f7fd !important;
  color: #10213b !important;
  font-weight: 800 !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td::before,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th::before {
  content: none !important;
  display: none !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(1) {
  width: 150px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(2) {
  width: 300px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(3) {
  width: 82px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(4) {
  width: 100px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(5) {
  width: 178px !important;
  color: #253957 !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(6) {
  width: 178px !important;
  color: #253957 !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(7) {
  width: 98px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8) {
  width: 72px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9) {
  width: 108px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(10),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(10),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(10),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(10) {
  width: 126px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(1) code,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(2) strong,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(1) code,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(2) strong {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(2) small,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(2) small {
  display: block !important;
  margin-top: 3px !important;
  color: #60718b !important;
  font-size: 12px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7) strong,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(7) strong {
  display: block !important;
  color: #10213b !important;
  font-size: 14px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7) small,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(7) small {
  display: block !important;
  margin-top: 3px !important;
  color: #60718b !important;
  font-size: 12px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9) a,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9) button,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(10) a,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(10) button,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9) a,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9) button,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(10) a,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(10) button {
  display: block !important;
  width: 100% !important;
  margin: 4px 0 !important;
  padding: 8px 8px !important;
  text-align: center !important;
}

/* 2026-05-25: bank executive cockpit */
.bank-exec-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 20px 22px;
  border: 1px solid #cbd8ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(20, 35, 59, 0.07);
}

.bank-exec-title {
  min-width: 0;
}

.bank-dash-eyebrow {
  margin: 0 0 8px;
  color: #385b8a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.bank-exec-hero h2 {
  margin: 0 0 8px;
  color: #10213b;
  font-size: 30px;
  line-height: 1.18;
}

.bank-exec-hero p {
  margin: 0;
  color: #60718b;
  line-height: 1.6;
}

.bank-exec-tools {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.bank-dash-range {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #cbd8ea;
  border-radius: 8px;
  background: #f7faff;
}

.bank-range-btn {
  min-width: 72px;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  background: transparent;
  color: #1f3356;
  cursor: pointer;
  font-weight: 800;
}

.bank-range-btn.active {
  background: #214b9a;
  color: #fff;
}

.bank-exec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.bank-exec-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #d6b56d;
  border-radius: 8px;
  background: #fff8ec;
}

.bank-exec-brief span,
.bank-kpi span,
.bank-risk-meter span,
.bank-quality-row span,
.bank-quota-row span,
.bank-case-metrics span {
  display: block;
  color: #60718b;
  font-size: 12px;
  font-weight: 900;
}

.bank-exec-brief strong {
  display: block;
  margin-top: 6px;
  color: #10213b;
  font-size: 18px;
  line-height: 1.55;
}

.bank-exec-brief small {
  display: block;
  margin-top: 6px;
  color: #7c5a27;
}

.bank-exec-brief-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.bank-exec-brief-tags span {
  min-width: 116px;
  padding: 10px 12px;
  border: 1px solid #ecd09a;
  border-radius: 8px;
  background: #ffffff;
}

.bank-exec-brief-tags small,
.bank-exec-brief-tags strong {
  display: block;
}

.bank-exec-brief-tags small {
  color: #7b5c25;
  font-size: 12px;
  font-weight: 800;
}

.bank-exec-brief-tags strong {
  margin-top: 4px;
  color: #10213b;
  font-size: 16px;
}

.bank-exec-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.bank-kpi {
  display: grid;
  gap: 7px;
  min-height: 124px;
  padding: 14px;
  border: 1px solid #d8e4f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 35, 59, 0.055);
}

.bank-kpi strong {
  color: #10213b;
  font-size: 28px;
  line-height: 1;
}

.bank-kpi small {
  color: #60718b;
  line-height: 1.45;
}

.bank-kpi-risk {
  border-color: #efb4a4;
  background: #fff7f4;
}

.bank-kpi-risk strong {
  color: #a33b22;
}

.bank-kpi-good {
  border-color: #a9d9bf;
  background: #f4fbf6;
}

.bank-kpi-good strong {
  color: #19734a;
}

.bank-exec-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 14px;
  margin-bottom: 14px;
}

.bank-command-panel,
.bank-manager-quota,
.bank-usage-card {
  min-width: 0;
}

.bank-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.bank-section-head h3 {
  margin: 0 0 6px;
  color: #10213b;
  font-size: 22px;
}

.bank-section-head p {
  margin: 0;
  color: #60718b;
  line-height: 1.55;
}

.bank-risk-meter {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #f8fbff;
}

.bank-risk-meter strong {
  display: block;
  margin-top: 4px;
  color: #a33b22;
  font-size: 30px;
  line-height: 1;
}

.bank-risk-track {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f8a4d 0 45%, #d5942b 45% 70%, #b5472a 70% 100%);
  overflow: hidden;
}

.bank-risk-track i {
  display: block;
  width: 0;
  height: 100%;
  border-right: 3px solid #10213b;
}

.bank-quality-distribution {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.bank-quality-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.bank-quality-row strong {
  display: block;
  margin-top: 4px;
  color: #10213b;
  font-size: 18px;
}

.bank-quality-row i {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #edf3fb;
  overflow: hidden;
}

.bank-quality-row b {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
}

.bank-quality-good b {
  background: #1f8a4d;
}

.bank-quality-watch b {
  background: #d5942b;
}

.bank-quality-risk b {
  background: #b5472a;
}

.bank-quota-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bank-quota-row div {
  min-height: 86px;
  padding: 12px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #f8fbff;
}

.bank-quota-row strong {
  display: block;
  margin-top: 8px;
  color: #10213b;
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.bank-watch-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.bank-watch-list h4 {
  margin: 0;
  color: #10213b;
  font-size: 16px;
}

.bank-watch-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #dbe6f4;
  border-left: 4px solid #8ea0b8;
  border-radius: 8px;
  background: #ffffff;
  color: #10213b;
  text-decoration: none;
}

.bank-watch-item span,
.bank-watch-item small {
  color: #60718b;
}

.bank-watch-risk {
  border-left-color: #b5472a;
  background: #fff7f4;
}

.bank-watch-watch {
  border-left-color: #d5942b;
  background: #fffaf0;
}

.bank-chart-legend,
.bank-case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.bank-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #60718b;
  font-size: 12px;
  font-weight: 800;
}

.bank-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.bank-chart-legend .analysis {
  background: #2f80ed;
}

.bank-chart-legend .litigation {
  background: #b5472a;
}

.bank-chart-legend .login {
  background: #8ea0b8;
}

.bank-trend {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(68px, 1fr);
  gap: 10px;
  align-items: end;
  overflow-x: auto;
  padding: 6px 0 2px;
}

.bank-trend-day {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-width: 68px;
}

.bank-trend-bars {
  display: flex;
  align-items: end;
  gap: 5px;
  height: 140px;
  padding: 8px 7px;
  border: 1px solid #e0e8f4;
  border-radius: 8px;
  background: #f8fbff;
}

.bank-trend-bars span {
  display: block;
  width: 11px;
  min-height: 8px;
  border-radius: 999px 999px 3px 3px;
}

.bank-trend-bars .analysis {
  background: #2f80ed;
}

.bank-trend-bars .litigation {
  background: #b5472a;
}

.bank-trend-bars .login {
  background: #8ea0b8;
}

.bank-trend-day small {
  color: #60718b;
}

.bank-trend-day b {
  color: #10213b;
  font-size: 12px;
}

.bank-account-compare {
  display: grid;
  gap: 10px;
}

.bank-compare-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(180px, 1fr) minmax(260px, auto);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #dbe6f4;
  border-left: 4px solid #8ea0b8;
  border-radius: 8px;
  background: #ffffff;
}

.bank-compare-risk {
  border-left-color: #b5472a;
}

.bank-compare-watch {
  border-left-color: #d5942b;
}

.bank-compare-good {
  border-left-color: #1f8a4d;
}

.bank-compare-name {
  display: grid;
  gap: 4px;
}

.bank-compare-name strong {
  color: #10213b;
}

.bank-compare-name small {
  color: #60718b;
}

.bank-compare-track {
  height: 14px;
  border-radius: 999px;
  background: #edf3fb;
  overflow: hidden;
}

.bank-compare-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f80ed, #1f4aa8);
}

.bank-compare-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  color: #60718b;
  font-size: 13px;
}

.bank-compare-numbers b {
  color: #10213b;
}

.bank-compare-numbers em {
  color: #7c4a18;
  font-style: normal;
  font-weight: 800;
}

.bank-case-filters button {
  border: 1px solid #cbd8ea;
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: #243b63;
  cursor: pointer;
  font-weight: 800;
}

.bank-case-filters button.active {
  border-color: #214b9a;
  background: #214b9a;
  color: #fff;
}

.bank-case-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bank-case-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #dbe6f4;
  border-left: 4px solid #8ea0b8;
  border-radius: 8px;
  background: #fff;
}

.bank-case-risk {
  border-left-color: #b5472a;
}

.bank-case-watch {
  border-left-color: #d5942b;
}

.bank-case-good {
  border-left-color: #1f8a4d;
}

.bank-case-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.bank-case-head div {
  display: grid;
  gap: 4px;
}

.bank-case-head strong {
  color: #10213b;
  font-size: 17px;
}

.bank-case-head small,
.bank-case-card p {
  color: #60718b;
}

.bank-case-head > span {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef4ff;
  color: #214b9a;
  font-size: 12px;
  font-weight: 900;
}

.bank-case-tags,
.bank-case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bank-case-tags span,
.bank-risk-pill,
.bank-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.quality-strong,
.quality-good,
.tamper-good,
.bank-status.active,
.bank-risk-good {
  background: #e8f7ee;
  color: #19734a;
}

.quality-normal {
  background: #eaf2ff;
  color: #214b9a;
}

.quality-watch,
.tamper-watch,
.bank-risk-watch {
  background: #fff6e5;
  color: #9a4b17;
}

.quality-risk,
.tamper-risk,
.bank-risk-risk {
  background: #fff0ed;
  color: #b5472a;
}

.bank-status.inactive {
  background: #eef2f6;
  color: #60718b;
}

.bank-case-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bank-case-metrics div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #f8fbff;
}

.bank-case-metrics b {
  display: block;
  margin-top: 4px;
  color: #10213b;
}

.bank-case-card p {
  margin: 0;
  line-height: 1.55;
}

.bank-case-actions a {
  border: 1px solid #cbd8ea;
  border-radius: 8px;
  padding: 7px 10px;
  color: #214b9a;
  text-decoration: none;
  font-weight: 800;
}

.table-scroll {
  overflow-x: auto;
}

.bank-account-table {
  min-width: 1120px;
  table-layout: fixed;
}

.bank-account-table th,
.bank-account-table td {
  vertical-align: top;
  white-space: normal;
  overflow-wrap: anywhere;
}

.bank-account-table th:nth-child(1),
.bank-account-table td:nth-child(1) {
  width: 180px;
}

.bank-account-table th:nth-child(2),
.bank-account-table td:nth-child(2) {
  width: 110px;
}

.bank-account-table th:nth-child(3),
.bank-account-table td:nth-child(3),
.bank-account-table th:nth-child(4),
.bank-account-table td:nth-child(4),
.bank-account-table th:nth-child(5),
.bank-account-table td:nth-child(5),
.bank-account-table th:nth-child(6),
.bank-account-table td:nth-child(6) {
  width: 150px;
}

.bank-account-table small {
  color: #60718b;
}

.bank-account-table a {
  color: #214b9a;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .bank-exec-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bank-exec-layout,
  .bank-case-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .bank-exec-hero,
  .bank-exec-brief,
  .bank-section-head,
  .bank-compare-row,
  .bank-case-head {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .bank-exec-tools,
  .bank-exec-brief-tags,
  .bank-chart-legend,
  .bank-case-filters,
  .bank-compare-numbers {
    justify-items: start;
    justify-content: flex-start;
  }

  .bank-exec-kpis,
  .bank-quota-row,
  .bank-quality-row,
  .bank-case-metrics {
    grid-template-columns: 1fr;
  }

  .bank-dash-range {
    width: 100%;
  }

  .bank-range-btn {
    flex: 1 1 0;
  }
}

/* 2026-05-25 synced server pull: compact ops review list + risk action cards. */
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) {
  min-width: 1180px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td {
  padding: 12px 10px !important;
  line-height: 1.45 !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(1) {
  width: 150px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(2) {
  width: 250px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(3) {
  width: 140px !important;
  text-align: left !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(4) {
  width: 315px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(5) {
  width: 105px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(6) {
  width: 70px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(7) {
  width: 80px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8) {
  width: 130px !important;
}

#ops-dashboard-shell .ops-status-issue-cell {
  display: table-cell !important;
}

#ops-dashboard-shell .ops-status-pill,
#ops-dashboard-shell .ops-ocr-badge {
  display: inline-flex !important;
  align-items: center;
  width: fit-content !important;
  max-width: 100%;
  margin: 0 0 6px !important;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  white-space: normal !important;
}

#ops-dashboard-shell .ops-status-pill {
  background: #edf4ff;
  border: 1px solid #c9dcff;
  color: #234b8f;
}

#ops-dashboard-shell .ops-ocr-badge {
  background: #fff7e8;
  border: 1px solid #f2c983;
  color: #9a431f;
}

#ops-dashboard-shell .ops-status-issue-cell strong {
  display: block;
  font-size: 13px;
  line-height: 1.45;
}

#ops-dashboard-shell .ops-reason-action-cell p {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 8px;
}

#ops-dashboard-shell .ops-reason-action-cell p:last-child {
  margin-bottom: 0;
}

#ops-dashboard-shell .ops-reason-action-cell p span {
  color: #6a7890;
  font-size: 12px;
  font-weight: 800;
}

#ops-dashboard-shell .ops-reason-action-cell p {
  color: #253957;
}

#ops-dashboard-shell .ops-review-actions {
  display: grid !important;
  gap: 6px !important;
}

#ops-dashboard-shell .ops-review-actions .ops-download-link {
  margin: 0 !important;
  padding: 7px 8px !important;
}

.review-priority-grid,
.grid-two.review-priority-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
}

.risk-action-board {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
  grid-template-rows: auto 1fr !important;
  gap: 12px 16px !important;
}

.risk-action-board h4 {
  margin: 0 !important;
}

.risk-action-board h4:nth-of-type(1),
.risk-action-list {
  grid-column: 1 !important;
}

.risk-action-board h4:nth-of-type(2),
.verification-question-list {
  grid-column: 2 !important;
}

.risk-action-list,
.verification-question-list {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.risk-action-item,
.verification-question-item {
  border: 1px solid #d8e3f2;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.risk-action-item-head,
.risk-action-next,
.verification-question-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.risk-action-item-head span,
.verification-question-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #2f55aa;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.risk-action-item-head strong,
.verification-question-item strong {
  color: #10213b;
  font-size: 15px;
  line-height: 1.55;
}

.risk-action-item p {
  margin: 8px 0 10px 36px;
  color: #50617a;
  line-height: 1.55;
}

.risk-action-next {
  margin-left: 36px;
  padding-top: 10px;
  border-top: 1px dashed #cfdaea;
}

.risk-action-next span {
  color: #8a3b16;
  font-size: 12px;
  font-weight: 800;
}

.risk-action-next strong {
  color: #7a2e13;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .review-priority-grid,
  .grid-two.review-priority-grid,
  .risk-action-board {
    grid-template-columns: 1fr !important;
  }

  .risk-action-board h4:nth-of-type(1),
  .risk-action-board h4:nth-of-type(2),
  .risk-action-list,
  .verification-question-list {
    grid-column: 1 !important;
  }
}

/* 2026-05-26 true EOF override: compact risk/action board without large blank lanes. */
.review-priority-stack {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
}

.review-priority-stack > .priority-review-card,
.review-priority-stack > .risk-action-board {
  width: 100% !important;
  max-width: none !important;
}

.review-priority-stack > .risk-action-board {
  display: grid !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
  grid-template-rows: auto !important;
  align-items: start !important;
  align-content: start !important;
  gap: 14px !important;
  padding: 14px !important;
}

.review-priority-stack .risk-action-column {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  min-width: 0 !important;
  align-self: start !important;
}

.review-priority-stack .risk-action-column-head {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 28px !important;
  margin: 0 !important;
}

.review-priority-stack .risk-action-column-head span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  height: 24px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: #eef4ff !important;
  color: #254aa5 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.review-priority-stack .risk-action-column:first-child .risk-action-column-head span {
  background: #fff3e8 !important;
  color: #9a431c !important;
}

.review-priority-stack .risk-action-column-head h4 {
  margin: 0 !important;
  color: #10213b !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.review-priority-stack .risk-action-column .risk-action-list,
.review-priority-stack .risk-action-column #top-risks {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.review-priority-stack .risk-action-column .verification-question-list,
.review-priority-stack .risk-action-column #questions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  align-content: start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.review-priority-stack .risk-action-column .risk-action-list,
.review-priority-stack .risk-action-column .verification-question-list,
.review-priority-stack .risk-action-column #top-risks,
.review-priority-stack .risk-action-column #questions {
  grid-column: auto !important;
}

.review-priority-stack .risk-action-column .risk-action-list li,
.review-priority-stack .risk-action-column .verification-question-list li,
.review-priority-stack .risk-action-column #top-risks li,
.review-priority-stack .risk-action-column #questions li {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid #d8e3f2 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(28, 59, 117, 0.05) !important;
  line-height: 1.55 !important;
}

.review-priority-stack .risk-action-column .risk-action-list li::before,
.review-priority-stack .risk-action-column .verification-question-list li::before,
.review-priority-stack .risk-action-column #top-risks li::before,
.review-priority-stack .risk-action-column #questions li::before {
  content: none !important;
  display: none !important;
}

.review-priority-stack .risk-action-column .risk-action-item-head,
.review-priority-stack .risk-action-column .risk-action-next,
.review-priority-stack .risk-action-column .verification-question-item {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
}

.review-priority-stack .risk-action-column .verification-question-item {
  min-height: 72px !important;
  align-items: center !important;
}

.review-priority-stack .risk-action-column .risk-action-item-head span,
.review-priority-stack .risk-action-column .verification-question-item span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px !important;
  height: 24px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: #2f55aa !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.review-priority-stack .risk-action-column .risk-action-item-head strong,
.review-priority-stack .risk-action-column .verification-question-item strong {
  color: #10213b !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere !important;
}

.review-priority-stack .risk-action-column .risk-action-item p {
  margin: 8px 0 10px 36px !important;
  color: #50617a !important;
  line-height: 1.55 !important;
}

.review-priority-stack .risk-action-column .risk-action-next {
  margin-left: 36px !important;
  padding-top: 10px !important;
  border-top: 1px dashed #cfdaea !important;
}

.review-priority-stack .risk-action-column .risk-action-next span {
  color: #8a3b16 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.review-priority-stack .risk-action-column .risk-action-next strong {
  color: #7a2e13 !important;
  line-height: 1.5 !important;
}

@media (max-width: 1180px) {
  .review-priority-stack > .risk-action-board {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .review-priority-stack .risk-action-column .verification-question-list,
  .review-priority-stack .risk-action-column #questions {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .review-priority-stack .risk-action-column .verification-question-list,
  .review-priority-stack .risk-action-column #questions {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* 2026-05-25 final stable override: second screen review layout. */
.review-priority-stack {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
  margin-bottom: 12px !important;
}

.review-priority-stack > .priority-review-card,
.review-priority-stack > .risk-action-board {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.review-priority-stack > .risk-action-board {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: auto 1fr !important;
  gap: 12px 16px !important;
  align-items: start !important;
}

.review-priority-stack .risk-action-board h4 {
  margin: 0 !important;
  line-height: 1.3 !important;
}

.review-priority-stack .risk-action-board h4:nth-of-type(1),
.review-priority-stack .risk-action-list {
  grid-column: 1 !important;
}

.review-priority-stack .risk-action-board h4:nth-of-type(2),
.review-priority-stack .verification-question-list {
  grid-column: 2 !important;
}

.review-priority-stack .risk-action-list,
.review-priority-stack .verification-question-list {
  display: grid !important;
  grid-auto-rows: min-content !important;
  align-content: start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.review-priority-stack .risk-action-item,
.review-priority-stack .verification-question-item {
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.review-priority-stack .verification-question-item {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: start !important;
}

.review-priority-stack .verification-question-item strong,
.review-priority-stack .risk-action-item strong,
.review-priority-stack .risk-action-item p {
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

@media (max-width: 980px) {
  .review-priority-stack > .risk-action-board {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .review-priority-stack .risk-action-board h4:nth-of-type(1),
  .review-priority-stack .risk-action-board h4:nth-of-type(2),
  .review-priority-stack .risk-action-list,
  .review-priority-stack .verification-question-list {
    grid-column: 1 !important;
  }
}

/* 2026-05-26 stable column wrapper: prevent empty gaps in risk/action board. */
.review-priority-stack > .risk-action-board {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: none !important;
  gap: 14px !important;
  align-items: stretch !important;
  align-content: stretch !important;
}

.risk-action-column {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 12px !important;
  border: 1px solid #dbe6f5 !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.risk-action-column-head {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 28px !important;
}

.risk-action-column-head span {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 62px !important;
  height: 24px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: #eef4ff !important;
  color: #284ca4 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.risk-action-column:first-child .risk-action-column-head span {
  background: #fff3e8 !important;
  color: #9a431c !important;
}

.risk-action-column-head h4 {
  margin: 0 !important;
  color: #10213b !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.risk-action-column .risk-action-list,
.risk-action-column .verification-question-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.risk-action-column .risk-action-list,
.risk-action-column .verification-question-list,
.risk-action-column #top-risks,
.risk-action-column #questions {
  grid-column: auto !important;
}

.risk-action-column .risk-action-list li,
.risk-action-column .verification-question-list li,
.risk-action-column #top-risks li,
.risk-action-column #questions li {
  position: relative !important;
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.risk-action-column .risk-action-list li::before,
.risk-action-column .verification-question-list li::before,
.risk-action-column #top-risks li::before,
.risk-action-column #questions li::before {
  content: none !important;
}

.risk-action-column .risk-action-item,
.risk-action-column .verification-question-item {
  border: 1px solid #d8e3f2 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(28, 59, 117, 0.05) !important;
}

.risk-action-column .verification-question-item {
  min-height: 56px !important;
  align-items: center !important;
}

@media (max-width: 980px) {
  .review-priority-stack > .risk-action-board {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* 2026-05-26 EOF stable override: risk/action board has two self-contained columns. */
.review-priority-stack > .risk-action-board {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: none !important;
  gap: 14px !important;
  align-items: stretch !important;
  align-content: stretch !important;
}

.review-priority-stack .risk-action-column {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 12px !important;
  border: 1px solid #dbe6f5 !important;
  border-radius: 8px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
}

.review-priority-stack .risk-action-column-head {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 28px !important;
}

.review-priority-stack .risk-action-column-head span {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 62px !important;
  height: 24px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: #eef4ff !important;
  color: #284ca4 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.review-priority-stack .risk-action-column:first-child .risk-action-column-head span {
  background: #fff3e8 !important;
  color: #9a431c !important;
}

.review-priority-stack .risk-action-column-head h4 {
  margin: 0 !important;
  color: #10213b !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.review-priority-stack .risk-action-column .risk-action-list,
.review-priority-stack .risk-action-column .verification-question-list,
.review-priority-stack .risk-action-column #top-risks,
.review-priority-stack .risk-action-column #questions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-content: start !important;
  grid-column: auto !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.review-priority-stack .risk-action-column .risk-action-list li,
.review-priority-stack .risk-action-column .verification-question-list li,
.review-priority-stack .risk-action-column #top-risks li,
.review-priority-stack .risk-action-column #questions li {
  position: relative !important;
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.review-priority-stack .risk-action-column .risk-action-list li::before,
.review-priority-stack .risk-action-column .verification-question-list li::before,
.review-priority-stack .risk-action-column #top-risks li::before,
.review-priority-stack .risk-action-column #questions li::before {
  content: none !important;
}

.review-priority-stack .risk-action-column .risk-action-item,
.review-priority-stack .risk-action-column .verification-question-item {
  border: 1px solid #d8e3f2 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(28, 59, 117, 0.05) !important;
}

.review-priority-stack .risk-action-column .verification-question-item {
  min-height: 56px !important;
  align-items: center !important;
}

@media (max-width: 980px) {
  .review-priority-stack > .risk-action-board {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* 2026-05-25: final ops review list layout. Keep action/time visible. */
#ops-dashboard-shell .ops-table-wrap table.data-table.compact:not(.ops-failed-table):not(:has(tbody#failed-body)) {
  width: 100% !important;
  min-width: 900px !important;
  table-layout: auto !important;
}

#ops-dashboard-shell .ops-failed-table,
#ops-dashboard-shell table:has(tbody#failed-body) {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto !important;
  border: 0 !important;
  background: transparent !important;
}

#ops-dashboard-shell .ops-failed-table thead,
#ops-dashboard-shell table:has(tbody#failed-body) thead {
  display: none !important;
}

#ops-dashboard-shell .ops-failed-table tbody,
#ops-dashboard-shell table:has(tbody#failed-body) tbody {
  display: grid !important;
  gap: 12px !important;
}

#ops-dashboard-shell .ops-failed-table tr,
#ops-dashboard-shell table:has(tbody#failed-body) tr {
  display: grid !important;
  grid-template-columns: 150px 260px 92px 120px minmax(180px, 1fr) 152px;
  grid-template-areas:
    "case file status issue metrics updated"
    "reason reason reason action action actions";
  gap: 10px !important;
  min-height: 0 !important;
  padding: 12px !important;
  border: 1px solid #d7e2f1 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(20, 35, 59, 0.06) !important;
}

#ops-dashboard-shell .ops-failed-table td,
#ops-dashboard-shell table:has(tbody#failed-body) td {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  border: 1px solid #e4edf8 !important;
  border-radius: 10px !important;
  background: #f8fbff !important;
  padding: 8px 10px !important;
  line-height: 1.5 !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  vertical-align: top !important;
}

#ops-dashboard-shell .ops-failed-table td::before,
#ops-dashboard-shell table:has(tbody#failed-body) td::before {
  display: block;
  margin-bottom: 4px;
  color: #60718b;
  font-size: 12px;
  font-weight: 800;
}

#ops-dashboard-shell .ops-failed-table td:nth-child(1),
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(1) {
  grid-area: case;
  background: #fff !important;
}

#ops-dashboard-shell .ops-failed-table td:nth-child(1)::before,
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(1)::before {
  content: "案件";
}

#ops-dashboard-shell .ops-failed-table td:nth-child(2),
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(2) {
  grid-area: file;
  background: #fff !important;
}

#ops-dashboard-shell .ops-failed-table td:nth-child(2)::before,
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(2)::before {
  content: "文件";
}

#ops-dashboard-shell .ops-failed-table td:nth-child(3),
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(3) {
  grid-area: status;
}

#ops-dashboard-shell .ops-failed-table td:nth-child(3)::before,
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(3)::before {
  content: "状态";
}

#ops-dashboard-shell .ops-failed-table td:nth-child(4),
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(4) {
  grid-area: issue;
}

#ops-dashboard-shell .ops-failed-table td:nth-child(4)::before,
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(4)::before {
  content: "问题";
}

#ops-dashboard-shell .ops-failed-table td:nth-child(5),
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(5) {
  grid-area: reason;
}

#ops-dashboard-shell .ops-failed-table td:nth-child(5)::before,
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(5)::before {
  content: "原因说明";
}

#ops-dashboard-shell .ops-failed-table td:nth-child(6),
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(6) {
  grid-area: action;
  background: #fffaf2 !important;
}

#ops-dashboard-shell .ops-failed-table td:nth-child(6)::before,
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(6)::before {
  content: "建议动作";
}

#ops-dashboard-shell .ops-failed-table td:nth-child(7),
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(7) {
  grid-area: metrics;
}

#ops-dashboard-shell .ops-failed-table td:nth-child(7)::before,
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(7)::before {
  content: "有效/总行";
}

#ops-dashboard-shell .ops-failed-table td:nth-child(8),
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(8) {
  grid-area: actions;
  align-self: stretch;
  text-align: center !important;
}

#ops-dashboard-shell .ops-failed-table td:nth-child(8)::before,
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(8)::before {
  content: "操作";
}

#ops-dashboard-shell .ops-failed-table td:nth-child(9),
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(9) {
  grid-area: updated;
}

#ops-dashboard-shell .ops-failed-table td:nth-child(9)::before,
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(9)::before {
  content: "更新时间";
}

#ops-dashboard-shell .ops-failed-table td:nth-child(10),
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(10) {
  grid-area: updated;
}

#ops-dashboard-shell .ops-failed-table code,
#ops-dashboard-shell table:has(tbody#failed-body) code,
#ops-dashboard-shell .ops-file-cell strong {
  display: -webkit-box !important;
  max-width: 100% !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-height: 1.45 !important;
  word-break: break-word !important;
}

#ops-dashboard-shell .ops-file-cell small,
#ops-dashboard-shell table:has(tbody#failed-body) small {
  display: block !important;
  margin-top: 2px !important;
  color: #60718b !important;
  font-size: 12px !important;
}

#ops-dashboard-shell .ops-failed-table td:nth-child(3),
#ops-dashboard-shell .ops-failed-table td:nth-child(4),
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(3),
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(4) {
  color: #8a3b16 !important;
  font-weight: 800 !important;
}

#ops-dashboard-shell .ops-failed-table td:nth-child(7) strong,
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(7) strong {
  color: #10213b !important;
  font-size: 15px !important;
}

#ops-dashboard-shell .ops-failed-table td:nth-child(8) a,
#ops-dashboard-shell .ops-failed-table td:nth-child(8) button,
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(8) a,
#ops-dashboard-shell table:has(tbody#failed-body) td:nth-child(8) button {
  display: block !important;
  width: 100% !important;
  margin: 4px 0 !important;
  text-align: center !important;
}

@media (max-width: 980px) {
  #ops-dashboard-shell .ops-failed-table tr,
  #ops-dashboard-shell table:has(tbody#failed-body) tr {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "case"
      "file"
      "status"
      "issue"
      "metrics"
      "reason"
      "action"
      "actions"
      "updated" !important;
  }
}

/* 2026-05-25: result overview second-screen risk/action board. */
.review-priority-grid,
.grid-two:has(#top-risks) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 14px !important;
}

.priority-review-card,
.risk-action-board,
.panel-inner:has(#top-risks) {
  min-height: 100% !important;
}

.risk-action-board,
.panel-inner:has(#top-risks) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-content: start !important;
  gap: 12px !important;
}

.risk-action-board h4,
.panel-inner:has(#top-risks) h4 {
  margin: 0 !important;
  color: #10213b !important;
}

.risk-action-board h4:nth-of-type(1),
.risk-action-list,
#top-risks {
  grid-column: 1 !important;
}

.risk-action-board h4:nth-of-type(2),
.verification-question-list,
#questions {
  grid-column: 2 !important;
}

.risk-action-list,
.verification-question-list,
#top-risks,
#questions {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 10px !important;
}

.risk-action-list li,
.verification-question-list li,
#top-risks li,
#questions li {
  position: relative !important;
  margin: 0 !important;
  padding: 12px 12px 12px 48px !important;
  border: 1px solid #dbe6f5 !important;
  border-radius: 12px !important;
  background: #f8fbff !important;
  line-height: 1.65 !important;
  color: #14233b !important;
  box-shadow: 0 8px 18px rgba(20, 35, 59, 0.045) !important;
}

.risk-action-list li::before,
#top-risks li::before {
  content: "风险";
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff3e8;
  color: #9a431f;
  font-size: 12px;
  font-weight: 800;
}

.verification-question-list li::before,
#questions li::before {
  content: "补证";
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf4ff;
  color: #254aa5;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .review-priority-grid,
  .grid-two:has(#top-risks),
  .risk-action-board,
  .panel-inner:has(#top-risks) {
    grid-template-columns: 1fr !important;
  }

  .risk-action-board h4:nth-of-type(1),
  .risk-action-board h4:nth-of-type(2),
  .risk-action-list,
  .verification-question-list,
  #top-risks,
  #questions {
    grid-column: 1 !important;
  }
}

.regional-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(20, 35, 59, 0.06);
}

.regional-hero h1 {
  margin: 5px 0 8px;
  font-size: 30px;
  line-height: 1.18;
}

.regional-hero p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.58;
}

.regional-radar-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 760px;
  margin: 14px 0;
}

.regional-radar-strip div {
  border: 1px solid #dce5f1;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbff;
}

.regional-radar-strip span,
.regional-radar-meter em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-style: normal;
  font-weight: 900;
}

.regional-radar-strip span {
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
  background: #e9f1ff;
  color: var(--primary);
  font-size: 12px;
}

.regional-radar-strip strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
}

.regional-radar-strip small {
  color: var(--muted);
  line-height: 1.45;
}

.regional-source-card,
.regional-overview-card,
.regional-detail,
.regional-cluster-card,
.regional-entry-card,
.regional-learning-card,
.regional-lesson-card,
.regional-source-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.regional-source-card {
  min-width: 260px;
  padding: 16px;
  background: #f8fbff;
  box-shadow: none;
}

.regional-source-card span,
.regional-source-card small,
.regional-source-list span,
.regional-source-list small {
  display: block;
  color: var(--muted);
}

.regional-source-card strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 20px;
}

.regional-radar-meter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.regional-radar-meter em {
  padding: 6px 9px;
  background: #eef5ff;
  color: var(--primary);
  font-size: 12px;
}

.regional-quick-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(260px, 1.25fr) minmax(180px, 0.9fr);
  gap: 10px;
  align-items: end;
}

.regional-quick-form label {
  font-weight: 800;
}

.regional-quick-form textarea {
  min-height: 45px;
  resize: vertical;
  line-height: 1.45;
}

.regional-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.regional-dashboard,
.regional-two,
.regional-workbench,
.regional-methods {
  display: grid;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.regional-workbench {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.regional-work-main,
.regional-work-side,
.regional-methods {
  display: grid;
  gap: 16px;
}

.regional-work-side {
  position: sticky;
  top: 92px;
}

.regional-dashboard {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.regional-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.regional-main,
.regional-side,
.regional-panel {
  padding: 18px;
}

.regional-workbench .panel,
.regional-methods .panel,
.regional-progress,
.regional-ai-brief {
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(20, 35, 59, 0.055);
}

.regional-side {
  position: static;
}

.regional-overview-empty,
.regional-graph-empty,
.regional-detail-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
}

.regional-overview-card,
.regional-detail,
.regional-cluster-card,
.regional-entry-card,
.regional-learning-card,
.regional-lesson-card {
  padding: 14px;
}

.regional-overview-card {
  display: grid;
  gap: 8px;
  border-left: 4px solid #2f7d62;
}

.regional-overview-card span,
.regional-overview-card small,
.regional-detail p,
.regional-detail li,
.regional-entry-card p,
.regional-learning-card p,
.regional-cluster-card p,
.regional-lesson-card > p {
  color: var(--muted);
  line-height: 1.65;
}

.regional-cluster-grid,
.regional-entry-grid,
.regional-learning-grid,
.regional-lesson-grid,
.regional-source-list {
  display: grid;
  gap: 10px;
}

.regional-cluster-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.regional-entry-grid,
.regional-source-list.has-sources {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#architecture-grid {
  margin-top: 14px;
}

.regional-layer-grid,
.regional-role-grid,
.regional-action-grid,
.regional-progress-steps {
  display: grid;
  gap: 14px;
}

.regional-layer-grid,
.regional-role-grid,
.regional-progress-steps {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.regional-work-side .regional-layer-grid,
.regional-work-side .regional-source-list.has-sources {
  grid-template-columns: 1fr;
}

.regional-action-grid {
  grid-template-columns: 1fr;
}

.regional-progress {
  margin-top: 16px;
  padding: 18px;
}

.regional-progress-step,
.regional-layer-card,
.regional-role-card,
.regional-action-card,
.regional-source-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px;
}

.regional-progress-step {
  display: grid;
  gap: 6px;
}

.regional-progress-step span,
.regional-layer-head span,
.regional-action-head span,
.regional-source-item span,
.regional-source-item em {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.regional-progress-step span {
  background: #eef4ff;
  color: var(--primary);
}

.regional-progress-step.done span {
  background: #e9f8ef;
  color: #166534;
}

.regional-progress-step.active {
  border-color: rgba(31, 74, 168, 0.45);
  box-shadow: 0 10px 22px rgba(20, 35, 59, 0.08);
}

.regional-progress-step.failed span {
  background: #fff1f1;
  color: #a51d2d;
}

.regional-progress-step small,
.regional-layer-card p,
.regional-layer-item,
.regional-role-card p,
.regional-role-card li,
.regional-action-card li,
.regional-source-item p,
.regional-source-item li,
.regional-source-item small {
  color: var(--muted);
  line-height: 1.65;
}

.regional-layer-head,
.regional-action-head,
.regional-source-item > div {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.regional-layer-head h3,
.regional-action-head h3 {
  flex: 1;
  margin: 0;
}

.regional-layer-head span,
.regional-action-head span,
.regional-source-item.grade-A span {
  background: #e9f8ef;
  color: #166534;
}

.regional-layer-card.nature-推断 .regional-layer-head span,
.regional-source-item.grade-B span {
  background: #fff7df;
  color: #8a5a00;
}

.regional-layer-card.nature-建议 .regional-layer-head span,
.regional-source-item.grade-C span {
  background: #eef2ff;
  color: #3730a3;
}

.regional-source-item em {
  background: #eef4ff;
  color: var(--primary);
}

.regional-layer-item {
  border-top: 1px solid #edf2f8;
  margin-top: 12px;
  padding-top: 12px;
}

.regional-layer-item strong,
.regional-source-item a {
  color: var(--text);
}

.regional-layer-item div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.regional-layer-item em,
.regional-action-head em {
  border-radius: 999px;
  padding: 4px 10px;
  background: #f5f7fb;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.regional-role-grid {
  margin-bottom: 14px;
}

.regional-action-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.regional-action-cols > div {
  border: 1px solid #e6edf7;
  border-radius: 8px;
  background: #fafcff;
  padding: 10px;
}

.regional-action-cols strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.regional-action-cols ul,
.regional-role-card ul,
.regional-layer-item ul,
.regional-source-item ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.regional-action-cols li {
  margin-bottom: 4px;
  font-size: 13px;
}

.regional-cluster-top,
.regional-lesson-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.regional-hero h2,
.regional-workbench h2,
.regional-methods h2,
.regional-ai-brief h2,
.regional-progress h2 {
  font-size: 24px;
  line-height: 1.22;
  margin-bottom: 6px;
}

.regional-workbench h3,
.regional-methods h3,
.regional-ai-brief h3 {
  font-size: 18px;
  line-height: 1.32;
}

.regional-side-panel h2 {
  font-size: 20px;
}

.regional-side-panel .section-head {
  margin-bottom: 8px;
}

.regional-cluster-top span,
.regional-lesson-head span {
  color: var(--primary);
  font-weight: 900;
}

.regional-cluster-top em {
  font-style: normal;
  border-radius: 999px;
  padding: 4px 10px;
  background: #edf4ff;
  color: var(--primary);
}

.regional-graph-map {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
  padding-bottom: 4px;
}

.regional-chain-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.regional-work-side .regional-layer-card,
.regional-work-side .regional-source-item {
  padding: 12px;
}

.regional-work-side .regional-layer-card p,
.regional-work-side .regional-layer-item,
.regional-work-side .regional-source-item p,
.regional-work-side .regional-source-item li,
.regional-work-side .regional-source-item small {
  font-size: 13px;
  line-height: 1.55;
}

.regional-work-side .regional-layer-head,
.regional-work-side .regional-source-item > div {
  align-items: flex-start;
}

.regional-chain-toolbar strong {
  color: var(--text);
  font-size: 16px;
}

.regional-chain-hub {
  display: flex;
}

.regional-chain-rows {
  display: grid;
  gap: 12px;
  min-width: 980px;
}

.regional-chain-row {
  display: grid;
  grid-template-columns: 1.25fr 42px 1fr 42px 1fr 42px 1fr 42px 1.08fr;
  align-items: stretch;
  gap: 8px;
}

.regional-chain-row i {
  align-self: center;
  color: var(--primary);
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.regional-chain-row i::after {
  content: "→";
  display: block;
  font-size: 18px;
  line-height: 1;
  margin-top: 2px;
}

.regional-chain-node {
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.regional-chain-node:hover,
.regional-chain-node.active {
  border-color: rgba(31, 74, 168, 0.55);
  box-shadow: 0 10px 22px rgba(20, 35, 59, 0.08);
  transform: translateY(-1px);
}

.regional-chain-node span {
  display: inline-flex;
  border-radius: 999px;
  padding: 3px 8px;
  background: #e9f1ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.regional-chain-node strong,
.regional-chain-node small {
  display: block;
}

.regional-chain-node strong {
  margin: 8px 0 6px;
  font-size: 15px;
  line-height: 1.35;
}

.regional-chain-node small {
  color: var(--muted);
  line-height: 1.45;
}

.node-entry span {
  background: #edf8f2;
  color: #166534;
}

.node-customer span {
  background: #eef2ff;
  color: #3730a3;
}

.node-risk span {
  background: #fff1f1;
  color: #a51d2d;
}

.node-bank span {
  background: #fff7df;
  color: #8a5a00;
}

.regional-graph-node {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.regional-graph-node:hover,
.regional-source-list a:hover {
  border-color: rgba(31, 74, 168, 0.42);
}

.regional-graph-node strong,
.regional-graph-node small,
.regional-graph-node span,
.regional-source-list strong {
  display: block;
}

.regional-graph-node small {
  margin-top: 6px;
  color: var(--primary);
}

.regional-graph-node span {
  margin-top: 8px;
  color: var(--muted);
}

.regional-progress {
  background: #ffffff;
}

.regional-progress-steps {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #dbe5f2;
}

.regional-progress-step {
  min-height: 78px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #ffffff;
  padding: 12px;
  position: relative;
}

.regional-progress-step::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background: #dbe5f2;
}

.regional-progress-step:last-child::after {
  display: none;
}

.regional-progress-step strong {
  font-size: 14px;
  line-height: 1.35;
}

.regional-progress-step small {
  font-size: 12px;
}

.regional-progress-step.done {
  background: #f7fcf9;
}

.regional-progress-step.active {
  background: #f7faff;
  box-shadow: inset 0 -3px 0 var(--primary);
}

.regional-progress-step.failed {
  background: #fff7f7;
  box-shadow: inset 0 -3px 0 #b42334;
}

.regional-progress-note {
  margin-top: 10px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f6f8fb;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.regional-progress-completed .regional-progress-note {
  background: #eefaf3;
  color: #166534;
}

.regional-progress-failed .regional-progress-note {
  background: #fff1f1;
  color: #a51d2d;
}

.regional-chain-toolbar {
  align-items: flex-start;
  border-bottom: 1px solid #edf2f8;
  padding-bottom: 10px;
}

.regional-chain-toolbar span {
  max-width: 520px;
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.regional-chain-summary {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px;
}

.regional-chain-summary > div {
  display: grid;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.regional-chain-summary > div strong {
  color: var(--text);
  font-size: 16px;
}

.regional-chain-start {
  min-height: auto;
  border-radius: 8px;
  background: #ffffff;
}

.regional-chain-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.regional-chain-card {
  overflow: hidden;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #ffffff;
  width: 100%;
  min-width: 0;
}

.regional-chain-card-head {
  display: grid;
  grid-template-columns: max-content minmax(220px, 1fr) max-content;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid #e7edf6;
  background: #f8fbff;
}

.regional-chain-card-head span {
  border-radius: 999px;
  padding: 3px 8px;
  background: #e9f8ef;
  color: #166534;
  font-size: 12px;
  font-weight: 900;
}

.regional-chain-card-head h3 {
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.regional-chain-card-head small {
  color: var(--muted);
  font-size: 12px;
  justify-self: end;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}

.regional-chain-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 1px;
  background: #e7edf6;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.regional-chain-step {
  min-height: 118px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  padding: 12px;
}

.regional-chain-step:hover,
.regional-chain-step.active {
  transform: none;
  box-shadow: inset 0 -3px 0 var(--primary);
}

.regional-chain-step strong {
  font-size: 14px;
  line-height: 1.35;
}

.regional-chain-step small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 12px;
  line-height: 1.45;
}

.regional-entry-panel .regional-entry-grid,
.regional-learning-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.regional-learning-card {
  min-height: 132px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #ffffff;
}

.regional-learning-card h3 {
  margin-bottom: 8px;
  font-size: 16px;
  line-height: 1.35;
}

.regional-learning-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: 13px;
}

.regional-lesson-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.regional-lesson-cols div {
  border: 1px solid #e6edf7;
  border-radius: 12px;
  padding: 12px;
  background: #fafcff;
}

.regional-lesson-cols ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.regional-lesson-visual {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr) minmax(240px, 0.8fr);
  gap: 10px;
}

.regional-flow-card {
  border: 1px solid #e6edf7;
  border-radius: 12px;
  padding: 12px;
  background: #fafcff;
}

.regional-flow-card > strong {
  display: block;
  margin-bottom: 10px;
}

.regional-flow-card ol {
  margin: 8px 0 0;
  padding-left: 20px;
}

.regional-flow-card li,
.regional-flow-card p {
  color: var(--muted);
  line-height: 1.65;
}

.regional-flow-card.bank {
  background: #f8fbff;
  border-color: #cbdcf2;
}

.regional-flow-lanes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.regional-flow-lanes i {
  align-self: center;
  color: var(--primary);
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.regional-flow-lanes i::before {
  content: "→";
}

.regional-flow-lanes div {
  border: 1px solid #d9e5f5;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.regional-flow-lanes span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}

.regional-report-draft {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: #ffffff;
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.75;
  box-shadow: inset 4px 0 0 #2f7d62;
}

.regional-source-list {
  color: var(--muted);
  line-height: 1.65;
}

.regional-source-list a {
  display: block;
  padding: 14px;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
}

.regional-source-list.has-sources > p {
  grid-column: 1 / -1;
}

.regional-source-item a {
  padding: 0;
  margin: 10px 0 6px;
  background: transparent;
  font-weight: 900;
}

.regional-source-item strong {
  display: block;
  margin-top: 12px;
}

.regional-source-list strong {
  margin: 6px 0;
  font-size: 15px;
}

.regional-ai-brief {
  margin-top: 16px;
  padding: 22px;
  border-color: #b8c9e8;
  background: linear-gradient(135deg, #ffffff 0%, #f6f9ff 100%);
}

.regional-source-grade {
  border: 1px solid #bfd0ee;
  border-radius: 999px;
  padding: 6px 12px;
  background: #eef4ff;
  color: var(--primary);
  font-weight: 800;
}

.regional-ai-summary {
  max-width: 980px;
  color: var(--muted);
  line-height: 1.7;
}

.regional-ai-grid,
.regional-ai-facts,
.regional-evidence-grid,
.regional-plan-strip {
  display: grid;
  gap: 14px;
}

.regional-ai-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.regional-ai-facts {
  margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.regional-plan-strip {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 14px 0;
}

.regional-plan-strip span {
  border: 1px solid #d8e4f5;
  border-radius: 12px;
  padding: 10px 12px;
  background: #f9fbff;
  color: var(--muted);
  line-height: 1.55;
}

.regional-evidence-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 14px;
}

.regional-ai-card,
.regional-fact-card,
.regional-evidence-card,
.regional-ai-empty,
.regional-ai-unsupported {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
}

.regional-evidence-card {
  background: #fbfdff;
}

.regional-evidence-card.needs-check {
  background: #fffaf0;
}

.regional-evidence-card > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.regional-evidence-card span,
.regional-evidence-card em {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.regional-evidence-card span {
  background: #eef4ff;
  color: var(--primary);
}

.regional-evidence-card em {
  background: #e9f8ef;
  color: #166534;
}

.regional-evidence-card.needs-check em {
  background: #fff1f1;
  color: #a51d2d;
}

.regional-ai-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.regional-ai-card-top span {
  border-radius: 999px;
  padding: 4px 10px;
  background: #e8f5ee;
  color: #166534;
  font-weight: 900;
}

.regional-ai-card.level-中 .regional-ai-card-top span {
  background: #fff7df;
  color: #8a5a00;
}

.regional-ai-card.level-低 .regional-ai-card-top span,
.regional-ai-card.level-low .regional-ai-card-top span {
  background: #fff1f1;
  color: #a51d2d;
}

.regional-ai-card-top small,
.regional-ai-card p,
.regional-ai-card li,
.regional-evidence-card p,
.regional-evidence-card small,
.regional-fact-card p,
.regional-ai-empty,
.regional-ai-unsupported,
.regional-ai-unsupported li {
  color: var(--muted);
  line-height: 1.65;
}

.regional-ai-card h3,
.regional-evidence-card h3,
.regional-fact-card h3 {
  margin: 10px 0;
}

.regional-ai-card strong {
  display: block;
  margin-top: 12px;
}

.regional-fact-card span {
  color: var(--primary);
  font-weight: 900;
}

.regional-ai-unsupported {
  margin-top: 14px;
  background: #fffaf0;
}

@media (max-width: 860px) {
  .regional-hero,
  .regional-radar-strip,
  .regional-quick-form,
  .regional-workbench,
  .regional-work-main,
  .regional-work-side,
  .regional-methods,
  .regional-dashboard,
  .regional-two,
  .regional-lesson-cols,
  .regional-lesson-visual,
  .regional-flow-lanes,
  .regional-ai-grid,
  .regional-ai-facts,
  .regional-evidence-grid,
  .regional-plan-strip,
  .regional-layer-grid,
  .regional-role-grid,
  .regional-action-cols,
  .regional-progress-steps {
    display: grid;
    grid-template-columns: 1fr;
  }

  .regional-hero {
    padding: 18px;
  }

  .regional-work-side {
    position: static;
  }

  .regional-side {
    position: static;
  }

  .regional-chain-toolbar {
    display: grid;
  }

  .regional-chain-toolbar span {
    max-width: none;
    text-align: left;
  }

  .regional-chain-summary,
  .regional-chain-card-head {
    grid-template-columns: 1fr;
  }

  .regional-chain-card-head h3 {
    white-space: normal;
  }

  .regional-chain-card-head small {
    justify-self: start;
  }

  .regional-chain-steps {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
  }

  .regional-chain-rows {
    min-width: 0;
  }

  .regional-chain-row {
    grid-template-columns: 1fr;
  }

  .regional-chain-row i::after {
    content: "↓";
  }

  .regional-flow-lanes i::before {
    content: "↓";
  }

  .regional-hero h1 {
    font-size: 27px;
  }
}

.membership-top-widget {
  display: grid;
  min-width: 260px;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid #c8d7ee;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(20, 35, 59, 0.08);
}

.membership-top-widget:hover {
  border-color: #8fb1e8;
  background: #f8fbff;
}

.membership-top-label,
.membership-top-widget small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.membership-top-widget strong {
  font-size: 14px;
  line-height: 1.3;
}

.main-content {
  padding: 22px 0 44px;
}

.page-title-wrap {
  margin-bottom: 12px;
}

.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.page-title {
  margin: 0 0 6px;
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.page-logout-button {
  flex: 0 0 auto;
  margin-top: 6px;
  white-space: nowrap;
}

h2 {
  font-size: 37px;
  margin: 0 0 10px;
  letter-spacing: 0.2px;
}

h3 {
  font-size: 29px;
  margin: 0 0 10px;
  letter-spacing: 0.2px;
}

.status-text {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.card,
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 35, 59, 0.07);
}

.card {
  padding: 18px;
  margin-bottom: 16px;
}

.panel {
  padding: 14px;
}

.panel h4 {
  margin: 14px 0 8px;
  font-size: 15px;
}

.panel h5 {
  margin: 10px 0 6px;
  font-size: 14px;
  color: var(--text);
}

.report-context-panel {
  border-color: #f0c36a;
  background: linear-gradient(180deg, #fffaf1 0%, #ffffff 52%);
}

.report-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.report-context-grid label span,
.report-context-note span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.report-context-note {
  display: block;
  margin-bottom: 12px;
}

.report-context-note textarea {
  min-height: 92px;
  resize: vertical;
}

.section-block {
  margin-top: 12px;
}

.panel-inner {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, var(--surface) 100%);
  margin-bottom: 10px;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.summary-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.summary-card h4 {
  margin: 0 0 8px;
}

.overall-summary-card {
  grid-column: 1 / -1;
}

.summary-main {
  margin: 0 0 6px;
  font-weight: 700;
  line-height: 1.4;
}

.priority-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.priority-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
}

.priority-badge.p0 {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.priority-badge.p1 {
  color: #92400e;
  background: #fef3c7;
  border-color: #fcd34d;
}

#overall-conclusion {
  display: block;
  overflow: visible;
  white-space: normal;
  overflow-wrap: anywhere;
}

#first-screen-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

#first-screen-summary.quickview-rich {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.2;
  white-space: nowrap;
}

.quickview-label {
  font-size: 15px;
  color: #243b63;
}

.quickview-value {
  font-size: 24px;
  font-weight: 800;
  color: #0f2f73;
  letter-spacing: 0.2px;
}

.quickview-tail {
  font-size: 13px;
  color: #4f5f79;
}

.summary-sub {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.summary-sub:empty {
  display: none;
}

.trust-evidence-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.trust-evidence-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.trust-evidence-head h4 {
  margin: 0;
}

.trust-evidence-head span {
  color: var(--muted);
  font-size: 13px;
}

.trust-evidence-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.trust-evidence-card {
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfdff;
  min-height: 118px;
}

.trust-evidence-card.trust-good {
  border-left-color: #22c55e;
  background: #f4fbf6;
}

.trust-evidence-card.trust-warn {
  border-left-color: #f59e0b;
  background: #fffaf0;
}

.trust-evidence-card.trust-bad {
  border-left-color: #ef4444;
  background: #fff7f7;
}

.trust-evidence-card.trust-watch {
  border-left-color: #64748b;
}

.trust-evidence-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.trust-evidence-title span {
  font-size: 13px;
  color: var(--muted);
}

.trust-evidence-title b {
  font-size: 14px;
  color: var(--text);
}

.trust-evidence-card p {
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.45;
}

.trust-evidence-card small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.manager-action-panel {
  margin-top: 12px;
}

.manager-action-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.manager-action-head h4,
.manager-action-head p {
  margin: 0;
}

.manager-action-head p {
  margin-top: 4px;
}

.manager-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.manager-action-card {
  border: 1px solid var(--line);
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfdff;
  min-height: 142px;
}

.manager-action-card.p0 {
  border-left-color: #ef4444;
  background: #fff7f7;
}

.manager-action-card.p1 {
  border-left-color: #2563eb;
}

.manager-action-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.manager-action-title span {
  color: var(--muted);
  font-size: 13px;
}

.manager-action-title b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--text);
  background: #f8fafc;
}

.manager-action-card strong {
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.manager-action-card p {
  margin: 0 0 8px;
  line-height: 1.45;
}

.manager-action-card small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.manager-action-empty {
  grid-column: 1 / -1;
  color: var(--muted);
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.amount-once {
  margin: 8px 0 0;
  font-size: 12px;
}

.narrow {
  max-width: 500px;
}

.muted {
  color: var(--muted);
  margin-top: 0;
}

.alert {
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfdff 0%, #f7faff 100%);
}

.alert.warning {
  border-color: #f59e0b;
  background: #fffbeb;
}

.strong-hint {
  margin: 8px 0 0;
  color: #92400e;
  font-weight: 600;
}

.form-grid {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

small {
  color: var(--muted);
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfd9e8;
  border-radius: 9px;
  background: #fff;
  transition: all .18s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #7ea5e8;
  box-shadow: 0 0 0 3px rgba(28, 74, 168, 0.12);
}

.btn {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: all .18s ease;
  font-weight: 600;
}

.btn:hover {
  background: #edf3ff;
  border-color: #a7bfe7;
}

.btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background: var(--primary-hover);
}

.btn.radar {
  border-color: #9fb7df;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  color: var(--primary);
  font-weight: 800;
}

.btn.radar:hover {
  border-color: var(--primary);
  background: #e8f1ff;
}

.btn:disabled,
.btn[disabled] {
  cursor: wait;
  opacity: 0.68;
  box-shadow: none;
}

.btn.small {
  padding: 4px 8px;
  font-size: 13px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.actions.compact {
  margin-top: 0;
  margin-bottom: 10px;
}

.kv-grid,
.grid-two {
  display: grid;
  gap: 12px;
}

.kv-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid-two {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 12px;
}

.stack {
  display: grid;
  gap: 10px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #e1e8f3;
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
  color: #1b3258;
  font-weight: 700;
}

.data-table.compact th,
.data-table.compact td {
  padding: 8px 9px;
  font-size: 13px;
}

.ops-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.ops-hero h1 {
  margin: 2px 0 8px;
  font-size: 30px;
}

.ops-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ops-today-card {
  border-color: #bccce3;
}

.ops-updated-at {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.ops-alert-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.ops-alert {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.ops-alert-ok {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.ops-alert-warning {
  color: #92400e;
  background: #fef3c7;
  border-color: #fcd34d;
}

.ops-alert-danger {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.ops-table-wrap {
  border-radius: 12px;
}

.ops-failed-table {
  min-width: 1360px;
  table-layout: fixed;
}

.ops-failed-table th,
.ops-failed-table td {
  vertical-align: top;
  line-height: 1.55;
  word-break: normal;
  overflow-wrap: anywhere;
}

.ops-failed-table th:nth-child(1),
.ops-failed-table td:nth-child(1) {
  width: 180px;
}

.ops-failed-table th:nth-child(2),
.ops-failed-table td:nth-child(2) {
  width: 330px;
}

.ops-failed-table th:nth-child(3),
.ops-failed-table td:nth-child(3) {
  width: 78px;
}

.ops-failed-table th:nth-child(4),
.ops-failed-table td:nth-child(4) {
  width: 110px;
}

.ops-failed-table th:nth-child(5),
.ops-failed-table td:nth-child(5) {
  width: 190px;
}

.ops-failed-table th:nth-child(6),
.ops-failed-table td:nth-child(6) {
  width: 210px;
}

.ops-failed-table th:nth-child(7),
.ops-failed-table td:nth-child(7) {
  width: 128px;
}

.ops-failed-table th:nth-child(8),
.ops-failed-table td:nth-child(8) {
  width: 76px;
  text-align: center;
}

.ops-failed-table th:nth-child(9),
.ops-failed-table td:nth-child(9) {
  width: 128px;
  text-align: center;
}

.ops-failed-table th:nth-child(10),
.ops-failed-table td:nth-child(10) {
  width: 170px;
}

.ops-failed-table code {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  word-break: break-all;
  line-height: 1.45;
}

.ops-failed-table td:nth-child(3),
.ops-failed-table td:nth-child(4) {
  font-weight: 800;
}

.ops-failed-table td:nth-child(7) strong,
.ops-failed-table td:nth-child(7) small {
  display: block;
}

.ops-failed-table td:nth-child(7) small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.ops-failed-table td:nth-child(8),
.ops-failed-table td:nth-child(9) {
  white-space: normal;
}

.ops-failed-table td:nth-child(8) .ops-download-link,
.ops-failed-table td:nth-child(9) .ops-download-link,
.ops-failed-table td:nth-child(10) .ops-download-link,
.ops-failed-table td:nth-child(8) a,
.ops-failed-table td:nth-child(9) a,
.ops-failed-table td:nth-child(10) a {
  margin: 2px 0;
}

.ops-failure-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.ops-failure-chip {
  border: 1px solid #f3c982;
  border-radius: 12px;
  background: #fffaf0;
  padding: 12px;
}

.ops-failure-chip strong {
  display: block;
  margin-bottom: 5px;
  color: #92400e;
  font-size: 16px;
}

.ops-failure-chip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ops-file-cell strong,
.ops-file-cell small {
  display: block;
}

.ops-file-cell strong {
  max-width: 100%;
  line-height: 1.45;
  word-break: break-word;
}

.ops-file-cell small {
  max-width: 100%;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-reason-text {
  max-width: none;
  white-space: normal;
  line-height: 1.55;
}

.ops-download-link {
  display: inline-block;
  border-radius: 8px;
  padding: 6px 10px;
  background: #244faa;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.ops-download-link:hover {
  background: #1d3f89;
}

.ops-today-table th,
.ops-today-table td {
  font-size: 14px;
  vertical-align: middle;
}

.ops-today-table td:nth-child(2),
.ops-today-table td:nth-child(3),
.ops-today-table td:nth-child(4) {
  white-space: nowrap;
}

.ops-today-table span[id^="metric-"] {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.ops-danger-number,
.ops-cell-danger {
  color: #b91c1c !important;
  font-weight: 800;
}

.ops-warning-number,
.ops-cell-warning {
  color: #92400e !important;
  font-weight: 800;
}

.ops-cell-ok {
  color: #166534 !important;
  font-weight: 800;
}

.ops-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ops-count-list {
  display: grid;
  gap: 8px;
}

.ops-count-list h3 {
  margin: 10px 0 2px;
  color: #1b3258;
  font-size: 15px;
}

.ops-count-list h3:first-child {
  margin-top: 0;
}

.ops-count-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e1e8f3;
  border-radius: 9px;
  background: #fbfdff;
  padding: 8px 10px;
}

.ops-count-list span {
  min-width: 0;
  color: var(--text);
}

.ops-count-list small {
  display: block;
  max-width: 520px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-count-list strong {
  white-space: nowrap;
}

.ops-details summary {
  cursor: pointer;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}

.ops-details[open] summary {
  margin-bottom: 12px;
}

.cross-validation-panel {
  border-color: #f6c66b;
  background: linear-gradient(180deg, #fffaf1 0%, #ffffff 42%);
}

.cross-verify-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border: 1px solid #f0bd56;
  border-radius: 12px;
  background: #fff7e6;
  padding: 14px 16px;
  color: #7c2d12;
}

.cross-verify-alert strong,
.cross-verify-alert span {
  display: block;
}

.cross-verify-alert strong {
  color: #9a3412;
  font-size: 18px;
}

.cross-verify-alert span {
  margin-top: 4px;
  color: #81512a;
  line-height: 1.5;
}

.cross-verify-alert em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #9a3412;
  color: #fff;
  font-style: normal;
  font-weight: 800;
  padding: 8px 12px;
  white-space: nowrap;
}

.industry-candidate-hints {
  border: 1px dashed #f0bd56;
  border-radius: 12px;
  background: #fffdf7;
  padding: 14px 16px;
  margin: 14px 0;
}

.industry-candidate-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.industry-candidate-head strong {
  color: #7c2d12;
}

.industry-candidate-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.industry-candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.industry-candidate-card {
  text-align: left;
  border: 1px solid #f3d08a;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  padding: 12px;
  cursor: pointer;
  font: inherit;
  box-shadow: 0 4px 12px rgba(124, 45, 18, 0.06);
}

.industry-candidate-card:hover {
  border-color: #d97706;
  background: #fffbeb;
}

.industry-candidate-card span,
.industry-candidate-card em,
.industry-candidate-card small {
  display: block;
}

.industry-candidate-card span {
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
}

.industry-candidate-card strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.industry-candidate-card em {
  margin-top: 6px;
  color: #166534;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
}

.industry-candidate-card small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.cross-task-list,
.relationship-insights,
.value-mining-grid {
  display: grid;
  gap: 12px;
}

.cross-task-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 14px 0;
}

.cross-task-card,
.relationship-card,
.value-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 6px 16px rgba(19, 52, 95, 0.06);
}

.cross-task-guide {
  border-style: dashed;
  background: #fbfdff;
}

.cross-task-card strong,
.relationship-card strong,
.value-card strong {
  color: var(--text);
}

.cross-task-card p,
.relationship-card p,
.value-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.cross-task-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cross-task-head span {
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  white-space: nowrap;
}

.cross-task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cross-task-grid div {
  border-radius: 10px;
  background: #f7faff;
  padding: 8px;
}

.cross-task-grid span,
.relationship-card span,
.value-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cross-task-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.4;
}

.cross-task-risk {
  color: #9a3412 !important;
}

.cross-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cross-task-actions button {
  border: 1px solid #cbd7eb;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  padding: 6px 12px;
}

.cross-task-actions button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.relationship-panel,
.value-mining-panel,
.counterparty-panel,
.debt-panel {
  grid-column: 1 / -1;
}

.counterparty-table-wrap {
  overflow-x: visible;
}

.counterparty-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.counterparty-table th,
.counterparty-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.counterparty-table th:nth-child(1),
.counterparty-table td:nth-child(1) {
  width: 48%;
}

.counterparty-table th:nth-child(2),
.counterparty-table td:nth-child(2),
.counterparty-table th:nth-child(4),
.counterparty-table td:nth-child(4) {
  width: 20%;
}

.counterparty-table th:nth-child(3),
.counterparty-table td:nth-child(3) {
  width: 12%;
  text-align: center;
}

.relationship-insights,
.value-mining-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.relationship-card,
.value-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.relationship-card strong,
.value-card strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.value-mining-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card {
  border-color: #d8e4f5;
}

.debt-panel {
  border-color: #f0c36a;
  background: linear-gradient(180deg, #fffdf7 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(146, 64, 14, 0.08);
}

.debt-action-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #f1c76b;
  border-radius: 12px;
  background: #fff8e6;
  color: #713f12;
  padding: 10px 12px;
  margin: 10px 0 12px;
}

.debt-action-callout strong {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #92400e;
  color: #fff;
  padding: 4px 10px;
  font-size: 13px;
}

.debt-action-callout span {
  font-weight: 700;
}

.debt-input-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 12px 0;
}

.debt-input-grid label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.debt-input-grid input {
  width: 100%;
  border-color: #e0a93f;
  background: #fff;
  font-weight: 800;
}

.debt-input-grid button {
  min-height: 44px;
  box-shadow: 0 8px 18px rgba(37, 78, 170, 0.18);
}

.debt-assessment-output {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 14px;
}

.debt-verdict {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.debt-verdict span,
.debt-verdict em,
.debt-facts span {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.debt-verdict strong {
  font-size: 28px;
}

.debt-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.debt-facts div {
  border-radius: 10px;
  background: #f7faff;
  padding: 10px;
}

.debt-facts span,
.debt-facts strong {
  display: block;
}

.debt-facts strong {
  margin-top: 4px;
}

.debt-credit-advice {
  border: 1px solid #bcd0ee;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
  margin-top: 12px;
}

.debt-credit-advice span,
.debt-credit-advice strong {
  display: block;
}

.debt-credit-advice span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.debt-credit-advice strong {
  margin-top: 4px;
  color: var(--primary);
  font-size: 22px;
}

.debt-assessment-output p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.debt-good .debt-verdict strong {
  color: #166534;
}

.debt-normal .debt-verdict strong {
  color: #1d4ed8;
}

.debt-watch .debt-verdict strong {
  color: #92400e;
}

.debt-high .debt-verdict strong {
  color: #b91c1c;
}

.debt-neutral .debt-verdict strong {
  color: #334155;
}

.score-rules-note {
  margin: 4px 0 12px;
}

.score-panel {
  grid-column: 1 / -1;
}

.score-position-list {
  display: grid;
  gap: 12px;
}

.score-summary-card,
.score-position-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 14px;
  box-shadow: 0 6px 18px rgba(19, 52, 95, 0.06);
}

.score-position-list .empty-state {
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  padding: 14px;
}

.score-summary-card {
  border-color: #b8c9e4;
}

.score-summary-main,
.score-position-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.score-summary-main {
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.score-summary-main span,
.score-summary-main em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.score-summary-main strong {
  color: var(--primary);
  font-size: 34px;
  line-height: 1;
}

.score-summary-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.score-summary-insights > div {
  border: 1px solid #e1e8f3;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.score-summary-insights span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.score-summary-insights strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 15px;
}

.score-summary-insights p,
.score-footnote {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.score-position-top h5 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
}

.score-position-top p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.score-position-top strong {
  min-width: 54px;
  text-align: right;
  color: var(--primary);
  font-size: 28px;
  line-height: 1;
}

.score-number-block {
  min-width: 86px;
  text-align: right;
}

.score-number-block span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.score-track {
  position: relative;
  height: 12px;
  margin: 14px 0 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444 0 40%, #f59e0b 40% 60%, #3b82f6 60% 80%, #22c55e 80% 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.score-track-large {
  height: 14px;
}

.score-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 26px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #10213d;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.28);
  transform: translate(-50%, -50%);
}

.score-marker span {
  position: absolute;
  left: 50%;
  top: -22px;
  color: #10213d;
  font-size: 12px;
  font-weight: 800;
  transform: translateX(-50%);
}

.score-scale {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr 0.5fr 0.5fr 0.5fr 1fr;
  gap: 4px;
  color: #6b7a90;
  font-size: 12px;
}

.score-scale span:nth-child(n+2):nth-child(-n+5) {
  text-align: center;
}

.score-scale span:last-child {
  text-align: right;
}

.score-verdict {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.score-verdict p {
  grid-column: 1 / -1;
  margin: 0;
}

.score-band-weak .score-position-top strong,
.score-band-weak .score-verdict strong,
.score-band-weak .score-summary-main em {
  color: #b91c1c;
}

.score-band-watch .score-position-top strong,
.score-band-watch .score-verdict strong,
.score-band-watch .score-summary-main em {
  color: #92400e;
}

.score-band-normal .score-position-top strong,
.score-band-normal .score-verdict strong,
.score-band-normal .score-summary-main em {
  color: #1d4ed8;
}

.score-band-good .score-position-top strong,
.score-band-good .score-verdict strong,
.score-band-good .score-summary-main em {
  color: #0f766e;
}

.score-band-strong .score-position-top strong,
.score-band-strong .score-verdict strong,
.score-band-strong .score-summary-main em {
  color: #166534;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.code-block,
.inline-pre,
.copy-block {
  background: linear-gradient(180deg, #fcfdff 0%, #f7faff 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.inline-pre {
  font-size: 12px;
}

.copy-block {
  min-height: 90px;
}

.list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.result-box {
  margin-top: 10px;
  color: var(--muted);
}

.error-text {
  color: var(--danger);
}

.quality-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  background: #f3f4f6;
}

.inline-grade {
  margin-left: 6px;
  vertical-align: middle;
}

.quality-good {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.quality-warning {
  color: #92400e;
  background: #fef3c7;
  border-color: #fcd34d;
}

.quality-bad {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.hidden {
  display: none;
}

.share-poster-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
}

.share-poster-modal.hidden {
  display: none;
}

.share-poster-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(3px);
}

.share-poster-panel {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid #dbe6f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

.share-poster-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #e4edf8;
}

.share-poster-head h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.share-poster-close {
  width: 40px;
  height: 40px;
  border: 1px solid #dbe6f5;
  border-radius: 12px;
  background: #f8fbff;
  color: #10213b;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.share-poster-close:hover {
  background: #edf4ff;
}

.share-poster-body {
  display: grid;
  grid-template-columns: minmax(320px, 560px) minmax(260px, 1fr);
  gap: 18px;
  padding: 20px;
}

.share-poster-preview {
  display: grid;
  justify-items: center;
  align-items: start;
  padding: 14px;
  border: 1px solid #dbe6f5;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.share-poster-preview canvas {
  display: block;
  width: min(100%, 420px);
  height: auto;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(20, 35, 59, 0.16);
}

.share-poster-side {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e4edf8;
  border-radius: 16px;
  background: #fbfdff;
}

.share-poster-side strong {
  color: #10213b;
  font-size: 18px;
}

.share-poster-side ul {
  margin: 0;
  padding-left: 18px;
  color: #40516b;
  line-height: 1.8;
}

.share-poster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 820px) {
  .share-poster-body {
    grid-template-columns: 1fr;
  }

  .share-poster-head {
    padding: 14px;
  }

  .share-poster-body {
    padding: 14px;
  }
}

.membership-prompt {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: min(420px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid #f0c56d;
  border-radius: 12px;
  background: #fffdf6;
  box-shadow: 0 18px 42px rgba(20, 35, 59, 0.18);
}

.membership-prompt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.membership-prompt-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #7a4a00;
}

.membership-prompt-close {
  width: 30px;
  height: 30px;
  border: 1px solid #e5d2a7;
  border-radius: 8px;
  background: #fff;
  color: #7a4a00;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.membership-prompt-body {
  display: grid;
  gap: 10px;
  color: #4a3a17;
  line-height: 1.6;
}

.membership-prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.membership-prompt-metric {
  padding: 10px;
  border: 1px solid #f2dfa8;
  border-radius: 10px;
  background: #fffaf0;
}

.membership-prompt-metric span {
  display: block;
  color: #7a5a1a;
  font-size: 12px;
}

.membership-prompt-metric strong {
  display: block;
  margin-top: 4px;
  color: #1f2a44;
  font-size: 20px;
}

.membership-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.feedback-fab {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 80;
  border: 1px solid #19408f;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(20, 35, 59, 0.22);
}

.membership-prompt:not(.hidden) + .feedback-fab {
  bottom: 190px;
}

.feedback-panel {
  position: fixed;
  left: 22px;
  bottom: 78px;
  z-index: 85;
  width: min(460px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(20, 35, 59, 0.2);
}

.feedback-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.feedback-panel-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 900;
}

.feedback-close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
}

.feedback-form {
  display: grid;
  gap: 10px;
}

.feedback-form textarea {
  min-height: 120px;
  resize: vertical;
}

.feedback-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feedback-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

#failure-state-panel.failure-full {
  border-color: #ef4444;
  background: #fef2f2;
}

#failure-state-panel.failure-partial {
  border-color: #f59e0b;
  background: #fffbeb;
}

#fs-file-status-body .actions.compact {
  margin-top: 6px;
}

.inflow-composition {
  margin-bottom: 12px;
}

.stacked-bar {
  width: 100%;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: #f3f4f6;
  margin: 8px 0;
}

.stacked-segment {
  height: 100%;
  min-width: 0;
  font-size: 11px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
}

.stacked-legend {
  display: grid;
  gap: 6px;
}

.stacked-legend-item {
  display: grid;
  grid-template-columns: 14px 1fr auto auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.stacked-legend-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.stacked-legend-item .name {
  color: var(--text);
}

.stacked-legend-item .value,
.stacked-legend-item .ratio {
  color: var(--muted);
  white-space: nowrap;
}

.compare-chart {
  display: grid;
  gap: 8px;
}

.compare-row {
  display: grid;
  grid-template-columns: 52px 1fr 110px;
  align-items: center;
  gap: 8px;
}

.compare-label {
  font-size: 13px;
  color: var(--text);
}

.compare-track {
  height: 12px;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid var(--line);
  overflow: hidden;
}

.compare-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
}

.compare-bar.inflow {
  background: #1d4ed8;
}

.compare-bar.outflow {
  background: #d97706;
}

.compare-bar.net {
  background: #059669;
}

.compare-bar.net.negative {
  background: #b91c1c;
}

.compare-value {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  white-space: nowrap;
}

.monthly-chart {
  width: 100%;
  min-width: 0;
}

.monthly-chart-head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 13px;
  margin-bottom: 8px;
}

.monthly-legend {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.monthly-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.monthly-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.monthly-legend i.inflow {
  background: #38bdf8;
}

.monthly-legend i.outflow {
  background: #a7d78b;
}

.monthly-legend i.coverage {
  background:
    repeating-linear-gradient(45deg, #cbd5e1 0, #cbd5e1 2px, #f8fafc 2px, #f8fafc 5px);
  border: 1px solid #cbd5e1;
  border-radius: 3px;
}

.monthly-scroll-hint {
  color: #7b8aa0;
  white-space: nowrap;
}

.monthly-coverage-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 9px 11px;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: #fffaf0;
  color: #7c2d12;
  font-size: 13px;
}

.monthly-coverage-summary strong {
  color: #9a3412;
}

.monthly-coverage-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(251, 146, 60, 0.26);
  color: #7c2d12;
  white-space: nowrap;
}

.monthly-coverage-summary em {
  flex-basis: 100%;
  color: #92400e;
  font-style: normal;
  line-height: 1.5;
}

.monthly-coverage-note {
  margin: 0 0 8px;
  color: #7c2d12;
}

.monthly-svg-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
  padding: 8px 10px 10px;
}

.monthly-svg {
  display: block;
  max-width: none;
}

.monthly-svg-value {
  font-size: 12px;
  font-weight: 700;
  fill: #0f172a;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 4px;
  stroke-linejoin: round;
}

.monthly-svg-value-in {
  fill: #0f4aa0;
}

.monthly-svg-value-out {
  fill: #4f7f35;
}

.monthly-svg-label {
  font-size: 12px;
  fill: #1f2937;
}

.monthly-svg-warn-label {
  fill: #9a3412;
  font-weight: 700;
}

.upload-progress {
  margin-top: 12px;
  border: 1px solid #94a3b8;
  background: #f8fbff;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-progress.hidden {
  display: none !important;
}

.upload-busy-banner {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin-bottom: 12px;
  border: 2px solid #1f4aa8;
  background: linear-gradient(180deg, #eef4ff 0%, #e6efff 100%);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(31, 74, 168, 0.18);
}

.upload-busy-banner.hidden {
  display: none !important;
}

.upload-busy-title {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: #12316d;
}

.upload-busy-text {
  margin: 0;
  font-size: 13px;
  color: #284378;
}

.upload-progress-title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: #0f285a;
}

.upload-progress-text {
  margin: 0;
  font-size: 13px;
  color: #3a4b68;
}

.global-loading-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 20, 35, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.global-loading-card {
  min-width: 320px;
  max-width: 520px;
  background: #ffffff;
  border: 1px solid #c8d4e6;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 35, 70, 0.25);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.global-loading-title {
  margin: 0 0 4px;
  font-weight: 700;
  color: #10284f;
}

.global-loading-detail {
  margin: 0;
  font-size: 13px;
  color: #4c5d78;
}

.loading-spinner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 3px solid #d7e3f5;
  border-top-color: #1f4aa8;
  animation: spin 0.9s linear infinite;
  flex: 0 0 auto;
}

.loading-spinner.small {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

body.is-busy {
  cursor: progress;
}

.litigation-card {
  margin-bottom: 16px;
}

.litigation-form {
  max-width: 680px;
}

.litigation-empty {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 18px;
  color: var(--muted);
  background: var(--surface);
}

.litigation-result {
  display: grid;
  gap: 14px;
}

.litigation-result-head,
.litigation-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.litigation-result-head > div,
.litigation-metrics > div,
.litigation-identity,
.litigation-summary,
.litigation-provider-meta,
.litigation-case-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.litigation-result-head span,
.litigation-metrics span,
.litigation-identity span,
.litigation-summary span,
.litigation-provider-meta > span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.litigation-result-head strong,
.litigation-metrics strong {
  display: block;
  font-size: 22px;
}

.litigation-result.risk-high .litigation-result-head > div:nth-child(2) strong {
  color: #b91c1c;
}

.litigation-result.risk-medium .litigation-result-head > div:nth-child(2) strong {
  color: #92400e;
}

.litigation-result.risk-none .litigation-result-head > div:nth-child(2) strong {
  color: #166534;
}

.litigation-identity p,
.litigation-summary p {
  margin: 0;
  line-height: 1.6;
}

.litigation-case-list {
  display: grid;
  gap: 10px;
}

.litigation-case-list h4 {
  margin: 0 0 2px;
  font-size: 18px;
}

.litigation-case-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.litigation-case-head > div,
.litigation-case-head small {
  min-width: 0;
}

.litigation-case-head small {
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
  text-align: right;
}

.litigation-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.litigation-detail-grid > div {
  min-width: 0;
  border: 1px solid #e5ecf6;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8fbff;
}

.litigation-detail-grid small,
.litigation-detail-grid strong {
  display: block;
}

.litigation-detail-grid small {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.litigation-detail-grid strong {
  color: #10213b;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.litigation-case-item strong,
.litigation-case-item span,
.litigation-case-item small {
  display: block;
}

.litigation-case-item span {
  margin-top: 4px;
  color: var(--muted);
}

.litigation-case-item small {
  margin-top: 6px;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.bank-login-shell {
  margin: 10px auto 0;
}

.bank-login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid #cbd8ea;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(244,248,255,0.96) 58%, rgba(233,240,250,0.96) 100%);
  box-shadow: 0 18px 42px rgba(20, 35, 59, 0.12);
}

.bank-login-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 420px;
  padding: 28px;
  border: 1px solid #d9e4f3;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(247,250,255,0.96));
}

.bank-login-eyebrow,
.bank-login-form-label {
  margin: 0;
  color: #47607f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.bank-login-copy h2 {
  max-width: 620px;
  margin: 0;
  font-size: 42px;
  line-height: 1.15;
}

.bank-login-lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.bank-login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.bank-login-points span {
  padding: 8px 12px;
  border: 1px solid #cbd8ea;
  border-radius: 999px;
  background: #fff;
  color: #1d3763;
  font-size: 13px;
  font-weight: 800;
}

.bank-login-note {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #d6e1f0;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  background: #f7faff;
  color: #41526a;
  line-height: 1.65;
}

.bank-login-form {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 26px;
  border: 1px solid #cbd8ea;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.bank-login-form h3 {
  margin: 2px 0 0;
  font-size: 28px;
}

.login-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #cbd8ea;
  border-radius: 10px;
  background: #f5f8fd;
}

.login-mode-tab {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #263b5c;
  cursor: pointer;
  font-weight: 900;
  min-height: 46px;
}

.login-mode-tab.active {
  background: #2f4faa;
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 79, 170, 0.22);
}

.login-mode-panel {
  display: grid;
  gap: 12px;
}

.login-mode-panel.hidden {
  display: none !important;
}

.login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
}

.login-code-row .btn {
  min-height: 48px;
}

.login-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.bank-login-form label {
  display: grid;
  gap: 8px;
  color: #263b5c;
  font-weight: 800;
}

.bank-login-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cbd8ea;
  border-radius: 9px;
  background: #fbfdff;
  color: var(--text);
  font: inherit;
}

.bank-login-form input:focus {
  outline: 2px solid rgba(28, 74, 168, 0.18);
  border-color: #7fa4df;
  background: #fff;
}

.bank-login-submit {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}

.bank-login-safe {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .container {
    width: 94vw;
  }

  .page-title {
    font-size: 30px;
  }

  .page-title-row {
    flex-direction: column;
    gap: 8px;
  }

  .page-logout-button {
    margin-top: 0;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 24px;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .bank-login-panel {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .bank-login-copy {
    min-height: unset;
    padding: 18px;
  }

  .bank-login-copy h2 {
    font-size: 30px;
  }

  .bank-login-lead {
    font-size: 15px;
  }

  .bank-login-form {
    padding: 18px;
  }

  .login-code-row,
  .login-mode-tabs {
    grid-template-columns: 1fr;
  }

  .topnav a,
  .topnav-feedback {
    margin-left: 0;
  }

  .membership-top-widget {
    width: 100%;
  }

  .membership-prompt {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .membership-prompt-grid {
    grid-template-columns: 1fr;
  }

  .feedback-fab {
    left: 12px;
    bottom: 12px;
  }

  .feedback-panel {
    left: 12px;
    bottom: 68px;
    width: calc(100vw - 24px);
  }

  .feedback-row {
    grid-template-columns: 1fr;
  }

  .ops-hero {
    flex-direction: column;
  }

  .ops-hero h1 {
    font-size: 26px;
  }

  .ops-actions {
    justify-content: flex-start;
  }

  .ops-updated-at {
    white-space: normal;
  }

  .ops-two-col {
    grid-template-columns: 1fr;
  }

  .ops-today-table {
    min-width: 760px;
  }

  .data-table.compact {
    min-width: 900px;
  }

  .monthly-chart-head {
    justify-content: flex-start;
    gap: 8px 14px;
  }

  .monthly-scroll-hint {
    font-size: 12px;
  }

  .monthly-coverage-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .monthly-coverage-summary span {
    white-space: normal;
  }

  .monthly-svg-wrap {
    padding: 6px 8px 8px;
  }

  .monthly-svg-value {
    font-size: 11px;
    stroke-width: 3px;
  }

  .monthly-svg-label {
    font-size: 11px;
  }

  .cross-verify-alert {
    align-items: flex-start;
    flex-direction: column;
  }

  .cross-verify-alert em {
    white-space: normal;
  }

  .cross-task-list,
  .relationship-insights,
  .value-mining-grid,
  .cross-task-grid,
  .debt-input-grid,
  .debt-facts,
  .report-context-grid {
    grid-template-columns: 1fr;
  }

  .debt-action-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .counterparty-table-wrap {
    overflow-x: auto;
  }

  .counterparty-table {
    min-width: 620px;
  }

  .score-summary-card,
  .score-position-card {
    padding: 12px;
  }

  .score-position-top {
    align-items: flex-start;
  }

  .score-position-top h5 {
    font-size: 16px;
  }

  .score-position-top strong {
    min-width: 42px;
    font-size: 24px;
  }

  .score-summary-insights {
    grid-template-columns: 1fr;
  }

  .score-number-block {
    min-width: 66px;
  }

  .score-scale {
    font-size: 10px;
    grid-template-columns: 1fr 0.45fr 0.45fr 0.45fr 0.45fr 0.9fr;
  }

  .global-loading-card {
    min-width: unset;
    width: 100%;
  }

  .litigation-result-head,
  .litigation-metrics,
  .litigation-detail-grid {
    grid-template-columns: 1fr;
  }

  .litigation-case-head {
    flex-direction: column;
  }

  .litigation-case-head small {
    text-align: left;
  }

  #first-screen-summary.quickview-rich {
    flex-wrap: wrap;
    row-gap: 4px;
  }
}

/* 2026-05-25: final override for ops parse-review tables.
   This must stay at the end of app.css to prevent long fields from being squeezed into vertical columns. */
#ops-dashboard-shell .ops-table-wrap {
  max-width: 100%;
  overflow-x: auto !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table {
  width: 1600px !important;
  min-width: 1600px !important;
  table-layout: fixed !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th,
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td {
  line-height: 1.55 !important;
  vertical-align: top !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(1) {
  width: 220px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(2) {
  width: 380px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(3) {
  width: 90px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(4) {
  width: 120px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(5) {
  width: 210px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(6) {
  width: 230px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7) {
  width: 120px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8) {
  width: 90px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9) {
  width: 140px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact th:nth-child(10),
#ops-dashboard-shell .ops-table-wrap table.data-table.compact td:nth-child(10),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(10),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(10) {
  width: 170px !important;
}

#ops-dashboard-shell .ops-table-wrap table.data-table.compact code,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table code {
  display: inline-block !important;
  max-width: 100% !important;
  white-space: normal !important;
  word-break: break-all !important;
}

#ops-dashboard-shell .ops-file-cell strong {
  display: block !important;
  max-width: 100% !important;
  line-height: 1.45 !important;
  word-break: break-word !important;
}

#ops-dashboard-shell .ops-file-cell small {
  display: block !important;
  max-width: 100% !important;
}

#ops-dashboard-shell .ops-reason-text {
  max-width: none !important;
  white-space: normal !important;
  line-height: 1.55 !important;
}
/* 2026-05-25 EOF override: ops review list uses card rows, not squeezed table columns. */
#ops-dashboard-shell .ops-table-wrap table.data-table.compact:not(.ops-failed-table):not(:has(tbody#failed-body)) {
  width: 100% !important;
  min-width: 900px !important;
  table-layout: auto !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  table-layout: auto !important;
  border: 0 !important;
  background: transparent !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table thead,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) thead {
  display: none !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table tbody,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tbody {
  display: grid !important;
  gap: 12px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table tr,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tr {
  display: grid !important;
  grid-template-columns: 150px 260px 92px 120px minmax(180px, 1fr) 152px !important;
  grid-template-areas:
    "case file status issue metrics updated"
    "reason reason reason action action actions" !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 12px !important;
  border: 1px solid #d7e2f1 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(20, 35, 59, 0.06) !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  border: 1px solid #e4edf8 !important;
  border-radius: 10px !important;
  background: #f8fbff !important;
  padding: 8px 10px !important;
  line-height: 1.5 !important;
  text-align: left !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  vertical-align: top !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td::before {
  display: block;
  margin-bottom: 4px;
  color: #60718b;
  font-size: 12px;
  font-weight: 800;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(1) {
  grid-area: case;
  background: #ffffff !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(1)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(1)::before {
  content: "案件";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(2) {
  grid-area: file;
  background: #ffffff !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(2)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(2)::before {
  content: "文件";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(3) {
  grid-area: status;
  color: #8a3b16 !important;
  font-weight: 800 !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(3)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(3)::before {
  content: "状态";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(4) {
  grid-area: issue;
  color: #8a3b16 !important;
  font-weight: 800 !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(4)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(4)::before {
  content: "问题";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(5) {
  grid-area: reason;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(5)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(5)::before {
  content: "原因说明";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(6) {
  grid-area: action;
  background: #fffaf2 !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(6)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(6)::before {
  content: "建议动作";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(7) {
  grid-area: metrics;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(7)::before {
  content: "有效/总行";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8) {
  grid-area: actions;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8)::before {
  content: "操作";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9) {
  grid-area: updated;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9)::before {
  content: "更新时间";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table code,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) code,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table .ops-file-cell strong,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) .ops-file-cell strong {
  display: -webkit-box !important;
  max-width: 100% !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-height: 1.45 !important;
  word-break: break-word !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table .ops-file-cell small,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) .ops-file-cell small {
  display: block !important;
  margin-top: 2px !important;
  color: #60718b !important;
  font-size: 12px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7) strong,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(7) strong {
  color: #10213b !important;
  font-size: 15px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8) a,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8) button,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8) a,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8) button {
  display: block !important;
  width: 100% !important;
  margin: 4px 0 !important;
  text-align: center !important;
}

@media (max-width: 980px) {
  #ops-dashboard-shell .ops-table-wrap table.ops-failed-table tr,
  #ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tr {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "case"
      "file"
      "status"
      "issue"
      "metrics"
      "reason"
      "action"
      "actions"
      "updated" !important;
  }
}

/* 2026-05-25 EOF override: result screen risk/action cards. */
.review-priority-grid,
.grid-two:has(#top-risks) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
  gap: 14px !important;
}

.priority-review-card,
.risk-action-board,
.panel-inner:has(#top-risks) {
  min-height: 100% !important;
}

.risk-action-board,
.panel-inner:has(#top-risks) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-content: start !important;
  gap: 12px !important;
}

.risk-action-board h4,
.panel-inner:has(#top-risks) h4 {
  margin: 0 !important;
  color: #10213b !important;
}

.risk-action-board h4:nth-of-type(1),
.risk-action-list,
#top-risks {
  grid-column: 1 !important;
}

.risk-action-board h4:nth-of-type(2),
.verification-question-list,
#questions {
  grid-column: 2 !important;
}

.risk-action-list,
.verification-question-list,
#top-risks,
#questions {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 10px !important;
}

.risk-action-list li,
.verification-question-list li,
#top-risks li,
#questions li {
  position: relative !important;
  margin: 0 !important;
  padding: 12px 12px 12px 48px !important;
  border: 1px solid #dbe6f5 !important;
  border-radius: 12px !important;
  background: #f8fbff !important;
  line-height: 1.65 !important;
  color: #14233b !important;
  box-shadow: 0 8px 18px rgba(20, 35, 59, 0.045) !important;
}

.risk-action-list li::before,
#top-risks li::before {
  content: "风险";
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff3e8;
  color: #9a431f;
  font-size: 12px;
  font-weight: 800;
}

.verification-question-list li::before,
#questions li::before {
  content: "补证";
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #edf4ff;
  color: #254aa5;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .review-priority-grid,
  .grid-two:has(#top-risks),
  .risk-action-board,
  .panel-inner:has(#top-risks) {
    grid-template-columns: 1fr !important;
  }

  .risk-action-board h4:nth-of-type(1),
  .risk-action-board h4:nth-of-type(2),
  .risk-action-list,
  .verification-question-list,
  #top-risks,
  #questions {
    grid-column: 1 !important;
  }
}
#__codex_final_eof_20260525 {
  display: none;
}

/* 2026-05-25 true EOF: production ops table maps column 8=time, 9=actions. */
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table tr,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tr {
  grid-template-areas:
    "case file status issue metrics time"
    "reason reason reason action action actions"
    "updated updated updated updated updated updated" !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8) {
  grid-area: time;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8)::before {
  content: "耗时";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9) {
  grid-area: actions;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9)::before {
  content: "操作";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(10),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(10) {
  grid-area: updated;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(10)::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(10)::before {
  content: "更新时间";
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9) a,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9) button,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9) a,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9) button {
  display: block !important;
  width: 100% !important;
  margin: 4px 0 !important;
  text-align: center !important;
}

@media (max-width: 980px) {
  #ops-dashboard-shell .ops-table-wrap table.ops-failed-table tr,
  #ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tr {
    grid-template-areas:
      "case"
      "file"
      "status"
      "issue"
      "metrics"
      "time"
      "reason"
      "action"
      "actions"
      "updated" !important;
  }
}
/* 2026-05-25 ultimate ops review table override. This block must stay at true EOF. */
#ops-dashboard-shell .ops-table-wrap {
  overflow-x: auto !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) {
  display: table !important;
  width: 100% !important;
  min-width: 1240px !important;
  table-layout: fixed !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table thead,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) thead {
  display: table-header-group !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table tbody,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tbody {
  display: table-row-group !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table tr,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tr {
  display: table-row !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td {
  display: table-cell !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 10px 10px !important;
  vertical-align: top !important;
  line-height: 1.48 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  border: 0 !important;
  border-right: 1px solid #dce6f4 !important;
  border-bottom: 1px solid #dce6f4 !important;
  background: #fff !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th {
  background: #f3f7fd !important;
  color: #10213b !important;
  font-weight: 800 !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td::before,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th::before {
  content: none !important;
  display: none !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(1) {
  width: 150px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(2) {
  width: 300px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(3) {
  width: 82px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(4) {
  width: 100px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(5) {
  width: 178px !important;
  color: #253957 !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(6) {
  width: 178px !important;
  color: #253957 !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(7) {
  width: 98px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8) {
  width: 72px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(9),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9) {
  width: 108px !important;
  text-align: center !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(10),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(10),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(10),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(10) {
  width: 126px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(1) code,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(2) strong,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(1) code,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(2) strong {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(2) small,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(2) small {
  display: block !important;
  margin-top: 3px !important;
  color: #60718b !important;
  font-size: 12px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7) strong,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(7) strong {
  display: block !important;
  color: #10213b !important;
  font-size: 14px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7) small,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(7) small {
  display: block !important;
  margin-top: 3px !important;
  color: #60718b !important;
  font-size: 12px !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9) a,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(9) button,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(10) a,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(10) button,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9) a,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(9) button,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(10) a,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(10) button {
  display: block !important;
  width: 100% !important;
  margin: 4px 0 !important;
  padding: 8px 8px !important;
  text-align: center !important;
}

/* 2026-05-25 true EOF synced override: compact ops review list + risk action cards. */
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) {
  display: table !important;
  width: 100% !important;
  min-width: 1180px !important;
  table-layout: fixed !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table thead,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) thead {
  display: table-header-group !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table tbody,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tbody {
  display: table-row-group !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table tr,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) tr {
  display: table-row !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td {
  display: table-cell !important;
  padding: 12px 10px !important;
  line-height: 1.45 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  vertical-align: top !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td::before,
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td::before,
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th::before {
  content: none !important;
  display: none !important;
}

#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(1),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(1) { width: 150px !important; }
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(2),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(2) { width: 250px !important; }
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(3),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(3) { width: 140px !important; text-align: left !important; }
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(4),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(4) { width: 315px !important; }
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(5),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(5) { width: 105px !important; text-align: center !important; }
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(6),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(6) { width: 70px !important; text-align: center !important; }
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(7),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(7) { width: 80px !important; text-align: center !important; }
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table th:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table.ops-failed-table td:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) th:nth-child(8),
#ops-dashboard-shell .ops-table-wrap table:has(tbody#failed-body) td:nth-child(8) { width: 130px !important; }

#ops-dashboard-shell .ops-status-pill,
#ops-dashboard-shell .ops-ocr-badge {
  display: inline-flex !important;
  width: fit-content !important;
  margin: 0 0 6px !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

#ops-dashboard-shell .ops-status-pill {
  background: #edf4ff !important;
  border: 1px solid #c9dcff !important;
  color: #234b8f !important;
}

#ops-dashboard-shell .ops-ocr-badge {
  background: #fff7e8 !important;
  border: 1px solid #f2c983 !important;
  color: #9a431f !important;
}

#ops-dashboard-shell .ops-status-issue-cell strong {
  display: block !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

#ops-dashboard-shell .ops-reason-action-cell p {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 8px !important;
  margin: 0 0 8px !important;
}

#ops-dashboard-shell .ops-reason-action-cell p:last-child { margin-bottom: 0 !important; }

#ops-dashboard-shell .ops-reason-action-cell p span {
  color: #6a7890 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

#ops-dashboard-shell .ops-review-actions {
  display: grid !important;
  gap: 6px !important;
}

#ops-dashboard-shell .ops-review-actions .ops-download-link {
  margin: 0 !important;
  padding: 7px 8px !important;
}

.review-priority-grid,
.grid-two.review-priority-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
}

.risk-action-board {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
  grid-template-rows: auto 1fr !important;
  gap: 12px 16px !important;
}

.risk-action-board h4 { margin: 0 !important; }
.risk-action-board h4:nth-of-type(1), .risk-action-list { grid-column: 1 !important; }
.risk-action-board h4:nth-of-type(2), .verification-question-list { grid-column: 2 !important; }

.risk-action-list,
.verification-question-list {
  display: grid !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.risk-action-item,
.verification-question-item {
  border: 1px solid #d8e3f2 !important;
  border-radius: 8px !important;
  background: #f8fbff !important;
  padding: 12px !important;
}

.risk-action-item-head,
.risk-action-next,
.verification-question-item {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
}

.risk-action-item-head span,
.verification-question-item span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px !important;
  height: 24px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: #2f55aa !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.risk-action-item-head strong,
.verification-question-item strong {
  color: #10213b !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.risk-action-item p {
  margin: 8px 0 10px 36px !important;
  color: #50617a !important;
  line-height: 1.55 !important;
}

.risk-action-next {
  margin-left: 36px !important;
  padding-top: 10px !important;
  border-top: 1px dashed #cfdaea !important;
}

.risk-action-next span {
  color: #8a3b16 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.risk-action-next strong {
  color: #7a2e13 !important;
  line-height: 1.55 !important;
}

@media (max-width: 980px) {
  .review-priority-grid,
  .grid-two.review-priority-grid,
  .risk-action-board {
    grid-template-columns: 1fr !important;
  }

  .risk-action-board h4:nth-of-type(1),
  .risk-action-board h4:nth-of-type(2),
  .risk-action-list,
  .verification-question-list {
    grid-column: 1 !important;
  }
}

/* 2026-05-26 actual EOF override: compact risk/action board without large blank lanes. */
.review-priority-stack {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 14px !important;
}

.review-priority-stack > .priority-review-card,
.review-priority-stack > .risk-action-board {
  width: 100% !important;
  max-width: none !important;
}

.review-priority-stack > .risk-action-board {
  display: grid !important;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr) !important;
  grid-template-rows: auto !important;
  align-items: start !important;
  align-content: start !important;
  gap: 14px !important;
  padding: 14px !important;
}

.review-priority-stack .risk-action-column {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 10px !important;
  min-width: 0 !important;
  align-self: start !important;
}

.review-priority-stack .risk-action-column-head {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 28px !important;
  margin: 0 !important;
}

.review-priority-stack .risk-action-column-head span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  height: 24px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: #eef4ff !important;
  color: #254aa5 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.review-priority-stack .risk-action-column:first-child .risk-action-column-head span {
  background: #fff3e8 !important;
  color: #9a431c !important;
}

.review-priority-stack .risk-action-column-head h4 {
  margin: 0 !important;
  color: #10213b !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.review-priority-stack .risk-action-column .risk-action-list,
.review-priority-stack .risk-action-column #top-risks {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.review-priority-stack .risk-action-column .verification-question-list,
.review-priority-stack .risk-action-column #questions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  align-content: start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.review-priority-stack .risk-action-column .risk-action-list,
.review-priority-stack .risk-action-column .verification-question-list,
.review-priority-stack .risk-action-column #top-risks,
.review-priority-stack .risk-action-column #questions {
  grid-column: auto !important;
}

.review-priority-stack .risk-action-column .risk-action-list li,
.review-priority-stack .risk-action-column .verification-question-list li,
.review-priority-stack .risk-action-column #top-risks li,
.review-priority-stack .risk-action-column #questions li {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid #d8e3f2 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(28, 59, 117, 0.05) !important;
  line-height: 1.55 !important;
}

.review-priority-stack .risk-action-column .risk-action-list li::before,
.review-priority-stack .risk-action-column .verification-question-list li::before,
.review-priority-stack .risk-action-column #top-risks li::before,
.review-priority-stack .risk-action-column #questions li::before {
  content: none !important;
  display: none !important;
}

.review-priority-stack .risk-action-column .risk-action-item-head,
.review-priority-stack .risk-action-column .risk-action-next,
.review-priority-stack .risk-action-column .verification-question-item {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: start !important;
}

.review-priority-stack .risk-action-column .verification-question-item {
  min-height: 72px !important;
  align-items: center !important;
}

.review-priority-stack .risk-action-column .risk-action-item-head span,
.review-priority-stack .risk-action-column .verification-question-item span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px !important;
  height: 24px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: #2f55aa !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.review-priority-stack .risk-action-column .risk-action-item-head strong,
.review-priority-stack .risk-action-column .verification-question-item strong {
  color: #10213b !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere !important;
}

.review-priority-stack .risk-action-column .risk-action-item p {
  margin: 8px 0 10px 36px !important;
  color: #50617a !important;
  line-height: 1.55 !important;
}

.review-priority-stack .risk-action-column .risk-action-next {
  margin-left: 36px !important;
  padding-top: 10px !important;
  border-top: 1px dashed #cfdaea !important;
}

.review-priority-stack .risk-action-column .risk-action-next span {
  color: #8a3b16 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.review-priority-stack .risk-action-column .risk-action-next strong {
  color: #7a2e13 !important;
  line-height: 1.5 !important;
}

@media (max-width: 1180px) {
  .review-priority-stack > .risk-action-board {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .review-priority-stack .risk-action-column .verification-question-list,
  .review-priority-stack .risk-action-column #questions {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .review-priority-stack .risk-action-column .verification-question-list,
  .review-priority-stack .risk-action-column #questions {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
