/* ============================================================
   ENÓRA DESIGN SYSTEM — enora-system.css
   ============================================================ */

/* ── Variables ── */
:root {
	--enora-primary: #1abc9c;
	--enora-primary-d: #16a085;
	--enora-primary-l: #e8faf5;
	--enora-primary-m: #a8e6d8;
	--enora-text: #2c3e50;
	--enora-muted: #7f8c8d;
	--enora-border: #ecf0f1;
	--enora-bg: #f8f9fa;
	--enora-danger: #e74c3c;
	--enora-danger-l: #fdedec;
	--enora-blue: #3498db;
	--enora-blue-l: #ebf5fb;
	--enora-yellow: #f39c12;
	--enora-yellow-l: #fef9c3;
	--enora-warn: #f39c12;
	--enora-warn-l: #fef9e7;
	--enora-orange: #ea580c;
	--enora-orange-l: #fde8d8;
	--enora-green: #16a34a;
	--enora-green-l: #dcfce7;
	--enora-purple: #7c3aed;
	--enora-purple-l: #f5f3ff;
}

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.enora-card {
	border-radius: 16px;
	overflow: hidden;
	border: none;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.enora-header {
	background: #fff;
	padding: 20px 24px;
	border-bottom: 1px solid var(--enora-border);
}

/* ══════════════════════════════════════════
   HEADER LAYOUT
══════════════════════════════════════════ */
.enora-header .row {
	align-items: center;
}

/* Filtros dentro del header siempre a la derecha */
.enora-header .filter-wrap,
.enora-header form .filter-wrap,
.card-header .filter-wrap {
	justify-content: flex-end;
}

/* Columna derecha del header alineada a la derecha */
.enora-header .col-lg-9,
.enora-header .col-lg-8,
.card-header .col-lg-9,
.card-header .col-lg-8 {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

/* Forms dentro del header ocupan todo el ancho disponible */
.enora-header .col-lg-9 form,
.enora-header .col-lg-8 form,
.card-header .col-lg-9 form,
.card-header .col-lg-8 form {
	width: 100%;
}

.enora-header-icon {
	width: 42px;
	height: 42px;
	background: var(--enora-primary-l);
	border: 1px solid var(--enora-primary-m);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.enora-header-icon i {
	font-size: 20px;
	color: var(--enora-primary-d);
}

.enora-header-title {
	font-size: 17px;
	font-weight: 700;
	color: var(--enora-text);
}

.enora-header-sub {
	font-size: 11px;
	color: var(--enora-muted);
}

/* ══════════════════════════════════════════
   KPI BAR
══════════════════════════════════════════ */
.enora-kpi-bar {
	background: var(--enora-bg);
	border-bottom: 1px solid var(--enora-border);
	padding: 12px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.enora-kpi-bar.justify-end {
	justify-content: flex-end;
}

/* Pill con ícono arriba (estilo pantallas de lista) */
.kpi-pill {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 12px;
	min-width: 80px;
	background: var(--enora-bg);
	border: 1px solid var(--enora-border);
	cursor: default;
	transition: .15s;
}

.kpi-pill i {
	font-size: 20px;
	margin-bottom: 4px;
	color: var(--enora-muted);
}

.kpi-pill .v {
	font-size: 18px;
	font-weight: 800;
	color: var(--enora-text);
	line-height: 1.2;
}

.kpi-pill .l {
	font-size: 10px;
	font-weight: 600;
	color: var(--enora-muted);
	text-transform: uppercase;
	letter-spacing: .05em;
}

/* Colores de pill */
.kpi-pill.green {
	background: var(--enora-primary-l);
	border-color: var(--enora-primary-m);
}

.kpi-pill.green i,
.kpi-pill.green .v,
.kpi-pill.green .kpi-value {
	color: var(--enora-primary-d);
}

.kpi-pill.kpi-green {
	background: var(--enora-green-l);
	border-color: #bbf7d0;
}

.kpi-pill.kpi-green i,
.kpi-pill.kpi-green .v {
	color: var(--enora-green);
}

.kpi-pill.kpi-blue {
	background: var(--enora-blue-l);
	border-color: #bfdbfe;
}

.kpi-pill.kpi-blue i,
.kpi-pill.kpi-blue .v {
	color: var(--enora-blue);
}

.kpi-pill.kpi-red {
	background: var(--enora-danger-l);
	border-color: #fecaca;
}

.kpi-pill.kpi-red i,
.kpi-pill.kpi-red .v {
	color: var(--enora-danger);
}

.kpi-pill.kpi-orange {
	background: var(--enora-orange-l);
	border-color: #fed7aa;
}

.kpi-pill.kpi-orange i,
.kpi-pill.kpi-orange .v {
	color: var(--enora-orange);
}

.kpi-pill.kpi-yellow {
	background: var(--enora-yellow-l);
	border-color: #fde68a;
}

.kpi-pill.kpi-yellow i,
.kpi-pill.kpi-yellow .v {
	color: var(--enora-yellow);
}

.kpi-pill.kpi-purple {
	background: var(--enora-purple-l);
	border-color: #ddd6fe;
}

.kpi-pill.kpi-purple i,
.kpi-pill.kpi-purple .v {
	color: var(--enora-purple);
}

/* Pill estilo antiguo (kpi-value/kpi-label — inventario, clientes) */
.kpi-bar {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.kpi-pill.kpi-value-style {
	min-width: 100px;
	text-align: center;
	flex-direction: column;
	padding: 10px 16px;
}

.kpi-value {
	font-size: 15px;
	font-weight: 800;
	color: var(--enora-primary-d);
	line-height: 1.2;
}

.kpi-pill:not(.active) .kpi-value {
	color: var(--enora-text);
}

.kpi-pill.active {
	background: var(--enora-primary-l);
	border-color: var(--enora-primary-m);
}

.kpi-pill:hover {
	border-color: var(--enora-primary-m);
	background: var(--enora-primary-l);
}

.kpi-label {
	font-size: 11px;
	color: var(--enora-muted);
	margin-top: 2px;
}

.kpi-icon {
	font-size: 13px;
	margin-bottom: 2px;
}

/* ══════════════════════════════════════════
   FILTROS
══════════════════════════════════════════ */
.filter-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.filter-wrap.justify-end {
	justify-content: flex-end;
}

.filter-input-wrap {
	position: relative;
}

.filter-input-wrap .bi {
	position: absolute;
	left: 9px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--enora-muted);
	font-size: 12px;
	z-index: 1;
	pointer-events: none;
}

.filter-input-wrap .form-control {
	padding-left: 28px;
	border-radius: 8px;
	font-size: 13px;
	border: 1px solid var(--enora-border);
	box-shadow: none !important;
	height: 32px;
}

.filter-input-wrap .form-control:focus {
	border-color: var(--enora-primary);
}

/* ══════════════════════════════════════════
   TABLA GENÉRICA
══════════════════════════════════════════ */
.enora-table thead th,
.inv-table thead th,
.cust-table thead th,
.po-table thead th,
.quot-table thead th,
.sup-table thead th {
	background: var(--enora-bg);
	color: var(--enora-muted);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	border-bottom: 2px solid var(--enora-border);
	padding: 11px 14px;
	white-space: nowrap;
}

.enora-table tbody tr,
.inv-table tbody tr,
.cust-table tbody tr,
.po-table tbody tr,
.quot-table tbody tr,
.sup-table tbody tr {
	border-bottom: 1px solid var(--enora-border);
	transition: background .12s;
}

.enora-table tbody tr:hover,
.inv-table tbody tr:hover,
.cust-table tbody tr:hover,
.po-table tbody tr:hover,
.quot-table tbody tr:hover,
.sup-table tbody tr:hover {
	background: var(--enora-primary-l);
}

.enora-table td,
.inv-table td,
.cust-table td,
.po-table td,
.quot-table td,
.sup-table td {
	padding: 11px 14px;
	vertical-align: middle;
	font-size: 13px;
}

/* ══════════════════════════════════════════
   HELPERS DE TEXTO EN TABLA
══════════════════════════════════════════ */
.inv-num,
.quot-num,
.po-num {
	font-size: 14px;
	font-weight: 800;
	color: var(--enora-primary-d);
}

.inv-date,
.quot-date,
.po-date {
	font-size: 12px;
	color: var(--enora-muted);
}

.cust-name,
.sup-name,
.prod-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--enora-text);
}

.cust-doc,
.sup-rnc,
.cust-id,
.prod-id {
	font-size: 11px;
	color: var(--enora-muted);
}

.cust-phone,
.sup-phone {
	font-size: 13px;
	color: var(--enora-text);
}

.cust-email,
.sup-email {
	font-size: 11px;
	color: var(--enora-muted);
}

.amount-val,
.price-val {
	font-size: 14px;
	font-weight: 800;
	color: var(--enora-text);
}

.cost-val {
	font-size: 12px;
	color: var(--enora-muted);
}

.prod-desc {
	font-size: 11px;
	color: var(--enora-muted);
	margin-top: 1px;
}

.brand-name {
	font-size: 12px;
	font-weight: 600;
	color: var(--enora-text);
}

.model-name {
	font-size: 11px;
	color: var(--enora-muted);
}

.delivery-val {
	font-size: 13px;
	color: var(--enora-text);
}

.truncate {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ── Row tints NC/ND ── */
.row-credit-note {
	background: #fff7f7 !important;
}

.row-debit-note {
	background: #f0f7ff !important;
}

.row-both-notes {
	background: #fdf4ff !important;
}

/* ══════════════════════════════════════════
   STATUS PILLS
══════════════════════════════════════════ */
.status-pill,
.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 11px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	border: 1px solid transparent;
}

.status-draft {
	background: #f1f5f9;
	color: #64748b;
	border-color: #e2e8f0;
}

.status-open {
	background: var(--enora-primary-l);
	color: var(--enora-primary-d);
	border-color: var(--enora-primary-m);
}

.status-sent {
	background: var(--enora-blue-l);
	color: var(--enora-blue);
	border-color: #bfdbfe;
}

.status-closed {
	background: var(--enora-green-l);
	color: var(--enora-green);
	border-color: #bbf7d0;
}

.status-canceled {
	background: var(--enora-danger-l);
	color: var(--enora-danger);
	border-color: #fecaca;
}

.status-active {
	background: var(--enora-primary-l);
	color: var(--enora-primary-d);
	border-color: var(--enora-primary-m);
}

.status-inactive {
	background: var(--enora-danger-l);
	color: var(--enora-danger);
	border-color: #fecaca;
}

.status-credit-note {
	background: #fff1f2;
	color: #dc2626;
	border-color: #fecaca;
}

.status-debit-note {
	background: #eff6ff;
	color: #2563eb;
	border-color: #bfdbfe;
}

/* ══════════════════════════════════════════
   BADGES
══════════════════════════════════════════ */
.term-badge,
.pay-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--enora-primary-l);
	border: 1px solid var(--enora-primary-m);
	color: var(--enora-primary-d);
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
}

