@charset "UTF-8";

/* Full-flow simulation library. Loaded after government.css; scoped to new components. */
.flow-library {
  min-width: 0;
  max-width: 100%;
  margin: 0 0 28px;
  color: var(--gov-text, #24364b);
  font-size: 18px;
  line-height: 1.75;
}
.flow-library *, .flow-library *::before, .flow-library *::after { box-sizing: border-box; }
.flow-library h2 { margin: 0 0 10px; font-size: 25px; line-height: 1.55; color: var(--gov-blue-dark, #103f72); }
.flow-library h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.6; color: #244b71; }
.flow-library p { margin: 8px 0 14px; overflow-wrap: anywhere; }
.flow-library small { font-size: 15px; line-height: 1.7; }
.flow-library button, .flow-run-panel button, .flow-document-actions button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 17px;
  line-height: 1.45;
}
.flow-library button:focus-visible, .flow-library select:focus-visible,
.flow-library input:focus-visible, .flow-document-actions button:focus-visible {
  outline: 3px solid #4b91d4;
  outline-offset: 3px;
}
.flow-library button:disabled { cursor: not-allowed; opacity: .5; }
.flow-library .btn { min-height: 44px; font-size: 17px; }
.flow-library .btn.small { min-height: 44px; font-size: 16px; padding: 9px 13px; }
.flow-library .badge { font-size: 15px; white-space: normal; line-height: 1.55; }

.flow-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.flow-summary > * {
  min-width: 0;
  padding: 19px 22px;
  border: 1px solid #d6e0eb;
  border-top: 3px solid #5284b2;
  border-radius: 4px;
  background: #f8fbff;
}
.flow-summary strong { display: block; font-size: 32px; line-height: 1.35; font-weight: 700; color: #103f72; }
.flow-summary span, .flow-summary p { display: block; font-size: 16px; color: #5c6f85; margin: 6px 0 0; }
.flow-summary small { display: block; margin-top: 5px; color: #63748a; font-size: 15px; }
.flow-summary .warn strong { color: #95641c; }
.flow-summary .bad strong { color: #aa3438; }

.flow-filter {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px 18px;
  min-width: 0;
  padding: 18px 20px;
  border: 1px solid #d6e0eb;
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  background: #f6f9fd;
}
.flow-filter > * { min-width: 0; max-width: 100%; }
.flow-filter label { display: flex; flex-direction: column; gap: 7px; flex: 1 1 165px; font-size: 16px; color: #526a83; }
.flow-filter input, .flow-filter select {
  width: 100%; min-width: 0; min-height: 46px;
  border: 1px solid #bfcddd; border-radius: 4px;
  background: #fff; color: #24364b; font-size: 17px; padding: 9px 11px;
}
.flow-filter input[type="search"] { flex: 2 1 260px; }
.flow-filter .actions { flex: 0 1 auto; gap: 10px; flex-wrap: wrap; }
.flow-filter > span, .flow-filter > p { margin: 0; color: #63748a; font-size: 16px; }

.flow-catalog-table {
  width: 100%; min-width: 0; max-width: 100%;
  max-height: 800px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border: 1px solid #d6e0eb;
  border-radius: 0 0 4px 4px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.flow-catalog-table table { width: 100%; min-width: 1090px; table-layout: auto; border-collapse: collapse; font-size: 17px; line-height: 1.7; }
.flow-catalog-table thead { position: sticky; top: 0; z-index: 3; background: #edf3fa; color: #345778; font-size: 16px; }
.flow-catalog-table th { padding: 15px 17px; border-bottom: 1px solid #ccdbea; font-weight: 650; white-space: nowrap; }
.flow-catalog-table td { padding: 18px 17px; border-bottom: 1px solid #e0e7f0; vertical-align: middle; }
.flow-catalog-table tbody tr:nth-child(even) { background: #fafcff; }
.flow-catalog-table tbody tr:hover { background: #f0f6fd; }
.flow-catalog-table tr.active, .flow-catalog-table tr[aria-current="true"] { background: #e9f2fd; }
.flow-catalog-table tr.active td:first-child { box-shadow: inset 4px 0 #15599a; }
.flow-catalog-table th:first-child, .flow-catalog-table td:first-child { width: 76px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.flow-catalog-table th:nth-child(2), .flow-catalog-table td:nth-child(2) { min-width: 280px; max-width: 390px; overflow-wrap: anywhere; }
.flow-catalog-table th:nth-child(3), .flow-catalog-table td:nth-child(3) { min-width: 195px; max-width: 280px; }
.flow-catalog-table th:nth-child(4), .flow-catalog-table td:nth-child(4) { min-width: 110px; }
.flow-catalog-table th:nth-child(5), .flow-catalog-table td:nth-child(5) { min-width: 90px; text-align: center; }
.flow-catalog-table th:last-child, .flow-catalog-table td:last-child { min-width: 185px; }
.flow-catalog-table td strong { display: block; margin-bottom: 4px; color: #244b71; font-size: 18px; font-weight: 650; line-height: 1.65; }
.flow-catalog-table td small { display: block; margin-top: 4px; font-size: 15px; color: #63748a; line-height: 1.65; }
.flow-catalog-table .actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.flow-catalog-table button { white-space: nowrap; }

.flow-run-panel {
  min-width: 0; max-width: 100%;
  margin: 22px 0;
  padding: 24px;
  border: 1px solid #c9dbed;
  border-left: 4px solid #15599a;
  border-radius: 4px;
  background: #f6faff;
  font-size: 18px;
  line-height: 1.8;
}
.flow-run-panel > * { min-width: 0; max-width: 100%; }
.flow-run-panel h2, .flow-run-panel h3 { margin-top: 0; color: #103f72; line-height: 1.6; }
.flow-run-panel h3 { font-size: 22px; }
.flow-run-panel p { margin: 8px 0 14px; overflow-wrap: anywhere; }
.flow-run-panel .actions { flex-wrap: wrap; gap: 12px; }
.flow-run-panel .hint, .flow-run-panel .gov-hint { margin: 14px 0 0; }
.flow-run-panel dl { display: grid; grid-template-columns: minmax(100px, auto) minmax(0, 1fr); gap: 8px 18px; margin: 14px 0; }
.flow-run-panel dt { color: #63748a; font-size: 16px; }
.flow-run-panel dd { margin: 0; overflow-wrap: anywhere; }

.flow-progress { display: flex; flex-wrap: wrap; gap: 10px 14px; list-style: none; margin: 18px 0; padding: 0; font-size: 16px; line-height: 1.7; }
.flow-progress > * { min-width: 0; padding: 8px 13px; border: 1px solid #cfdae8; border-radius: 4px; color: #667a91; background: #fff; }
.flow-progress .is-complete, .flow-progress .done { color: #2e6e58; background: #eff8f3; border-color: #c7e2d4; }
.flow-progress .is-current, .flow-progress .current { color: #15599a; background: #eaf3ff; border-color: #9cbde0; font-weight: 650; }
.flow-progress .is-error, .flow-progress .fail { color: #aa3438; background: #fff3f2; border-color: #e6c6c4; }

.flow-output-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; min-width: 0; margin: 20px 0; align-items: stretch; }
.flow-output-card { display: flex; flex-direction: column; min-width: 0; max-width: 100%; padding: 22px; border: 1px solid #d2deeb; border-radius: 4px; background: #fff; font-size: 17px; line-height: 1.8; }
.flow-output-card.active, .flow-output-card.selected { border: 2px solid #2f6ea8; padding: 21px; background: #f5f9ff; }
.flow-output-card h3, .flow-output-card h4 { margin: 0 0 11px; font-size: 20px; line-height: 1.65; color: #244b71; overflow-wrap: anywhere; }
.flow-output-card p { margin: 6px 0 11px; color: #5d7188; font-size: 16px; overflow-wrap: anywhere; }
.flow-output-card small { font-size: 15px; color: #63748a; overflow-wrap: anywhere; }
.flow-output-card dl { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 5px 9px; font-size: 16px; margin: 9px 0 15px; }
.flow-output-card dt { color: #718298; }
.flow-output-card dd { margin: 0; overflow-wrap: anywhere; }
.flow-output-card .actions, .flow-output-card .flow-document-actions { margin-top: auto; padding-top: 15px; }
.flow-output-card .badge { align-self: flex-start; margin: 0 0 9px; }
.flow-output-card.ready { border-top: 3px solid #3a7d67; }
.flow-output-card.pending { border-top: 3px solid #ac823a; }
.flow-output-card code { font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.flow-document-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px; min-width: 0; max-width: 100%; margin: 14px 0; font-size: 16px; }
.flow-document-actions > * { max-width: 100%; }
.flow-document-actions p, .flow-document-actions small { margin: 0; color: #63748a; font-size: 15px; }

.flow-paper, .gov-app .flow-paper {
  min-width: 0; max-width: 100%; width: 100%;
  margin: 18px auto; padding: 44px 48px;
  border: 1px solid #d6e0eb; border-radius: 0;
  background: #fff; color: #111;
  box-shadow: 0 3px 14px #173b5e0a;
  font-family: "FangSong", "仿宋", "SimSun", serif;
  font-size: 16pt; line-height: 28pt;
}
.flow-paper p, .gov-app .flow-paper p { margin: 0; font-size: 16pt; line-height: 28pt; overflow-wrap: anywhere; text-align: justify; text-indent: 2em; }
.flow-paper .template-paragraph, .gov-app .flow-paper .template-paragraph { font-size: 16pt; line-height: 28pt; white-space: pre-wrap; margin: 0; }
.flow-paper h1, .gov-app .flow-paper h1 { margin: 0 0 24px; color: #000; font-size: 22pt; line-height: 1.6; text-align: center; }
.flow-paper h2, .flow-paper h3, .gov-app .flow-paper h2, .gov-app .flow-paper h3 { color: #000; font-size: 16pt; line-height: 28pt; break-after: avoid; }
.flow-paper .recipient, .flow-paper .notice, .flow-paper .simulation { text-indent: 0; }
.flow-paper .simulation { font-family: "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.7; color: #63748a; margin-bottom: 20px; }
.flow-paper .sign { text-align: right; text-indent: 0; }
.flow-paper > * { max-width: 100%; }
.flow-doc-table { display: block; width: 100%; max-width: 100%; min-width: 0; margin: 16px 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.flow-doc-table table, .flow-paper .flow-doc-table table { min-width: 760px; width: 100%; border-collapse: collapse; table-layout: auto; color: #111; font-family: "FangSong", "仿宋", "SimSun", serif; font-size: 16pt; line-height: 1.6; }
.flow-doc-table th, .flow-doc-table td, .flow-paper .flow-doc-table th, .flow-paper .flow-doc-table td { border: 1px solid #8090a0; padding: 10px 12px; vertical-align: middle; color: #111; overflow-wrap: anywhere; font-size: inherit; white-space: normal; }
.flow-doc-table th { background: #f5f7fa; font-weight: 600; }
.flow-doc-table p, .gov-app .flow-doc-table p { font-size: inherit; line-height: inherit; text-indent: 0; margin: 0; }

@media (max-width: 1150px) {
  .flow-output-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-summary > * { padding: 18px; }
  .flow-paper, .gov-app .flow-paper { padding: 35px 30px; }
}
@media (max-width: 760px) {
  .flow-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .flow-summary > * { padding: 17px 16px; }
  .flow-summary strong { font-size: 29px; }
  .flow-filter { padding: 16px; gap: 13px; }
  .flow-filter label { flex-basis: 145px; }
  .flow-filter .actions { width: 100%; }
  .flow-catalog-table { max-height: 660px; }
  .flow-output-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .flow-output-card { padding: 19px; }
  .flow-output-card.active, .flow-output-card.selected { padding: 18px; }
  .flow-run-panel { padding: 20px 17px; }
  .flow-run-panel dl { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .flow-run-panel dd { margin-bottom: 8px; }
  .flow-paper, .gov-app .flow-paper { padding: 27px 22px; }
}
@media (max-width: 480px) {
  .flow-library h2 { font-size: 23px; }
  .flow-summary { gap: 10px; margin: 16px 0; }
  .flow-summary > * { padding: 16px 12px; }
  .flow-summary strong { font-size: 28px; }
  .flow-summary span, .flow-summary p { font-size: 16px; }
  .flow-filter { padding: 15px 12px; }
  .flow-filter label { flex-basis: 100%; }
  .flow-filter input[type="search"] { flex-basis: 100%; }
  .flow-run-panel { padding: 18px 14px; }
  .flow-run-panel h3 { font-size: 21px; }
  .flow-progress { gap: 8px; }
  .flow-progress > * { padding: 7px 10px; font-size: 15px; }
  .flow-output-card { padding: 18px 16px; }
  .flow-output-card.active, .flow-output-card.selected { padding: 17px 15px; }
  .flow-output-card h3, .flow-output-card h4 { font-size: 20px; }
  .flow-document-actions { gap: 9px; }
  .flow-document-actions .btn { flex: 1 1 auto; }
  .flow-paper, .gov-app .flow-paper { padding: 24px 17px; }
}
@media print {
  .flow-library, .flow-run-panel, .flow-filter, .flow-summary,
  .flow-output-grid, .flow-document-actions, .flow-progress { display: none !important; }
  .flow-paper, .gov-app .flow-paper { width: 100%; margin: 0; padding: 0; border: 0; box-shadow: none; background: #fff; font-size: 16pt; }
  .flow-paper p { orphans: 2; widows: 2; }
  .flow-doc-table { overflow: visible; }
  .flow-doc-table table { min-width: 0; }
}

@media(min-width:1001px){.flow-summary-scoped{grid-template-columns:repeat(3,minmax(0,1fr))}}
