

:root {
	--moxen-primary: #0d6efd;
	--moxen-radius: 12px;
}


.logo-mark {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 10px;
	background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
	color: #fff;
	font-weight: 600;
	font-size: 20px;
	line-height: 1;
	letter-spacing: .5px;
}

.sidebar-header .logo-text {
	font-weight: 600;
	letter-spacing: .3px;
	margin-bottom: 0;
}


.user-avatar-iniciales {
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #e7f1ff;
	color: #0d6efd;
	font-weight: 600;
	font-size: 16px;
}

.topbar-titulo h5 {
	font-weight: 500;
	color: #495057;
}


.card {
	border-radius: var(--moxen-radius);
}

.card-kpi .kpi-icono {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	font-size: 24px;
}

.card-kpi .kpi-valor {
	font-size: 1.45rem;
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 0;
}

.card-kpi .kpi-label {
	font-size: .82rem;
	color: #6c757d;
	margin-bottom: 0;
}


.table > :not(caption) > * > * {
	padding: .75rem .75rem;
}

.table thead th {
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #6c757d;
	font-weight: 600;
	border-bottom-width: 1px;
	white-space: nowrap;
}

.table td {
	vertical-align: middle;
}

.tabla-compacta td,
.tabla-compacta th {
	padding: .55rem .6rem;
	font-size: .875rem;
}

.monto {
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}


.badge {
	font-weight: 500;
	letter-spacing: .2px;
	padding: .38em .7em;
}

.fila-vencida {
	background-color: #fff5f5 !important;
}

.fila-vencida td {
	--bs-table-accent-bg: transparent;
}


.form-label {
	font-size: .85rem;
	font-weight: 500;
	color: #495057;
	margin-bottom: .35rem;
}

.form-obligatorio::after {
	content: " *";
	color: #dc3545;
}

.seccion-form {
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: #6c757d;
	font-weight: 600;
	margin: 0 0 1rem;
	padding-bottom: .5rem;
	border-bottom: 1px solid #e9ecef;
}


#tabla-items input,
#tabla-items select,
#tabla-items textarea {
	font-size: .875rem;
}

#tabla-items .item-total {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.resumen-totales {
	background: #f8f9fa;
	border-radius: var(--moxen-radius);
	padding: 1.1rem 1.25rem;
}

.resumen-totales .linea {
	display: flex;
	justify-content: space-between;
	padding: .35rem 0;
	font-size: .92rem;
}

.resumen-totales .linea.total {
	border-top: 2px solid #dee2e6;
	margin-top: .5rem;
	padding-top: .7rem;
	font-size: 1.15rem;
	font-weight: 600;
}


.password-oculta {
	font-family: monospace;
	letter-spacing: 2px;
	color: #adb5bd;
}

.password-visible {
	font-family: monospace;
	color: #198754;
	font-weight: 600;
	user-select: all;
}


.lista-pagos .pago-item {
	display: flex;
	align-items: center;
	gap: .9rem;
	padding: .7rem 0;
	border-bottom: 1px solid #f1f3f5;
}

.lista-pagos .pago-item:last-child {
	border-bottom: 0;
}

.lista-pagos .pago-icono {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #e8f5e9;
	color: #198754;
	flex-shrink: 0;
}


.barra-cobro {
	height: 8px;
	border-radius: 4px;
	background: #e9ecef;
	overflow: hidden;
}

.barra-cobro > span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #198754, #20c997);
}


.estado-vacio {
	text-align: center;
	padding: 3rem 1rem;
	color: #adb5bd;
}

.estado-vacio i {
	font-size: 3.2rem;
	display: block;
	margin-bottom: .6rem;
	opacity: .55;
}


@media print {
	.sidebar-wrapper,
	header,
	.page-footer,
	.back-to-top,
	.no-imprimir {
		display: none !important;
	}
	.page-wrapper {
		margin-left: 0 !important;
	}
	.page-content {
		padding: 0 !important;
	}
	.card {
		border: 0 !important;
		box-shadow: none !important;
	}
}


