﻿body {
    margin: 0;
    font-family: var(--bs-body-font-family);    
    text-align: var(--bs-body-text-align);
    background-color: var(--bs-body-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.input-group .btn {
    border-radius: 0 5px 5px 0; /* Bordes redondeados solo a la derecha */
    background-color: #f8f9fa; /* Color más delicado */
    border-color: #ced4da;
}

    .input-group .btn:hover {
        background-color: #e2e6ea;
    }

.titulo_menu_header {
    color: #fff !important;
    background-color: #109648 !important;
    font-size: 17px !important;
}

.subtitulo_iseguros {
    font-size: 1rem !important;
    font-weight: bold;
}

.mx-3 {
    margin-right: 1rem !important;
    margin-left: 1rem !important;
}

.label_morado {
    color: #7851e2 !important;
}

.label_verde {
    color: #109648 !important;
}

.sidebar {
    height: calc(100% -(3.5rem + 1px));
    overflow-x: hidden;
    overflow-y: initial;
    padding-bottom: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0;
    scrollbar-color: #a9a9a9 transparent;
    scrollbar-width: none;
}

.top-navbar-height {
    height: 82px;
}

.col-form-label {
    padding-top: calc(0.375rem + 1px);
    padding-bottom: calc(0.375rem + 1px);
    margin-bottom: 0;
    font-size: inherit;
    line-height: 1.5;
}

h2, .h2 {
    color: #2C2C41 !important;
    font-size: 30px !important;
    font-weight: 700 !important;
}

.nombreAcreedor {
    font-weight: bold;
    text-decoration: underline;
    font-size: 13px;
}

.bg-success {
    background-color: #109648 !important;
}

.bg-ins-car-is {
    background-color: #653279 !important;
}

.bg-ins-fire-is {
    background-color: #EC7A08 !important;
}

.bg-ins-optiseg-is {
    background-color: rgba(236, 122, 8, 0.6) !important;
}

.bg-ins-eqmaq-is {
    background-color: #EAAA00 !important;
}

.bg-ins-rotmaq-is {
    background-color: rgba(234, 170, 0, 0.6) !important;
}

.bg-ins-tdriesg-is {
    background-color: rgba(234, 170, 0, 0.4) !important;
}

.bg-ins-eqelec-is {
    background-color: rgba(234, 170, 0, 0.2) !important;
}

.bg-ins-life-is {
    background-color: #97D700 !important;
}

.bg-ins-ap-is {
    background-color: #E0004D !important;
}

.bg-ins-transp-is {
    background-color: #00B2A9 !important;
}

.bg-ins-casmarit-is {
    background-color: rgba(0, 178, 169, 0.6) !important;
}
.bg-purple-is {
    background-color: #7851e2 !important;
}

.bg-success-soft {
    background-color: #97d700 !important;
}

.bg-purple-is, .bg-purple-is > a {
    color: #fff !important;
}

.bg-success-soft, .bg-success-soft > a {
    color: #fff !important;
}

.bg-ins-car-is, .bg-ins-car-is > a {
    color: #fff !important;
}

.bg-ins-fire-is, .bg-ins-fire-is > a {
    color: #fff !important;
}

.bg-ins-optiseg-is, .bg-ins-optiseg-is > a {
    color: #fff !important;
}

.bg-ins-eqmaq-is, .bg-ins-eqmaq-is > a {
    color: #fff !important;
}

.bg-ins-rotmaq-is, .bg-ins-rotmaq-is {
    color: #fff !important;
}

.bg-ins-tdriesg-is, .bg-ins-tdriesg-is > a {
    color: #fff !important;
}

.bg-ins-eqelec-is, .bg-ins-eqelec-is > a {
    color: #fff !important;
}

.bg-ins-life-is, .bg-ins-life-is > a {
    color: #fff !important;
}

.bg-ins-ap-is, .bg-ins-ap-is > a {
    color: #fff !important;
}

.bg-ins-transp-is, .bg-ins-transp-is > a {
    color: #fff !important;
}

.bg-ins-casmarit-is, .bg-ins-casmarit-is > a {
    color: #fff !important;
}

.text-success-soft {
    color: #97d700 !important;
}

.text-white {
    color: #fff !important;
}

.text-purple-is {
    color: #7851e2 !important;
}

.text-ins-car-is {
    background-color: #653279 !important;
    border-radius: 30px;
}

.text-ins-fire-is {
    background-color: #EC7A08 !important;
    border-radius: 30px;
}

.text-ins-optiseg-is {
    background-color: rgba(236, 122, 8, 0.6) !important;
    border-radius: 30px;
}

.text-ins-eqmaq-is {
    background-color: #EAAA00 !important;
    border-radius: 30px;
}

.text-ins-rotmaq-is {
    background-color: rgba(234, 170, 0, 0.6) !important;
    border-radius: 30px;
}

.text-ins-tdriesg-is {
    background-color: rgba(234, 170, 0, 0.4) !important;
    border-radius: 30px;
}

.text-ins-eqelec-is {
    background-color: rgba(234, 170, 0, 0.2) !important;
    border-radius: 30px;
}

.text-ins-life-is {
    background-color: #97D700 !important;
    border-radius: 30px;
}

.text-ins-ap-is {
    background-color: #E0004D !important;
    border-radius: 30px;
}

.text-ins-transp-is {
    background-color: #00B2A9 !important;
    border-radius: 30px;
}

.text-ins-casmarit-is {
    background-color: #00B2A9 !important;
    border-radius: 30px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgb(233 245 238);
}

.table-rows-color tbody tr.odd-color {
    background-color: rgb(233 245 238);
}

.table-rows-color tbody tr.even-color {
    background-color: rgb(255 255 255);
}

div#tbPolicies_filter {
    padding-left: 5%;
}

div#TblMorosidad_filter {
    padding-left: 5%;
}

