/* Speed Track portal — clients and agents. Mobile first, prints cleanly. */

.stlp {
	--ink: #111827;
	--muted: #6b7280;
	--line: #e5e7eb;
	--brand: #0b3d91;
	--bg: #f6f7f9;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 14px 40px;
	color: var(--ink);
	font-size: 15px;
	line-height: 1.55;
	box-sizing: border-box;
}
.stlp *, .stlp *::before, .stlp *::after { box-sizing: border-box; }
.stlp-plain { padding-top: 40px; }

.stlp-top {
	display: flex; justify-content: space-between; align-items: center;
	gap: 14px; flex-wrap: wrap;
	padding: 16px 0 12px; border-bottom: 3px solid var(--brand); margin-bottom: 0;
}
.stlp-brand { display: flex; align-items: center; gap: 12px; }
.stlp-brand img { max-height: 46px; max-width: 160px; height: auto; width: auto; }
.stlp-brand strong { display: block; font-size: 17px; color: var(--brand); line-height: 1.25; }
.stlp-brand span { display: block; font-size: 12.5px; color: var(--muted); }
.stlp-who { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stlp-who span { font-weight: 600; color: var(--ink); }
.stlp-who a { color: var(--brand); text-decoration: none; }

.stlp-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.stlp-tabs a {
	padding: 11px 15px; text-decoration: none; color: var(--muted);
	font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.stlp-tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.stlp-tabs a:hover { color: var(--brand); }

.stlp-lead { color: var(--muted); font-size: 13.5px; margin: -8px 0 16px; }

.stlp-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stlp-stat {
	flex: 1 1 160px; background: #fff; border: 1px solid var(--line);
	border-left: 4px solid var(--brand); border-radius: 7px; padding: 12px 14px;
}
.stlp-stat span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.stlp-stat strong { display: block; font-size: 21px; margin-top: 3px; }
.stlp-stat-red { border-left-color: #dc2626; } .stlp-stat-red strong { color: #dc2626; }
.stlp-stat-green { border-left-color: #16a34a; } .stlp-stat-green strong { color: #16a34a; }

.stlp-split { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.stlp-split > .stlp-card { flex: 1 1 380px; }

.stlp-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin-bottom: 16px; }
.stlp-card h2 { margin: 0 0 10px; font-size: 19px; }
.stlp-card h3 { margin: 0 0 12px; font-size: 16px; color: var(--brand); }
.stlp-card h4 { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }

.stlp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stlp-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 7px 8px; border-bottom: 2px solid var(--line); }
.stlp-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.stlp-table tfoot th { border-top: 2px solid #c9ccd1; border-bottom: 0; color: var(--ink); font-size: 13px; padding-top: 10px; }
.stlp-table .num, .stlp-table th.num { text-align: right; white-space: nowrap; }
.stlp-table a { color: var(--brand); font-weight: 600; text-decoration: none; }
.stlp-row-open td { background: #fafbfc; }
.stlp-row-total td { border-top: 2px solid #c9ccd1; }

.stlp-mini { width: 100%; font-size: 14px; border-collapse: collapse; }
.stlp-mini td { padding: 6px 0; border-bottom: 1px solid #f1f2f4; }
.stlp-mini td:last-child { text-align: right; }

.stlp-pill { --c: #64748b; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #f1f5f9; color: #334155; background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 82%, #000); border: 1px solid color-mix(in srgb, var(--c) 24%, #fff); }
.stlp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.stlp-sub { font-size: 12.5px; color: var(--muted); }
.stlp-red { color: #dc2626; }
.stlp-back { text-decoration: none; color: var(--brand); font-weight: 600; font-size: 14px; }

.stlp-btn {
	display: inline-block; background: var(--brand); color: #fff; border: 0;
	padding: 10px 18px; border-radius: 6px; font-size: 14px; font-weight: 600;
	cursor: pointer; text-decoration: none; line-height: 1.3;
}
.stlp-btn:hover { opacity: .92; color: #fff; }
.stlp-btn-sm { padding: 7px 13px; font-size: 13px; }
.stlp-btn-wide { width: 100%; text-align: center; margin-top: 6px; }
.stlp-ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }

.stlp-ok, .stlp-err { padding: 10px 13px; border-radius: 6px; font-size: 14px; margin: 0 0 14px; }
.stlp-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.stlp-err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.stlp-filters { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.stlp-filters label { font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }

.stlp form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.stlp form input[type=text], .stlp form input[type=password], .stlp form input[type=number],
.stlp form input[type=date], .stlp form input[type=email], .stlp form input[type=file],
.stlp form select, .stlp form textarea {
	display: block; width: 100%; margin-top: 3px; padding: 9px 11px;
	border: 1px solid #cbd0d6; border-radius: 6px; font-size: 15px; color: var(--ink); background: #fff;
}
.stlp form textarea { resize: vertical; }
.stlp-check { display: flex !important; align-items: center; gap: 7px; }
.stlp-check input { width: auto !important; margin: 0 !important; }
.stlp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; }

.stlp-login { max-width: 420px; margin: 0 auto; }
.stlp-login h2 { font-size: 18px; margin: 16px 0 14px; }
.stlp-login .stlp-brand { padding-bottom: 14px; border-bottom: 1px solid var(--line); }

.stlp-timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--line); }
.stlp-timeline li { position: relative; padding: 0 0 15px 14px; font-size: 14px; }
.stlp-timeline .dot { position: absolute; left: -27px; top: 4px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--line); }

.stlp-proof { display: flex; flex-wrap: wrap; gap: 12px; }
.stlp-proof-item { flex: 0 1 190px; border: 1px solid var(--line); border-radius: 6px; padding: 8px; }
.stlp-proof-item img { width: 100%; height: auto; border-radius: 4px; display: block; }
.stlp-proof-item audio { width: 100%; }

.stlp-work { border: 1px solid var(--line); border-radius: 7px; padding: 13px; margin-bottom: 13px; background: #fcfcfd; }
.stlp-work-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }

.stlp-foot { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

@media (max-width: 760px) {
	.stlp-top { flex-direction: column; align-items: flex-start; }
	.stlp-tabs { overflow-x: auto; flex-wrap: nowrap; }
	.stlp-tabs a { white-space: nowrap; }
	.stlp-table { font-size: 13.5px; }
	.stlp-table th, .stlp-table td { padding: 7px 5px; }
	.stlp-card { padding: 14px; }
}

@media print {
	.stlp-tabs, .stlp-who, .stlp-filters, .stlp-btn, .stlp-back, .stlp-work { display: none !important; }
	.stlp { max-width: none; padding: 0; }
	.stlp-card { border: 0; padding: 0; }
	.stlp-stat { border: 1px solid #ccc; }
}

/* ---- v4.0: photos, delivery steps, downloads ---- */
.stlp-download { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 14px; }
.stlp-proofcols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .stlp-proofcols { grid-template-columns: 1fr; } }
.stl-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.stl-strip-item { display: block; width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f3f4f6; }
.stl-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stl-strip-audio { width: 100%; max-width: 280px; height: auto; padding: 6px; font-size: 13px; }
.stl-strip-audio audio { width: 100%; }
.stl-strip-doc { display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; font-size: 13px; }

.stlp-consignee { background: #f9fafb; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.stlp-links { display: flex; gap: 10px; margin-top: 6px; }
.stlp-links a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 600; }
.stlp-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .3px; color: var(--muted); margin-top: 10px; }
.stlp-inline { display: inline-block; margin: 6px 6px 6px 0; }
.stlp-deliver { margin-top: 10px; }
.stlp-deliver > summary { list-style: none; display: block; text-align: center; cursor: pointer; }
.stlp-deliver > summary::-webkit-details-marker { display: none; }
.stlp-form { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.stlp-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; }
.stlp-form input[type=text], .stlp-form input[type=number], .stlp-form input[type=date], .stlp-form select, .stlp-form textarea { width: 100%; padding: 11px 12px; font-size: 16px; border: 1px solid #d1d5db; border-radius: 8px; background: #fff; }
.stlp-step { border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-weight: 600; display: flex; flex-direction: column; gap: 8px; }
.stlp-step > span { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; align-items: center; justify-content: center; font-size: 14px; margin-bottom: 2px; }
.stlp-step small { font-weight: 400; color: var(--muted); }
.stlp-proof-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stlp-pick { position: relative; display: flex !important; align-items: center; justify-content: center; min-height: 56px; border: 2px dashed var(--brand); border-radius: 10px; color: var(--brand); font-size: 16px !important; cursor: pointer; background: #f5f8ff; text-align: center; }
.stlp-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.stlp-radio { flex-direction: row !important; align-items: center; gap: 10px !important; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 500 !important; }
.stlp-radio input { width: 20px; height: 20px; }
.stlp-radio-no { color: #991b1b; }
.stlp-work-issue { border-left: 4px solid #dc2626; }
.stl-upload-note:not(:empty) { color: #065f46; font-weight: 500; }
.stl-preview { display: flex; flex-wrap: wrap; gap: 6px; }
.stl-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }

@media print {
	.stlp-download, .stlp-deliver, .stlp-links, .stlp-inline { display: none !important; }
}

/* four-step client progress */
.stl-csteps{list-style:none;display:flex;margin:14px 0 6px;padding:0;counter-reset:s}
.stl-csteps li{flex:1;position:relative;text-align:center;font-size:13px;color:#9ca3af;padding-top:26px}
.stl-csteps li:before{content:"";position:absolute;top:9px;left:-50%;width:100%;height:3px;background:#e5e7eb}
.stl-csteps li:first-child:before{display:none}
.stl-csteps li.done:before{background:#16a34a}
.stl-csteps .dot{position:absolute;top:2px;left:50%;margin-left:-9px;width:18px;height:18px;border-radius:50%;background:#e5e7eb;z-index:1}
.stl-csteps li.done .dot{background:#16a34a}
.stl-csteps li.now .dot{box-shadow:0 0 0 4px #bbf7d0}
.stl-csteps li.done{color:#111827}
.stl-csteps strong{display:block;font-size:13px}
.stl-csteps small{display:block;color:#6b7280;font-size:11.5px}
