.sfo-view{padding:24px 30px;max-width:1460px;margin:0 auto;color:var(--text,#1e293b)}
.sfo-view h2{font-size:27px;margin:8px 0 8px}
.sfo-view h3{font-size:21px;margin:0 0 12px}
.sfo-view h4{margin:22px 0 10px}
.sfo-header{display:flex;align-items:center;justify-content:space-between;gap:16px}
.sfo-header small{color:#0891b2;font-size:11px;font-weight:750;letter-spacing:.08em}
.sfo-header p{margin:0 0 18px;color:#64748b;font-size:13px}
.sfo-filter{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:15px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:13px}
.sfo-filter label{font-size:12px;color:#64748b;display:flex;gap:9px;align-items:center}
.sfo-filter select,.sfo-filter input{background:white;border:1px solid #cbd5e1;border-radius:8px;padding:9px 10px;color:#172033;min-height:37px}
.sfo-filter strong{color:#172033}
#sfoMessage{font-size:13px;color:#51647c;min-height:18px}
#sfoMessage.sfo-error{color:#a11}
.sfo-table-wrap{overflow:auto;border:1px solid #e2e8f0;border-radius:13px;background:white}
.sfo-table{border-collapse:collapse;width:100%;font-size:13px;min-width:730px}
.sfo-table th{background:#f8fafc;color:#51647c;text-transform:uppercase;letter-spacing:.03em;font-size:11px;font-weight:750;padding:15px;text-align:left;border-bottom:1px solid #e2e8f0}
.sfo-table td{padding:14px 15px;border-bottom:1px solid #eef2f6;vertical-align:middle}
.sfo-table tr:last-child td{border-bottom:0}
.sfo-table strong{color:#172033}
.sfo-table small{display:block;margin-top:4px;color:#64748b;font-size:11px}
.sfo-pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:40px;background:#edf4f8;color:#334155;font-size:11px;font-weight:700;white-space:nowrap}
#sfoDetail{margin-top:22px;padding:23px;border:1px solid #d9e4ed;border-radius:16px;background:white}
.sfo-detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.sfo-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.sfo-summary>div{padding:14px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0;min-width:0}
.sfo-summary small{display:block;font-size:11px;text-transform:uppercase;color:#64748b;margin-bottom:7px;font-weight:750}
.sfo-summary strong{font-size:14px;overflow-wrap:anywhere}
.sfo-timeline{border-left:2px solid #c8e4ee;padding-left:23px;margin-left:10px;list-style:none}
.sfo-timeline li{position:relative;padding:3px 0 17px}
.sfo-timeline li:before{content:'';position:absolute;left:-30px;top:7px;width:10px;height:10px;border:3px solid #a7d9e9;border-radius:100%;background:#0694b5}
.sfo-timeline small{display:block;font-size:12px;color:#64748b;margin-top:5px}
.sfo-notice{background:#f1f7fa;border-radius:12px;padding:14px;color:#476173;font-size:12px}
.sfo-admin{margin-top:24px;padding:22px;border:1px solid #e2e8f0;border-radius:15px}
.sfo-admin p{font-size:12px;color:#64748b}
.sfo-queue{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #e2e8f0;gap:10px;font-size:12px}
@media(max-width:850px){.sfo-view{padding:15px}.sfo-header{align-items:flex-start;flex-direction:column}.sfo-summary{grid-template-columns:1fr}.sfo-filter{align-items:stretch}.sfo-filter label{flex:1;justify-content:space-between}}

.sfo-steps{display:grid;gap:16px;margin-top:18px}
.sfo-step{border:1px solid #cde8f4;background:#f3fafc;border-radius:15px;padding:17px;color:#1e293b}
.sfo-step>strong{display:block;font-size:14px;margin-bottom:6px}
.sfo-step p{font-size:12px;color:#586d83;margin:5px 0 12px;line-height:1.55}
.sfo-step input{border:1px solid #cbd5e1;border-radius:8px;padding:10px;max-width:330px;width:100%;margin-right:10px}
.sfo-step button{margin:5px 6px 5px 0}
.sfo-step button:disabled{opacity:.6;cursor:not-allowed}
@media(max-width:700px){.sfo-step button{width:100%}.sfo-step input{max-width:100%;margin-bottom:9px}}

#sfoCentral{margin-top:22px;padding:20px 23px;background:white;border:1px solid #d9e4ed;border-radius:16px}
#sfoCentral .sfo-detail-heading p{font-size:12px;color:#64748b;margin:0 0 13px}
.sfo-central-order{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 12px;border-top:1px solid #e2e8f0}
.sfo-central-order small{display:block;margin-top:5px;color:#64748b;font-size:12px}
.sfo-central-brand{margin-bottom:20px}
#sfoCentralDetail{padding:16px;border-radius:12px;background:#f8fafc;border:1px solid #e2e8f0}
@media(max-width:700px){.sfo-central-order{align-items:flex-start;flex-direction:column}}

/* STYLESHOPS: visual hierarchy, clickable buttons and semantic status indicators. */
.sfo-view button:not(.module-link){
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:37px;
  padding:9px 15px;
  border:1px solid #a8becd;
  border-radius:9px;
  background:#eaf2f7;
  color:#17344c;
  font:inherit;
  font-size:12px;
  font-weight:750;
  line-height:1.25;
  cursor:pointer;
  box-shadow:0 2px 0 rgba(21,56,77,.12),0 3px 10px rgba(29,70,94,.04);
  transition:background .15s,border-color .15s,box-shadow .15s,transform .15s;
}
.sfo-view button:not(.module-link):hover:not(:disabled){
  background:#d7eaf3;
  border-color:#6795b1;
  box-shadow:0 3px 0 rgba(21,56,77,.13),0 5px 12px rgba(29,70,94,.09);
  transform:translateY(-1px);
}
.sfo-view button:not(.module-link):active:not(:disabled){transform:translateY(1px);box-shadow:0 1px 0 rgba(21,56,77,.15)}
.sfo-view button:not(.module-link):focus-visible{outline:3px solid #80b8d5;outline-offset:3px}
.sfo-view button:not(.module-link):disabled{
  opacity:.5;
  cursor:not-allowed;
  box-shadow:none;
  transform:none;
}
.sfo-view .sfo-action[data-action="ship"]:not(:disabled),
.sfo-view .sfo-action[data-action="pos-verify"]:not(:disabled){
  background:#176c58;
  color:white;
  border-color:#125544;
  box-shadow:0 2px 0 #0e4436;
}
.sfo-view .sfo-action[data-action="ship"]:hover:not(:disabled),
.sfo-view .sfo-action[data-action="pos-verify"]:hover:not(:disabled){
  background:#125c4a;
  border-color:#0c4637;
}
.sfo-pill{
  border:1px solid #cbd5e1;
  background:#f1f5f9;
  color:#475569;
  font-weight:800;
  padding:5px 11px;
  border-radius:999px;
  line-height:1.3;
}
.sfo-pill--warning{background:#fff3cc;border-color:#f4d47a;color:#815500}
.sfo-pill--success{background:#ddf6e6;border-color:#9cdbb2;color:#17663d}
.sfo-pill--danger{background:#fee5e5;border-color:#f5afaf;color:#a52c2c}
.sfo-pill--neutral{background:#f1f5f9;border-color:#cbd5e1;color:#475569}
.sfo-central-order .sfo-pill{margin-left:8px;vertical-align:middle}
.sfo-central-brand .sfo-pill{vertical-align:middle;font-size:10px}
@media(prefers-reduced-motion:reduce){.sfo-view button:not(.module-link){transition:none}}
