.fcp-calendar .fcp-calendar-filters {
    --fcp-border: #d7def3;
    --fcp-blue: #3983ff;
    font-family: FcpRavi, Tahoma, sans-serif;
    font-size: 13px;
    color: #81818c;
    line-height: 1.8;
    margin: 0 14px 28px;
}

.fcp-calendar .fcp-calendar-filters *, .fcp-calendar .fcp-calendar-filters *::before, .fcp-calendar .fcp-calendar-filters *::after {
    box-sizing: border-box;
}

.fcp-calendar .fcp-calendar-filters button, .fcp-calendar .fcp-calendar-filters input {
    font: inherit;
    box-shadow: none;
    letter-spacing: normal;
}

.fcp-calendar .fcp-calendar-filters button {
    cursor: pointer;
    text-transform: none;
}

.fcp-calendar .fcp-calendar-filters button:focus-visible, .fcp-calendar .fcp-calendar-filters summary:focus-visible {
    outline: 2px solid var(--fcp-blue);
    outline-offset: 3px;
}

.fcp-calendar .fcp-filter-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--fcp-border);
    margin-bottom: 28px;
}

.fcp-calendar .fcp-filter-tabs {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.fcp-calendar .fcp-filter-tab {
    padding: 0 5px 15px;
    margin: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #777784;
    white-space: nowrap;
    font-size: 16px;
}

.fcp-calendar .fcp-filter-tab.is-active {
    color: var(--fcp-blue);
    border-bottom-color: var(--fcp-blue);
}

.fcp-calendar .fcp-filter-date {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 15px;
    border: 0;
    background: transparent;
    color: #777784;
    white-space: nowrap;
}

.fcp-calendar .fcp-filter-date > span:first-child {
    font-size: 19px;
    line-height: 1;
}

.fcp-calendar .fcp-filter-chevron {
    display: inline-block;
    width: 6px;
    height: 6px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
    flex: 0 0 6px;
    margin: 0 3px;
}

.fcp-calendar .fcp-filter-panel {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--fcp-border);
    background: #f6f6ff;
    border-radius: 0;
}

.fcp-calendar .fcp-filter-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.fcp-calendar .fcp-filter-panel__head strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #080808;
}

.fcp-calendar .fcp-filter-panel__head svg {
    color: #075397;
}

.fcp-calendar .fcp-filter-reset {
    border: 0;
    background: transparent;
    color: #7f8395;
    padding: 0;
}

.fcp-calendar .fcp-filter-reset span {
    margin-left: 5px;
}

.fcp-calendar .fcp-filter-fields {
    display: grid;
    grid-template-columns: 1.05fr 1.3fr 1fr 1.9fr;
    align-items: end;
    gap: 12px;
}

.fcp-calendar .fcp-filter-field {
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
}

.fcp-calendar .fcp-filter-field > label, .fcp-calendar .fcp-filter-field > legend {
    display: block;
    float: none;
    width: 100%;
    font-size: 12px;
    color: #85858c;
    margin: 0 0 8px;
    padding: 0;
}

.fcp-calendar .fcp-filter-search {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--fcp-border);
    background: transparent;
    gap: 8px;
}

.fcp-calendar .fcp-filter-search svg {
    flex: 0 0 18px;
    color: #717a94;
}

.fcp-calendar .fcp-filter-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    margin: 0;
    height: auto;
    color: #8b8b95;
    border: 0;
    outline: 0;
    background: transparent;
}

.fcp-calendar .fcp-filter-search input::placeholder {
    color: #a0a0a9;
    opacity: 1;
}

.fcp-calendar .fcp-filter-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--fcp-border);
    background: transparent;
    border-radius: 0;
    color: #85858c;
}

.fcp-calendar .fcp-filter-currencies {
    position: relative;
    margin: 0;
}

.fcp-calendar .fcp-filter-currencies summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 12px;
    color: var(--fcp-blue);
    border: 1px solid #829fd8;
    cursor: pointer;
}

.fcp-calendar .fcp-filter-currencies summary::-webkit-details-marker {
    display: none;
}

.fcp-calendar .fcp-filter-currency-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 12px;
}

.fcp-calendar .fcp-filter-currency-summary b {
    color: var(--fcp-blue);
    font-family: Arial, sans-serif;
    font-weight: 400;
    padding: 1px 4px;
    background: #e0e8ff;
}

.fcp-calendar .fcp-filter-currency-count {
    color: #85858c;
}

.fcp-calendar .fcp-filter-currency-options {
    position: absolute;
    z-index: 10;
    right: 0;
    top: calc(100% + 5px);
    width: 100%;
    min-width: 220px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    border: 1px solid var(--fcp-border);
    background: #fff;
    box-shadow: 0 6px 20px #1b3c6814;
}

.fcp-calendar .fcp-filter-currencies:not([open]) .fcp-filter-currency-options {
    display: none;
}

.fcp-calendar .fcp-filter-currency-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: Arial, sans-serif;
    cursor: pointer;
}

.fcp-calendar .fcp-filter-currency-options input {
    margin: 0;
    width: 15px;
    height: 15px;
    accent-color: var(--fcp-blue);
}

.fcp-calendar .fcp-filter-currency-actions {
    display: flex;
    justify-content: space-between;
    grid-column: 1 / -1;
}

