/* Проекти на документи — styles scoped to this module. */
.document-projects { padding-bottom: 2.5rem; }
.document-projects .PageName { overflow-wrap: anywhere; font-size: 2rem; line-height: 1.35; }
.document-projects .document-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; padding: .75rem 1rem; margin: 1rem 0 .75rem; background: var(--bg-light_gray, #f9f9fb); border-radius: 8px; }
.document-projects .document-filters > div { min-width: 150px; }
.document-projects .document-search { flex: 1; }
.document-projects .document-filters label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .25rem; }
.document-projects .document-filters input,
.document-projects .document-filters select { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 44px; margin: 0; padding: .5rem .75rem; border: 1px solid var(--link-border, #b6cbdc); border-radius: 6px; background-color: #fff; color: var(--text-primary, #222); font: inherit; }
.document-projects .document-filters select.minimal { height: 44px; padding-right: 2.25rem; appearance: none; cursor: pointer; color: var(--text-blue, #159); font-size: 1rem !important; }
.document-projects .document-filters input:hover,
.document-projects .document-filters select:hover { border-color: var(--text-blue, #159); }
.document-projects .document-filters input:focus,
.document-projects .document-filters select:focus { border-color: var(--blue-focus, #159); box-shadow: 0 0 0 3px var(--blue-focus-shadow, rgba(17, 85, 153, .15)); }
.document-projects .document-filters .button { margin: 0; min-height: 44px; cursor: pointer; padding: .6rem 1.25rem; border: 1px solid var(--text-blue, #159); border-radius: 4px; background: var(--bg-color-primary, #159); color: #fff; font: inherit; }
.document-projects .document-filters .button:hover,
.document-projects .document-filters .button:focus { background: var(--blue-dark, #05b); color: #fff; }
.document-projects .document-reset { padding: .7rem 0; }
.document-projects .document-count { margin: .5rem 0; padding: 0; font-size: .9rem; color: #555; }
.document-projects .document-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; padding: .85rem 1rem; margin: .65rem 0; border: 1px solid var(--gray-DDD, #ddd); border-radius: 8px; }
.document-projects .document-card h2 { grid-column: 1 / -1; margin: 0; padding: 0; font-size: 1.25rem; line-height: 1.35; overflow-wrap: anywhere; }
.document-projects .document-card h2,
.document-projects .document-card h2 a { font-weight: 500; }
.document-projects .document-dates { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; padding: .5rem .75rem; margin: 0; background: var(--bg-light-blue, #e8f2fe); border-left: 3px solid var(--text-blue, #159); border-radius: 6px; }
.document-projects .document-dates > div { flex: 1 1 290px; }
.document-projects .document-dates dt { font-weight: 400; }
.document-projects .document-dates dd { margin: .3rem 0 0; color: var(--text-blue, #159); font-weight: 600; font-variant-numeric: tabular-nums; }
.document-projects .document-card .document-dates { grid-column: 1 / -1; gap: .3rem 1.5rem; padding: .6rem .65rem; margin: .35rem 0; font-size: .875rem; line-height: 1.4; }
.document-projects .document-card .document-dates > div { display: flex; flex: 0 1 auto; flex-wrap: wrap; gap: 0 .35rem; }
.document-projects .document-card .document-dates dd { margin: 0; white-space: nowrap; }
.document-projects .document-summary { white-space: normal; overflow-wrap: anywhere; }
.document-projects .document-card .document-summary { margin: 0; padding: 0; font-size: .95rem; line-height: 1.45; }
.document-projects .document-detail { padding: 0; font-size: .95rem; line-height: 1.45; }
.document-projects .document-detail .PageName { margin: 0 0 .6rem; font-size: 1.6rem; font-weight: 500; line-height: 1.3; letter-spacing: .5px; }
.document-projects .document-detail .document-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.5rem; padding: .8rem .85rem; margin: 1rem 0 1.15rem; font-size: .875rem; }
.document-projects .document-detail .document-dates > div { display: block; }
.document-projects .document-detail .document-dates dd { margin: .15rem 0 0; font-size: 1rem; white-space: nowrap; }
.document-projects .document-detail > .document-summary { margin: .75rem 0; padding: .75rem 1rem; background: var(--bg-light_gray, #f9f9fb); border-radius: 8px; }
.document-projects .document-detail h2 { margin: .9rem 0 .45rem; padding: 0; font-size: 1.35rem; line-height: 1.3; }
.document-projects .document-info h3,
.document-projects .document-info h4,
.document-projects .document-info h5,
.document-projects .document-info h6 { margin: .7rem 0 .3rem; padding: 0; font-size: 1.1rem; line-height: 1.35; }
.document-projects .document-info p { margin: 0 0 .5rem; padding: 0; }
.document-projects .document-info ul,
.document-projects .document-info ol { margin: .25rem 0 .5rem; padding-left: 1.25rem; }
.document-projects .document-info ul:not([class]) { list-style: disc; }
.document-projects .document-info ol:not([class]) { list-style: decimal; }
.document-projects .document-info li { padding: 0; margin: .15rem 0; }
.document-projects .document-card .document-more { grid-column: 2; align-self: end; justify-self: end; box-sizing: border-box; display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: .45rem .8rem; font-size: .9rem; line-height: 1.35; }
.document-projects .document-info { overflow-wrap: anywhere; overflow-x: auto; }
.document-projects .document-info img { max-width: 100%; height: auto; }
.document-projects .document-table-wrap { overflow-x: auto; border: 1px solid var(--gray-DDD, #ddd); border-radius: 8px; }
.document-projects .document-files-table { width: 100%; margin: 0; border-collapse: collapse; }
.document-projects .document-files-table th,
.document-projects .document-files-table td { padding: .5rem .75rem; border-bottom: 1px solid var(--gray-DDD, #ddd); text-align: left; vertical-align: middle; }
.document-projects .document-files-table th { background: var(--bg-light_gray, #f9f9fb); color: var(--text-blue, #159); font-weight: 600; }
.document-projects .document-files-table tbody tr:last-child td { border-bottom: 0; }
.document-projects .document-file-title { overflow-wrap: anywhere; }
.document-projects .document-file-title a { word-break: normal; }
.document-projects .document-files-table .document-file-date { width: 8rem; white-space: nowrap; }
.document-projects .document-files-table .document-file-action { width: 7rem; text-align: right; }
.document-projects .document-attachments { margin-top: 20px; }
.document-projects .document-attachments time { font-size: .9rem; color: #555; }
.document-projects .document-download,
.document-projects .document-back .button { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 44px; margin: 0; padding: .5rem .75rem; font-size: .9rem; line-height: 1.35; }
.document-projects .document-download { white-space: nowrap; }
.document-projects .document-download::after { content: none; }
.document-projects .document-back { margin: .85rem 0 0; padding: 0; }
.document-projects .document-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem; margin: 2rem 0; }
.document-projects .document-empty { padding: 1.5rem; background: var(--bg-light_gray, #f9f9fb); border-radius: 8px; }
@media (max-width: 600px) {
    .document-projects .document-filters { padding: .75rem; }
    .document-projects .document-filters > div { flex: 1 1 150px; min-width: 0; }
    .document-projects .document-filters .document-search { flex-basis: 100%; }
    .document-projects .document-card { grid-template-columns: minmax(0, 1fr); padding: .75rem; }
    .document-projects .document-card h2 { font-size: 1.2rem; }
    .document-projects .document-card .document-more { grid-column: 1; justify-self: start; }
    .document-projects .document-dates { gap: .8rem; }
    .document-projects .document-dates > div { flex-basis: 100%; min-width: 0; }
    .document-projects .document-detail .PageName { font-size: 1.35rem; }
    .document-projects .document-detail .document-dates { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
    .document-projects .document-detail > .document-summary { padding: .65rem .75rem; }
    .document-projects .document-files-table th,
    .document-projects .document-files-table td { padding: .45rem; }
    .document-projects .document-files-table .document-file-date,
    .document-projects .document-files-table .document-file-action { width: 1%; }
    .document-projects .document-files-table { font-size: .875rem; }
    .document-projects .document-download { padding: .45rem .55rem; font-size: .85rem; }
}
