.list-page { background: #f5f7fc; }
.list-page .site-header { box-shadow: 0 2px 14px rgba(32, 61, 119, .04); }
.list-page .all-category.active { background: #214fd8; }
.list-main { min-height: 900px; padding-bottom: 72px; background: #f5f7fc; }
.breadcrumb { min-width: 0; min-height: 57px; display: flex; align-items: center; gap: 10px; color: #8f98aa; font-size: 12px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { color: #bcc3d0; font-style: normal; }
.breadcrumb span { min-width: 0; color: #5c6577; overflow-wrap: anywhere; }
.header-actions form { margin: 0; }
.header-actions form button { padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.list-user-name { max-width: 120px; overflow: hidden; color: #566177; text-overflow: ellipsis; white-space: nowrap; }

.filter-panel { overflow: hidden; border: 1px solid #e4e9f4; border-radius: 8px; background: #fff; box-shadow: 0 10px 30px rgba(35, 66, 127, .05); }
.filter-title-row { min-height: 65px; display: flex; align-items: center; justify-content: space-between; padding: 0 25px; border-bottom: 1px solid #edf0f6; background: #f7f9fd; }
.filter-title-row > div { display: flex; align-items: center; gap: 10px; }
.filter-title-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: var(--primary); font-size: 11px; font-weight: 800; }
.filter-title-row h2 { margin: 0; font-size: 17px; }
.filter-title-row small { color: #a1a9b7; font-size: 11px; }
.filter-toggle { display: none; border: 0; color: var(--primary); background: transparent; font-size: 12px; }
.filter-toggle span { display: block; font-size: 20px; line-height: 1; transition: transform .2s ease; }
.filter-body { padding: 7px 25px 15px; }
.filter-row { min-height: 51px; display: grid; grid-template-columns: 82px 1fr; align-items: center; border-bottom: 1px dashed #edf0f5; }
.filter-row > strong, .selected-filters > strong { color: #414a5f; font-size: 12px; }
.filter-options { display: flex; flex-wrap: wrap; gap: 7px 11px; padding: 8px 0; }
.filter-options a { min-width: 54px; min-height: 28px; max-width: 100%; display: inline-flex; align-items: center; justify-content: center; padding: 5px 12px; border-radius: 5px; color: #697286; background: transparent; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.filter-options a:hover { color: var(--primary); background: #f1f5ff; }
.filter-options a.active { color: #fff; background: var(--primary); box-shadow: 0 4px 10px rgba(47, 107, 255, .18); }
.selected-filters { min-height: 48px; display: grid; grid-template-columns: 82px 1fr auto; align-items: center; padding-top: 9px; }
.selected-list { display: flex; flex-wrap: wrap; gap: 7px; }
.selected-list > a { max-width: 100%; display: inline-flex; align-items: center; gap: 7px; padding: 5px 7px 5px 10px; border: 1px solid #d9e4fb; border-radius: 5px; color: #4b6fbf; background: #f5f8ff; font-size: 10px; }
.selected-list > a span { overflow-wrap: anywhere; }
.selected-list > a b { color: #8fa3cb; font-size: 13px; font-weight: 400; }
.selected-list .selected-empty { color: #9aa2b2; font-size: 10px; }
.clear-filters { color: #737d91; font-size: 10px; }

.results-section { margin-top: 18px; }
.result-toolbar { min-height: 71px; display: flex; align-items: center; gap: 28px; padding: 13px 21px; border: 1px solid #e7ebf4; border-radius: 8px; background: #fff; }
.result-toolbar > div:first-child { min-width: 210px; }
.result-toolbar h1 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.result-toolbar.is-keyword { justify-content: center; text-align: center; }
.result-toolbar.is-keyword > div:first-child { min-width: 0; width: 100%; text-align: center; }
.result-toolbar.is-keyword h1 { text-align: center; }
.result-toolbar p { margin: 7px 0 0; color: #a0a7b6; font-size: 10px; }
.result-toolbar p strong { color: var(--primary); }
.sort-tabs { display: flex; align-self: stretch; }
.sort-tabs a { min-width: 76px; display: inline-flex; align-items: center; justify-content: center; border-bottom: 2px solid transparent; color: #7c8598; font-size: 11px; white-space: nowrap; }
.sort-tabs a:hover, .sort-tabs a.active { border-color: var(--primary); color: var(--primary); font-weight: 700; }
.current-sort { color: #8a93a5; font-size: 10px; white-space: nowrap; }
.result-search { width: 220px; height: 34px; display: flex; margin-left: auto; border: 1px solid #dfe5ef; border-radius: 6px; overflow: hidden; background: #fafbfe; }
.result-search input { min-width: 0; flex: 1; padding: 0 11px; border: 0; outline: 0; background: transparent; font-size: 10px; }
.result-search button { width: 36px; border: 0; color: #8e98ab; background: transparent; cursor: pointer; }

.document-list { display: grid; gap: 10px; margin-top: 12px; }
.document-card { position: relative; min-height: 132px; display: grid; grid-template-columns: 66px minmax(0, 1fr) 70px 194px; align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid #e8ecf4; border-radius: 8px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.document-card:hover, .document-card.featured { border-color: #a9c2ff; box-shadow: 0 10px 28px rgba(37, 80, 171, .09); transform: translateY(-1px); }
.document-icon { position: relative; width: 58px; height: 72px; display: grid; place-items: center; border-radius: 7px; color: #fff; background: #3978e7; box-shadow: 0 8px 16px rgba(48, 105, 214, .18); }
.document-icon::after { content: ""; position: absolute; top: 0; right: 0; border-width: 0 14px 14px 0; border-style: solid; border-color: transparent rgba(255,255,255,.5) transparent transparent; }
.document-icon span { font-size: 12px; font-weight: 900; }
.document-icon i { position: absolute; left: 10px; right: 10px; bottom: 14px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.55); box-shadow: 0 6px 0 rgba(255,255,255,.35); }
.document-icon.ppt { background: #ef7934; }
.document-icon.xls { background: #20a86f; }
.document-icon.pdf { background: #e64c4d; }
.document-icon.zip { background: #8953e9; }
.document-info { min-width: 0; }
.document-title h2 { overflow: hidden; margin: 0 0 9px; color: #293247; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.document-title:hover h2 { color: var(--primary); }
.document-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.document-tags span { padding: 3px 7px; border-radius: 4px; color: #7a8498; background: #f3f5f9; font-size: 9px; }
.document-info > p { overflow: hidden; margin: 0 0 9px; color: #8f97a8; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.document-meta { display: flex; flex-wrap: wrap; gap: 20px; color: #aab0bd; font-size: 9px; }
.favorite-state { min-width: 0; align-self: start; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #aeb7c7; text-align: center; }
.favorite-state b { font-size: 20px; line-height: 1; }
.favorite-state small { max-width: 70px; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.favorite-state.active { color: #e88a22; }
.document-actions { display: flex; gap: 8px; }
.document-actions a { width: 90px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cfe0ff; border-radius: 6px; color: var(--primary); background: #f8faff; font-size: 10px; }
.document-actions a.download { border-color: var(--primary); color: #fff; background: var(--primary); }
.document-actions a span { margin-right: 5px; font-size: 15px; }
.list-empty-state { min-height: 240px; display: grid; place-content: center; gap: 8px; padding: 30px 20px; border: 1px solid #e7ebf4; border-radius: 8px; color: #8a93a5; background: #fff; text-align: center; }
.list-empty-state strong { color: #3c465a; font-size: 17px; }
.list-empty-state span { font-size: 12px; }
.list-empty-state.is-warning { border-color: #f0d7a8; background: #fffdf8; }
.list-status-main { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f5f7fc; }
.list-status { width: min(100%, 620px); padding: 46px 32px; border: 1px solid #e1e7f1; border-radius: 8px; background: #fff; text-align: center; }
.list-status-code { color: #cf3f4f; font-size: 14px; font-weight: 800; }
.list-status h1 { margin: 12px 0 10px; color: #263249; font-size: 28px; }
.list-status p { margin: 0 auto; color: #6f798d; font-size: 14px; line-height: 1.8; }
.list-status-actions { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.list-status-actions a { min-width: 122px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #cad5e7; border-radius: 6px; color: #4e5d76; background: #fff; font-size: 13px; }
.list-status-actions a.primary { border-color: var(--primary); color: #fff; background: var(--primary); }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-top: 32px; }
.pagination a, .pagination > span { min-width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #e0e5ef; border-radius: 5px; color: #59657a; background: #fff; font-size: 12px; }
.pagination .page-direction { min-width: 62px; padding: 0 10px; }
.pagination .disabled { color: #b9c0cc; background: #f7f8fa; }
.list-footer .footer-main { margin-top: 0; }

@media (max-width: 820px) {
    .list-main { padding-bottom: 50px; }
    .filter-title-row { min-height: 60px; padding: 0 18px; }
    .filter-title-row small { display: none; }
    .filter-toggle { display: block; }
    .filter-body { display: none; padding: 6px 18px 15px; }
    .filter-panel.is-open .filter-body { display: block; }
    .filter-panel.is-open .filter-toggle span { transform: rotate(180deg); }
    .filter-row { grid-template-columns: 66px 1fr; }
    .selected-filters { grid-template-columns: 66px 1fr; }
    .clear-filters { grid-column: 2; justify-self: start; margin-top: 9px; }
    .result-toolbar { flex-wrap: wrap; gap: 11px 18px; }
    .result-toolbar > div:first-child { min-width: 180px; }
    .sort-tabs { height: 40px; order: 3; width: 100%; overflow-x: auto; }
    .result-search { margin-left: auto; }
    .document-card { grid-template-columns: 58px minmax(0, 1fr) 70px; gap: 14px; padding: 16px 17px; }
    .document-actions { grid-column: 2 / 4; justify-content: flex-end; }
    .document-info > p { white-space: normal; line-height: 1.65; }
}

@media (max-width: 560px) {
    .breadcrumb { min-height: 45px; font-size: 10px; }
    .filter-title-row { padding: 0 14px; }
    .filter-title-row h2 { font-size: 15px; }
    .filter-body { padding: 4px 14px 14px; }
    .filter-row { display: block; padding: 12px 0 8px; }
    .filter-row > strong { display: block; margin-bottom: 7px; }
    .filter-options { gap: 6px; padding: 0; }
    .filter-options a { min-width: auto; min-height: 29px; padding: 5px 11px; }
    .selected-filters { display: block; padding-top: 13px; }
    .selected-list { margin: 9px 0; }
    .result-toolbar { padding: 13px 14px; }
    .result-toolbar > div:first-child { min-width: 0; width: 100%; }
    .result-search { width: 100%; order: 2; }
    .sort-tabs { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); order: 3; overflow: visible; }
    .sort-tabs a { min-width: 0; min-height: 36px; }
    .current-sort { order: 4; width: 100%; }
    .document-card { min-height: 0; grid-template-columns: 50px minmax(0, 1fr) 60px; align-items: start; gap: 11px; padding: 14px; }
    .document-icon { width: 48px; height: 60px; }
    .document-title h2 { font-size: 12px; line-height: 1.55; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .document-info > p { display: none; }
    .document-meta { gap: 8px 12px; line-height: 1.5; }
    .document-actions { grid-column: 1 / 4; display: grid; grid-template-columns: 1fr 1fr; }
    .document-actions a { width: auto; height: 36px; }
    .favorite-state b { font-size: 18px; }
    .favorite-state small { max-width: 60px; }
    .pagination { gap: 6px; }
    .pagination a, .pagination > span { min-width: 32px; }
    .list-status { padding: 34px 20px; }
    .list-status h1 { font-size: 23px; }
    .list-status-actions { display: grid; grid-template-columns: 1fr; }
    .list-status-actions a { width: 100%; }
}

@media (max-width: 340px) {
    .filter-title-icon { display: none; }
    .filter-title-row { padding: 0 11px; }
    .document-card { padding: 12px; }
    .document-meta span:nth-child(n+2) { display: none; }
}