.fcp-calendar .fcp-filter-currency-actions button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--fcp-blue);
    font-size: 12px;
}

.fcp-calendar .fcp-filter-impacts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    border: 1px solid var(--fcp-border);
    padding: 4px;
    height: 44px;
}

.fcp-calendar .fcp-filter-impact {
    position: relative;
    margin: 0;
    cursor: pointer;
    min-width: 0;
}

.fcp-calendar .fcp-filter-impact input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.fcp-calendar .fcp-filter-impact__content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    height: 100%;
    border: 1px solid transparent;
    white-space: nowrap;
}

.fcp-calendar .fcp-filter-impact input:checked + span {
    border-color: #849bd8;
    color: #41414c;
    font-weight: 700;
}

.fcp-calendar .fcp-filter-impact input:focus-visible + span {
    outline: 2px solid var(--fcp-blue);
}

.fcp-calendar .fcp-filter-dots {
    display: flex;
    gap: 3px;
    direction: rtl;
}

.fcp-calendar .fcp-filter-dots i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #a5a5bb;
}

.fcp-calendar .fcp-filter-dots--high i {
    background: #ff223d;
}

.fcp-calendar .fcp-filter-dots--medium i {
    background: #f5732d;
}

.fcp-calendar .fcp-filter-dots--medium i:last-child {
    background: #f5d7c9;
}

.fcp-calendar .fcp-filter-dots--low i {
    background: #FFEB3B;
}

.fcp-calendar .fcp-filter-dots--low i:not(:first-child) {
    background: #ffeb3b4a;
}

.fcp-calendar .fcp-filter-panel__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--fcp-border);
    margin-top: 18px;
    padding-top: 18px;
}

.fcp-calendar .fcp-filter-active {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.fcp-calendar .fcp-filter-active > span {
    white-space: nowrap;
}

.fcp-calendar .fcp-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fcp-calendar .fcp-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 9px;
    border: 1px solid #bcd2ff;
    border-radius: 2px;
    background: #e7ecff;
    color: var(--fcp-blue);
    font-size: 12px;
    white-space: nowrap;
}

.fcp-calendar .fcp-filter-result {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
}

.fcp-calendar .fcp-filter-result svg {
    flex: 0 0 16px;
    color: #00b779;
}

.fcp-calendar .fcp-filter-error {
    font-size: 12px;
    color: #c1293c;
    margin: 12px 0 0 !important;
}

.fcp-calendar .fcp-filter-error[hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .fcp-calendar .fcp-filter-fields {
        grid-template-columns: 1fr 1fr;
    }

    .fcp-calendar .fcp-filter-panel__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .fcp-calendar .fcp-filter-result {
        align-self: flex-end;
    }
}

@media (max-width: 600px) {
    .fcp-calendar .fcp-calendar-filters {
        margin: 0 0 20px;
    }

    .fcp-calendar .fcp-filter-navigation {
        display: block;
        border: 0;
        margin-bottom: 20px;
    }

    .fcp-calendar .fcp-filter-tabs {
        gap: 10px;
        border-bottom: 1px solid var(--fcp-border);
        margin-bottom: 10px;
    }

    .fcp-calendar .fcp-filter-tab {
        font-size: 13px;
        padding: 0 2px 10px;
    }

    .fcp-calendar .fcp-filter-date {
        width: 100%;
        height: 44px;
        background: #fff;
        padding: 0 16px;
        border: 1px solid var(--fcp-border);
        color: #40404d;
    }

    .fcp-calendar .fcp-filter-date > span:first-child {
        color: #075397;
    }

    .fcp-calendar .fcp-filter-date .fcp-filter-chevron {
        margin-right: auto;
    }

    .fcp-calendar .fcp-filter-panel {
        padding: 16px 14px;
    }

    .fcp-calendar .fcp-filter-panel__head {
        margin-bottom: 20px;
    }

    .fcp-calendar .fcp-filter-fields {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .fcp-calendar .fcp-filter-field--impact {
        order: 0;
    }

    .fcp-calendar .fcp-filter-field--category {
        order: 1;
    }

    .fcp-calendar .fcp-filter-field--currency {
        order: 2;
    }

    .fcp-calendar .fcp-filter-field--search {
        order: 3;
    }

    .fcp-calendar .fcp-filter-impacts {
        height: auto;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }

    .fcp-calendar .fcp-filter-impact__content {
        min-height: 39px;
    }

    .fcp-calendar .fcp-filter-impact input:checked + span {
        background: #fff;
        border-color: var(--fcp-border);
    }

    .fcp-calendar .fcp-filter-impact:nth-child(3) {
        order: 4;
    }

    .fcp-calendar .fcp-filter-impact:nth-child(4) {
        order: 3;
    }

    .fcp-calendar .fcp-filter-currencies summary {
        background: #fff;
        border-color: #bcd2ff;
    }

    .fcp-calendar .fcp-filter-search {
        flex-direction: row-reverse;
        background: #ffffff80;
    }

    .fcp-calendar .fcp-filter-active {
        align-items: flex-start;
    }

    .fcp-calendar .fcp-filter-chips {
        gap: 6px;
    }

    .fcp-calendar .fcp-filter-chip {
        padding: 4px 7px;
        border-color: transparent;
    }

    .fcp-calendar .fcp-filter-panel__footer {
        gap: 14px;
    }
}
