/* ============================================================
   SUBHEADER COMPONENT STYLES
   Matches: breadcrumb + title left | date/currency/channel right
   ============================================================ */

/* Montserrat font import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Wrapper */
.subheader-wrapper {
    background-color: #fff;

}

/* subheder */
.fas .fa-chevron-left {
    margin-top: 5px;
}

/* ── Page Subtitle / Title ── */
.subheader-title {
    margin: 0px;
    font-size: 1.375rem;
    line-height: 1.75rem;
    font-weight: 600;
    font-family: 'Montserrat';
    color: #232659;
}

/* ── Breadcrumb ── */
.subheader-wrapper .breadcrumb {
    margin: 0px;
    font-size: 0.75rem;
    font-weight: 400;
    font-family: Montserrat, sans-serif;
    line-height: 1.75;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgb(112, 112, 112);
    margin-bottom: 2px;
}

.subheader-wrapper .breadcrumb-item,
.subheader-wrapper .breadcrumb-item a {
    margin: 0px;
    font-size: 0.75rem;
    font-weight: 400;
    font-family: 'Montserrat';
    line-height: 1.75;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #232659;
    text-decoration: none;
}

.subheader-wrapper .breadcrumb-item a:hover {
    text-decoration: underline;
    color: rgb(112, 112, 112);
}

.subheader-wrapper .breadcrumb-item.active {
    color: rgb(112, 112, 112);
}

.subheader-wrapper .breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    color: rgb(112, 112, 112);
}

/* ── Control group (label + control stacked) ── */
.subheader-control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── Label above each control ── */
.control-label {
    margin: 0px;
    font-size: 0.75rem;
    font-weight: 400;
    font-family: 'Montserrat';
    line-height: 21px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #707070;
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-icon {
    font-style: normal;
    color: #232659;
    font-size: 19.2px;
    cursor: help;
    font-weight: 500;
}

/* ── Base button style: date range, currency, channel ── */
.btn-subheader {
    margin: 0px;
    padding: 0.25rem 0.5rem;
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(229, 228, 226);
    border-radius: 9.24px;
    font-size: 0.75rem;
    font-weight: 400;
    font-family: Montserrat, sans-serif;
    line-height: 1.75;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgb(112, 112, 112);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-subheader:hover {
    background-color: rgb(255, 255, 255) !important;
    color: rgb(112, 112, 112) !important;
    border-color: rgb(200, 199, 197) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07) !important;
}

.btn-subheader:focus,
.btn-subheader:active {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(229, 228, 226, 0.5) !important;
    border-color: rgb(229, 228, 226) !important;
    background-color: rgb(255, 255, 255) !important;
    color: rgb(112, 112, 112) !important;
}

/* ── Icon-only refresh button ── */
.btn-subheader-icon {
    padding: 0.25rem 0.5rem;
    background-color: rgb(255, 255, 255);
    border: 1px solid rgb(229, 228, 226);
    border-radius: 9.24px;
    color: rgb(112, 112, 112);
    font-size: 0.75rem;
    line-height: 1.75;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-subheader-icon:hover {
    background-color: rgb(255, 255, 255) !important;
    border-color: rgb(200, 199, 197) !important;
    color: rgb(80, 80, 80) !important;
}

.btn-subheader-icon:focus,
.btn-subheader-icon:active {
    outline: none !important;
    box-shadow: none !important;
    border-color: rgb(229, 228, 226) !important;
}

/* ── Divider inside date range button ── */
#headerdaterange .vr {
    height: 14px;
    width: 1px;
    background-color: rgb(229, 228, 226);
    opacity: 1;
    margin: 0;
}

/* ── Flag images ── */
.flag-img {
    border-radius: 2px;
    object-fit: cover;
}

/* ── Currency dropdown toggle ── */
#currencyDropdown {
    background-color: rgb(255, 255, 255) !important;
}

/* ── Channel button ── */
.channelbutton {
    background-color: rgb(255, 255, 255) !important;
}

/* ── Dropdown menus ── */
.currency-dropdown-menu,
.channel-dropdown-menu {
    border: 1px solid rgb(229, 228, 226);
    border-radius: 9.24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.09);
    padding: 4px 0;
}

.currency-dropdown-menu .dropdown-item,
.channel-dropdown-menu .dropdown-item {
    margin: 0px;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 400;
    font-family: Montserrat, sans-serif;
    line-height: 1.75;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgb(112, 112, 112);
    transition: background-color 0.1s ease;
}

.currency-dropdown-menu .dropdown-item:hover,
.channel-dropdown-menu .dropdown-item:hover {
    background-color: #f5f5f5;
    color: rgb(80, 80, 80);
}

.currency-dropdown-menu .dropdown-item.active,
.channel-dropdown-menu .dropdown-item.active {
    background-color: #eff6ff;
    color: #1d4ed8;
    font-weight: 600;
}

/* ── Dropdown chevron ── */
.btn-subheader .fa-chevron-down {
    font-size: 0.6rem;
    opacity: 0.5;
}

/* ── Responsive stacking ── */
@media (max-width: 768px) {
    .subheader-inner {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .subheader-controls {
        width: 100%;
        flex-wrap: wrap;
    }
}

.brand-logo1 {
    width: 21px;
    height: 21px;
}

.card-header:first-child {
    border-radius: 12px 12px 0px 0px !important;
}