table tr td {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: normal !important;
}

table tr th {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8rem !important;
}

#TblMorosidad tr td {
    padding: .25rem !important;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: normal;
}

#TblMorosidad tr th {
    padding: .25rem !important;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: normal;
}

.dt-buttons.btn-group.flex-wrap {
    padding-left: 50%;
    margin-top: -115px;
}

.mt-6 {
    margin-top: 2rem !important;
}

.btn-success {
    color: #fff;
    background-color: #109648;
    border-color: #109648;
    box-shadow: none;
    border-radius: 10px !important;
}

.btn-purple-is {
    color: #fff;
    background-color: #7851e2 !important;
    border-color: #7851e2;
    box-shadow: none;
    border-radius: 10px !important;
}

.btn-success-soft {
    color: #fff !important;
    background-color: #97d700 !important;
    border-color: #97d700;
    box-shadow: none;
    border-radius: 10px !important;
}

body:not(.layout-fixed) .main-sidebar {
    height: inherit;
    min-height: 95% !important;
    position: absolute;
    top: 0;
}

.page-loading {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-transition: all .4s .2s ease-in-out;
    transition: all .4s .2s ease-in-out;
    background-color: #fff;
    opacity: 0.75;
    visibility: hidden;
    z-index: 9999;
}

.page-loading.active {
    opacity: 1;
    visibility: visible;
}

.page-loading-inner {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    -webkit-transition: opacity .2s ease-in-out;
    transition: opacity .2s ease-in-out;
    opacity: 0.75;
}

.page-loading.active > .page-loading-inner {
    opacity: 1;
}

.page-loading-inner > span {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: normal;
    color: #737491;
}

.page-spinner {
    display: inline-block;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: .75rem;
    vertical-align: text-bottom;
    border: .15em solid #766df4;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: spinner .75s linear infinite;
    animation: spinner .75s linear infinite;
}

.dashboard-title {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: normal !important;
}

#spinner-is {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.btn-app {
    border-radius: 10px !important;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: #6c757d;
    font-size: 12px;
    height: 47px !important;
    margin: 0 0 5px 5px !important;
    min-width: 80px;
    padding: 6px 2px;
    position: relative;
    text-align: center;
}

.h1-login {
    color: #109648 !important;
    font-size: 27px !important;
    font-weight: 700 !important;
}

.card-1 {
    border-radius: 10px !important;
    box-shadow: 3px 0px 9px rgba(89, 142, 63, 0.23) !important;
    background-color: #fff !important; 
}

.bg-image-is {
    background-color: rgba(0, 0, 0, 0.5) !important;
    background-image: url('../img/fondo_2022_04.png');
    background-size: cover;
    background-repeat: no-repeat;
}

.form-control.param-3 {
    border: solid 1px #B0B1AA;
    /*border-radius: 10px !important;*/
}

.py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.mt-auto {
    margin-top: auto !important;
}

.step.active .step-number {
    background-color: #109648 !important;
}

.fixed-bottom {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1030;
}

.footer-iseguros {
    z-index: 999;
}

.bg-iseguros_footer {
    --bs-bg-opacity: 1;
    background-color: rgba(44, 44, 65, 1) !important;
}

.footer-ssrp {
    color: #ffffff;
    font-size: 11px;
    text-align: center;
    margin-bottom: 2px;
}

.footer-text {
    color: #B0B1AA;
    font-size: 10px;
    text-align: center;
    margin-bottom: 2px;
    /* margin-top: 12px; */
}

.display-none {
    display: none;
}

.display-block {
    display: block;
}

.password-strength {
    margin-top: 10px;
    height: 10px;
    width: 100%;
    background-color: #ddd;
    position: relative;
}

.text-small {
    font-size: 10px;
}

