﻿.facts-indices-history {
    padding: 20px;
}

.filters {
    margin: 10px auto;
    height: 40px;
}

.textFilters {
    font-style: italic;
    padding: 4px;
}

.inputSearch {
    width: 100%;
    height: 30px;
    box-sizing: border-box;
    border: 1px solid #8b8d98;
    border-radius: 5px;
    padding: 0px 5px
}

.phone {
    width: 100%;
    border: 1px solid #999;
    border-radius: 7px;
}

.selectContainer {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.selectCheckbox {
    margin-top: 8px;
}

.checkbox-label, .radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-left: 10px;
    line-height: 1.5;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 24px;
}

    .radio-group label {
        white-space: nowrap;
    }

.level0-header {
    background-color: #48677c;
    color: #fff;
    padding: 5px 16px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    border-radius: 4px;
}

.level2-header {
    background-color: #e9e9e9;
    color: #000;
    padding: 5px 16px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    border-radius: 4px;
}

.level3-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.level3-row {
    display: flex;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

    .level3-row:last-child {
        border-bottom: none;
    }

    .level3-row.hidden-row {
        display: none;
    }

.level3-cell-left {
    flex: 0 0 120px;
    padding: 5px 12px;
    font-weight: 500;
    border-right: 1px solid #ddd;
}

.level3-cell-checkbox {
    flex: 0 0 40px;
    padding: 5px 12px;
    background-color: #fff;
    border-right: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .level3-cell-checkbox input[type="checkbox"] {
        cursor: pointer;
        width: 16px;
        height: 16px;
        accent-color: #ff0508;
    }

.level3-cell-right {
    flex: 1;
    padding: 5px 12px;
    background-color: #fff;
}

.level3-row:hover .level3-cell-left,
.level3-row:hover .level3-cell-checkbox,
.level3-row:hover .level3-cell-right {
    background-color: #f9f9f9;
}

.show-hide-button {
    padding: 5px 16px;
    text-align: left;
    background-color: #f9f9f9;
    color: #336699;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s ease;
    border-top: 1px solid #ddd;
}

    .show-hide-button:hover {
        background-color: #e0e0e0;
    }

.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
}

.level3-button {
    display: inline-flex;
    align-items: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #fff;
    border: none;
}

    .level3-button:hover {
        background-color: #f5f5f5;
    }

    .level3-button.hidden-row {
        display: none;
    }

.button-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #aaa;
    border-radius: 5px;
    white-space: nowrap;
}

.selected-button > div.button-content {
    background-color: #d8d9e0;
    border-color: #999;
}

.button-secid {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.button-name {
    font-size: 13px;
    color: #666;
}

.datepickers-container {
    width: 100%;
    margin: 10px 0;
    padding: 0 0 20px 0;
}

.text-right {
    text-align: right;
    margin-top: 30px;
}

.selected-securities-section {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #999;
    border-radius: 7px;
    background-color: #f9f9f9;
}

.selected-securities-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
}

.selected-securities-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-security-button {
    padding: 6px 12px;
    background-color: #ff0508;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

    .selected-security-button:hover {
        background-color: #f00000;
    }

    .selected-security-button:active {
        transform: translateY(0);
        box-shadow: none;
    }

.download-section {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #999;
    border-radius: 7px;
    background-color: #f9f9f9;
}

.download-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 23px;
    justify-content: center;
}

.download-format-select {
    padding: 8px 12px;
    border: 1px solid #8b8d98;
    border-radius: 5px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
    min-width: 90px;
}

    .download-format-select:focus {
        outline: none;
    }

.download-button {
    padding: 8px 20px;
    background-color: #ff0508;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .download-button:hover {
        background-color: #f00000;
    }

    .download-button:active {
        transform: translateY(0);
        box-shadow: none;
    }

@media screen and (max-width: 1248px) {
    .datepickers-container, .ground-container {
        width: 100%;
    }
}

@media (max-width: 991px) {
    .datepickers-container {
        margin-top: 10px;
    }

    .text-right {
        text-align: left;
        margin-top: 0px;
    }

    .calendar {
        margin: -17px auto 12px;
    }

    .download-controls {
        justify-content: left;
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background-color: #fff;
    border-radius: 24px;
    max-width: 350px;
    width: 90vw;
    max-height: 50vh;
    height: 145px;
}

.modal-content-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 0px solid #fff;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

    .modal-close:hover {
        color: #333;
    }

.modal-content-body p {
    // margin: 0;
    color: #1e1f24;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
}

.text-red {
    color: #ff0508;
}
