*,
html,
body {
    font-family: 'Gotham-Light', Fallback, sans-serif;
}

body {
    font-size: 12px !important;
    font-weight: 600;
    line-height: 18px !important;
}

:root {
    --primary-color: #967d2d;
    --secondary-color: #34a853;
    --text-color: #202124;
    --light-text-color: #5f6368;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --border-color: #dadce0;
}

.notes-section {
    margin: 3rem 0;
    font-family: 'Gotham-Light', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.notes-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.notes-header {
    background: #f8f9fa;
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.notes-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notes-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.notes-main-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3436;
    margin: 0;
}

.notes-subtitle {
    font-size: 0.9rem;
    color: #636e72;
    font-weight: 400;
}

.notes-body {
    padding: 2rem;
}

/* Estilos para las secciones */

.search-input:focus {
    border-color: #967D2D !important;
    box-shadow: 0 0 0 0.2rem rgb(150, 125, 45, .25) !important;
}

.formula-section,
.variables-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f2f5;
}

/* Lista de fórmulas */
.formula-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.formula-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.formula-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.formula-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.formula-number {
    background: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.formula-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3436;
    margin: 0;
}

.formula-content {
    padding-left: 3rem;
}

.formula-text {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.formula-showcase {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.formula-image {
    max-width: 90%;
    height: auto;
}

/* Grid de variables */
.variables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.variable-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.variable-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
    border-color: rgba(150, 125, 45, 0.15);
}

.variable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.8;
}

.variable-symbol {
    background: linear-gradient(145deg, var(--primary-color), #7d6824);
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(150, 125, 45, 0.3);
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.variable-definition {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.variable-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.8rem 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.variable-description {
    font-size: 0.9rem;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
}

.variable-formula {
    margin-top: 1.2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #eaeaea;
    position: relative;
}

.formula-image-small {
    max-width: 200px;
    height: auto;
}

.zoom-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.zoom-button:hover {
    transform: scale(1.1);
    background-color: #7d6824;
}

/* Estilos para el modal de zoom */
.formula-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.formula-modal-content {
    background-color: #fefefe;
    max-width: 80%;
    width: auto;
    padding: 30px 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    text-align: center;
    margin: 5% auto;
}

.formula-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.formula-modal-close:hover {
    color: var(--primary-color);
}

.formula-modal-image {
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto 0;
    padding-top: 1rem;
    display: block;
}

.formula-modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .formula-modal-content {
        max-width: 95%;
        margin: 10% auto;
    }
}

/* Grid de variables */
.variables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
}

.variable-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.variable-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
    border-color: rgba(150, 125, 45, 0.15);
}

.variable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.8;
}

