@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
	--sb-navy-950: #030A28;
	--sb-navy-900: #051039;
	--sb-navy-800: #0C1D5C;
	--sb-navy-700: #16297A;
	--sb-line-blue: #3A62C4;
	--sb-blue-600: #2A55C9;
	--sb-blue-300: #9DB4F0;
	--sb-platinum-400: #B4BBC9;
	--sb-platinum-300: #CDD2DC;
	--sb-platinum-100: #ECEEF3;
	--sb-paper: #F7F6F2;
	--sb-on-dark: #FFFFFF;
	--sb-on-dark-muted: #A7B2D4;
	--sb-on-dark-faint: #7883AB;
	--sb-field: #F2F4F8;
	--sb-focus: rgba(42, 85, 201, 0.45);
}

body {
	-webkit-font-smoothing: antialiased;
}

.login-page,
body:has(.login-page) {
	background: var(--sb-paper);
}

.login-circle-1,
.login-circle-2 {
	display: none;
}

.login-card {
	max-width: 1180px;
	min-height: 600px;
	border-radius: var(--ui-radius-xl);
}

.login-brand {
	background: var(--sb-navy-900);
	padding: 3.25rem 3rem;
}

.login-brand::before {
	top: auto;
	right: auto;
	left: 38%;
	bottom: -48%;
	width: 140%;
	height: 140%;
	border-radius: 0;
	background: url('/assets/img/soberana-guilloche.svg') center / contain no-repeat;
	opacity: 0.8;
}

.login-brand::after {
	display: none;
}

.login-brand img {
	width: 52px;
	margin-bottom: 2.25rem;
}

.login-brand h1 {
	font-family: var(--ui-font-display);
	font-weight: 400;
	font-size: clamp(2.2rem, 3.2vw, 2.9rem);
	line-height: 1.08;
	letter-spacing: -0.005em;
	max-width: 12ch;
	margin-bottom: 1.1rem;
}

.login-brand p {
	color: var(--sb-on-dark-muted);
	font-size: 0.95rem;
	max-width: 34ch;
}

.login-brand-footer span {
	color: var(--sb-on-dark-faint);
	font-size: 0.78rem;
	letter-spacing: 0;
}

.login-form-inner h2 {
	font-family: var(--ui-font-display);
	font-weight: 400;
	font-size: 2.1rem;
	letter-spacing: -0.005em;
	color: var(--sb-navy-900);
	margin-bottom: 0.5rem;
}

.login-subtitle {
	color: var(--ui-gray-10);
}

.login-field label {
	color: var(--ui-gray-12);
	font-weight: 500;
}

.login-field input {
	background: var(--sb-field);
	border: none;
	color: var(--ui-gray-12);
}

.login-field input:hover {
	background: var(--sb-platinum-100);
}

.login-field input:focus {
	background: var(--ui-color-white);
	border: none;
	box-shadow: none;
	outline: 2px solid var(--sb-focus);
	outline-offset: 0;
}

.login-btn {
	background: var(--sb-navy-900);
	letter-spacing: 0;
}

.login-btn:hover {
	background: var(--sb-navy-800);
}

.login-btn:disabled,
.login-btn:disabled:hover {
	opacity: 1;
	background: var(--sb-platinum-300);
	color: var(--ui-gray-10);
}

.login-btn:focus-visible {
	outline: 2px solid var(--sb-focus);
	outline-offset: 2px;
}

.login-user-row,
.login-info-box {
	background: var(--sb-field);
	border: none;
}

.login-change-email,
.login-resend-link a {
	color: var(--sb-blue-600);
}

.otp-channel-choice .otp-channel-option {
	background: var(--sb-field);
	border: none;
	color: var(--ui-gray-12);
	font-weight: 500;
}

.otp-channel-choice .otp-channel-option:hover {
	background: var(--sb-platinum-100);
}

.otp-channel-choice .otp-channel-option:has(input:checked) {
	background: var(--ui-color-primary-3);
	border: none;
}

.login-field .otp-channel-option input,
.otp-channel-choice .otp-channel-option input {
	background: var(--sb-platinum-300);
	border: none;
	outline: none;
}

.login-field .otp-channel-option input:checked,
.otp-channel-choice .otp-channel-option input:checked {
	background: var(--sb-navy-900);
}

.login-field .otp-channel-option input:checked::after,
.otp-channel-choice .otp-channel-option input:checked::after {
	width: 6px;
	height: 6px;
	background: var(--ui-color-white);
}

.login-field .otp-channel-option input:focus-visible,
.otp-channel-choice .otp-channel-option input:focus-visible {
	outline: 2px solid var(--sb-focus);
	outline-offset: 2px;
}

.login-alert {
	border: none;
}

body {
	background-color: var(--ui-color-white);
}

.sidebar {
	background: var(--ui-gray-2);
}

.nav-link {
	color: var(--ui-gray-11);
}

.nav-link:hover {
	background: var(--ui-gray-3);
}

.nav-link.active {
	font-weight: 600;
}

