/* Пункты раскрытия информации. Цвета и кнопки — из request.card/style.css (.rq). */
.dp-head__back { display: inline-block; margin-bottom: 14px; font-size: 15px; text-decoration: none; }
.dp-head__back:hover { text-decoration: underline; }
.dp-head__point { display: table; margin-bottom: 10px; padding: 3px 12px; border-radius: 8px; background: var(--rq-primary-soft); color: var(--rq-primary); font-size: 15px; font-weight: 600; }
.rq .dp-head__title { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.dp-head__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-top: 16px; }
.rq.dp .rq-card { margin-bottom: 0; }

.dp-year { margin: 0 0 12px; border: 1px solid var(--rq-border); border-radius: var(--rq-radius); background: #fff; box-shadow: var(--rq-shadow); }
.dp-year summary { display: flex; gap: 12px; align-items: baseline; padding: 16px 22px; border-radius: var(--rq-radius); font-size: 19px; font-weight: 700; list-style: none; cursor: pointer; }
.dp-year summary::-webkit-details-marker { display: none; }
.dp-year summary > span { flex: 1; }
.dp-year summary small { font-size: 14px; font-weight: 400; color: var(--rq-muted); }
.dp-year summary::after { content: ""; flex: none; align-self: center; width: 10px; height: 10px; margin: -5px 4px 0; border: solid var(--rq-primary); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dp-year[open] summary::after { margin-top: 5px; transform: rotate(-135deg); }
.dp-year summary:hover { color: var(--rq-primary); }

.dp-docs { margin: 0; padding: 0 22px 6px; list-style: none; }
.dp-doc { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-top: 1px solid #eceff4; }
.dp-doc__icon { flex: none; width: 32px; margin-top: 2px; font-size: 28px; text-align: center; color: #64748b; }
.dp-doc__icon--pdf { color: #c2410c; }
.dp-doc__icon--doc, .dp-doc__icon--docx, .dp-doc__icon--rtf { color: var(--rq-primary); }
.dp-doc__icon--xls, .dp-doc__icon--xlsx, .dp-doc__icon--xlsm { color: var(--rq-success); }
.dp-doc__body { flex: 1 1 0; min-width: 0; }
.dp-doc__name { font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.rq .dp-doc__name a { color: var(--rq-text); text-decoration: none; }
.rq .dp-doc__name a:hover { color: var(--rq-primary); text-decoration: underline; }
.dp-doc__about { margin-top: 2px; font-size: 15px; }
.dp-doc__meta { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 4px; font-size: 14px; color: var(--rq-muted); }
.dp-doc__links { display: flex; flex: none; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 45%; }
.rq .dp-doc__links .rq-btn, .rq .dp-all { min-height: 0; padding: 8px 14px; font-size: 15px; }
@media (max-width: 767px) {
    .dp-doc { flex-wrap: wrap; gap: 10px 12px; }
    .dp-doc__links { flex-basis: 100%; justify-content: flex-start; max-width: none; }
    .dp-docs { padding: 0 16px 6px; }
    .dp-year summary { padding: 14px 16px; }
    .rq .dp-head__title { font-size: 21px; }
}

/* Текст пункта, который пишется прямо в странице. */
.dp-text > :last-child, .dp-year__text > :last-child { margin-bottom: 0; }
.dp-text p, .dp-text li { max-width: 80ch; }
.dp-year__text { padding: 0 22px 18px; }
.dp-year__text ul { margin: 0; padding-left: 20px; }
.dp-year__text li { padding: 3px 0; }

/* Список документов без годов (tfwatt:document.list). */
.dp-list { border: 1px solid var(--rq-border); border-radius: var(--rq-radius); background: #fff; box-shadow: var(--rq-shadow); }
.dp-list .dp-docs { padding: 6px 22px; }
.dp-list .dp-doc:first-child { border-top: 0; }
.dp-list__empty { margin: 0; padding: 18px 22px; }
@media (max-width: 767px) { .dp-list .dp-docs { padding: 0 16px; } }
.dp-search { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-bottom: 12px; }
.dp-search .form-control { flex: 1 1 260px; max-width: 520px; height: 46px; }
