﻿.search-result-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.search-result-date,
.search-result-type {
    color: #60656d;
    font-size: 0.875rem;
}

.content-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    white-space: nowrap;
}

.content-type-report {
    color: #8f1d1d;
    background-color: #f8d7d7;
    border-color: #d84a4a;
}

.content-type-conclusion {
    color: #54208a;
    background-color: #e8dcf5;
    border-color: #8b5fc0;
}

.content-type-decision {
    color: #8a3b0a;
    background-color: #f9dfc5;
    border-color: #df7a2d;
}

.content-type-recommendation {
    color: #185c37;
    background-color: #d5eddf;
    border-color: #42a36b;
}

.content-type-summary {
    color: #155a65;
    background-color: #d2edf0;
    border-color: #3c9ca8;
}

.content-type-review {
    color: #343c88;
    background-color: #dce0f4;
    border-color: #6470bd;
}

.content-type-presentation {
    color: #81235f;
    background-color: #f2d8e8;
    border-color: #bb5b91;
}

.content-type-news {
    color: #174f8c;
    background-color: #d9e8f7;
    border-color: #4b8dcc;
}

.content-type-page {
    color: #145c54;
    background-color: #d7ece9;
    border-color: #45978e;
}

.content-type-other {
    color: #4b5563;
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.search-filter-panel {
    margin-top: 32px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f7f8fa;
    border: 1px solid #e1e5ea;
    border-radius: 0;
}

.search-main-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.search-filter-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(180px, 1.2fr) minmax(150px, 0.8fr) minmax(150px, 0.8fr);
    gap: 16px;
    margin-top: 18px;
}

.search-filter-field {
    min-width: 0;
}

.search-filter-label {
    display: block;
    margin-bottom: 6px;
    color: #202938;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.search-filter-control {
    box-sizing: border-box;
    width: 100%;
    height: 42px;
    padding: 0 12px;
    color: #172033;
    background-color: #ffffff;
    border: 1px solid #b8c0ca;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}


.search-filter-control:hover {
    border-color: #8995a3;
}

.search-filter-control:focus {
    outline: none;
    border-color: #003b70;
    box-shadow: 0 0 0 2px rgba(0, 59, 112, 0.12);
}

select.search-filter-control {
    cursor: pointer;
}

.search-submit-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 165px;
    padding: 10px 47px;
    border: none;
    border-radius: 2px;
    background-color: #00234c;
    background-image: linear-gradient( to left, #00234c, #003e87 );
    box-shadow: 0 2px 14px 0 rgba(0, 0, 0, 0.10);
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.15s ease-in-out, box-shadow 0.15s ease-in-out, transform 0.1s ease-in-out;
}

.search-submit-button:hover {
    filter: brightness(1.08);
    box-shadow: 0 3px 16px 0 rgba(0, 0, 0, 0.16);
}

.search-submit-button:focus {
        outline: none;
}

.search-submit-button:focus-visible {
        outline: 2px solid #005eb8;
        outline-offset: 3px;
}

.search-submit-button:active {
        transform: translateY(1px);
}

.search-submit-button__text {
    display: inline-block;
    line-height: 1.5;
}

.search-submit-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #ffffff;
}

.search-submit-button__icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

.search-submit-button__loader {
    display: none;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid rgba(255, 255, 255, 0.40);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: search-submit-spin 0.65s linear infinite;
}

.search-submit-button.is-loading
.search-submit-button__icon {
    display: none;
}

.search-submit-button.is-loading
.search-submit-button__loader {
    display: inline-block;
}

.search-submit-button.is-loading {
    cursor: wait;
    pointer-events: none;
}

@keyframes search-submit-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.search-filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.clear-filters {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #56616e;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.clear-filters:hover {
    color: #003b70;
    text-decoration: underline;
}

.clear-filters-icon {
    font-size: 17px;
    line-height: 1;
}

.search-filter-error {
    margin-top: 10px;
    color: #9b1c1c;
    font-size: 13px;
    font-weight: 500;
}

@media (max-width: 900px) {

    .search-filter-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {

    .search-filter-panel {
        padding: 16px;
    }


    .search-main-row {
        grid-template-columns: 1fr;
    }


    .search-submit-button {
        width: 100%;
    }


    .search-filter-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }


    .search-filter-actions {
        justify-content: flex-start;
    }
}

.search-filters-toggle {
    display: none;
}

.search-filter-collapse {
    display: block;
}

@media (max-width: 900px) {

    .search-filters-toggle {
        display: flex;
        width: 100%;
        margin-top: 16px;
        padding: 10px 12px;
        align-items: center;
        justify-content: space-between;
        border: 1px solid #b8c0ca;
        border-radius: 3px;
        background-color: #ffffff;
        color: #172033;
        font-family: inherit;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
    }

    .search-filters-toggle:hover {
        border-color: #8995a3;
        background-color: #f5f6f8;
        }

    .search-filters-chevron {
        width: 8px;
        height: 8px;
        margin-right: 3px;
        border-right: 2px solid #56616e;
        border-bottom: 2px solid #56616e;
        transform: rotate(45deg);
        transition: transform 0.2s ease;
    }

    .search-filters-toggle[aria-expanded="true"]
    .search-filters-chevron {
        transform: rotate(225deg);
    }

    .search-filter-collapse {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.2s ease;
    }

    .search-filter-collapse__inner {
        min-height: 0;
        overflow: hidden;
    }

    .search-filter-collapse.is-open {
        grid-template-rows: 1fr;
    }

    .search-filter-row {
        margin-top: 16px;
    }
}