.variable-symbol {
    background: linear-gradient(145deg, var(--primary-color), #7d6824);
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(150, 125, 45, 0.3);
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.variable-definition {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.variable-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 0.8rem 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.variable-description {
    font-size: 0.9rem;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
}

.variable-formula {
    margin-top: 1.2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.variable-card:hover .variable-formula {
    background: #f5f5f5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.formula-image-small {
    max-width: 100%;
    height: auto;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .notes-header {
        padding: 1.5rem;
    }

    .notes-main-title {
        font-size: 1.75rem;
    }

    .notes-body {
        padding: 1.5rem;
    }

    .variables-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .variable-card {
        padding: 1.5rem;
    }

    .variable-symbol {
        width: 48px;
        height: 48px;
        font-size: 1.6rem;
    }

    .formula-content {
        padding-left: 1rem;
    }
}

/* Print styles */
@media print {
    .notes-section {
        break-inside: avoid;
    }

    .notes-header {
        background: #f8f9fa !important;
        color: #2d3436 !important;
    }

    .variable-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .variable-card::before {
        display: none;
    }

    .variable-symbol {
        background: white !important;
        color: var(--primary-color) !important;
        border: 2px solid var(--primary-color);
        box-shadow: none;
    }

    .formula-number {
        border: 2px solid #2d3436;
        color: #2d3436 !important;
        background: white !important;
    }
}

.container-fluid {
    max-width: 1400px;
    padding: 2rem;
}

.card {
    border: none;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    border-radius: 8px;
    background-color: var(--card-background);
    transition: box-shadow 0.3s ease-in-out;
}

/*    .card:hover {
        box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    }*/

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-title {
    display: flex;
    align-items: center;
}

.card-header-buttons {
    display: flex;
    gap: 10px;
}


.form-control {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    padding: 0.625rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 2px rgba(150, 125, 45, 0.2);
    }


label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--light-text-color);
    margin-bottom: 0.5rem;
}

.btn {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}


.btn-secondary {
    color: #777 !important;
    background-color: #f8f8f8 !important;
    font-weight: 600 !important;
    border: 2px solid #777 !important;
    transition: 0.2s;
}

.btn-secondary:hover {
    color: #777 !important;
    border: 2px solid #777 !important;
    background-color: #fff !important;
    transition: 0.2s;
}

.btn-secondary.focus, .btn-secondary:focus {
    color: #777;
    background-color: #F8F8F8;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
    }

    .btn-secondary.disabled:hover,
    .btn-secondary[disabled]:hover,
    fieldset[disabled] .btn-secondary:hover,
    .btn-secondary.disabled:focus,
    .btn-secondary[disabled]:focus,
    fieldset[disabled] .btn-secondary:focus,
    .btn-secondary.disabled.focus,
    .btn-secondary[disabled].focus,
    fieldset[disabled] .btn-secondary.focus {
    opacity: 1 !important;
    color: #aaa !important;
    background-color: #f5f5f5 !important;
    font-weight: 600 !important;
    border: 2px solid #ddd !important;
    cursor: not-allowed;
    }


.table {
    width: 100%;
    table-layout: fixed;
}

.table thead,
.table tbody {
    display: table;
    width: 100%;
}

.table th,
.table td {
    text-align: center;
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

/* Definición única de anchos de columna */
.table th:nth-child(1), 
.table td:nth-child(1) { width: 8%; }  /* Flujo */

.table th:nth-child(2), 
.table td:nth-child(2) { width: 15%; } /* Fecha de vencimiento */

.table th:nth-child(3), 
.table td:nth-child(3) { width: 12%; } /* Días cupón */

.table th:nth-child(4), 
.table td:nth-child(4) { width: 15%; } /* Días acumulados */

.table th:nth-child(5), 
.table td:nth-child(5) { width: 20%; } /* Monto cupón */

.table th:nth-child(6), 
.table td:nth-child(6) { width: 20%; } /* Valor presente */

.table th:nth-child(7), 
.table td:nth-child(7) { width: 10%; } /* Estado */

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f2f5;
}

    .table tbody tr:hover {
        /* background-color: rgba(52, 71, 103, 0.04);
    transform: translateY(-1px);*/
        cursor: pointer;
        box-shadow: 0 3px 5px rgba(0,0,0,0.02);
    }

.table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    color: #67748e;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: left;
}

.table tbody::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table tbody::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.table tbody::-webkit-scrollbar-thumb {
    background: #e9ecef;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.table tbody::-webkit-scrollbar-thumb:hover {
    background: #dee2e6;
}

.table th, .table td {
    text-align: center;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.table tbody tr:last-child {
    margin-bottom: 15px;
}

.table tbody.has-scroll tr {
    width: calc(100% - 6px);
}

.table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.table td.numeric {
    text-align: right;
    font-family: "SF Mono", "Monaco", "Inconsolata", "Fira Mono", "Droid Sans Mono", "Source Code Pro", monospace;
    letter-spacing: -0.2px;
}

.expired {
    color: #ea4335;
}

.pending {
    color: var(--secondary-color);
}

.table-responsive {
    max-height: 850px;
    overflow-y: auto;
    scrollbar-gutter: stable; /* Evita saltos de ancho por la barra de scroll */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
    margin-bottom: 20px;
}

.table thead {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 1;
}

.table tbody {
    display: table;
    width: 100%;
}

/* Mantener los anchos de columna existentes */
.table th:nth-child(1), 
.table td:nth-child(1) { width: 8%; }  /* Flujo */

.table th:nth-child(2), 
.table td:nth-child(2) { width: 15%; } /* Fecha de vencimiento */

.table th:nth-child(3), 
.table td:nth-child(3) { width: 12%; } /* Días cupón */

.table th:nth-child(4), 
.table td:nth-child(4) { width: 15%; } /* Días acumulados */

.table th:nth-child(5), 
.table td:nth-child(5) { width: 20%; } /* Monto cupón */

.table th:nth-child(6), 
.table td:nth-child(6) { width: 20%; } /* Valor presente */

.table th:nth-child(7), 
.table td:nth-child(7) { width: 10%; } /* Estado */

/* Estilos para el scrollbar */
.table-responsive::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #e9ecef;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #dee2e6;
}

.form-row {
    margin-bottom: 1rem;
}

.input-group-text {
    background-color: #f1f3f4;
    border-color: var(--border-color);
    color: var(--light-text-color);
}

.page-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.card-body {
    padding: 1.5rem;
}

.jumbotron {
    background-color: #F8F8F8;
    padding: 2rem 1rem!important;
}

.results-panel {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    transition: box-shadow 0.3s ease-in-out;
}

    /*.results-panel:hover {
        box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    }*/

.results-header {
    background-color: transparent;
    color: var(--primary-color);
    padding: 1.25rem 1.5rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
}

.results-body {
    padding: 1.5rem;
}

.info-group {
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.0rem;
}

    .info-item:last-child {
        border-bottom: none;
    }

.info-label {
    color: var(--light-text-color);
    font-weight: 500;
    font-size: 1.15rem;
}

.info-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.15rem;
}



