:root {
	--yi-red: #d80003;
	--yi-red-bright: #ff0000;
	--yi-gray: #808080;
	--yi-gray-light: #f4f5f7;
	--yi-gradient: linear-gradient(135deg, #ff0000 0%, #d80003 100%);
}

body,
.nav-main,
.userbox,
.page-header h2,
.card,
.btn,
input,
select,
textarea,
table {
	font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

body {
	color: #44474a;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
}

.bg-yi-gradient {
	background: var(--yi-gradient) !important;
	color: #fff !important;
}

.text-yi {
	color: var(--yi-red) !important;
}

.text-yi-gray {
	color: var(--yi-gray) !important;
}

.btn-yi {
	background: var(--yi-gradient);
	border: none;
	color: #fff;
	font-weight: 600;
	letter-spacing: .2px;
	box-shadow: 0 2px 6px rgba(216, 0, 3, .25);
	transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.btn-yi:hover,
.btn-yi:focus {
	color: #fff;
	opacity: .94;
	box-shadow: 0 4px 12px rgba(216, 0, 3, .35);
	transform: translateY(-1px);
}

.btn-yi-outline {
	background: transparent;
	border: 1px solid var(--yi-red);
	color: var(--yi-red);
	font-weight: 600;
	transition: background .12s ease, color .12s ease;
}

.btn-yi-outline:hover,
.btn-yi-outline:focus {
	background: var(--yi-red);
	color: #fff;
}

.btn-primary {
	background: var(--yi-gradient);
	border-color: var(--yi-red);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
	background: var(--yi-red);
	border-color: var(--yi-red);
	opacity: .95;
}

.text-primary {
	color: var(--yi-red) !important;
}

.bg-primary {
	background: var(--yi-gradient) !important;
}

.badge-primary {
	background-color: var(--yi-red);
}

a {
	color: var(--yi-red);
}

a:hover {
	color: #a80002;
}

@keyframes yiActiveShift {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

.sidebar-left .nav-main .nav-link {
	position: relative;
}

.sidebar-left .nav-main .nav-link:hover,
.sidebar-left .nav-main .nav-link:focus {
	color: var(--yi-red);
}

.sidebar-left .nav-main li.nav-active > .nav-link,
.sidebar-left .nav-main li.nav-active > a,
.yi-nav-active,
a.yi-nav-active,
li.yi-nav-active > a {
	color: #fff !important;
	background: linear-gradient(270deg, #ff0000, #d80003, #ff4d2e, #b80003);
	background-size: 300% 300%;
	animation: yiActiveShift 5s ease infinite;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(216, 0, 3, 0.40);
	font-weight: 600;
}

.sidebar-left .nav-main li.nav-active > .nav-link,
.sidebar-left .nav-main li.nav-active > a {
	margin: 4px 12px;
	padding: 0.55rem 1rem;
}

.sidebar-left .nav-main li.nav-active > .nav-link i,
.sidebar-left .nav-main li.nav-active > a i,
.sidebar-left .nav-main li.nav-active > .nav-link span,
.sidebar-left .nav-main li.nav-active > a span {
	color: #fff !important;
}

.sidebar-left .nav-main li.nav-active > .nav-link:hover,
.sidebar-left .nav-main li.nav-active > a:hover {
	color: #fff !important;
}

.yi-sidebar-logo {
	padding: 18px 20px;
	background: #fff;
	border-bottom: 1px solid #eceef0;
	text-align: center;
}

.yi-sidebar-logo img {
	height: 38px;
	width: auto;
}

.header .logo img {
	height: 36px;
	width: auto;
}

.page-header {
	border-bottom: 2px solid #eceef0;
}

.page-header h2 {
	border-left: 4px solid;
	border-image: var(--yi-gradient) 1;
	padding-left: 12px;
}

.card {
	border: 1px solid #edeff1;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.yi-card-accent {
	border-top: 3px solid var(--yi-red);
}

.yi-badge {
	display: inline-block;
	padding: .35em .7em;
	font-size: 11px;
	font-weight: 600;
	border-radius: 4px;
	line-height: 1;
	white-space: nowrap;
}

.yi-badge-pendiente   { background: #fff3cd; color: #8a6d00; }
.yi-badge-confirmada  { background: #e1f0ff; color: #0b62c4; }
.yi-badge-pagada      { background: #d8f5e3; color: #1c7a45; }
.yi-badge-vencida     { background: #ffe2dc; color: #c0392b; }
.yi-badge-proceso     { background: #fff3cd; color: #8a6d00; }
.yi-badge-transito    { background: #e1f0ff; color: #0b62c4; }
.yi-badge-aduana      { background: #ede0ff; color: #6a2dbd; }
.yi-badge-entregado   { background: #d8f5e3; color: #1c7a45; }

.yi-result-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 10px 4px;
	border-bottom: 1px solid #eef0f2;
}

.yi-result-row:last-child {
	border-bottom: none;
}

.yi-result-row .label {
	color: var(--yi-gray);
	font-size: 13px;
}

.yi-result-row .value {
	font-weight: 600;
	font-size: 14px;
}

.yi-result-highlight {
	background: var(--yi-gradient);
	color: #fff;
	border-radius: 8px;
	padding: 14px 16px;
	margin: 12px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.yi-result-highlight .label {
	color: rgba(255, 255, 255, .9);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.yi-result-highlight .value {
	font-weight: 800;
	font-size: 20px;
}

.yi-total-box {
	background: #fff;
	border: 2px solid var(--yi-red);
	border-radius: 10px;
	padding: 18px;
	text-align: center;
	margin-top: 14px;
}

.yi-total-box .total-label {
	color: var(--yi-gray);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .5px;
}

.yi-total-box .total-value {
	font-size: 34px;
	font-weight: 800;
	background: var(--yi-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	line-height: 1.1;
}

.yi-segmented {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.yi-segmented input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.yi-segmented label {
	flex: 1 1 0;
	min-width: 110px;
	text-align: center;
	border: 1px solid #d6d9dc;
	border-radius: 8px;
	padding: 12px 10px;
	cursor: pointer;
	margin: 0;
	font-weight: 600;
	color: #5a5d61;
	transition: all .12s ease;
}

.yi-segmented label i {
	display: block;
	font-size: 20px;
	margin-bottom: 4px;
}

.yi-segmented input[type="radio"]:checked + label {
	background: var(--yi-gradient);
	border-color: var(--yi-red);
	color: #fff;
	box-shadow: 0 2px 8px rgba(216, 0, 3, .25);
}

.yi-segmented input[type="radio"]:focus + label {
	outline: 2px solid rgba(216, 0, 3, .35);
	outline-offset: 2px;
}

.yi-stepper {
	display: flex;
	align-items: flex-start;
	width: 100%;
	overflow: visible;
	padding: 10px 0 6px;
}

@media (max-width: 800px) {
	.yi-stepper { overflow-x: auto; }
}

.yi-step {
	flex: 1 1 0;
	min-width: 92px;
	text-align: center;
	position: relative;
}

.yi-step::before {
	content: "";
	position: absolute;
	top: 19px;
	left: -50%;
	width: 100%;
	height: 4px;
	background: #e2e5e8;
	z-index: 0;
}

.yi-step:first-child::before {
	display: none;
}

.yi-step .yi-step-dot {
	position: relative;
	z-index: 1;
	width: 40px;
	height: 40px;
	line-height: 40px;
	border-radius: 50%;
	background: #e2e5e8;
	color: #9aa0a6;
	font-weight: 700;
	margin: 0 auto 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.yi-step .yi-step-label {
	font-size: 11.5px;
	color: var(--yi-gray);
	line-height: 1.25;
	display: block;
	padding: 0 4px;
}

.yi-step.is-complete::before {
	background: var(--yi-red);
}

.yi-step.is-complete .yi-step-dot {
	background: var(--yi-red);
	color: #fff;
}

.yi-step.is-complete .yi-step-label {
	color: #44474a;
}

.yi-step.is-current::before {
	background: var(--yi-red);
}

.yi-step.is-current .yi-step-dot {
	background: var(--yi-gradient);
	color: #fff;
	box-shadow: 0 0 0 5px rgba(216, 0, 3, .18);
	transform: scale(1.12);
}

.yi-step.is-current .yi-step-label {
	color: var(--yi-red);
	font-weight: 700;
}

.yi-timeline {
	list-style: none;
	margin: 0;
	padding: 0 0 0 8px;
}

.yi-timeline li {
	position: relative;
	padding: 0 0 22px 28px;
	border-left: 2px solid #e2e5e8;
}

.yi-timeline li:last-child {
	border-left-color: transparent;
	padding-bottom: 0;
}

.yi-timeline li::before {
	content: "";
	position: absolute;
	left: -8px;
	top: 2px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid #c7cbcf;
}

.yi-timeline li.is-done::before {
	border-color: var(--yi-red);
	background: var(--yi-red);
}

.yi-timeline li.is-current::before {
	border-color: var(--yi-red);
	background: var(--yi-gradient);
	box-shadow: 0 0 0 4px rgba(216, 0, 3, .15);
}

.yi-timeline .ev-date {
	font-size: 12px;
	color: var(--yi-gray);
}

.yi-timeline .ev-title {
	font-weight: 600;
	color: #2f3133;
}

.yi-timeline .ev-desc {
	font-size: 13px;
	color: #6b6f73;
}

.yi-landing {
	min-height: 100vh;
	background: linear-gradient(160deg, #1d1f22 0%, #2b1416 100%);
	color: #fff;
	padding: 0;
}

.yi-landing-hero {
	text-align: center;
	padding: 56px 20px 28px;
}

.yi-landing-hero img {
	height: 56px;
	margin-bottom: 18px;
}

.yi-landing-card {
	background: #fff;
	color: #2f3133;
	border-radius: 12px;
	padding: 26px 22px;
	height: 100%;
	text-decoration: none;
	display: block;
	transition: transform .15s ease, box-shadow .15s ease;
	border-top: 4px solid var(--yi-red);
}

.yi-landing-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
	color: #2f3133;
}

.yi-landing-card .yi-card-icon {
	width: 54px;
	height: 54px;
	border-radius: 12px;
	background: var(--yi-gradient);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 14px;
}

.yi-landing-card h4 {
	margin: 0 0 6px;
	font-weight: 700;
}

.yi-landing-card p {
	color: var(--yi-gray);
	font-size: 14px;
	margin: 0;
}

.yi-footer {
	background: #1d1f22;
	color: #c4c7ca;
	padding: 26px 0;
	margin-top: 30px;
}

.yi-footer img {
	height: 34px;
	margin-bottom: 10px;
}

.yi-footer a {
	color: #e8d2d2;
}

.yi-footer .yi-social a {
	display: inline-block;
	width: 34px;
	height: 34px;
	line-height: 34px;
	text-align: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: #fff;
	margin-right: 6px;
}

.yi-footer .yi-social a:hover {
	background: var(--yi-gradient);
}

.yi-method i {
	color: var(--yi-red);
	margin-right: 4px;
}

.yi-tile {
	border-radius: 10px;
	padding: 18px;
	color: #fff;
	background: var(--yi-gradient);
}

.yi-tile.gray   { background: #6b6f73; }
.yi-tile .tile-value { font-size: 26px; font-weight: 800; line-height: 1; }
.yi-tile .tile-label { font-size: 12px; opacity: .9; text-transform: uppercase; letter-spacing: .5px; }

.yi-modal .modal-header {
	border-bottom: none;
}

.yi-modal .modal-content {
	border: none;
	border-radius: 12px;
	overflow: hidden;
	border-top: 4px solid var(--yi-red);
}

.yi-modal .modal-footer {
	border-top: 1px solid #eef0f2;
}

tr.yi-row {
	cursor: pointer;
}

.logo-container { display: flex; align-items: center; gap: 10px; padding-left: 14px; }
.yi-header-logo { height: 34px; width: auto; vertical-align: middle; }

.header-right .userbox {
	margin: 0 17px 0 0;
	display: flex;
	align-items: center;
	height: 56px;
}

.header-right .userbox > a {
	display: flex;
	align-items: center;
	gap: 10px;
}

.userbox .profile-picture {
	display: flex;
	align-items: center;
	margin: 0;
	line-height: 0;
}

.userbox .profile-picture span.rounded-circle {
	width: 40px;
	height: 40px;
	font-size: 14px;
	letter-spacing: .5px;
}

.userbox .profile-info {
	display: flex;
	align-items: center;
	margin: 0;
}

.userbox .profile-info .name {
	color: #2f3133;
	font-weight: 600;
	line-height: 1.1;
}

.userbox .custom-caret {
	color: var(--yi-red);
	margin-left: 4px;
	display: flex;
	align-items: center;
}

.userbox > a:hover .name,
.userbox > a:hover .custom-caret,
.userbox > a.show .name,
.userbox > a.show .custom-caret {
	color: var(--yi-red);
}

.userbox .dropdown-menu {
	border-top: 3px solid var(--yi-red);
	border-radius: 8px;
}

.userbox .dropdown-menu a {
	color: #5a5d61;
}

.userbox .dropdown-menu a i {
	color: var(--yi-red);
}

.userbox .dropdown-menu a:hover,
html.modern .userbox.show .dropdown-menu a:hover {
	background: var(--yi-red) !important;
	color: #fff !important;
}

.userbox .dropdown-menu a:hover i,
html.modern .userbox.show .dropdown-menu a:hover i {
	color: #fff !important;
}

.yi-account {
	padding: 16px 16px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	margin-bottom: 6px;
}

.yi-account-head {
	display: flex;
	align-items: center;
	gap: 11px;
}

.yi-account-avatar {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .5px;
	box-shadow: 0 2px 8px rgba(216, 0, 3, .35);
	border: 2px solid rgba(255, 255, 255, .12);
}

.yi-account-meta {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.yi-account-name {
	color: #f3f4f6;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.yi-account-role {
	color: var(--yi-red);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .6px;
	text-transform: uppercase;
	margin-top: 2px;
}

.yi-account-toggle {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 7px;
	background: rgba(255, 255, 255, .04);
	color: #cfd3d8;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .12s ease, color .12s ease, border-color .12s ease;
}

.yi-account-toggle:hover,
.yi-account-toggle[aria-expanded="true"] {
	background: var(--yi-red);
	border-color: var(--yi-red);
	color: #fff;
}

.yi-account-toggle i {
	font-size: 18px;
	transition: transform .18s ease;
}

.yi-account-toggle[aria-expanded="true"] i {
	transform: rotate(180deg);
}

.yi-account-menu {
	margin-top: 10px;
}

.yi-account-link {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 10px;
	border-radius: 7px;
	color: #c4c8cd;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: background .12s ease, color .12s ease;
}

.yi-account-link + .yi-account-link {
	margin-top: 2px;
}

.yi-account-link i {
	color: var(--yi-red);
	font-size: 17px;
	transition: color .12s ease;
}

.yi-account-link:hover,
.yi-account-link:focus {
	background: var(--yi-red);
	color: #fff;
}

.yi-account-link:hover i,
.yi-account-link:focus i {
	color: #fff;
}

.page-header .right-wrapper {
	padding-right: 6px;
}

.page-header .breadcrumbs li:after {
	margin: 0 12px;
	color: #c3c3c3;
}

.page-header .breadcrumbs li:last-child span {
	color: var(--yi-red);
	font-weight: 600;
}

.page-header .breadcrumbs a:hover {
	color: var(--yi-red);
}

.page-header .breadcrumbs .bx-home-alt {
	font-size: 1.25rem;
}

.yi-ad {
	margin: 18px auto;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #f3f4f6;
	border: 1px dashed #c7ccd1;
	border-radius: 10px;
	padding: 12px;

	min-height: 114px;
}

.yi-ad--rectangle {
	min-height: 274px;
}

.yi-ad--inline {
	margin: 0 auto;
}

.yi-ad__label {
	display: block;
	font-size: 10px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #9aa0a6;
	margin-bottom: 6px;
}

.yi-ad img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	border: 1px solid #e2e5e8;
	background: #fff;
}

.yi-step {
	cursor: default;
}

.yi-step .yi-step-dot {
	cursor: default;
	outline: none;
	transition: transform .12s ease, box-shadow .12s ease;
}

.yi-step-tooltip {
	position: absolute;
	bottom: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	width: 220px;
	background: #fff;
	border: 1px solid #eceef0;
	border-top: 3px solid var(--yi-red);
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(20, 20, 25, .18);
	padding: 12px 14px;
	text-align: left;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
}

.yi-step:hover .yi-step-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
}

.yi-step:nth-last-child(-n+2) .yi-step-tooltip {
	left: auto;
	right: 0;
	transform: translateY(6px);
}

.yi-step:nth-last-child(-n+2):hover .yi-step-tooltip {
	transform: translateY(0);
}

.yi-step-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 7px solid transparent;
	border-top-color: #fff;
	filter: drop-shadow(0 2px 1px rgba(20, 20, 25, .08));
}

.yi-step:nth-last-child(-n+2) .yi-step-tooltip::after {
	left: auto;
	right: 16px;
	transform: none;
}

.yi-step-tooltip .tt-phase {
	font-weight: 700;
	color: #2f3133;
	font-size: 13px;
	margin-bottom: 4px;
}

.yi-step-tooltip .tt-transition {
	font-size: 12px;
	color: #6b6f73;
	margin-bottom: 4px;
	line-height: 1.35;
}

.yi-step-tooltip .tt-transition strong {
	color: var(--yi-red);
}

.yi-step-tooltip .tt-date {
	font-size: 11.5px;
	color: var(--yi-gray);
}

.yi-step-tooltip .tt-date i {
	color: var(--yi-red);
	margin-right: 3px;
}

.yi-next-phase {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 12px 16px;
	background: #fff6f6;
	border: 1px solid #f3d4d4;
	border-radius: 10px;
	font-size: 14px;
	color: #5a5d61;
}

.yi-next-phase .np-icon {
	color: var(--yi-red);
	font-size: 20px;
}

.yi-next-phase .np-phase {
	font-weight: 700;
	color: var(--yi-red);
}

.yi-next-phase .np-count {
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	color: #2f3133;
	letter-spacing: .3px;
	background: #fff;
	border: 1px solid #f0d2d2;
	border-radius: 6px;
	padding: 2px 8px;
}

.yi-eta-countdown {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.yi-eta-countdown .ec-label {
	font-size: 12px;
	color: var(--yi-gray);
}

.yi-eta-countdown .ec-value {
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	font-size: 17px;
	color: var(--yi-red);
	letter-spacing: .4px;
	line-height: 1.1;
}

.yi-sidebar-ads { padding: 14px 14px 22px; display: flex; flex-direction: column; gap: 12px; }
.yi-ad--sidebar { margin: 0; min-height: 0; }
