.document-v2-catalog {
    width: min(1400px, calc(100% - 32px));
    margin: 14px auto;
    color: #24344d;
}

.document-v2-catalog__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px;
    background: #eef2f7;
    border: 1px solid #c8d3e0;
    border-radius: 2px 2px 0 0;
}

.document-v2-catalog__header-copy {
    flex: 1 1 auto;
    min-width: 180px;
}

.document-v2-catalog__header-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
}

.document-v2-catalog__header-tools--root {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
}

.document-v2-catalog__header-tools--root > .document-v2-catalog__trash-link {
    justify-content: center;
}

.document-v2-catalog__trash-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-sizing: border-box;
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid #9fb4c8;
    border-radius: 2px;
    background: #fff;
    color: #315b7c;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.document-v2-catalog__trash-link:hover,
.document-v2-catalog__trash-link--active {
    background: #e1ebf2;
    text-decoration: none;
}

.document-v2-catalog__header h1 {
    margin: 0 0 3px;
    font-size: 20px;
}

.document-v2-catalog__header p {
    margin: 0;
    color: #586b84;
    font-size: 12px;
    line-height: 1.3;
}

.document-v2-catalog__breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 10px 12px;
    border: 1px solid #c8d3e0;
    border-top: 0;
    background: #fff;
    color: #6b7c91;
    font-size: 13px;
}

.document-v2-catalog__breadcrumbs a {
    color: #39698f;
    text-decoration: none;
}

.document-v2-catalog__breadcrumbs a:hover {
    text-decoration: underline;
}

.document-v2-catalog__folder-name {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.document-v2-catalog__folder-name a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #294e70;
    font-weight: 700;
    text-decoration: none;
}

.document-v2-catalog__folder-name > span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.document-v2-catalog__folder-name a:hover {
    text-decoration: underline;
}

.document-v2-catalog__note {
    margin: 9px 0 0;
    color: #65778d;
    font-size: 12px;
}

.document-v2-catalog .document-v2-catalog__global-search {
    position: static;
    flex: 0 1 auto;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-end;
    padding: 0;
    gap: 6px;
    font-size: var(--hn-basic-text-size);
}

.document-v2-catalog .document-v2-catalog__global-search .hypertextSearchLineLabel {
    flex: 0 0 auto;
    padding-right: 0;
}

.document-v2-catalog .document-v2-catalog__global-search .document-v2-catalog__search-mode,
.document-v2-catalog .document-v2-catalog__global-search .select2-container {
    flex: 0 0 170px;
    width: 170px !important;
    max-width: 100%;
    height: 34px;
}

.document-v2-catalog .document-v2-catalog__global-search .select2-selection {
    box-sizing: border-box;
    height: 34px;
    border-radius: 2px;
}

.document-v2-catalog .document-v2-catalog__global-search .select2-selection__rendered {
    line-height: 20px;
}

.document-v2-catalog .document-v2-catalog__global-search .select2-selection__arrow {
    height: 34px;
}

.document-v2-catalog .document-v2-catalog__global-search .hypertextSearchLineInput {
    flex: 0 1 280px;
    min-width: 0;
}

.document-v2-catalog .document-v2-catalog__global-search .hypertextSearchLineInput input {
    width: min(280px, 28vw);
    max-width: 100%;
    margin-right: 0;
    box-sizing: border-box;
    height: 34px;
    padding: 0 34px 0 10px;
    border-radius: 2px;
}

.document-v2-catalog .document-v2-catalog__global-search .hypertextSearchButton,
.document-v2-catalog__search-clear {
    border-radius: 2px;
}

.document-v2-catalog .document-v2-catalog__global-search .hypertextSearchButton {
    flex: 0 0 auto;
    width: 130px;
    max-width: 130px;
    height: 34px;
    padding: 0 14px !important;
    line-height: 32px;
}

.document-v2-catalog__search-clear {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    margin-left: 0;
    padding: 0 9px;
    border: 1px solid var(--hn-table-header-background-color);
    background: var(--hn-box-background-color);
    color: #315b7c;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
}

.document-v2-catalog__search-clear:hover {
    background: #e1ebf2;
    text-decoration: none;
}

.document-v2-catalog__muted {
    color: #788aa0;
    font-size: 12px;
}

.document-v2-catalog__table-wrap {
    overflow-x: auto;
    border: 1px solid #c8d3e0;
    border-top: 0;
    background: #fff;
}

