﻿html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Myriad Pro', sans-serif;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: #ffffff;
    border-bottom: 2px solid #2692d0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    word-break: break-word;
}

.cliente-nombre {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-family: 'Merriweather', serif;
    color: #000;
}

    .cliente-nombre i {
        font-size: 1.5rem;
    }

.icono-grande {
    font-size: 2rem;
    color: #000;
}

.logo-header {
    height: 55px;
    object-fit: contain;
}

.main-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.container {
    padding: 1rem;
    max-width: 1000px;
    margin: auto;
}

.fondos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .fondos-grid {
        grid-template-columns: 1fr;
    }

    .top-header,
    .main-bar .bar-right {
        flex-direction: column !important;
        align-items: flex-start;
        padding: 1rem !important;
    }

    .main-bar .bar-right {
        padding-right: 0 !important;
        justify-content: center;
    }

    .logo-header {
        max-height: 45px;
    }
}

.fondo-card {
    position: relative;
    border: 2px solid #8bc34a;
    border-radius: 20px;
    background-color: white;
    padding: 2rem 2rem 1.5rem 2rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 750px;
    box-sizing: border-box;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.1s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .fondo-card:hover {
        box-shadow: 0 8px 16px rgba(0, 128, 0, 0.25);
        transform: scale(1.01);
        background-color: #EEEEEE;
    }

    .fondo-card:active {
        box-shadow: 0 0 0 rgba(0, 0, 0, 0.1);
        transform: scale(0.97);
    }

.fondo-icono {
    position: absolute;
    top: -25px;
    left: 0px;
    background-color: white;
    border: 2px solid #8bc34a;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #007bff;
}

.fondo-content {
    margin-left: 4rem;
    width: 100%;
}

.fondo-label {
    font-size: 0.8rem;
    color: #888;
    font-family: 'Myriad Pro', sans-serif;
}

.fondo-nombre {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
    font-family: 'Merriweather', serif;
}

.fondo-decorativo {
    position: relative;
    width: 130px;
    height: 14px;
    background-color: #2692d0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    overflow: hidden;
    margin-top: 0.2rem;
}

    .fondo-decorativo::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 4px;
        width: 100%;
        background-color: #a0c85f;
    }

.fondo-datos {
    display: flex;
    flex-direction: column;
    font-family: 'Myriad Pro', sans-serif;
    min-width: 140px;
}

.fondo-dato-label {
    font-weight: bold;
    font-size: 0.9rem;
    color: #000;
}

.fondo-dato-valor {
    font-size: 1.1rem;
    font-family: 'Myriad Pro', sans-serif;
    color: #333;
}

.fondo-card.highlight {
    background-color: #f5f5f5;
}

.fondo-contenido-horizontal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-left: 1rem;
    gap: 1rem;
    width: 100%;
}

.saldo-total-card {
    background-color: #f9f9f9;
    border-radius: 16px;
    padding: 1rem 2rem;
    margin-top: 2rem;
    box-shadow: inset 0 -4px 0 #a0c85f;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.saldo-total-text {
    font-family: 'Myriad Pro', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    color: #000;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e0e0e0;
    background-color: #f9f9f9;
}

.header-nav .nav-link:hover {
    text-decoration: underline;
}

.header-nav i {
    font-size: 1.1rem;
}

.logo {
    height: 70px;
    width: auto;
}

.main-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: #2692d0;
    padding: 0 1.5rem;
    height: auto;
    flex-wrap: wrap;
}

    .main-bar .bar-right {
        display: flex;
        justify-content: flex-end;
        width: 100%;
        padding-right: 2rem;
    }

.bar-left .logo {
    height: 40px;
    width: auto;
}

.bar-right .home-button {
    background-color: #0f5594;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Myriad Pro', sans-serif;
}

    .bar-right .home-button:hover {
        background-color: #0f3a5d;
    }

    .bar-right .home-button i {
        font-size: 1rem;
    }

.user-info {
    font-family: 'Myriad Pro', sans-serif;
    font-size: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: #f5f5f5;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.hover-underline {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

    .hover-underline::after {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        display: block;
        background: #28a745;
        bottom: 0;
        right: 0;
        transform-origin: right;
        transition: width 0.3s ease-in-out;
    }

    .hover-underline:hover::after {
        width: 100%;
    }

.dropdown-item {
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
    cursor: pointer;
}

    .dropdown-item::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        height: 3px;
        width: 0;
        background-color: #28a745;
        transform-origin: right;
        transition: width 0.3s ease;
    }

    .dropdown-item:hover::after {
        width: 100%;
    }

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear,
input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none !important;
}

.btn-outline-secondary {
    border-width: 1px !important;
    border-left: none !important;
}

.input-group .form-control {
    border-right: none !important;
}

.input-group .btn-outline-secondary:focus {
    box-shadow: none;
}

/* Main layout content area */
.main-layout {
    min-height: calc(100vh - 160px); /* Ajusta si header/footer cambian */
    padding: 1rem;
    box-sizing: border-box;
}

/* Footer (si tienes uno) */
footer {
    background-color: #f8f9fa;
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid #ddd;
    margin-top: auto;
    width: 100%;
}
.grid-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.table-custom th {
    font-weight: bold;
    font-size: 14px;
}

.no-data {
    padding: 40px 0;
}

.no-data-icon {
    font-size: 2rem;
    color: #ccc;
    margin-bottom: 5px;
}

.resumen-contenedor {
    border: 2px solid #B3CE46;
    border-radius: 20px;
    max-width: 900px;
}

/* Ítems dentro del recuadro */
.resumen-item {
    min-width: 180px;
    margin: 10px 0;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border: 2px solid #B3CE46;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3c74b3;
    font-size: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.table-custom tbody {
    min-height: 200px; 
    display: block;
    overflow-y: auto;
}

    .table-custom thead,
    .table-custom tbody tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

.table-custom th,
.table-custom td {
    width: 33.33%; 
}

    .table-custom-movi th:nth-child(4),
    .table-custom-movi td:nth-child(4) {
        width: 40%; 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
    }

.table-custom-movi th:not(:nth-child(4)),
.table-custom-movi td:not(:nth-child(4)) {
    width: 12%; 
}

.table-custom-movi {
    table-layout: fixed;
    width: 100%; 
}

