#scd-dashboard-root {
	font-family: 'Outfit', system-ui, sans-serif;
}

.scd-fe-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: #f7f3ec;
	overflow-y: auto;
	cursor: auto;
}

.scd-fe-overlay * {
	box-sizing: border-box;
	cursor: auto;
}

/* Login screen */

.scd-fe-login-wrap {
	min-height: 100vh;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.scd-fe-login-card {
	width: 100%;
	max-width: 380px;
	background: #ffffff;
	border: 1px solid rgba(201, 169, 110, 0.25);
	border-radius: 12px;
	padding: 36px 32px;
	box-shadow: 0 20px 50px rgba(13, 43, 30, 0.12);
}

.scd-fe-login-title {
	font-size: 22px;
	font-weight: 700;
	color: #0d2b1e;
	margin: 0 0 6px;
	text-align: center;
}

.scd-fe-login-sub {
	font-size: 13px;
	color: #3d3d3d;
	opacity: 0.7;
	text-align: center;
	margin: 0 0 28px;
}

.scd-fe-field {
	margin-bottom: 16px;
}

.scd-fe-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #0d2b1e;
	margin-bottom: 6px;
}

.scd-fe-field input {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid rgba(201, 169, 110, 0.35);
	border-radius: 6px;
	font-family: inherit;
	font-size: 14px;
	color: #1a1a1a;
	background: #fff;
	outline: none;
	transition: border-color 0.2s;
}

.scd-fe-field input:focus {
	border-color: #6bbb58;
}

.scd-fe-password-wrap {
	position: relative;
}

.scd-fe-password-wrap input {
	padding-right: 44px;
}

.scd-fe-password-toggle {
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	border-radius: 6px;
	padding: 0;
	color: #757575;
	cursor: pointer;
}

.scd-fe-password-toggle:hover {
	color: #0d2b1e;
	background: #f7f3ec;
}

.scd-fe-password-toggle:focus-visible {
	outline: 2px solid #6bbb58;
	outline-offset: 1px;
}

.scd-fe-login-error {
	background: #fdeceb;
	color: #b3261e;
	font-size: 13px;
	padding: 10px 12px;
	border-radius: 6px;
	margin-bottom: 16px;
	display: none;
}

.scd-fe-login-error.is-visible {
	display: block;
}

.scd-fe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	background: #6bbb58;
	color: #0d2b1e;
	border: none;
	border-radius: 6px;
	padding: 12px 18px;
	font-family: inherit;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: filter 0.2s;
}

.scd-fe-btn:hover {
	filter: brightness(0.95);
}

.scd-fe-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.scd-fe-btn-secondary {
	width: auto;
	background: #fff;
	color: #0d2b1e;
	border: 1px solid rgba(201, 169, 110, 0.4);
}

/* Dashboard shell */

.scd-fe-app {
	max-width: 1200px;
	margin: 0 auto;
	padding: 28px 24px 60px;
}

.scd-fe-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 18px 0 24px;
	border-bottom: 1px solid rgba(201, 169, 110, 0.25);
	margin-bottom: 24px;
}

.scd-fe-header h1 {
	font-size: 24px;
	font-weight: 700;
	color: #0d2b1e;
	margin: 0;
}

.scd-fe-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	background: #fff;
	border: 1px solid rgba(201, 169, 110, 0.25);
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 18px;
}

.scd-fe-filters {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.scd-fe-filter-btn {
	background: #f7f3ec;
	border: 1px solid rgba(201, 169, 110, 0.3);
	border-radius: 20px;
	padding: 7px 16px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	color: #0d2b1e;
}

.scd-fe-filter-btn.is-active {
	background: #0d2b1e;
	border-color: #0d2b1e;
	color: #fff;
}

.scd-fe-search {
	flex: 1;
	min-width: 220px;
	max-width: 380px;
	padding: 9px 14px;
	border: 1px solid rgba(201, 169, 110, 0.35);
	border-radius: 20px;
	font-family: inherit;
	font-size: 13px;
}

.scd-fe-table-wrap {
	background: #fff;
	border: 1px solid rgba(201, 169, 110, 0.25);
	border-radius: 10px;
	overflow-x: auto;
}

.scd-fe-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 720px;
}

.scd-fe-table th {
	text-align: left;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #3d3d3d;
	background: #f7f3ec;
	padding: 14px 18px;
	border-bottom: 1px solid rgba(201, 169, 110, 0.25);
}

.scd-fe-table td {
	padding: 14px 18px;
	border-bottom: 1px solid rgba(201, 169, 110, 0.15);
	font-size: 13px;
	color: #1a1a1a;
	vertical-align: top;
}

.scd-fe-table tbody tr {
	cursor: pointer;
	transition: background 0.12s;
}

.scd-fe-table tbody tr:hover {
	background: #f7f3ec;
}

.scd-fe-table tbody tr:last-child td {
	border-bottom: none;
}

.scd-fe-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.scd-fe-badge-contact {
	background: #e7f1ff;
	color: #0a58ca;
}

.scd-fe-badge-newsletter {
	background: #e6f7ec;
	color: #1a7f4e;
}

.scd-fe-loading,
.scd-fe-empty {
	text-align: center;
	color: #757575;
	padding: 50px 16px !important;
}

.scd-fe-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
}

.scd-fe-pagination button {
	background: #fff;
	border: 1px solid rgba(201, 169, 110, 0.35);
	border-radius: 20px;
	padding: 7px 16px;
	font-family: inherit;
	font-size: 13px;
	cursor: pointer;
	color: #0d2b1e;
}

.scd-fe-pagination button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.scd-fe-pagination span {
	font-size: 13px;
	color: #3d3d3d;
}

/* Modal */

.scd-fe-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(13, 43, 30, 0.55);
	z-index: 1000000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.scd-fe-modal-overlay.is-open {
	display: flex;
}

.scd-fe-modal {
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 560px;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(13, 43, 30, 0.3);
}

.scd-fe-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid rgba(201, 169, 110, 0.25);
}

.scd-fe-modal-header h2 {
	margin: 0;
	font-size: 17px;
	color: #0d2b1e;
}

.scd-fe-modal-close {
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #3d3d3d;
	padding: 0;
}

.scd-fe-modal-body {
	padding: 8px 22px;
	overflow-y: auto;
}

.scd-fe-field-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(201, 169, 110, 0.15);
}

.scd-fe-field-row:last-child {
	border-bottom: none;
}

.scd-fe-field-main {
	flex: 1;
	min-width: 0;
}

.scd-fe-field-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #757575;
	margin-bottom: 4px;
}

.scd-fe-field-value {
	font-size: 14px;
	color: #1a1a1a;
	word-break: break-word;
	white-space: pre-wrap;
}

.scd-fe-copy-btn {
	flex-shrink: 0;
	background: #f7f3ec;
	border: 1px solid rgba(201, 169, 110, 0.35);
	border-radius: 6px;
	padding: 6px 12px;
	font-family: inherit;
	font-size: 12px;
	cursor: pointer;
	color: #0d2b1e;
}

.scd-fe-copy-btn.is-copied {
	background: #1a7f4e;
	border-color: #1a7f4e;
	color: #fff;
}

.scd-fe-modal-footer {
	padding: 16px 22px;
	border-top: 1px solid rgba(201, 169, 110, 0.25);
	text-align: right;
}

@media (max-width: 782px) {
	.scd-fe-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.scd-fe-search {
		max-width: none;
	}

	.scd-fe-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.scd-fe-app {
		padding: 20px 14px 40px;
	}
}