.badge-clase {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--enora-primary-l);
	border: 1px solid var(--enora-primary-m);
	color: var(--enora-primary-d);
	font-size: 10px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	letter-spacing: .03em;
	white-space: nowrap;
}

.badge-cat {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: #eafaf7;
	border: 1px solid #b2dfdb;
	color: #00796b;
	font-size: 10px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 20px;
	white-space: nowrap;
}

.badge-clase i,
.badge-cat i {
	font-size: 10px;
}

.stock-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
}

.stock-ok {
	background: var(--enora-primary-l);
	color: var(--enora-primary-d);
}

.stock-low {
	background: var(--enora-warn-l);
	color: #d68910;
}

.stock-zero {
	background: var(--enora-danger-l);
	color: var(--enora-danger);
}

.membership-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 10px;
	font-weight: 700;
	cursor: pointer;
	border: none;
	transition: .15s;
}

.membership-has {
	background: #f0e6ff;
	color: #7c3aed;
	border: 1px solid #d4b8ff;
}

.membership-has:hover {
	background: #e4d4ff;
}

.membership-none {
	background: var(--enora-bg);
	color: var(--enora-muted);
	border: 1px solid var(--enora-border);
	cursor: default;
}

/* ══════════════════════════════════════════
   BOTONES DE ACCIÓN
══════════════════════════════════════════ */
.btn-act {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: .15s;
	text-decoration: none;
}

