
/**************************************GENERAL**************************************/

.custom-color-white {
    color: #FFFFFF;
}

.custom-color-gray {
    color: #6e6e6e;
}

.custom-color-primary {
    color: #439970;
}

.custom-color-secundary {
    color: #82BB29;
}




/**************************************HEADER**************************************/
/* ========================================
   ESTILOS PARA BARRA SUPERIOR DEL AGENTE
   ======================================== */

/* Barra superior - Fondo blanco con elementos verdes */
.custom-agent-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.12) !important;
    border-bottom: 2px solid rgba(76, 175, 80, 0.08) !important;
    padding: 12px 24px !important;
    min-height: 90px !important;
    height: 90px !important;
    display: flex !important;
    align-items: stretch !important;
}

/* Logo más grande */
.custom-agent-logo {
    height: 80px !important;
    width: auto !important;
    margin-right: 20px !important;
    transition: transform 0.3s ease !important;
}

.custom-agent-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 4px 8px rgba(76, 175, 80, 0.15));
}

/* Contenedor de navegación - Agrupa elementos a la derecha */
.custom-nav-container {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

/* Botones de navegación - Íconos pequeños y verdes */
.custom-nav-button {
    color: #4CAF50 !important;
    margin: 0 3px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background-color: rgba(76, 175, 80, 0.05) !important;
    border: 1px solid rgba(76, 175, 80, 0.1) !important;
    padding: 6px !important;
    min-width: 32px !important;
    min-height: 32px !important;
}

.custom-nav-button:hover {
    background-color: rgba(76, 175, 80, 0.15) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2) !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
}

.custom-nav-button:active {
    transform: translateY(0) scale(0.98) !important;
    transition: all 0.1s ease !important;
}

.custom-nav-button .mud-icon-root {
    color: #4CAF50 !important;
    font-size: 1rem !important;
}

.custom-nav-button .mud-button-root {
    color: #4CAF50 !important;
    border-radius: 8px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 6px !important;
}

/* Información del agente - Contenedor elegante */
.custom-agent-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 12px !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08) 0%, rgba(46, 125, 50, 0.12) 100%) !important;
    border-radius: 25px !important;
    border: 2px solid rgba(76, 175, 80, 0.15) !important;
    backdrop-filter: blur(15px) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.1) !important;
    position: relative !important;
    white-space: nowrap !important;
}

.custom-agent-info:hover {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.12) 0%, rgba(46, 125, 50, 0.18) 100%) !important;
    border-color: rgba(76, 175, 80, 0.3) !important;
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* Avatar del agente */
.custom-agent-avatar {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%) !important;
    border: 3px solid rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25) !important;
    width: 40px !important;
    height: 40px !important;
}

.custom-agent-avatar:hover {
    transform: scale(1.08) !important;
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.35) !important;
    border-color: rgba(255, 255, 255, 1) !important;
}

.custom-agent-initials {
    color: white !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
}

/* Detalles del agente */
.custom-agent-details {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
}

.custom-agent-name {
    color: #2E7D32 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 180px !important;
    text-shadow: 0 1px 2px rgba(76, 175, 80, 0.1) !important;
}

/* Ícono de verificación */
.custom-verified-icon {
    color: #4CAF50 !important;
    filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.3)) !important;
    animation: pulse-green 2s infinite !important;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.3));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 4px 8px rgba(76, 175, 80, 0.5));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.3));
    }
}

/* ========================================
   ESPACIADO DEL CONTENIDO PRINCIPAL
   ======================================== */


/* Tooltips */
.mud-tooltip {
    z-index: 9999 !important;
    background-color: #2E7D32 !important;
}

.mud-tooltip .mud-tooltip-content {
    background-color: #2E7D32 !important;
    color: white !important;
}

/* Línea de acento superior */
.custom-agent-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A, #81C784);
    border-radius: 0 0 2px 2px;
}

/* ========================================
   DISEÑO RESPONSIVE
   ======================================== */

