/* Supplier Portal front-end styles */

.sp-notice {
	padding: 12px 16px;
	border-radius: 4px;
	margin: 0 0 16px;
	font-size: 14px;
	border-left: 4px solid #ccc;
}
.sp-notice-success { background: #eafaf0; border-color: #2ecc71; color: #1e7e42; }
.sp-notice-error   { background: #fdecea; border-color: #e74c3c; color: #a12a20; }
.sp-notice-info    { background: #eef6fc; border-color: #3498db; color: #1c5b80; }

.sp-form { max-width: 560px; margin: 0 0 24px; }
.sp-field { margin: 0 0 14px; display: flex; flex-direction: column; }
.sp-field label { font-weight: 600; margin-bottom: 4px; font-size: 13px; }
.sp-field input[type="text"],
.sp-field input[type="email"],
.sp-field input[type="url"],
.sp-field input[type="password"],
.sp-field input[type="number"],
.sp-field input[type="date"],
.sp-field input[type="file"],
.sp-field textarea,
.sp-field select {
	padding: 8px 10px;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
}
.sp-field-inline { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
.sp-field-inline label { margin: 0 4px 0 0; }
.sp-field-inline input { width: auto; flex: 1 1 120px; }
.sp-submit { margin-top: 8px; }

.sp-button {
	display: inline-block;
	background: #2271b1;
	color: #fff;
	border: none;
	padding: 10px 18px;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	margin: 0 6px 6px 0;
}
.sp-button:hover { background: #135e96; color: #fff; }
.sp-button-secondary { background: #6c757d; }
.sp-button-secondary:hover { background: #565e64; }
.sp-button-small { padding: 5px 10px; font-size: 12px; }
.sp-link-danger { color: #c0392b; text-decoration: underline; margin-left: 8px; font-size: 13px; }

.sp-table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.sp-table th, .sp-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e2e4e7; font-size: 14px; }
.sp-table th { background: #f6f7f7; font-weight: 600; }

.sp-status { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; text-transform: capitalize; }
.sp-status-pending, .sp-status-submitted { background: #fff4dd; color: #9a6700; }
.sp-status-approved, .sp-status-open, .sp-status-accepted { background: #eafaf0; color: #1e7e42; }
.sp-status-rejected, .sp-status-closed { background: #fdecea; color: #a12a20; }

.sp-dashboard-header h3 { margin-bottom: 4px; }
.sp-dashboard-stats { display: flex; gap: 16px; margin: 16px 0 24px; flex-wrap: wrap; }
.sp-stat { background: #f6f7f7; border-radius: 6px; padding: 16px 20px; min-width: 140px; text-align: center; }
.sp-stat-num { display: block; font-size: 28px; font-weight: 700; color: #2271b1; }
.sp-stat-label { display: block; font-size: 13px; color: #555; margin-top: 4px; }
.sp-dashboard-nav { margin-bottom: 16px; }

.sp-filter-form { margin: 0 0 16px; }
.sp-help { color: #666; font-size: 13px; margin-top: -6px; }
.sp-rfq-description { margin: 16px 0; line-height: 1.6; }