/* Aliases semánticos */
.btn-act-teal,
.btn-view,
.btn-qr {
	background: var(--enora-primary-l);
	color: var(--enora-primary-d);
}

.btn-act-teal:hover,
.btn-view:hover,
.btn-qr:hover {
	background: var(--enora-primary-m);
	color: var(--enora-primary-d);
}

.btn-act-blue,
.btn-edit {
	background: var(--enora-blue-l);
	color: var(--enora-blue);
}

.btn-act-blue:hover,
.btn-edit:hover {
	background: #d6eaf8;
	color: var(--enora-blue);
}

.btn-act-red,
.btn-del,
.btn-nc {
	background: var(--enora-danger-l);
	color: var(--enora-danger);
}

.btn-act-red:hover,
.btn-del:hover,
.btn-nc:hover {
	background: #f9d0cc;
	color: var(--enora-danger);
}

.btn-act-green {
	background: var(--enora-green-l);
	color: var(--enora-green);
}

.btn-act-green:hover {
	background: #bbf7d0;
	color: var(--enora-green);
}

.btn-act-yellow {
	background: var(--enora-yellow-l);
	color: var(--enora-yellow);
}

.btn-act-yellow:hover {
	background: #fde68a;
	color: var(--enora-yellow);
}

.btn-nd {
	background: var(--enora-blue-l);
	color: var(--enora-blue);
}

.btn-nd:hover {
	background: #d6eaf8;
	color: var(--enora-blue);
}

.btn-act,
.btn-view,
.btn-edit,
.btn-del,
.btn-qr,
.btn-nc,
.btn-nd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: .15s;
	text-decoration: none;
}

.btn-disabled,
button:disabled,
button[disabled] {
	opacity: .35;
	cursor: not-allowed;
	pointer-events: none;
}

/* ══════════════════════════════════════════
   AVATAR
══════════════════════════════════════════ */
.cust-avatar {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--enora-primary-l);
	border: 1px solid var(--enora-primary-m);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 800;
	color: var(--enora-primary-d);
	flex-shrink: 0;
}

/* ══════════════════════════════════════════
   IMÁGENES
══════════════════════════════════════════ */
.img-thumb {
	width: 40px;
	height: 40px;
	object-fit: cover;
	border-radius: 10px;
	cursor: pointer;
	transition: .2s;
	border: 2px solid var(--enora-border);
}

.img-thumb:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(26, 188, 156, .2);
}

.img-placeholder {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--enora-bg);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #bdc3c7;
	font-size: 16px;
	border: 2px dashed var(--enora-border);
}

/* ══════════════════════════════════════════
   PAGINACIÓN
══════════════════════════════════════════ */
.page-link {
	border-radius: 8px !important;
	font-size: 13px;
	margin: 0 1px;
	color: var(--enora-text);
	border-color: var(--enora-border);
}

.page-item.active .page-link {
	background: var(--enora-primary) !important;
	border-color: var(--enora-primary) !important;
	color: #fff !important;
}

.page-link:hover {
	color: var(--enora-primary-d);
}

.enora-pagination-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 24px;
	background: var(--enora-bg);
	border-top: 1px solid var(--enora-border);
	flex-wrap: wrap;
	gap: 8px;
}

.enora-pagination-bar .page-info {
	font-size: 13px;
	color: var(--enora-muted);
}

/* ══════════════════════════════════════════
   MODALES
══════════════════════════════════════════ */
.modal-content {
	border-radius: 16px !important;
	overflow: hidden;
	border: none;
	box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
}

.modal-header {
	border-bottom: 1px solid var(--enora-border);
	padding: 16px 22px;
}

.modal-footer {
	border-top: 1px solid var(--enora-border);
	padding: 13px 22px;
}

.modal-body {
	padding: 18px 22px;
}

.modal-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--enora-text);
}

/* Detail rows dentro de modales */
.detail-row {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
	align-items: flex-start;
}

.detail-label {
	font-size: 10px;
	font-weight: 700;
	color: var(--enora-muted);
	text-transform: uppercase;
	letter-spacing: .05em;
	min-width: 80px;
	margin-top: 2px;
}

.detail-value {
	font-size: 13px;
	color: var(--enora-text);
	font-weight: 600;
}

.modal-section-title {
	font-size: 11px;
	font-weight: 700;
	color: var(--enora-muted);
	text-transform: uppercase;
	letter-spacing: .07em;
	padding: 10px 0 6px;
	border-top: 1px solid var(--enora-border);
	margin-top: 8px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.modal-section-title i {
	color: var(--enora-primary);
}

/* ══════════════════════════════════════════
   MOBILE CARDS
══════════════════════════════════════════ */
.mobile-card {
	background: #fff;
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 10px;
	border: 1px solid var(--enora-border);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

@media(max-width:991px) {
	.desktop-only {
		display: none !important;
	}
}

@media(min-width:992px) {
	.mobile-only {
		display: none !important;
	}
}

/* ══════════════════════════════════════════
   UTILIDADES
══════════════════════════════════════════ */
.text-enora {
	color: var(--enora-primary-d) !important;
}

.text-enora-muted {
	color: var(--enora-muted) !important;
}

.fw-enora {
	font-weight: 800 !important;
}

/* ══════════════════════════════════════════
   DAWENF BASE (fusionado)
══════════════════════════════════════════ */

/* ── Layout ── */
.page-wrap {
	padding: 18px;
}

.card-soft {
	border-radius: 16px;
}

.btn-pill {
	border-radius: 999px;
}

.badge-soft {
	background: #f1f3f5;
	color: #343a40;
}

.text-muted-2 {
	color: #6c757d;
}

.po-card {
	border-radius: 16px;
	transition: .12s ease;
}

.po-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .08);
}

.summary-toolbar .btn {
	white-space: nowrap;
}

