:root {
	--primary: #1565C0;
	--primary-tint: #EAF2FC;
	--secondary: #6C757D;
	--navy: #0B2E4E;
	--turquesa: #12A8CC;
	--bg: #F4F6F8;
	--surface: #FFFFFF;
	--border: #E4E4E6;
	--text: #1F2937;
	--text-muted: #6B7280;
	--text-faint: #A6A6AC;
	--shadow-lift: 0 10px 40px rgba(15, 23, 42, .08);

	--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
}

.body-auth {
	position: relative;
	background: var(--bg);
	font-family: var(--font-family);
	color: var(--text);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 30px 25px;
}

.card-clever {
	border-radius: 16px;
	box-shadow: var(--shadow-lift);
	max-width: 100%;
    width: 400px;
    background: var(--surface);
}

.card-clever .subtitle {
	font-size: 14px;
	color: var(--text-muted);
}

.clever-auth-footer {
	width: 90%;
	max-width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	font-size: 14px;
}

.clever-auth-footer img {
	height: 20px;
	width: auto;
	display: block;
}

.clever-auth-footer .sep {
	color: var(--border);
}

.clever-auth-footer a {
	color: var(--primary);
	text-decoration: none;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.clever-auth-footer a:hover {
	color: var(--primary);
}

.primary-btn {
	background: var(--primary);
	color: #fff;
}

.primary-btn:hover {
	background: #0f4c8f;
	color: #fff;
}

.btn-clever {
	width: 100%;
	padding: 12px;
	font-size: 15px;
	border: 0;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
}

.btn-clever:disabled {
	opacity: .55;
	cursor: not-allowed;
}

/* Lista de opciones (empresas, módulos) */
.list-clever {
	display: flex;
	flex-direction: column;
	padding: 10px 0;
}

.list-clever .item {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	text-align: left;
	padding: 13px 24px;
	cursor: pointer;
	border: 0;
	border-top: 1px solid var(--border);
	background: transparent;
	font: inherit;
	color: inherit;
}

.list-clever .item:hover {
	background: var(--primary-tint);
}

.list-clever .dot {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--primary);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12.5px;
	font-weight: 700;
	flex-shrink: 0;
}

.list-clever .item .name {
	font-size: 14px;
}

.list-clever .dot .fa-solid {
	font-size: 14px;
}

.alert-clever {
	text-align: center;
	padding: 12px;
	border-radius: 8px;
	font-size: 13px;
}

.alert-danger {
	background: #fee2e2;
	color: #b91c1c;
}

.alert-success {
	background: #dcfce7;
	color: #15803d;
}

.alert-success a {
	color: #15803d;
	font-weight: 600;
}

.form-clever {
	padding: 0 28px 30px;
}

.form-clever .field {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-size: 14px;
	font: inherit;
	color: inherit;
	background: var(--surface);
}

.form-clever .field:focus {
	outline: none;
	border-color: var(--primary);
}

.form-clever .field-wrap {
	position: relative;
}

.form-clever .field-wrap .field {
	padding-right: 42px;
}

.form-clever .field-toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 0;
	color: var(--text-faint);
	cursor: pointer;
	font-size: 14px;
}

.form-clever .field-toggle:hover {
	color: var(--text-muted);
}

.back-link {
	display: block;
	text-align: center;
	padding: 15px 24px 30px;
	font-size: 12.5px;
	color: var(--primary);
	cursor: pointer;
}

.hidden {
	display: none !important;
}

.card-clever .head {
	padding: 30px 28px 16px;
	text-align: center;
}

.card-clever .head h1 {
	font-size: 20px;
	font-weight: 600;
	text-wrap: balance;
}

.clever label{
	margin-bottom: 5px;
	font-weight: 500;
	font-size: 15px;
}

.clever .btn-primary{
	background: var(--primary);
	color: #fff;
	border-color: var(--primary);
	box-shadow: none;
	min-width: 200px;
}

