/* Supplier Management - Frontend Styles */
.smp-container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 20px 15px;
}

.smp-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
	margin-bottom: 10px;
}
.smp-badge-active {
	background: #e6f6ec;
	color: #1e7e34;
}
.smp-badge-expired {
	background: #fdeaea;
	color: #c0392b;
}

/* Search box */
.smp-search-form {
	display: flex;
	gap: 8px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.smp-search-input {
	flex: 1;
	min-width: 220px;
	padding: 10px 14px;
	border: 1px solid #dcdfe4;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
}
.smp-search-btn {
	padding: 10px 22px;
	border: none;
	border-radius: 8px;
	background: #2563eb;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	transition: background .2s ease;
}
.smp-search-btn:hover {
	background: #1d4fd8;
}

.smp-live-results {
	position: relative;
}

/* Grid */
.smp-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
@media (max-width: 900px) {
	.smp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.smp-grid { grid-template-columns: 1fr; }
}

.smp-card {
	border: 1px solid #eaecef;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}
.smp-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
	transform: translateY(-2px);
}
.smp-card-thumb img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}
.smp-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.smp-card-title {
	margin: 4px 0 8px;
	font-size: 18px;
	line-height: 1.5;
}
.smp-card-title a {
	color: inherit;
	text-decoration: none;
}
.smp-card-excerpt {
	color: #5f6672;
	font-size: 14px;
	line-height: 1.7;
	flex: 1;
	margin-bottom: 12px;
}
.smp-card-link {
	font-weight: 600;
	text-decoration: none;
	color: #2563eb;
}

.smp-empty {
	padding: 30px;
	text-align: center;
	color: #888;
}

.smp-loadmore-wrap {
	text-align: center;
	margin-top: 24px;
}
.smp-load-more {
	padding: 10px 28px;
	border-radius: 8px;
	cursor: pointer;
}

/* Single page */
.smp-single-header { margin-bottom: 20px; }
.smp-single-title { font-size: 30px; margin: 6px 0 12px; }
.smp-single-excerpt { font-size: 16px; color: #555; margin-bottom: 16px; }
.smp-cta-btn {
	display: inline-block;
	padding: 12px 26px;
	background: #2563eb;
	color: #fff !important;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
}
.smp-single-thumb img { width: 100%; border-radius: 12px; margin-bottom: 20px; }
.smp-single-content { line-height: 1.9; font-size: 16px; margin-bottom: 30px; }
.smp-expired-notice {
	padding: 16px;
	background: #fdeaea;
	color: #c0392b;
	border-radius: 8px;
}

/* Form */
.smp-form-wrap {
	margin-top: 30px;
	padding: 28px;
	border-radius: 14px;
	background: #f8f9fb;
	border: 1px solid #eef0f3;
}
.smp-form-title { margin-top: 0; font-size: 22px; margin-bottom: 20px; }
.smp-form-row { margin-bottom: 16px; }
.smp-form-row label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.smp-req { color: #c0392b; }
.smp-form-row input[type="text"],
.smp-form-row input[type="email"],
.smp-form-row input[type="tel"],
.smp-form-row input[type="number"],
.smp-form-row input[type="file"],
.smp-form-row textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #dcdfe4;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	box-sizing: border-box;
	background: #fff;
}
.smp-form-row textarea { resize: vertical; }

.smp-hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.smp-submit-btn {
	padding: 12px 32px;
	background: #16a34a;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	cursor: pointer;
	font-family: inherit;
}
.smp-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.smp-form-message {
	margin-top: 14px;
	font-weight: 600;
}
.smp-form-message.smp-success { color: #16a34a; }
.smp-form-message.smp-error { color: #c0392b; }

/* RTL / LTR fine tuning (falls back to theme direction automatically via dir attr) */
.smp-rtl { direction: rtl; text-align: right; }
.smp-ltr { direction: ltr; text-align: left; }