/* ── KPI dawenf (compatibilidad .kpi) ── */
.kpi {
	border-radius: 14px;
	background: #f8f9fa;
	padding: 10px 12px;
}

.kpi .v {
	font-weight: 700;
	font-size: 16px;
}

.kpi .l {
	font-size: 12px;
	color: #6c757d;
}

.kpi-green {
	background: #e6f7f4;
	border: 1px solid #b2ebe4;
}

.kpi-green .v {
	color: #0aa99a;
}

.kpi-green .l {
	color: #0f766e;
}

/* ── Botones acción dawenf (compatibilidad .btn-action) ── */
.btn-action {
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 13px;
	border: 1px solid #e9ecef;
	background: #ffffff;
	transition: .15s ease;
}

.btn-action i {
	font-size: 13px;
}

.btn-action:hover {
	transform: translateY(-1px);
	box-shadow: 0 .4rem .8rem rgba(0, 0, 0, .08);
}

.btn-action.btn-sm {
	border-radius: 999px !important;
	width: 34px;
	height: 34px;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.btn-action:hover i {
	color: #ffffff;
}

.btn-action:disabled {
	opacity: .4;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

/* btn-view dawenf */
.btn-action.btn-view {
	color: #0aa99a;
	border-color: #b6ece6;
}

.btn-action.btn-view:hover {
	background: #0aa99a;
	border-color: #0aa99a;
	color: #fff;
}

/* btn-edit dawenf */
.btn-action.btn-edit {
	color: #0f766e;
	border-color: #b2ebe4;
}

.btn-action.btn-edit:hover {
	background: darkturquoise;
	border-color: darkturquoise;
	color: #fff;
}

/* btn-cancel dawenf */
.btn-action.btn-cancel {
	color: #dc2626;
	border-color: #fecaca;
}

.btn-action.btn-cancel:hover {
	background: #dc2626;
	border-color: #dc2626;
	color: #fff;
}

/* ── Table ── */
.table thead th {
	color: #6c757d;
	font-weight: 600;
}

.table-hover tbody tr:hover {
	background: #f8fbfa;
	transition: .15s ease;
}

/* ── Animations ── */
@keyframes pulseSoft {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.08);
	}

	100% {
		transform: scale(1);
	}
}

.animate-pulse {
	animation: pulseSoft .35s ease;
}

#lastInvoicesList {
	background: #f8f9fa;
	border-radius: 12px;
	padding: 8px;
}


/* ══════════════════════════════════════════
   CUADRE DE CAJA
══════════════════════════════════════════ */
.cuadre-table thead th {
	background: var(--enora-bg);
	color: var(--enora-muted);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	border-bottom: 2px solid var(--enora-border);
	padding: 11px 14px;
	white-space: nowrap;
}

.cuadre-table tbody tr {
	border-bottom: 1px solid var(--enora-border);
	transition: background .12s;
}

.cuadre-table tbody tr:hover {
	background: var(--enora-primary-l);
}

.cuadre-table td {
	padding: 11px 14px;
	vertical-align: middle;
	font-size: 13px;
}

.cuadre-id {
	font-size: 14px;
	font-weight: 800;
	color: var(--enora-primary-d);
}

.cuadre-date {
	font-size: 13px;
	font-weight: 600;
	color: var(--enora-text);
}

.cuadre-day {
	font-size: 11px;
	color: var(--enora-muted);
}

.cuadre-user {
	font-size: 13px;
	font-weight: 600;
	color: var(--enora-text);
}

.note-cell {
	max-width: 220px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 12px;
	color: var(--enora-muted);
}

.sales-val {
	font-size: 14px;
	font-weight: 700;
	color: var(--enora-blue);
}

.diff-positive {
	font-size: 13px;
	font-weight: 700;
	color: var(--enora-primary-d);
}

.diff-negative {
	font-size: 13px;
	font-weight: 700;
	color: var(--enora-danger);
}

/* ── Botón imprimir ── */
.btn-print {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: var(--enora-primary-l);
	color: var(--enora-primary-d);
	border: none;
	transition: .15s;
	text-decoration: none;
	cursor: pointer;
}

.btn-print:hover {
	background: var(--enora-primary-m);
	color: var(--enora-primary-d);
}


/* ══════════════════════════════════════════
   RECIBOS DE PAGO
══════════════════════════════════════════ */
.rec-table thead th {
	background: var(--enora-bg);
	color: var(--enora-muted);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	border-bottom: 2px solid var(--enora-border);
	padding: 11px 14px;
	white-space: nowrap;
}

.rec-table tbody tr {
	border-bottom: 1px solid var(--enora-border);
	transition: background .12s;
}

.rec-table tbody tr:hover {
	background: var(--enora-primary-l);
}

.rec-table td {
	padding: 11px 14px;
	vertical-align: middle;
	font-size: 13px;
}

.rec-num {
	font-size: 14px;
	font-weight: 800;
	color: var(--enora-primary-d);
}

.rec-date {
	font-size: 12px;
	color: var(--enora-muted);
}

.amount {
	font-size: 14px;
	font-weight: 700;
	color: var(--enora-text);
}

/* ── Payment method badges ── */
.pay-efectivo {
	background: var(--enora-primary-l);
	color: var(--enora-primary-d);
	border: 1px solid var(--enora-primary-m);
}

.pay-tarjeta {
	background: var(--enora-blue-l);
	color: var(--enora-blue);
	border: 1px solid #aed6f1;
}

.pay-transferencia {
	background: #f4f6f7;
	color: var(--enora-muted);
	border: 1px solid var(--enora-border);
}



