:root {
  --blue:#174b7e; --navy:#16324f; --ink:#202b37; --muted:#5d6b79;
  --line:#dce2e8; --page:#f4f6f8; --success:#174b7e; --success-bg:#edf3f9;
  --amber:#865915; --amber-bg:#fff5e5;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:var(--page);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input{font:inherit} button{cursor:pointer} img{display:block;max-width:100%}
button,a,input{-webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible{outline:3px solid #477db2;outline-offset:4px}
.top-stripe{height:3px;background:var(--navy)}
.site-header{background:#fff;border-bottom:1px solid var(--line)}
.header-inner,.page-shell,.footer-inner{width:min(1160px,calc(100% - 64px));margin-inline:auto}
.header-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;gap:14px;color:inherit;text-decoration:none;min-width:0}
.brand-logo{width:56px;height:56px;object-fit:contain}
.brand-copy{display:flex;flex-direction:column;gap:1px}
.brand-copy strong{font-size:20px;color:var(--navy);font-weight:700;line-height:1.2}
.brand-copy span{font-size:13px;color:var(--ink)}
.brand-copy small{font-size:10px;color:var(--muted);margin-top:2px}
.secure-label{display:inline-flex;padding:6px 11px;border:1px solid var(--line);border-radius:5px;font-size:11px;color:var(--muted);background:#fafbfc;white-space:nowrap}
.page-shell{flex:1;padding:36px 0 48px;animation:page-in 400ms ease-out both}
.hero{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 3px 12px #16324f05;overflow:hidden}
.hero-panel{padding:28px 32px 0}
.eyebrow{font-size:10px;letter-spacing:.07em;font-weight:600;color:var(--blue);margin:0 0 8px}
.hero h1{font-size:28px;line-height:1.25;letter-spacing:-.025em;margin:0 0 10px;font-weight:700}
.hero-text{color:var(--muted);font-size:14px;line-height:1.65;max-width:660px;margin:0}
.track-card{padding:24px 32px 25px;animation:page-in 400ms ease-out both}
.track-card-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:12px}
.track-card-head label{display:block;font-size:13px;font-weight:600;margin-bottom:4px}
.track-card-head p{margin:0;color:var(--muted);font-size:12px}
.track-row{display:grid;grid-template-columns:minmax(0,1fr) 176px;gap:12px;max-width:800px}
.input-wrap{height:48px;border:1px solid #afbdca;border-radius:8px;display:flex;align-items:center;padding:0 14px;gap:10px;background:#fff;transition:border-color 180ms,box-shadow 180ms}
.input-wrap:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px #174b7e1a}
.search-icon{width:15px;height:15px;border:1.5px solid #6c7b89;border-radius:50%;position:relative;font-size:0;flex-shrink:0;margin-right:3px}
.search-icon:after{content:"";position:absolute;width:6px;height:1.5px;background:#6c7b89;right:-5px;bottom:-2px;transform:rotate(45deg)}
.input-wrap input{width:100%;min-width:0;height:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:16px}
.input-wrap input::placeholder{color:#72808e}
.track-btn{min-height:48px;display:flex;align-items:center;justify-content:center;gap:12px;padding:0 18px;border:1px solid var(--blue);border-radius:8px;color:#fff;background:var(--blue);font-size:13px;font-weight:600;transition:background 180ms,transform 180ms}
.track-btn:hover{background:#103b66;transform:translateY(-1px)}
.track-btn:disabled{opacity:.65;cursor:wait;transform:none}
.form-footer{display:flex;flex-wrap:wrap;gap:6px 20px;max-width:800px;margin-top:10px;font-size:11px;color:var(--muted)}
.form-error{color:#b42318;font-weight:500;overflow-wrap:anywhere}
.result-section{margin-top:24px;scroll-margin-top:20px}
.result-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 3px 12px #16324f05;animation:result-in 350ms ease-out both}
.result-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 28px;border-bottom:1px solid var(--line)}
.result-head>div{min-width:0}
.result-kicker{font-size:10px;letter-spacing:.06em;color:var(--blue);font-weight:600;margin-bottom:6px}
.result-title{font-size:24px;letter-spacing:-.02em;margin:0 0 6px;overflow-wrap:anywhere}
.result-sub{font-size:12px;color:var(--muted);margin:0;overflow-wrap:anywhere}
.result-purpose{font-size:13px;color:var(--muted);margin:10px 0 0;overflow-wrap:anywhere}
.result-purpose strong{color:var(--ink);font-weight:500}
.status-badge{display:inline-flex;align-items:center;min-height:28px;border-radius:20px;padding:5px 11px;font-size:11px;font-weight:600;max-width:100%;flex-shrink:0}
.status-success{background:var(--success-bg);color:var(--success)}
.status-progress{background:#edf3f9;color:var(--blue)}
.status-delivery,.status-pending{background:var(--amber-bg);color:var(--amber)}
.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--line);background:#fafbfc}
.summary-cell{padding:18px 28px;border-right:1px solid var(--line)}
.summary-cell:last-child{border-right:0}
.summary-cell span{display:block;font-size:10px;font-weight:500;color:var(--muted);text-transform:uppercase;letter-spacing:.035em;margin-bottom:6px}
.summary-cell strong{display:block;font-size:13px;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.result-body{padding:28px}
.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}
.section-heading h2{margin:0;font-size:15px;font-weight:600;letter-spacing:-.01em}
.section-heading>span{font-size:11px;color:var(--muted)}
.progress-card{padding:18px 12px 24px;margin-bottom:16px;overflow-x:auto}
.progress-track{position:relative;display:flex;justify-content:space-between;min-width:520px}
.progress-track:before,.progress-fill{content:"";position:absolute;left:5%;top:13px;height:2px;background:var(--line)}
.progress-track:before{width:90%}
.progress-fill{background:var(--blue);z-index:1;animation:line-in 400ms ease-out both}
.step{position:relative;z-index:2;text-align:center;width:10%}
.step-dot{width:28px;height:28px;margin:auto;display:grid;place-items:center;border-radius:50%;border:2px solid #d4dce4;background:#f1f4f7;color:#fff;font-size:12px;font-weight:600}
.step.done .step-dot{background:var(--blue);border-color:var(--blue);animation:check-in 300ms ease-out both}
.step.current .step-dot{box-shadow:0 0 0 4px #e7eff7;outline:1px solid #aac2da;outline-offset:3px}
.step-label{font-size:11px;color:var(--muted);margin-top:12px;line-height:1.4}
.step.done .step-label{color:var(--navy)}
.step.current .step-label{font-weight:600}
.current-stage{display:flex;gap:12px;padding:15px 18px;background:#f4f7fa;border:1px solid #dce5ee;border-left:3px solid var(--blue);border-radius:8px;margin-bottom:28px}
.stage-icon{display:none}
.current-stage strong{font-size:13px;font-weight:600;display:block;margin-bottom:3px}
.current-stage p{font-size:12px;color:var(--muted);margin:0;line-height:1.65}
.status-breakdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:28px}
.status-detail{padding:15px 16px;border:1px solid var(--line);border-radius:8px;background:#fff;min-width:0;animation:page-in 350ms ease-out both}
.status-detail:nth-child(2){animation-delay:45ms}.status-detail:nth-child(3){animation-delay:90ms}.status-detail:nth-child(4){animation-delay:135ms}
.status-detail-top{display:flex;align-items:center;gap:7px;margin-bottom:8px}
.status-dot{width:6px;height:6px;border-radius:50%;background:#94a1ae;flex-shrink:0}
.status-detail.complete .status-dot{background:var(--success)}
.status-detail.active .status-dot{background:var(--blue)}
.status-detail.pending .status-dot{background:var(--amber)}
.status-detail-label{font-size:11px;font-weight:500;color:var(--muted)}
.status-detail-value{display:block;font-size:12px;font-weight:500;line-height:1.6;overflow-wrap:anywhere}
.items-wrap{border:1px solid var(--line);border-radius:8px;overflow:hidden}
.items-row{display:grid;grid-template-columns:64px minmax(0,1fr) 90px 90px 150px;align-items:center;gap:16px;padding:16px 18px;border-bottom:1px solid var(--line);animation:page-in 300ms ease-out both}
.items-row:last-child{border-bottom:0}
.items-row.header{padding-block:11px;background:#f5f7f9;color:var(--muted);font-size:11px;font-weight:500;animation:none}
.items-row.header>div:nth-child(2){font-size:0}
.items-row.header>div:nth-child(2):after{content:"Item / Description";font-size:11px}
/* Keep the original four-cell renderer intact; CSS places Qty and UOM in separate columns. */
.items-row.header>div:nth-child(3){grid-column:3 / 5;position:relative;font-size:0;min-height:17px}
.items-row.header>div:nth-child(3):before{content:"Quantity";font-size:11px;position:absolute;left:0}
.items-row.header>div:nth-child(3):after{content:"UOM";font-size:11px;position:absolute;left:calc(50% + 8px)}
.item-no{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.item-name{min-width:0;overflow-wrap:anywhere}
.item-name strong{display:block;font-size:13px;font-weight:500;line-height:1.55}
.item-name span{display:block;font-size:12px;color:var(--muted);margin-top:4px;line-height:1.5}
.qty{display:contents}
.qty-main,.qty-uom{font-size:12px;font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.item-status{min-width:0}
.item-status-badge{display:inline-flex;align-items:center;padding:4px 9px;min-height:26px;border-radius:20px;font-size:10px;font-weight:500;color:var(--blue);background:#edf3f9;line-height:1.5;max-width:100%}
.item-status-badge.delivered{background:var(--success-bg);color:var(--success)}
.item-status-badge.delivery{background:var(--amber-bg);color:var(--amber)}
.result-actions{display:flex;justify-content:flex-end;margin-top:20px}
.secondary-btn{min-height:44px;border:1px solid #b8c5d1;border-radius:8px;padding:10px 16px;font-size:12px;font-weight:500;background:#fff;color:var(--navy);transition:background 180ms,border-color 180ms}
.secondary-btn:hover{background:#f1f5f8;border-color:#8298ad}
.not-found{max-width:680px;background:#fff;border:1px solid var(--line);border-radius:12px;margin:24px auto 0;padding:28px;text-align:center;animation:result-in 350ms ease-out both;scroll-margin-top:24px}
.not-found-icon{display:none}.not-found h2{font-size:20px;margin:0 0 8px}.not-found p{font-size:13px;color:var(--muted);margin:0 0 20px;overflow-wrap:anywhere}
.site-footer{border-top:1px solid var(--line);background:#fff}
.footer-inner{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:16px}
.footer-brand{display:flex;gap:10px;align-items:center}.footer-logo{width:30px;height:30px;object-fit:contain}
.footer-brand strong{font-size:11px;font-weight:600;color:var(--navy);display:block}.footer-brand span,.footer-copy{font-size:10px;color:var(--muted)}
@keyframes page-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes result-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes line-in{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes check-in{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:scale(1)}}
@media(max-width:900px){
 .header-inner,.page-shell,.footer-inner{width:calc(100% - 40px)}
 .summary-grid,.status-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}
 .summary-cell:nth-child(2){border-right:0}.summary-cell:nth-child(-n+2){border-bottom:1px solid var(--line)}
 .items-row{grid-template-columns:48px minmax(0,1fr) 70px 65px 110px;gap:12px;padding-inline:14px}
}
@media(max-width:600px){
 .header-inner,.page-shell,.footer-inner{width:calc(100% - 32px)}
 .header-inner{min-height:76px;gap:12px}.brand{gap:10px}.brand-logo{width:44px;height:44px}.brand-copy strong{font-size:18px}.brand-copy span{font-size:11px}.brand-copy small,.header-meta{display:none}
 .page-shell{padding:24px 0 32px}.hero-panel{padding:22px 20px 0}.hero h1{font-size:25px}.hero-text{font-size:13px}
 .track-card{padding:20px}.track-row{grid-template-columns:1fr}.track-btn{width:100%}.form-footer{flex-direction:column}
 .result-head{padding:20px;flex-direction:column;gap:12px}.result-title{font-size:22px}.result-body{padding:22px 20px}
 .summary-grid,.status-breakdown{grid-template-columns:1fr}
 .summary-cell{padding:13px 20px;border-right:0;border-bottom:1px solid var(--line)}.summary-cell:last-child{border-bottom:0}
 .section-heading{align-items:flex-start;flex-direction:column;gap:3px}.section-heading h2{font-size:15px}
 .progress-card{padding:12px 8px 20px;margin-inline:-8px}.progress-track{min-width:500px}
 .status-breakdown{gap:8px}.status-detail{padding:12px 14px}.status-detail-top{margin-bottom:5px}
 .items-wrap{border:0;border-radius:0;overflow:visible}.items-row.header{display:none}
 .items-row{grid-template-columns:1fr 1fr;gap:10px 14px;padding:16px;border:1px solid var(--line);border-radius:8px;margin-bottom:12px}
 .items-row:last-child{border-bottom:1px solid var(--line);margin-bottom:0}
 .item-no{grid-column:1/-1;font-size:11px}.item-no:before{content:"Item No. ";color:var(--muted)}
 .item-name{grid-column:1/-1}.item-name strong{font-size:13px}
 .qty-main{grid-column:1}.qty-uom{grid-column:2}.item-status{grid-column:1/-1}
 .result-actions .secondary-btn{width:100%}.result-actions{display:block}
 .footer-inner{align-items:flex-start;flex-direction:column;gap:8px}.footer-copy{line-height:1.6}
 .not-found{padding:24px 20px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 *,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}


/* Header, footer and status refinements. All status selection uses existing markup. */
.top-stripe{height:4px;background:#174b7e}
.header-inner{min-height:92px;padding-block:14px}
.brand{border-radius:8px;padding:4px;margin-left:-4px;transition:background 180ms}
.brand-logo{width:58px;height:58px;flex-shrink:0}
.brand-copy{gap:5px;padding-left:16px;border-left:1px solid #d3dde6}
.brand-copy strong{font-size:23px;letter-spacing:.01em}
.brand-copy span{font-size:13px;color:#42576b}
.header-meta{display:flex;flex-direction:column;align-items:flex-end;gap:7px;max-width:330px}
.header-company{font-size:11px;color:#506378;text-align:right}
.secure-label{font-size:10px;font-weight:600;color:#174b7e;background:#edf3f9;border-color:#cad9e8;border-radius:4px;padding:4px 9px}
.site-footer{background:#16324f;border-top:3px solid #285b8a}
.footer-inner{min-height:100px;padding-block:22px}
.footer-logo{width:44px;height:44px;background:#fff;border-radius:6px;padding:3px;flex-shrink:0}
.footer-brand{gap:12px}
.footer-brand strong{font-size:14px;color:#fff;letter-spacing:.025em}
.footer-brand span{font-size:11px;color:#d5e0eb}
.footer-copy{display:flex;flex-direction:column;align-items:flex-end;gap:5px;color:#e2eaf2;font-size:11px;text-align:right}
.footer-caption{color:#afc3d7;font-size:10px}
.status-badge{min-height:36px;font-size:12px;font-weight:700;padding:7px 12px;border:1px solid transparent;gap:8px;flex-shrink:1}
.status-progress{background:#174b7e;color:#fff;border-color:#123c65}
.status-success{background:#174b7e;color:#fff;border-color:#123c65}
.status-delivery{background:#ffdf8c;color:#624000;border-color:#d5a63e}
.status-pending{background:#fff0cc;color:#704900;border-color:#dab565}
.item-status-badge{font-weight:600;font-size:11px;border:1px solid #9cb8d3;background:#e1edf9;color:#123f6c;gap:6px}
.item-status-badge.delivered{background:#e1edf9;color:#123f6c;border-color:#9cb8d3}
.item-status-badge.delivery{background:#ffdf8c;color:#624000;border-color:#d5a63e}
.status-detail{border-top:3px solid #b28a37;transition:background 180ms,border-color 180ms,box-shadow 180ms}
.status-detail.complete{border-top-color:#174b7e}
.status-detail.active{border-top-color:#174b7e}
.status-detail-value{font-weight:600;color:#704900}
.status-detail.complete .status-detail-value{color:#174b7e}
.status-detail.active .status-detail-value{color:#174b7e}
.status-dot{width:8px;height:8px}
.status-detail-label{font-size:12px;color:#465a6e;font-weight:600}
.result-card{--stage-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6M8%2013h8M8%2017h5%22%2F%3E%3C%2Fsvg%3E")}
.step:nth-child(2){--step-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6M8%2013h8M8%2017h5%22%2F%3E%3C%2Fsvg%3E")}
.result-card:has(.step:nth-child(2).current){--stage-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6M8%2013h8M8%2017h5%22%2F%3E%3C%2Fsvg%3E")}
.step:nth-child(3){--step-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%208%203v6c0%205-8%209-8%209s-8-4-8-9V6z%22%2F%3E%3Cpath%20d%3D%22m8%2012%203%203%205-6%22%2F%3E%3C%2Fsvg%3E")}
.result-card:has(.step:nth-child(3).current){--stage-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%208%203v6c0%205-8%209-8%209s-8-4-8-9V6z%22%2F%3E%3Cpath%20d%3D%22m8%2012%203%203%205-6%22%2F%3E%3C%2Fsvg%3E")}
.step:nth-child(4){--step-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%207%209-4%209%204-9%204zM3%207v10l9%204%209-4V7M12%2011v10M7.5%205l9%204%22%2F%3E%3C%2Fsvg%3E")}
.result-card:has(.step:nth-child(4).current){--stage-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%207%209-4%209%204-9%204zM3%207v10l9%204%209-4V7M12%2011v10M7.5%205l9%204%22%2F%3E%3C%2Fsvg%3E")}
.step:nth-child(5){--step-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%224%22%20width%3D%2214%22%20height%3D%2217%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%204V2h6v2M8%2013l3%203%205-6%22%2F%3E%3C%2Fsvg%3E")}
.result-card:has(.step:nth-child(5).current){--stage-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%224%22%20width%3D%2214%22%20height%3D%2217%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%204V2h6v2M8%2013l3%203%205-6%22%2F%3E%3C%2Fsvg%3E")}
.step:nth-child(6){--step-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h11v11H3zM14%2010h4l3%204v3h-7M1%2010h5M1%2013h4%22%2F%3E%3Ccircle%20cx%3D%227%22%20cy%3D%2218%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2218%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}
.result-card:has(.step:nth-child(6).current){--stage-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h11v11H3zM14%2010h4l3%204v3h-7M1%2010h5M1%2013h4%22%2F%3E%3Ccircle%20cx%3D%227%22%20cy%3D%2218%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2218%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}
.step:nth-child(7){--step-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2010%209-7%209%207M5%209v12h14V9%22%2F%3E%3Cpath%20d%3D%22m8%2015%203%203%205-6%22%2F%3E%3C%2Fsvg%3E")}
.result-card:has(.step:nth-child(7).current){--stage-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2010%209-7%209%207M5%209v12h14V9%22%2F%3E%3Cpath%20d%3D%22m8%2015%203%203%205-6%22%2F%3E%3C%2Fsvg%3E")}

.status-badge:before,.step-dot:before,.stage-icon:before,.item-status-badge:before{content:"";display:block;width:18px;height:18px;flex:0 0 18px;background:currentColor;-webkit-mask:var(--stage-icon) center/contain no-repeat;mask:var(--stage-icon) center/contain no-repeat;animation:status-reveal 450ms ease-out both}
.step-dot{width:34px;height:34px;font-size:0;color:#778797;border-color:#ccd6df;background:#f1f4f7;transition:box-shadow 180ms,border-color 180ms}
.step-dot:before{-webkit-mask-image:var(--step-icon);mask-image:var(--step-icon)}
.step.done .step-dot{color:#fff}
.progress-track:before,.progress-fill{top:16px}
.step.current .step-dot{outline-color:#6b92b8;box-shadow:0 0 0 5px #e7eff7}
.step:nth-child(6).current .step-dot{background:#ffdf8c;border-color:#d5a63e;color:#624000;outline-color:#d5a63e;box-shadow:0 0 0 5px #fff3d8}
.step:nth-child(7).current .step-dot{background:#174b7e;border-color:#174b7e;outline-color:#9cb8d3;box-shadow:0 0 0 5px #e7eff7}
.stage-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:8px;background:#174b7e;color:#fff;font-size:0}
.stage-icon:before{width:23px;height:23px}
.current-stage{align-items:center}
.result-card:has(.status-delivery) .current-stage{background:#fff8e8;border-color:#ecd39a;border-left-color:#bf861c}
.result-card:has(.status-delivery) .stage-icon{background:#ffdf8c;color:#624000}
.result-card:has(.status-success) .current-stage{background:#f4f7fa;border-color:#cbdbe9;border-left-color:#174b7e}
.result-card:has(.status-success) .stage-icon{background:#174b7e}
.item-status-badge{--stage-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6M8%2013h8M8%2017h5%22%2F%3E%3C%2Fsvg%3E")}
.item-status-badge.delivery{--stage-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h11v11H3zM14%2010h4l3%204v3h-7M1%2010h5M1%2013h4%22%2F%3E%3Ccircle%20cx%3D%227%22%20cy%3D%2218%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2218%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E")}
.item-status-badge.delivered{--stage-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2010%209-7%209%207M5%209v12h14V9%22%2F%3E%3Cpath%20d%3D%22m8%2015%203%203%205-6%22%2F%3E%3C%2Fsvg%3E")}
.item-status-badge:before{width:15px;height:15px;flex-basis:15px;animation:none}
.status-delivery:before,.step:nth-child(6).current .step-dot:before,.result-card:has(.status-delivery) .stage-icon:before{animation:truck-arrive 650ms ease-out both}
.items-row{transition:background 180ms,box-shadow 180ms}
.track-btn{transition:background 180ms,transform 180ms,box-shadow 180ms}
.track-btn:active:not(:disabled){transform:translateY(0);box-shadow:none}
@media(hover:hover) and (pointer:fine){
 .brand:hover{background:#f2f6fa}
 .input-wrap:hover:not(:focus-within){border-color:#6886a3}
 .track-btn:hover:not(:disabled){box-shadow:0 4px 10px #174b7e24}
 .secondary-btn:hover{background:#e8f0f8;border-color:#7195b7}
 .status-detail:hover{background:#f8fafc;border-color:#9fb3c6;box-shadow:0 2px 6px #16324f0a}
 .status-detail.complete:hover{border-top-color:#174b7e}
 .status-detail.active:hover{border-top-color:#174b7e}
 .items-row:not(.header):hover{background:#f1f6fb;box-shadow:inset 3px 0 #799bbb}
 .step:hover .step-dot{box-shadow:0 0 0 5px #e7edf3}
}
@keyframes status-reveal{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
@keyframes truck-arrive{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:translateX(0)}}
@media(max-width:600px){
 .header-inner{min-height:82px;padding-block:12px}.brand-logo{width:46px;height:46px}.brand-copy{padding-left:12px;gap:4px}.brand-copy strong{font-size:20px}.brand-copy span{font-size:11px}
 .header-meta{display:none}.footer-inner{padding-block:20px;gap:16px}.footer-copy{align-items:flex-start;text-align:left;gap:4px;padding-top:14px;border-top:1px solid #38536e;width:100%}
 .footer-logo{width:38px;height:38px}.status-badge{font-size:12px}.current-stage{align-items:flex-start}.stage-icon{flex-basis:34px;width:34px;height:34px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Restrained corporate masthead and footer. */
.top-stripe{height:3px;background:#16324f}
.site-header{background:#fff;box-shadow:none;border-bottom:1px solid #dce2e8}
.header-inner{min-height:88px;gap:32px;padding-block:16px}
.brand{gap:14px;padding:0;margin:0;border-radius:0}
.brand-logo{width:52px;height:52px}
.brand-copy{border:0;padding:0;gap:4px}
.brand-copy strong{color:#16324f;font-size:22px;letter-spacing:0;line-height:1.2}
.brand-copy span{color:#5d6b79;font-size:11px;line-height:1.5}
.header-meta{display:block;max-width:none;border-left:1px solid #dce2e8;padding-left:28px}
.portal-title{display:block;font-size:14px;font-weight:500;color:#34495e;line-height:1.5}
.site-footer{background:#fff;border-top:1px solid #dce2e8}
.footer-inner{min-height:64px;padding-block:18px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:12px 32px}
.footer-company,.footer-portal{font-size:11px;line-height:1.6;color:#667584}
.footer-company{color:#465969}
/* Center the icon independently of the renderer's original checkmark text node. */
.step-dot,.stage-icon{position:relative;display:block;line-height:0;font-size:0}
.step-dot:before,.stage-icon:before{position:absolute;inset:0;margin:auto;display:block}
.step-dot:before{width:18px;height:18px}
.stage-icon:before{width:22px;height:22px}
.step:nth-child(7).current .step-dot{background:#174b7e;border-color:#174b7e;outline-color:#9cb8d3;box-shadow:0 0 0 5px #e7eff7}
.status-detail.complete{border-top-color:#174b7e}
.status-detail.complete .status-detail-value{color:#174b7e}
@media(hover:hover) and (pointer:fine){.brand:hover{background:transparent}.brand:hover .brand-copy strong{color:#286397}}
@media(max-width:600px){
 .header-inner{align-items:flex-start;flex-direction:column;gap:12px;padding-block:16px}
 .brand{gap:12px}.brand-logo{width:44px;height:44px}.brand-copy strong{font-size:20px}.brand-copy span{font-size:10px}
 .header-meta{display:block;border-left:0;border-top:1px solid #e5eaf0;width:100%;padding:10px 0 0}
 .portal-title{font-size:12px}
 .footer-inner{flex-direction:column;align-items:flex-start;gap:3px;padding-block:16px;min-height:0}
 .footer-company,.footer-portal{font-size:10px}
}
/* Use the same amber treatment for the current status at every workflow stage. */
.result-card .status-badge,
.result-card .item-status-badge{background:#ffdf8c;color:#624000;border-color:#d5a63e}
.result-card .step.current .step-dot{background:#ffdf8c;color:#624000;border-color:#d5a63e;outline:1px solid #d5a63e;outline-offset:3px;box-shadow:0 0 0 5px #fff3d8}
.result-card .current-stage{background:#fff8e8;border-color:#ecd39a;border-left-color:#bf861c}
.result-card .current-stage .stage-icon{background:#ffdf8c;color:#624000}
/* Match selectors with higher specificity from the earlier stage-specific theme. */
.result-card:has(.status-success) .current-stage,
.result-card:has(.status-progress) .current-stage,
.result-card:has(.status-pending) .current-stage{background:#fff8e8;border-color:#ecd39a;border-left-color:#bf861c}
.result-card:has(.status-success) .stage-icon,
.result-card:has(.status-progress) .stage-icon,
.result-card:has(.status-pending) .stage-icon{background:#ffdf8c;color:#624000}
.result-card .step:nth-child(n).current .step-dot{background:#ffdf8c;color:#624000;border-color:#d5a63e;outline-color:#d5a63e;box-shadow:0 0 0 5px #fff3d8}


/* ------------------------------------------------------------
   v7 - Expanded live request details
------------------------------------------------------------ */
.request-info-area{
  padding:24px 28px 0;
  background:#fff
}
.request-info-section{
  padding:0 0 22px
}
.request-info-section + .request-info-section{
  padding-top:22px;
  border-top:1px solid var(--line)
}
.request-info-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px
}
.request-info-heading h2{
  margin:0;
  font-size:14px;
  line-height:1.4;
  color:var(--ink)
}
.request-info-heading span{
  font-size:10px;
  color:var(--muted)
}
.request-detail-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid var(--line);
  border-radius:8px;
  overflow:hidden;
  background:#fafbfc
}
.request-detail-row{
  min-width:0;
  padding:15px 16px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:#fafbfc
}
.request-detail-row:nth-child(4n){
  border-right:0
}
.request-detail-row:nth-last-child(-n+4){
  border-bottom:0
}
.request-detail-label{
  display:block;
  margin-bottom:6px;
  color:#778495;
  font-size:9px;
  line-height:1.3;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.055em
}
.request-detail-value{
  display:block;
  color:#263544;
  font-size:11px;
  line-height:1.5;
  font-weight:700;
  overflow-wrap:anywhere
}
.purchase-delivery-section .request-detail-grid{
  background:#fbfcfd
}
.purchase-delivery-section .request-detail-row{
  background:#fbfcfd
}

@media(max-width:900px){
  .request-detail-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .request-detail-row:nth-child(4n){
    border-right:1px solid var(--line)
  }
  .request-detail-row:nth-child(2n){
    border-right:0
  }
  .request-detail-row:nth-last-child(-n+4){
    border-bottom:1px solid var(--line)
  }
  .request-detail-row:nth-last-child(-n+2){
    border-bottom:0
  }
}

@media(max-width:600px){
  .request-info-area{
    padding:20px 20px 0
  }
  .request-info-heading{
    display:block
  }
  .request-info-heading span{
    display:block;
    margin-top:3px
  }
  .request-detail-grid{
    grid-template-columns:1fr
  }
  .request-detail-row,
  .request-detail-row:nth-child(2n),
  .request-detail-row:nth-child(4n),
  .request-detail-row:nth-last-child(-n+4),
  .request-detail-row:nth-last-child(-n+2){
    border-right:0;
    border-bottom:1px solid var(--line)
  }
  .request-detail-row:last-child{
    border-bottom:0
  }
}
/* Table and live-detail layout refinement, retaining the v6 visual theme. */
.result-card{--table-number:64px;--table-quantity:90px;--table-uom:90px;--table-status:156px;--table-gap:16px}
.items-row{grid-template-columns:var(--table-number) minmax(0,1fr) var(--table-quantity) var(--table-uom) var(--table-status);gap:var(--table-gap);padding:16px 18px;align-items:start;min-height:64px}
.items-row.header{min-height:42px;align-items:center;padding:12px 18px;line-height:18px}
.items-row.header>div:nth-child(3){min-height:18px;line-height:18px}
.items-row.header>div:nth-child(3):before{left:0;top:0;width:var(--table-quantity);text-align:right}
.items-row.header>div:nth-child(3):after{left:calc(var(--table-quantity) + var(--table-gap));top:0;width:var(--table-uom);text-align:left}
.item-no,.qty-main,.qty-uom{line-height:1.6;padding-top:3px}
.qty-main{text-align:right;font-variant-numeric:tabular-nums}
.qty-uom{text-align:left;word-break:normal;overflow-wrap:anywhere}
.item-name strong{line-height:1.6;padding-top:2px}
.item-name span{margin-top:4px;color:#5d6b79}
.item-status{align-self:start;padding-top:1px}
.item-status-badge{line-height:1.5;padding:5px 9px;max-width:100%;white-space:normal}
.item-status-badge:before{flex-shrink:0;align-self:center}
.summary-cell{min-width:0}
.result-head,.result-body{padding:24px 28px}
.request-info-area{padding:24px 28px 0}
.request-info-section{padding:0}
.request-info-section + .request-info-section{margin-top:24px;padding-top:0;border-top:0}
.request-info-heading{align-items:baseline;margin-bottom:12px;gap:12px}
.request-info-heading h2{font-size:15px;font-weight:600;line-height:1.5}
.request-info-heading span{font-size:11px;line-height:1.5}
/* Gap-based dividers remain consistent with any number of returned fields. */
.request-info-area .request-detail-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.request-info-area .request-detail-row{border:0;padding:16px;background:#fafbfc;min-width:0}
.request-detail-label{font-size:10px;font-weight:500;line-height:1.5;letter-spacing:.025em;color:#5d6b79;margin-bottom:6px}
.request-detail-value{font-size:13px;font-weight:500;line-height:1.6;color:#263544;overflow-wrap:anywhere}
.request-info-area + .result-body{padding-top:28px}
.section-heading{margin-bottom:14px}
.progress-card{margin-bottom:16px}
.current-stage,.status-breakdown{margin-bottom:28px}
.result-actions{margin-top:20px}
.form-footer:has(#ridHelp:empty):has(#ridError:empty){margin-top:0}
.request-info-section{animation:page-in 350ms ease-out both}
.request-info-section + .request-info-section{animation-delay:45ms}
.items-row:not(.header){animation:result-in 350ms ease-out both}
.items-row:nth-child(3){animation-delay:35ms}.items-row:nth-child(4){animation-delay:70ms}.items-row:nth-child(5){animation-delay:105ms}
@media(max-width:1000px) and (min-width:601px){
 .result-card{--table-number:46px;--table-quantity:64px;--table-uom:66px;--table-status:130px;--table-gap:12px}
 .items-row,.items-row.header{padding-inline:14px}
}
@media(max-width:900px){
 .request-info-area .request-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .result-head,.result-body{padding:20px}
 .request-info-area{padding:20px 20px 0}
 .request-info-area .request-detail-grid{grid-template-columns:1fr}
 .request-info-area .request-detail-row{padding:13px 14px;border:0}
 .request-info-section + .request-info-section{margin-top:20px}
 .request-info-area + .result-body{padding-top:24px}
 .request-info-heading{display:flex;flex-direction:column;gap:3px;margin-bottom:10px}
 .request-info-heading span{margin:0}
 .items-row{grid-template-columns:1fr 1fr;gap:10px 16px;padding:16px;min-height:0}
 .items-row.header{display:none}
 .item-no,.qty-main,.qty-uom,.item-status{padding-top:0}
 .qty-main,.qty-uom{text-align:left}
 .item-name strong{padding-top:0}
 .item-status{margin-top:2px}
 .current-stage,.status-breakdown{margin-bottom:24px}
}
@media(prefers-reduced-motion:reduce){
 *,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

:root{
--workflow-icon-1:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z%22%2F%3E%3Cpath%20d%3D%22M14%202v6h6M8%2013h8M8%2017h5%22%2F%3E%3C%2Fsvg%3E");
--workflow-icon-2:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m12%203%208%203v6c0%205-8%209-8%209s-8-4-8-9V6z%22%2F%3E%3Cpath%20d%3D%22m8%2012%203%203%205-6%22%2F%3E%3C%2Fsvg%3E");
--workflow-icon-3:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%207%209-4%209%204-9%204zM3%207v10l9%204%209-4V7M12%2011v10M7.5%205l9%204%22%2F%3E%3C%2Fsvg%3E");
--workflow-icon-4:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%225%22%20y%3D%224%22%20width%3D%2214%22%20height%3D%2217%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M9%204V2h6v2M8%2013l3%203%205-6%22%2F%3E%3C%2Fsvg%3E");
--workflow-icon-5:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%206h11v11H3zM14%2010h4l3%204v3h-7M1%2010h5M1%2013h4%22%2F%3E%3Ccircle%20cx%3D%227%22%20cy%3D%2218%22%20r%3D%222%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2218%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E");
--workflow-icon-6:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m3%2010%209-7%209%207M5%209v12h14V9%22%2F%3E%3Cpath%20d%3D%22m8%2015%203%203%205-6%22%2F%3E%3C%2Fsvg%3E");
}
.stage-counts{display:flex;flex-wrap:wrap;gap:12px;margin:0 0 20px}
.stage-counts>div{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:8px;padding:12px 16px;background:#fafbfc}
.stage-counts strong{font-size:20px;color:var(--navy);font-variant-numeric:tabular-nums}
.stage-counts span{font-size:12px;color:var(--muted)}
.item-details{grid-column:1/-1;min-width:0;border-top:1px solid #e6ebf0;margin-top:2px}
.item-details summary{cursor:pointer;min-height:44px;padding:12px 0 0;color:#174b7e;font-weight:500;font-size:12px;line-height:1.6;list-style-position:inside}
.item-details summary:focus-visible{outline:2px solid #174b7e;outline-offset:3px;border-radius:4px}
.item-details-context{font-size:11px;color:#5d6b79;font-weight:400}
.item-details-body{padding:12px 0 4px;animation:page-in 300ms ease-out both}
.item-details .progress-card{margin:0;padding:18px 10px 24px}
.item-stage-note{font-size:12px;color:#5d6b79;margin:8px 0 16px;line-height:1.6}
.item-stage-note strong{font-weight:600;color:#263544}
.item-departments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.item-departments>div{padding:12px;border:1px solid var(--line);border-radius:6px;background:#fff;min-width:0}
.item-departments span{display:block;font-size:11px;color:#5d6b79;margin-bottom:5px}
.item-departments strong{display:block;font-size:12px;font-weight:500;overflow-wrap:anywhere;color:#263544}
@media(hover:hover){.item-details summary:hover{color:#103b66;text-decoration:underline;text-underline-offset:3px}}
@media(max-width:900px){.item-departments{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.item-departments{grid-template-columns:1fr}.stage-counts{gap:8px}.stage-counts>div{flex:1 1 130px;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.item-details-body{animation:none!important}}

/* Stage colors are presentation only; workflow calculations remain unchanged. */
[data-stage="0"]{--status-ink:#624000;--status-bg:#ffdf8c;--status-line:#d5a63e;}
[data-stage="1"]{--status-ink:#4b5563;--status-bg:#eef0f3;--status-line:#aab3bf;}
[data-stage="2"]{--status-ink:#1555a2;--status-bg:#e7f0fe;--status-line:#83a9df;}
[data-stage="3"]{--status-ink:#06647e;--status-bg:#e0f3fa;--status-line:#71b7cd;}
[data-stage="4"]{--status-ink:#405d7d;--status-bg:#e8eef5;--status-line:#90a5bd;}
[data-stage="5"]{--status-ink:#805000;--status-bg:#ffdf8c;--status-line:#d5a63e;}
[data-stage="6"]{--status-ink:#17344f;--status-bg:#dce7f1;--status-line:#7c9ab6;}

.result-card[data-stage]>.result-head>.status-badge,
.result-card .item-status-badge[data-stage]{background:var(--status-bg)!important;color:var(--status-ink)!important;border-color:var(--status-line)!important}
.result-card[data-stage]>.result-body>.current-stage{background:var(--status-bg)!important;border-color:var(--status-line)!important;border-left-color:var(--status-ink)!important}
.result-card[data-stage]>.result-body>.current-stage .stage-icon{background:var(--status-ink)!important;color:#fff!important}
.result-card .step[data-stage].done .step-dot{background:var(--status-ink)!important;border-color:var(--status-ink)!important;color:#fff!important}
.result-card .step[data-stage].current .step-dot{background:var(--status-bg)!important;border-color:var(--status-line)!important;color:var(--status-ink)!important;outline-color:var(--status-line)!important;box-shadow:0 0 0 5px var(--status-bg)!important}
.result-card .step[data-stage].done .step-label{color:var(--status-ink)}
.item-details[data-stage]{border-top-color:var(--status-line)}
.item-details[data-stage] summary{color:var(--status-ink)}
.stage-counts>[data-stage]{background:var(--status-bg);border-color:var(--status-line)}
.stage-counts>[data-stage] strong,.stage-counts>[data-stage] span{color:var(--status-ink)}

/* Optional live fields belong to their own item and disappear when empty. */
.item-extra-fields{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 20px;margin:2px 0 0;padding:14px 16px;background:#f7f9fb;border:1px solid #e4eaf0;border-radius:6px}
.item-extra-fields>div{min-width:0}
.item-extra-fields dt{font-size:10px;font-weight:500;color:#5d6b79;margin-bottom:4px}
.item-extra-fields dd{margin:0;font-size:12px;line-height:1.6;color:#263544;overflow-wrap:anywhere;white-space:pre-wrap}
.item-extra-fields .item-comment{grid-column:1/-1}
@media(max-width:900px){.item-extra-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.item-extra-fields{grid-template-columns:1fr;padding:12px;gap:12px}}

.item-search-bar{display:flex;align-items:flex-end;gap:12px;margin:0 0 16px}
.item-search-control{flex:1;min-width:0;max-width:680px}
.item-search-control label{display:block;font-size:12px;font-weight:500;margin-bottom:7px;color:#34495e}
.item-search-control input{width:100%;height:44px;border:1px solid #afbdca;border-radius:8px;padding:0 12px;background:#fff;color:#263544;font:inherit;transition:border-color 180ms,box-shadow 180ms}
.item-search-control input:focus{outline:0;border-color:#174b7e;box-shadow:0 0 0 3px #174b7e1a}
.item-search-bar button:disabled{opacity:.5;cursor:default}
.item-search-empty{padding:18px;margin:12px 0 0;border:1px solid var(--line);border-radius:8px;background:#fafbfc;font-size:13px;color:#5d6b79}
.request-info-area .request-detail-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
@media(max-width:600px){.item-search-bar{align-items:stretch;flex-direction:column}.item-search-control{max-width:none}.request-info-area .request-detail-grid{grid-template-columns:1fr}}

.item-sort-control{flex:0 0 220px;min-width:0}
.item-sort-control label{display:block;font-size:12px;font-weight:500;margin-bottom:7px;color:#34495e}
.item-sort-control select{width:100%;min-height:44px;padding:0 10px;border:1px solid #afbdca;border-radius:8px;background:#fff;color:#263544;font:inherit;cursor:pointer;transition:border-color 180ms,box-shadow 180ms}
.item-sort-control select:focus{outline:0;border-color:#174b7e;box-shadow:0 0 0 3px #174b7e1a}
@media(max-width:900px){.item-search-bar{flex-wrap:wrap}.item-search-control{flex-basis:100%;max-width:none}.item-sort-control{flex:1}}
@media(max-width:600px){.item-sort-control{flex:auto;width:100%}}

/* Let omitted WAM approval cards collapse without empty columns. */
.item-departments,.status-breakdown{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}
@media(max-width:600px){.item-departments,.status-breakdown{grid-template-columns:1fr}}

/* Balanced portal title and live Philippine date/time. */
.header-inner{min-height:96px;align-items:center;gap:28px;padding-block:18px}
.brand{gap:16px;flex:1;min-width:0}
.brand-logo{width:54px;height:54px;flex:0 0 54px}
.brand-copy{min-width:0;gap:5px}
.brand-copy strong{font-size:23px;font-weight:700;line-height:1.25;letter-spacing:-.02em}
.brand-copy span{font-size:11px;line-height:1.5}
.header-meta{flex:0 0 auto;padding-left:28px;border-left:1px solid #dce2e8}
.header-clock{text-align:right;min-width:190px;color:#34495e}
#headerDate{display:block;font-size:12px;line-height:1.5;color:#5d6b79}
.header-time-line{display:flex;align-items:baseline;justify-content:flex-end;gap:8px;margin-top:4px}
#headerTime{font-size:17px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;white-space:nowrap}
.header-timezone{font-size:10px;font-weight:500;color:#667584}
@media(max-width:760px){
 .header-inner{flex-direction:column;align-items:stretch;gap:14px;padding-block:16px}
 .brand{gap:12px}.brand-logo{width:46px;height:46px;flex-basis:46px}
 .brand-copy strong{font-size:20px}.brand-copy span{font-size:10px}
 .header-meta{width:100%;border-left:0;border-top:1px solid #e5eaf0;padding:12px 0 0}
 .header-clock{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;text-align:left}
 .header-time-line{margin:0}#headerDate{font-size:11px}#headerTime{font-size:14px}
}
@media(max-width:360px){.brand-copy strong{font-size:18px}.header-clock{align-items:flex-start;flex-direction:column;gap:4px}}
/* Responsive layout: keep long live values inside their own containers. */
.header-inner,.page-shell,.footer-inner{max-width:1160px}
.page-shell,.result-section,.result-card,.result-body,.items-wrap,.items-row,.item-details,.item-details-body,.progress-card{min-width:0}
.brand-copy,.header-meta,.result-head>div,.summary-cell,.request-detail-row,.item-extra-fields dd{overflow-wrap:anywhere}
.item-search-control input,.item-sort-control select{max-width:100%;min-width:0}
.item-search-bar{min-width:0}
.progress-card{max-width:100%}
.item-details-body .progress-track{width:100%}
@media(min-width:601px) and (max-width:1000px){
 .result-card{--table-number:38px;--table-quantity:54px;--table-uom:54px;--table-status:112px;--table-gap:10px}
 .items-row,.items-row.header{padding-inline:12px}
 .item-status-badge{font-size:10px;padding:5px 7px}
 .result-head,.result-body{padding:22px}
 .request-info-area{padding:22px 22px 0}
 .item-extra-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .item-departments,.status-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
 .header-inner,.page-shell,.footer-inner{width:calc(100% - 24px)}
 .page-shell{padding:18px 0 24px}
 .hero-panel{padding:20px 16px 0}.track-card{padding:18px 16px}
 .result-head,.result-body{padding:18px 16px}
 .request-info-area{padding:18px 16px 0}
 .summary-cell{padding:12px 16px}
 .result-head>.status-badge{max-width:100%;white-space:normal}
 .request-info-heading,.section-heading{gap:5px}
 .items-row{padding:14px 12px;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 12px}
 .item-name,.item-no,.item-status,.item-details,.item-extra-fields{min-width:0;max-width:100%}
 .item-name strong,.item-name span,.item-extra-fields dd{overflow-wrap:anywhere}
 .item-extra-fields{padding:12px;grid-template-columns:minmax(0,1fr);gap:12px}
 .item-departments,.status-breakdown{grid-template-columns:minmax(0,1fr)}
 .item-search-bar{width:100%;gap:12px}
 .item-search-control,.item-sort-control{width:100%;flex:auto;min-width:0}
 .item-search-control input,.item-sort-control select{font-size:16px;min-height:46px}
 .item-search-bar .secondary-btn{width:100%;min-height:44px}
 .item-details summary{padding:12px 0;min-height:44px}
 .item-details-context{white-space:normal}
 /* A vertical workflow fits every route, including the shortened WAM route. */
 .progress-card,.item-details .progress-card{padding:12px 4px;margin:0 0 16px;overflow:visible}
 .progress-track,.item-details-body .progress-track{display:flex;flex-direction:column;gap:0;min-width:0;width:100%;padding:0}
 .progress-track:before,.progress-fill{display:none}
 .progress-track .step{display:flex;align-items:center;gap:14px;text-align:left;width:100%;min-height:58px;padding:10px 0;position:relative}
 .progress-track .step:after{content:"";position:absolute;left:16px;top:39px;bottom:-11px;width:2px;background:#dce2e8;z-index:0}
 .progress-track .step.done:not(.current):after{background:var(--status-ink,#174b7e)}
 .progress-track .step:last-child:after{display:none}
 .progress-track .step-dot{margin:0;flex:0 0 34px;position:relative;z-index:1}
 .progress-track .step-label{margin:0;font-size:12px;line-height:1.5;min-width:0;overflow-wrap:anywhere}
 .current-stage{padding:13px 12px;gap:10px}
 .current-stage>div:last-child{min-width:0}
 .current-stage p,.item-stage-note{overflow-wrap:anywhere}
 .stage-counts>div{min-width:0;flex:1 1 110px}
 .header-clock{flex-wrap:wrap}
 .footer-company,.footer-portal{overflow-wrap:anywhere}
}
@media(max-width:360px){
 .header-inner,.page-shell,.footer-inner{width:calc(100% - 20px)}
 .brand{gap:10px}.brand-logo{width:40px;height:40px;flex-basis:40px}
 .brand-copy strong{font-size:18px}
 .result-head,.result-body{padding:16px 12px}
 .request-info-area{padding:16px 12px 0}
 .items-row{padding:12px 10px}
}
/* Keep quantity and unit together on mobile, with desktop columns unchanged. */
@media(max-width:600px){
 .items-row:not(.header)>.qty{display:flex;grid-column:1/-1;align-items:baseline;justify-content:flex-start;flex-wrap:wrap;gap:6px;margin:0;min-width:0}
 .items-row:not(.header)>.qty>.qty-main,.items-row:not(.header)>.qty>.qty-uom{grid-column:auto;padding:0;text-align:left;font-size:12px;line-height:1.5}
}

.employee-requests{margin-top:24px;padding:24px 28px;background:#fff;border:1px solid var(--line);border-radius:12px;scroll-margin-top:20px}
.employee-list-head{display:flex;justify-content:space-between;gap:16px;align-items:center}.employee-list-head h2{font-size:21px;margin:0}.employee-list-head p:not(.eyebrow){font-size:12px;color:var(--muted);margin:8px 0 0}
.employee-controls{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;margin-top:22px}.employee-controls label{font-size:12px;font-weight:500;min-width:0}.employee-controls input,.employee-controls select{display:block;width:100%;min-height:44px;margin-top:7px;border:1px solid #afbdca;border-radius:8px;background:#fff;padding:8px 10px;font:inherit;color:var(--ink)}
.employee-controls input:focus,.employee-controls select:focus{outline:2px solid #7195b7;outline-offset:2px}
#requestMatchCount{font-size:12px;color:var(--muted);margin:16px 0}
.employee-request-row{width:100%;display:grid;grid-template-columns:140px minmax(0,1fr) 140px 160px 16px;gap:16px;align-items:center;padding:18px 14px;text-align:left;background:#fff;border:0;border-top:1px solid var(--line);color:var(--ink);font-size:12px;transition:background 180ms}
.employee-request-row:hover{background:#f3f7fb}.employee-request-row>span{min-width:0;overflow-wrap:anywhere}.employee-request-row small{display:block;margin-top:5px;color:var(--muted);font-size:11px}.employee-status{border:1px solid var(--status-line);background:var(--status-bg);color:var(--status-ink);border-radius:18px;padding:6px 10px;font-size:11px}
@media(max-width:900px){.employee-request-row{grid-template-columns:120px 1fr 140px}.employee-request-row>span:last-child{display:none}.employee-status{grid-column:3}.employee-purpose{grid-row:span 2}}
@media(max-width:600px){.employee-requests{padding:18px 16px}.employee-list-head{align-items:flex-start;flex-direction:column}.employee-controls{grid-template-columns:1fr}.employee-controls input,.employee-controls select{font-size:16px}.employee-request-row{grid-template-columns:1fr;gap:10px;padding:16px 4px}.employee-purpose{grid-row:auto}.employee-status{grid-column:auto;justify-self:start}}

.employee-item-preview{display:flex;flex-direction:column;gap:10px}
.employee-preview-item{display:block;min-width:0;overflow-wrap:anywhere}
.employee-preview-item strong{font-size:12px;font-weight:500;line-height:1.6}
.employee-preview-item small{margin-top:3px;line-height:1.5}
.employee-preview-item + .employee-preview-item{padding-top:8px;border-top:1px solid #e5eaf0}

.request-detail-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:8px 0;background:var(--page)}
.request-detail-nav>span{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.request-detail-nav .secondary-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.page-shell:has(#trackerSection[hidden]) .result-section{margin-top:0}
@media(max-width:600px){.request-detail-nav{position:sticky;top:0;z-index:20;margin-bottom:12px;border-bottom:1px solid var(--line);padding:8px 0 12px}.request-detail-nav>span{font-size:11px}}

/* Detail mode is exclusive at every viewport size, including after rotation. */
#portalMain[data-view="details"]>#trackerSection,
#portalMain[data-view="details"]>#employeeRequests,
#portalMain[data-view="details"]>#notFound{display:none!important}
#portalMain[data-view="details"]>#resultSection{display:block!important;margin-top:0}
#portalMain[data-view="requests"]>#resultSection[hidden]{display:none!important}
.request-detail-end{display:flex;justify-content:flex-end;border-top:1px solid var(--line);margin-top:24px;padding-top:18px;padding-bottom:env(safe-area-inset-bottom,0px)}
.request-detail-end .secondary-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px}
@media(max-width:600px){
 .request-detail-end{display:flex;clear:both;margin-top:20px;padding-top:16px}
 .request-detail-end .secondary-btn{width:100%;min-height:48px;background:#174b7e;color:#fff;border-color:#174b7e;font-size:13px}
}

.request-loading{margin-top:24px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px 28px;animation:page-in 350ms ease-out both}
.loading-heading{display:flex;align-items:center;gap:14px}.loading-heading>div{min-width:0}
.loading-document{display:grid;place-items:center;width:42px;height:46px;flex:0 0 42px;background:#edf3f9;border-radius:8px;color:#174b7e}.loading-document svg{width:24px;height:24px}
.loading-heading h2{margin:0 0 5px;font-size:16px;font-weight:600;color:#263544}
.loading-heading p{margin:0;color:#5d6b79;font-size:12px;line-height:1.6}
.loading-track{height:3px;background:#e7edf3;border-radius:3px;overflow:hidden;margin:22px 0}
.loading-track>span{display:block;width:35%;height:100%;background:#47799f;animation:loading-travel 2s ease-in-out infinite}
.loading-placeholders{display:flex;flex-direction:column;gap:0}
.loading-placeholders>div{display:grid;grid-template-columns:100px 1fr 110px;gap:24px;padding:17px 0;border-bottom:1px solid #edf0f4}
.loading-placeholders>div:last-child{border:0}
.loading-placeholders span{height:10px;background:#edf1f5;border-radius:3px}.loading-placeholders span:nth-child(2){max-width:440px}.loading-placeholders>div:nth-child(2) span:nth-child(2){max-width:330px}
@keyframes loading-travel{from{transform:translateX(-110%)}to{transform:translateX(390%)}}
@media(max-width:600px){.request-loading{padding:20px 16px;margin-top:18px}.loading-heading{align-items:flex-start;gap:10px}.loading-heading h2{font-size:15px}.loading-placeholders>div{grid-template-columns:60px 1fr;gap:16px}.loading-placeholders span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){.request-loading,.loading-track>span{animation:none!important}.loading-track>span{transform:none;width:100%;background:#91abc1}}

/* Secure Entra sign-in additions */
.auth-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.auth-primary{width:220px;text-decoration:none}
.auth-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.signed-in-summary{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:2px 0}
.signed-in-summary>div:first-child{display:flex;flex-direction:column;gap:3px}
.signed-in-label{font-size:11px;line-height:1.2;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}
.signed-in-summary strong{font-size:15px;color:var(--navy)}
.signed-in-summary #signedInEmployeeId{font-size:12px;color:var(--muted)}
@media (max-width:720px){.signed-in-summary{align-items:stretch;flex-direction:column}.signed-in-actions{width:100%}.signed-in-actions .secondary-btn{flex:1}.auth-primary{width:100%}}
