body {
	background: #f4f6f9;
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.app-navbar {
	background: #1a8cff;
}

.app-navbar .navbar-brand {
	align-items: center;
	color: #fff;
	display: flex;
	font-size: 1rem;
	gap: 0.55rem;
	line-height: 1.25;
	max-width: calc(100% - 4rem);
	white-space: normal;
}

.app-navbar .navbar-logo {
	background: #fff;
	border-radius: 8px;
	flex: 0 0 auto;
	height: 34px;
	object-fit: contain;
	padding: 4px 7px;
	width: auto;
}

.app-navbar .navbar-nav .nav-link {
	color: #fff;
	font-size: 0.92rem;
	padding: 0.5rem 0.7rem;
}

.app-navbar .navbar-nav .nav-link:hover,
.app-navbar .navbar-nav .nav-link:focus,
.app-navbar .navbar-brand:hover,
.app-navbar .navbar-brand:focus {
	color: #fff;
	opacity: 0.85;
}

.app-navbar .nav-link.active {
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.35rem;
}

.app-navbar .navbar-toggler {
	border-color: rgba(255, 255, 255, 0.55);
}

.app-navbar .navbar-toggler-icon {
	filter: invert(1) grayscale(1);
}

.app-navbar .dropdown-menu {
	border: 0;
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(22, 119, 189, 0.16);
	margin-top: 0.35rem;
	min-width: 11rem;
	padding: 0.4rem;
}

.app-navbar .dropdown-item {
	border-radius: 8px;
	color: #243044;
	font-size: 0.85rem;
	font-weight: 600;
	padding: 0.5rem 0.75rem;
}

.app-navbar .dropdown-item:hover,
.app-navbar .dropdown-item:focus {
	background: #e8f4ff;
	color: #1684e8;
}

.app-navbar .dropdown-item.active,
.app-navbar .dropdown-item:active {
	background: #1a8cff;
	color: #fff;
}

.app-navbar .dropdown-toggle {
	align-items: center;
	display: inline-flex;
	gap: 0.3rem;
}

.app-main {
	padding: 1.5rem 0 2.5rem;
}

.app-footer {
	background: #fff;
	border-top: 1px solid #e6eef6;
	color: #8b95a7;
	font-size: 0.85rem;
	margin-top: auto;
	padding: 0.9rem 0;
}

.app-footer-inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.5rem;
	justify-content: space-between;
}

@media (max-width: 575.98px) {
	.app-footer-inner {
		align-items: flex-start;
		flex-direction: column;
	}
}

.admin-page .app-footer a {
	color: #1a8cff;
	font-weight: 600;
	text-decoration: none;
}

body.admin-page {
	background: #f4f7fb;
	color: #243044;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body.admin-page .app-main {
	flex: 1 0 auto;
}

.admin-page .form-control[readonly],
.admin-page .form-control[readonly]:focus {
	background-color: #e9ecef;
	border-color: #dee2e6;
	box-shadow: none;
	color: #6c757d;
}

.dash-page {
	padding-bottom: 0.5rem;
}

.dash-head {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1.15rem;
}

.visitor-filters {
	align-items: flex-end;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.visitor-filters label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	margin: 0;
}

.visitor-filters label span {
	color: #6b7c90;
	font-size: 0.75rem;
	font-weight: 700;
}

.visitor-filters input[name="company"] {
	min-width: 14rem;
}

.visitor-filters input[type="date"],
.visitor-filters select {
	min-width: 10.5rem;
}

#table td.col-purpose,
#table th.col-purpose {
	max-width: 16rem;
	min-width: 10rem;
	overflow-wrap: anywhere;
	white-space: normal;
	width: 16rem;
	word-break: break-word;
}

.dash-title {
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	margin: 0;
}

.dash-subtitle {
	color: #8b95a7;
	font-size: 0.92rem;
	margin: 0.15rem 0 0;
}

.dash-date {
	align-items: center;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(31, 45, 70, 0.06);
	cursor: pointer;
	display: flex;
	gap: 0.7rem;
	margin: 0;
	min-width: 230px;
	padding: 0.65rem 0.9rem;
	position: relative;
}

.dash-date .bi-calendar3 {
	color: #3b82f6;
	font-size: 1.25rem;
}

.dash-date small,
.dash-date strong {
	display: block;
	line-height: 1.2;
}

.dash-date small {
	color: #8b95a7;
	font-size: 0.75rem;
}

.dash-date strong {
	font-size: 0.95rem;
}

.dash-date .bi-chevron-down {
	color: #9aa6b4;
	margin-left: auto;
}

.dash-date input[type="date"] {
	cursor: pointer;
	height: 100%;
	inset: 0;
	opacity: 0;
	position: absolute;
	width: 100%;
	z-index: 2;
}