/* ══════════════════════════════════════════
   GASTOS (EXPENSES)
══════════════════════════════════════════ */
.kpi-box {
	border-radius: 16px;
	background: linear-gradient(180deg, #ffffff, #f8fafc);
	border: 1px solid #eef2f7;
	padding: 16px;
	height: 100%;
}

.expense-table thead th {
	font-size: 12px;
	color: #6b7280;
	border-bottom-width: 1px;
	white-space: nowrap;
}

.expense-table tbody td {
	vertical-align: middle;
}

.amount-out {
	font-weight: 700;
	color: var(--enora-danger);
}

.row-card {
	border: 1px solid #eef2f7;
	border-radius: 16px;
	padding: 14px;
	background: #fff;
	box-shadow: 0 .35rem .85rem rgba(15, 23, 42, .04);
}

.toolbar-input,
.toolbar-select {
	min-height: 44px;
	border-radius: 14px;
}

.section-title {
	font-size: 15px;
	font-weight: 700;
	color: #111827;
}


/* ══════════════════════════════════════════
   COTIZACIONES
══════════════════════════════════════════ */
.ncf-val {
	font-size: 12px;
	color: var(--enora-muted);
}

.btn-view-quot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: var(--enora-primary-l);
	color: var(--enora-primary-d);
	border: none;
	transition: .15s;
	cursor: pointer;
	text-decoration: none;
}

.btn-view-quot:hover {
	background: var(--enora-primary-m);
	color: var(--enora-primary-d);
}

#externo {
	width: 100%;
	height: 75vh;
	border: none;
	display: block;
}


/* ══════════════════════════════════════════
   LISTAS DE PRECIOS
══════════════════════════════════════════ */
.pl-layout {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 20px;
	align-items: start;
}

@media(max-width:768px) {
	.pl-layout {
		grid-template-columns: 1fr;
	}
}

.pl-card {
	background: #fff;
	border: 1px solid var(--enora-border);
	border-radius: 16px;
	overflow: hidden;
}

.pl-card-header {
	padding: 16px 20px;
	border-bottom: 1px solid var(--enora-border);
	background: #fff;
}

.pl-item {
	padding: 12px 16px;
	border-bottom: 1px solid var(--enora-border);
	cursor: pointer;
	transition: background .12s;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.pl-item:last-child {
	border-bottom: none;
}

.pl-item:hover {
	background: var(--enora-primary-l);
}

.pl-item.active {
	background: var(--enora-primary-l);
	border-left: 3px solid var(--enora-primary);
	padding-left: 13px;
}

.pl-item-name {
	font-size: 13px;
	font-weight: 700;
	color: var(--enora-text);
}

.pl-item-desc {
	font-size: 11px;
	color: var(--enora-muted);
	margin-top: 2px;
}

.pl-discount-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	background: var(--enora-primary-l);
	border: 1px solid var(--enora-primary-m);
	color: var(--enora-primary-d);
	font-size: 11px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
	white-space: nowrap;
	flex-shrink: 0;
}

.detail-table thead th {
	background: var(--enora-bg);
	color: var(--enora-muted);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	border-bottom: 2px solid var(--enora-border);
	padding: 10px 14px;
	white-space: nowrap;
}

.detail-table tbody tr {
	border-bottom: 1px solid var(--enora-border);
	transition: background .12s;
}

.detail-table tbody tr:hover {
	background: var(--enora-primary-l);
}

.detail-table td {
	padding: 10px 14px;
	vertical-align: middle;
	font-size: 12px;
}

.btn-enora {
	background: var(--enora-primary);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 12px;
	padding: 7px 14px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
	transition: .15s;
}

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

.btn-enora-outline {
	background: var(--enora-primary-l);
	color: var(--enora-primary-d);
	border: 1px solid var(--enora-primary-m);
	border-radius: 8px;
	font-size: 12px;
	padding: 6px 14px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
	transition: .15s;
}

.btn-enora-outline:hover {
	background: var(--enora-primary-m);
}

.btn-icon-edit {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	border: none;
	background: #e8f4fd;
	color: #2980b9;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: .15s;
	flex-shrink: 0;
}

.btn-icon-edit:hover {
	background: #d6eaf8;
}

.btn-icon-del {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	border: none;
	background: var(--enora-danger-l);
	color: var(--enora-danger);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: .15s;
	flex-shrink: 0;
}

.btn-icon-del:hover {
	background: #f9d0cc;
}

.empty-state {
	padding: 48px 20px;
	text-align: center;
	color: var(--enora-muted);
}

.empty-state i {
	font-size: 36px;
	color: var(--enora-primary-m);
	display: block;
	margin-bottom: 10px;
}

.price-override {
	font-size: 12px;
	font-weight: 700;
	color: var(--enora-primary-d);
}

.price-global {
	font-size: 11px;
	color: var(--enora-muted);
	text-decoration: line-through;
}


/* ══════════════════════════════════════════
   FORMULARIO DE PRODUCTO
══════════════════════════════════════════ */
.tax-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.tax-card {
	flex: 1;
	min-width: 140px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 10px 12px;
	background: #fafafa;
}

.tax-card .tax-label {
	font-size: 10px;
	font-weight: 700;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 4px;
}

.img-upload-area {
	border: 2px dashed #d1d5db;
	border-radius: 14px;
	padding: 20px;
	text-align: center;
	background: #fafafa;
	cursor: pointer;
	transition: .2s;
}

.img-upload-area:hover {
	border-color: var(--enora-primary);
	background: var(--enora-primary-l);
}

.img-upload-area i {
	font-size: 24px;
	color: #9ca3af;
	margin-bottom: 6px;
	display: block;
}

.calc-hint {
	font-size: 11px;
	color: #6b7280;
	margin-top: 4px;
}

.precio-costo-box {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
	padding: 12px 16px;
}

@media(min-width:992px) {
	.sidebar-sticky {
		position: sticky;
		top: 20px;
	}
}

/* ── Botón listas de precios ── */
.btn-price-lists {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px 16px;
	background: var(--enora-primary-l);
	border: 1px solid var(--enora-primary-m);
	border-radius: 12px;
	cursor: pointer;
	transition: .15s;
	text-decoration: none;
}

.btn-price-lists:hover {
	background: var(--enora-primary-m);
	border-color: var(--enora-primary);
}

.btn-price-lists .bpl-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.btn-price-lists .bpl-icon {
	width: 34px;
	height: 34px;
	background: #fff;
	border: 1px solid var(--enora-primary-m);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-price-lists .bpl-title {
	font-size: 13px;
	font-weight: 700;
	color: var(--enora-primary-d);
}

.btn-price-lists .bpl-sub {
	font-size: 11px;
	color: var(--enora-muted);
}

.bpl-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--enora-primary);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	width: 22px;
	height: 22px;
	border-radius: 50%;
}