.btn-primary {
    color: #333 !important;
    background-color: #F8F8F8 !important;
    border: 2px solid #967D2D !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: 0.2s !important;
}

    .btn-primary:focus,
    .btn-primary.focus {
        color: #333 !important;
        background-color: #F8F8F8 !important;
        border: 2px solid #967D2D !important;
    }

    .btn-primary:hover {
        color: #333 !important;
        background-color: #fff !important;
        border-color: #967D2D;
    }

    .btn-primary:active,
    .btn-primary.active,
    .open > .dropdown-toggle.btn-primary {
        color: #967D2D !important;
        background-color: #FFF;
        border-color: #967D2D;
    }

        .btn-primary:active:hover,
        .btn-primary.active:hover,
        .open > .dropdown-toggle.btn-primary:hover,
        .btn-primary:active:focus,
        .btn-primary.active:focus,
        .open > .dropdown-toggle.btn-primary:focus,
        .btn-primary:active.focus,
        .btn-primary.active.focus,
        .open > .dropdown-toggle.btn-primary.focus {
            color: #967D2D !important;
            background-color: #FFF !important;
            border-color: #967D2D;
            -webkit-box-shadow: inset 0px 0px 3px #ddd;
            -moz-box-shadow: inset 0px 0px 3px #ddd;
            box-shadow: inset 0px 0px 3px #ddd;
            outline: none;
            transition: 0.2s !important;
        }

    .btn-primary:active,
    .btn-primary.active,
    .open > .dropdown-toggle.btn-primary {
        background-image: none;
    }

    .btn-primary.disabled:hover,
    .btn-primary[disabled]:hover,
    fieldset[disabled] .btn-primary:hover,
    .btn-primary.disabled:focus,
    .btn-primary[disabled]:focus,
    fieldset[disabled] .btn-primary:focus,
    .btn-primary.disabled.focus,
    .btn-primary[disabled].focus,
    fieldset[disabled] .btn-primary.focus {
        color: #eeeeee !important;
        background-color: #eeeeee !important;
        border-color: #967D2D !important;
    }

    .btn-primary .badge {
        color: #967d2d;
        background-color: #ffffff;
    }

/*.btn-calcular {
   color: #333;
    background-color: #F8F8F8;
    border: 2px solid #967D2D;
    transition: 0.2s;
    cursor: pointer;
    text-transform: capitalize;
}

    .btn-calcular:hover {
        color: #967D2D !important;
        background-color: #F8F8F8 !important;
        border: 2px solid #967D2D !important;
        box-shadow: 2px 2px 8px #ddd !important;
        transition: 0.2s !important;
    }

    .btn-calcular:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show > .btn-primary.dropdown-toggle {
        color: #967D2D !important;
        background-color: #fff !important;
        border-color: #967D2D !important;
    }

    .btn-calcular.focus, .btn-calcular:focus {
        color: #967D2D !important;
        background-color: #fff !important;
        border-color: #967D2D !important;
    }*/

