.tma-inline { --tma-ink:#1f2329; --tma-muted:#646a73; --tma-border:#e5e6eb; --tma-blue:#4e83fd; color:var(--tma-ink); font-family:inherit; font-size:12px; min-width:0; }
.tma-inline *, .tma-btn { box-sizing: border-box; }
.tma-inline [hidden] { display: none !important; }
#mainModal { width: min(1680px,96vw);max-width:96vw;height:94vh;max-height:94vh;display:flex;flex-direction:column; }
#mainModal .detail-summary { flex-shrink:0; }
.afs-work-tabs { display:flex;gap:8px;padding:10px 20px;border-bottom:1px solid #e5e6eb;flex-shrink:0; }
.afs-work-tabs button[aria-selected="true"] { color:#245fa8;background:#edf4ff;border-color:#a9c5ed; }
#mainModal > .afs-next-step { margin:8px 20px;flex-shrink:0; }
#mainModal .detail-grid.afs-four-tabs { display:block;min-height:0;overflow-y:auto;max-height:none;flex:1;padding:12px 20px 20px; }
.afs-four-tabs > .card { width:100%;min-height:100%; }
.afs-four-tabs #baseInfo { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 20px; }
.afs-four-tabs #baseInfo > section,.afs-four-tabs #baseInfo > details,.afs-four-tabs #baseInfo > form { grid-column:1/-1; }
.afs-product-table { width:100%;border-collapse:collapse; }
.afs-product-table th,.afs-product-table td { padding:10px;border-bottom:1px solid #e5e6eb;vertical-align:top;text-align:left;overflow-wrap:anywhere; }
.afs-product-table th { background:#f5f7fa;font-size:12px; }
.afs-platform-progress { display:grid;grid-template-columns:1fr 1fr;gap:16px; }
.afs-platform-actions { display:flex;gap:10px;flex-wrap:wrap;margin-top:14px; }
.afs-final-preview { border:1px solid #b8cdef;background:#f8fbff;padding:16px;border-radius:6px; }
.afs-history-records { margin-top:16px; }
@media (max-width:1024px) { .afs-four-tabs #baseInfo { grid-template-columns:repeat(2,minmax(0,1fr)); }.afs-platform-progress { grid-template-columns:1fr; } }
#mainModal [hidden] { display: none !important; }
.afs-process-tabs, .afs-platform-steps { display:flex;flex-wrap:wrap;gap:5px;margin:10px 0; }
.afs-process-tabs [aria-selected="true"],.afs-platform-steps [aria-selected="true"] { color:#2862b2;border-color:#9ebdea;background:#edf4ff; }
.afs-next-step { padding:9px 10px;border:1px solid #dce7f7;border-radius:5px;color:#315a8e;background:#f3f7fd;font-size:12px;line-height:1.6; }
.afs-platform-steps .tma-btn { min-height:28px;padding:4px 7px;font-size:11px; }
.afs-product-item { padding:9px 0;border-top:1px solid #e5e6eb; }
.afs-product-item .tma-base-item { margin:0 0 7px; }
.afs-technical-record { margin:9px 0;color:#646a73;font-size:11px;line-height:1.6; }
.afs-technical-record summary { cursor:pointer; }
.afs-warning { color:#9b6c17; }
.afs-money-pending { color:#c47b13;font-weight:600; }
.afs-money-line,.afs-goods-line { line-height:1.6; }
.afs-latest-message { max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.afs-task-capsule { display:block;border:1px solid #ead3a2;border-radius:3px;background:#fff8eb;color:#996b18;font:inherit;font-size:10px;line-height:1.5;margin:4px 0;padding:2px 4px;cursor:pointer; }
#mainTable { table-layout:fixed;min-width:1390px;width:100%; }
#mainTable th { min-width:0;text-align:left; }
#mainTable th:nth-child(1) { width:16%;min-width:190px; }
#mainTable th:nth-child(2) { width:12%;min-width:150px; }
#mainTable th:nth-child(3) { width:11%;min-width:135px; }
#mainTable th:nth-child(4) { width:12%;min-width:135px; }
#mainTable th:nth-child(5) { width:10%;min-width:135px; }
#mainTable th:nth-child(6) { width:12%;min-width:150px; }
#mainTable th:nth-child(7) { width:10%;min-width:125px; }
#mainTable th:nth-child(8) { width:12%;min-width:150px; }
#mainTable th:nth-child(9) { width:5%;min-width:85px; }
#mainTable td { overflow-wrap:anywhere;vertical-align:top; }
.tma-inline h2, .tma-inline h3, .tma-inline p, .tma-inline dl, .tma-inline dd { margin: 0; }
.tma-inline h2 { font-size: 18px; line-height: 1.5; font-weight: 650; }
.tma-inline h3 { font-size: 14px; line-height: 1.5; font-weight: 650; }
.tma-inline p { line-height: 1.6; overflow-wrap: anywhere; }
.tma-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tma-btn { display: inline-flex; justify-content: center; align-items: center; gap: 5px; min-height: 32px; padding: 6px 12px; border: 1px solid #cfd9e3; border-radius: 5px; color: #35475b; background: #fff; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; }
.tma-btn:hover:not(:disabled) { background: #edf3fa; border-color: #9cb2ca; }
.tma-btn:focus-visible, .tma-input:focus-visible, .tma-case:focus-visible { outline: 2px solid #5b8dbb; outline-offset: 2px; }
.tma-btn:disabled { cursor: not-allowed; opacity: .45; }
.tma-btn.tma-primary { background: #38669b; border-color: #38669b; color: #fff; }
.tma-btn.tma-primary:hover:not(:disabled) { background: #2c5888; border-color: #2c5888; }
.tma-banner { display: flex; gap: 12px; align-items: center; padding: 11px 22px; color: #785d1a; background: #fff6df; border-bottom: 1px solid #eadbb7; font-size: 12px; line-height: 1.6; }
.tma-banner strong { flex: 0 0 auto; background: #f2e6c7; border-radius: 4px; padding: 2px 7px; font-size: 12px; }
.tma-banner.tma-test-banner { background: #eaf3fc; border-bottom-color: #cadced; color: #365f85; }
.tma-banner.tma-test-banner strong { background: #d5e5f5; }
.tma-readonly-note { padding: 9px 22px; background: #edf2f8; border-bottom: 1px solid #dce5ef; color: #536b84; font-size: 12px; }
.tma-message { padding: 10px 22px; border-bottom: 1px solid var(--tma-border); line-height: 1.5; flex: 0 0 auto; }
.tma-message.tma-red { color: #9b3b35; background: #fcf0ee; }
.tma-message.tma-green { color: #32654c; background: #eff7f1; }
.tma-message.tma-amber { color: #806626; background: #fff8e8; }
.tma-message.tma-neutral { color: #536b84; background: #f1f5f9; }
.tma-badge { display: inline-flex; flex: 0 0 auto; align-items: center; font-size: 11px; font-weight: 500; padding: 3px 7px; border-radius: 4px; background: #edf1f5; color: #607080; white-space: nowrap; line-height: 1.35; }
.tma-badge.tma-green { color: #3a6c55; background: #e9f2ed; }
.tma-badge.tma-amber { color: #8b6a23; background: #f7efd9; }
.tma-badge.tma-red { color: #a04d48; background: #f9e9e6; }
.tma-detail { min-width:0; padding:0; overflow:visible; }
.tma-detail-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.tma-detail-top h2 { font-size: 17px; margin-bottom: 5px; overflow-wrap: anywhere; }
.tma-muted { color: var(--tma-muted); font-weight: 400; }
.tma-small { font-size: 11px; }
.tma-mono { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tma-metadata { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 14px 0 !important; }
.tma-kv { display: flex; gap: 9px; align-items: baseline; font-size: 12px; }
.tma-kv dt { color: #788593; }
.tma-kv dd { color: #3c4d5c; overflow-wrap: anywhere; }
.tma-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 17px 0; gap: 8px; }
.tma-step { position: relative; border: 1px solid var(--tma-border); background: #fff; border-radius: 6px; padding: 12px 10px 12px 39px; display: flex; gap: 7px; align-items: flex-start; flex-direction: column; font-size: 11px; }
.tma-step strong { font-size: 12px; }
.tma-step-number { position: absolute; left: 11px; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: #edf2f7; color: #5c7892; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.tma-card { background: #fff; border: 1px solid var(--tma-border); border-radius: 7px; padding: 16px 18px; margin-top: 14px; }
.tma-card-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 13px; margin-bottom: 13px; }
.tma-card-heading .tma-muted { font-size: 11px; }
.tma-table-scroll { max-width: 100%; overflow: auto; margin: 12px 0; }
.tma-table-wrap { max-width:100%;overflow-x:auto;margin:12px 0; }
.tma-table { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; }
.tma-table th { color: #6c7b89; font-weight: 500; background: #f4f6f8; padding: 10px 9px; border-bottom: 1px solid var(--tma-border); font-size: 11px; white-space: nowrap; }
.tma-table td { padding: 12px 9px; border-bottom: 1px solid #ebeff3; vertical-align: top; line-height: 1.55; min-width: 78px; overflow-wrap: anywhere; }
.tma-table tr:last-child td { border-bottom: 0; }
.tma-tracking { font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.tma-tracking:last-child { margin-bottom: 0; }
.tma-hint { color: #8a713e; font-size: 11px; background: #fbf8f0; padding: 9px 11px; border-radius: 4px; margin: 10px 0 !important; line-height: 1.7; }
.tma-callout { border: 1px solid #eadbb7; background: #fff8e8; color: #806626; padding: 11px 13px; border-radius: 5px; margin: 12px 0; line-height: 1.7; }
.tma-form { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tma-form > .tma-field, .tma-form > .tma-table-scroll, .tma-form > .tma-hint { width: 100%; }
.tma-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tma-field-label { color: #677785; font-size: 11px; font-weight: 500; }
.tma-checkbox-label { display: flex; align-items: center; gap: 7px; color: #61717f; font-size: 12px; cursor: pointer; }
.tma-checkbox-label input { width: 14px; height: 14px; margin: 0; accent-color: #38669b; }
.tma-input { display: block; width: 100%; max-width: 100%; min-height: 33px; border: 1px solid #d5dde5; color: #37485a; border-radius: 4px; background: #fff; padding: 7px 9px; font: inherit; font-size: 12px; line-height: 1.5; }
.tma-input:disabled { background: #f4f6f8; color: #929ca7; cursor: not-allowed; }
.tma-input::placeholder { color: #a1abb6; }
.tma-inline textarea.tma-input { resize: vertical; min-height: 56px; }
.tma-return-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.tma-return-fields > .tma-field:last-child { grid-column: 1 / -1; }
.tma-review-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 5px 0 13px; }
.tma-review-summary p { width: 100%; font-size: 12px; color: #607080; }
.tma-simulation { border-top: 1px dashed #dce3ea; margin-top: 16px; padding-top: 13px; }
.tma-simulation > .tma-row { margin-bottom: 10px; font-size: 12px; }
.tma-simulation > p { font-size: 11px; }
.tma-simulation-form { display: flex; align-items: center; gap: 10px; }
.tma-simulation-form select { max-width: 240px; }
.tma-test-communication { border-top: 1px dashed #cddcea; margin-top: 16px; padding-top: 13px; }
.tma-test-communication > .tma-row { margin-bottom: 10px; font-size: 12px; }
.tma-test-communication > p { margin-bottom: 10px; font-size: 12px; }
.tma-final-confirm { padding: 12px; border: 1px solid #cad8e8; border-radius: 5px; background: #f5f8fc; }
.tma-final-confirm .tma-checkbox-label { align-items: flex-start; line-height: 1.8; }
.tma-final-confirm .tma-checkbox-label input { flex: 0 0 auto; margin-top: 4px; }
.tma-btn.tma-test-send { background: #365f85; color: #fff; border-color: #365f85; white-space: normal; text-align: left; }
.tma-btn.tma-test-send:hover:not(:disabled) { background: #294d6e; border-color: #294d6e; }
.tma-final-preview td:first-child { min-width: 130px; }
.tma-inspection-table td:first-child { min-width: 130px; }
.tma-inspection-table .tma-qty { min-width: 67px; width: 75px; }
.tma-inspection-table td:nth-last-child(2) { min-width: 160px; }
.tma-inspection-table td:last-child { min-width: 145px; }
.tma-missing-fields { border: 1px solid #e5dbc4; background: #fdfbf6; border-radius: 5px; padding: 13px; margin-top: 13px; }
.tma-missing-fields > strong { font-size: 12px; color: #79643b; }
.tma-missing-fields .tma-hint { padding-left: 0; padding-right: 0; background: transparent; }
.tma-missing-table td { background: #fff; }
.tma-missing-table .tma-missing-qty { min-width: 105px; width: 130px; }
.tma-history-item { border-bottom: 1px solid #edf0f4; padding: 11px 0; }
.tma-history-item:last-child { border-bottom: 0; }
.tma-history-item p { margin-top: 5px; }
.tma-audit { margin-top: 10px; }
.tma-audit summary { color: #58738d; cursor: pointer; font-size: 12px; padding: 6px 0; }
.tma-empty { color: #8b97a4; font-size: 12px; line-height: 1.8; padding: 25px 12px; text-align: center; }
.tma-detail-empty { min-height: 220px; display: flex; align-items: center; justify-content: center; }
#tianmaInlineHost[hidden], #legacyProcessFields[hidden] { display:none !important; }
.tma-inline-toolbar { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:10px; }
.tma-inline .tma-banner { display:block; padding:10px; border:1px solid #e5e6eb; border-radius:6px; margin-bottom:12px; }
.tma-inline .tma-banner strong { display:inline-block; margin-right:6px; }
.tma-inline .tma-metadata { margin:12px 0; gap:8px; }
.tma-inline .tma-metadata > .tma-kv:last-child { display:none; }
.tma-inline .tma-card { margin-top:12px; padding:12px 10px; box-shadow:none; background:#fff; }
.tma-inline .tma-card h3 { font-size:13px; font-weight:500; }
.tma-inline .tma-card-heading { flex-direction:column; align-items:flex-start; gap:5px; }
.tma-inline .tma-readonly-note, .tma-inline .tma-message { padding:9px; border-radius:5px; margin:8px 0; }
.tma-inline .tma-btn { border-radius:4px; }
.tma-table-secondary { font-size:11px; color:#646a73; margin-top:4px; overflow-wrap:anywhere; }
.tma-managed-row td { overflow-wrap:anywhere; max-width:220px; }
.tma-managed-row .badge { margin-top:5px; }
.tma-base-item { margin-bottom:12px; }
.tma-base-value { font-size:12px; color:#1f2329; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
.tma-local-fields { display:flex; flex-direction:column; gap:9px; border-top:1px solid #e5e6eb; padding-top:12px; margin-top:14px; }
.tma-local-fields input, .tma-local-fields textarea { width:100%; min-width:0; font:inherit; border:1px solid #d0d3d6; border-radius:4px; padding:7px; }
.tma-managed-detail .audit-log-item { display:block; }
.tma-managed-detail .audit-time, .tma-managed-detail .audit-user { display:inline-block; min-width:0; margin-right:8px; }
.tma-managed-detail .audit-content { display:block; margin-top:5px; line-height:1.6; white-space:pre-wrap; overflow-wrap:anywhere; }
.tma-managed-detail .audit-log-item > .att-row { display:flex; flex-wrap:wrap; gap:7px; padding:7px 0; margin-top:5px; }
.tma-managed-detail .att-row .info { min-width:100px; overflow-wrap:anywhere; font-size:11px; line-height:1.6; }
.tma-managed-detail .att-row .btn { flex:0 0 auto; }
.tma-reconfirmation { border-left:3px solid #c49b3b; font-weight:600; }
.tma-managed-row .tma-platform-progress { display:block; white-space:normal; line-height:1.5; margin-bottom:5px; }
@media (max-width:1024px) { .tma-inline .tma-return-fields { grid-template-columns:1fr; } .tma-inline .tma-return-fields > .tma-field:last-child { grid-column:auto; } }
