/* Scoped document styles; independent of dossier page design version. */
#documents-section, .dosar-tabs {
 --v2-surface: #0e1626; --v2-border: #334155; --v2-border-2: #475569;
 --v2-text: #e6edf5; --v2-muted: #a9b8ca; --v2-green: #34d399;
 --v2-green-text: #6ee7b7; --v2-green-bg: #163629;
}
body.light-theme #documents-section, body.light-theme .dosar-tabs {
 --v2-surface: #fff; --v2-border: #dbe2ea; --v2-border-2: #cbd5e1;
 --v2-text: #172033; --v2-muted: #475569; --v2-green: #15803d;
 --v2-green-text: #166534; --v2-green-bg: #f0fdf4;
}
.dosar-tabs .vct-documents-tab {
    color: var(--v2-green-text) !important;
}
.dosar-tabs .vct-documents-tab.is-active {
    border-bottom-color: var(--v2-green) !important;
}
.vct-public-documents {
    padding: 18px;
    border: 1px solid var(--v2-border);
    border-radius: 12px;
    background: var(--v2-surface);
    color: var(--v2-text);
}
.vct-public-document {
    border: 1px solid var(--v2-border);
    border-radius: 9px;
    margin: 10px 0;
    overflow: hidden;
    background: var(--v2-surface);
}
.vct-doc-accordion > summary {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; cursor: pointer; list-style: none;
}
.vct-doc-accordion > summary::-webkit-details-marker { display: none; }
.vct-doc-accordion > summary:hover { background: var(--v2-green-bg); }
.vct-doc-accordion > summary:focus-visible { outline: 2px solid var(--v2-green); outline-offset: -3px; }
.vct-doc-icon { color: var(--v2-green-text); font-size: 1.25rem; flex-shrink: 0; }
.vct-doc-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vct-doc-muted { color: var(--v2-muted); font-size: .8rem; }
.vct-doc-meta { display: block; margin-top: 3px; }
.vct-doc-chevron { flex-shrink: 0; }
.vct-doc-accordion[open] .vct-doc-chevron { transform: rotate(180deg); }
.vct-doc-description {
    margin: 0; padding: 12px 16px; border-top: 1px solid var(--v2-border);
    white-space: normal !important; line-height: 1.55; font-size: .95rem; overflow-wrap: anywhere;
}
.vct-doc-description p { margin: 0 0 .55em; white-space: normal !important; }
.vct-doc-description ul,
.vct-doc-description ol { margin: .35em 0 .7em; padding-left: 1.5em; white-space: normal !important; }
.vct-doc-description li { margin: .15em 0 !important; padding: 0 !important; white-space: normal !important; }
.vct-doc-description li > p { margin: 0 !important; }
.vct-doc-description h1,
.vct-doc-description h2,
.vct-doc-description h3,
.vct-doc-description h4 { margin: .8em 0 .35em; font-size: 1.05rem; }
.vct-doc-description table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.vct-doc-description td, .vct-doc-description th { border: 1px solid var(--v2-border); padding: 5px; }
.vct-doc-attachments { border-top: 1px solid var(--v2-border); padding: 5px 12px; }
.vct-doc-file { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: .85rem; }
.vct-doc-file + .vct-doc-file { border-top: 1px solid var(--v2-border); }
.vct-doc-file a { color: var(--v2-green-text); border: 1px solid var(--v2-border-2); border-radius: 6px; padding: 5px 9px; text-decoration: none; flex-shrink: 0; }
.vct-doc-file a:hover, .vct-doc-file a:focus-visible { background: var(--v2-green-bg); border-color: var(--v2-green); }
@media (max-width: 575px) {
    .vct-public-documents { padding: 10px; }
    .vct-doc-description { padding: 10px; }
}

#documents-section .vct-doc-description li { display: list-item; }
#documents-section .vct-doc-description li > p { display: inline; }
#documents-section .vct-doc-description p:empty { display: none; }
#documents-section .vct-doc-description ul { list-style: disc outside; }
#documents-section .vct-doc-description ol { list-style: decimal outside; }

#documents-section .vct-doc-description > :last-child { margin-bottom: 0; }
#documents-section .vct-doc-description li > p + p { display: block; margin-top: .25em !important; }