.result-value {
    background-color: #ffffff;
    border: 1px solid #ddd;
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

/*    .result-value:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 8px rgba(0,0,0,0.15);
    }*/

.result-label {
    font-size: 1rem;
    color: var(--light-text-color);
    text-align: center;
    margin-top: 0.5rem;
}

#instrumentSearchArea {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.instrument-search-header h5 {
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
}
.instrument-search-footer {
    text-align: right;
    margin-top: 10px;
}

.modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background-color);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-title {
    color: var(--primary-color);
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--background-color);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.table-hover tbody tr:hover {
    background-color: rgba(0,0,0,.075);
    cursor: pointer;
}

#selectInstrumentBtn {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.modal-dialog {
    max-width: 80%;
}

.modal .table {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .modal .table thead th {
        background-color: #f1f3f4;
        color: #202124;
        border-bottom: 2px solid #dee2e6;
    }

.modal .table-hover tbody tr:hover {
    background-color: rgba(150, 125, 45, 0.1);
}

.selected-instrument {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

    /*.selected-instrument:hover {
        box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    }*/

    .selected-instrument h5 {
        color: var(--primary-color);
        margin-bottom: 1rem;
        font-weight: 600;
        text-align: center;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--primary-color);
    }

.instrument-info {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.5rem;
}

.instrument-info-item {
    flex: 1;
    background-color: #ffffff;
    padding: 0.5rem;
    border-radius: 4px;
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-width: 0;
}

    /*.instrument-info-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }*/

    .instrument-info-item strong {
        display: block;
        color: var(--primary-color);
        margin-bottom: 0.25rem;
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

    .instrument-info-item span {
        font-size: 0.8rem;
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }

#toggleInstrumentInfo {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    margin-top: 1rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

    #toggleInstrumentInfo:hover {
/*        outline: 1px solid var(--primary-color);*/
    }

    #toggleInstrumentInfo i {
        color: black;
        transition: transform 0.3s ease;
    }

    #toggleInstrumentInfo.collapsed i {
        transform: rotate(180deg);
    }

#noInstrumentSelected, #instrumentCollapsed {
    text-align: center;
    padding: 2rem;
    color: var(--light-text-color);
    font-style: italic;
}

#instrumentCollapsed {
    cursor: pointer;
    transition: color 0.3s ease;
}

    #instrumentCollapsed:hover {
        color: var(--primary-color);
    }

.fade {
    transition: opacity 0.3s ease-in-out;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

.calculator-container {
    perspective: 2000px;
    position: relative;
    z-index: 1;
}

.calculator {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

    .calculator.flipped {
        transform: rotateY(180deg);
    }

.calculator-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: opacity 0.8s, transform 0.8s;
}

.calculator-front, .calculator-back {
    border-radius: 10px;
}

.calculator-back {
    transform: rotateY(180deg);
}

.calculator.flipping .calculator-face {
    pointer-events: none;
}

.mode-transition {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.4s ease;
}

    .mode-transition.show {
        opacity: 1;
    }

/* Estilos para el selector centralizado */
.selector-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.selector-label {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control{
    height: auto;
}

.heading-title{
    font-family: 'Gotham-Bold', sans-serif;
    color: #333;
}

#modeSelector {
    width: auto;
    min-width: 250px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 5px;
    border: 2px solid var(--primary-color);
    background-color: var(--card-background);
    color: var(--primary-color);
    height: auto;
    font-weight: 600;
    transition: all 0.3s ease;
}

    #modeSelector:hover, #modeSelector:focus {
        outline: none;
    }

    .form-control:focus, .btn:focus, #modeSelector:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(150, 125, 45, 0.4);
    }

.btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2)!important;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-track {
    background-color: var(--background-color);
}

