.settings-shell { border: none; background: transparent; padding: 0 8px 10px; }
.settings-heading { margin: 0 0 38px; text-align: center; color: #171717; font-size: 1rem; font-weight: 700; }
.settings-form { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 74px 118px; align-items: start; }
.settings-field label { display: block; margin-bottom: 10px; color: #1d1d1d; font-size: .98rem; }
.settings-field input { width: 100%; height: 30px; border: 1px solid #74777e; border-radius: 999px; background: #fff; padding: 0 14px; font-size: .95rem; color: #222; }
.settings-field input:focus { outline: none; border-color: #0a4ca0; }
.settings-logo-field { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: -10px; }
.settings-logo-box {
	width: 130px;
	height: 100px;
	border: 1px solid #c8c8cb;
	border-radius: 14px;
	background: #d8d8da center/cover no-repeat;
}
.settings-logo-field span { color: #1f1f1f; font-size: .96rem; }

.settings-form-account { gap: 18px 24px; max-width: 980px; }
.settings-form-account .settings-field input { height: 36px; border-radius: 10px; }
.settings-divider {
	grid-column: 1 / -1;
	margin-top: 8px;
	border-top: 1px solid #d5dae6;
	padding-top: 12px;
	color: #1b3f7b;
	font-size: .88rem;
	font-weight: 700;
}
.settings-form-account .settings-logo-field {
	align-items: flex-start;
	margin-top: 0;
}
.settings-form-account .settings-logo-field label {
	margin: 0;
	font-size: .92rem;
	color: #1d1d1d;
	font-weight: 600;
}
.settings-form-account .settings-logo-field input[type="file"] {
	width: 100%;
	max-width: 380px;
	border: 1px solid #c8cfde;
	border-radius: 10px;
	padding: 7px 10px;
	background: #fff;
	font-size: .84rem;
}
.settings-actions {
	grid-column: 1 / -1;
	display: flex;
	justify-content: flex-end;
	margin-top: 2px;
}

.users-admin-grid {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 12px;
	align-items: stretch;
	height: calc(100vh - 226px);
	min-height: 420px;
}
.users-admin-card {
	border-radius: 14px;
	background: #fff;
	border: 1px solid #d8dbe3;
	padding: 12px;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.users-admin-card h2 { margin: 0 0 10px; font-size: .98rem; color: #173a78; font-weight: 700; }
.users-admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; align-content: start; }
.users-admin-form label { font-size: .82rem; font-weight: 600; color: #2d3f63; margin-bottom: 4px; }
.users-form-field { min-width: 0; }
.users-form-field-full { grid-column: 1 / -1; }
.users-admin-form input,
.users-admin-form select {
	width: 100%;
	height: 34px;
	border: 1px solid #c6cfdf;
	border-radius: 8px;
	padding: 0 10px;
	font-size: .84rem;
	color: #253a60;
	background: #fff;
}
.users-admin-form textarea {
	width: 100%;
	min-height: 118px;
	border: 1px solid #c6cfdf;
	border-radius: 8px;
	padding: 8px 10px;
	font-size: .84rem;
	line-height: 1.35;
	color: #253a60;
	background: #fff;
	resize: vertical;
	font-family: inherit;
	transition: border-color .16s ease, box-shadow .16s ease;
}
.users-admin-form textarea::placeholder {
	color: #8a98b3;
}
.users-admin-form input:focus,
.users-admin-form select:focus,
.users-admin-form textarea:focus {
	outline: none;
	border-color: #0c56b4;
	box-shadow: 0 0 0 3px rgba(12, 86, 180, 0.14);
}
.users-form-help {
	margin-top: 6px;
	font-size: .8rem;
	color: #4b5f82;
}
.users-active-check { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: .82rem; }
.users-active-check input { width: 16px; height: 16px; }
.users-admin-actions { margin-top: 2px; display: flex; gap: 8px; grid-column: 1 / -1; }

.users-btn {
	border: 1px solid #a5b8d8;
	border-radius: 10px;
	background: #fff;
	color: #20437e;
	font-size: .8rem;
	font-weight: 700;
	text-decoration: none;
	padding: 7px 10px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.users-btn-primary { background: #0c56b4; color: #fff; border-color: #0c56b4; }
.users-btn-ghost { background: #eef3fb; }
.users-btn-danger { background: #fff0f2; border-color: #f0b2bc; color: #8f2334; }
.users-btn-small { padding: 7px 9px; font-size: .8rem; }
.users-btn-icon {
	width: 28px;
	height: 28px;
	padding: 0;
	border-radius: 8px;
	font-size: .92rem;
	font-weight: 700;
}

.users-list-card { min-height: 0; }
.users-table-wrap { overflow: auto; flex: 1; min-height: 0; }
.users-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.users-table th,
.users-table td { border-bottom: 1px solid #e5e9f2; padding: 6px 8px; text-align: left; white-space: nowrap; }
.users-table th { color: #2c4879; font-weight: 700; background: #f5f8ff; }
.users-row-actions { display: flex; gap: 6px; align-items: center; }
.users-row-actions form { margin: 0; }

@media (max-width: 760px) {
	.settings-shell {
		padding: 0 0 10px;
	}
	.users-admin-card {
		padding: 10px;
		border-radius: 12px;
	}
	.users-admin-form {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.users-admin-actions {
		flex-direction: column;
	}
	.users-admin-actions .users-btn {
		width: 100%;
	}
	.users-table-wrap {
		overflow: visible;
	}
	.users-table {
		border-collapse: separate;
		border-spacing: 0;
	}
	.users-table thead {
		display: none;
	}
	.users-table tbody tr {
		display: block;
		margin: 0 0 10px;
		border: 1px solid #d5dbe7;
		border-radius: 12px;
		overflow: hidden;
		background: #fff;
		box-shadow: 0 3px 10px rgba(11, 39, 79, 0.05);
	}
	.users-table tbody td {
		display: grid;
		grid-template-columns: 102px minmax(0, 1fr);
		gap: 8px;
		align-items: center;
		padding: 9px 10px;
		border-bottom: 1px solid #edf1f7;
		white-space: normal;
	}
	.users-table tbody td:last-child {
		border-bottom: none;
	}
	.users-table tbody td::before {
		content: attr(data-label);
		font-size: .74rem;
		font-weight: 800;
		text-transform: uppercase;
		letter-spacing: .03em;
		color: #5a6478;
	}
	.users-row-actions {
		justify-content: flex-start;
		flex-wrap: wrap;
	}
	.users-empty-row td {
		display: block;
		border-bottom: none;
		text-align: center;
		padding: 12px 10px;
	}
	.users-empty-row td::before {
		content: none;
	}
}