#strength-text {
    position: absolute;
    top: -25px;
    left: 0;
    font-size: 14px;
    color: #555;
}

.weak {
    width: 33%;
    background-color: red;
    height: 10px;
}

.medium {
    width: 66%;
    background-color: orange;
    height: 10px;
}

.strong {
    width: 100%;
    background-color: green;
    height: 10px;
}



@-webkit-keyframes spinner {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}


.modal-body {
    max-height: 90vh; 
    overflow-y: auto; 
}

.stepper {
    max-height:80vh; /* Ajusta según el tamaño deseado */
    overflow-y: auto; /* Añadir scroll si el contenido es muy alto */
    overflow-x: hidden; /* Evitar desbordamiento horizontal */
}

.stepper-content-container {
    max-height: 80vh; /* Ajusta según el tamaño deseado */
    overflow-y: auto; /* Añadir scroll si el contenido es muy alto */
    padding-right: 10px; /* Espacio para scrollbar */
}

.app-row {
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
}

.app-name {
    font-weight: 500;
}

.role-select:disabled {
    background-color: #e9ecef;
}


/* ── SUMMARY CARD ── */
.summary-card {
    background: #fff;
    border: 1px solid #ffc107;
    border-left: 4px solid #ffc107;
    border-radius: 10px;
    margin-bottom: 18px;
    overflow: visible;
}

.summary-card-header {
    background: #fffbf0;
    border-bottom: 1px solid #ffeeba;
    border-radius: 10px 10px 0 0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

    .summary-card-header .title {
        font-size: 13px;
        font-weight: 700;
        color: #856404;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .summary-card-header .chevron {
        color: #856404;
        transition: transform .2s;
    }

    .summary-card-header.collapsed .chevron {
        transform: rotate(-90deg);
    }

.summary-card-body {
    padding: 0;
}

/* ── FILA DE USUARIO COMPARTIDO ── */
.shared-user-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

    .shared-user-row:last-child {
        border-bottom: none;
    }

    .shared-user-row:hover {
        background: #fffdf5;
    }

.shared-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8edf5;
    color: #4a6fa5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.shared-user-info {
    flex: 1;
    min-width: 160px;
}

.shared-user-name {
    font-size: 12px;
    font-weight: 600;
    color: #2d3748;
}

.shared-user-email {
    font-size: 11px;
    color: #718096;
}

.agents-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.agents-label {
    font-size: 11px;
    color: #a0aec0;
    white-space: nowrap;
}

/* ── BADGE AGENTE ── */
.badge-shared {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, transform .1s;
    position: relative;
}

    .badge-shared:hover {
        background: #ffe69c;
        transform: translateY(-1px);
    }

    .badge-shared .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #ffc107;
    }

/* ── TOOLTIP CARD ── */
.agent-tooltip {
    display: none;
    position: absolute;
    z-index: 1080;
    width: 290px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.13);
    top: calc(100% + 8px);
    left: 0;
    animation: fadeIn .15s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.agent-tooltip::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 18px;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 7px solid #dee2e6;
}

.agent-tooltip::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 19px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
}

.tooltip-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 10px 10px 0 0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .tooltip-header .agent-icon {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: #4a6fa5;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }

    .tooltip-header .agent-code {
        font-size: 11px;
        color: #6c757d;
    }

    .tooltip-header .agent-name {
        font-size: 12px;
        font-weight: 700;
        color: #2d3748;
    }

.tooltip-body {
    padding: 12px 14px;
}

.tooltip-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 12px;
}

    .tooltip-row i {
        color: #4a6fa5;
        width: 14px;
        margin-top: 1px;
        flex-shrink: 0;
    }

    .tooltip-row .label {
        color: #a0aec0;
        font-size: 11px;
        display: block;
    }

.tooltip-footer {
    border-top: 1px solid #e9ecef;
    padding: 10px 14px;
    display: flex;
    justify-content: flex-end;
}

.btn-go-agent {
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 6px;
    background: #4a6fa5;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .btn-go-agent:hover {
        background: #3a5a8a;
        color: #fff;
    }

.tooltip-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
}

    .tooltip-close:hover {
        color: #333;
    }

/* ── APP BADGE ── */
.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f4fd;
    color: #1a6fa5;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 500;
    margin: 2px;
}

/* ── USER CARD (lista principal) ── */
.user-card {
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: box-shadow .2s;
}

    .user-card:hover {
        box-shadow: 0 4px 14px rgba(0,0,0,.08);
    }

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e8edf5;
    color: #4a6fa5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1px;
}

.user-email {
    font-size: 11px;
    color: #718096;
}

.user-meta {
    font-size: 11px;
    color: #a0aec0;
}

.rol-badge {
    background: #e9ecef;
    color: #495057;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 500;
}

.badge-wrap {
    position: relative;
    display: inline-block;
}