#page-shipment-workflow { padding: 0; }
.swf-shell { max-width: 1500px; margin: 0 auto; padding: 24px; color: #243447; }
.swf-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; margin-bottom:18px; }
.swf-head h2 { margin:0 0 8px; font-size:25px; color:#16324f; }
.swf-head p { margin:0; color:#6b7d90; line-height:1.7; }
.swf-tabs { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.swf-tab { border:1px solid #b9c9d8; background:#fff; color:#365269; border-radius:8px; padding:9px 16px; cursor:pointer; }
.swf-tab.active { background:#1677ff; border-color:#1677ff; color:#fff; }
.swf-panel { background:#fff; border:1px solid #dbe4ec; border-radius:12px; padding:18px; box-shadow:0 2px 9px rgba(22,50,79,.05); margin-bottom:16px; }
.swf-panel h3 { margin:0 0 14px; color:#203d57; font-size:18px; }
.swf-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.swf-toolbar.between { justify-content:space-between; }
.swf-toolbar input[type=file] { max-width:430px; }
.swf-help { color:#718399; font-size:13px; line-height:1.65; }
.swf-danger-note { color:#b42318; background:#fff1f0; border:1px solid #ffccc7; border-radius:8px; padding:9px 12px; }
.swf-steps { display:grid; grid-template-columns:repeat(5,minmax(120px,1fr)); gap:9px; margin:16px 0; }
.swf-step { border:1px solid #d5e0e9; background:#f7f9fb; padding:11px; border-radius:9px; min-height:66px; }
.swf-step strong { display:block; margin-bottom:5px; color:#263f56; }
.swf-step.done { background:#f0f9eb; border-color:#a9d987; }
.swf-step.active { background:#eaf3ff; border-color:#69a8ff; box-shadow:inset 0 0 0 1px #69a8ff; }
.swf-step.fail { background:#fff2f0; border-color:#ffaaa2; }
.swf-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.swf-field { display:flex; flex-direction:column; gap:6px; }
.swf-field.wide { grid-column:1/-1; }
.swf-field label { font-size:13px; font-weight:600; color:#3e566d; }
.swf-field input,.swf-field select,.swf-field textarea { width:100%; border:1px solid #c8d4df; border-radius:8px; padding:9px 10px; box-sizing:border-box; background:#fff; color:#25384b; }
.swf-field textarea { min-height:88px; resize:vertical; }
.swf-task-layout { display:grid; grid-template-columns:minmax(320px,.8fr) minmax(540px,1.5fr); gap:16px; }
.swf-task-list { max-height:690px; overflow:auto; border:1px solid #e0e7ee; border-radius:9px; }
.swf-task-item { padding:12px; border-bottom:1px solid #e8edf2; cursor:pointer; background:#fff; }
.swf-task-item:hover { background:#f6f9fc; }
.swf-task-item.active { background:#eaf3ff; box-shadow:inset 3px 0 #1677ff; }
.swf-task-item:last-child { border-bottom:0; }
.swf-task-line { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.swf-task-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:330px; }
.swf-badge { display:inline-block; padding:3px 8px; border-radius:999px; background:#edf2f7; color:#476078; font-size:12px; white-space:nowrap; }
.swf-badge.ok { background:#e8f7e2; color:#2f7d18; }
.swf-badge.warn { background:#fff4d6; color:#8a5a00; }
.swf-badge.fail { background:#ffebe8; color:#b42318; }
.swf-summary { display:grid; grid-template-columns:repeat(4,minmax(100px,1fr)); gap:9px; margin:12px 0; }
.swf-metric { border:1px solid #e0e7ee; background:#f9fbfc; border-radius:8px; padding:10px; }
.swf-metric span { display:block; font-size:12px; color:#718399; margin-bottom:5px; }
.swf-metric strong { font-size:18px; color:#203d57; }
.swf-audit { border:1px solid #dce5ec; border-radius:9px; padding:12px; margin-top:12px; background:#fbfcfd; }
.swf-audit h4 { margin:0 0 8px; color:#365269; }
.swf-audit pre { margin:0; white-space:pre-wrap; word-break:break-word; font-family:inherit; font-size:13px; color:#52697f; }
.swf-actions { display:flex; gap:9px; flex-wrap:wrap; margin-top:14px; }
.swf-btn { border:1px solid #b9c9d8; background:#fff; color:#365269; border-radius:8px; padding:9px 14px; cursor:pointer; }
.swf-btn:hover { border-color:#1677ff; color:#1677ff; }
.swf-btn.primary { background:#1677ff; border-color:#1677ff; color:#fff; }
.swf-btn.success { background:#2f8f32; border-color:#2f8f32; color:#fff; }
.swf-btn.danger { background:#c73c31; border-color:#c73c31; color:#fff; }
.swf-btn:disabled { opacity:.45; cursor:not-allowed; }
.swf-table-wrap { overflow:auto; border:1px solid #e0e7ee; border-radius:9px; margin-top:12px; }
.swf-table { width:100%; border-collapse:collapse; min-width:900px; }
.swf-table th,.swf-table td { padding:10px; border-bottom:1px solid #e8edf2; text-align:left; font-size:13px; vertical-align:top; }
.swf-table th { background:#f3f6f9; color:#40586f; position:sticky; top:0; }
.swf-table tr:last-child td { border-bottom:0; }
.swf-empty { color:#7b8da0; text-align:center; padding:28px 12px; }
.swf-loading { padding:45px; text-align:center; color:#718399; }
.swf-error { color:#b42318; background:#fff1f0; border:1px solid #ffccc7; border-radius:9px; padding:12px; }
.swf-hidden { display:none !important; }
.swf-source-card { border:1px solid #cbdce9; border-radius:9px; padding:15px; background:#f8fbfe; display:flex; flex-direction:column; gap:8px; overflow-wrap:anywhere; }
.swf-source-card.stale { background:#fff9ea; border-color:#e4bb66; }
.swf-source-card input[type=file] { max-width:100%; }
.swf-dropzone { display:flex; flex-direction:column; align-items:flex-start; gap:5px; min-width:230px; max-width:100%; box-sizing:border-box; padding:12px; border:2px dashed #9ab9d4; border-radius:9px; background:#f7fbff; cursor:pointer; transition:background .15s,border-color .15s; }
.swf-dropzone.selected { border-color:#38a169; background:#f0fff4; }
.swf-dropzone:hover,.swf-dropzone.drag-over { background:#e7f2ff; border-color:#1677ff; }
.swf-dropzone .swf-drop-hint { color:#315574; font-size:13px; line-height:1.5; }
.swf-dropzone input[type=file] { max-width:100%; font-size:12px; cursor:pointer; }
.swf-dropzone .swf-drop-name { color:#60758a; font-size:12px; overflow-wrap:anywhere; }
.swf-warning { color:#a24e00; }
.swf-issue-row { background:#fff8ee; }
.swf-review-table { max-height:600px; }
.swf-review-table .swf-table { min-width:1250px; }
.swf-review-table .swf-sn { min-width:220px; word-break:break-all; }
.swf-check { display:flex; align-items:flex-start; gap:9px; padding:9px 0; line-height:1.6; }
.swf-check input { margin-top:5px; width:17px; height:17px; flex-shrink:0; }
.swf-audit details { margin-top:10px; }
.swf-panel summary,.swf-audit summary { cursor:pointer; font-weight:600; color:#315574; padding:6px 0; }
.swf-task-layout { grid-template-columns:minmax(220px,.45fr) minmax(650px,1.8fr); }
@media (max-width:1100px) {
  .swf-task-layout { grid-template-columns:1fr; }
  .swf-steps { grid-template-columns:repeat(2,1fr); }
  .swf-summary { grid-template-columns:repeat(2,1fr); }
}
@media (max-width:700px) {
  .swf-shell { padding:12px; }
  .swf-head,.swf-toolbar.between { flex-direction:column; }
  .swf-grid,.swf-steps { grid-template-columns:1fr; }
}
