﻿.re-category-nav {
    margin-top: 24px;
    border: 1px solid #e1e9f0;
    background: #fff;
    color: #344657;
}

.re-category-nav + .re-list-actions {
    margin-top: 14px !important;
}

.re-category-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 6px 14px;
    border-bottom: 1px solid #edf1f5;
}

.re-category-path ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.re-category-path li {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.re-category-path a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 4px 0;
    color: #526577;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.re-category-path a:hover {
    color: var(--color-5-3);
    text-decoration: underline;
}

.re-category-path [aria-current="page"] {
    color: var(--color-5-3);
    font-weight: 700;
}

.re-category-separator {
    color: #8c9ba8;
    font-size: 18px;
}

.re-category-selection {
    padding: 4px 8px;
    background: var(--color-5-4);
    color: var(--color-5-3);
    font-size: 12px;
    font-weight: 700;
}

.re-category-path .re-category-crumb-more,
.re-category-all-short {
    display: none;
}

.re-category-shortcuts {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
}

.re-category-rail {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    padding: 3px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #b9d9ee transparent;
}

.re-category-shortcut {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #d8e6f1;
    background: #f7fafc;
    color: #28516d;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.re-category-shortcut:hover {
    border-color: var(--color-5-3);
    background: var(--color-5-4);
    color: var(--color-5-3);
}

.re-category-shortcut.is-selected {
    border-color: var(--color-5-3);
    background: var(--color-5-3);
    color: #fff;
}

.re-category-all,
.re-category-scroll {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #b9d9ee;
    background: #fff;
    color: var(--color-5-3);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.re-category-scroll {
    width: 34px;
    padding: 0;
    font-size: 24px;
}

.re-category-scroll[hidden] {
    display: none;
}

.re-category-all:hover,
.re-category-scroll:hover {
    background: var(--color-5-4);
}

.re-category-scroll:disabled {
    opacity: .4;
    cursor: default;
}

.re-category-nav :focus-visible,
.re-category-picker :focus-visible {
    outline: 2px solid var(--color-5-3);
    outline-offset: 2px;
}

.re-category-picker .modal-dialog {
    max-width: 680px;
}

.re-category-picker .modal-content {
    border: 1px solid #d8e6f1;
    box-shadow: 0 16px 50px rgb(17 49 73 / 18%);
}

.re-category-picker .modal-header {
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #e1e9f0;
}

.re-category-picker .modal-title {
    color: var(--color-5-3);
    font-size: 18px;
    font-weight: 700;
}

.re-category-dismiss {
    display: grid;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    place-items: center;
    border: 1px solid #d8e6f1;
    background: #fff;
    color: #40576a;
    font-size: 28px;
    line-height: 1;
}

.re-category-picker-intro {
    padding: 12px 18px;
    border-bottom: 1px solid #e1e9f0;
    background: #f7fafc;
}

.re-category-picker-intro p {
    margin: 0 0 6px;
    color: #526577;
    font-size: 13px;
}

.re-category-picker-path {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 6px;
}

.re-category-picker-path button {
    min-height: 40px;
    padding: 5px 2px;
    border: 0;
    background: transparent;
    color: var(--color-5-3);
    font-size: 13px;
    text-align: left;
    overflow-wrap: anywhere;
}

.re-category-picker-path button[aria-current] {
    color: #344657;
    font-weight: 700;
}

.re-category-picker .modal-body {
    padding: 14px 18px 18px;
    overscroll-behavior-y: contain;
}

.re-category-show-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 46px;
    padding: 10px 12px;
    background: var(--color-5-4);
    color: var(--color-5-3);
    font-weight: 700;
    text-decoration: none;
}

.re-category-show-all:hover {
    background: #dceeff;
}

.re-category-status {
    margin: 12px 0 0;
    color: #526577;
}

.re-category-status:empty {
    display: none;
}

.re-category-status button {
    min-height: 44px;
    margin-left: 8px;
    padding: 6px 12px;
    border: 1px solid #b9d9ee;
    background: #fff;
    color: var(--color-5-3);
}

.re-category-picker-list {
    margin-top: 12px;
    border-top: 1px solid #e1e9f0;
}

.re-category-picker-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #e1e9f0;
}

.re-category-picker-row > a {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 50px;
    padding: 12px;
    color: #344657;
    font-size: 14px;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.re-category-picker-row.is-selected > a {
    background: var(--color-5-4);
    color: var(--color-5-3);
    font-weight: 700;
}

.re-category-picker-row > button {
    flex: 0 0 50px;
    border: 0;
    border-left: 1px solid #e1e9f0;
    background: #f7fafc;
    color: var(--color-5-3);
    font-size: 24px;
}

.re-category-picker-row > a:hover,
.re-category-picker-row > button:hover {
    background: var(--color-5-4);
    color: var(--color-5-3);
}

@media (max-width: 767.98px) {
    .re-category-nav {
        margin-top: 16px;
    }

    .re-category-path {
        padding: 4px 10px;
    }

    .re-category-path .re-category-crumb-fold,
    .re-category-all-label,
    .re-category-scroll {
        display: none;
    }

    .re-category-path .re-category-crumb-more,
    .re-category-all-short {
        display: inline-flex;
    }

    .re-category-crumb-more button {
        width: 40px;
        min-height: 40px;
        padding: 0;
        border: 1px solid #d8e6f1;
        background: #fff;
        color: var(--color-5-3);
        font-size: 18px;
    }

    .re-category-shortcuts {
        gap: 6px;
        padding: 7px;
    }

    .re-category-shortcut {
        min-height: 44px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .re-category-all {
        gap: 6px;
        padding: 8px 10px;
    }

    .re-category-picker .modal-dialog {
        align-items: flex-end;
        width: 100%;
        max-width: none;
        height: 100%;
        height: 100dvh;
        min-height: 0;
        margin: 0;
    }

    .re-category-picker .modal-content {
        max-height: 85%;
    }

    .re-category-picker .modal-header,
    .re-category-picker-intro,
    .re-category-picker .modal-body {
        padding-right: 14px;
        padding-left: 14px;
    }

    .re-category-picker .modal-body {
        padding-bottom: max(18px, env(safe-area-inset-bottom));
    }
}