/* ── Modal listas de precios ── */
.pl-modal-table thead th {
	background: var(--enora-bg);
	color: var(--enora-muted);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	border-bottom: 2px solid var(--enora-border);
	padding: 10px 14px;
	white-space: nowrap;
}

.pl-modal-table tbody tr {
	border-bottom: 1px solid var(--enora-border);
}

.pl-modal-table td {
	padding: 10px 14px;
	vertical-align: middle;
}


/* ══════════════════════════════════════════
   RESUMEN / TOTALES ACCOUNTING
══════════════════════════════════════════ */
.row-total {
	background: #f8f9fa;
	font-weight: 800;
}

.row-grand {
	background: #e9f7ef;
	font-weight: 900;
}

.neg {
	color: #dc3545;
	font-weight: 700;
}

.mono {
	font-variant-numeric: tabular-nums;
}

.section-title {
	font-weight: 800;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
}


/* ══════════════════════════════════════════
   PLAN DE CUENTAS (COA)
══════════════════════════════════════════ */
.coa-line {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 34px;
}

.sub-arrow {
	color: #adb5bd;
	font-size: 14px;
	line-height: 1;
	width: 18px;
	flex: 0 0 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.coa-code {
	font-weight: 600;
	color: #212529;
	min-width: 90px;
	display: inline-block;
}

tr.level-1 td {
	background: #f1f3f5;
	font-weight: 800;
}

tr.level-1 .coa-line {
	padding-left: 8px !important;
}

tr.level-1 .coa-code {
	font-weight: 900;
}



/* ══════════════════════════════════════════
   LIBRO MAYOR (LEDGER)
══════════════════════════════════════════ */
.table-ledger th {
	font-size: 13px;
	color: #6c757d;
}

.table-ledger td {
	font-size: 14px;
}

.balance {
	font-weight: 600;
}


/* ══════════════════════════════════════════
   GL CONFIGURACIÓN
══════════════════════════════════════════ */
.config-item {
	background: #f8f9fa;
	border-radius: 10px;
	padding: 10px 12px;
	border: 1px solid #e9ecef;
}

.config-item select {
	font-size: 13px;
}

.select2-container {
	width: 100% !important;
}


/* ══════════════════════════════════════════
   ESTADO DE RESULTADOS (INCOME)
══════════════════════════════════════════ */
.table-income th {
	font-size: 13px;
	color: #6c757d;
}

.table-income td {
	font-size: 14px;
}

.total {
	font-weight: 600;
	background: #f1f3f5;
}

.net-profit {
	font-weight: 700;
	font-size: 16px;
	background: #e9f7ef;
}

.mono {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}


/* ════════════════════════════════════════════
   CONFIGURACIÓN CONTABLE
   ════════════════════════════════════════════ */

.config-info-banner {
	background: var(--enora-primary-bg);
	border: 1px solid #b2dfdb;
	border-left: 4px solid var(--enora-primary);
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 13px;
	color: #2e7d6e;
}

.config-group {
	margin-bottom: 28px;
}

.config-group-header {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	padding: 7px 14px;
	border-radius: 8px;
	margin-bottom: 14px;
}

.config-group-green {
	background: #eafaf1;
	color: #1a7a40;
}

.config-group-blue {
	background: #eef4ff;
	color: #1d4ed8;
}

.config-group-orange {
	background: #fff4e6;
	color: #c05621;
}

.config-group-yellow {
	background: #fef9e7;
	color: #b7770d;
}

.config-group-teal {
	background: #e8f4f2;
	color: #0d6e5f;
}

.config-group-gray {
	background: #f4f6f8;
	color: #4a5568;
}

.config-card {
	background: #fff;
	border: 1px solid #eef2f5;
	border-radius: 12px;
	padding: 16px;
	transition: box-shadow .2s, border-color .2s;
	height: 100%;
}

.config-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
}

.config-card-green:hover {
	border-color: #a9dfbf;
}

.config-card-blue:hover {
	border-color: #bfdbfe;
}

.config-card-orange:hover {
	border-color: #fbd38d;
}

.config-card-yellow:hover {
	border-color: #fde68a;
}

.config-card-teal:hover {
	border-color: #c8e6e0;
}

.config-card-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	margin-bottom: 10px;
}

.icon-green {
	background: #eafaf1;
	color: #1e8449;
}

.icon-blue {
	background: #eef4ff;
	color: #2563eb;
}

.icon-orange {
	background: #fff4e6;
	color: #c05621;
}

.icon-teal {
	background: #e8f4f2;
	color: #0d6e5f;
}

.icon-yellow {
	background: #fef9e7;
	color: #d68910;
}

.icon-gray {
	background: #f4f6f8;
	color: #7f8c8d;
}

.config-card-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #4a5568;
	margin-bottom: 8px;
	line-height: 1.3;
	min-height: 32px;
}

.config-card-select {
	font-size: 12px;
	border-radius: 8px;
	border-color: #e2e8f0;
}

.config-card-select:focus {
	border-color: var(--enora-primary);
	box-shadow: 0 0 0 3px rgba(13, 110, 95, .1);
}

.config-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 20px;
	border-top: 1px solid #eef2f5;
	gap: 16px;
	flex-wrap: wrap;
}

.config-footer-note {
	font-size: 12px;
	color: var(--enora-muted);
}


/* ── Filas nivel 1 ── */
.coa-level-1 td {
	background: #f8fafb;
	font-weight: 600;
}

.coa-level-1 .coa-code {
	color: var(--enora-primary);
	font-size: 13px;
}

/* ── Filter bar ── */
.coa-filter-bar {
	padding: 12px 24px;
	background: #f8fafb;
	border-bottom: 1px solid #eef2f5;
}

/* ── Pills de categoría ── */
.coa-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 14px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	color: var(--enora-muted);
	background: #fff;
	border: 1px solid #e2e8f0;
	text-decoration: none;
	transition: all .15s;
	white-space: nowrap;
}

