/*
 * Shipment Tracking Manager – separate tracking result page.
 * Metrics were measured from the supplied reference screenshot (1138px wide):
 * banner 138px + 10px grey strip, 35px gap, 28px red bars, 25px(+1px) summary rows,
 * 22px(+1px) report rows, 18px header rows, columns 20% / 30% / 50%, side margins ~2.5%.
 * Everything is scoped to .stmr and hardened (!important on table/button basics) so theme CSS cannot restyle it.
 * Plain colours come first as a fallback; var() overrides them when the Settings colours are set.
 */
.stmr,.stmr *,.stmr *::before,.stmr *::after{box-sizing:border-box}
.stmr{display:block;width:100%;max-width:100%;margin:0;padding:0;background:#fff;color:#333;font:16px/25px Arial,Helvetica,sans-serif;text-align:left;letter-spacing:normal;text-transform:none;text-indent:0}
.stmr-full{width:100vw;max-width:100vw;position:relative;left:50%;margin-left:-50vw !important}

/* Banner */
.stmr .stmr-banner{height:138px;margin:0;padding:0;background-color:#e9edf0;background-image:linear-gradient(#e6eaee,#f3f5f7);background-position:center;background-repeat:no-repeat;background-size:cover;overflow:hidden}
.stmr .stmr-banner[style*="background-image"]{background-size:cover}
.stmr table.stmr-t.stmr-banner-t{height:138px}
.stmr table.stmr-t.stmr-banner-t td.stmr-banner-l{padding-left:14px !important;vertical-align:middle !important}
.stmr table.stmr-t.stmr-banner-t td.stmr-banner-r{padding-right:16px !important;vertical-align:middle !important;text-align:right !important;width:40%}
.stmr .stmr-title{margin:0;padding:0;border:0;background:none;color:#fe3d21;color:var(--stm-title,#fe3d21);font:600 34px/1.1 "Open Sans","Segoe UI",Arial,Helvetica,sans-serif;text-transform:none;letter-spacing:0}
.stmr .stmr-logo{display:inline-block;width:auto;height:auto;max-width:100%;max-height:100px;margin:0;padding:0;border:0;box-shadow:none;border-radius:0;vertical-align:middle}
.stmr .stmr-strip{height:10px;margin:0;padding:0;background:#ebebeb}

/* Body */
.stmr .stmr-body{margin:0;padding:35px 2.5% 30px;background:#fff}
.stmr .stmr-section{margin:0;padding:0}
.stmr .stmr-gap-s{margin-top:18px}
.stmr .stmr-gap-l{margin-top:36px}

/* Red bars */
.stmr .stmr-bar{margin:0;padding:0 5px;border:0;border-radius:0;box-shadow:none;background:#cc0001;background:var(--stm-bar,#cc0001);color:#fff;font:700 16px/28px Arial,Helvetica,sans-serif;text-align:left}

/* Tables: hard reset against theme table styles */
.stmr table.stmr-t{width:100%;margin:0 !important;padding:0;border:0 !important;border-collapse:collapse !important;border-spacing:0 !important;background:transparent !important;box-shadow:none !important;table-layout:fixed;font:inherit;color:inherit}
.stmr table.stmr-t thead,.stmr table.stmr-t tbody,.stmr table.stmr-t tr{background:transparent !important;border:0 !important;box-shadow:none !important}
.stmr table.stmr-t th,.stmr table.stmr-t td{margin:0 !important;padding:0 !important;border:0 !important;border-radius:0 !important;background:transparent !important;box-shadow:none !important;color:#333 !important;font:400 16px/22px Arial,Helvetica,sans-serif !important;text-align:left !important;text-transform:none !important;letter-spacing:normal !important;vertical-align:top !important;word-wrap:break-word;overflow-wrap:break-word}

/* A. Summary */
.stmr table.stmr-sum th,.stmr table.stmr-sum td{line-height:25px !important;border-bottom:1px solid #eee !important}
.stmr table.stmr-sum th{width:36%;font-weight:700 !important;color:#222 !important}
.stmr .stmr-note{font-size:13px;color:#555}

/* B. Detail Report / C. Shipment Details */
.stmr table.stmr-rep thead th,.stmr table.stmr-det thead th{background:#fff6c6 !important;background:var(--stm-subbar,#fff6c6) !important;color:#222 !important;font-weight:700 !important;line-height:18px !important}
.stmr table.stmr-rep tbody td,.stmr table.stmr-det tbody td{border-bottom:1px solid #7fb7d7 !important;border-bottom-color:var(--stm-line,#7fb7d7) !important}
.stmr table.stmr-det tbody td{line-height:18px !important}
.stmr table.stmr-rep .stmr-c1,.stmr table.stmr-det .stmr-c1{width:20%}
.stmr table.stmr-rep .stmr-c2,.stmr table.stmr-det .stmr-c2{width:30%}
.stmr table.stmr-det .stmr-info{line-height:18px !important}
.stmr table.stmr-t strong{font-weight:700;color:#222}
.stmr table.stmr-rep td.stmr-empty{padding:4px 0 !important}
.stmr .stmr-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

/* "Track me" (same markup as the existing action: link or POST form button) */
.stmr .stm-track-link{display:inline;margin:0 0 0 10px !important;padding:0 !important;border:0 !important;background:none !important;box-shadow:none !important;color:#337ab7 !important;font:700 16px/25px Arial,Helvetica,sans-serif !important;text-decoration:none !important;text-transform:none !important;cursor:pointer;-webkit-appearance:none;appearance:none}
.stmr .stm-track-link:hover,.stmr .stm-track-link:focus{text-decoration:underline !important}
.stmr .stm-inline-form{display:inline;margin:0;padding:0;border:0;background:none}
.stmr .stm-track-link:focus-visible{outline:2px solid #1e73be;outline-offset:2px}

/* Inline fallback (result page not configured): no banner, same table styling */
.stmr.stmr-inline .stmr-body{padding:0}

/* Small screens: keep hierarchy, allow tables to scroll horizontally */
@media (max-width:640px){
	.stmr{font-size:14px}
	.stmr .stmr-banner,.stmr table.stmr-t.stmr-banner-t{height:96px}
	.stmr .stmr-title{font-size:24px}
	.stmr .stmr-logo{max-height:64px}
	.stmr .stmr-body{padding:20px 12px 24px}
	.stmr table.stmr-sum th{width:42%}
	.stmr table.stmr-t th,.stmr table.stmr-t td,.stmr .stm-track-link{font-size:14px !important}
	.stmr table.stmr-rep,.stmr table.stmr-det{min-width:520px}
}

/* ---------- Detail Report: date-wise timeline (replaces the single table) ---------- */
.stmr .stmr-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.stmr .stmr-tl{margin:0;padding:6px 8px 8px;background:#f2f2f2}
.stmr .stmr-tl-empty{margin:0;padding:10px 4px;font:400 15px/22px Arial,Helvetica,sans-serif;color:#333}
.stmr table.stmr-tlt{width:100%;margin:12px 0 0 !important;padding:0;border:0 !important;border-collapse:separate !important;border-spacing:0 3px !important;table-layout:fixed;background:transparent !important;box-shadow:none !important}
.stmr table.stmr-tlt:first-child{margin-top:0 !important}
.stmr table.stmr-tlt thead,.stmr table.stmr-tlt tbody,.stmr table.stmr-tlt tr{background:transparent !important;border:0 !important;box-shadow:none !important}
.stmr table.stmr-tlt th,.stmr table.stmr-tlt td{margin:0 !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;text-align:left !important;text-transform:none !important;letter-spacing:normal !important;vertical-align:top !important;color:#222 !important;font:400 15px/21px Arial,Helvetica,sans-serif !important;word-wrap:break-word;overflow-wrap:break-word}
.stmr table.stmr-tlt col.stmr-tl-cno{width:64px}
.stmr table.stmr-tlt col.stmr-tl-cdesc{width:36%}
.stmr table.stmr-tlt col.stmr-tl-cloc{width:30%}
.stmr table.stmr-tlt col.stmr-tl-ctime{width:11%}
/* date heading row */
.stmr table.stmr-tlt thead th{padding:7px 8px 6px !important;background:#f2f2f2 !important;border-bottom:1px solid #bdbdbd !important;font-weight:700 !important;color:#222 !important}
.stmr table.stmr-tlt thead th.stmr-tl-date{padding-left:8px !important}
/* event rows */
.stmr table.stmr-tlt tbody td{padding:10px 8px !important;background:#fff !important}
.stmr table.stmr-tlt tbody td.stmr-tl-no{padding:10px 0 !important;background:#c8c8c8 !important;text-align:center !important;font-weight:700 !important;color:#222 !important}
.stmr table.stmr-tlt tbody td.stmr-tl-desc{padding-left:10px !important}
.stmr table.stmr-tlt tbody td.stmr-tl-pcs{color:#1a6fb5 !important}

/* mobile: one card per event, number box on the left, no horizontal overflow */
@media (max-width:640px){
	.stmr .stmr-tl{padding:6px 6px 8px}
	.stmr table.stmr-tlt,.stmr table.stmr-tlt thead,.stmr table.stmr-tlt tbody,.stmr table.stmr-tlt tr,.stmr table.stmr-tlt th,.stmr table.stmr-tlt td{display:block !important;width:auto}
	.stmr table.stmr-tlt colgroup{display:none}
	.stmr table.stmr-tlt{margin-top:10px !important;border-spacing:0 !important}
	.stmr table.stmr-tlt thead th.stmr-tl-colh{display:none !important}
	.stmr table.stmr-tlt thead th.stmr-tl-date{padding:8px 8px 6px !important;font-size:15px !important}
	.stmr table.stmr-tlt tbody tr{position:relative;margin:3px 0 0;padding:8px 8px 8px 58px;min-height:46px;background:#fff !important}
	.stmr table.stmr-tlt tbody td{padding:0 !important;background:transparent !important}
	.stmr table.stmr-tlt tbody td.stmr-tl-no{position:absolute;left:0;top:0;bottom:0;width:46px;padding:0 !important;background:#c8c8c8 !important;display:-webkit-flex !important;display:flex !important;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}
	.stmr table.stmr-tlt tbody td.stmr-tl-desc{padding-left:0 !important;padding-bottom:4px !important;font-weight:700 !important}
	.stmr table.stmr-tlt tbody td.stmr-tl-loc,.stmr table.stmr-tlt tbody td.stmr-tl-time,.stmr table.stmr-tlt tbody td.stmr-tl-pcs{font-size:13px !important;line-height:19px !important;color:#444 !important}
	.stmr table.stmr-tlt tbody td.stmr-tl-pcs{color:#1a6fb5 !important}
	.stmr table.stmr-tlt tbody td[data-label]::before{content:attr(data-label) ": ";font-weight:700;color:#222}
}