.clever-modal label{
	font-size: 13px;
    font-weight: 400;
}

.clever-modal .input-error {
	border-color: #dc3545 !important;
}

.clever-modal .form-control.input-error:focus {
	border-color: #dc3545;
	box-shadow: 0 0 0 .15rem rgba(220, 53, 69, .15);
}

.clever-modal .select2-container--default .select2-selection--single.input-error {
	border-color: #dc3545;
}

.clever-modal .select2-container--default .select2-selection--single {
	height: calc(1.5em + .5rem + 2px);
	border: 1px solid var(--border);
	border-radius: 6px;
	display: flex;
	align-items: center;
	padding: 0 4px;
}

.clever-modal .select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: normal;
	padding: 0 4px;
}

.clever-modal .select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
}

.clever-modal .select2-dropdown {
	border-color: var(--border);
	border-radius: 6px;
}

.clever-modal .select2-search--dropdown .select2-search__field {
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 4px 8px;
	outline: none;
}

.clever-modal .select2-results__option--highlighted[aria-selected] {
	background-color: var(--turquesa);
}

.xcampos-picker-table tbody tr {
	cursor: pointer;
}

.dataTables_wrapper .table td,
.dataTables_wrapper .table th {
	padding: .35rem .75rem;
	font-size: .8rem;
}
.dataTables_wrapper .table thead th {
	border-top: 0;
	border-bottom: 2px solid var(--border);
}

.dataTables_wrapper {
	display: flex;
	flex-wrap: wrap;
}

.dataTables_filter, table {
	width: 100%;
	margin-left: auto;
}

.dataTables_wrapper table{
	margin:  20px 0;
}

.dataTables_paginate, .dataTables_info{
	width: 50%;
}
@media screen and (max-width: 767px) {
	.dataTables_filter, .dataTables_paginate {
		text-align:  right !important;
	}
	.dataTables_info {
		text-align: left !important;
	}
	.xcampos-picker-modal div.dataTables_wrapper div.dataTables_paginate ul.pagination {
		justify-content: flex-end !important;
	}
}
.dataTables_wrapper .dataTables_filter input {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 4px 8px;
	font-size: .85rem;
	outline: none;
}

.dataTables_wrapper .dataTables_filter input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
	display: none;
}

.dataTables_wrapper .dataTables_info {
	color: var(--text-muted);
	font-size: .8rem;
	padding-top: 0;
}
.dataTables_wrapper .pagination {
	margin: 0;
}
.dataTables_wrapper .pagination .page-link {
	color: var(--text-muted);
	font-size: .8rem;
	padding: .35rem .65rem;
	line-height: 1.2;
}
.dataTables_wrapper .pagination .page-item.active .page-link {
	background-color: var(--secondary);
	border-color: var(--secondary);
	color: var(--surface);
}
.dataTables_wrapper .pagination .page-item.disabled .page-link {
	color: var(--text-faint);
}

.dataTables_wrapper thead .sorting:before,
.dataTables_wrapper thead .sorting_asc:before,
.dataTables_wrapper thead .sorting_desc:before {
	content: none !important;
}
.dataTables_wrapper thead .sorting:after,
.dataTables_wrapper thead .sorting_asc:after,
.dataTables_wrapper thead .sorting_desc:after {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 1em !important;
	line-height: 1;
	opacity: .35;
}
.dataTables_wrapper thead .sorting:after      { content: "\f0d7" !important; }
.dataTables_wrapper thead .sorting_asc:after  { content: "\f0d8" !important; opacity: 1; }
.dataTables_wrapper thead .sorting_desc:after { content: "\f0d7" !important; opacity: 1; }

.clever-spinner {
	width: 38px;
	height: 38px;
	margin: 0 auto;
	border-radius: 50%;
	background: conic-gradient(from 0deg, var(--primary), var(--primary-tint) 75%, transparent);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
	        mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
	animation: clever-spin .8s linear infinite;
}

@keyframes clever-spin {
	to { transform: rotate(360deg); }
}