.coa-pill:hover {
	border-color: var(--enora-primary);
	color: var(--enora-primary);
}

.coa-pill-active {
	background: var(--enora-primary-bg);
	color: var(--enora-primary);
	border-color: var(--enora-primary);
	font-weight: 600;
}

.coa-pill-asset {
	background: #e8f4f2;
	color: #0d6e5f;
	border-color: #a8d5cc;
}

.coa-pill-liability {
	background: #fef9e7;
	color: #d68910;
	border-color: #fde68a;
}

.coa-pill-equity {
	background: #eef2ff;
	color: #4338ca;
	border-color: #c7d2fe;
}

.coa-pill-revenue {
	background: #eafaf1;
	color: #1e8449;
	border-color: #a9dfbf;
}

.coa-pill-expense {
	background: #fdf2f2;
	color: #c0392b;
	border-color: #f5b7b1;
}

/* ── Badge de categoría en tabla ── */
.coa-cat-badge {
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
}

.coa-cat-badge[data-cat="ASSET"] {
	background: #e8f4f2;
	color: #0d6e5f;
}

.coa-cat-badge[data-cat="LIABILITY"] {
	background: #fef9e7;
	color: #d68910;
}

.coa-cat-badge[data-cat="EQUITY"] {
	background: #eef2ff;
	color: #4338ca;
}

.coa-cat-badge[data-cat="REVENUE"] {
	background: #eafaf1;
	color: #1e8449;
}

.coa-cat-badge[data-cat="EXPENSE"] {
	background: #fdf2f2;
	color: #c0392b;
}

/* ════════════════════════════════════════════
   LIBRO MAYOR
   ════════════════════════════════════════════ */

.ledger-account {
	font-size: 12px;
	font-weight: 600;
	color: #2d3748;
}

.ledger-debit {
	font-family: 'Courier New', monospace;
	font-size: 13px;
	font-weight: 600;
	color: #c0392b;
}

.ledger-credit {
	font-family: 'Courier New', monospace;
	font-size: 13px;
	font-weight: 600;
	color: #1e8449;
}

.ledger-totals-row td {
	background: #f8fafb;
	border-top: 2px solid #e2e8f0;
	padding-top: 10px;
	padding-bottom: 10px;
}


/* ===== Agrupadores del menú contabilidad ===== */

/* =====================================
   SEPARADORES DE GRUPO DEL SIDEBAR
   ===================================== */

.sidebar-header {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: #94a3b8;

	padding: 12px 18px 6px 18px;
	/* mismo margen que los links */
	margin-top: 10px;
}

/* linea separadora */
.sidebar-header::after {
	content: "";
	display: block;
	height: 1px;
	background: #e5e7eb;
	margin-top: 6px;
}

/* espacio entre grupos */
.sidebar-header.mt-3 {
	margin-top: 18px !important;
}


.wizard-progress {
	display: flex;
	gap: 6px;
	margin-bottom: 28px;
}

.wizard-step {
	flex: 1;
	height: 4px;
	background: rgba(255, 255, 255, .25);
	border-radius: 4px;
}

.wizard-step.active {
	background: #fff;
}

.wizard-page {
	display: none;
}

.wizard-page.active {
	display: block;
}

.wizard-buttons {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
}

.btn-prev {
	height: 48px;
	padding: 0 22px;
	border-radius: 12px;
	border: 2px solid rgba(255, 255, 255, .35);
	background: transparent;
	color: white;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;

	display: flex;
	align-items: center;
	justify-content: center;

	flex-shrink: 0;
}

.btn-next {
	flex: 1;
}

.btn-prev:hover {
	background: rgba(255, 255, 255, .12);
}

.wizard-finish {
	text-align: center;
	padding: 30px 0;
}

.finish-icon {
	font-size: 64px;
	color: white;
	margin-bottom: 12px;
}

.finish-title {
	font-size: 30px;
	font-weight: 900;
	color: white;
	margin-bottom: 6px;
}

.finish-desc {
	font-size: 15px;
	color: rgba(255, 255, 255, .85);
	margin-bottom: 10px;
}

/* error message */

.field-error {
	margin-top: 8px;
	padding: 10px 12px;

	border-radius: 10px;

	background: #ffffff;
	border: 2px solid #ef4444;

	color: #dc2626;
	font-size: 12px;
	font-weight: 700;

	display: none;

	box-shadow: 0 4px 10px rgba(0, 0, 0, .08);

	animation: fadeError .25s ease;
}

.field-error i {
	margin-right: 6px;
	color: #ef4444;
}

.error-login-link {
	display: inline-block;
	margin-top: 6px;
	color: #dc2626;
	font-weight: 800;
	text-decoration: underline;
}

.error-login-link:hover {
	color: #b91c1c;
}

@keyframes fadeError {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes shake {
	0% {
		transform: translateX(0)
	}

	25% {
		transform: translateX(-4px)
	}

	50% {
		transform: translateX(4px)
	}

	75% {
		transform: translateX(-4px)
	}

	100% {
		transform: translateX(0)
	}
}


.input-error {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, .25);
	background: #fff5f5;
	animation: shake .25s;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}


.login-card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1500px;
	border-radius: 30px;
	overflow: hidden;
	display: flex;
	box-shadow: 0 40px 90px rgba(0, 0, 0, .15), 0 10px 30px rgba(0, 0, 0, .08);
}

/* ── PANEL IZQUIERDO — blanco ── */
.left-panel {
	flex: 1.4;

	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;

	padding: 100px 80px;
	position: relative;
	overflow: hidden;
}

.left-panel::before {
	content: '';
	position: absolute;
	width: 320px;
	height: 320px;
	top: -100px;
	left: -100px;
	border-radius: 50%;
	background: rgba(20, 184, 166, .06);
}

.left-panel::after {
	content: '';
	position: absolute;
	width: 200px;
	height: 200px;
	bottom: -60px;
	right: -40px;
	border-radius: 50%;
	background: rgba(20, 184, 166, .06);
}

.left-content {
	position: relative;
	z-index: 1;
	text-align: center;
}

