/*
 * WMS design system — the modern look for new server-rendered (Blade) pages, adapted from the
 * NT-163 React screens (brand #84C031, dark #34495E).
 *
 * Loaded globally (template.blade.php), but EVERY class is `wms-` prefixed. Nothing in
 * niche.min.css / buttery.css uses that prefix, so this file is purely additive: it styles only
 * elements that opt in with a `wms-` class and cannot affect any existing Backbone/React screen.
 * Use these classes on new Blade pages instead of the older .form-row / .g form classes.
 */

.wms-page {
	max-width: 920px;
	margin: 0 auto;
	padding: 24px 24px 64px;
	font-family: "source-sans-pro", helvetica, arial, sans-serif;
}

.wms-heading {
	color: #34495E;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	margin: 4px 0 4px;
}

.wms-heading small {
	display: block;
	font-size: 14px;
	font-weight: 400;
	color: #95A5A6;
	margin-top: 6px;
}

.wms-top-error {
	background: #fdf3f2;
	border: 1px solid #E74C3C;
	color: #c0392b;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 13px;
	margin: 18px 0 0;
}

/* Highlighted guidance band (the green "success" note the React create screens showed). */
.wms-note {
	border-radius: 6px;
	padding: 11px 14px;
	font-size: 13px;
	line-height: 1.4;
	margin: 18px 0 0;
}

.wms-note-success {
	background: #eef7e3;
	border: 1px solid #cfe8ad;
	color: #4f7a1e;
}

.wms-card {
	background: #fff;
	border: 1px solid #dde3ea;
	border-radius: 8px;
	margin-top: 18px;
}

.wms-section {
	border-bottom: 1px solid #dde3ea;
	padding: 20px 22px;
}

.wms-section:last-child {
	border-bottom: 0;
}

.wms-section-title {
	font-size: 11px;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	color: #7f8c8d;
	margin: 0 0 16px;
	font-weight: 700;
}

.wms-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 24px;
}

.wms-full {
	grid-column: 1 / -1;
}

@media (max-width: 720px) {
	.wms-grid {
		grid-template-columns: 1fr;
	}
}

.wms-row label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: #34495E;
	margin-bottom: 6px;
}

.wms-opt {
	color: #7f8c8d;
	font-weight: 400;
	font-style: italic;
}

.wms-row input,
.wms-row select {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid #dde3ea;
	border-radius: 6px;
	font-size: 13px;
	color: #34495E;
	background: #fff;
	font-family: inherit;
	box-sizing: border-box;
	height: auto;
}

.wms-row input:focus,
.wms-row select:focus {
	outline: none;
	border-color: #84C031;
	box-shadow: 0 0 0 2px rgba(132, 192, 49, 0.15);
}

.wms-row.wms-invalid input,
.wms-row.wms-invalid select {
	border-color: #E74C3C;
	background: #fdf3f2;
}

.wms-err {
	color: #E74C3C;
	font-size: 11.5px;
	margin-top: 4px;
}

.wms-action-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
}

.wms-spacer {
	flex: 1;
}

.wms-btn {
	display: inline-block;
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 10px 22px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.2;
}

.wms-btn-primary {
	background: #84C031;
	color: #fff;
}

.wms-btn-primary:hover {
	background: #77ad2b;
}

.wms-btn-secondary {
	background: #fff;
	color: #34495E;
	border-color: #dde3ea;
}

.wms-btn-secondary:hover {
	background: #f5f7f9;
}

/* Post-create confirmation card ("X created — continue to settings"). */
.wms-confirm {
	max-width: 520px;
	margin: 56px auto;
	text-align: center;
	padding: 36px 28px;
}

.wms-confirm-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #84C031;
	color: #fff;
	font-size: 30px;
	line-height: 1;
	margin-bottom: 16px;
}

.wms-confirm h2 {
	color: #34495E;
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 8px;
}

.wms-confirm p {
	color: #7f8c8d;
	font-size: 13.5px;
	margin: 0 0 24px;
}

.wms-confirm .wms-action-bar {
	justify-content: center;
	margin-top: 0;
}
