/*--------------------------------------------------------------------------

| Sistema: Ixtle Control
| Desarrollado por: Happy Discover
| Cliente: Ixtle Promos - Mauricio Cantu
| Fecha de Desarrollo: 2026-04-17
| Todos los Derechos Reservados 2026-2036

|--------------------------------------------------------------------------
*/


/* ==========================================================================
   SECCIÓN 01: RESET GENERAL
   ========================================================================== */

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


/* ==========================================================================
   SECCIÓN 02: BODY Y CONFIGURACIÓN GLOBAL
   ========================================================================== */

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #0f172a;
}


/* ==========================================================================
   SECCIÓN 03: ESTRUCTURA GENERAL DEL LAYOUT
   ========================================================================== */

.ixtle-app {
    position: relative;
    min-height: 100vh;
}

.ixtle-container {
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
}

.ixtle-main {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.ixtle-content {
    flex: 1;
    padding: 20px 20px 72px;
}

.ixtle-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 90;
}

/* ==========================================================================
   SECCIÓN 04: SIDEBAR
   ========================================================================== */

.ixtle-sidebar {
    width: 240px;
    min-width: 240px;
    background: #0f172a;
    color: #ffffff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: width 0.25s ease, min-width 0.25s ease, transform 0.25s ease;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

/* ==========================================================================
   SECCIÓN 05: LOGO
   ========================================================================== */

.ixtle-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    margin-bottom: 24px;
    padding: 8px 0;
}

.ixtle-logo-principal {
    max-width: 150px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.ixtle-logo-compacto {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: none;
}


/* ==========================================================================
   SECCIÓN 06: MENÚ LATERAL
   ========================================================================== */

.ixtle-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ixtle-menu li {
    margin-bottom: 10px;
}

.ixtle-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.25s ease;
}

.ixtle-menu-section-color {
    width: 7px;
    height: 24px;
    border-radius: 999px;
    background: var(--section-color, transparent);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
    flex: 0 0 7px;
}

.ixtle-menu li a:hover {
    background: rgba(59, 130, 246, 0.12);
    color: #ffffff;
    text-decoration: none;
}

.ixtle-menu li.active a {
    background: linear-gradient(135deg, var(--section-color, #4f8dfd) 0%, var(--section-color, #2563eb) 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.ixtle-menu li.active .ixtle-menu-section-color {
    background: #ffffff;
}

.ixtle-menu-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ixtle-menu-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.ixtle-menu-text {
    display: inline-block;
    line-height: 1;
}

.divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.22);
    margin: 18px 0;
    border-radius: 999px;
}


/* ==========================================================================
   SECCIÓN 06.1: ESTADO COLAPSADO DEL SIDEBAR
   ========================================================================== */

.ixtle-app.ixtle-sidebar-collapsed .ixtle-sidebar {
    width: 92px;
    min-width: 92px;
    padding-left: 14px;
    padding-right: 14px;
}

.ixtle-app.ixtle-sidebar-collapsed .ixtle-logo {
    margin-bottom: 22px;
    min-height: 64px;
}

.ixtle-app.ixtle-sidebar-collapsed .ixtle-logo-principal {
    display: none;
}

.ixtle-app.ixtle-sidebar-collapsed .ixtle-logo-compacto {
    display: inline-flex;
}

.ixtle-app.ixtle-sidebar-collapsed .ixtle-menu li {
    justify-content: center;
    gap: 0;
    padding-left: 0;
    padding-right: 0;
}

.ixtle-app.ixtle-sidebar-collapsed .ixtle-menu-text {
    display: none;
}

.ixtle-app.ixtle-sidebar-collapsed .ixtle-menu-icon {
    width: 24px;
    height: 24px;
}

.ixtle-app.ixtle-sidebar-collapsed .ixtle-menu-section-color {
    position: absolute;
    left: 9px;
    height: 28px;
}

.ixtle-app.ixtle-sidebar-collapsed .divider {
    margin: 14px 0;
}

.ixtle-app.ixtle-sidebar-collapsed .ixtle-footer {
    left: 92px;
}


/* ==========================================================================
   SECCIÓN 07: TOPBAR
   ========================================================================== */

.ixtle-topbar {
    background: #ffffff;
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid #ddd;
}

.ixtle-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.ixtle-topbar input {
    width: 100%;
    max-width: 460px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
}