/* Tablets y pantallas medianas (768px) */
@media (max-width: 768px) {
    .custom-agent-header,
    .mud-appbar.custom-agent-header,
    .mud-toolbar.mud-toolbar-gutters {
        padding: 10px 16px !important;
        min-height: 75px !important;
        height: 75px !important;
    }

    .custom-agent-logo,
    .mud-appbar .custom-agent-logo {
        height: 65px !important;
        margin-right: 16px !important;
    }

    .mud-main-content {
        padding-top: 30px !important;
    }

    .custom-nav-container {
        gap: 6px !important;
    }

    .custom-agent-info {
        margin: 0 8px !important;
        padding: 6px 12px !important;
        gap: 8px !important;
    }

    .custom-agent-name {
        font-size: 0.85rem !important;
        max-width: 120px !important;
    }

    .custom-nav-button {
        margin: 0 2px !important;
        padding: 4px !important;
        min-width: 28px !important;
        min-height: 28px !important;
    }

        .custom-nav-button .mud-icon-root {
            font-size: 0.9rem !important;
        }

    .custom-agent-avatar {
        width: 36px !important;
        height: 36px !important;
    }

    .custom-agent-initials {
        font-size: 0.8rem !important;
    }
}

/* Móviles y pantallas pequeñas (480px) */
@media (max-width: 480px) {
    .custom-agent-header,
    .mud-appbar.custom-agent-header,
    .mud-toolbar.mud-toolbar-gutters {
        padding: 8px 12px !important;
        min-height: 65px !important;
        height: 65px !important;
    }

    .custom-agent-logo,
    .mud-appbar .custom-agent-logo {
        height: 55px !important;
        margin-right: 12px !important;
    }

    .mud-main-content {
        padding-top: 60px !important;
    }

    .custom-nav-container {
        gap: 4px !important;
    }

    .custom-agent-details {
        display: none !important;
    }

    .custom-agent-info {
        padding: 4px 8px !important;
        gap: 6px !important;
        margin: 0 4px !important;
    }

    .custom-nav-button {
        margin: 0 1px !important;
        padding: 3px !important;
        min-width: 24px !important;
        min-height: 24px !important;
    }

        .custom-nav-button .mud-icon-root {
            font-size: 0.8rem !important;
        }

    .custom-agent-avatar {
        width: 32px !important;
        height: 32px !important;
    }

    .custom-agent-initials {
        font-size: 0.7rem !important;
    }
}

.custom-banner {
    padding: 0;
    margin: 0;
}