.document-v2-catalog__table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
}

.document-v2-catalog__table th,
.document-v2-catalog__table td {
    padding: 5px 8px;
    border-bottom: 1px solid #dfe6ee;
    vertical-align: middle;
    text-align: left;
    line-height: 1.25;
}

.document-v2-catalog__table th {
    background: #f3f6fa;
    color: #52657c;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.document-v2-catalog__table td {
    font-size: 13px;
}

.document-v2-catalog__table tbody tr:hover {
    background: #f7faff;
}

.document-v2-catalog__table th:nth-child(1) { width: 31%; }
.document-v2-catalog__table th:nth-child(2) { width: 13%; }
.document-v2-catalog__table th:nth-child(3) { width: 15%; }
.document-v2-catalog__table th:nth-child(4) { width: 20%; }
.document-v2-catalog__table th:nth-child(5) { width: 21%; }

.document-v2-catalog__name {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.document-v2-catalog__image-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.document-v2-catalog__image-trigger:hover {
    color: #294e70;
    text-decoration: underline;
}

.document-v2-catalog__file-icon {
    display: block;
    width: 24px;
    height: 26px;
    flex: 0 0 auto;
    object-fit: contain;
}

.document-v2-catalog__file-icon--thumbnail {
    width: 48px;
    height: 48px;
}

.document-v2-catalog__name div,
.document-v2-catalog__contexts,
.document-v2-catalog__actions {
    min-width: 0;
}

.document-v2-catalog__name strong,
.document-v2-catalog__name small,
.document-v2-catalog__table td small,
.document-v2-catalog__version {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.document-v2-catalog__name small,
.document-v2-catalog__table td small {
    margin-top: 1px;
    color: #788aa0;
    font-size: 10px;
}

.document-v2-catalog__version {
    color: #456989;
    font-weight: 700;
}

.document-v2-catalog__contexts {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.document-v2-catalog__contexts a {
    white-space: normal;
    overflow-wrap: anywhere;
}

.document-v2-catalog__contexts a,
.document-v2-catalog__action {
    color: #39698f;
    text-decoration: none;
}

.document-v2-catalog__contexts a:hover,
.document-v2-catalog__action:hover {
    text-decoration: underline;
}

.document-v2-catalog__reference {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 4px;
    border: 1px solid #c6d5e4;
    border-radius: 2px;
    color: #6a7d93;
    font-size: 10px;
}

.document-v2-catalog__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2px;
}

.document-v2-catalog__action {
    padding: 3px 6px;
    border: 1px solid #9fb4c8;
    border-radius: 2px;
    background: #f7fafc;
    font-size: 11px;
}

.document-v2-catalog__action--danger {
    border-color: #d6a4a4;
    color: #8b2f2f;
}

.document-v2-catalog__action-menu {
    position: relative;
    width: 34px;
    margin-left: auto;
}

.document-v2-catalog__action-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 26px;
    padding: 0;
    border: 1px solid #9fb4c8;
    border-radius: 2px;
    background: #f7fafc;
    color: #315b7c;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 1px;
    list-style: none;
}

.document-v2-catalog__action-menu summary::-webkit-details-marker {
    display: none;
}

.document-v2-catalog__action-menu[open] summary {
    background: #e1ebf2;
}

.document-v2-catalog__action-menu-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 2px);
    right: 0;
    display: flex;
    width: 190px;
    padding: 4px;
    border: 1px solid #aebdcb;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(31, 48, 70, .18);
    flex-direction: column;
}

.document-v2-catalog__action-menu-panel a,
.document-v2-catalog__action-menu-panel button,
.document-v2-catalog__action-menu-panel span {
    width: 100%;
    padding: 6px 8px;
    border: 0;
    border-radius: 2px;
    background: transparent;
    color: #294e70;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    text-align: left;
    text-decoration: none;
}

.document-v2-catalog__action-menu-panel a:hover,
.document-v2-catalog__action-menu-panel button:hover {
    background: #eef3f8;
    text-decoration: none;
}

.document-v2-catalog__action-menu-panel .document-v2-catalog__menu-danger {
    color: #933b3b;
}

/* Samostatný katalog používá stejné boční odsazení a paletu jako běžné seznamy. */
.document-v2-catalog--standalone {
    width: calc(100% - 32px);
    color: #253246;
}

@media (max-width: 700px) {
    .document-v2-catalog--standalone {
        width: calc(100% - 24px);
    }
}

