:root {
    --wht-primary: #0F52AA;
    --wht-secondary: #167BFF;
    --wht-bg: #fff;
    --wht-border: #e9ecef;
    --wht-text: #333;
    --wht-alt-bg: #f8f9fa;
    --wht-success: #28a745;
    --wht-error: #dc3545;
    --wht-info: #0ea5e9;
    
    /* Sombras Gainovo */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.1);
}

/* Contenedor */
.wht-container {
    max-width: 100%;
    overflow-x: auto;
    padding: 1rem;
    background: var(--wht-bg);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.wht-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #000 !important;
    font-weight: 600;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--wht-border);
}

/* Tabla */
.wht-table {
    width: 100%;
    min-width: 800px;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    border-radius: 8px;
    overflow: hidden;
}

.wht-table th {
    background: linear-gradient(135deg, var(--wht-primary) 0%, var(--wht-primary) 100%);
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    font-weight: 600;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--wht-border);
}

.wht-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--wht-border);
    text-align: left;
    color: var(--wht-text);
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.wht-row:nth-child(even) {
    background: var(--wht-alt-bg);
}

.wht-row:hover {
    background-color: rgba(15, 82, 170, 0.05);
}

/* Celdas especiales */
.wht-type {
    text-align: center;
    font-weight: 500;
}

.wht-amount {
    text-align: right;
    font-weight: 600;
    color: var(--wht-primary);
}

.wht-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--wht-primary) 0%, var(--wht-primary) 100%);
    color: #fff;
    border-radius: 36px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
    white-space: nowrap;
}

.wht-link:hover {
    background: linear-gradient(135deg, var(--wht-secondary) 0%, var(--wht-secondary) 100%);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
    border: 2px solid #ffffff;
}

/* Botón */
.wht-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--wht-primary) 0%, var(--wht-primary) 100%);
    color: #fff;
    border: 2px solid #ffffff;
    border-radius: 36px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.wht-button:hover {
    background: linear-gradient(135deg, var(--wht-secondary) 0%, var(--wht-secondary) 100%);
    transform: translateY(-2px);
    border: 2px solid #ffffff;
}

/* Mensajes */
.wht-alert,
.wht-empty {
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    border-left: 4px solid;
}

.wht-alert {
    background: rgba(220, 53, 69, 0.1);
    color: var(--wht-error);
    border-left-color: var(--wht-error);
}

.wht-empty {
    background: var(--wht-alt-bg);
    color: var(--wht-text);
    border-left-color: var(--wht-border);
}

/* Badges de tipo movimiento - ESTILO GAINOVO */
.wht-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.wht-badge-entrada {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--wht-success);
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.wht-badge-salida {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--wht-error);
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.wht-badge-pendiente {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.wht-badge-procesando {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--wht-info);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

/* Redondear esquinas superiores de la cabecera */
.wht-table thead th:first-child {
    border-top-left-radius: 8px;
}

.wht-table thead th:last-child {
    border-top-right-radius: 8px;
}

/* Para evitar que el borde inferior de la cabecera sobresalga tras el redondeo */
.wht-table thead th {
    border-bottom: 1px solid var(--wht-border);
}

/* Estados de montos */
.wht-amount.entrada {
    color: var(--wht-success);
}

.wht-amount.salida {
    color: var(--wht-error);
}

/* Responsive */
@media (max-width: 768px) {
    .wht-container {
        padding: 0.75rem;
    }
    
    .wht-title {
        font-size: 1.25rem;
    }
    
    .wht-table {
        min-width: 100%;
        display: block;
    }
    
    .wht-table thead {
        display: none;
    }
    
    .wht-table tbody {
        display: block;
    }
    
    .wht-row {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid var(--wht-border);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }
    
    .wht-cell {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
        text-align: right;
    }
    
    .wht-cell::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--wht-primary);
        margin-right: auto;
        padding-right: 1rem;
        font-size: 0.9rem;
        font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    }
    
    .wht-type,
    .wht-amount {
        text-align: right;
        justify-content: flex-end;
    }
    
    .wht-link {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
    
    .wht-button {
        width: 100%;
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
    }
}

/* Responsive adicional para botones Gainovo */
@media (min-width: 481px) and (max-width: 768px) {
    .wht-link,
    .wht-button {
        font-size: 10px;
        padding: 0.7rem 0.8rem;
    }
}

@media (min-width: 769px) {
    .wht-link,
    .wht-button {
        font-size: 11px;
        padding: 0.75rem 1rem;
    }
}

/* Mejora de accesibilidad */
.wht-link:focus,
.wht-button:focus {
    outline: 2px solid var(--wht-info);
    outline-offset: 2px;
}

/* Efectos de transición suaves */
.wht-row,
.wht-link,
.wht-button {
    transition: all 0.3s ease;
}

/* Iconos en botones y enlaces */
.wht-link .icon,
.wht-button .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}