.left-logo {
	width: 360px;
	margin-bottom: 30px;
	object-fit: contain;
	filter: drop-shadow(0 6px 20px rgba(13, 148, 136, .18));
}

.left-title {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -.3px;
	line-height: 1.4;
	margin-bottom: 10px;
}

.left-desc {
	font-size: 13px;
	color: #94a3b8;
	line-height: 1.6;
	max-width: 240px;
	margin: 0 auto;
}

/* ── PANEL DERECHO — verde ── */
.right-panel {
	width: 700px;
	min-width: 640px;

	background: linear-gradient(150deg, #0d9488 0%, #14b8a6 60%, #2dd4bf 100%);
	display: flex;
	align-items: center;
	justify-content: center;

	padding: 90px 70px;
	position: relative;
	overflow: hidden;
}

.right-panel::before {
	content: '';
	position: absolute;
	width: 300px;
	height: 300px;
	top: -80px;
	right: -80px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .07);
}

.right-panel::after {
	content: '';
	position: absolute;
	width: 180px;
	height: 180px;
	bottom: -50px;
	left: -40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .07);
}

.right-inner {
	position: relative;
	z-index: 1;
	width: 100%;
}

.welcome-label {
	font-size: 11px;
	font-weight: 700;
	color: rgba(255, 255, 255, .75);
	text-transform: uppercase;
	letter-spacing: .12em;
	margin-bottom: 6px;
}

.welcome-title {
	font-size: 34px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -.4px;
	margin-bottom: 6px;
}

.welcome-sub {
	font-size: 15px;
	color: rgba(255, 255, 255, .75);
	margin-bottom: 36px;
}

/* Error */
.login-error {
	background: #fef2f2;
	border: 1.5px solid #fecaca;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 12px;
	color: #dc2626;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}

.login-success {
    background: var(--enora-primary-l);
    border: 1.5px solid var(--enora-primary-m);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--enora-primary-d);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

/* Fields */
.field-group {
	margin-bottom: 16px;
}

.field-label {
	display: block;
	font-size: 11px;
	font-weight: 700;
	color: rgba(255, 255, 255, .85);
	margin-bottom: 7px;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.field-wrap {
	position: relative;
}

.field-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	font-size: 16px;
}

.field-input,
.field-select {
	width: 100%;
	height: 60px;
	padding: 0 50px;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	font-size: 16px;
	color: #0f172a;
	background: #fff;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}

.field-input:focus,
.field-select:focus {
	border-color: #0d9488;
	box-shadow: 0 0 0 3px rgba(13, 148, 136, .15);
}

.field-wrap:focus-within .field-icon {
	color: #0d9488;
}

.field-input::placeholder {
	color: #cbd5e1;
}

.field-select option {
	color: #0f172a;
	background: #fff;
}

.toggle-pass {
	position: absolute;
	right: 13px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
	font-size: 13px;
	transition: color .2s;
}

.toggle-pass:hover {
	color: #0d9488;
}

/* Botón SI*/
.btn-login {
	width: 100%;
	height: 56px;
	background: #fff;
	color: #0d9488;
	font-size: 16px;
	font-weight: 800;
	border: none;
	border-radius: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
	transition: .15s;
}

.btn-login:hover {
	background: #f0fdf4;
	transform: translateY(-1px);
	box-shadow: 0 6px 22px rgba(0, 0, 0, .14);
}

.btn-login:active {
	transform: translateY(0);
	background: #dcfce7;
}

.form-footer {
	text-align: center;
	margin-top: 20px;
}

.form-footer a {
	font-size: 12px;
	color: rgba(255, 255, 255, .8);
	font-weight: 600;
	text-decoration: none;
}

.form-footer a:hover {
	color: #fff;
	text-decoration: underline;
}

.version-tag {
	text-align: center;
	margin-top: 20px;
	font-size: 10px;
	color: rgba(255, 255, 255, .4);
	letter-spacing: .04em;
}

@media (max-width: 660px) {
	.left-panel {
		display: none;
	}

	.right-panel {
		width: 100%;
		min-width: unset;
		padding: 40px 28px;
		border-radius: 24px;
	}


}

.btn-register {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 46px;
	margin-top: 12px;
	border: 2px solid rgba(255, 255, 255, .4);
	border-radius: 12px;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	letter-spacing: .02em;
	transition: background .15s, border-color .15s, transform .15s;
}

a.btn-enora {
    text-decoration: none;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--enora-primary, #1abc9c);
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
a.btn-enora:hover { background: #17a589; color: white; }

.btn-register:hover {
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .7);
	color: #fff;
	transform: translateY(-1px);
	text-decoration: none;
}


.wizard-buttons {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 24px;
}

.btn-prev {
	height: 48px;
	padding: 0 22px;
	border-radius: 12px;
	border: 2px solid rgba(255, 255, 255, .35);
	background: transparent;
	color: white;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.btn-next {
	flex: 1;
}

.btn-login {
	height: 48px;
	background: #fff;
	color: #0d9488;
	font-size: 14px;
	font-weight: 800;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.finish-hint {
	margin-top: 8px;
	font-size: 14px;
	color: white;
	font-weight: 600;
}

.arrow-down {
	font-size: 28px;
	color: white;
	margin-top: 10px;
	animation: arrowBounce 1.2s infinite;
}

@keyframes arrowBounce {

	0% {
		transform: translateY(0)
	}

	50% {
		transform: translateY(8px)
	}

	100% {
		transform: translateY(0)
	}

}

@keyframes spin{
0%{transform:rotate(0)}
100%{transform:rotate(360deg)}
}

/* ================================
   Fix navbar brand — evita que se
   monte sobre el sidebar
================================= */
.header-modern .navbar .navbar-brand {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin-left: 0 !important;
    margin-top: 0 !important;
}

/* Fix select2 dentro de d-flex — página productos */
.d-flex > .select2-container {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    width: auto !important;
}

.d-flex .select2-selection--single {
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    border-radius: 4px !important;
}

.d-flex .select2-selection__rendered {
    line-height: normal !important;
    padding-left: 10px !important;
    padding-right: 30px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.d-flex .select2-selection__arrow {
    height: 36px !important;
    top: 1px !important;
}