.modal-header .close {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

    .modal-header .close:hover {
        opacity: 1;
    }

.is-invalid {
    border-color: #dc3545;
}

    .is-invalid:focus {
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    }

.form-group label i.fas {
    margin-left: 0.25rem;
    color: var(--light-text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

    .form-group label i.fas:hover {
        color: var(--primary-color);
    }

#cashFlowTableBody tr {
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #ddd;
}

    #cashFlowTableBody tr:hover {
        background-color: rgba(150, 125, 45, 0.1);
    }



.badge-danger {
    display: inline-block;
    min-width: 112px;
    padding: 3px 7px!important;
    font-size: 12px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
    background-color: #ee5253;
    border-radius: 10px;
    margin-top: 12%;
}

.badge-primary {
    display: inline-block;
    min-width: 112px;
    padding: 3px 7px!important;
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
    text-align: center;
    background-color: #00b894;
    border-radius: 10px;
    margin-top: 12%;
}

/* Estilos para el calculador de letras */
#letrasForm .form-control {
    transition: all 0.3s ease;
}

    #letrasForm .form-control:focus {
        transform: translateY(-2px);
    }

.info-item {
    transition: background-color 0.3s ease;
}



/* Animaciones adicionales */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInFromLeft 0.5s ease-out;
}

/* Mejoras de accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Estilo para el botón de ayuda contextual */
.help-icon {
    cursor: help;
    color: var(--light-text-color);
    transition: color 0.3s ease;
}

    .help-icon:hover {
        color: var(--primary-color);
    }

/* Estilos para tooltips personalizados */
.custom-tooltip {
    position: absolute;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

    .custom-tooltip.show {
        opacity: 1;
    }

/* Media queries */
@media (max-width: 768px) {
    .instrument-info {
        flex-wrap: wrap;
    }

    .instrument-info-item {
        flex-basis: calc(50% - 0.5rem);
    }
}

@media (max-width: 576px) {
    .instrument-info-item {
        flex-basis: 100%;
    }

    #modeSelector {
        width: 100%;
        max-width: 250px;
    }

    .modal-dialog {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .container-fluid {
        padding: 1rem;
    }

    .card-header {
        font-size: 1rem;
        padding: 1rem;
    }

    .btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .result-value {
        font-size: 1.5rem;
    }

    .result-label {
        font-size: 0.9rem;
    }
}

.toggle-container {
    display: flex;
    align-items: center;
}

.toggle-label-left,
.toggle-label-right {
    font-size: 16px;
    margin: 0 10px;
    font-weight: 600;
}

.hidden {
    display: none;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #967D2D;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #967D2D;
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

.dp-calculadores {
    font-size: 1rem;
    font-weight: 600;
}

.card{
    margin-bottom: 1.5rem;
}

#helpText{
    font-size: 1rem;
}

.btn.disabled, .btn:disabled {
    opacity: 1 !important;
    color: #aaa !important;
    background-color: #f5f5f5 !important;
    font-weight: 600 !important;
    border: 2px solid #ddd !important;
    cursor: not-allowed;
}


.btn-centered{
    margin: 0 auto;
}

#instrumentSearchContainer table th,
#instrumentSearchContainer table td {
  font-style: normal !important;
}

#instrumentTableBody td:nth-child(2),
#selectedIssuer {
    text-transform: uppercase;
}

#selectedIssuer, .result-issuer {
  text-transform: uppercase;
}

.table th {
    text-align: center !important;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    vertical-align: middle;
}

.table td {
    text-align: center !important;
    vertical-align: middle;
    padding: 1rem 1.25rem;
    color: #67748e;
    font-size: 0.875rem;
    line-height: 1.5;
}

.table td[colspan="5"],
.table th[scope="row"] {
    text-align: left !important;
}

/* Estilos para el botón de impresión */
.btn-print {
    border: 2px solid #2d3436;
    color: #2d3436;
    background-color: #fff;
    margin-top: 0px;
    width:220px;
    transition: 0.2s;
}

.btn-print:hover {
/*    box-shadow: 1px 1px 8px #ddd;*/
    border: 2px solid #2d3436;
    background-color: #F8F8F8;
    transition: 0.2s;
}