.dash-date input[type="date"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
	height: 100%;
	left: 0;
	margin: 0;
	padding: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.dash-stat {
	align-items: center;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(31, 45, 70, 0.05);
	color: inherit;
	display: flex;
	gap: 0.75rem;
	min-height: 108px;
	overflow: hidden;
	padding: 1rem;
	position: relative;
	text-decoration: none;
}

.dash-stat:hover,
.dash-stat:focus {
	color: inherit;
}

.dash-stat-icon {
	align-items: center;
	border-radius: 12px;
	display: flex;
	flex: 0 0 auto;
	font-size: 1.2rem;
	height: 46px;
	justify-content: center;
	width: 46px;
	z-index: 1;
}

.dash-stat-label {
	color: #8b95a7;
	display: block;
	font-size: 0.82rem;
}

.dash-stat-value {
	display: block;
	font-size: 1.85rem;
	font-weight: 800;
	line-height: 1.1;
}

.dash-stat-go {
	color: #c5ced8;
	margin-left: auto;
	z-index: 1;
}

.dash-stat-watermark {
	bottom: -10px;
	font-size: 4.4rem;
	opacity: 0.13;
	position: absolute;
	right: 10px;
}

.dash-waiting .dash-stat-icon { background: #e8f1ff; color: #3b82f6; }
.dash-waiting .dash-stat-value,
.dash-waiting .dash-stat-watermark { color: #3b82f6; }
.dash-rejected .dash-stat-icon { background: #ffe8ea; color: #f04452; }
.dash-rejected .dash-stat-value,
.dash-rejected .dash-stat-watermark { color: #f04452; }
.dash-ongoing .dash-stat-icon { background: #fff4dc; color: #f5b400; }
.dash-ongoing .dash-stat-value,
.dash-ongoing .dash-stat-watermark { color: #f5b400; }
.dash-complete .dash-stat-icon { background: #e7f8ef; color: #2fbe6a; }
.dash-complete .dash-stat-value,
.dash-complete .dash-stat-watermark { color: #2fbe6a; }
.dash-total .dash-stat-icon { background: #e7f4ff; color: #1a8cff; }
.dash-total .dash-stat-value,
.dash-total .dash-stat-watermark { color: #1a8cff; }

.dash-action {
	align-items: center;
	background: #fff;
	border: 1px solid #d5e6f6;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(31, 45, 70, 0.05);
	color: inherit;
	display: flex;
	gap: 0.85rem;
	min-height: 84px;
	padding: 0.9rem 1rem;
	text-decoration: none;
}

.dash-action:hover,
.dash-action:focus {
	color: inherit;
}

.dash-action-icon {
	align-items: center;
	border-radius: 12px;
	display: flex;
	flex: 0 0 auto;
	font-size: 1.35rem;
	height: 52px;
	justify-content: center;
	width: 52px;
}

.dash-action-label {
	display: block;
	font-size: 1.15rem;
	font-weight: 800;
	line-height: 1.2;
}

.dash-action-hint {
	color: #8b95a7;
	display: block;
	font-size: 0.82rem;
}

.dash-action-go {
	font-size: 1.45rem;
	margin-left: auto;
}

.dash-action-in .dash-action-icon { background: #e7f8ef; color: #2fbe6a; }
.dash-action-in .dash-action-go { color: #2fbe6a; }
.dash-action-out .dash-action-icon { background: #fff4dc; color: #d99a00; }
.dash-action-out .dash-action-go { color: #d99a00; }

.scan-page {
	margin: 0 auto;
	max-width: 560px;
}

.scan-head {
	align-items: center;
	display: flex;
	gap: 0.75rem;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.scan-head h1 {
	font-size: 1.45rem;
	font-weight: 800;
	margin: 0;
}

.scan-head p {
	color: #8b95a7;
	margin: 0.15rem 0 0;
}

.scan-card {
	background: #fff;
	border: 1px solid #d5e6f6;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(31, 45, 70, 0.05);
	padding: 1rem;
}

#qr-reader {
	border-radius: 12px;
	overflow: hidden;
}

#qr-reader video {
	border-radius: 12px;
	width: 100%;
}

.scan-note {
	color: #6b7c90;
	font-size: 0.85rem;
	margin: 0.75rem 0 0;
}

.scan-form {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.9rem;
}

.scan-form .form-control {
	text-transform: uppercase;
}

.scan-form .btn {
	flex: 0 0 auto;
	white-space: nowrap;
}

.scan-person {
	padding: 0.35rem 0.25rem 0.85rem;
	text-align: center;
}

.scan-person strong {
	display: block;
	font-size: 1.35rem;
	letter-spacing: 0.01em;
	line-height: 1.25;
}

.scan-person span {
	color: #6b7c90;
	display: block;
	margin-top: 0.2rem;
}

.scan-id-number {
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	margin: 0.35rem 0 0;
}

.scan-facts {
	margin: 0;
}

.scan-facts div {
	align-items: baseline;
	border-top: 1px solid #e6eef6;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	padding: 0.5rem 0;
}

.scan-facts dt {
	color: #8b95a7;
	font-weight: 600;
	margin: 0;
}

.scan-facts dd {
	font-weight: 700;
	margin: 0;
	text-align: right;
}

.scan-block {
	background: #fff4dc;
	border-radius: 12px;
	color: #8a6200;
	margin: 0 0 0.85rem;
	padding: 0.7rem 0.85rem;
}

.scan-confirm {
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
	margin-top: 0.35rem;
}

.scan-confirm .btn {
	white-space: nowrap;
}

.dash-panel {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(31, 45, 70, 0.05);
	height: 100%;
	padding: 1rem 1.05rem 1.1rem;
}

.dash-panel-head {
	align-items: flex-start;
	display: flex;
	gap: 0.75rem;
	justify-content: space-between;
	margin-bottom: 0.75rem;
}

.dash-panel-head > .d-flex {
	min-width: 0;
}

.dash-panel h2 {
	font-size: 1rem;
	font-weight: 700;
	margin: 0;
}

.dash-panel-head p {
	color: #8b95a7;
	font-size: 0.8rem;
	margin: 0.1rem 0 0;
}

.dash-panel-icon {
	align-items: center;
	background: #e7f4ff;
	border-radius: 10px;
	color: #1a8cff;
	display: flex;
	flex: 0 0 auto;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.dash-year {
	background: #f4f7fb;
	border: 1px solid #e6ebf2;
	border-radius: 8px;
	color: #243044;
	font-size: 0.85rem;
	padding: 0.25rem 0.45rem;
}

.dash-legend {
	color: #5d6b7c;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.78rem;
	gap: 0.75rem;
	justify-content: center;
	margin-bottom: 0.4rem;
}

.dot {
	border-radius: 50%;
	display: inline-block;
	height: 8px;
	margin-right: 0.3rem;
	width: 8px;
}

.dot-waiting { background: #3b82f6; }
.dot-rejected { background: #f04452; }
.dot-ongoing { background: #f5b400; }
.dot-complete { background: #2fbe6a; }

.dash-chart {
	height: 260px;
	position: relative;
}

.dash-chart-donut {
	height: 210px;
}

.dash-donut-legend {
	color: #5d6b7c;
	font-size: 0.82rem;
	list-style: none;
	margin: 0.4rem 0 0;
	padding: 0;
}

.dash-donut-legend li {
	align-items: center;
	display: flex;
	gap: 0.35rem;
	padding: 0.2rem 0;
}

.dash-donut-legend b {
	margin-left: auto;
}

.dash-view-all {
	color: #1a8cff;
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.dash-activity {
	font-size: 0.84rem;
	margin: 0;
	width: 100%;
}

.dash-activity th {
	color: #8b95a7;
	font-weight: 600;
	padding: 0.35rem 0.3rem;
}

.dash-activity td {
	padding: 0.45rem 0.3rem;
	vertical-align: middle;
}

.dash-activity a {
	color: #243044;
	text-decoration: none;
}

.dash-empty {
	color: #8b95a7;
	padding-top: 1rem;
}

.dash-status {
	font-weight: 700;
}

.dash-status-waiting { color: #3b82f6; }
.dash-status-rejected { color: #f04452; }
.dash-status-on-going { color: #e0a100; }
.dash-status-complete { color: #2fbe6a; }

.status-badge {
	align-items: center;
	background: #eef2f6;
	border-radius: 999px;
	color: #5d6b7c;
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: 700;
	gap: 0.3rem;
	line-height: 1.2;
	padding: 0.28rem 0.65rem;
	white-space: nowrap;
}

.status-badge-waiting-approval {
	background: #e8f1ff;
	color: #2563eb;
}

.status-badge-rejected {
	background: #ffe8ea;
	color: #e11d48;
}

.status-badge-on-going {
	background: #fff4dc;
	color: #b78103;
}

.status-badge-complete {
	background: #e7f8ef;
	color: #178a4a;
}

.login-page {
	background: #d7ebfb url("../img/auth-bg.jpg?v=3") center center / cover no-repeat;
	min-height: 100vh;
}

.login-page .registration-header {
	border-radius: 18px 18px 0 0;
	margin: 0;
}

.login-shell {
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 0 auto;
	max-width: 420px;
	min-height: 100vh;
	padding: 1.5rem 1rem;
}

.login-card {
	background: #fff;
	border: 0;
	border-radius: 0 0 18px 18px;
	box-shadow: 0 22px 50px rgba(16, 58, 107, 0.22);
	margin-top: 0;
}

.login-card .form-control,
.login-card .input-group-text {
	font-size: 16px;
	min-height: 48px;
}

.login-card .input-group-text {
	background: #f4f9fd;
	border-color: #c5d9ea;
	color: #1a8cff;
}

.login-card .form-control {
	border-color: #c5d9ea;
}

.login-card .btn-primary {
	background: #1a8cff;
	border-color: #1a8cff;
	font-weight: 700;
	min-height: 48px;
}

body.visitor-page {
	background: #e7f2fb;
	min-height: 100vh;
	overflow-x: hidden;
	padding-bottom: env(safe-area-inset-bottom);
}

.visitor-page .app-main {
	padding: 0 0 1.5rem;
}

.visitor-shell {
	margin: 0 auto;
	max-width: 680px;
	padding: 0 0.7rem 1rem;
}

.admin-page .visitor-shell-admin {
	max-width: none;
	padding: 0 0 1rem;
	width: 100%;
}

.detail-toolbar {
	align-items: center;
	background: #fff;
	border: 1px solid #d5e6f6;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(22, 119, 189, 0.06);
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1rem;
	justify-content: space-between;
	margin-bottom: 1rem;
	padding: 0.9rem 1rem;
}

.detail-meta {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

.detail-kicker {
	color: #6b7c90;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin: 0;
	text-transform: uppercase;
}

.detail-id {
	align-items: center;
	color: #243044;
	display: flex;
	font-size: 1.35rem;
	font-weight: 700;
	gap: 0.4rem;
	line-height: 1.1;
	margin: 0;
}

.detail-id i {
	color: #1a8cff;
	font-size: 1.15rem;
}

.detail-actions,
.detail-actions form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.detail-actions .btn {
	font-weight: 700;
	min-height: 42px;
	min-width: 8.5rem;
}

.detail-decision {
	background: #fff;
	border: 1px solid #d5e6f6;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(22, 119, 189, 0.06);
	justify-content: flex-end;
	margin-top: 1rem;
	padding: 0.9rem 1rem;
}

.detail-card {
	border: 1px solid #d5e6f6;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(22, 119, 189, 0.06);
	margin-bottom: 1rem;
}

.detail-card .card-header {
	background: #fff;
	border-bottom: 1px solid #e6eef6;
	padding: 0.85rem 1rem;
}

.detail-card .card-header h2 {
	align-items: center;
	color: #1a8cff;
	display: flex;
	font-size: 0.98rem;
	font-weight: 700;
	gap: 0.4rem;
	margin: 0;
}

.detail-grid {
	display: grid;
	gap: 0.85rem 1rem;
	grid-template-columns: 1fr;
}

.detail-pair {
	background: #f8fbff;
	border: 1px solid #d5e6f6;
	border-radius: 12px;
	display: grid;
	gap: 0.85rem;
	grid-column: 1 / -1;
	grid-template-columns: 1fr;
	padding: 0.85rem;
}

.detail-field label {
	align-items: center;
	color: #6b7c90;
	display: flex;
	font-size: 0.75rem;
	font-weight: 700;
	gap: 0.35rem;
	margin-bottom: 0.28rem;
}

.detail-field label i,
.detail-table thead th i {
	color: #1a8cff;
	font-size: 0.9rem;
}

.detail-empty {
	color: #6b7c90;
}

.detail-table thead th {
	background: #f7f9fc;
	color: #94a3b8;
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.detail-table thead th i {
	margin-right: 0.28rem;
}

.detail-devices {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.detail-guest-bar {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.85rem;
}

.detail-guest-table td {
	vertical-align: middle;
}

.detail-guest-table .guest-email,
.detail-guest-table .guest-time {
	text-transform: none;
}

.detail-guest-table .guest-checkout {
	margin: 0;
}

.detail-guest-table .form-control,
.detail-guest-table .form-select {
	min-width: 9rem;
}

.detail-guest-table th.guest-card,
.detail-guest-table td.guest-card {
	width: 1%;
	white-space: nowrap;
}

.detail-guest-table th.guest-pick,
.detail-guest-table td.guest-pick {
	text-align: center;
	width: 1%;
	white-space: nowrap;
}

.detail-guest-table .guest-pick .form-check-input {
	float: none;
	margin: 0;
}

.detail-guest-table td.guest-card .form-select {
	min-width: 0;
	width: 100%;
}

@media (min-width: 768px) {
	.detail-grid {
		grid-template-columns: 1fr 1fr;
	}

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

	.detail-pair {
		grid-column: 1 / -1;
		grid-template-columns: 1fr 1fr;
	}

	.detail-pair .detail-field + .detail-field {
		border-left: 1px solid #d5e6f6;
		padding-left: 0.85rem;
	}
}

@media (min-width: 1200px) {
	.detail-grid {
		grid-template-columns: 1fr 1fr 1fr 1fr;
	}
}

.registration-header {
	align-items: center;
	background:
		linear-gradient(100deg, #168fff 0%, #168fff 46%, rgba(22, 143, 255, 0.72) 68%, rgba(22, 143, 255, 0.25) 100%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 120'%3E%3Crect fill='%23d7ecff' width='240' height='120'/%3E%3Crect fill='%23b9dcff' x='150' y='28' width='28' height='92'/%3E%3Crect fill='%23cfe6ff' x='184' y='12' width='40' height='108'/%3E%3Crect fill='%23a9d2f7' x='128' y='48' width='18' height='72'/%3E%3Crect fill='%23ffffff' x='190' y='22' width='6' height='8'/%3E%3Crect fill='%23ffffff' x='202' y='22' width='6' height='8'/%3E%3Crect fill='%23ffffff' x='190' y='36' width='6' height='8'/%3E%3Crect fill='%23ffffff' x='202' y='36' width='6' height='8'/%3E%3C/svg%3E") right center / auto 100% no-repeat;
	border-radius: 16px;
	color: #fff;
	display: flex;
	gap: 0.75rem;
	overflow: hidden;
	padding: 1rem 0.9rem;
}

.registration-logo {
	background: #fff;
	border-radius: 10px;
	flex: 0 0 auto;
	height: 42px;
	object-fit: contain;
	padding: 5px 8px;
	width: auto;
}

.registration-mark {
	align-items: center;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 12px;
	display: flex;
	flex: 0 0 auto;
	font-size: 1.45rem;
	height: 46px;
	justify-content: center;
	width: 46px;
}

.registration-header h1 {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.15;
	margin: 0;
}

.header-copy {
	flex: 1 1 auto;
	min-width: 0;
}

.registration-header .lang-switch {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	gap: 0.3rem;
	margin-left: auto;
}

.registration-header .lang-switch button {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	border: 1.5px solid rgba(255, 255, 255, 0.9);
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	min-height: 30px;
	padding: 0.35rem 0.7rem;
}

.registration-header .lang-switch button.is-active {
	background: #fff;
	border-color: #fff;
	color: #1684e8;
}

.lang-switch-bar {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.35rem;
}

.lang-switch-bar .lang-switch {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.lang-switch-bar .lang-switch button {
	appearance: none;
	-webkit-appearance: none;
	background: #fff;
	border: 1px solid #d5e4f2;
	border-radius: 8px;
	color: #1684e8;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	min-height: 30px;
	padding: 0.35rem 0.7rem;
}

.lang-switch-bar .lang-switch button.is-active {
	background: #1a8cff;
	border-color: #1a8cff;
	color: #fff;
}

.registration-header p {
	font-size: 0.78rem;
	margin: 0.15rem 0 0;
	opacity: 0.95;
}

.form-section {
	background: #fff;
	border: 1px solid #d5e6f6;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(22, 119, 189, 0.06);
	margin-top: 0.8rem;
	padding: 0.85rem 0.8rem 0.95rem;
}

.form-section-head {
	align-items: flex-start;
	display: flex;
	gap: 0.6rem;
	margin-bottom: 0.8rem;
}

.form-step-badge {
	align-items: center;
	background: #1a8cff;
	border-radius: 10px;
	color: #fff;
	display: flex;
	flex: 0 0 auto;
	font-size: 0.78rem;
	font-weight: 700;
	gap: 0.25rem;
	height: 34px;
	justify-content: center;
	min-width: 58px;
}

.form-section-head h2 {
	color: #1a8cff;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
}

.form-section-head p {
	color: #8ea3b8;
	font-size: 0.7rem;
	line-height: 1.3;
	margin: 0.1rem 0 0;
}

.field-label {
	color: #243447;
	display: block;
	font-size: 0.78rem;
	font-weight: 650;
	margin-bottom: 0.28rem;
}

.field-label small {
	color: #8ea3b8;
	font-weight: 500;
}

.req {
	color: #e23d3d;
}

.field {
	align-items: center;
	background: #fff;
	border: 1px solid #d5e4f2;
	border-radius: 10px;
	display: flex;
	gap: 0.4rem;
	min-height: 46px;
	padding: 0 0.65rem;
}

.field > i {
	color: #6ea4d4;
	flex: 0 0 auto;
}

.field .form-control,
.field .form-select {
	background: transparent;
	border: 0;
	box-shadow: none;
	font-size: 16px;
	height: 44px;
	min-width: 0;
	padding-left: 0;
	padding-right: 0;
}

.field .form-control:focus,
.field .form-select:focus {
	box-shadow: none;
}

.field:focus-within {
	border-color: #1a8cff;
	box-shadow: 0 0 0 0.18rem rgba(26, 140, 255, 0.16);
}

.field-area {
	align-items: flex-start;
	padding-top: 0.55rem;
}

.field-area textarea {
	min-height: 78px;
	resize: vertical;
}

.field-caret {
	font-size: 0.75rem;
}

.char-count {
	color: #9aafc3;
	font-size: 0.72rem;
	margin-top: 0.15rem;
	text-align: right;
}

.device-grid {
	display: grid;
	gap: 0.15rem 0.5rem;
	grid-template-columns: 1fr 1fr;
}

.device-item {
	align-items: center;
	display: flex;
	gap: 0.4rem;
	margin: 0;
	min-height: 42px;
}

.device-item input {
	flex: 0 0 auto;
	height: 1.05rem;
	width: 1.05rem;
}

.device-item i {
	color: #5b9bd5;
}

.device-item span {
	font-size: 0.86rem;
}

.agreement {
	align-items: flex-start;
	display: flex;
	font-size: 0.86rem;
	gap: 0.65rem;
	line-height: 1.35;
	margin-top: 0.85rem;
}

.agreement input {
	accent-color: #1a8cff;
	flex: 0 0 auto;
	height: 1.15rem;
	margin-top: 0.12rem;
	width: 1.15rem;
}

.action-row {
	display: grid;
	gap: 0.55rem;
	grid-template-columns: 1fr 1fr;
	margin-top: 0.35rem;
}

.action-row .btn {
	border-radius: 12px;
	font-size: 0.68rem;
	font-weight: 700;
	line-height: 1.25;
	min-height: 48px;
	padding: 0.5rem 0.35rem;
	white-space: normal;
}

.btn-add {
	background: #fff;
	border: 1.5px solid #1a8cff;
	color: #1a8cff;
}

.btn-register {
	background: #1a8cff;
	border: 1.5px solid #1a8cff;
	color: #fff;
}

.registration-footer {
	color: #8ea3b8;
	font-size: 0.75rem;
	padding: 0.85rem 0 0.2rem;
	text-align: center;
}

.visitor-list {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	margin-top: 0.7rem;
}

.visitor-chip {
	align-items: center;
	background: #f4f9ff;
	border: 1px solid #d5e6f6;
	border-radius: 10px;
	display: flex;
	gap: 0.65rem;
	justify-content: space-between;
	padding: 0.45rem 0.6rem;
}

.visitor-chip strong {
	display: block;
	font-size: 0.9rem;
	overflow-wrap: anywhere;
}

.visitor-chip span {
	color: #6c757d;
	font-size: 0.8rem;
}

.visitor-chip .btn {
	flex: 0 0 auto;
	min-height: 40px;
	min-width: 40px;
}

@media (min-width: 420px) {
	.action-row .btn {
		font-size: 0.78rem;
	}
}

.policy-modal .modal-header {
	background: #1e90ff;
	color: #fff;
}

.policy-modal .modal-title {
	font-size: 1.1rem;
	font-weight: 600;
}

.policy-modal .modal-body {
	padding: 0.75rem;
}

.policy-modal .modal-body img {
	display: block;
	height: auto;
	width: 100%;
}

.policy-modal .modal-footer {
	background: #fff;
	padding: 0.75rem;
}

.policy-modal .btn-policy {
	background: linear-gradient(45deg, #1e90ff, #4da6ff);
	border: none;
	border-radius: 30px;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	min-height: 48px;
}

@media (min-width: 768px) {
	.visitor-page .app-main {
		padding: 1.25rem 0 2rem;
	}

	.visitor-shell {
		padding: 0 1rem 1.5rem;
	}

	.registration-header {
		padding: 1.2rem 1.15rem;
	}

	.registration-header h1 {
		font-size: 1.55rem;
	}

	.form-section {
		padding: 1rem 1rem 1.1rem;
	}
}

.dash-stat-locked {
	cursor: default;
}

.access-card {
	margin-bottom: 1rem;
}

.access-card .card-header h2 {
	font-size: 1rem;
	margin: 0;
}

.access-matrix th,
.access-matrix td {
	vertical-align: middle;
}

.access-matrix thead th {
	background: #f7f9fc;
	color: #94a3b8;
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.access-matrix td:nth-child(n+4),
.access-matrix th.access-role {
	text-align: center;
	width: 9rem;
}

.access-check {
	width: 2.6rem;
}

.access-page {
	color: #1e293b;
	font-weight: 600;
	white-space: nowrap;
}

.access-page i {
	color: #64748b;
	margin-right: 0.45rem;
}

.access-role i {
	margin-right: 0.3rem;
}

.access-matrix thead th.access-role-security {
	background: #e8f1ff;
	color: #2563eb;
}

.access-matrix thead th.access-role-administrator {
	background: #f3e8ff;
	color: #7c3aed;
}

.access-matrix thead th.access-role-staff {
	background: #e8f8ef;
	color: #16a34a;
}

.access-matrix thead th.access-role-user {
	background: #fff4e8;
	color: #ea580c;
}

.access-cat {
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 0.18rem 0.6rem;
	white-space: nowrap;
}

.access-cat-dashboard {
	background: #e8f1ff;
	color: #2563eb;
}

.access-cat-master-data,
.access-cat-data-visitor {
	background: #e8f8ef;
	color: #16a34a;
}

.access-cat-utility {
	background: #f3e8ff;
	color: #7c3aed;
}

.access-cat-system {
	background: #ffe8ea;
	color: #e11d48;
}

.access-category {
	margin: 0;
	position: relative;
}

.access-category i {
	color: #94a3b8;
	left: 0.75rem;
	pointer-events: none;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.access-category .form-select {
	border-color: #e5e7eb;
	border-radius: 10px;
	color: #64748b;
	min-width: 12rem;
	padding-left: 2.15rem;
}

.access-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.access-reset {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	color: #64748b;
	font-weight: 700;
}

.access-reset:hover {
	background: #f8fafc;
	color: #334155;
}

.access-matrix .form-check-input {
	float: none;
	height: 1.15rem;
	margin: 0;
	width: 1.15rem;
}

.access-users .form-select {
	max-width: 16rem;
}

.user-card {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(31, 45, 70, 0.06);
	margin-bottom: 1rem;
}

.user-card-head {
	align-items: flex-start;
	display: flex;
	gap: 0.75rem;
	padding: 1.1rem 1.25rem 0.35rem;
}

.user-card-head h2 {
	color: #1e293b;
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0;
}

.user-card-head p {
	color: #94a3b8;
	font-size: 0.86rem;
	margin: 0.12rem 0 0;
}

.user-icon {
	align-items: center;
	background: #e8f1ff;
	border-radius: 12px;
	color: #2f6bff;
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 1.15rem;
	height: 2.4rem;
	justify-content: center;
	width: 2.4rem;
}

.user-add {
	align-items: end;
	display: grid;
	gap: 0.85rem;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(10rem, 0.8fr) auto;
	padding: 0.55rem 1.25rem 1.2rem;
}

.user-add .form-label {
	color: #64748b;
	font-size: 0.82rem;
	font-weight: 600;
}

.user-add .form-control,
.user-add .form-select,
.user-table .form-control,
.user-table .form-select,
.user-search .form-control,
.user-page-size .form-select {
	border-color: #e5e7eb;
	border-radius: 10px;
}

.user-add-btn {
	background: #2f6bff;
	border: 0;
	border-radius: 10px;
	font-weight: 700;
	padding: 0.55rem 1.15rem;
}

.user-add-btn:hover,
.user-save-btn:hover {
	background: #2458db;
}

.user-list-head {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
	padding-right: 1.25rem;
}

.user-list-head .user-card-head {
	padding-bottom: 0.75rem;
}

.user-tools {
	align-items: center;
	display: flex;
	gap: 0.5rem;
}

.user-search {
	margin: 0;
	position: relative;
}

.user-search i {
	color: #94a3b8;
	left: 0.75rem;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
}

.user-search .form-control {
	min-width: 15rem;
	padding-left: 2.2rem;
}

.user-filter {
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	color: #64748b;
	padding: 0.45rem 0.7rem;
}

.user-filter:hover,
.user-tools .dropdown-item.is-current {
	background: #e8f1ff;
	color: #2f6bff;
}

.user-secret {
	position: relative;
}

.user-secret .form-control {
	padding-right: 2.3rem;
}

.user-secret button {
	background: transparent;
	border: 0;
	color: #94a3b8;
	line-height: 1;
	padding: 0.2rem;
	position: absolute;
	right: 0.55rem;
	top: 50%;
	transform: translateY(-50%);
}

.user-table thead th,
.list-card .dt-scroll-head thead th {
	background: #f7f9fc;
	color: #94a3b8;
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.list-card .dt-container > .row {
	margin: 0;
	padding: 0.75rem 1.15rem;
}

.list-card .dt-layout-table {
	padding: 0;
}

.list-card .table,
.user-table,
.access-matrix,
.detail-guest-table {
	--bs-table-bg: #fff;
	--bs-table-border-color: #d5deea;
	--bs-table-striped-bg: transparent;
	--bs-table-hover-bg: #f8fbff;
	border-collapse: collapse;
}

.list-card .table > :not(caption) > * > *,
.list-card .dt-scroll-head thead th,
.user-table > :not(caption) > * > *,
.access-matrix > :not(caption) > * > *,
.detail-guest-table > :not(caption) > * > * {
	border: 1px solid #d5deea;
}

.list-card .dt-info {
	color: #94a3b8;
	font-size: 0.86rem;
	padding: 0;
}

.list-card .dt-search label,
.list-card .dt-length label {
	margin: 0;
}

.list-card .dt-search label {
	display: none;
}

.list-card .dt-search {
	position: relative;
}

.list-card .dt-search input,
.list-card .dt-length select {
	border-color: #e5e7eb;
	border-radius: 10px;
	color: #64748b;
}

.list-card .dt-search input {
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") 0.7rem center no-repeat;
	min-width: 15rem;
	padding-left: 2.15rem;
}

.list-card .dt-length select {
	width: auto;
}

.list-card .pagination {
	gap: 0.35rem;
	margin: 0;
}

.list-card .pagination .page-link {
	align-items: center;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	color: #64748b;
	display: flex;
	height: 2rem;
	justify-content: center;
	margin: 0;
	min-width: 2rem;
	padding: 0 0.45rem;
}

.list-card .page-item.active .page-link {
	background: #2f6bff;
	border-color: #2f6bff;
	color: #fff;
}

.list-card .page-item.disabled .page-link {
	opacity: 0.45;
}

.user-table td {
	vertical-align: middle;
}

.user-table .form-select,
.user-table .form-control {
	min-width: 9.5rem;
}

.user-name {
	font-weight: 600;
}

.user-online,
.user-status {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: 700;
	gap: 0.3rem;
	padding: 0.15rem 0.55rem;
}

.user-online {
	background: #e8f8ef;
	color: #16a34a;
	margin-left: 0.4rem;
}

.user-online i,
.user-status i {
	font-size: 0.45rem;
}

.user-status {
	background: #e8f8ef;
	color: #16a34a;
}

.user-actions,
.user-save,
.user-delete {
	display: inline-flex;
}

.user-actions {
	gap: 0.4rem;
}

.user-save-btn {
	background: #2f6bff;
	border: 0;
	border-radius: 8px;
	font-weight: 700;
	white-space: nowrap;
}

.user-delete-btn {
	background: #fff;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #ef4444;
	font-weight: 700;
	white-space: nowrap;
}

.user-delete-btn:hover {
	background: #fef2f2;
	color: #dc2626;
}

.user-foot {
	align-items: center;
	color: #94a3b8;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.86rem;
	gap: 0.75rem;
	justify-content: space-between;
	padding: 0.85rem 1.25rem 1rem;
}

.user-foot p {
	margin: 0;
}

.user-pager,
.user-pages {
	align-items: center;
	display: flex;
	gap: 0.4rem;
}

.user-page-size {
	margin: 0;
}

.user-page-size .form-select {
	color: #64748b;
	font-size: 0.86rem;
	width: auto;
}

.user-page-btn {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	color: #64748b;
	height: 2rem;
	min-width: 2rem;
	padding: 0 0.45rem;
}

.user-page-btn.is-current {
	background: #2f6bff;
	border-color: #2f6bff;
	color: #fff;
}

.user-page-btn:disabled {
	opacity: 0.45;
}

@media (max-width: 991.98px) {
	.user-art {
		display: none;
	}

	.user-add {
		grid-template-columns: 1fr;
	}
}

.config-grid {
	align-items: start;
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 0.8fr);
}

.config-form {
	display: grid;
	gap: 1rem;
	padding-bottom: 1.15rem;
}

.config-card-top {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	justify-content: space-between;
}

.config-card-top .user-card-head {
	padding-bottom: 0;
}

.config-switch {
	align-items: center;
	cursor: pointer;
	display: flex;
	gap: 0.7rem;
	margin: 1rem 1.25rem 0 0;
}

.config-switch input {
	height: 1px;
	opacity: 0;
	position: absolute;
	width: 1px;
}

.config-switch-ui {
	background: #e5e7eb;
	border-radius: 999px;
	flex: 0 0 auto;
	height: 1.55rem;
	position: relative;
	width: 2.7rem;
}

.config-switch-ui::after {
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.2);
	content: "";
	height: 1.2rem;
	left: 0.18rem;
	position: absolute;
	top: 0.17rem;
	transition: transform 0.15s ease;
	width: 1.2rem;
}

.config-switch input:checked + .config-switch-ui {
	background: #2f6bff;
}

.config-switch input:checked + .config-switch-ui::after {
	transform: translateX(1.12rem);
}

.config-switch input:focus-visible + .config-switch-ui {
	outline: 2px solid #93c5fd;
	outline-offset: 2px;
}

.config-switch-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.config-switch-copy strong {
	color: #1e293b;
	font-size: 0.92rem;
}

.config-switch-copy small {
	color: #94a3b8;
	font-size: 0.75rem;
}

.config-fields {
	display: grid;
	gap: 0.95rem;
	padding: 0 1.25rem;
}

.config-fields .form-label {
	align-items: center;
	color: #1e293b;
	display: flex;
	font-weight: 700;
	gap: 0.35rem;
}

.config-fields .form-label i {
	color: #94a3b8;
	font-size: 0.85rem;
}

.config-hint {
	color: #94a3b8;
	font-size: 0.8rem;
	margin: 0.35rem 0 0;
}

.config-form .access-actions {
	padding: 0 1.25rem;
}

.config-guide {
	padding: 1.15rem 1.25rem 1.25rem;
}

.config-brand {
	align-items: center;
	display: flex;
	gap: 0.75rem;
}

.config-logo {
	align-items: center;
	background: #e8f1ff;
	border-radius: 14px;
	color: #2f6bff;
	display: flex;
	font-size: 1.45rem;
	height: 3rem;
	justify-content: center;
	width: 3rem;
}

.config-brand h2 {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0;
}

.config-brand p {
	color: #94a3b8;
	font-size: 0.82rem;
	margin: 0.1rem 0 0;
}

.config-note {
	align-items: flex-start;
	background: #eef6ff;
	border-radius: 12px;
	color: #334155;
	display: flex;
	font-size: 0.86rem;
	gap: 0.55rem;
	margin: 1rem 0;
	padding: 0.75rem 0.85rem;
}

.config-note i {
	color: #2f6bff;
	margin-top: 0.1rem;
}

.config-note p {
	margin: 0;
}

.config-guide h3 {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 0.7rem;
}

.config-steps {
	display: grid;
	gap: 0.65rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.config-steps li {
	align-items: flex-start;
	color: #334155;
	display: flex;
	font-size: 0.88rem;
	gap: 0.6rem;
}

.config-steps li::before {
	align-items: center;
	background: #e8f1ff;
	border-radius: 50%;
	color: #2f6bff;
	content: counter(step);
	counter-increment: step;
	display: flex;
	flex: 0 0 auto;
	font-size: 0.75rem;
	font-weight: 800;
	height: 1.35rem;
	justify-content: center;
	width: 1.35rem;
}

.config-steps {
	counter-reset: step;
}

.config-steps a {
	color: #2f6bff;
	font-weight: 700;
	text-decoration: none;
}

.config-steps strong {
	color: #2f6bff;
}

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

.recaptcha-wrap {
	margin-top: 0.85rem;
}

.user-edit {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.user-delete {
	display: inline-block;
}