.ixtle-topbar input:focus {
    border-color: #93c5fd;
    background: #ffffff;
}

.ixtle-user {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    padding: 8px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #f8fbff;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.ixtle-user__meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.ixtle-user__meta strong {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #0f172a;
    padding-left: 8px;
}

.ixtle-user__meta span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.ixtle-user form {
    margin: 0;
}

.ixtle-user button {
    min-height: 38px;
    border: 0;
    border-radius: 999px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ixtle-user button svg {
    width: 17px;
    height: 17px;
}

.ixtle-user button:hover {
    background: #1d4ed8;
}

/* ==========================================================================
   SECCIÓN 07.1: TOGGLE DEL SIDEBAR
   ========================================================================== */

.ixtle-sidebar-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid #dbe2ea;
    background: #ffffff;
    border-radius: 10px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.25s ease;
    flex: 0 0 auto;
}

.ixtle-sidebar-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.ixtle-sidebar-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #0f172a;
    border-radius: 999px;
}


/* ==========================================================================
   SECCIÓN 08: ENCABEZADO DE PÁGINA
   ========================================================================== */

.ixtle-page-header {
    margin-bottom: 24px;
}

.ixtle-page-title {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.ixtle-page-subtitle {
    font-size: 15px;
    color: #64748b;
}


/* ==========================================================================
   SECCIÓN 09: TARJETAS KPI DEL DASHBOARD
   ========================================================================== */

.ixtle-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.ixtle-kpi-card {
    position: relative;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    min-height: 156px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ixtle-kpi-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.55), transparent 35%);
    pointer-events: none;
}

.ixtle-kpi-card::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

.ixtle-kpi-card-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ixtle-kpi-icon-wrap {
    flex: 0 0 auto;
}

.ixtle-kpi-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.ixtle-kpi-icon svg {
    width: 22px;
    height: 22px;
}

.ixtle-kpi-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ixtle-kpi-label {
    display: block;
    font-size: 13px;
    line-height: 1.15;
    font-weight: 900;
    text-transform: uppercase;
    color: #1e293b;
}

.ixtle-kpi-dots {
    display: none;
    align-items: center;
    gap: 6px;
}

.ixtle-kpi-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: block;
    background: currentColor;
    opacity: 0.45;
}

.ixtle-kpi-body {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    min-height: auto;
}

.ixtle-kpi-value {
    font-size: clamp(24px, 2vw, 34px);
    line-height: 1;
    font-weight: 950;
    color: #0f172a;
    margin-bottom: 7px;
    letter-spacing: 0;
}

.ixtle-kpi-meta {
    font-size: 12px;
    line-height: 1.35;
    color: #475569;
    max-width: 100%;
    font-weight: 750;
}

.ixtle-kpi-body-icon {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 26px;
    height: 26px;
    opacity: 0.72;
}

.ixtle-kpi-body-icon svg {
    width: 100%;
    height: 100%;
}


/* ==========================================================================
   SECCIÓN 10: VARIANTES DE COLOR PARA TARJETAS KPI
   ========================================================================== */

.ixtle-kpi-card--azul,
.ixtle-kpi-card--clientes {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 55%, #c7d2fe 100%);
    color: #2563eb;
}

.ixtle-kpi-card--turquesa,
.ixtle-kpi-card--proveedores {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 55%, #fed7aa 100%);
    color: #f59e0b;
}

.ixtle-kpi-card--dorado,
.ixtle-kpi-card--productos {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 55%, #d1fae5 100%);
    color: #16a34a;
}

.ixtle-kpi-card--morado,
.ixtle-kpi-card--usuarios,
.ixtle-kpi-card--ordenes {
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 55%, #f3e8ff 100%);
    color: #7c3aed;
}

.ixtle-kpi-card--presupuestos {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 55%, #fdf2f8 100%);
    color: #db2777;
}

.ixtle-kpi-card--ventas {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 55%, #dbeafe 100%);
    color: #0284c7;
}

.ixtle-kpi-card--meta {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 55%, #fecdd3 100%);
    color: #e11d48;
}

.ixtle-kpi-progress {
    height: 8px;
    width: 100%;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin: 10px 0 8px;
}

.ixtle-kpi-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
}

