:root {
	--background: #f4f7fb;
	--surface: #ffffff;
	--surface-muted: #f8fafc;
	--border: #dbe3ee;
	--text: #182235;
	--text-muted: #627086;
	--primary: #006fae;
	--primary-dark: #003a70;
	--accent: #00a8c7;
	--ok: #16865a;
	--warning: #bd7416;
	--danger: #ef252d;
	--shadow: 0 18px 50px rgba(25, 46, 74, 0.08);
	--radius: 18px;
	--admin-sidebar-width: 274px;
}

* {
	box-sizing: border-box;
}

html {
	min-height: 100%;
	background: var(--background);
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	margin: 0;
	color: var(--text);
	background:
		radial-gradient(circle at 8% 0%, rgba(22, 160, 133, 0.09), transparent 28rem),
		var(--background);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

a {
	color: inherit;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	border-bottom: 1px solid rgba(219, 227, 238, 0.85);
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(18px);
}

.site-header-inner,
.container,
.site-footer {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

.site-header-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
}

.btn-menu-mobile {
	display: none;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid var(--border);
	border-radius: 9px;
	color: var(--text);
	background: var(--surface);
	cursor: pointer;
	font: inherit;
	font-weight: 800;
}

.monitor-admin-app {
	background: var(--background);
}

.admin-sidebar {
	position: fixed;
	inset: 0 auto 0 0;
	z-index: 30;
	width: var(--admin-sidebar-width);
	color: #ffffff;
	background:
		linear-gradient(160deg, rgba(0, 168, 199, 0.16), transparent 42%),
		linear-gradient(180deg, #003a70, #001f3d);
	box-shadow: 12px 0 32px rgba(0, 31, 61, 0.16);
}

.admin-sidebar-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 20px 16px;
}

.admin-sidebar-heading {
	display: flex;
	align-items: center;
	gap: 10px;
}

.admin-sidebar-brand {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 0 4px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	text-decoration: none;
}

.admin-sidebar-brand img {
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	object-fit: contain;
	border-radius: 50%;
	background: #ffffff;
}

.admin-sidebar-brand > span {
	display: grid;
	min-width: 0;
}

.admin-sidebar-brand strong {
	font-size: 1rem;
}

.admin-sidebar-brand small,
.admin-sidebar-user small {
	color: rgba(255, 255, 255, 0.66);
	font-size: 0.72rem;
}

.admin-sidebar-nav {
	flex: 1;
	overflow-y: auto;
	padding: 20px 0;
	scrollbar-width: thin;
}

.admin-sidebar-group + .admin-sidebar-group {
	margin-top: 20px;
}

.admin-sidebar-group h2 {
	margin: 0 10px 8px;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.68rem;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.admin-sidebar-group a,
.admin-sidebar-disabled {
	display: flex;
	align-items: center;
	gap: 11px;
	min-height: 44px;
	padding: 7px 10px;
	border-radius: 10px;
	text-decoration: none;
}

.admin-sidebar-group a:hover,
.admin-sidebar-group a:focus-visible,
.admin-sidebar-group a[aria-current="page"] {
	background: rgba(0, 168, 199, 0.25);
}

.admin-sidebar-group a:focus-visible {
	outline: 2px solid #7ee8f4;
	outline-offset: 1px;
}

.admin-sidebar-disabled {
	color: rgba(255, 255, 255, 0.43);
	cursor: not-allowed;
}

.admin-sidebar-icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 8px;
	font-size: 0.65rem;
	font-weight: 900;
}

.admin-sidebar-group a[aria-current="page"] .admin-sidebar-icon {
	border-color: var(--accent);
	background: var(--accent);
}

.admin-sidebar-user {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-sidebar-user > div {
	display: grid;
	flex: 1;
	min-width: 0;
}

.admin-sidebar-user strong,
.admin-sidebar-user small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.admin-sidebar .btn-logout {
	border-color: rgba(255, 255, 255, 0.25);
	color: #ffffff;
	background: rgba(239, 37, 45, 0.9);
}

.admin-app-content {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	min-height: 100vh;
	margin-left: var(--admin-sidebar-width);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.brand > span:last-child {
	display: grid;
}

.brand strong {
	font-size: 1.15rem;
	letter-spacing: 0.01em;
}

.brand-logo {
	display: block;
	width: 46px;
	height: 46px;
	object-fit: contain;
}

.brand small {
	color: var(--text-muted);
	font-size: 0.72rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.brand-mark {
	display: flex;
	align-items: end;
	justify-content: center;
	gap: 3px;
	width: 38px;
	height: 38px;
	padding: 9px;
	border-radius: 11px;
	background: linear-gradient(145deg, var(--primary), var(--primary-dark));
	box-shadow: 0 8px 22px rgba(15, 95, 120, 0.24);
}

.brand-mark span {
	display: block;
	width: 4px;
	border-radius: 4px;
	background: #ffffff;
}

.brand-mark span:nth-child(1) {
	height: 8px;
	opacity: 0.65;
}

.brand-mark span:nth-child(2) {
	height: 14px;
	opacity: 0.82;
}

.brand-mark span:nth-child(3) {
	height: 20px;
}

.environment-badge,
.badge {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--text-muted);
	background: var(--surface-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.07em;
	padding: 7px 11px;
	text-transform: uppercase;
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
	margin-right: 24px;
}

.main-nav a {
	padding: 9px 12px;
	border-radius: 9px;
	color: var(--text-muted);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
	color: var(--primary-dark);
	background: #eaf6fb;
}

.header-account {
	display: flex;
	align-items: center;
	gap: 14px;
}

.header-account > span {
	display: grid;
	text-align: right;
}

.header-account small {
	color: var(--text-muted);
	font-size: 0.7rem;
	text-transform: uppercase;
}

.btn-logout {
	padding: 8px 11px;
	border: 1px solid var(--border);
	border-radius: 9px;
	color: var(--text);
	background: var(--surface);
	cursor: pointer;
	font-weight: 700;
}

.container {
	padding: 52px 0 72px;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
	gap: 40px;
	align-items: end;
	margin-bottom: 38px;
}

.eyebrow,
.summary-label {
	margin: 0 0 8px;
	color: var(--primary);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	max-width: 780px;
	margin-bottom: 18px;
	font-size: clamp(2.1rem, 5vw, 4.4rem);
	line-height: 1.03;
	letter-spacing: -0.045em;
}

.lead {
	max-width: 740px;
	margin-bottom: 0;
	color: var(--text-muted);
	font-size: 1.08rem;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.hero-status {
	display: flex;
	align-items: center;
	gap: 13px;
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.hero-status div {
	display: grid;
	gap: 2px;
}

.hero-status small {
	color: var(--text-muted);
}

.status-dot {
	flex: 0 0 auto;
	width: 13px;
	height: 13px;
	border: 3px solid #d5f2e5;
	border-radius: 50%;
	background: var(--ok);
	box-shadow: 0 0 0 5px rgba(22, 134, 90, 0.08);
}

.summary-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 22px;
}

.summary-card {
	display: grid;
	min-height: 156px;
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.summary-card strong {
	align-self: center;
	font-size: 2.5rem;
	line-height: 1;
}

.summary-card small {
	align-self: end;
	color: var(--text-muted);
}

.summary-card-alert {
	border-color: rgba(194, 65, 75, 0.25);
}

.summary-card-alert .summary-label {
	color: var(--danger);
}

.panel {
	padding: 28px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.panel-heading {
	display: flex;
	align-items: start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.panel-heading h2 {
	margin-bottom: 0;
	font-size: 1.65rem;
	letter-spacing: -0.025em;
}

.page-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}

.page-heading h1 {
	margin-bottom: 12px;
	font-size: clamp(2rem, 4vw, 3.5rem);
}

.module-state {
	display: inline-flex;
	margin-top: 18px;
	color: var(--primary);
	font-size: 0.76rem;
	font-weight: 800;
	text-transform: uppercase;
}

.module-link {
	text-decoration: none;
}

.module-link:hover,
.module-link:focus-visible {
	text-decoration: underline;
}

.action-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.action-panel h2 {
	margin-bottom: 6px;
}

.action-panel p:last-child {
	margin-bottom: 0;
	color: var(--text-muted);
}

.button-link {
	text-decoration: none;
}

.login-page {
	display: grid;
	place-items: center;
	padding: 28px;
	background:
		radial-gradient(circle at 12% 8%, rgba(0, 168, 199, 0.2), transparent 32rem),
		linear-gradient(145deg, #f4f9fc, #eaf1f8);
}

.login-shell {
	display: grid;
	grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 0.7fr);
	width: min(980px, 100%);
	min-height: 590px;
	overflow: hidden;
	border: 1px solid rgba(219, 227, 238, 0.9);
	border-radius: 28px;
	background: var(--surface);
	box-shadow: 0 30px 90px rgba(0, 58, 112, 0.16);
}

.login-brand {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(36px, 7vw, 72px);
	color: #ffffff;
	background:
		linear-gradient(150deg, rgba(0, 168, 199, 0.18), transparent 48%),
		linear-gradient(145deg, #003a70, #006fae);
}

.login-brand-image {
	display: grid;
	place-items: center;
	width: 180px;
	height: 180px;
	margin-bottom: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: 0 20px 60px rgba(0, 24, 51, 0.3);
}

.login-brand-image img {
	display: block;
	width: 160px;
	height: 160px;
	object-fit: contain;
}

.login-brand .eyebrow {
	color: #7ee8f4;
}

.login-brand h1 {
	margin-bottom: 12px;
	font-size: 3.4rem;
}

.login-brand p:last-child {
	margin-bottom: 0;
	color: rgba(255, 255, 255, 0.78);
}

.login-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(34px, 6vw, 64px);
}

.login-content h2 {
	margin-bottom: 10px;
	font-size: 2rem;
	letter-spacing: -0.03em;
}

.subtitle {
	margin-bottom: 28px;
	color: var(--text-muted);
}

.field {
	display: grid;
	gap: 7px;
	margin-bottom: 18px;
}

.field label,
.permissions-fieldset legend {
	font-size: 0.84rem;
	font-weight: 800;
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	color: var(--text);
	background: var(--surface);
	font: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	border-color: var(--accent);
	outline: 3px solid rgba(0, 168, 199, 0.13);
}

.field small {
	color: var(--text-muted);
}

.btn-primary,
.btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 10px;
	cursor: pointer;
	font: inherit;
	font-weight: 800;
}

.btn-primary {
	border: 1px solid var(--primary);
	color: #ffffff;
	background: linear-gradient(145deg, var(--primary), var(--primary-dark));
}

.btn-secondary {
	border: 1px solid var(--border);
	color: var(--text);
	background: var(--surface);
}

.btn-primary:disabled,
.btn-secondary:disabled {
	cursor: wait;
	opacity: 0.58;
}

.login-links {
	display: grid;
	gap: 10px;
	margin-top: 18px;
	text-align: center;
}

.login-links a:not(.btn-secondary) {
	color: var(--primary);
	font-size: 0.88rem;
	font-weight: 700;
}

.credentials-page {
	display: grid;
	place-items: center;
	padding: 28px;
}

.credentials-shell {
	width: min(620px, 100%);
	padding: clamp(28px, 6vw, 54px);
	border: 1px solid var(--border);
	border-radius: 24px;
	background: var(--surface);
	box-shadow: var(--shadow);
}

.credentials-brand {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 26px;
}

.credentials-brand img {
	width: 74px;
	height: 74px;
	object-fit: contain;
}

.credentials-flow .credentials-brand h1 {
	margin-bottom: 0;
	font-size: clamp(1.45rem, 4vw, 1.85rem);
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.credentials-flow .credentials-brand .eyebrow {
	margin-bottom: 6px;
	font-size: 0.68rem;
	line-height: 1.35;
}

.declaration-field {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 8px 0 20px;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.declaration-field input {
	margin-top: 4px;
}

.message {
	display: none;
	margin-bottom: 18px;
	padding: 11px 13px;
	border-radius: 9px;
	font-size: 0.88rem;
}

.message.visible {
	display: block;
}

.message.error {
	color: #8c1d24;
	background: #fff0f1;
	border: 1px solid #f7c9cc;
}

.message.ok {
	color: #0f6343;
	background: #edf9f4;
	border: 1px solid #c7ecdd;
}

.users-layout {
	display: grid;
	grid-template-columns: minmax(280px, 0.65fr) minmax(500px, 1.35fr);
	gap: 20px;
}

.operators-layout {
	grid-template-columns: 1fr;
}

.operators-layout .panel-heading h2,
.client-form-section h2 {
	font-size: 1.15rem;
	letter-spacing: -0.01em;
}

.clients-report-panel {
	width: 100%;
}

.compact-page-heading {
	margin-bottom: 16px;
}

.compact-page-heading h1 {
	margin-bottom: 0;
	font-size: clamp(1.25rem, 2vw, 1.6rem);
	letter-spacing: -0.015em;
}

.client-command-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 18px;
	padding: 7px;
	border: 1px solid var(--border);
	border-radius: 11px;
	background: var(--surface);
	box-shadow: 0 8px 24px rgba(25, 46, 74, 0.05);
}

.client-command-bar button {
	min-height: 38px;
	padding: 7px 14px;
	border: 0;
	border-radius: 8px;
	color: var(--text);
	background: transparent;
	cursor: pointer;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 800;
}

.client-command-bar button:hover,
.client-command-bar button:focus-visible {
	color: var(--primary-dark);
	background: #eaf6fb;
}

.client-command-bar button:disabled {
	cursor: not-allowed;
	opacity: 0.38;
}

.client-command-bar .command-save {
	color: #ffffff;
	background: var(--primary);
}

.client-edit-bar {
	border-color: rgba(0, 168, 199, 0.45);
}

.client-command-bar[hidden] {
	display: none;
}

.clients-report-heading p:last-child,
.client-registration-panel .panel-heading p:last-child,
.client-section-heading p {
	margin: 6px 0 0;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.clients-report-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.report-filters-placeholder {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
	padding: 12px 14px;
	border: 1px dashed var(--border);
	border-radius: 10px;
	color: var(--text-muted);
	background: var(--surface-muted);
	font-size: 0.86rem;
}

.report-filters-placeholder strong {
	color: var(--text);
}

.responsive-table {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 12px;
}

.clients-table {
	width: 100%;
	min-width: 880px;
	border-collapse: collapse;
}

.clients-table th,
.clients-table td {
	padding: 13px 14px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	vertical-align: middle;
}

.clients-table th {
	color: var(--text-muted);
	background: var(--surface-muted);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.clients-table tbody tr {
	cursor: pointer;
}

.clients-table tbody tr:last-child td {
	border-bottom: 0;
}

.clients-table tbody tr:hover,
.clients-table tbody tr:focus-visible,
.clients-table tbody tr.selected {
	background: #edf8fb;
}

.clients-table tbody tr:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.client-registration-panel {
	margin-top: 20px;
	scroll-margin-top: 24px;
}

.client-registration-panel .panel-heading h2 {
	font-size: 1.15rem;
	letter-spacing: -0.01em;
}

.client-form-section + .client-form-section {
	margin-top: 26px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.client-form-section h3 {
	margin-bottom: 16px;
	font-size: 1rem;
}

.client-form-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-section-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 16px;
}

.client-section-heading h3 {
	margin-bottom: 0;
}

.client-active-check {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin-top: 2px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface-muted);
	cursor: pointer;
}

.client-active-check input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--primary);
}

.client-active-check span {
	display: grid;
}

.client-active-check small {
	color: var(--text-muted);
}

.client-state {
	flex: 0 0 auto;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
}

.client-state.active {
	color: var(--ok);
}

.client-state.inactive {
	color: var(--danger);
}

.client-search-dialog {
	width: min(720px, calc(100% - 24px));
	max-width: none;
	max-height: calc(100vh - 24px);
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
	box-shadow: 0 24px 70px rgba(0, 31, 61, 0.28);
}

.client-search-dialog::backdrop {
	background: rgba(0, 31, 61, 0.62);
	backdrop-filter: blur(2px);
}

.dialog-shell {
	display: flex;
	max-height: calc(100vh - 24px);
	flex-direction: column;
}

.dialog-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 20px;
	border-bottom: 1px solid var(--border);
}

.dialog-heading h2 {
	margin-bottom: 4px;
	font-size: 1.25rem;
}

.dialog-heading p:last-child {
	margin-bottom: 0;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.dialog-close {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	flex: 0 0 38px;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 9px;
	color: var(--text);
	background: var(--surface);
	cursor: pointer;
	font-size: 1.35rem;
}

.dialog-content {
	min-height: 0;
	padding: 20px;
	overflow-y: auto;
}

.dialog-actions {
	display: flex;
	justify-content: flex-end;
	padding: 14px 20px;
	border-top: 1px solid var(--border);
}

.client-search-results {
	display: grid;
	gap: 8px;
	max-height: 420px;
	overflow-y: auto;
}

.client-search-result {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	padding: 13px;
	border: 1px solid var(--border);
	border-radius: 10px;
	color: var(--text);
	background: var(--surface-muted);
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.client-search-result:hover,
.client-search-result:focus-visible {
	border-color: var(--accent);
	background: #edf8fb;
}

.client-search-result > span:first-child {
	display: grid;
	min-width: 0;
}

.client-search-result small {
	overflow: hidden;
	color: var(--text-muted);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.client-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 4px 0 24px;
}

.client-details > div {
	min-width: 0;
	padding: 13px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface-muted);
}

.client-details dt {
	margin-bottom: 4px;
	color: var(--text-muted);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.client-details dd {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}

.users-list {
	display: grid;
	gap: 8px;
}

.user-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	padding: 13px;
	border: 1px solid var(--border);
	border-radius: 11px;
	color: var(--text);
	background: var(--surface-muted);
	cursor: pointer;
	font: inherit;
	text-align: left;
}

.user-row > span:first-child {
	display: grid;
}

.user-row small,
.empty-state {
	color: var(--text-muted);
}

.user-state {
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
}

.user-state.active {
	color: var(--ok);
}

.user-state.inactive {
	color: var(--danger);
}

.form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

.password-grid .field {
	align-content: start;
}

.password-hint {
	margin: -8px 0 18px;
	color: var(--text-muted);
	font-size: 0.84rem;
}

.field-wide {
	grid-column: 1 / -1;
}

.permissions-fieldset {
	margin: 4px 0 20px;
	padding: 18px;
	border: 1px solid var(--border);
	border-radius: 12px;
}

.permissions-fieldset > p {
	color: var(--text-muted);
	font-size: 0.86rem;
}

.permissions-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

.permission-card {
	display: flex;
	align-items: start;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface-muted);
	cursor: pointer;
}

.permission-card input {
	margin-top: 3px;
}

.permission-card span {
	display: grid;
}

.permission-card small {
	color: var(--text-muted);
}

.form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.module-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.module-grid article {
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface-muted);
}

.module-grid h3 {
	margin-bottom: 8px;
	font-size: 1rem;
}

.module-grid p {
	margin-bottom: 0;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.site-footer {
	margin-top: auto;
	padding: 0 0 32px;
	color: var(--text-muted);
	font-size: 0.82rem;
	text-align: center;
}

@media (max-width: 900px) {
	.admin-sidebar {
		position: sticky;
		inset: auto;
		top: 0;
		width: 100%;
	}

	.admin-sidebar-inner {
		height: auto;
		padding: 10px 16px;
	}

	.admin-sidebar-heading {
		min-height: 54px;
	}

	.admin-sidebar-brand {
		padding: 0;
		border-bottom: 0;
	}

	.admin-sidebar-brand img {
		width: 44px;
		height: 44px;
		flex-basis: 44px;
	}

	.admin-sidebar .btn-menu-mobile {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border-color: rgba(255, 255, 255, 0.3);
		color: #ffffff;
		background: rgba(255, 255, 255, 0.1);
	}

	.admin-sidebar-nav,
	.admin-sidebar-user {
		display: none;
	}

	.admin-sidebar.menu-open .admin-sidebar-nav {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px;
		padding: 18px 0 12px;
	}

	.admin-sidebar.menu-open .admin-sidebar-user {
		display: flex;
	}

	.admin-sidebar-group + .admin-sidebar-group {
		margin-top: 0;
	}

	.admin-app-content {
		margin-left: 0;
	}

	.hero {
		grid-template-columns: 1fr;
	}

	.summary-grid,
	.module-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.login-shell,
	.users-layout {
		grid-template-columns: 1fr;
	}

	.users-layout {
		gap: 16px;
	}

	.login-brand {
		align-items: center;
		min-height: 300px;
		text-align: center;
	}

	.login-brand-image {
		width: 130px;
		height: 130px;
		margin-bottom: 18px;
	}

	.login-brand-image img {
		width: 116px;
		height: 116px;
	}
}

@media (max-width: 560px) {
	.admin-sidebar-inner {
		padding: 8px 12px;
	}

	.admin-sidebar-brand strong {
		font-size: 0.92rem;
	}

	.admin-sidebar.menu-open .admin-sidebar-nav {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.admin-sidebar-user {
		align-items: stretch;
		flex-direction: column;
	}

	.admin-sidebar-user .btn-logout {
		width: 100%;
	}

	.site-header-inner,
	.container,
	.site-footer {
		width: min(100% - 24px, 1180px);
	}

	.container {
		padding: 30px 0 52px;
	}

	.environment-badge {
		display: none;
	}

	.site-header-inner {
		min-height: 64px;
		gap: 8px;
	}

	.brand {
		gap: 8px;
	}

	.brand-logo {
		width: 40px;
		height: 40px;
	}

	.brand strong {
		font-size: 1rem;
	}

	.brand small {
		display: none;
	}

	.btn-menu-mobile {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin-left: auto;
	}

	.main-nav {
		position: absolute;
		top: calc(100% + 1px);
		left: 0;
		right: 0;
		display: none;
		gap: 4px;
		margin: 0;
		padding: 10px;
		border: 1px solid var(--border);
		border-radius: 0 0 12px 12px;
		background: var(--surface);
		box-shadow: var(--shadow);
	}

	.menu-open .main-nav {
		display: grid;
	}

	.main-nav a {
		min-height: 44px;
		padding: 11px 12px;
	}

	.header-account > span {
		display: none;
	}

	.btn-logout {
		min-height: 44px;
	}

	.summary-grid,
	.module-grid {
		grid-template-columns: 1fr;
	}

	.panel {
		padding: 18px;
	}

	.login-page {
		padding: 12px;
	}

	.login-shell {
		border-radius: 18px;
		min-height: 0;
	}

	.login-brand {
		min-height: 0;
		padding: 28px 22px;
	}

	.login-brand h1 {
		font-size: 2.4rem;
	}

	.login-brand-image {
		width: 96px;
		height: 96px;
	}

	.login-brand-image img {
		width: 84px;
		height: 84px;
	}

	.login-content {
		padding: 28px 22px;
	}

	.credentials-page {
		place-items: start center;
		padding: 12px;
	}

	.credentials-shell {
		padding: 26px 20px;
		border-radius: 18px;
	}

	.credentials-brand {
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 20px;
	}

	.credentials-brand img {
		width: 58px;
		height: 58px;
	}

	.credentials-flow .credentials-brand h1,
	.credentials-brand h1 {
		font-size: 1.45rem;
		line-height: 1.2;
	}

	.credentials-brand .eyebrow {
		font-size: 0.62rem;
		letter-spacing: 0.07em;
	}

	.page-heading,
	.action-panel,
	.clients-report-heading,
	.client-section-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.clients-report-actions,
	.report-filters-placeholder {
		align-items: stretch;
		flex-direction: column;
	}

	.clients-report-actions .btn-primary,
	.client-section-heading .btn-secondary {
		width: 100%;
	}

	.client-command-bar {
		overflow-x: auto;
	}

	.client-command-bar button {
		flex: 1 0 auto;
	}

	.form-grid,
	.permissions-grid {
		grid-template-columns: 1fr;
	}

	.page-heading h1 {
		font-size: 2rem;
	}

	.compact-page-heading h1 {
		font-size: 1.3rem;
	}

	.page-heading > .btn-primary,
	.action-panel .btn-primary,
	.form-actions .btn-primary,
	.form-actions .btn-secondary {
		width: 100%;
	}

	.form-actions {
		flex-direction: column-reverse;
	}

	.panel-heading {
		margin-bottom: 18px;
	}

	.user-row {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.client-details {
		grid-template-columns: 1fr;
	}

	.client-search-dialog {
		width: calc(100% - 16px);
		max-height: calc(100vh - 16px);
	}

	.dialog-heading,
	.dialog-content,
	.dialog-actions {
		padding-left: 14px;
		padding-right: 14px;
	}

	.client-search-result {
		align-items: flex-start;
		flex-wrap: wrap;
	}

	.client-search-result small {
		white-space: normal;
	}

	.permissions-fieldset {
		padding: 14px;
	}

	.permission-card {
		min-width: 0;
	}
}

.device-activation-panel,
.device-list-panel {
	margin-bottom: 18px;
}

.device-activation-panel .panel-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.device-activation-panel .panel-heading p {
	margin: 5px 0 0;
	color: var(--text-muted);
}

.device-code-box {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 4px 18px;
	margin-top: 20px;
	padding: 20px;
	border: 1px solid var(--accent);
	border-radius: 12px;
	background: rgba(0, 168, 199, 0.08);
}

.device-code-box > span,
.device-code-box > small {
	color: var(--text-muted);
}

.device-code-box > strong {
	color: var(--primary);
	font-size: clamp(1.7rem, 5vw, 2.5rem);
	letter-spacing: 0.12em;
}

.device-code-box .btn-secondary {
	grid-column: 2;
	grid-row: 1 / span 3;
}

.device-activation-help {
	margin: 16px 0 0;
	color: var(--text-muted);
	font-size: 0.85rem;
}

.device-status {
	display: inline-flex;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
}

.device-status.ativo {
	color: #246338;
	background: #e8f7ed;
}

.device-status.bloqueado {
	color: #8a2d2d;
	background: #fdecec;
}

@media (max-width: 680px) {
	.device-activation-panel .panel-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.device-activation-panel .panel-heading .btn-primary {
		width: 100%;
	}

	.device-code-box {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.device-code-box .btn-secondary {
		grid-column: 1;
		grid-row: auto;
		margin-top: 12px;
	}

	.device-table thead {
		display: none;
	}

	.device-table,
	.device-table tbody,
	.device-table tr,
	.device-table td {
		display: block;
		width: 100%;
	}

	.device-table tr {
		margin-bottom: 12px;
		padding: 10px 12px;
		border: 1px solid var(--border);
		border-radius: 10px;
	}

	.device-table td {
		display: flex;
		justify-content: space-between;
		gap: 14px;
		padding: 7px 0;
		border: 0;
		text-align: right;
	}

	.device-table td::before {
		content: attr(data-label);
		color: var(--text-muted);
		font-weight: 700;
		text-align: left;
	}

	.device-table td.empty-state {
		display: block;
		text-align: center;
	}

	.device-table td.empty-state::before {
		display: none;
	}
}

.plan-registration-panel,
.plan-list-panel,
.current-plan-panel {
	margin-top: 18px;
}

.plan-section-heading,
.current-plan-heading,
.public-plans-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.plan-section-heading h2,
.plan-registration-panel h2,
.plan-list-panel h2,
.current-plan-panel h2 {
	margin: 0;
	font-size: 1rem;
}

.plan-values-table {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
}

.plan-values-table th,
.plan-values-table td {
	padding: 10px;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

.plan-values-table input {
	width: min(100%, 180px);
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 9px;
	background: var(--surface);
	font: inherit;
}

.form-note,
.plan-point-price {
	color: var(--text-muted);
	font-size: 0.82rem;
}

.plan-status-options > label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 12px;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--surface-muted);
}

.plan-timing-field {
	align-content: start;
}

.plan-timing-field input {
	height: 46px;
}

.plan-report-filters {
	display: grid;
	grid-template-columns: minmax(240px, 2fr) repeat(2, minmax(150px, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.plan-status-options > label span {
	display: grid;
}

.plan-status-options small {
	color: var(--text-muted);
}

.plan-default-label {
	display: block;
	color: var(--primary);
	font-size: 0.72rem;
	font-weight: 800;
}

.public-plans-section,
.plan-catalog-section {
	padding: 48px 0 8px;
}

.public-plans-heading {
	align-items: flex-start;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 20px;
}

.public-plans-heading h2 {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.public-plans-heading p:last-child {
	margin: 0;
	color: var(--text-muted);
}

.plan-period-switch {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.plan-period-switch button {
	padding: 9px 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	cursor: pointer;
	font: inherit;
	font-weight: 800;
}

.plan-period-switch button.active {
	border-color: var(--primary);
	color: #ffffff;
	background: var(--primary);
}

.plan-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.plan-card {
	display: flex;
	align-items: stretch;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.plan-card.featured {
	border-color: var(--accent);
	box-shadow: 0 18px 50px rgba(0, 168, 199, 0.14);
}

.plan-card h3 {
	margin: 8px 0;
	font-size: 1.3rem;
}

.plan-card > p {
	min-height: 48px;
	color: var(--text-muted);
}

.plan-type {
	color: var(--primary);
	font-size: 0.72rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.plan-card-price {
	margin-top: 8px;
	font-size: 1.35rem;
}

.plan-card ul {
	flex: 1;
	margin: 18px 0;
	padding-left: 20px;
	color: var(--text-muted);
}

.plan-card .btn-primary {
	width: 100%;
	text-align: center;
}

.plan-public-points {
	display: grid;
	gap: 6px;
	margin-bottom: 12px;
	font-size: 0.82rem;
	font-weight: 800;
}

.plan-public-points input {
	min-height: 42px;
	padding: 8px 10px;
	border: 1px solid var(--border);
	border-radius: 9px;
	font: inherit;
}

.plan-month-equivalent {
	min-height: 22px;
	margin-bottom: 8px;
	color: var(--text-muted);
}

.signup-plan-summary {
	display: grid;
	margin: -10px 0 22px;
	padding: 13px 15px;
	border: 1px solid var(--accent);
	border-radius: 11px;
	background: rgba(0, 168, 199, 0.08);
}

.signup-plan-summary span,
.signup-plan-summary small {
	color: var(--text-muted);
	font-size: 0.76rem;
}

.current-plan-heading strong {
	color: var(--primary);
	font-size: 1.15rem;
}

.current-plan-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 20px;
}

.current-plan-metrics span {
	display: grid;
	padding: 14px;
	border-radius: 10px;
	background: var(--surface-muted);
}

.current-plan-metrics small {
	color: var(--text-muted);
}

.plan-pending-panel {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
	padding: 14px 18px;
	border: 1px solid #f0c36a;
	border-radius: 12px;
	background: #fff8e8;
}

.plan-dialog {
	width: min(560px, calc(100% - 24px));
	padding: 0;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 24px 70px rgba(0, 31, 61, 0.25);
}

.plan-dialog::backdrop {
	background: rgba(0, 31, 61, 0.58);
}

.plan-total-preview {
	display: grid;
	margin-top: 10px;
	padding: 16px;
	border-radius: 12px;
	background: var(--surface-muted);
}

.plan-total-preview strong {
	font-size: 1.5rem;
}

@media (max-width: 900px) {
	.plan-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.plan-cards,
	.current-plan-metrics {
		grid-template-columns: 1fr;
	}

	.plan-section-heading,
	.current-plan-heading,
	.plan-pending-panel {
		align-items: stretch;
		flex-direction: column;
	}

	.plan-section-heading .btn-secondary {
		width: 100%;
	}

	.plan-report-filters {
		grid-template-columns: 1fr;
	}
}