.sidebar-avatar,
.topbar-avatar {
	background: var(--sb-navy-900);
}

.sidebar-logo img,
.company-logo-img {
	border-radius: 4px;
}

.btn-primary,
.btn-primary:focus {
	background-color: var(--sb-navy-900) !important;
	border-color: transparent !important;
	color: var(--ui-color-white) !important;
}

.btn-primary:hover,
.btn-primary:active {
	background-color: var(--sb-navy-800) !important;
	border-color: transparent !important;
}

.btn-outline-primary {
	background: var(--ui-color-primary-3);
	border-color: transparent !important;
	color: var(--ui-color-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:active {
	background: var(--ui-color-primary) !important;
	color: var(--ui-color-white) !important;
}

.btn-outline-secondary,
.btn-outline-dark,
.btn-light {
	background: var(--ui-gray-3);
	border-color: transparent !important;
	color: var(--ui-gray-12);
}

.btn-outline-secondary:hover,
.btn-outline-dark:hover,
.btn-light:hover {
	background: var(--ui-gray-5) !important;
	color: var(--ui-gray-12) !important;
}

.btn-outline-success {
	background: var(--ui-color-success-bg);
	border-color: transparent !important;
	color: var(--ui-color-success-text);
}

.btn-outline-danger {
	background: var(--ui-color-danger-bg);
	border-color: transparent !important;
	color: var(--ui-color-danger-text);
}

.btn-outline-warning {
	background: var(--ui-color-warning-bg);
	border-color: transparent !important;
	color: var(--ui-color-warning-text);
}

.btn:focus-visible {
	box-shadow: none !important;
	outline: 2px solid var(--sb-focus);
	outline-offset: 2px;
}

.form-control,
.form-select,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
.dt-search input,
.dt-length select {
	background-color: var(--sb-field) !important;
	border-color: transparent !important;
	color: var(--ui-gray-12);
}

.form-control:focus,
.form-select:focus,
.dataTables_wrapper .dataTables_filter input:focus,
.dt-search input:focus {
	background-color: var(--ui-color-white) !important;
	border-color: transparent !important;
	box-shadow: none !important;
	outline: 2px solid var(--sb-focus) !important;
	outline-offset: 0;
}

.form-check-input {
	background-color: var(--ui-gray-5);
	border-color: transparent;
}

.form-check-input:checked {
	background-color: var(--sb-navy-900);
	border-color: transparent;
}

.form-check-input:focus {
	border-color: transparent;
	box-shadow: none;
	outline: 2px solid var(--sb-focus);
	outline-offset: 1px;
}

.pagination {
	--bs-pagination-border-color: transparent;
	--bs-pagination-hover-border-color: transparent;
	--bs-pagination-active-border-color: transparent;
	--bs-pagination-disabled-border-color: transparent;
	--bs-pagination-active-bg: var(--sb-navy-900);
}

.account-card,
.beneficiary-card,
.stats-card {
	border: none;
	background: var(--ui-gray-2);
}

.account-card:hover,
.beneficiary-card:hover {
	background: var(--ui-gray-3);
}

.report-hero {
	background: var(--sb-navy-900) url('/assets/img/soberana-waves.svg') center / cover no-repeat;
	border-radius: var(--ui-radius-lg);
}

.report-hero-eyebrow,
.report-hero-clabel {
	text-transform: none;
	letter-spacing: 0;
	color: var(--sb-on-dark-faint);
	font-weight: 500;
}

.report-hero-eyebrow {
	font-size: 0.82rem;
}

.report-hero-clabel {
	font-size: 0.76rem;
}

.report-hero-total {
	font-weight: 400;
	letter-spacing: -0.01em;
	font-size: clamp(2.6rem, 5vw, 3.4rem);
}

.report-hero-total .cur {
	color: var(--sb-on-dark-faint);
	font-family: var(--ui-font-display);
}

.report-hero-sub {
	color: var(--sb-on-dark-muted);
}

.report-hero-btn {
	background: var(--sb-navy-800);
	border: none;
	font-weight: 600;
}

.report-hero-btn:hover {
	background: var(--sb-navy-700);
}

.report-hero-btn.solid {
	background: var(--ui-color-white);
	color: var(--sb-navy-900);
}

.report-hero-btn.solid:hover {
	background: var(--sb-platinum-100);
	color: var(--sb-navy-900);
}

.report-label {
	text-transform: none;
	letter-spacing: 0;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--ui-gray-9);
}

.report-sec + .report-sec {
	border-left-color: var(--ui-gray-4);
}

.report-line .vv {
	font-weight: 600;
	color: var(--ui-gray-12);
}

.report-dist-hd .nm {
	color: var(--ui-gray-12);
	font-weight: 500;
}

.report-rail {
	height: 4px;
	background: var(--ui-gray-4);
}


.report-mov {
	border-top-color: var(--sb-navy-900);
}

.report-td-amount {
	font-weight: 600;
}

.report-td-amount.is-neg {
	color: var(--ui-gray-12);
}

.report-link {
	color: var(--ui-gray-12);
}

.report-link:hover {
	color: var(--sb-blue-600);
}

.drawer-label,
.drawer-section-title {
	text-transform: none;
	letter-spacing: 0;
}

.success-header,
.success-icon {
	background: var(--sb-navy-900);
}

body.error-page {
	background: var(--sb-navy-900);
}

body.error-page::before,
body.error-page::after,
.error-glow,
.error-glow-1,
.error-glow-2 {
	background: none !important;
}

.error-message {
	font-family: var(--ui-font-display);
	font-weight: 400;
	font-size: 1.6rem;
	letter-spacing: -0.005em;
}


.ui-alert,
.alert {
	border: none;
}

.status-badge {
	padding: 3px 8px;
	border-radius: 6px;
	font-weight: 600;
}

.status-approved,
.status-settled {
	background: var(--ui-color-success-bg);
	color: var(--ui-color-success-text);
}

.status-pending,
.status-review {
	background: var(--ui-color-warning-bg);
	color: var(--ui-color-warning-text);
}

.status-declined,
.status-cancelled {
	background: var(--ui-color-danger-bg);
	color: var(--ui-color-danger-text);
}

.status-returned {
	background: var(--ui-gray-4);
	color: var(--ui-gray-11);
}

.status-awaiting {
	background: var(--ui-color-primary-3);
	color: var(--ui-color-primary-11);
}

h5.text-md.font-primary {
	font-family: var(--ui-font-display) !important;
	font-size: 1.75rem !important;
	font-weight: 400;
	letter-spacing: -0.005em;
	color: var(--sb-navy-900);
	margin-bottom: 0.25rem !important;
}

h5.text-md.font-primary > i {
	display: none;
}

h5.text-md.font-primary + small {
	font-size: 0.85rem;
	color: var(--ui-gray-10) !important;
}

.dt-buttons .btn,
.dt-buttons .btn-secondary,
.btn-secondary {
	background: var(--sb-field) !important;
	border-color: transparent !important;
	color: var(--ui-gray-12) !important;
}

.dt-buttons .btn:hover,
.btn-secondary:hover {
	background: var(--ui-gray-5) !important;
}

.dt-search input,
.dt-search input[type="search"],
.dt-length select,
.dt-filter-select,
.dt-page-select,
.dt-page-btn,
.input-group-text {
	background-color: var(--sb-field) !important;
	border-color: transparent !important;
	color: var(--ui-gray-12);
}

.dt-page-btn:hover:not(:disabled) {
	background-color: var(--ui-gray-5) !important;
}

.dt-search input:focus,
.dt-filter-select:focus,
.dt-page-select:focus,
.dt-length select:focus {
	background-color: var(--ui-color-white) !important;
	border-color: transparent !important;
	box-shadow: none !important;
	outline: 2px solid var(--sb-focus) !important;
	outline-offset: 0;
}

.nav-pills .nav-link {
	background: var(--sb-field);
	border-color: transparent !important;
	color: var(--ui-gray-11);
	font-weight: 500;
}

.nav-pills .nav-link:hover {
	background: var(--ui-gray-5);
	color: var(--ui-gray-12);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
	background: var(--sb-navy-900) !important;
	color: var(--ui-color-white) !important;
	font-weight: 600;
}

.badge.bg-success {
	background-color: var(--ui-color-success-bg) !important;
	color: var(--ui-color-success-text) !important;
}

.badge.bg-danger {
	background-color: var(--ui-color-danger-bg) !important;
	color: var(--ui-color-danger-text) !important;
}

.badge.bg-warning {
	background-color: var(--ui-color-warning-bg) !important;
	color: var(--ui-color-warning-text) !important;
}

.badge.bg-secondary {
	background-color: var(--ui-gray-4) !important;
	color: var(--ui-gray-11) !important;
}

.badge.bg-primary {
	background-color: var(--sb-navy-900) !important;
	color: var(--ui-color-white) !important;
}

body.error-page .error-code {
	font-family: var(--ui-font-display);
	font-weight: 400;
}

body.error-page .error-btn {
	background: var(--ui-color-white);
	color: var(--sb-navy-900);
	border: none;
}

body.error-page .error-btn:hover {
	background: var(--sb-platinum-100);
	color: var(--sb-navy-900);
}

body.error-page .error-btn.error-btn-outline {
	background: var(--sb-navy-800);
	color: var(--ui-color-white);
}

body.error-page .error-btn.error-btn-outline:hover {
	background: var(--sb-navy-700);
	color: var(--ui-color-white);
}

body.error-page .error-code {
	letter-spacing: 0;
}

body.error-page .error-footer {
	color: var(--sb-on-dark-faint);
	letter-spacing: 0;
}

@media (max-width: 576px) {
	.report-table td {
		padding-right: 8px;
		font-size: 0.8rem;
	}

	.report-td-date {
		white-space: normal;
		width: 4.5rem;
	}

	.report-table .status-badge i {
		display: none;
	}

	.login-brand {
		padding: 2.5rem 1.75rem;
	}
}