.ixtle-dashboard-alert {
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    background: #f0fdf4;
    color: #15803d;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 850;
    margin-bottom: 18px;
}

.ixtle-secondary-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.ixtle-secondary-kpi {
    min-height: 116px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
    padding: 15px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.ixtle-secondary-kpi span,
.ixtle-secondary-kpi small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.ixtle-secondary-kpi > strong {
    display: block;
    color: #0f172a;
    font-size: 26px;
    font-weight: 950;
    margin: 7px 0 4px;
}

.ixtle-vendedor-rank {
    padding: 5px 0;
    border-bottom: 1px dashed #e2e8f0;
}

.ixtle-vendedor-rank:last-child {
    border-bottom: none;
}

.ixtle-vendedor-rank strong {
    display: block;
    color: #0f172a;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ixtle-dashboard-tables-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.ixtle-dashboard-table-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.055);
    overflow: hidden;
}

.ixtle-dashboard-table-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.ixtle-dashboard-table-card__header h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.ixtle-dashboard-table-card__header a {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.ixtle-dashboard-table-wrap {
    overflow-x: auto;
}

.ixtle-dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.ixtle-dashboard-table th,
.ixtle-dashboard-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: middle;
    color: #334155;
    font-size: 13px;
    font-weight: 750;
}

.ixtle-dashboard-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.ixtle-dashboard-table th button {
    border: none;
    background: transparent;
    color: inherit;
    padding: 0;
    font: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.ixtle-dashboard-table th button::after {
    content: "↕";
    margin-left: 6px;
    color: #94a3b8;
    font-size: 10px;
}

.ixtle-dashboard-table th button.is-asc::after {
    content: "↑";
    color: #0f172a;
}

.ixtle-dashboard-table th button.is-desc::after {
    content: "↓";
    color: #0f172a;
}

.ixtle-dashboard-table tr:last-child td {
    border-bottom: none;
}

.ixtle-dashboard-table td strong {
    color: #0f172a;
    font-weight: 950;
}

.ixtle-dashboard-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.ixtle-dashboard-status--borrador {
    background: #e5e7eb;
    color: #374151;
}

.ixtle-dashboard-status--enviado,
.ixtle-dashboard-status--enviados,
.ixtle-dashboard-status--pendiente-aprobacion,
.ixtle-dashboard-status--en-proceso-de-pago {
    background: #dbeafe;
    color: #1d4ed8;
}

.ixtle-dashboard-status--aprobado,
.ixtle-dashboard-status--autorizado,
.ixtle-dashboard-status--pagada,
.ixtle-dashboard-status--entregado {
    background: #dcfce7;
    color: #15803d;
}

.ixtle-dashboard-status--no-aprobado,
.ixtle-dashboard-status--rechazado,
.ixtle-dashboard-status--rechazo-aprobacion,
.ixtle-dashboard-status--cancelado,
.ixtle-dashboard-status--cancelada {
    background: #fee2e2;
    color: #b91c1c;
}

.ixtle-dashboard-status--seguimiento,
.ixtle-dashboard-status--diseno,
.ixtle-dashboard-status--produccion,
.ixtle-dashboard-status--entrega,
.ixtle-dashboard-status--pendiente-de-pago {
    background: #ffedd5;
    color: #c2410c;
}

.ixtle-dashboard-view {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ixtle-dashboard-view svg {
    width: 18px;
    height: 18px;
}

.ixtle-dashboard-table-empty {
    color: #94a3b8 !important;
    text-align: center !important;
    font-weight: 850 !important;
}


/* ==========================================================================
   SECCIÓN 11: PANEL GENERAL DEL DASHBOARD
   ========================================================================== */

.ixtle-panel {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid #e2e8f0;
}

.ixtle-panel-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ixtle-panel-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.ixtle-panel-text {
    font-size: 15px;
    color: #64748b;
}

.ixtle-config-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    align-items: start;
}

.ixtle-config-card {
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.ixtle-config-card--wide {
    grid-column: 1 / -1;
}

.ixtle-config-card--company {
    grid-column: span 8;
}

.ixtle-config-card--side {
    grid-column: span 4;
}

.ixtle-config-card--half {
    grid-column: span 6;
}

.ixtle-config-card__header {
    margin-bottom: 18px;
}

.ixtle-config-card__header span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.ixtle-config-card__header h2 {
    color: #0f172a;
    font-size: 22px;
    font-weight: 950;
    margin: 0;
}

.ixtle-config-card__header p {
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    margin: 6px 0 0;
}

.ixtle-config-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ixtle-config-form label,
.ixtle-config-form label span {
    display: block;
}

.ixtle-config-form label span {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

.ixtle-config-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ixtle-config-form-grid--company {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ixtle-config-form-grid--notes {
    grid-template-columns: minmax(0, 1.5fr) minmax(150px, 0.6fr) minmax(90px, 0.3fr);
}

.ixtle-config-form input,
.ixtle-config-form select,
.ixtle-config-form textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 11px 12px;
    color: #0f172a;
    background: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    outline: none;
    appearance: none;
    transition: all 0.2s ease;
}

.ixtle-config-form input[type="checkbox"] {
    appearance: auto;
}

.ixtle-config-form input,
.ixtle-config-form select {
    min-height: 46px;
}

.ixtle-config-form textarea {
    resize: vertical;
    min-height: 92px;
    line-height: 1.45;
}

.ixtle-config-form input:focus,
.ixtle-config-form select:focus,
.ixtle-config-form textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

.ixtle-config-form button {
    width: fit-content;
    min-height: 44px;
    border: none;
    border-radius: 14px;
    background: #0f172a;
    color: #ffffff;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 950;
    cursor: pointer;
}

.ixtle-config-form select {
    background:
        linear-gradient(45deg, transparent 50%, #64748b 50%) calc(100% - 18px) 50% / 6px 6px no-repeat,
        linear-gradient(135deg, #64748b 50%, transparent 50%) calc(100% - 13px) 50% / 6px 6px no-repeat,
        #ffffff;
    padding-right: 36px;
}

.ixtle-config-error {
    color: #b91c1c;
    font-size: 12px;
    font-weight: 850;
}

.ixtle-config-alert--danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.ixtle-config-check {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: #475569;
    font-size: 13px;
    font-weight: 850;
}

.ixtle-config-check input {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    padding: 0;
    border-radius: 4px;
    flex: 0 0 18px;
}

.ixtle-config-check span {
    margin: 0 !important;
    color: inherit !important;
}

.ixtle-config-inline-form {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 16px;
    background: #f8fafc;
    margin-bottom: 18px;
}

.ixtle-config-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.ixtle-config-list-item {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ixtle-config-list-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ixtle-config-bank-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.ixtle-config-bank-logo-preview {
    width: 84px;
    height: 84px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ixtle-config-bank-logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.ixtle-config-bank-logo-preview span {
    color: #db2777;
    font-size: 18px;
    font-weight: 950;
}

.ixtle-config-bank-logo-upload {
    position: relative;
    min-height: 96px;
    border: 1px dashed #f9a8d4;
    border-radius: 18px;
    background: #fff7fb;
    padding: 18px 18px 18px 92px;
    cursor: pointer;
}

.ixtle-config-bank-logo-upload::before {
    content: "+";
    position: absolute;
    left: 18px;
    top: 18px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #fce7f3;
    color: #be185d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 950;
}

.ixtle-config-bank-logo-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.ixtle-config-bank-logo-upload strong,
.ixtle-config-bank-logo-upload small {
    display: block;
}

.ixtle-config-bank-logo-upload strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
}

.ixtle-config-bank-logo-upload small {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    margin-top: 4px;
}

.ixtle-config-bank-logo-upload--compact {
    min-height: 84px;
    padding-top: 15px;
    padding-bottom: 15px;
}

.ixtle-config-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 18px;
    color: #64748b;
    font-size: 13px;
    font-weight: 850;
    text-align: center;
    background: #f8fafc;
}


/* ==========================================================================
   SECCIÓN 12: RESPONSIVE TABLET
   ========================================================================== */

@media (max-width: 1200px) {
    .ixtle-config-grid {
        grid-template-columns: 1fr;
    }

    .ixtle-config-card--company,
    .ixtle-config-card--side,
    .ixtle-config-card--half,
    .ixtle-config-card--wide {
        grid-column: 1 / -1;
    }

    .ixtle-config-form-grid,
    .ixtle-config-form-grid--company,
    .ixtle-config-form-grid--notes {
        grid-template-columns: 1fr;
    }

    .ixtle-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ixtle-secondary-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ixtle-dashboard-tables-grid {
        grid-template-columns: 1fr;
    }

}

/* ==========================================================================
   SECCIÓN 12.1: FOOTER INSTITUCIONAL
   ========================================================================== */

.ixtle-footer {
    position: fixed;
    left: 240px;
    right: 0;
    bottom: 0;
    height: 44px;
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    text-align: center;
    z-index: 80;
    transition: left 0.25s ease;
}

.ixtle-footer__text {
    display: inline-block;
    grid-column: 2;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.4;
}

.ixtle-footer__version {
    grid-column: 3;
    justify-self: end;
    border-radius: 999px;
    color: #64748b;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    padding: 7px 10px;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

a.ixtle-footer__version:hover {
    background: #eef2ff;
    color: #2563eb;
}

/* ==========================================================================
   SECCIÓN 12.2: HISTORIAL DE VERSIONES
   ========================================================================== */

.ixtle-version-page {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ixtle-version-hero {
    border: 1px solid #dbe3ef;
    border-radius: 22px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    padding: 28px;
}

.ixtle-version-hero span,
.ixtle-version-card__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    background: #eef2ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 950;
    padding: 0 12px;
    text-transform: uppercase;
}

.ixtle-version-hero strong {
    display: block;
    margin-top: 14px;
    color: #0f172a;
    font-size: 42px;
    font-weight: 950;
    letter-spacing: 0;
}

.ixtle-version-hero p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 15px;
    font-weight: 750;
}

.ixtle-version-list {
    display: grid;
    gap: 14px;
}

.ixtle-version-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    padding: 18px;
}

.ixtle-version-card__meta {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.ixtle-version-card__meta small {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.ixtle-version-card h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 950;
}

.ixtle-version-card p {
    margin: 6px 0 0;
    color: #475569;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;
}


/* ==========================================================================
   SECCIÓN 13: RESPONSIVE MÓVIL
   ========================================================================== */

@media (max-width: 768px) {
    .ixtle-container {
        flex-direction: column;
    }

    .ixtle-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        width: 280px;
        min-width: 280px;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.28);
    }

    .ixtle-app.ixtle-mobile-sidebar-open .ixtle-sidebar {
        transform: translateX(0);
    }

    .ixtle-app.ixtle-mobile-sidebar-open .ixtle-sidebar-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .ixtle-topbar {
        flex-direction: row;
        align-items: center;
    }

    .ixtle-topbar-left {
        width: 100%;
    }

    .ixtle-topbar input {
        max-width: 100%;
    }

    .ixtle-user {
        display: none;
    }

    .ixtle-content {
        padding: 16px 16px 72px;
    }

    .ixtle-footer {
        left: 0;
        height: 58px;
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 8px 12px;
    }

    .ixtle-footer__text,
    .ixtle-footer__version {
        grid-column: 1;
        justify-self: center;
    }

    .ixtle-footer__version {
        padding: 0;
    }

    .ixtle-page-title {
        font-size: 26px;
    }

    .ixtle-kpi-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ixtle-secondary-kpi-grid {
        grid-template-columns: 1fr;
    }

    .ixtle-kpi-card {
        min-height: auto;
        padding: 16px;
    }

    .ixtle-kpi-card-top {
        gap: 12px;
        margin-bottom: 12px;
    }

    .ixtle-kpi-icon {
        width: 46px;
        height: 46px;
    }

    .ixtle-kpi-icon svg {
        width: 22px;
        height: 22px;
    }

    .ixtle-kpi-value {
        font-size: 24px;
    }

    .ixtle-kpi-meta {
        max-width: 100%;
        padding-right: 28px;
    }

    .ixtle-dashboard-table-card__header {
        padding: 14px;
    }

    .ixtle-panel {
        padding: 18px;
    }

    .ixtle-logo-principal {
        display: block !important;
    }

    .ixtle-logo-compacto {
        display: none !important;
    }

    .ixtle-menu-text {
        display: inline;
    }

    .ixtle-menu li {
        justify-content: flex-start;
        gap: 12px;
    }

    .ixtle-footer {
        left: 0;
        right: 0;
        height: auto;
        min-height: 48px;
        padding: 8px 14px;
    }

    .ixtle-footer__text {
        font-size: 11px;
    }
}