.pipeline-kanban {
	display: flex;
	gap: .9rem;
	overflow-x: auto;
	padding-bottom: .5rem;
}

.pipeline-columna {
	flex: 0 0 260px;
	display: flex;
	flex-direction: column;
	background: #f8f9fa;
	border-radius: var(--moxen-radius);
	max-height: calc(100vh - 260px);
}

.pipeline-columna-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .75rem .9rem;
	font-size: .82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .3px;
	color: #495057;
	border-bottom: 1px solid #e9ecef;
}

.pipeline-columna-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: .6rem;
	min-height: 80px;
	transition: background-color .15s ease;
}

.pipeline-columna-sobre {
	background-color: #e7f1ff;
}

.pipeline-tarjeta {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
	padding: .75rem;
	margin-bottom: .6rem;
	cursor: grab;
}

.pipeline-tarjeta.arrastrando {
	opacity: .4;
}

.pipeline-columna-vacia {
	text-align: center;
	color: #adb5bd;
	font-size: .82rem;
	padding: 1.2rem .5rem;
}

@media (max-width: 767.98px) {
	.pipeline-columna { flex-basis: 220px; }
}


.buscador-global { position: relative; }

.buscador-resultados {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border-radius: var(--moxen-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	z-index: 1050;
	padding: .5rem 0;
}

.buscador-resultados.mostrando { display: block; }

.buscador-resultados .grupo-titulo {
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #6c757d;
	font-weight: 600;
	padding: .5rem 1rem .25rem;
}

.buscador-resultados .item {
	display: block;
	padding: .45rem 1rem;
	color: inherit;
	text-decoration: none;
}

.buscador-resultados .item:hover { background: #f1f3f5; }
.buscador-resultados .item .detalle { font-size: .78rem; color: #6c757d; }

.buscador-resultados .sin-resultados {
	padding: .75rem 1rem;
	color: #adb5bd;
	font-size: .88rem;
}


.posicion-badge {
	position: absolute;
	top: 2px;
	right: 2px;
	font-size: .6rem;
	padding: .25em .4em;
}

.campana-menu {
	width: 360px;
	max-width: 90vw;
	padding: 0;
}

.campana-contenido {
	max-height: 60vh;
	overflow-y: auto;
}

.campana-contenido .item {
	display: flex;
	align-items: center;
	gap: .7rem;
	padding: .6rem 1rem;
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid #f1f3f5;
}

.campana-contenido .item:hover { background: #f8f9fa; }
.campana-contenido .item .texto { flex: 1 1 auto; font-size: .85rem; }
.campana-contenido .item .cuando { font-size: .72rem; color: #adb5bd; white-space: nowrap; }


.dark-theme .campana-menu { background: #262a33; }
.dark-theme .campana-contenido .item { border-color: #2c3038; }
.dark-theme .campana-contenido .item:hover { background: #1c1f26; }
.dark-theme .buscador-resultados { background: #262a33; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.dark-theme .buscador-resultados .item:hover { background: #1c1f26; }
.dark-theme .pipeline-columna { background: #1c1f26; }
.dark-theme .pipeline-columna-header { color: #cbd0dd; border-color: #2c3038; }
.dark-theme .pipeline-tarjeta { background: #262a33; }
.dark-theme .pipeline-columna-sobre { background-color: #1f2c3f; }
.dark-theme .resumen-totales { background: #21252b; }
.dark-theme .seccion-form { border-color: #2c3038; }
.dark-theme .fila-vencida { background-color: #2a1f22 !important; }
.dark-theme .user-avatar-iniciales { background: #1f2c3f; }
.dark-theme .topbar-titulo h5 { color: #cbd0dd; }
.dark-theme .lista-pagos .pago-item { border-color: #2c3038; }



.grafico-contenedor {
	position: relative;
	height: 280px;
	width: 100%;
}

@media (max-width: 575.98px) {
	.grafico-contenedor { height: 220px; }
}