.custom-banner .custom-banner-paper {
    width: 100%;
    min-height: 250px; /* Altura del banner */
    background: linear-gradient(135deg, #439970 0%, #82BB29 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.custom-banner .custom-banner-title {
    margin-bottom: 0.5rem;
}

.custom-banner .custom-banner-subtitle {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    padding: 10px 20px;
}

.custom-button-orange {
    background-color: #FF7A00; /* Naranja vivo */
    color: white; /* Texto blanco */
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.75rem 2rem; /* Botón grande */
    font-size: 1rem;
    min-height: 56px;
    margin: 2px 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.custom-button-orange:hover {
    background-color: #e86d00; /* Un naranja un poquito más oscuro al pasar el mouse */
    transform: translateY(-3px); /* Se levanta levemente */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Sombrita suave */
}

.custom-button-orange:active {
    transform: translateY(0); /* Vuelve a su lugar al hacer click */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/**************************************CARD**************************************/
.custom-button-primary,
.custom-button-secundary {
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 9999px;
    line-height: 1.2;
    height: auto;
    max-height: none;
    white-space: normal;
    text-align: center;
    min-height: 56px;
    margin: 2px 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.custom-button-primary:hover,
.custom-button-secundary:hover{
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
}


/**************************************CARD**************************************/
.custom-paper-primary {
    display: flex;
    flex-direction: column;
    padding: 14px 24px 14px 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.custom-paper-resume {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 24px !important;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--mud-palette-secondary);
    border-radius: 12px;
    background: #ffffff;
    min-height: 140px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-paper-resume:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.custom-paper-resume .custom-resume-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
}

.custom-paper-resume .custom-resume-currency {
    text-align: center !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    color: #F25757 !important;
    margin-bottom: 6px !important;
}

.custom-paper-resume .custom-resume-description {
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: #757575 !important;
}

.custom-icon-resume {
    font-size: 2.8rem !important;
    color: var(--mud-palette-secondary);
    margin-right: 16px !important;
}


/**************************************CONTAINER-**************************************/

.custom-container-info {
    background-color: #F5F9F7;
    margin-top: 64px !important;
    padding: 0;
}

.custom-paper-info {
    background-color: #F5F9F7 !important;
}

.custom-paper-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-radius: 12px;
    height: 100%;
    width: 400px;
    background-color: #e1d3ff !important;
}

.custom-paper-info-img {
    width: 170px;
    height: auto;
    margin-bottom: 16px;
}

.mud-expand-panel .mud-expand-panel-header {
    color: #439970;
    font-family: 'Poppins', 'Helvetica', 'Arial', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.09rem;
}

/*************************TABLE********************/

.mx-modern-table {
    margin-top: 20px;
}

.mx-modern-table .mud-table-row th {
    background-color: #439970 !important;
    color: white !important;
    font-weight: 600 !important;
    text-align: center !important;
}

.mx-modern-table .mud-table-row td {
    text-align: center !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 12px !important;
    font-size: 0.95rem !important;
    color: #333 !important;
}

.mx-modern-table .mud-table-row tr:hover {
    background-color: #f5f5f5 !important;
}

.mud-table-hover .mud-table-container .mud-table-root .mud-table-body .mud-table-row:hover {
    background-color: rgba(130, 187, 41, 0.10) !important;
    transition: background-color 0.3s ease !important;
}


/**************************************OVERLAY-**************************************/

.descarga-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    position: relative;
}

.icon-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
}

.descarga-icono {
    width: 48px;
    height: 48px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.loader-circle {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 5px solid #82BB29;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    z-index: 1;
}

.descarga-texto {
    font-size: 1.1rem;
    color: #439970;
    font-weight: 500;
    margin: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/**************************************FOOTER-**************************************/

.custom-paper-footer {
    background-color: var(--mud-palette-primary);
    border-radius: 0;
    padding: 24px;
    margin-top: 64px;
}

.custom-footer-copyright {
    color: #FFFFFF;
    font-size: .765rem;
}

.custom-footer-icon {
    color: #FFFFFF;
    font-size: 1.5rem;
}


/**************************************TOOLTIP-**************************************/

.custom-tooltip-body {
    max-width: 260px;
    padding: 8px;
}

.custom-tooltip-text-title {
    text-align: center;
    white-space: normal;
    font-size: 0.875rem; /*14 px aproximado*/
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
    font-weight: 500;
    color: white;
}

.custom-tooltip-text-body {
    text-align: left;
    white-space: normal;
    font-size: 0.75rem; /*12 px aproximado*/
    font-family: 'Roboto', sans-serif;
    color: white;
}


/**************************************CARDBOX-**************************************/

.custom-resume-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 500; 
    letter-spacing: 0.05rem;
    text-transform: uppercase; 
    color: #2e2e2e; 
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.custom-paper-dashboard {
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 160px;
    background-color: #ffff;
    border-left: 6px solid #82BB29;
    transition: transform 0.2s ease-in-out;
}

.custom-paper-dashboard:hover {
    transform: scale(1.02);
}

.custom-paper-dashboard .custom-paper-currency {
    color: #F25757;
    font-family: 'Poppins';
    font-size: 1rem;
    font-weight: 500;
}



.data-box {
    padding: 16px;
    text-align: center;
    border: 1px solid #e0e0e0;
    height: 100%;
}

.data-box .label {
    font-size: 0.85rem;
    color: #5f6368;
    margin-bottom: 4px;
}

.data-box .value {
    font-weight: 600;
    font-size: 1.1rem;
    color: #37474f;
}

/**************************************MEDIA QUERIES-**************************************/

@media (max-width: 768px) {
    .custom-banner .custom-banner-title {
        margin-bottom: 0.5rem;
        margin-top: 1.2rem;
        margin-left: 0.8rem;
        margin-right: 0.8rem;
        font-size: 2.5rem;
        text-align: center;
    }

    .custom-button-orange {
        margin-bottom: 1rem;
        font-size: .9rem;
        font-weight: 500;
        padding: 10px 20px;
        line-height: 1.2;
        height: auto;
        white-space: normal;
        text-align: center;
    }

    .custom-button-primary {
        font-size: 0.8rem;
        font-weight: 500;
        padding: 10px 20px;
        line-height: 1.2;
        height: auto;
        max-height: none;
        white-space: normal;
        text-align: center;
    }

    .custom-button-secundary {
        font-size: 0.8rem;
        font-weight: 500;
        padding: 10px 20px;
        line-height: 1.2;
        height: auto;
        max-height: none;
        white-space: normal;
        text-align: center;
    }
}