/* Estilos para la vista de impresión */
@media print {
    body * {
        visibility: hidden;
    }
    
    .print-section, .print-section * {
        visibility: visible;
    }
    
    .print-section {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    
    .no-print {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    .table {
        width: 100% !important;
        margin-bottom: 1rem;
        page-break-inside: auto;
    }
    
    .table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    
    .table td, .table th {
        padding: 0.5rem;
        border-color: #000 !important;
    }
    
    .badge-primary2, .badge-danger2 {
        border: 1px solid #000;
        color: #000 !important;
        background-color: transparent !important;
    }
    
    .result-value {
        border: 1px solid #000;
        margin: 1rem 0;
    }
    
    .result-label {
        color: #000 !important;
        font-weight: 600;
    }

    .notes-section {
        display: none !important;
    }
    
    .result-item {
        break-inside: avoid;
    }
    
    table { break-inside: auto; }
    tr { break-inside: avoid; }
    thead { display: table-header-group; }
}

/* Estilos refinados para la sección de notas */
.notes-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.notes-content {
    padding: 1.5rem 2rem;
}

.notes-list {
    padding-left: 1.5rem;
    counter-reset: notes-counter;
}

.notes-list-item {
    margin-bottom: 1.8rem;
    counter-increment: notes-counter;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;
}

.notes-list-item::before {
    content: counter(notes-counter) ".";
    font-weight: 700;
    color: var(--primary-color);
    position: absolute;
    left: -1.5rem;
}

.formula-definition {
    font-size: 1.1rem;
    font-weight: 500;
    color: #2d3436;
    display: block;
    margin-bottom: 0.8rem;
}

.formula-container {
    margin-bottom: 1.5rem;
}

.formula-image-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.formula-image {
    max-width: 85%;
    height: auto;
}

.variables-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.variables-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 1rem;
}

.variables-list {
    list-style-type: none;
    padding-left: 0;
}

.variable-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #e9ecef;
}

