/* Muazu Supplier Portal — brand: forest #013220, orange #FF4400, cream #F7F5EF */
.msp-wrap, .msp-admin-wrap {
	--msp-forest: #013220;
	--msp-orange: #FF4400;
	--msp-cream: #F7F5EF;
	--msp-ink: #202522;
	--msp-border: #E3E0D6;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--msp-ink);
	max-width: 760px;
	margin: 0 auto;
	padding: 20px 16px 60px;
	box-sizing: border-box;
}
.msp-wrap *, .msp-admin-wrap * { box-sizing: border-box; }

/* Hero / landing */
.msp-hero { background: var(--msp-forest); color: #fff; padding: 40px 24px; border-radius: 10px; margin-bottom: 32px; }
.msp-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 700; color: var(--msp-orange); margin: 0 0 10px; }
.msp-hero h1 { font-size: 28px; line-height: 1.2; margin: 0 0 14px; }
.msp-lede { color: rgba(255,255,255,0.8); font-size: 16px; line-height: 1.6; margin-bottom: 24px; }
.msp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.msp-steps-overview h2 { font-size: 20px; margin-bottom: 16px; }
.msp-step-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.msp-step-card { border: 1px solid var(--msp-border); border-radius: 8px; padding: 18px; }
.msp-step-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--msp-forest); color: #fff; font-weight: 700; margin-bottom: 10px; }
.msp-step-card h3 { margin: 0 0 6px; font-size: 15px; }
.msp-step-card p { margin: 0; font-size: 13px; color: #555; }

/* Buttons — large touch targets */
.msp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 12px 22px; border-radius: 6px; font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: opacity 0.15s ease; }
.msp-btn:hover { opacity: 0.9; }
.msp-btn-primary { background: var(--msp-orange); color: #fff; }
.msp-btn-outline { background: transparent; border-color: currentColor; color: var(--msp-forest); }
.msp-hero .msp-btn-outline { color: #fff; }
.msp-btn-lg { min-height: 54px; font-size: 16px; padding: 14px 28px; }
.msp-btn-sm { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.msp-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Cards */
.msp-card { background: #fff; border: 1px solid var(--msp-border); border-radius: 10px; padding: 22px; margin-bottom: 18px; }
.msp-card h2 { margin-top: 0; font-size: 19px; }
.msp-center { text-align: center; }
.msp-callout { background: var(--msp-cream); border-radius: 8px; padding: 16px; margin-top: 16px; text-align: center; }
.msp-muted { color: #767c73; font-size: 13px; }
.msp-warning { background: #FFF4E5; border-left: 3px solid var(--msp-orange); padding: 10px 14px; border-radius: 4px; font-size: 14px; }
.msp-required { color: var(--msp-orange); font-size: 11px; font-weight: 700; text-transform: uppercase; margin-left: 6px; }
.msp-optional { color: #9a9a9a; font-size: 12px; font-weight: 400; }

/* Forms — one field per row on mobile, minimal density */
.msp-field { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.msp-field input[type="text"], .msp-field input[type="email"], .msp-field input[type="tel"], .msp-field input[type="number"], .msp-field input[type="date"], .msp-field select, .msp-field textarea {
	display: block; width: 100%; margin-top: 6px; padding: 12px 14px; min-height: 48px; border: 1px solid var(--msp-border); border-radius: 6px; font-size: 15px; font-weight: 400; font-family: inherit;
}
.msp-field textarea { min-height: 80px; }
.msp-checkbox { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.msp-checkbox input { width: 20px; height: 20px; }

.msp-step { border: none; padding: 0; margin: 0; display: none; }
.msp-step.is-active { display: block; }
.msp-step legend { font-size: 17px; font-weight: 700; margin-bottom: 16px; padding: 0; }
.msp-step-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.msp-progress { height: 6px; background: var(--msp-cream); border-radius: 4px; margin-bottom: 24px; overflow: hidden; }
.msp-progress-bar { height: 100%; background: var(--msp-orange); transition: width 0.3s ease; }

.msp-status-message { min-height: 20px; font-size: 14px; }
.msp-status-message.is-error { color: #B3261E; }
.msp-status-message.is-success { color: var(--msp-forest); }

/* Badges */
.msp-badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.msp-badge-not_started, .msp-badge-draft { background: #EDEDED; color: #555; }
.msp-badge-submitted, .msp-badge-under_review { background: #FFF4E5; color: #B96A00; }
.msp-badge-changes_required { background: #FFE8E0; color: #C2410C; }
.msp-badge-verified, .msp-badge-published { background: #E4F1E8; color: #0F5C33; }
.msp-badge-rejected, .msp-badge-suspended { background: #FBE7E7; color: #B3261E; }
.msp-badge-archived, .msp-badge-temporarily_unavailable { background: #EDEDED; color: #767c73; }

.msp-status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.msp-status-dot-verified { background: #0F5C33; }
.msp-status-dot-under_review, .msp-status-dot-submitted { background: #B96A00; }
.msp-status-dot-changes_required { background: #C2410C; }
.msp-status-dot-rejected, .msp-status-dot-suspended { background: #B3261E; }
.msp-status-dot-not_started { background: #999; }

/* Dashboard */
.msp-dashboard { max-width: 900px; }
.msp-dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.msp-dash-header h1 { margin: 2px 0 0; font-size: 24px; }
.msp-status-pair { display: flex; align-items: center; gap: 8px; }
.msp-status-pair-label { font-size: 12px; color: #767c73; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.msp-dash-nav { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--msp-border); margin-bottom: 24px; padding-bottom: 0; -webkit-overflow-scrolling: touch; }
.msp-dash-nav-item { position: relative; padding: 12px 14px; white-space: nowrap; text-decoration: none; color: #555; font-weight: 600; font-size: 14px; border-bottom: 3px solid transparent; }
.msp-dash-nav-item.is-active { color: var(--msp-forest); border-bottom-color: var(--msp-orange); }
.msp-nav-badge { background: var(--msp-orange); color: #fff; font-size: 10px; border-radius: 10px; padding: 1px 6px; margin-left: 4px; }

.msp-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.msp-stat-card { background: var(--msp-cream); border-radius: 8px; padding: 16px; text-align: center; }
.msp-stat-num { display: block; font-size: 26px; font-weight: 700; color: var(--msp-forest); }
.msp-stat-label { font-size: 12px; color: #666; }

/* Supply list */
.msp-supply-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--msp-border); flex-wrap: wrap; }
.msp-supply-row:last-child { border-bottom: none; }
.msp-supply-main { display: flex; flex-direction: column; gap: 2px; }
.msp-supply-meta { font-size: 12px; color: #767c73; }

/* Document uploaders */
.msp-doc-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0; }
.msp-doc-uploader { border: 1px dashed var(--msp-border); border-radius: 8px; padding: 14px; }
.msp-doc-uploader.msp-doc-needs-attention { border-color: var(--msp-orange); background: #FFF8F5; }
.msp-doc-uploader p { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.msp-doc-uploaded { color: #0F5C33 !important; font-weight: 700 !important; }
.msp-doc-missing { color: var(--msp-orange) !important; font-weight: 600 !important; font-size: 12px !important; margin-top: 6px !important; }
.msp-doc-list { list-style: none; padding: 0; margin: 0; }
.msp-doc-list li { padding: 6px 0; font-size: 14px; }

.msp-notif-list { list-style: none; padding: 0; margin: 0; }
.msp-notif-list li { padding: 12px 0; border-bottom: 1px solid var(--msp-border); font-size: 14px; display: flex; justify-content: space-between; gap: 10px; }
.msp-notif-list li.is-unread { font-weight: 700; }
.msp-notif-list a { color: var(--msp-ink); text-decoration: none; }

@media (min-width: 640px) {
	.msp-step-grid { grid-template-columns: repeat(4, 1fr); }
	.msp-stat-grid { grid-template-columns: repeat(4, 1fr); }
	.msp-doc-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------- */
/* Admin (wp-admin) — same tokens, denser layout                 */
/* ------------------------------------------------------------- */
.msp-admin-wrap { max-width: 1200px; padding: 20px 0; }
.msp-section-title { margin-top: 28px; }
.msp-filter-bar { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.msp-filter-bar select, .msp-filter-bar input[type="search"] { padding: 6px 10px; }
.msp-table th, .msp-table td { padding: 10px 12px; vertical-align: top; }
.msp-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.msp-detail-main, .msp-detail-side { min-width: 0; }
.msp-kv th { text-align: left; width: 160px; color: #555; font-weight: 600; padding: 6px 10px 6px 0; vertical-align: top; }
.msp-kv td { padding: 6px 0; }
.msp-timeline { list-style: none; margin: 0; padding: 0; }
.msp-timeline li { padding: 8px 0; border-bottom: 1px solid var(--msp-border); font-size: 13px; }
.msp-actions-card .msp-btn, .msp-actions-card button { display: block; width: 100%; margin-bottom: 8px; }
.msp-actions-card h3 { margin-top: 18px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: #666; }
.msp-note-field { width: 100%; margin-bottom: 10px; }
.msp-publish-card { border-color: var(--msp-orange); }

@media (max-width: 900px) {
	.msp-detail-grid { grid-template-columns: 1fr; }
}