.document-v2-catalog--standalone .document-v2-catalog__header {
    padding: 0 0 14px;
    border: 0;
    background: transparent;
}

.document-v2-catalog--standalone .document-v2-catalog__header h1 {
    margin-bottom: 4px;
    color: #253246;
    font-size: 20px;
}

.document-v2-catalog--standalone .document-v2-catalog__header p {
    color: #566579;
    font-size: 13px;
}

.document-v2-catalog--standalone .document-v2-catalog__breadcrumbs {
    margin-bottom: 8px;
    padding: 11px 12px;
    border: 1px solid var(--table-accent-border);
    border-top: 3px solid var(--table-accent);
    border-radius: 2px;
    background: color-mix(in srgb, var(--table-accent) 16%, #fff);
    color: var(--table-accent-dark);
}

.document-v2-catalog--standalone .document-v2-catalog__breadcrumbs:has(> .document-v2-catalog__folder-actions) {
    padding-block: 2px;
}

.document-v2-catalog__folder-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-inline-start: auto;
}

.document-v2-catalog__folder-actions > .add-item-action-icon-wrapper {
    top: 0;
    padding: 0;
}

/* Ikona Nová složka je odkaz (otevírá okno), ne tlačítko: rozměry wrapperu musí platit i pro něj. */
.document-v2-catalog__folder-actions > a.add-item-action-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.document-v2-catalog--standalone .document-v2-catalog__breadcrumbs a,
.document-v2-catalog--standalone .document-v2-catalog__folder-name a,
.document-v2-catalog--standalone .document-v2-catalog__contexts a {
    color: var(--table-accent-dark);
}

.document-v2-catalog--standalone .document-v2-catalog__trash-link,
.document-v2-catalog--standalone .document-v2-catalog__search-clear,
.document-v2-catalog--standalone .document-v2-catalog__action,
.document-v2-catalog--standalone .document-v2-catalog__action-menu summary {
    border-color: var(--table-accent-border-strong);
    background: #fff;
    color: var(--table-accent-dark);
}

.document-v2-catalog--standalone .document-v2-catalog__trash-link:is(:hover, :focus-visible),
.document-v2-catalog--standalone .document-v2-catalog__trash-link--active,
.document-v2-catalog--standalone .document-v2-catalog__search-clear:is(:hover, :focus-visible),
.document-v2-catalog--standalone .document-v2-catalog__action:is(:hover, :focus-visible),
.document-v2-catalog--standalone .document-v2-catalog__action-menu summary:is(:hover, :focus-visible) {
    background: var(--table-accent-tint);
}

/* Tlačítko nabídky akcí se třemi tečkami jako ikona ve stylu ostatních ikon (menu-dots.svg); bez rámečku. */
.document-v2-catalog__action-menu > summary.document-v2-catalog__menu-trigger {
    width: 34px;
    height: 34px;
    border: 0;
    background: none;
    border-radius: 2px;
}

.document-v2-catalog__action-menu > summary.document-v2-catalog__menu-trigger:is(:hover, :focus-visible),
.document-v2-catalog__action-menu[open] > summary.document-v2-catalog__menu-trigger {
    background: var(--table-accent-tint, #e1ebf2);
}

.document-v2-catalog__menu-icon {
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.document-v2-catalog--standalone .document-v2-catalog__action--danger {
    border-color: #d6a4a4;
    color: #8b2f2f;
}

.document-v2-catalog--standalone .document-v2-catalog__version {
    color: var(--table-accent-dark);
}

.document-v2-catalog--standalone .document-v2-catalog__table-wrap {
    border: 1px solid var(--table-accent-border);
    border-radius: 2px;
}

.document-v2-catalog--standalone .document-v2-catalog__table th,
.document-v2-catalog--standalone .document-v2-catalog__table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--hn-table-row-border-color);
    line-height: 1.35;
}