.variable-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.variable {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.variable-description {
    font-size: 1.05rem;
    color: #2d3436;
    line-height: 1.5;
}

.formula-image-small-container {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    display: inline-block;
}

.formula-image-small {
    max-width: 200px;
    height: auto;
}

/* Asegura que las tablas dentro de notas mantengan su estilo adecuado */
.notes-section table {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

.notes-section table th,
.notes-section table td {
    padding: 0.9rem;
    text-align: left !important;
    border: 1px solid #dee2e6;
    vertical-align: middle;
    font-size: 1.05rem;
}

.notes-section table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.notes-section table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Estilos personalizados para el datepicker */
.datepicker {
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: none;
    font-family: 'Gotham-Light', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    background-color: #fff;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Encabezado del datepicker */
.datepicker-days .datepicker-switch, 
.datepicker-months .datepicker-switch, 
.datepicker-years .datepicker-switch,
.datepicker-decades .datepicker-switch,
.datepicker-centuries .datepicker-switch {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2d3436;
    padding: 10px;
    text-transform: capitalize;
}

/* Botones de navegación (anterior/siguiente) */
.datepicker .prev, 
.datepicker .next {
    color: #967d2d;
    border-radius: 50%;
    font-size: 18px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    transition: all 0.2s ease;
}

.datepicker .prev:hover, 
.datepicker .next:hover {
    background-color: #f8f9fa;
    color: #967d2d;
}

/* Días de la semana */
.datepicker thead tr:first-child th {
    padding: 10px 0;
    font-weight: 600;
    color: #5f6368;
    border-bottom: 1px solid #e9ecef;
}

.datepicker table tr td,
.datepicker table tr th {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    font-size: 0.9rem;
}

/* Día actual */
.datepicker table tr td.today {
    background-color: #e8f0fe !important;
    color: #1a73e8 !important;
    position: relative;
    font-weight: bold;
}

/* Día seleccionado */
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.disabled,
.datepicker table tr td.active.disabled:hover {
    background-color: #967d2d !important;
    background-image: none !important;
    color: white !important;
    text-shadow: none;
    font-weight: 600;
    
}

.datepicker table tr td.active.active, .datepicker table tr td.active.disabled.active, .datepicker table tr td.active.disabled:active, .datepicker table tr td.active.disabled:hover.active, .datepicker table tr td.active.disabled:hover:active, .datepicker table tr td.active:active, .datepicker table tr td.active:hover.active, .datepicker table tr td.active:hover:active {
    background-color: #967D2D !important;
    color: #fff !important;
}

.datepicker table tr td.today:hover:hover {
    color: #fff!important;
    background-color: #967D2D !important;
}

/* Hover sobre los días */
.datepicker table tr td:hover {
    background-color: #f8f9fa;
}

/* Estilos para los botones de hoy y borrar */
.datepicker .datepicker-days .today,
.datepicker tfoot tr th.today,
.datepicker tfoot tr th.clear {
    font-weight: 600;
    color: #fff;
}

/* Botones del footer */
.datepicker tfoot tr th {
    padding: 10px;
    border-top: 1px solid #e9ecef;
    font-weight: 600;
    color: #967d2d;
}

.datepicker tfoot tr th:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
}

/* Estilos para los estados disabled */
.datepicker table tr td.disabled,
.datepicker table tr td.disabled:hover {
    color: #ccc;
}

/* Transición suave para mostrar/ocultar */
.datepicker-dropdown {
    animation: datepickerFadeIn 0.3s ease-out;
}

.datepicker table tr td.today, .datepicker table tr td.today.disabled, .datepicker table tr td.today.disabled:hover, .datepicker table tr td.today:hover {
    background-color: #ddd !important;
    background-image: none !important;
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fdd49a', endColorstr='#fdf59a', GradientType=0);
    border-color: #fdf59a #fdf59a #fbed50;
    border-color: rgba(0, 0, 0, .1) rgba(0, 0, 0, .1) rgba(0, 0, 0, .25);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
    color: #333 !important;
}

@keyframes datepickerFadeIn {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mejora del input-group relacionado con el datepicker */
.input-group .input-group-text {
    border-color: #ced4da;
    background-color: #fff;
    color: #967d2d;
    transition: all 0.2s ease;
}

.input-group:hover .input-group-text,
.input-group:hover .form-control {
    border-color: #967d2d;
}

.input-group .form-control:focus + .input-group-append .input-group-text {
    border-color: #967d2d;
    box-shadow: 0 0 0 0.2rem rgba(150, 125, 45, 0.25);
}

/* Mejora visual cuando el datepicker está abierto */
.datepicker-dropdown.datepicker-orient-top:before {
    border-bottom: 7px solid #fff;
}

.datepicker-dropdown.datepicker-orient-bottom:before {
    border-top: 7px solid #fff;
}

/* Estilos para el panel de Flujo - optimización de espacio vertical y alineación horizontal */
.container > .row:first-child,
.container > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    margin-bottom: 10px;
}

/* Estilo para el título Flujo */
.container > .row:first-child h2,
.container > div:first-child h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Contenedor de botones */
.container > .row:first-child .btn-group,
.container > div:first-child .btn-group {
    display: flex;
    gap: 10px;
}

/* Responsive para móvil */
@media (max-width: 576px) {
    .container > .row:first-child,
    .container > div:first-child {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .container > .row:first-child .btn-group,
    .container > div:first-child .btn-group {
        width: 100%;
        justify-content: space-between;
    }
}

/* Estilos para el panel de Flujo */
.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-title {
    display: flex;
    align-items: center;
}

.notes-footer {
    margin-top: 2rem;
    border-top: 1px solid #f0f2f5;
    padding-top: 1rem;
}

.calculation-base-note {
    font-size: 0.85rem;
    font-style: italic;
    color: #666;
    text-align: center;
    padding: 0.5rem 1rem 1rem;
    margin-bottom: 0;
}

/* Estilo personalizado para botones deshabilitados */
.btn-disabled-custom {
    color: #aaa;
    background-color: #f5f5f5;
    font-weight: 600;
    border: 2px solid #ddd;
    width: 220px;
    cursor: default;
}

.btn-disabled-custom:hover, 
.btn-disabled-custom:focus, 
.btn-disabled-custom:active {
    color: #aaa!important;
    background-color: #f5f5f5!important;
    border: 2px solid #ddd!important;
    box-shadow: none!important;
    cursor: not-allowed;
}

/* Estilos para centralizar contenido en tablas de múltiples instrumentos */
#multipleInstrumentTableBodyResult td {
    text-align: center !important;
    vertical-align: middle;
    padding: 0.75rem;
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Estilo para valores numéricos manteniendo centrado pero con formato consistente */
#multipleInstrumentTableBodyResult td:nth-child(3),  /* Monto */
#multipleInstrumentTableBodyResult td:nth-child(4),  /* Rendimiento */
#multipleInstrumentTableBodyResult td:nth-child(5),  /* Precio limpio */
#multipleInstrumentTableBodyResult td:nth-child(6),  /* Precio sucio */
#multipleInstrumentTableBodyResult td:nth-child(7),  /* Valor presente */
#multipleInstrumentTableBodyResult td:nth-child(8),  /* Valor compra */
#multipleInstrumentTableBodyResult td:nth-child(9)   /* Cupón corrido */
{
    /* Mantener centrado y usar la misma fuente que Vencimiento y Código ISIN */
    text-align: center !important;
    min-width: 110px; /* Ancho mínimo para evitar columnas demasiado estrechas */
}

/* Estilos para encabezados de la tabla de múltiples instrumentos */
.table-responsive table thead th {
    text-align: center !important;
    white-space: nowrap;
    padding: 0.75rem;
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

/* Anchos de columna específicos para la tabla de múltiples instrumentos */
.multiple-instruments-table {
    table-layout: fixed;
    border-collapse: collapse;
}

/* Asegurar que thead/tbody no usen display: table ni width:100% de reglas genéricas */
.multiple-instruments-table thead {
    display: table-header-group;
    width: auto;
}

.multiple-instruments-table tbody {
    display: table-row-group;
    width: auto;
}

.multiple-instruments-table th,
.multiple-instruments-table td {
    text-align: center;
}

.multiple-instruments-table th:nth-child(1),
.multiple-instruments-table td:nth-child(1) { width: 12%; } /* Vencimiento */

.multiple-instruments-table th:nth-child(2),
.multiple-instruments-table td:nth-child(2) { width: 15%; } /* Código ISIN */

.multiple-instruments-table th:nth-child(3),
.multiple-instruments-table td:nth-child(3) { width: 12%; } /* Monto */

.multiple-instruments-table th:nth-child(4),
.multiple-instruments-table td:nth-child(4) { width: 10%; } /* Rendimiento */

.multiple-instruments-table th:nth-child(5),
.multiple-instruments-table td:nth-child(5) { width: 12%; } /* Precio limpio */

.multiple-instruments-table th:nth-child(6),
.multiple-instruments-table td:nth-child(6) { width: 12%; } /* Precio sucio */

.multiple-instruments-table th:nth-child(7),
.multiple-instruments-table td:nth-child(7) { width: 15%; } /* Valor presente */

.multiple-instruments-table th:nth-child(8),
.multiple-instruments-table td:nth-child(8) { width: 15%; } /* Valor compra */

.multiple-instruments-table th:nth-child(9),
.multiple-instruments-table td:nth-child(9) { width: 15%; } /* Cupón corrido */

.btn-tertiary{
    color: #333;
    background-color: #F8F8F8;
    border: 1px solid #D9D9D9;
    font-weight: 600;
    transition: 0.2s;
}

.btn-tertiary:hover {
    background-color: #ffffff;
}

.btn-exportar-excel {
    border: 2px solid #008000 !important;
    /*border: 2px solid #2d3436;*/
    color: #2d3436;
    background-color: #fff;
    margin-top: 0px;
    width: 220px;
    transition: 0.2s;
    font-weight: 600;
}

.btn-exportar-excel:hover {
/*    box-shadow: 1px 1px 8px #ddd;*/
    background-color: #F8F8F8;
    transition: 0.2s;
}

.datepicker .datepicker-switch, .datepicker .next, .datepicker .prev, .datepicker tfoot tr th {
    cursor: pointer;
    border-radius: 5px !important;
}

    .datepicker .datepicker-days .today, .datepicker tfoot tr th.today, .datepicker tfoot tr th.clear {
        font-weight: 600;
        color: #333;
    }