.document-v2-catalog--standalone .document-v2-catalog__table th {
    border-top: 3px solid var(--table-accent);
    background: color-mix(in srgb, var(--table-accent) 16%, #fff);
    color: var(--hn-table-header-text-color);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.document-v2-catalog--standalone .document-v2-catalog__table tbody tr:nth-child(odd) {
    background: var(--hn-table-row-odd-background);
}

.document-v2-catalog--standalone .document-v2-catalog__table tbody tr:nth-child(even) {
    background: var(--hn-table-row-even-background);
}

.document-v2-catalog--standalone .document-v2-catalog__table tbody tr:has(a[data-document-row-link]) {
    cursor: pointer;
}

.document-v2-catalog--standalone .document-v2-catalog__table tbody tr:hover {
    background: var(--hn-table-row-hover-background);
}

.document-v2-catalog--standalone .document-v2-catalog__table tbody tr:last-child td {
    border-bottom: 0;
}

.document-v2-catalog--standalone .document-v2-catalog__table--folders th:first-child { width: 48%; }
.document-v2-catalog--standalone .document-v2-catalog__table--folders th:nth-child(2) { width: 17%; }
.document-v2-catalog--standalone .document-v2-catalog__table--folders th:nth-child(3) { width: 18%; }
.document-v2-catalog--standalone .document-v2-catalog__table--folders th:nth-child(4) { width: 17%; }

/* Kompaktní řádek pro miniatury i soubory s dvouřádkovým popisem. */
.document-v2-catalog--standalone .document-v2-catalog__table--files {
    --document-row-icon-size: 32px;
}

.document-v2-catalog--standalone .document-v2-catalog__table--files tbody tr {
    height: 40px;
}

.document-v2-catalog--standalone .document-v2-catalog__table--files td {
    padding-block: 3px;
}

.document-v2-catalog--standalone .document-v2-catalog__table--files .document-v2-catalog__file-icon {
    width: var(--document-row-icon-size);
}

.document-v2-catalog--standalone .document-v2-catalog__table--files .document-v2-catalog__file-icon--thumbnail {
    height: var(--document-row-icon-size);
}

.document-v2-catalog__folder-icon-slot {
    display: inline-flex;
    justify-content: center;
    flex: 0 0 var(--document-row-icon-size);
}

.document-v2-catalog__author {
    overflow-wrap: anywhere;
}

.document-v2-catalog--standalone .document-v2-catalog__table--files th:nth-child(1) { width: auto; }
.document-v2-catalog--standalone .document-v2-catalog__table--files th:nth-child(2) { width: 8%; }
.document-v2-catalog--standalone .document-v2-catalog__table--files th:nth-child(3) { width: 13%; }
.document-v2-catalog--standalone .document-v2-catalog__table--files th:nth-child(4) { width: 16%; }
.document-v2-catalog--standalone .document-v2-catalog__table--files th:nth-child(5) { width: 17%; }
.document-v2-catalog--standalone .document-v2-catalog__table--files:not(.document-v2-catalog__table--search) th:last-child {
    width: 64px;
    box-sizing: border-box;
    text-align: center;
}

.document-v2-catalog--standalone .document-v2-catalog__table--files:not(.document-v2-catalog__table--search) td:last-child > .document-v2-catalog__action-menu {
    margin-inline: auto;
}
.document-v2-catalog--standalone .document-v2-catalog__table--search th:nth-child(1) { width: 26%; }
.document-v2-catalog--standalone .document-v2-catalog__table--search th:nth-child(2) { width: 7%; }
.document-v2-catalog--standalone .document-v2-catalog__table--search th:nth-child(3) { width: 10%; }
.document-v2-catalog--standalone .document-v2-catalog__table--search th:nth-child(4) { width: 13%; }
.document-v2-catalog--standalone .document-v2-catalog__table--search th:nth-child(5) { width: 15%; }
.document-v2-catalog--standalone .document-v2-catalog__table--search th:nth-child(6) { width: 15%; }
.document-v2-catalog--standalone .document-v2-catalog__table--search th:nth-child(7) { width: 14%; }

.document-v2-catalog--standalone .document-v2-catalog__table--trash th:first-child { width: 31%; }
.document-v2-catalog--standalone .document-v2-catalog__table--trash th:nth-child(2) { width: 28%; }
.document-v2-catalog--standalone .document-v2-catalog__table--trash th:nth-child(3) { width: 15%; }
.document-v2-catalog--standalone .document-v2-catalog__table--trash th:nth-child(4) { width: 10%; }
.document-v2-catalog--standalone .document-v2-catalog__table--trash th:nth-child(5) { width: 16%; }

.document-v2-catalog--standalone .document-v2-catalog__action-menu[open] {
    width: 34px;
}

.document-v2-catalog--standalone .document-v2-catalog__action-menu-panel[popover] {
    position: fixed;
    inset: auto;
    box-sizing: border-box;
    width: 230px;
    max-height: calc(100vh - 16px);
    margin: 0;
    overflow-y: auto;
    border-color: var(--table-accent-border-strong);
    box-shadow: 0 10px 28px rgba(26, 36, 48, .18);
}

.document-v2-catalog--standalone .document-v2-catalog__action-menu-panel[popover]:not([data-floating-open]) {
    display: none;
}

.document-v2-catalog--standalone .document-v2-catalog__action-menu-panel a,
.document-v2-catalog--standalone .document-v2-catalog__action-menu-panel button {
    box-sizing: border-box;
    color: var(--table-accent-dark);
}

.document-v2-catalog--standalone .document-v2-catalog__action-menu-panel a:hover,
.document-v2-catalog--standalone .document-v2-catalog__action-menu-panel button:hover {
    background: var(--table-accent-tint);
}

.document-v2-catalog__table--trash th:first-child { width: 31%; }
.document-v2-catalog__table--trash th:nth-child(2) { width: 28%; }
.document-v2-catalog__table--trash th:nth-child(3) { width: 15%; }
.document-v2-catalog__table--trash th:nth-child(4) { width: 10%; }
.document-v2-catalog__table--trash th:nth-child(5) { width: 16%; }

.document-v2-catalog__trash-icon {
    font-size: 18px;
}

.document-v2-catalog__trash-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.document-v2-catalog__trash-actions button {
    cursor: pointer;
}

.document-v2-catalog__trash-footer {
    margin: 4px 0 0;
    color: #65778d;
    font-size: 11px;
}

.document-v2-catalog__danger-text {
    color: #933b3b !important;
}

.document-v2-catalog__notice {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border: 1px solid #c8d3e0;
    border-top: 0;
    background: #fff;
}

.document-v2-catalog__notice span {
    color: #65778d;
}

.document-v2-catalog__notice--blocked {
    border-color: #e2c27f;
    background: #fff8e8;
}

.document-v2-catalog .document-v2-catalog__paginator {
    width: 100%;
    margin: 0 0 50px;
    box-sizing: border-box;
}

.document-v2-catalog__paginator .pagination-wrapper {
    margin-top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.document-v2-catalog__paginator .paginator-previous-next-and-number-wrapper {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    padding-bottom: 0;
}

.document-v2-catalog__paginator .paginator-overview {
    width: auto;
    max-width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.document-v2-catalog__paginator .paginator-overview form,
.document-v2-catalog__paginator .paginator-jump-to-page form {
    margin: 0;
}

.document-v2-catalog__paginator-disabled {
    color: #a9b6c3;
    cursor: default;
    opacity: .55;
    pointer-events: none;
}

@media (max-width: 800px) {
    .document-v2-catalog__header {
        flex-wrap: wrap;
    }

    .document-v2-catalog__header-tools {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .document-v2-catalog .document-v2-catalog__global-search {
        flex: 1 1 100%;
        flex-wrap: wrap;
        min-width: 0;
        justify-content: flex-start;
    }

    .document-v2-catalog .document-v2-catalog__global-search .hypertextSearchLineInput {
        flex: 1 1 auto;
        min-width: 0;
    }

    .document-v2-catalog .document-v2-catalog__global-search .hypertextSearchLineInput input {
        width: 100%;
    }
}

/* Compact V2 browser embedded in the shared request detail. */
.request-document-v2.document-v2-catalog {
    width: 100%;
    margin: 0;
}

.request-document-v2__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    /* Stejná výška lišty (43 px) jako u ostatních karet detailu (.entity-detail-subtable-actions) */
    box-sizing: border-box;
    min-height: 43px;
    padding: 7px;
    border: 1px solid #c8d3e0;
    background: #eef2f7;
}

.request-document-v2__summary,
.request-document-v2__toolbar-actions,
.request-document-v2__toolbar-button,
.request-document-v2__folder-name {
    display: flex;
    align-items: center;
}

.request-document-v2__summary {
    min-width: 0;
    gap: 8px;
}

.request-document-v2__summary strong {
    font-size: 13px;
}

.request-document-v2__summary span,
.request-document-v2__folder-stat {
    color: #65778d;
    font-size: 11px;
}

.request-document-v2__toolbar-actions {
    flex: 0 0 auto;
    gap: 4px;
}

.request-document-v2__toolbar-button {
    justify-content: center;
    gap: 4px;
    /* Tlačítka lišty mají pevnou výšku 27 px, aby lišta měla stejných 43 px jako ostatní karty detailu */
    box-sizing: border-box;
    height: 27px;
    min-height: 27px;
    padding: 2px 7px;
    border: 1px solid #9fb4c8;
    border-radius: 2px;
    background: #fff;
    color: #315b7c;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    text-decoration: none;
}

.request-document-v2__toolbar-button:hover {
    background: #e1ebf2;
    text-decoration: none;
}

.request-document-v2__toolbar-button--primary {
    background: #6687a5;
    color: #fff;
}

.request-document-v2__toolbar-button--primary:hover {
    background: #557896;
}

.request-document-v2__toolbar-button .document-folder-icon {
    width: 18px;
    height: 18px;
}

.request-document-v2__folders {
    border: 1px solid #c8d3e0;
    border-top: 0;
}

.request-document-v2__root-view[hidden],
.request-document-v2__folder-view[hidden] {
    display: none !important;
}

.request-document-v2__folder-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 90px 18px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 4px 8px;
    border: 0;
    border-bottom: 1px solid #dfe6ee;
    border-radius: 0;
    background: #fff;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.request-document-v2__folder-row:last-child {
    border-bottom: 0;
}

.request-document-v2__folder-row:hover,
.request-document-v2__folder-row:focus-visible {
    background: #f7faff;
}

.request-document-v2__folder-name {
    min-width: 0;
    gap: 7px;
}

.request-document-v2__folder-name strong {
    overflow: hidden;
    color: #294e70;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-document-v2__chevron {
    color: #52657c;
    font-size: 17px;
    line-height: 1;
}

.request-document-v2__folder-view {
    border: 1px solid #c8d3e0;
    border-top: 0;
    background: #fff;
}

.request-document-v2__directory-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 37px;
    padding: 4px 7px;
    border-bottom: 1px solid #c8d3e0;
    background: #f8fafc;
}

.request-document-v2__back,
.request-document-v2__breadcrumb,
.request-document-v2__directory-actions {
    display: flex;
    align-items: center;
}

.request-document-v2__back {
    gap: 3px;
    min-height: 27px;
    padding: 2px 8px;
    border: 1px solid #9fb4c8;
    border-radius: 2px;
    background: #fff;
    color: #315b7c;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
}

.request-document-v2__back:hover {
    background: #e1ebf2;
}

.request-document-v2__breadcrumb {
    min-width: 0;
    gap: 5px;
    color: #65778d;
    font-size: 11px;
}

.request-document-v2__breadcrumb strong {
    overflow: hidden;
    color: #294e70;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-document-v2__directory-actions {
    justify-content: flex-end;
    gap: 7px;
}

.request-document-v2__directory-actions > span {
    color: #65778d;
    font-size: 11px;
}

.request-document-v2__empty {
    margin: 0;
    padding: 7px 9px;
    border: 1px solid #dfe6ee;
    color: #65778d;
    font-size: 11px;
}

.request-document-v2 .document-v2-catalog__table-wrap {
    overflow: visible;
    border-top: 1px solid #c8d3e0;
}

.request-document-v2 .document-v2-catalog__table {
    min-width: 0;
}

.request-document-v2 .document-v2-catalog__action-menu-panel {
    top: auto;
    bottom: calc(100% + 2px);
    display: grid;
    width: 280px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-document-v2 .document-v2-catalog__action-menu-panel a,
.request-document-v2 .document-v2-catalog__action-menu-panel button,
.request-document-v2 .document-v2-catalog__action-menu-panel span {
    overflow: hidden;
    padding: 4px 6px;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-document-v2 .document-v2-catalog__table th:first-child {
    width: 52%;
}

.request-document-v2 .document-v2-catalog__table th:nth-child(2) {
    width: 11%;
}

.request-document-v2 .document-v2-catalog__table th:nth-child(3) {
    width: 22%;
}

.request-document-v2 .document-v2-catalog__table th:nth-child(4) {
    width: 15%;
}

@media (max-width: 720px) {
    .request-document-v2__toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .request-document-v2__toolbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .request-document-v2__folder-row {
        grid-template-columns: minmax(0, 1fr) auto 18px;
    }

    .request-document-v2__folder-stat:nth-of-type(2) {
        display: none;
    }

    .request-document-v2__directory-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .request-document-v2__directory-actions {
        grid-column: 1 / -1;
    }

    .request-document-v2 .document-v2-catalog__table th:nth-child(2),
    .request-document-v2 .document-v2-catalog__table td:nth-child(2) {
        display: none;
    }
}
